repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
10045125/KJFrameForAndroid
KJFrame/src/org/kymjs/kjframe/ui/ViewInject.java
6172
/* * Copyright (c) 2014,KJFrameForAndroid 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 * * Unl...
apache-2.0
pashchuk/Hospital-app
HospitalLibrary/Class1.cs
186
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HospitalLibrary { public class Class1 { } }
apache-2.0
brianrandell/rgroup
src/Before/Rg.Web/Controllers/Api/UserImagesController.cs
2521
using System.Data.Entity; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Web; using System.Web.Http; using Rg.ServiceCore.DbModel; using Rg.ServiceCore.Operations; using Rg.ApiTypes; namespace Rg.Web.Controllers.Api { [Authorize] public class...
apache-2.0
lijinfengworm/ant-design-reactjs
src/schema/faultData.dataSchema.js
3040
import React from 'react'; import {Icon} from 'antd'; import {Link} from 'react-router'; // 定义某个表的dataSchema, 结构跟querySchema很相似, 见下面的例子 // 注意: 所有的key不能重复 // 这个配置不只决定了table的schema, 也包括用于新增/删除的表单的schema module.exports = [ { key: 'id', // 传递给后端的key title: 'ID', // 前端显示的名字 // 其实dataType对前端的意义不大, 更重要的是生成后...
apache-2.0
wvanderdeijl/oracle-cci-sonarqube
src/main/java/org/jdev/emg/sonar/cci/CCIXmlMetricsDecorator.java
4597
/* * Sonar CCI Plugin * Copyright (C) 2015 Whitehorses * dev@sonar.codehaus.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your o...
apache-2.0
daileyet/openlibs.binder
src/main/java/com/openthinks/libs/binder/support/SupportUtilities.java
457
package com.openthinks.libs.binder.support; public class SupportUtilities { public static String convertToString(Object object) { String val = null; if (object == null) val = ""; else val = object.toString(); return val; } public static boolean equals(Object oldVal, Object newVal) { ...
apache-2.0
shivangi1015/incubator-carbondata
processing/src/main/java/org/apache/carbondata/processing/newflow/steps/DummyClassForTest.java
3291
/* * 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
hailongren/AndroidTraining
app/src/test/java/com/bearapp/androidtraining/ExampleUnitTest.java
405
package com.bearapp.androidtraining; 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...
apache-2.0
googleapis/nodejs-translate
samples/test/quickstart.test.js
1125
// Copyright 2017 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
apache-2.0
armandosrz/UdacityNanoMachine
capstone_project/Conniption/src/mergeq.py
677
import resource from itertools import chain, product import pickle ''' This file takes all the pickle objects created during the simulations and puts them all together for a better extraction. ''' letters = {'h', 'c', 's', 'r' ,'f'} q_letters = {'q', 'm'} letters = map(''.join, chain(product(letters, q_letters), pr...
apache-2.0
EmeraldSequoia/JNI-gen
jni/ESJNI.cpp
5573
// // ESJNI.cpp // // Copyright Emerald Sequoia LLC 2011. // #include "ESJNI.hpp" #include "ESJNIDefs.hpp" #include "ESErrorReporter.hpp" ESJNIBase::ESJNIBase() : _retained(false), _javaObject(NULL) {} ESJNIBase::ESJNIBase(jobject jobj) : _retained(false), _javaObject(jobj) { } ESJNIBase::ESJN...
apache-2.0
sllexa/junior
chapter_003/src/main/java/ru/job4j/lite/user/SortUser.java
1396
package ru.job4j.lite.user; import java.util.Comparator; import java.util.List; import java.util.Set; import java.util.TreeSet; /** * Class SortUser. * * @author Aleksey Slivko * @version $1.0$ * @since 22.06.2018 */ public class SortUser { /** * Convert List of users to TreeSet and sort users by age. ...
apache-2.0
SocialFarm/camarilla
src/main/java/org/socialfarm/camarilla/CamarillaServer.java
1571
package org.socialfarm.camarilla; import org.glassfish.grizzly.http.server.HttpServer; import org.glassfish.grizzly.http.server.NetworkListener; import org.glassfish.grizzly.threadpool.ThreadPoolConfig; import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; import org.glassfish.jersey.server.Resour...
apache-2.0
bh1xuw/rust-rocks
rocks-sys/rocks/util.cc
1571
#include <string> #include <vector> #include "rocksdb/slice.h" #include "rocksdb/version.h" #include "rocks/ctypes.hpp" using namespace ROCKSDB_NAMESPACE; extern "C" { /* version */ int rocks_version_major() { return ROCKSDB_MAJOR; } int rocks_version_minor() { return ROCKSDB_MINOR; } int rocks_version_patch() { re...
apache-2.0
esp/esp-net
src/Esp.Net/Meta/IEventObservationRegistrar.cs
809
#region copyright // Copyright 2015 Dev Shop Limited // // 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
OleksandrKulchytskyi/Agile
Server/WebSignalR/WebSignalR.DataAccess/Migrations/201403170824102_VoteItem_Opened.Designer.cs
838
// <auto-generated /> namespace WebSignalR.DataAccess.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.0.2-21211")] public sealed parti...
apache-2.0
sdw2330976/Research-jetty-9.2.5
jetty-spdy/spdy-core/src/test/java/org/eclipse/jetty/spdy/generator/DataFrameGeneratorTest.java
3722
// // ======================================================================== // Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
apache-2.0
mikeb01/Aeron
aeron-client/src/main/java/io/aeron/exceptions/ClientTimeoutException.java
1227
/* * Copyright 2014-2022 Real Logic Limited. * * 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 ...
apache-2.0
wolabs/womano
main/java/com/culabs/unicomportal/model/db/DBNats.java
15306
package com.culabs.unicomportal.model.db; import java.util.Date; public class DBNats { /** * This field was generated by MyBatis Generator. * This field corresponds to the database column nats.id * * @mbggenerated Tue May 26 15:53:09 CST 2015 */ private Integer id; /** * Thi...
apache-2.0
JotaAlava/Sputnik
Sputnik/Commands/NotExistCommand.cs
1721
using System; using OpenQA.Selenium; using Sputnik.Selenium; using NUnit.Framework; namespace Sputnik.Commands { public class NotExistCommand { /// <summary> /// Will check if the specified CssPath returns an element that currently does not exist on the page /// </summary> /// ...
apache-2.0
hambroz/Orleans.Bus
Source/Bus/Properties/AssemblyInfo.cs
223
using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("Orleans.Bus")] [assembly: InternalsVisibleTo("Orleans.Bus.Observables")] [assembly: InternalsVisibleTo("Orleans.Bus.Tests")]
apache-2.0
bitExpert/adrenaline
tests/bitExpert/Adrenaline/Responder/Resolver/NegotiatingResponderResolverMiddlewareUnitTest.php
5609
<?php /** * This file is part of the Adrenaline framework. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types = 1); namespace bitExpert\Adrenaline\Responder\Resolver; use bitExpert\Adrenali...
apache-2.0
cfg4j/cfg4j
cfg4j-core/src/test/java/org/cfg4j/source/context/propertiesprovider/JsonBasedPropertiesProviderTest.java
3475
/* * Copyright 2015-2018 Norbert Potocki (norbert.potocki@nort.pl) * * 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 ...
apache-2.0
cppforlife/bosh-warden-cpi-release
src/bosh-warden-cpi/vm/iptables_ports.go
2842
package vm import ( "net" "strconv" "strings" "time" "github.com/cloudfoundry/bosh-cpi-go/apiv1" bosherr "github.com/cloudfoundry/bosh-utils/errors" boshsys "github.com/cloudfoundry/bosh-utils/system" bwcutil "bosh-warden-cpi/util" ) type IPTablesPorts struct { sleeper bwcutil.Sleeper cmdRunner boshsys....
apache-2.0
0359xiaodong/Renderers
sample/src/main/java/com/pedrogomez/renderers/ui/renderers/FavoriteVideoRenderer.java
1536
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * 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
AndroidWJC/UnversityFinance
app/src/main/java/com/hqj/universityfinance/LoginActivity.java
7722
package com.hqj.universityfinance; import android.content.ContentValues; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextVie...
apache-2.0
abego/j2slib
src/main/j2slib/org/eclipse/swt/widgets/FileDialog.js
3434
$_L(["$wt.widgets.Dialog"],"$wt.widgets.FileDialog",["$wt.events.SelectionAdapter","$wt.internal.ResizeSystem","$wt.layout.GridData","$.GridLayout","$wt.widgets.Button","$.Composite","$.Label","$.Listener","$.Shell"],function(){ c$=$_C(function(){ this.filterNames=null; this.filterExtensions=null; this.fileNames=nu...
apache-2.0
JiangFeng07/myapp-demo
poi-myapp-core/src/test/java/com/myapp/pattern/proxyPattern/AdjKey.java
1408
package com.myapp.pattern.proxyPattern; /** * Created by lionel on 16/12/2. */ public class AdjKey { private Integer level; private Integer cate; private String subject; private String adj; public AdjKey() { } public AdjKey(Integer level, Integer cate, String subject, String adj) { ...
apache-2.0
mengmoya/onos
apps/l3vpn/nel3vpn/nemgr/src/main/java/org/onosproject/yang/gen/v1/ne/l3vpn/api/rev20141225/NeL3VpnApiManager.java
1776
/* * Copyright 2016-present 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 appli...
apache-2.0
sidorovis/stsc.general
src/main/java/stsc/general/simulator/multistarter/AlgorithmConfigurationSet.java
632
package stsc.general.simulator.multistarter; import java.util.Iterator; public interface AlgorithmConfigurationSet { long size(); int parametersSize(); String toString(); AlgorithmConfigurationSet clone(); // public void reset(); public ParameterList<Integer, MpNumberIterator<Integer>>...
apache-2.0
martincmartin/MathematiciansAssistant
DeductionApril2018.py
3354
from Expression import Expression, CompositeExpression, has_head, Equal from MatchAndSubstitute import Direction from ProofSystem import ExprAndParent, Exprs, BruteForceProofState from typing import Sequence from typing import cast def try_rules( context: Sequence[Expression], goal: Expression, general_r...
apache-2.0
nlalevee/ant-http
src/java/org/missinglink/http/exception/InvalidUriException.java
1143
/* * 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 * * Unless required by a...
apache-2.0
KodrAus/cirrus
src/cirrus.core.workflow/processes/PartialResult.cs
529
namespace Cirrus.Core.Workflow.Processes { //Represents a partially completed Process public class PartialResult { public object Result; public Process Process; public object Execute() { //Execute the Process if it is not null, or return the result return Process != null ? Process.Execute(Result) ...
apache-2.0
alexflav23/exercises
rps/app/model/domain/DomainJsonFormats.scala
703
package model.domain import play.api.libs.json._ /** * A list of implicit formats generated using the [[Json]] macro implementation. * We are keeping the implicits grouped here. We could also store the implicits * nested under the companion objects of their respective target case classes, * but in this instan...
apache-2.0
chrisGerken/sofa
stackoverflow/src/main/java/com/gerkenip/stackoverflow/model/AbstractModelObject.java
4816
package com.gerkenip.stackoverflow.model; import java.util.ArrayList; import java.util.StringTokenizer; import org.codehaus.jettison.json.JSONArray; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject; import com.gerkenip.stackoverflow.SofAccess; import com.gerkenip.stackove...
apache-2.0
cloudant/java-cloudant
cloudant-client/src/test/resources/design-files/query_design_doc.js
241
{ "_id": "_design/testQuery", "language": "query", "views": { "testView": { "map": {"fields": {"Person_dob": "asc"}}, "reduce": "_count", "options": { "def": { "fields": [ "Person_dob" ] } } } } }
apache-2.0
Rikkola/guvnor
droolsjbpm-ide-common/src/test/java/org/drools/testframework/MockWorkingMemory.java
16650
/* * Copyright 2010 JBoss 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 i...
apache-2.0
HoanNguyenIM/ATD
project/packages/foostart/mail/src/Controllers/Admin/MailSendController.php
9390
<?php namespace Foostart\Mail\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use URL; use Route, Redirect; use Foostart\Mail\Models\Mails; use Foostart\Mail\Models\MailsContacts; use Foostart\Mail\Models\MailsHistories; use Mail; use Illuminate\Support\Facades\Input; use Illum...
apache-2.0
entoj/entoj-system
test/export/ConfigurationShared.js
13876
'use strict'; /** * Requirements * @ignore */ const Site = require(ES_SOURCE + '/model/site/Site.js').Site; const EntityAspect = require(ES_SOURCE + '/model/entity/EntityAspect.js').EntityAspect; const DocumentationCallable = require(ES_SOURCE + '/model/documentation/DocumentationCallable.js').DocumentationCallable...
apache-2.0
jacobluber/ScalaSpider
FinancialSpider/src/application/Mapper.scala
488
//code from http://debasishg.blogspot.com/2008/06/playing-around-with-parallel-maps-in.html; I merely used this to inspire my actor based parallel map package application class Mapper[A, B:Manifest](l: List[A], f: A => B) { def pmap = { val buffer = new Array[B](l.length) val mappers = for(idx <- (0 un...
apache-2.0
jrh3k5/inventory-webapp
src/main/java/com/github/jrh3k5/inventory/application/data/CountableEntity.java
139
package com.github.jrh3k5.inventory.application.data; public interface CountableEntity extends IdentifiableEntity { int getCount(); }
apache-2.0
rullionsolutions/lazuli-ui
sections_core/ItemSet.js
24483
"use strict"; var UI = require("lazuli-ui/index.js"); var Data = require("lazuli-data/index.js"); module.exports = UI.Section.clone({ id: "ItemSet", items: null, // array of item objects query_mode: null, // "preload" to load items in setup, "dynamic" to reload in eachItem() query: n...
apache-2.0
tiffanytse/nya
js/scripts.js
605
jQuery(function($) { $('div.toc-content').TableOfContents(); $('.toc-container').waypoint('sticky', { offset: 32 // Apply "stuck" when element 30px from top }); $('.footer').waypoint({ offset: $('.sticky-wrapper').height()+64, //calculate menu's height and margin before footer handler: function(d...
apache-2.0
tomoto/GlassNjslyr
src/com/tomoto/glass/njslyr/MainActivity.java
7912
package com.tomoto.glass.njslyr; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Locale; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import...
apache-2.0
FirebaseExtended/crashlytics-migration-android
Firebase/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r/android/support/fragment/R.java
12397
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package android.support.fragment; public final class R { private R() {} public static final class attr { private attr(...
apache-2.0
shawnsky/RantApp
app/src/main/java/com/xt/android/rant/fragment/NotifyCmtFragment.java
4859
package com.xt.android.rant.fragment; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.v4.app.Fragment; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerVie...
apache-2.0
tumblr/colossus
colossus/src/main/scala/colossus/service/Callback.scala
19004
package colossus.service import akka.actor._ import colossus.metrics.logging.ColossusLogging import scala.util.{Failure, Success, Try} import scala.concurrent.duration._ import scala.concurrent.{ExecutionContext, Future, Promise} /** * This exception is only thrown when there's a uncaught exception in the executio...
apache-2.0
hach-que/LevelEditor
LevelEditorCore/DesignViews/DesignView.cs
10546
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt. using System; using System.Drawing; using System.Windows.Forms; using System.ComponentModel; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Sce.Atf; using Sce.Atf.Adaptation; using Sce.Atf.Controls; u...
apache-2.0
Talend/components
components/components-googledrive/components-googledrive-definition/src/main/java/org/talend/components/google/drive/copy/GoogleDriveCopyProperties.java
4697
//============================================================================ // // Copyright (C) 2006-2022 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receive...
apache-2.0
linuxska/repoVJP
plugins/sfGuardPlugin/lib/model/map/sfGuardPermissionTableMap.php
2308
<?php /** * This class defines the structure of the 'sf_guard_permission' table. * * * This class was autogenerated by Propel 1.4.2 on: * * Mon Jul 15 20:06:25 2013 * * * This map class is used by Propel to do runtime db structure discovery. * For example, the createSelectSql() method checks the type of a g...
apache-2.0
vimaier/conqat
org.conqat.engine.sourcecode/src/org/conqat/engine/sourcecode/analysis/shallowparsed/ShallowParsingSuccessAssessor.java
4026
/*-------------------------------------------------------------------------+ | | | Copyright 2005-2011 The ConQAT Project | | | | Licensed u...
apache-2.0
gustavovaliati/training_Symfony2.8_Angular1.5_AdminLTE
front-root/src/js/app.js
1070
import angular from 'angular'; // Import our app config files import constants from './config/app.constants'; import appConfig from './config/app.config'; import appRun from './config/app.run'; import 'angular-ui-router'; // Import our templates file (generated by Gulp) import './config/app.templates'; // Import...
apache-2.0
vivantech/kc_fixes
src/main/java/org/kuali/kra/proposaldevelopment/document/ProposalDevelopmentDocument.java
26130
/* * Copyright 2005-2014 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.osedu.org/licenses/ECL-2.0 * * Unless required by applicab...
apache-2.0
cloudbase/lis-tempest
tempest/api/network/admin/test_load_balancer_admin_actions.py
5056
# Copyright 2014 Mirantis.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 ...
apache-2.0
tuxmonteiro/ATSForge-FIX
atsforgefix.server/src/main/java/org/atsforge/fix/server/MainServer.java
1101
package org.atsforge.fix.server; import java.net.InetSocketAddress; import java.util.concurrent.Executors; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.channel.ChannelPipelineFactory; import org.jboss.netty.channel.Channels; import org.jboss....
apache-2.0
canerbasaran/criticalmaps-android
app/src/main/java/de/stephanlindauer/criticalmaps/adapter/ChatMessageAdapter.java
2906
package de.stephanlindauer.criticalmaps.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.text.DateFormat; import java.util.ArrayList; import j...
apache-2.0
ldp4j/ldp4j
framework/server/core/src/main/java/org/ldp4j/server/controller/UnknownConstraintReportException.java
1831
/** * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * This file is part of the LDP4j Project: * http://www.ldp4j.org/ * * Center for Open Middleware * http://www.centeropenmiddleware.com/ * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * ...
apache-2.0
stevetcm/quickremind
app/src/main/java/com/orangemuffin/quickremind/utils/DateAndTimeUtil.java
2857
package com.orangemuffin.quickremind.utils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.concurrent.TimeUnit; /* Created by OrangeMuffin on 7/3/2017 */ public class DateAndTimeUtil { public static int getDueDate(String remi...
apache-2.0
nimble-platform/frontend-service
src/app/user-mgmt/model/user-registration.ts
1034
/* * Copyright 2020 * SRFG - Salzburg Research Forschungsgesellschaft mbH; Salzburg; Austria Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2...
apache-2.0
cmaere/lwb
templates/protostar/indexda83.php
759
<?xml version="1.0" encoding="utf-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"><ShortName>National Water Supply and Drainage Board</ShortName><Description>National Water Supply and Drainage Board</Description><InputEncoding>UTF-8</InputEncoding><Image type="image/vnd.microsoft.icon" width="1...
apache-2.0
IntuitionEngineeringTeam/chars2vec
setup.py
2190
import sys import subprocess PY_VER = sys.version[0] subprocess.call(["pip{:} install -r requirements.txt".format(PY_VER)], shell=True) from setuptools import setup setup( name='chars2vec', version='0.1.7', author='Vladimir Chikin', author_email='v4@intuition.engineering', packages=['chars2vec'], ...
apache-2.0
orioncode/orionplatform
orion_math/orion_math_core/src/main/java/com/orionplatform/math/graph/vertex/point/PointVertex.java
1841
package com.orionplatform.math.graph.vertex.point; import com.orionplatform.core.object.CloningService; import com.orionplatform.math.geometry.point.Point; import com.orionplatform.math.graph.vertex.Vertex; import com.orionplatform.math.graph.vertex.VertexRules; public class PointVertex extends Vertex { private P...
apache-2.0
scudre/alarm-central-station-receiver
alarm_central_station_receiver/contact_id/dsc.py
5963
""" DSC Contact ID Codes to Descriptions """ from alarm_central_station_receiver.config import AlarmConfig EVENTS = { '100000': {'1': ('A', 'Aux Key Alarm')}, '100ZZZ': {'1': ('A', '24 Hr Medical')}, '101ZZZ': {'1': ('A', '24 Hr Emergency (non-medical)')}, '102000': {'1': ('A', 'Fail to Report In')}, ...
apache-2.0
teecube/t3
t3-common/src/main/java/t3/xml/RootElementNamespaceFilter.java
3704
/** * (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 ...
apache-2.0
jmochel/code-samples
src/test/java/org/saltations/samples/BasicTimerTest.java
784
package org.saltations.samples; import java.util.Timer; import java.util.TimerTask; public class BasicTimerTest { private static class EggTimer { private final Timer timer = new Timer(); private final int seconds; public EggTimer(int seconds) { this.seconds = s...
apache-2.0
dnephin/cli
cli/command/config/remove.go
1064
package config import ( "fmt" "strings" "github.com/docker/cli/cli" "github.com/docker/cli/cli/command" "github.com/pkg/errors" "github.com/spf13/cobra" "golang.org/x/net/context" ) type removeOptions struct { names []string } func newConfigRemoveCommand(dockerCli command.Cli) *cobra.Command { return &cobr...
apache-2.0
ceph/ceph-csi
internal/rbd/clone.go
8923
/* Copyright 2020 The Ceph-CSI 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, so...
apache-2.0
pieces029/RxNetty
rx-netty/src/main/java/io/reactivex/netty/channel/ObservableConnectionFactory.java
969
/* * 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
ua-eas/ksd-kc5.2.1-rice2.3.6-ua
rice-middleware/it/ksb/src/test/java/org/kuali/rice/ksb/messaging/remotedservices/SOAPService.java
816
/** * Copyright 2005-2013 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 a...
apache-2.0
kissge/shinchoku
app/models/Goal.scala
232
package models import org.joda.time.DateTime /** * The goal object. */ case class Goal( goalID: Int, name: String, description: String, timeLimit: DateTime, maxProgress: Int, createdBy: User, createdAt: DateTime )
apache-2.0
manoa-tckts/manoa-tckts
app/imports/ui/layouts/if-is-admin.js
405
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { Members, MembersSchema } from '../../api/schema/members.js'; /* eslint-disable object-shorthand */ Template.If_Is_Admin.helpers({ /** * @returns {*} True if Meteor is in the process of logging in. */ isAdmin: func...
apache-2.0
DuGuQiuBai/Android-Basics-Codes
day11_新特性(第九剑)/code/03_Fragment和Activity的数据传递/src/cn/itcast/transmit/Fragment01.java
1106
package cn.itcast.transmit; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.webkit.WebView.FindListener; import android.widget.Button; import android.widget.EditT...
artistic-2.0
Frhack11/gnak
Alus/src/Stuff/Arma.java
61
package Stuff; public interface Arma extends ArmaScudo { }
artistic-2.0
aifeiasdf/Template-tookit
t/config_test.py
3854
from template.config import Config from template.test import TestCase, main from template.util import Literal class ConfigTest(TestCase): def testConfig(self): factory = Config # Parser: parser = factory.parser({ 'PRE_CHOMP': 1, 'INTERPOLATE': True }) self.failUnless(parser) self.assertEquals(1...
artistic-2.0
xyzstick/Yiiartist
protected/views/site/login.php
1316
<?php /** * @var $this SiteController * @var $model LoginForm * @var $form CActiveForm */ $this->pageTitle=Yii::app()->name.' - Login'; $this->breadcrumbs=array('Login',); ?> <h1>Login</h1> <p>Please fill out the following form with your login credentials:</p> <div class="form"> <?php $form=$this->beginWidget('CA...
artistic-2.0
hdijkema/TaskGnome
src/net/oesterholt/taskgnome/TaskGnome.java
4431
package net.oesterholt.taskgnome; import java.awt.Dimension; import java.awt.Image; import java.awt.Point; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.net.URL; import java.util.Vector; import java.util.prefs.Preferences; import java...
artistic-2.0
graslevy/ptesfinder_v1
src/bio/igm/utils/discovery/ResolvePTESExonCoordinates.java
5347
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bio.igm.utils.discovery; import bio.igm.entities.Exons; import bio.igm.entities.MappedAnchors; import bio.igm.entities.Transcript; import bio.igm.utils.init.Logging; import java.io.BufferedReader; imp...
artistic-2.0
rec/DMXIS
Macros/Colours/Adjust Colour/Blue +.py
505
#=============================================================== # DMXIS Macro (c) 2010 db audioware limited #=============================================================== for ch in GetAllSelCh(False): nm = GetChName(ch).lower() if nm=="b" or nm=="blue": v = GetChVal(ch) + 5 if (v>255...
artistic-2.0
maxrevilo/Mazzaroth
Assets/Plugins/BehaviourMachine/Source/Nodes/Composites/Selector.cs
2069
//---------------------------------------------- // Behaviour Machine // Copyright © 2014 Anderson Campos Cardoso //---------------------------------------------- using UnityEngine; using System.Collections; namespace BehaviourMachine { /// <summary> /// Think "or" logic. If one child does not fail...
artistic-2.0
UltrosBot/Ultros3K
tests/storage/config/test_json.py
5947
# coding=utf-8 import os import secrets import shutil import tempfile from nose.tools import assert_equal, assert_true from unittest import TestCase from ultros.core.storage.config.json import JSONConfig from ultros.core.storage.manager import StorageManager __author__ = "Gareth Coles" class TestJSON(TestCase): ...
artistic-2.0
tzachshabtay/MonoAGS
Source/AGS.API/Misc/Drawing/WrapMode.cs
110
namespace AGS.API { public enum WrapMode { Tile, TileFlipX, TileFlipY, TileFlipXY, Clamp } }
artistic-2.0
brunolauze/MonoNative
MonoNative.Tests/mscorlib/System/Diagnostics/mscorlib_System_Diagnostics_StackFrame_Fixture.cpp
3529
// Mono Native Fixture // Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // Namespace: System.Diagnostics // Name: StackFrame // C++ Typed Name: mscorlib::System::Diagnostics::StackFrame #include <gtest/gtest.h> #include <mscorlib/System/Diagnostics/mscorlib_System_Diagnostics_S...
bsd-2-clause
stapler/stapler
core/src/main/java/org/kohsuke/stapler/lang/Klass.java
4015
package org.kohsuke.stapler.lang; import org.kohsuke.stapler.Function; import java.net.URL; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import edu.umd.cs.findbugs.annotations.NonNull; /** * Abstraction of class-like object, agnostic to languages. * * <p...
bsd-2-clause
eslint/espree
tests/fixtures/ecma-version/9/rest-property/invalid-parenthesized-2.src.js
20
let {...(a,b)} = foo
bsd-2-clause
TheTypoMaster/SPHERE-Framework
Library/MOC-V/Core/SecureKernel/Vendor/PhpSecLib/0.3.9/vendor/phing/phing/classes/phing/tasks/system/condition/IsSetCondition.php
1905
<?php /* * $Id$ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CO...
bsd-2-clause
dimddev/NetCatKS
NetCatKS/Components/api/interfaces/__init__.py
1405
""" A module container for our Components interfaces """ from NetCatKS.Components.api.interfaces.adapters import IJSONResourceAPI, IJSONResourceRootAPI, IRequestSubscriber from NetCatKS.Components.api.interfaces.loaders import IBaseLoader from NetCatKS.Components.api.interfaces.registration.adapters import IRegisterAda...
bsd-2-clause
claui/homebrew-cask
Casks/telegram.rb
944
cask 'telegram' do version '5.2.2-171178' sha256 '2ca57e9dbd861765db5f1f38189c6bb09d4300e2bc41bd170c1539c94f1f9094' url "https://osx.telegram.org/updates/Telegram-#{version}.app.zip" appcast 'https://osx.telegram.org/updates/versions.xml' name 'Telegram for macOS' homepage 'https://macos.telegram.org/' ...
bsd-2-clause
epiqc/ScaffCC
clang/test/OpenMP/teams_distribute_parallel_for_ast_print.cpp
7433
// RUN: %clang_cc1 -verify -fopenmp -ast-print %s -Wno-openmp-mapping | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print -Wno-openmp-mapping | FileCheck %s // RUN: %clang_cc1 -verify -fopenmp-simd -a...
bsd-2-clause
liberborn/extapp
app/portal/store/AboutStore.js
413
/*global Ext*/ /*jslint browser: true*/ /*jshint strict: false*/ Ext.define('Demo.store.AboutStore', { extend: 'Ext.data.Store', alias: 'widget.aboutWindow', model: 'Demo.model.AboutModel', proxy : { type : 'memory', reader : { type : 'json' } } autoLoad :...
bsd-2-clause
vividos/OldStuff
C64/src/d64view/source/document.hpp
913
/* d64view - a d64 disk image viewer Copyright (c) 2002,2003,2016 Michael Fink */ /*! \file document.hpp \brief wxWindows document disk document class for doc/view model */ // import guard #ifndef d64view_document_hpp_ #define d64view_document_hpp_ // needed includes #include "imagebase.hpp" // class...
bsd-2-clause
angelsbaytech/AVnode.net
lib/routes/crews/show.js
692
const router = require('../router')(); const User = require('../../models/User'); //const Crew = require('../../models/Crew'); router.get('/', (req, res, next) => { //Crew User.findOne({slug: req.params.slug}) .populate([{ path: 'image', model: 'Asset' }, { path: 'teaserImage', model: 'Asset' ...
bsd-2-clause
mlcit/pakiti3
lib/model/CveDef.php
2600
<?php # Copyright (c) 2017, CESNET. All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # o Redistributions of source code must retain the above # copyright notice, this list of conditions and...
bsd-2-clause
nihospr01/OpenSpeechPlatform-UCSD
Sources/liblsl/lslboost/boost/concept_check.hpp
32052
// // (C) Copyright Jeremy Siek 2000. // Copyright 2002 The Trustees of Indiana University. // // 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) // // Revision History: // 05 May 2001: Workarounds for HP aCC fr...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-of/dstr-const-obj-ptrn-prop-obj.js
1935
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-obj.case // - src/dstr-binding/default/for-of-const.template /*--- description: Object binding pattern with "nested" object binding pattern not using initializer (for-of statement) esid: sec-for-in-and-for-of-stateme...
bsd-2-clause
klupek/pdf2epl
pdf2epl.rb
15539
#!/usr/bin/env ruby require 'pdf/reader' require 'pp' class MyReceiver def initialize @lines = [] @texts = [] @images = [] @stack = [] @rectangles = [] @state = { :matrix => identity_matrix } @current_text = {} end def stats { :lines => @lines, :texts => @texts, :rectangles => @rectangl...
bsd-2-clause
npat-efault/gohacks
cirq/cirq_test.go
5014
package cirq import ( "strings" "testing" ) type pushFn func(interface{}) bool type popFn func() (interface{}, bool) func testLIFO(t *testing.T, q *CQ, maxSz int, push pushFn, pop popFn) { if !q.Empty() || q.Full() || q.Len() != 0 || q.MaxCap() != maxSz { t.Fatalf("Initially: E=%v, F=%v, L=%d, C=%d", q.Empty...
bsd-2-clause
bborbe/assert
hamcrest_util_test.go
1884
package assert import ( "testing" ) func TestBuildError(t *testing.T) { { err := buildError("expected type '%s' but got '%s'", "", "foo", "bar") if err == nil { t.Fatal("err is nil") } if err.Error() != "expected type 'foo' but got 'bar'" { t.Fatal("errormessage is incorrect") } } { err := build...
bsd-2-clause
cameronjacobson/SimpleSQS
examples/deletequeue.php
272
<?php require_once(dirname(__DIR__).'/vendor/autoload.php'); use SimpleSQS\SimpleSQS; $sqs = new SimpleSQS(array( 'profile'=>'default', 'region'=>'us-west-2', 'error'=>function($result){ var_dump($result->__toString()); } )); $sqs->deleteQueue('mysamplequeue');
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js
509
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.filter es5id: 15.4.4.20-1-10 description: Array.prototype.filter applied to the Math object ---*/ function callbackfn(val, idx, obj) { return '[objec...
bsd-2-clause
mapfish/mapfish-print
core/src/test/java/org/mapfish/print/processor/map/CreateMapProcessorCenterGeoJsonZoomToExtentFlexibleScaleTest.java
2415
package org.mapfish.print.processor.map; import org.junit.Test; import org.mapfish.print.AbstractMapfishSpringTest; import org.mapfish.print.TestHttpClientFactory; import org.mapfish.print.config.Configuration; import org.mapfish.print.config.ConfigurationFactory; import org.mapfish.print.config.Template; import org.m...
bsd-2-clause