repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
rowanmiller/Demo-MVADec14
CompletedSource/CycleSales/src/CycleSales/Migrations/201412150243215_BikeTable.Designer.cs
1478
using CycleSales.Models; using Microsoft.Data.Entity; using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Migrations.Infrastructure; using System; namespace CycleSales.Migrations { [ContextType(typeof(CycleSales.Models.CycleSalesContext))] public partial class BikeTable : IMigrationMetad...
apache-2.0
SpiGetOrg/spiget.org
public/index.php
78
<?php include_once("../internal/Smarty.php"); $smarty->display("index.tpl");
apache-2.0
vespa-engine/vespa
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/maintenance/LoadBalancerExpirerTest.java
7921
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.provision.maintenance; import com.yahoo.component.Vtag; import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.ClusterSpec; import com.yahoo.config.provisi...
apache-2.0
alexhilton/miscellaneous
cc-work/basics/oop-in-cpp/chap05/window.cc
7522
/* * window.cc * * Implement a hierarchy of class windows. * window, FrameWindow, MenuWindow, Dialog, */ #include <string> #include <iostream> using namespace std; #define SCREEN 24 // abstract class Window class Window { private: int x0, y0; // left-top co-ordinate int length; // length of window int widt...
apache-2.0
Xarthisius/girder
girder/utility/acl_mixin.py
8166
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2015 Kitware 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 cop...
apache-2.0
Mariovc/kinballwc2015
app/src/main/java/com/mvc/kinballwc/broadcast/PeriodBroadcastReceiver.java
1964
package com.mvc.kinballwc.broadcast; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.TextView; import com.mvc.kinballwc.application.App; import com.mvc.kinballwc.ui.activity.MatchActivity; import com.mvc.kinballwc.ui.fragment.PeriodFragmen...
apache-2.0
liming/hellosleep-site
src/app.js
1459
/** * Hellosleep */ // Load .env for development environments (process.env.NODE_ENV !== 'production') && require('dotenv').load(); const keystone = require('keystone'); keystone.init({ 'name': '睡吧', 'brand': '睡吧', 'less': 'public', 'static': 'public', 'views': 'templates/views', 'view engine': 'jad...
apache-2.0
miswenwen/My_bird_work
Bird_work/我的项目/Music/src/com/android/music/TouchInterceptor.java
19240
/* * Copyright (C) 2008 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 app...
apache-2.0
loolooyyyy/netty-functional
src/main/java/io/koosha/nettyfunctional/log/Slf4jNettyFuncLogger.java
452
package io.koosha.nettyfunctional.log; public final class Slf4jNettyFuncLogger implements NettyFuncLogger { private final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Slf4jNettyFuncLogger.class); @Override public void error(String msg, Throwable t) { log.error(msg, SerrLogger.causeMs...
apache-2.0
DWCS2333/coolweather
app/src/main/java/com/example/wow/coolweather/util/Utility.java
3549
package com.example.wow.coolweather.util; import android.text.TextUtils; import android.util.Log; import com.example.wow.coolweather.db.City; import com.example.wow.coolweather.db.County; import com.example.wow.coolweather.db.Province; import com.example.wow.coolweather.gson.Weather; import com.google.gson.Gson; imp...
apache-2.0
leborety/CJia
CJia.EvaluationProject/CJia.Evaluation.Web/Backstage/AddDept.aspx.cs
2348
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using ExtAspNet; namespace CJia.Evaluation.Web.Backstage { public partial class AddDept : CJia.Evaluation.Tools.Page,CJia.Evaluation.Views.Backstage.IAddDep...
apache-2.0
ExpediaDotCom/haystack-ui
server/connectors/serviceGraph/zipkin/serviceGraphConnector.js
1509
/* * Copyright 2018 Expedia Group * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
apache-2.0
Just4pLeisure/T5SuiteII
Trionic5Controls/frmFirmwareSettings.Designer.cs
3914
namespace Trionic5Controls { partial class frmFirmwareSettings { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
apache-2.0
Kerbores/blog
blog/src/main/java/com/kerbores/utils/file/FileUtils.java
4817
package com.kerbores.utils.file; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import org.nutz.lang.Files; import org.nutz.lang.Strings; import org.nutz.log.Log; import org.nutz.lo...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-kinesisanalyticsv2/src/main/java/com/amazonaws/services/kinesisanalyticsv2/model/CreateApplicationPresignedUrlResult.java
3896
/* * 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
ralphbean/moksha
moksha/tests/test_feed.py
5059
# This file is part of Moksha. # Copyright (C) 2008-2010 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 ...
apache-2.0
jbousquie/Babylon.js
src/Physics/Plugins/oimoJSPlugin.ts
20488
import { IPhysicsEnginePlugin, PhysicsImpostorJoint } from "../../Physics/IPhysicsEngine"; import { PhysicsImpostor, IPhysicsEnabledObject } from "../../Physics/physicsImpostor"; import { PhysicsJoint, IMotorEnabledJoint, DistanceJointData, SpringJointData } from "../../Physics/physicsJoint"; import { PhysicsEngine ...
apache-2.0
Tgy31/PIMS
src/controller/InspectionsServlet.java
16147
package controller; import java.io.IOException; import java.io.PrintWriter; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.Web...
apache-2.0
ingve/IncludeOS
lib/microLB/micro_lb/serialize.cpp
3732
#include "balancer.hpp" #include <stdexcept> #define LB_VERBOSE 0 #if LB_VERBOSE #define LBOUT(fmt, ...) printf(fmt, ##__VA_ARGS__) #else #define LBOUT(fmt, ...) /** **/ #endif using namespace liu; namespace microLB { void Nodes::serialize(Storage& store) { store.add<int64_t>(100, this->session_total); s...
apache-2.0
shakamunyi/beam
sdk/src/main/java/com/google/cloud/dataflow/sdk/util/ReduceFnRunner.java
37408
/* * Copyright (C) 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
lessthanoptimal/ejml
main/ejml-ddense/src/org/ejml/dense/row/decomposition/qr/QrHelperFunctions_DDRM.java
12927
/* * Copyright (c) 2009-2020, Peter Abeles. All Rights Reserved. * * This file is part of Efficient Java Matrix Library (EJML). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
apache-2.0
13808796047/hdcms
hd/Hdcms/Admin/Tpl/User/js/add.js
1413
$(function () { $("form").validate({ username: { rule: { required: true, ajax: {url: CONTROL + "&m=check_username", field: ['uid']} }, error: { required: "密码不能为空", ajax: '帐号已经存在' } }, ...
apache-2.0
tendermint/tendermint
config/config.go
41697
package config import ( "encoding/hex" "encoding/json" "errors" "fmt" "net/http" "os" "path/filepath" "time" "github.com/tendermint/tendermint/libs/log" tmos "github.com/tendermint/tendermint/libs/os" "github.com/tendermint/tendermint/types" ) const ( // FuzzModeDrop is a mode in which we randomly drop r...
apache-2.0
java110/MicroCommunity
service-front/src/main/java/com/java110/front/smo/notice/IAddNoticeSMO.java
388
package com.java110.front.smo.notice; import com.java110.core.context.IPageData; import org.springframework.http.ResponseEntity; /** * 添加公告接口 * * add by wuxw 2019-06-30 */ public interface IAddNoticeSMO { /** * 添加公告 * @param pd 页面数据封装 * @return ResponseEntity 对象 */ ResponseEntity<Stri...
apache-2.0
sriks/titanium_mobile
apidoc/lib/common.js
4676
/** * Copyright (c) 2015 Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License. * * Common Library for Doctools */ var yaml = require('js-yaml'), fs = require('fs'), nodeappc = require('node-appc'), colors = require('colors'), pagedown = require('pagedown'), converte...
apache-2.0
fhueske/flink
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/StreamingFileSink.java
19889
/* * 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
annarev/tensorflow
tensorflow/compiler/xla/service/cpu/cpu_transfer_manager.cc
10868
/* 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
ToCSharp/AsyncChromeDriver
ChromeDevToolsClient/Network/ResponseReceivedExtraInfoEvent.cs
1852
namespace Zu.ChromeDevTools.Network { using Newtonsoft.Json; /// <summary> /// Fired when additional information about a responseReceived event is available from the network /// stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for /// it, and respons...
apache-2.0
ebyhr/presto
core/trino-main/src/test/java/io/trino/server/security/oauth2/TestDynamicCallbackOAuth2Service.java
3970
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
apache-2.0
reactor/reactor-netty
reactor-netty-http/src/main/java/reactor/netty/http/server/HttpServerOperations.java
32184
/* * Copyright (c) 2011-2022 VMware, 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. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * ...
apache-2.0
maxml/sample-apps
cityguide/source/app/src/main/java/org/kaaproject/kaa/demo/cityguide/adapter/PlacesAdapter.java
2755
/** * Copyright 2014-2016 CyberVision, Inc. * <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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by appli...
apache-2.0
MissionCriticalCloud/cosmic
cosmic-core/engine/schema/src/main/java/com/cloud/domain/DomainVO.java
4945
package com.cloud.domain; import com.cloud.legacymodel.domain.Domain; import com.cloud.utils.db.GenericDao; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; i...
apache-2.0
cmuhirwa/uplus
casual/vendors/smooth-scroll/SmoothScroll.js
12102
// SmoothScroll v1.2.1 // Licensed under the terms of the MIT license. // People involved // - Balazs Galambosi (maintainer) // - Patrick Brunner (original idea) // - Michael Herf (Pulse Algorithm) // - Justin Force (Resurect) if (navigator.appVersion.indexOf("Mac") == -1) { // Scroll Variables (tweakab...
apache-2.0
marianosz/azure-mobile-services-test
Runtime/DotNetE2EServerApp/App_Start/WebApiConfig.cs
4411
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- using AutoMapper; using Microsoft.WindowsAzure.Mobile.Service; using Microsoft.WindowsAzure...
apache-2.0
jentfoo/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/AncillarySourceSettings.java
5104
/* * 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
Endika/omim
drape_frontend/backend_renderer.cpp
11022
#include "drape_frontend/gui/drape_gui.hpp" #include "drape_frontend/backend_renderer.hpp" #include "drape_frontend/batchers_pool.hpp" #include "drape_frontend/gps_track_shape.hpp" #include "drape_frontend/map_shape.hpp" #include "drape_frontend/message_subclasses.hpp" #include "drape_frontend/read_manager.hpp" #inclu...
apache-2.0
jacksonic/foamTableTop
bower_components/foam2-experimental/src/foam/u2/ReadWriteView.js
1810
/** * @license * 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 requir...
apache-2.0
praveenkumar/minishift
cmd/minishift/cmd/root.go
17319
/* Copyright 2016 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
pluto-build/pluto
src/build/pluto/stamp/FileContentStamper.java
1438
package build.pluto.stamp; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.HashMap; import java.util.Map; import org.sugarj.common.FileCommands; /** * @author Sebastian Erdweg */ public class FileContentStamper implements Stamper { private...
apache-2.0
aosp-mirror/platform_frameworks_support
leanback/src/androidTest/java/androidx/leanback/app/wizard/GuidedStepAttributesTestFragment.java
3243
/* * Copyright (C) 2016 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
equella/Equella
Source/Plugins/Core/com.equella.base/src/com/tle/beans/usermanagement/standard/wrapper/UserWrapperSettings.java
1309
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
apache-2.0
aslanbekirov/crate
sql/src/main/java/io/crate/operation/scalar/regex/MatchesFunction.java
5986
/* * Licensed to CRATE Technology GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not us...
apache-2.0
LegNeato/buck
test/com/facebook/buck/cli/BuildPrehookTest.java
5186
/* * Copyright 2018-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
ThorsteinnAdal/webcrawls_in_singapore_shippinglane
bwi_fuels/bwi_page.py
2171
__author__ = 'thorsteinn' import csv import urllib2 import re import json from bs4 import BeautifulSoup def bwi_page(country, port): opener = urllib2.build_opener() opener.addheaders = [('User-agent', 'Mozilla/5.0')] url = 'http://www.bunkerworld.com/prices/port/{c}/{p}/'.format(c = country, p = port) ...
apache-2.0
goodwinnk/intellij-community
plugins/xpath/xpath-view/src/org/intellij/plugins/xpathView/ui/InputExpressionDialog.java
22584
/* * Copyright 2007 Sascha Weinreuter * * 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
hindog/grid-executor
grid-executor/src/main/scala/com/hindog/grid/GridConfig.scala
2840
package com.hindog.grid import com.hindog.grid.repo.Repository import org.gridkit.vicluster.ViNode import scala.collection._ import scala.util.Random /* * __ _ __ * / / (_)__ ___/ /__ ____ * / _ \/ / _ \/ _ / _ \/ _ / * /_//_/_/_//_/\_,_/\___/\_, / * /___/ * * This c...
apache-2.0
naskogithub/google-api-nodejs-client
apis/youtubeAnalytics/v1beta1.js
6643
/** * 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 appli...
apache-2.0
great-expectations/great_expectations
tests/cli/test_checkpoint.py
137865
import logging import os import shutil import subprocess import unittest from typing import List, Optional, Union from unittest import mock import nbformat import pandas as pd import pytest from click.testing import CliRunner, Result from nbconvert.preprocessors import ExecutePreprocessor from nbformat import Notebook...
apache-2.0
wiltonlazary/arangodb
arangod/Aql/DocumentExpressionContext.cpp
1761
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
apache-2.0
sjyk/sampleclean-async
src/main/scala/sampleclean/eval/MonotonicSimilarityThresholdTuner.scala
3448
package sampleclean.eval import sampleclean.clean.deduplication.join._ import sampleclean.clean.deduplication.blocker._ import sampleclean.clean.deduplication.matcher._ import sampleclean.clean.deduplication._ import sampleclean.api.SampleCleanContext import org.apache.spark.sql.{SchemaRDD, Row} import org.apache.spark...
apache-2.0
TANGKUO/beautifulDay
src/main/java/com/tk/cn/utils/web/RandomId.java
1350
package com.tk.cn.utils.web; import java.util.HashMap; import java.util.Map; import java.util.Random; public class RandomId { private Random random; private String table; private static final int radLength =15; private static final String[] radArr = new String[]{"A","B","C","D","E","F","G","H","I","G...
apache-2.0
tkobayas/optaplanner
optaplanner-examples/src/main/java/org/optaplanner/examples/conferencescheduling/optional/benchmark/ConferenceSchedulingBenchmarkApp.java
1208
/* * Copyright 2020 Red Hat, Inc. and/or 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 ap...
apache-2.0
mtrunkat/php-libphutil-composer
src/Facebook/Libphutil/AphrontQueryException.php
139
<?php namespace Facebook\Libphutil; /** * @group storage * @concrete-extensible */ class AphrontQueryException extends \Exception { }
apache-2.0
zhaoz/lighthouse
lighthouse-core/third_party/traceviewer-js/extras/net/net.js
202
/** Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. **/ require("./net_async_slice.js");
apache-2.0
carlosFattor/Vertx-Projects
my-first-app/src/main/java/io/vertx/blog/second/MyFirstVerticle.java
4245
package io.vertx.blog.second; import io.vertx.core.AbstractVerticle; import io.vertx.core.Future; import io.vertx.core.http.HttpServerResponse; import io.vertx.core.json.Json; import io.vertx.ext.web.Router; import io.vertx.ext.web.RoutingContext; import io.vertx.ext.web.handler.BodyHandler; import io.vertx.ext.web.ha...
apache-2.0
terrancesnyder/solr-analytics
lucene/core/src/java/org/apache/lucene/util/mutable/MutableValueInt.java
2078
/* * 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
Mirantis/disk_perf_test_tool
wally/suits/itest.py
10031
import abc import time import logging import os.path from typing import Any, List, Optional, Callable, Iterable, cast from concurrent.futures import ThreadPoolExecutor, wait from cephlib.node import IRPCNode from cephlib.units import unit_conversion_coef_f from ..utils import StopTestError, get_time_interval_printab...
apache-2.0
ssylvia/swipe-map-730px-mobile
Swipe/src/resources/nls/et/template.js
14888
define( ({ viewer: { loading: { step1: "RAKENDUSE LAADIMINE", step2: "ANDMETE LAADIMINE", step3: "LÄHTESTAMINE", fail: "Vabandust, rullimisvahendi laadimine nurjus", loadBuilder: "VAHETA KOOSTAJA TÜÜP", redirectSignIn: "SUUNAN ÜMBER SISSELOGIMISE LEHELE", redirectSignIn2: "(Teid ...
apache-2.0
rgayon/plaso
tests/parsers/test_lib.py
9163
# -*- coding: utf-8 -*- """Parser related functions and classes for testing.""" from __future__ import unicode_literals from dfdatetime import posix_time as dfdatetime_posix_time from dfvfs.file_io import fake_file_io from dfvfs.lib import definitions as dfvfs_definitions from dfvfs.path import factory as path_spec_...
apache-2.0
LearnLib/automatalib
incremental/src/test/java/net/automatalib/incremental/mealy/IncrementalMealyDAGBuilderTest.java
3046
/* Copyright (C) 2013-2022 TU Dortmund * This file is part of AutomataLib, http://www.automatalib.net/. * * 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/li...
apache-2.0
fengyanjava/msb-android
pulltorefresh/src/androidTest/java/com/example/pulltorefresh/ApplicationTest.java
356
package com.example.pulltorefresh; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { ...
apache-2.0
tkonopka/Bamformatics
src/bamfo/gui/viewers/BamfoViewer.java
2267
/* * Copyright 2013 Tomasz Konopka. * * 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
google/assertor
src/assertions/float.rs
5991
// 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 ...
apache-2.0
BenDol/Databind
apt/src/main/java/nz/co/doltech/databind/apt/reflect/ReflectionGenerator.java
4742
package nz.co.doltech.databind.apt.reflect; import com.google.inject.Inject; import com.google.inject.assistedinject.Assisted; import nz.co.doltech.databind.apt.ElementUtils; import nz.co.doltech.databind.apt.reflect.gwt.Emulation; import nz.co.doltech.databind.apt.velocity.AbstractVelocityGenerator; import org.apache...
apache-2.0
aws/aws-sdk-ruby
gems/aws-sdk-globalaccelerator/features/env.rb
622
# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE $:.unshift(File.expand_path('../../lib', __FILE__)) $:.unshift(File.expand_pat...
apache-2.0
edlectrico/android-jfact
src/uk/ac/manchester/cs/jfact/kernel/ConceptCreator.java
198
package uk.ac.manchester.cs.jfact.kernel; class ConceptCreator implements NameCreator<Concept> { @Override public Concept makeEntry(String name) { return new Concept(name); } }
apache-2.0
zhangjunfang/jstorm-0.9.6.3-
jstorm-client/src/main/java/backtype/storm/command/rebalance.java
1279
package backtype.storm.command; import java.security.InvalidParameterException; import java.util.Map; import backtype.storm.generated.RebalanceOptions; import backtype.storm.utils.NimbusClient; import backtype.storm.utils.Utils; /** * Active topology * * @author longda * */ public class rebalance { /** * ...
apache-2.0
ebi-uniprot/QuickGOBE
rest-common/src/test/java/uk/ac/ebi/quickgo/rest/search/solr/SolrQueryConverterTest.java
11680
package uk.ac.ebi.quickgo.rest.search.solr; import uk.ac.ebi.quickgo.common.SolrCollectionName; import uk.ac.ebi.quickgo.rest.search.query.*; import java.util.HashSet; import java.util.Set; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.common.params.CursorMarkParams; import org.junit.Before; i...
apache-2.0
livingvirus/jphp
jphp-zend-ext/src/main/tests/resources/zend/traits/property003.php
514
--TEST-- Conflicting properties with different visibility modifiers should result in a fatal error, since this indicates that the code is incompatible. --FILE-- <?php error_reporting(E_ALL); trait THello1 { public $hello; } trait THello2 { private $hello; } class TraitsTest { use THello1; use THello2...
apache-2.0
danang-id/infest-operator
lib/Apache_Commons_IO/src/test/java/org/apache/commons/io/output/NullWriterTest.java
1444
/* * 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
ReactiveX/RxJava
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFromSingleTest.java
2426
/* * 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
medit74/DeepLearning
MyPythonDeepLearning/Training/mydifferentiation.py
1462
''' Created on 2017. 4. 11. @author: Byoungho Kang ''' import numpy as np import matplotlib.pyplot as plt def numericalDiff(f, x): h = 1e-4 # 0.0001 return (f(x+h)-f(x-h))/(2*h) def sampleFunc1(x): return 0.01*x**2 + 0.1*x def numeiralGradient(f, x): h = 1e-4 # 0.0001 grad = n...
apache-2.0
ashigeru/asakusafw-compiler
vanilla/runtime/bootstrap/src/main/java/com/asakusafw/vanilla/bootstrap/Arguments.java
1913
/** * Copyright 2011-2019 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
nchambers/schemas
src/main/java/nate/storycloze/StoryClozeTest.java
1632
package nate.storycloze; import java.util.List; import java.util.ArrayList; import nate.reading.ProcessedDocument; /** * Holds a list of ordered sentences in a story, but also * a list of possible endings for the story. The test is to guess * which one of the endings is the correct ending. */ public class StoryC...
apache-2.0
nrogoff/EnterpriseAppSettings
src/dotNET/hms.entappsettings.webapi/hms.entappsettings.contracts/AppSettingGroupDTO.cs
1243
// Copyright (c) 2017 Hard Medium Soft Ltd. // All Rights Reserved. // // Author: Nicholas Rogoff // Created: 2017 - 01 - 30 // // Project: hms.entappsettings.contracts // Filename: AppSettingGroupDTO.cs using System; namespace hms.entappsettings.contracts { /// <summary> /// App Setting Group /// </...
apache-2.0
ferminho/ludum39
core/src/com/alienshots/ludum/GameEntitiesFactory.java
6881
package com.alienshots.ludum; import com.alienshots.ludum.asset.texture.GameScreenAtlas; import com.alienshots.ludum.component.*; import com.badlogic.ashley.core.Component; import com.badlogic.ashley.core.Entity; import static com.alienshots.ludum.asset.texture.GameScreenAtlas.AtlasCoordinates; import static com.alie...
apache-2.0
project-asap/IReS-Platform
asap-platform/asap-server/asapLibrary/operators/kmeans_mahout/kmeans_mahout.lua
1937
-- The command to execute. SHELL_COMMAND = "./kmeans_mahout.sh" -- The number of containers to run it on. CONTAINER_INSTANCES = 1 -- The location of the jar file containing kitten's default ApplicationMaster -- implementation. MASTER_JAR_LOCATION = "kitten-master-0.2.0-jar-with-dependencies.jar" -- CLASSPATH setup. CP...
apache-2.0
ahbonte/AHB-hh-app
Resources/lib/location.js
3060
/** * FoodCare City * Author: FoodCare Inc. Copyright 2013. All Rights Reserved */ (function() { var showAlert = true; var datastore = require('/lib/datastore').datastore; exports.getLocation = function(callback) { Ti.Geolocation.preferredProvider = "gps"; Ti.Geolocation.purpose = "Find nearby restaurants"...
apache-2.0
boneman1231/org.apache.felix
trunk/org.osgi.compendium/src/main/java/org/osgi/service/cm/ConfigurationPlugin.java
5810
/* * Copyright (c) OSGi Alliance (2001, 2008). 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 * * U...
apache-2.0
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_0781.java
151
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_0781 { }
apache-2.0
tendermint/tendermint
crypto/merkle/proof_test.go
4997
package merkle import ( "errors" "fmt" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" ) const ProofOpDomino = "test:domino" // Expects given input, produces given output. // Like the game dominos. type D...
apache-2.0
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/Class_691.java
145
package fr.javatronic.blog.massive.annotation1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_691 { }
apache-2.0
Banno/sbt-plantuml-plugin
src/main/java/net/sourceforge/plantuml/creole/UCreole.java
1057
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2017, Arnaud Roques * * Project Info: http://plantuml.com * * This file is part of PlantUML. ...
apache-2.0
deepshig/Financial-Grant-Management-System
include/Access_Grants.php
3562
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Access Grants</title> --> <!-- CSS --> <link rel="stylesheet" href="http://...
apache-2.0
RP-Kit/RPKit
bukkit/rpk-locks-bukkit/src/main/java/com/rpkit/locks/bukkit/database/jooq/tables/records/RpkitLockedBlockRecord.java
4672
/* * This file is generated by jOOQ. */ package com.rpkit.locks.bukkit.database.jooq.tables.records; import com.rpkit.locks.bukkit.database.jooq.tables.RpkitLockedBlock; import org.jooq.Field; import org.jooq.Record4; import org.jooq.Row4; import org.jooq.impl.TableRecordImpl; /** * This class is generated by j...
apache-2.0
swisscom/cleanerversion
versions/settings.py
2205
import importlib from django import VERSION from django.conf import settings as django_settings _cache = {} class VersionsSettings(object): """ Gets a setting from django.conf.settings if set, otherwise from the defaults defined in this class. A magic accessor is used instead of just defining modul...
apache-2.0
4-20ma/cookbook-docker-integration-test
tasks/publish.rb
1117
# encoding: utf-8 # # Task:: publish # # Author:: Doc Walker (<4-20ma@wvfans.net>) # # Copyright 2016-2017, Doc Walker # # 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.apach...
apache-2.0
korpling/ANNIS
src/main/java/org/corpus_tools/annis/gui/exporter/CSVExporter.java
10133
/* * Copyright 2016-2017 Referenzkorpus Mittelniederdeutsch/Niederrheinisch (1200-1650). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
apache-2.0
planet42/Laika
pdf/src/main/scala/laika/render/pdf/PDFNavigation.scala
1828
/* * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
fmendezh/checklistbank
checklistbank-ws-client/src/test/java/org/gbif/checklistbank/ws/client/DatasetMetricsWsClientIT.java
1756
package org.gbif.checklistbank.ws.client; import org.gbif.api.model.checklistbank.DatasetMetrics; import org.gbif.api.service.checklistbank.DatasetMetricsService; import org.gbif.api.vocabulary.Kingdom; import org.gbif.api.vocabulary.Language; import org.gbif.api.vocabulary.Rank; import java.util.List; import java.ut...
apache-2.0
nhs-ciao/ciao-transport-spine
ciao-transport-spine/src/main/java/uk/nhs/ciao/transport/spine/address/SpineEndpointAddress.java
3261
package uk.nhs.ciao.transport.spine.address; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; /** * Details to identify / address an Accredited System end-point over spine */ public class SpineEndpointAddress { /** * Identifies the organisation associated with the Accre...
apache-2.0
kevdoran/nifi-minifi-cpp
extensions/civetweb/processors/ListenHTTP.cpp
17491
/** * @file ListenHTTP.cpp * ListenHTTP class implementation * * 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 un...
apache-2.0
softelnet/sponge
sponge-api/src/main/java/org/openksavi/sponge/engine/Session.java
2925
/* * Copyright 2016-2017 The Sponge 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...
apache-2.0
icza/sc2gears
src-sc2gearsdb/hu/belicza/andras/sc2gearsdb/apiuser/client/beans/ApiCallStatFilters.java
1196
/* * Project Sc2gears * * Copyright (c) 2010 Andras Belicza <iczaaa@gmail.com> * * This software is the property of Andras Belicza. * Copying, modifying, distributing, refactoring without the authors permission * is prohibited and protected by Law. */ package hu.belicza.andras.sc2gearsdb.apiuser.clie...
apache-2.0
bshp/midPoint
repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/DataSourceFactory.java
5151
/* * Copyright (c) 2010-2015 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.repo.sql; import com.evolveum.midpoint.repo.api.RepositoryServiceFactoryException; import com.evol...
apache-2.0
bond-anton/ScientificProjects
tests/test_config.py
3193
from __future__ import division, print_function import unittest from BDProjects.Config import default_connection_parameters, read_config, write_config class TestConfig(unittest.TestCase): def setUp(self): self.config_file_name = 'tests/config.ini' self.broken_format_config_file_name = 'tests/con...
apache-2.0
shisaq/shisaq.github.io
projects/ygshi2.0/js/ko-research.js
1987
// 定义 knockout viewmodel var ViewModel = function () { // 预存储this为self var self = this; /* 模板部分 */ // toggle nav list by clicking hamburger button // 点击hamburger按钮从而使导航栏显示或消失 self.navStatus = ko.observable(-1); self.toggleNav = function () { if (self.navStatus() <= 0) { ...
apache-2.0
goolei/gool
user/wxreg.php
3157
<?php /** * 微信登录 **/ $is_defend=true; include("../includes/common.php"); if(strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger')!==false){ require_once SYSTEM_ROOT."wxpay/WxPay.Api.php"; require_once SYSTEM_ROOT."wxpay/WxPay.JsApiPay.php"; $tools = new JsApiPay(); $openId = $tools->GetOpenid(); if(!$openId)sysmsg(...
apache-2.0
google-research/google-research
tunas/search_space_utils.py
13161
# coding=utf-8 # Copyright 2022 The Google Research 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
baldwinn860/gapid
gapis/api/transform/early_terminator_test.go
1448
// Copyright (C) 2017 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 t...
apache-2.0