code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
package com.carrotsearch.examples.randomizedrunner; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import com.carrotsearch.randomizedtesting.RandomizedRunner; /** * This is a test-based tutorial introducing to randomized JUnit testing using * {@link RandomizedRunner}. Follow test ...
randomizedtesting/randomizedtesting
examples/maven/src/main/java/com/carrotsearch/examples/randomizedrunner/Test001SimpleUseCase.java
Java
apache-2.0
997
# --- !Ups CREATE TABLE sessions ( token varchar(255) NOT NULL, useragent varchar(255) NOT NULL, email varchar(255) NOT NULL, laststatustoken varchar(255) NOT NULL, laststatuschange TIMESTAMP NOT NULL, PRIMARY KEY (token) ); CREATE TABLE consentlogging ( id bigint auto_increment NOT NULL , timestamp T...
ZGIS/smart-portal-backend
test/resources/testh2db/evolutions/default/3.sql
SQL
apache-2.0
1,167
/** * Copyright (c), Data Geekery GmbH, contact@datageekery.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
jOOQ/jOOL
jOOL/src/test/java/org/jooq/lambda/PredicateTests.java
Java
apache-2.0
2,035
/* $Id$ * * 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")...
OBIGOGIT/etch
binding-cpp/runtime/include/support/EtchDefaultServerFactory.h
C
apache-2.0
2,651
/* * Copyright 2022 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/ArtifactTypeConfigsTest.java
Java
apache-2.0
14,363
<?php /* * This file is part of the Doctrine\OrientDB package. * * (c) Alessandro Nadalin <alessandro.nadalin@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Class Updates * * @package Doctrine\OrientDB *...
spartaksun/orientdb-query
src/Formatter/Query/Updates.php
PHP
apache-2.0
1,400
/* * Copyright 2015-2021 The OpenZipkin 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 a...
openzipkin/zipkin
zipkin-lens/src/components/DiscoverPage/SearchBar/SearchBar.tsx
TypeScript
apache-2.0
8,051
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.action; import org.elasticsearch.action.Ac...
nknize/elasticsearch
x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportGetTrainedModelsAction.java
Java
apache-2.0
3,814
// Copyright 2004, 2005, 2006 The Apache Software Foundation // // 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/tapestry-5
tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/internal/services/MiddleFilter.java
Java
apache-2.0
802
# # # 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 n...
JingchengDu/hbase
hbase-shell/src/main/ruby/shell.rb
Ruby
apache-2.0
11,986
package org.scalatest.events import org.scalatest._ class LocationMethodSuiteProp extends MethodSuiteProp { test("Method suites should have correct TopOfMethod location in test events.") { forAll(examples) { suite => val reporter = new EventRecordingReporter suite.run(None, Args(reporter, Stopper...
hubertp/scalatest
src/test/scala/org/scalatest/events/LocationMethodSuiteProp.scala
Scala
apache-2.0
8,004
# sche.scheduler ```python import sched import time def print_time(): print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()) def scheduler(): s = sched.scheduler(time.time, time.sleep) # timefunc, delayfunc # 延迟5秒,优先级1,action, arguments(传给action的) s.enter(5, 1, print_time, ()) s.enter(10, ...
zhangyuchen0411/python_notes
scheduler.md
Markdown
apache-2.0
808
package io.cattle.platform.process.agent; import io.cattle.platform.agent.util.AgentUtils; import io.cattle.platform.core.constants.StoragePoolConstants; import io.cattle.platform.core.model.Account; import io.cattle.platform.core.model.Agent; import io.cattle.platform.core.model.StoragePool; import io.cattle.platform...
wlan0/cattle
code/iaas/logic/src/main/java/io/cattle/platform/process/agent/AgentRemove.java
Java
apache-2.0
2,106
/** * */ package org.hamster.weixinmp.model.menu; import java.util.List; import org.hamster.weixinmp.dao.entity.menu.WxMenuBtnEntity; /** * @author honey.zhao@aliyun.com * @version Aug 4, 2013 * */ public class WxMenuCreateJson { private List<WxMenuBtnEntity> button; public List<WxMenuBtnEntity> getButton...
Wingo7239/WeixinMultiPlatform
src/main/java/org/hamster/weixinmp/model/menu/WxMenuCreateJson.java
Java
apache-2.0
617
/* petpvcSTCPVCImageFilter.h Author: Benjamin A. Thomas Copyright 2017 Institute of Nuclear Medicine, University College London. 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...
UCL/PETPVC
lib/petpvcSTCPVCImageFilter.h
C
apache-2.0
6,237
# # actions.py: routines that actually run the svn client. # # Subversion is a tool for revision control. # See http://subversion.tigris.org for more information. # # ==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more con...
wbond/subversion
subversion/tests/cmdline/svntest/actions.py
Python
apache-2.0
113,603
# Filtering Issues An essential part of navigating GitHub with HubTurbo is having multiple panels, all filled with exactly the issues you're interested in. Controlling what shows up in panels is done by writing a filter which precisely expresses what it should contain. <img src="images/gettingStarted/panelExplanation...
Sumei1009/HubTurbo
docs/filters.md
Markdown
apache-2.0
9,854
/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/ /* */ /* The LLVM Compiler Infrastructure */ /* ...
Enseed/Reflect_build
build-clang/msvc/generated/include/llvm/Config/llvm-config.h
C
apache-2.0
3,614
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_72-internal) on Mon Mar 14 13:22:18 GMT 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class org.a...
apache/incubator-taverna-site
content/javadoc/taverna-language/org/apache/taverna/scufl2/xml/scufl/jaxb/class-use/OperationType.html
HTML
apache-2.0
14,122
# # 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 not us...
chamikaramj/incubator-beam
sdks/python/apache_beam/io/tfrecordio.py
Python
apache-2.0
10,445
#!/bin/sh # Windows Azure OS X Package: Create packages script # Copyright (C) 2012 Microsoft Corporation. All Rights Reserved. # # This builds the package as well as prepares the tarball file, etc. # This script is only used at build time, it is not part of the package. # CURRENT_NODE_DISTRIBUTION_VERSION=v0.6.17 #...
egamma/azure-sdk-for-node
tools/osx-setup/build.sh
Shell
apache-2.0
2,249
package daemon import ( "fmt" "sync" "time" "github.com/docker/docker/pkg/units" ) type State struct { sync.Mutex Running bool Paused bool Restarting bool Pid int ExitCode int StartedAt time.Time FinishedAt time.Time waitChan chan struct{} } func NewState() *State { return &State{ ...
mwhudson/docker
daemon/state.go
GO
apache-2.0
3,937
/* * Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien * * 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 * * ...
quangnguyen9x/bamboobsc_quangnv
qcharts-web/src/com/netsteadfast/greenstep/qcharts/action/utils/SelectItemFieldCheckUtils.java
Java
apache-2.0
1,369
import scala.language.existentials import scala.reflect.runtime.universe._ import internal._ object Test { trait ToS { final override def toString = getClass.getName } def f1 = { case class Bar() extends ToS; Bar } def f2 = { case class Bar() extends ToS; Bar() } def f3 = { class Bar() extends ToS; object Bar...
scala/scala
test/files/run/existentials3-new.scala
Scala
apache-2.0
2,619
/* * 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.mskcc.shenkers.control.track; /** * * @author sol */ public enum FileType { BAM, WIG, GTF, BED, FA...
shenkers/CrossBrowse
src/main/java/org/mskcc/shenkers/control/track/FileType.java
Java
apache-2.0
326
<?php require_once("../config/connect.php"); ?>
Elimean/DMXT
admin/manager_admin_classManager_Updata.php
PHP
apache-2.0
50
import React from 'react'; import { Box, WorldMap } from 'grommet'; export const SelectPlace = () => { const [places, setPlaces] = React.useState(); const onSelectPlace = (place) => { console.log('Selected', place); setPlaces([{ color: 'graph-1', location: place }]); }; return ( <Box align="cent...
HewlettPackard/grommet
src/js/components/WorldMap/stories/SelectPlace.js
JavaScript
apache-2.0
595
/** * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in co...
sheliu/openregistry
openregistry-api/src/main/java/org/openregistry/core/domain/OrganizationalUnit.java
Java
apache-2.0
1,279
package com.github.czyzby.lml.parser.impl.attribute.list; import com.badlogic.gdx.scenes.scene2d.ui.List; import com.github.czyzby.lml.parser.LmlParser; import com.github.czyzby.lml.parser.tag.LmlAttribute; import com.github.czyzby.lml.parser.tag.LmlTag; /** See {@link com.badlogic.gdx.scenes.scene2d.utils.Selection#...
tommyettinger/SquidSetup
src/main/java/com/github/czyzby/lml/parser/impl/attribute/list/RequiredLmlAttribute.java
Java
apache-2.0
1,036
/* * 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/cocoon
blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/acting/CopletSetDataAction.java
Java
apache-2.0
3,337
<?php include('dao.php'); global $dbh; $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $data = ''; $id = $_POST['id']; $status = $_POST['status']; if($status == "Failed" || $status == "Rejected"){ $failureReason = $_POST['failureReason']; $sql = $dbh->prepare(...
chebryan/Qsoft-Admin
core/callback_url.php
PHP
apache-2.0
1,383
/*! * ${copyright} */ // Provides the Design Time Metadata for the sap.m.Slider control sap.ui.define([], function () { "use strict"; return { name: { singular: "SLIDER_NAME", plural: "SLIDER_NAME_PLURAL" }, palette: { group: "INPUT", icons: { svg: "sap/m/designtime/Slider.icon.svg...
SAP/openui5
src/sap.m/src/sap/m/designtime/Slider.designtime.js
JavaScript
apache-2.0
709
# ThriftMux Protocol (experimental) > This config routes thriftmux from port 4400 to port 5005. ```yaml routers: - protocol: thriftmux experimental: true label: port-shifter dtab: | /svc => /$/inet/127.1/5005; servers: - port: 4400 ip: 0.0.0.0 ``` protocol: `thriftmux` Linkerd _experimentally_ sup...
linkerd/linkerd
linkerd/docs/protocol-thriftmux.md
Markdown
apache-2.0
1,046
/* Copyright (c) 2019 PaddlePaddle 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...
chengduoZH/Paddle
paddle/fluid/framework/ir/simplify_with_basic_ops_pass.h
C
apache-2.0
1,331
// Copyright 2011 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // // SMS encoding/decoding functions, which are based on examples from: // http://www.dreamfabric.com/sms/ #include "pdu.h" #include <string....
denidoank/avalonsailing
sms/pdu.c
C
apache-2.0
9,295
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using Sys...
slozier/ironpython2
Src/IronPython.Modules/math.cs
C#
apache-2.0
19,692
package org.jrivets.transaction; /** * The interface defines an action which can be executed in * {@link SimpleTransaction} context. * * @author Dmitry Spasibenko * */ public interface Action { /** * Executes the action itself. In case of fail should throw an exception * * @throws Throwabl...
obattalov/jrivets-common
src/main/java/org/jrivets/transaction/Action.java
Java
apache-2.0
891
/* * 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...
duesenklipper/wicket-security-1.4
examples/all_in_one/src/main/java/org/apache/wicket/security/examples/pages/MyUnSecurePage.java
Java
apache-2.0
1,765
/* * Copyright 2008-2014 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more contributor * license agreements. * * 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 Lice...
aerospike/concurrency-control-tic-tac-toe
node_modules/aerospike/aerospike-client-c/package/usr/local/include/aerospike/as_stream.h
C
apache-2.0
5,850
/* * Copyright 2019, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.admin.model; import io.fabric8.kubernetes.api.model.HasMetadata; import java.util.List; import java.util.Map; public interface AddressSpacePlan extends H...
EnMasseProject/enmasse
api-model/src/main/java/io/enmasse/admin/model/AddressSpacePlan.java
Java
apache-2.0
572
################################################################################ # Copyright (c) 2015-2019 Skymind, Inc. # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at # https://www.apache.org/licenses/LICENSE-2.0. # # Unless...
RobAltena/deeplearning4j
pydl4j/pydl4j/downloader.py
Python
apache-2.0
3,179
package org.carlspring.strongbox.xml.parsers; import org.carlspring.strongbox.url.ClasspathURLStreamHandler; import org.carlspring.strongbox.url.ClasspathURLStreamHandlerFactory; import org.carlspring.strongbox.xml.CustomTagService; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax....
AlexOreshkevich/strongbox
strongbox-configuration/src/main/java/org/carlspring/strongbox/xml/parsers/GenericParser.java
Java
apache-2.0
5,887
var zkUtil = require('../util'); var zkConstants = require('../constants'); var ZK = require('zookeeper').ZooKeeper; /** * @constructor * encapsulate the lock algorithm. I didn't want it exposed in the client. * @param {ZkClient} client client doing the locking. * @param {String} node name of lock. * @param {Fu...
racker/service-registry
node_modules/zookeeper-client/lib/algorithms/lock.js
JavaScript
apache-2.0
6,297
#!/usr/bin/env bash # Stop script if unbound variable found (use ${var:-} if intentional) set -u # Stop script if command returns non-zero exit code. # Prevents hidden errors caused by missing error code propagation. set -e usage() { echo "Common settings:" echo " --configuration <value> Build configuration:...
VSadov/roslyn
eng/common/build.sh
Shell
apache-2.0
5,023
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.10 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------...
domix/libgdx
extensions/gdx-bullet/jni/swig-src/com/badlogic/gdx/physics/bullet/btContactManifoldTypes.java
Java
apache-2.0
624
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config'; interface Blob {} declare class IoT1ClickProjec...
chrisradek/aws-sdk-js
clients/iot1clickprojects.d.ts
TypeScript
apache-2.0
20,275
using System.Collections.Generic; using System.Globalization; using System.Linq; using soothsayer.Infrastructure; using soothsayer.Infrastructure.IO; using soothsayer.Migrations; using soothsayer.Scanners; using soothsayer.Scripts; namespace soothsayer { public class OracleMigrator : IMigrator { ...
paybyphone/soothsayer
soothsayer/OracleMigrator.cs
C#
apache-2.0
10,677
package org.apache.uima.casviewer.core.internal; import java.util.List; /** * A node that contains a list of AnnotationObject(s) * */ public class AnnotationObjectsNode { protected List<AnnotationObject> annotationList; public AnnotationObjectsNode () { } public AnnotationObjectsNo...
apache/uima-sandbox
CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/core/internal/AnnotationObjectsNode.java
Java
apache-2.0
717
/* * JBoss, Home of Professional Open Source * Copyright 2012, Red Hat, Inc., 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 not use this fi...
antoinesd/weld-core
impl/src/main/java/org/jboss/weld/injection/producer/ProducerMethodProducer.java
Java
apache-2.0
5,998
package controllers; import play.shaded.ahc.org.asynchttpclient.AsyncHttpClient; import play.shaded.ahc.org.asynchttpclient.BoundRequestBuilder; import play.shaded.ahc.org.asynchttpclient.ListenableFuture; import play.shaded.ahc.org.asynchttpclient.ws.WebSocket; import play.shaded.ahc.org.asynchttpclient.ws.WebSocketL...
play2-maven-plugin/play2-maven-test-projects
play26/java/websocket-example-using-webjars-assets/test/controllers/WebSocketClient.java
Java
apache-2.0
2,469
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. # COM interop utility module import sys import nt from iptest.assert_util import * from iptest.file_util ...
slozier/ironpython2
Src/IronPython/Lib/iptest/cominterop_util.py
Python
apache-2.0
24,101
package com.badlogic.gdx.backends.jglfw; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Graphics.DisplayMode; import com.badlogic.gdx.backends.jglfw.JglfwGraphics.JglfwDisplayMode; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.utils.Array; import java.awt.GraphicsDevice; import java.awt.Graph...
domix/libgdx
backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwApplicationConfiguration.java
Java
apache-2.0
3,674
package com.xnx3.j2ee.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; import javax.persistence.Id; import javax.persistence.Table; /** * FriendLog entity. @author MyEclipse Persistence Tools *...
xnx3/iw_demo
src/com/xnx3/j2ee/entity/FriendLog.java
Java
apache-2.0
1,858
/* * Copyright 2012 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...
printminion/gdgsched
android/src/com/google/android/apps/iosched/ui/VendorDetailFragment.java
Java
apache-2.0
6,196
/** * Generated with Acceleo */ package org.wso2.developerstudio.eclipse.gmf.esb.parts.forms; // Start of user code for imports import org.eclipse.emf.common.util.Enumerator; import org.eclipse.emf.ecore.util.EcoreAdapterFactory; import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; import org.ecli...
prabushi/devstudio-tooling-esb
plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/forms/TaskPropertyPropertiesEditionPartForm.java
Java
apache-2.0
18,210
package CustomOreGen.Util; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; public abstract class MapCollection<K,V> implements Collection<V> { protected final Map<K,V> backingMap; public MapCollection(Map<K,V> backingMap) ...
reteo/CustomOreGen
src/main/java/CustomOreGen/Util/MapCollection.java
Java
artistic-2.0
3,588
class Helmfile < Formula desc "Deploy Kubernetes Helm Charts" homepage "https://github.com/roboll/helmfile" url "https://github.com/roboll/helmfile/archive/v0.142.0.tar.gz" sha256 "5475a041f0a1eb5777cc45e3fb06458ae76b1d4840aec89f2fed509d833d0cde" license "MIT" bottle do sha256 cellar: :any_skip_relocat...
sjackman/homebrew-core
Formula/helmfile.rb
Ruby
bsd-2-clause
2,316
import re # Python 2/3 compatibility hackery try: unicode except NameError: unicode = str def compile_url(url): clean_url = unicode(url).lstrip(u'/') return re.compile(clean_url) def compile_urls(urls): return [compile_url(expr) for expr in urls]
ghickman/incuna-auth
incuna_auth/middleware/utils.py
Python
bsd-2-clause
272
class Helmsman < Formula desc "Helm Charts as Code tool" homepage "https://github.com/Praqma/helmsman" url "https://github.com/Praqma/helmsman.git", tag: "v3.7.2", revision: "6d7e6ddb2c7747b8789dd72db7714431fe17e779" license "MIT" bottle do sha256 cellar: :any_skip_relocation, arm64_big_...
zyedidia/homebrew-core
Formula/helmsman.rb
Ruby
bsd-2-clause
1,369
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from math import log import argh import numpy as np from chemreac import ReactionDiffusion from chemreac.integrate import run from chemreac.util.plotting import plot_solver_linear_error def efield_cb(x, ...
bjodah/chemreac
examples/steady_state.py
Python
bsd-2-clause
4,970
package org.jvnet.jaxb2_commons.xml.bind.model.concrete; import java.util.ArrayList; import java.util.Collection; import java.util.IdentityHashMap; import java.util.List; import java.util.Map; import java.util.Set; import javax.activation.MimeType; import javax.xml.namespace.NamespaceContext; import javax.xml.namespa...
Stephan202/jaxb2-basics
runtime/src/main/java/org/jvnet/jaxb2_commons/xml/bind/model/concrete/CMInfoFactory.java
Java
bsd-2-clause
22,939
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | When "String" is called as part of a new expression, it is a constructor: it initialises the newly created object and The [[Value]] property of the newly constructed...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/String/S15.5.2.1_A1_T16.js
JavaScript
bsd-2-clause
4,487
cask 'anka-flow' do version '1.1.1.79' sha256 '9f91222458f5b7b52bee53a62e878faed4a4894ca02fe3d37b52b79b54c523fa' # d1efqjhnhbvc57.cloudfront.net was verified as official when first introduced to the cask url "https://d1efqjhnhbvc57.cloudfront.net/AnkaFlow-#{version}.pkg", referer: 'https://veertu.com/dow...
tedski/homebrew-cask
Casks/anka-flow.rb
Ruby
bsd-2-clause
1,593
/* * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
aosm/WebCore
Modules/mediastream/MediaTrackConstraints.cpp
C++
bsd-2-clause
2,294
# Generated by Django 3.1.4 on 2020-12-15 15:58 from django.db import migrations def copy_labels(apps, schema_editor): Trek = apps.get_model('trekking', 'Trek') Label = apps.get_model('common', 'Label') for trek in Trek.objects.all(): for label in trek.labels.all(): label2, created =...
makinacorpus/Geotrek
geotrek/trekking/migrations/0024_copy_labels.py
Python
bsd-2-clause
649
# rc-animate --- animate react element easily [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![gemnasium deps][gemnasium-image]][gemnasium-url] [![node version][node-image]][node-url] [![npm download][download-image]][download-url] ...
Axivity/openmovement-axsys-client
vendor/rc-tooltip/node_modules/rc-trigger/node_modules/rc-animate/README.md
Markdown
bsd-2-clause
4,852
class Cuetools < Formula desc "Utilities for .cue and .toc files" homepage "https://github.com/svend/cuetools" url "https://github.com/svend/cuetools/archive/1.4.1.tar.gz" sha256 "24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107" head "https://github.com/svend/cuetools.git" bottle do ce...
jdubois/homebrew-core
Formula/cuetools.rb
Ruby
bsd-2-clause
1,827
#define SOL_CHECK_ARGUMENTS 1 #include <sol.hpp> #include "assert.hpp" #include <iostream> int main(int, char*[]) { std::cout << "=== coroutine state transfer ===" << std::endl; sol::state lua; lua.open_libraries(); sol::function transferred_into; lua["f"] = [&lua, &transferred_into](sol::object t, sol::this_st...
Project-OSRM/osrm-backend
third_party/sol2/examples/coroutine_state.cpp
C++
bsd-2-clause
1,131
/* * w-driver-volleyball-lstm-evaluator.cpp * * Created on: Jul 13, 2015 * Author: msibrahi */ #include <iostream> #include <vector> #include <stdio.h> #include <string> #include <set> #include <set> #include <map> #include <iomanip> using std::vector; using std::set; using std::multiset; using std::map; us...
mostafa-saad/deep-activity-rec
eclipse-project/ibrahim16-deep-act-rec-part/apps/exePhase4.cpp
C++
bsd-2-clause
7,728
/* * Copyright (c) 2008-2011 Juli Mallett. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
diegows/wanproxy
event/test/action-cancel1/action-cancel1.cc
C++
bsd-2-clause
2,406
// // Created by 王晓辰 on 15/10/2. // #include "test_dirname.h" #include <ftxpath.h> #include "tester.h" bool test_dirname_path() { std::string path = "/a/b/c/d"; std::string dirname = "/a/b/c"; return dirname == ftx::path::dirname(path); } bool test_dirname_onename() { std::string name = "name"; retur...
XiaochenFTX/ftxpath
test/test_dirname.cpp
C++
bsd-2-clause
1,239
/* * Copyright (C) 2009 Google Inc. All rights reserved. * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retai...
aosm/WebCore
bindings/generic/RuntimeEnabledFeatures.cpp
C++
bsd-2-clause
5,200
package org.joshy.gfx.test.itunes; /** * Created by IntelliJ IDEA. * User: josh * Date: Jan 28, 2010 * Time: 9:20:01 PM * To change this template use File | Settings | File Templates. */ class Song { int trackNumber; int totalTracks; String name; String album; String artist; int duration; p...
tonykwok/leonardosketch.amino
src/org/joshy/gfx/test/itunes/Song.java
Java
bsd-2-clause
622
class Dxpy < Formula include Language::Python::Virtualenv desc "DNAnexus toolkit utilities and platform API bindings for Python" homepage "https://github.com/dnanexus/dx-toolkit" url "https://files.pythonhosted.org/packages/7e/d8/9529a045270fe2cee67c01fde759864b9177ecdd486d016c3a38863f3895/dxpy-0.320.0.tar.gz"...
filcab/homebrew-core
Formula/dxpy.rb
Ruby
bsd-2-clause
4,787
/* global define */ define([ 'jquery', 'underscore', './dist', './axis' ], function($, _, dist, axis) { var EditableFieldChart = dist.FieldChart.extend({ template: 'charts/editable-chart', toolbarAnimationTime: 200, formAnimationTime: 300, events: _.extend({ ...
chop-dbhi/cilantro
src/js/cilantro/ui/charts/editable.js
JavaScript
bsd-2-clause
8,396
# frozen_string_literal: true require_relative "commands/break" require_relative "commands/catch" require_relative "commands/condition" require_relative "commands/continue" require_relative "commands/debug" require_relative "commands/delete" require_relative "commands/disable" require_relative "commands/display" requi...
deivid-rodriguez/byebug
lib/byebug/commands.rb
Ruby
bsd-2-clause
1,337
#!/usr/bin/env python3 import canmatrix.formats from canmatrix.join import join_frame_by_signal_start_bit files = ["../test/db_B.dbc", "../test/db_A.dbc"] target = join_frame_by_signal_start_bit(files) # # export the new (target)-Matrix for example as .dbc: # canmatrix.formats.dumpp(target, "target.dbc") canmatrix....
ebroecker/canmatrix
examples/exampleJoin.py
Python
bsd-2-clause
357
module.exports = { "WMSC": { "WMSC_1_1_1" : require('./1.1.1/WMSC_1_1_1') } };
juanrapoport/ogc-schemas
scripts/tests/WMSC/WMSC.js
JavaScript
bsd-2-clause
84
package cz.metacentrum.perun.core.bl; import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Member; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.User; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum....
jirmauritz/perun
perun-core/src/main/java/cz/metacentrum/perun/core/bl/SearcherBl.java
Java
bsd-2-clause
4,338
cask "aleo-studio" do version "0.15.2" sha256 "ac33308a0ae210cb23cd90b67d92ccba02245d869a9be8477050e08b41a6c084" url "https://aleo-studio-releases.sfo2.digitaloceanspaces.com/latest/macos/x64/Aleo%20Studio-#{version}-mac.zip", verified: "aleo-studio-releases.sfo2.digitaloceanspaces.com/" name "Aleo Studi...
scottsuch/homebrew-cask
Casks/aleo-studio.rb
Ruby
bsd-2-clause
707
<?php class Kwc_Menu_EditableItems_Controller extends Kwf_Controller_Action_Auto_Kwc_Grid { protected $_buttons = array(); protected $_model = 'Kwc_Menu_EditableItems_Model'; protected $_defaultOrder = array('field' => 'pos', 'direction' => 'ASC'); protected function _initColumns() { $this-...
fraxachun/koala-framework
Kwc/Menu/EditableItems/Controller.php
PHP
bsd-2-clause
698
class Wimlib < Formula desc "Library to create, extract, and modify Windows Imaging files" homepage "https://wimlib.net/" url "https://wimlib.net/downloads/wimlib-1.13.1.tar.gz" sha256 "47f4bc645c1b6ee15068d406a90bb38aec816354e140291ccb01e536f2cdaf5f" bottle do cellar :any rebuild 1 sha256 "ea449...
wolffaxn/homebrew-core
Formula/wimlib.rb
Ruby
bsd-2-clause
1,434
#include "hamiltonian/Hamiltonian.hpp" namespace cpb { namespace { struct IsValid { template<class scalar_t> bool operator()(SparseMatrixRC<scalar_t> const& p) const { return p != nullptr; } }; struct Reset { template<class scalar_t> void operator()(SparseMatrixRC<scalar_t>& p) const { p.reset(); } }...
dean0x7d/pybinding
cppcore/src/hamiltonian/Hamiltonian.cpp
C++
bsd-2-clause
1,497
@extends('skins.bootstrap.admin.layout') @section('module') <section id="admin-site"> {{ Form::open(array( 'autocomplete' => 'off', 'role' => 'form', 'class' => 'form-horizontal', )) }} <div class="row"> <div class="col-sm-12"> <fieldset> <legend>{{ Lang::get(...
solitaryr/sticky-notes
app/views/skins/bootstrap/admin/site.blade.php
PHP
bsd-2-clause
14,466
Impact of disabling icmp redirect (ie re-enabling fastforward) on forwarding performance - Intel Xeon CPU E5-2697A v4 @ 2.60GHz (16c, 32t) - Chelsio 40-Gigabit T580-LP-CR (QSFP+ 40GBASE-SR4 (MPO 1x12 Parallel Optic)) - FreeBSD 13-HEAD r354862 (19/11/2019) - 5000 flows of smallest UDP packets (1 byte payload) `...
ocochard/netbenches
Xeon_E5-2697Av4_16Cores-Chelsio_T580/ip.redirect/results/13-r354862/README.md
Markdown
bsd-2-clause
1,366
// Copyright 2014 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. // Chrome-specific IPC messages for extensions. // Extension-related messages that aren't specific to Chrome live in // extensions/common/extension_messag...
ssaroha/node-webrtc
third_party/webrtc/include/chromium/src/chrome/common/extensions/chrome_extension_messages.h
C
bsd-2-clause
5,967
package cz.metacentrum.perun.webgui.tabs.cabinettabs; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.safehtml.shared.SafeHtmlUtils; im...
stavamichal/perun
perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/tabs/cabinettabs/PublicationDetailTabItem.java
Java
bsd-2-clause
19,457
@echo off ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Copyright (c) 2015, Synopsys, Inc. : :: All rights reserved. : :: : :: Red...
kit-transue/software-emancipation-discover
config/config/NT/sourcesafe/cm_unlock.bat
Batchfile
bsd-2-clause
2,096
// Copyright 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. #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ #include <stdint.h> #inclu...
ssaroha/node-webrtc
third_party/webrtc/include/chromium/src/chrome/browser/chromeos/fileapi/file_system_backend.h
C
bsd-2-clause
7,738
/*- * Copyright (c) 2003, 2005 Alan L. Cox <alc@cs.rice.edu> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * noti...
splbio/wanproxy
network/uinet/sys/amd64/include/sf_buf.h
C
bsd-2-clause
2,166
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'', include('project.core.urls', namespace='core')), )
pombredanne/django-boilerplate-1
project/urls.py
Python
bsd-2-clause
248
"""Auxiliary functions.""" import cPickle as pickle import os import sys import gzip import urllib import numpy import theano import theano.tensor as T import theano.sandbox.cuda from athenet.utils import BIN_DIR, DATA_DIR def load_data_from_pickle(filename): """Load data from pickle file. :param filename...
heurezjusz/Athena
athenet/utils/misc.py
Python
bsd-2-clause
7,019
#pragma once //======================================================================== // ObstacleEntity.h // // This code is part of Minotower Games Engine 1.0v // // (c) Copyright 2012 Muralev Evgeny //======================================================================== #include "Entities\Entity.h" class Obsta...
Solidstatewater/Anubis-Engine
VSMDemo/Source/Game/Entities/ObstacleEntity/ObstacleEntity.h
C
bsd-2-clause
403
<?php $player = new stdClass(); $player->name = "Chuck"; $player->score = 0; $player->score++; print_r($player); class Player { public $name = "Sally"; public $score = 0; } $p2 = new Player(); $p2->score++; print_r($p2);
csev/wa4e
code/objects/scratch.php
PHP
bsd-2-clause
236
using Example.Domain.Domain; using LightBDD.Framework; using LightBDD.Framework.Parameters; using LightBDD.XUnit2; namespace Example.LightBDD.XUnit2.Features { public partial class Calculator_feature : FeatureFixture { private Calculator _calculator; private void Given_a_calculator() ...
Suremaker/LightBDD
examples/Example.LightBDD.XUnit2/Features/Calculator_feature.Steps.cs
C#
bsd-2-clause
1,059
``` x forwarding.inet4.pps + forwarding.inet6.pps +--------------------------------------------------------------------------+ |+ + + x + + x x x x | | |___________________A__M_______________|| ||_______________M______A______________...
ocochard/netbenchs
Xeon_E5-2650v4_2x12Cores-Mellanox_ConnectX-3/forwarding-pf-ipfw/results/fbsd11.1-yandex/README.md
Markdown
bsd-2-clause
1,602
package com.danielwestheide.slickeffecttypes import com.danielwestheide.slickeffecttypes.db.DatabaseModule import com.danielwestheide.slickeffecttypes.statuses._ import scala.concurrent.Await import scala.concurrent.duration._ object App extends App with SchemaCreation { val databaseModule = new DatabaseModule ...
dwestheide/slick-effect-types
src/main/scala/com/danielwestheide/slickeffecttypes/App.scala
Scala
bsd-2-clause
818
class Nsd < Formula desc "Name server daemon" homepage "https://www.nlnetlabs.nl/projects/nsd/" url "https://www.nlnetlabs.nl/downloads/nsd/nsd-4.2.2.tar.gz" sha256 "83b333940a25fe6d453bcac6ea39edfa244612a879117c4a624c97eb250246fb" revision 1 bottle do sha256 "ca69db82461ccb04f94857b03715b967f80896539d...
zmwangx/homebrew-core
Formula/nsd.rb
Ruby
bsd-2-clause
1,093
class Ejabberd < Formula desc "XMPP application server" homepage "https://www.ejabberd.im" url "https://static.process-one.net/ejabberd/downloads/20.03/ejabberd-20.03.tgz" sha256 "1a54ef1cdc391a25b81c3ed3e9e8aa43434a8d4549b4e86c54af3ecf121d0144" bottle do cellar :any sha256 "9518b32a672d6a756a2959489...
BrewTestBot/homebrew-core
Formula/ejabberd.rb
Ruby
bsd-2-clause
2,601
# encoding: utf-8 from django.db.utils import IntegrityError, DatabaseError try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() import datetime from south.db import db from south.v2 import SchemaMi...
zekone/dj_pybb
pybb/migrations/0023_auto__add_unique_pollansweruser_poll_answer_user.py
Python
bsd-2-clause
12,958