code
stringlengths
4
1.01M
language
stringclasses
2 values
/* * Copyright (C) 2013 Leszek Mzyk * Modifications Copyright (C) 2015 eccyan <g00.eccyan@gmail.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/lic...
Java
CREATE TABLE port_group ( id INTEGER CONSTRAINT port_group_id_nn NOT NULL, network_id INTEGER CONSTRAINT port_group_network_id_nn NOT NULL, network_tag INTEGER CONSTRAINT port_group_network_tag_nn NOT NULL, usage VARCHAR2(32) CONSTRAINT port_group_usage_nn NOT NULL, creation_date DATE CONSTRAINT port_group_cr_date...
Java
/* $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")...
Java
/* * 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")...
Java
// Code generated by protoc-gen-go. DO NOT EDIT. // source: micro/go-plugins/registry/gossip/proto/gossip.proto package gossip import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf ...
Java
/* * 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 ...
Java
/* * Autopsy Forensic Browser * * Copyright 2011-2015 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * 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...
Java
#!/usr/bin/env python # # Copyright 2015-2021 Flavio Garcia # # 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...
Java
# 如何在本地运行RTK定位模块 本文档提供了如何在本地运行RTK定位模块的方法。 ## 1. 事先准备 - 从[GitHub网站](https://github.com/ApolloAuto/apollo)下载Apollo源代码 - 按照[教程](../quickstart/apollo_software_installation_guide.md)设置Docker环境 - 从[Apollo数据平台](http://data.apollo.auto/?name=sensor%20data&data_key=multisensor&data_type=1&locale=en-us&lang=en)下载多传感器融合定位dem...
Java
package String::CRC32; require Exporter; require DynaLoader; @ISA = qw(Exporter DynaLoader); $VERSION = 1.5; # Items to export into callers namespace by default @EXPORT = qw(crc32); # Other items we are prepared to export if requested @EXPORT_OK = qw(); bootstrap String::CRC32; 1;
Java
/* * Package : org.ludo.codegenerator.core.gen.bean * Source : IStereotype.java */ package org.ludo.codegenerator.core.gen.bean; import java.io.Serializable; import java.util.Date; import java.util.ArrayList; import java.util.List; import org.ludo.codegenerator.core.gen.bean.impl.AttributBean; import org.ludo.c...
Java
<!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 (version 1.7.0_147-icedtea) on Tue Mar 27 20:06:55 PDT 2012 --> <title>Uses of Class Img</title> <meta name="date" content="2012-03-27"> <link rel="st...
Java
/* AngularJS v1.2.10 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(Z,Q,r){'use strict';function F(b){return function(){var a=arguments[0],c,a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.2.10/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)a=a+(1==c?"?":"&")+"p"+(c-1)+"="+encodeURI...
Java
package org.glob3.mobile.specific; import java.util.Map; import org.glob3.mobile.generated.IByteBuffer; import org.glob3.mobile.generated.IJSONParser; import org.glob3.mobile.generated.JSONArray; import org.glob3.mobile.generated.JSONBaseObject; import org.glob3.mobile.generated.JSONBoolean; import org.glob3.mobile...
Java
/* Copyright (c) Citrix Systems, 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 retain the above * copyright notice...
Java
<?php declare(strict_types=1); /* * Studio 107 (c) 2018 Maxim Falaleev * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Mindy\Orm\Tests\Databases\Sqlite; use Mindy\Orm\Tests\QueryBuilder\QueryTest; class SqliteQueryTest...
Java
# frozen_string_literal: true require_relative "../../helpers/file" module Byebug # # Reopens the +info+ command to define the +file+ subcommand # class InfoCommand < Command # # Information about a particular source file # class FileCommand < Command include Helpers::FileHelper in...
Java
#include "private.h" #include <Elementary.h> #include "config.h" #include "termio.h" #include "media.h" #include "options.h" #include "options_wallpaper.h" #include "extns.h" #include "media.h" #include "main.h" #include <sys/stat.h> typedef struct _Background_Item { const char *path; Eina_Bool selected; Elm...
Java
/* * Copyright (C) 2011 Google Inc. All rights reserved. * Copyright (C) Research In Motion Limited 2011. 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 sour...
Java
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
Java
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Connoisseur</title> <link href="styles/style.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <div id="container"> <header> <nav> <ul id="nav"> <li><a href="inde...
Java
/* * Copyright (C) 1997 Martin Jones (mjones@kde.org) * (C) 1997 Torben Weis (weis@kde.org) * (C) 1998 Waldo Bastian (bastian@kde.org) * (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010...
Java
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- template designed by Marco Von Ballmoos --> <title>Docs for page edit_clock.php</title> ...
Java
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import logging import traceback import mallet_lda class MalletTagTopics(mallet_lda.MalletLDA): """ Topic modeling with separation based on tags """ def _basic_params(self): self.name = 'mallet_lda_tags' self.categorical ...
Java
cask 'kanmusmemory' do version '0.15' sha256 'af64ae0846ab0b4366693bc602a81ba7e626bafee820862594c4bcbf92acfcef' url "http://relog.xii.jp/download/kancolle/KanmusuMemory-#{version}-mac.dmg" appcast 'https://github.com/ioriayane/KanmusuMemory/releases.atom', :checkpoint => 'f8cddbd8afc99bff82204851ed91...
Java
class Zmap < Formula desc "Network scanner for Internet-wide network studies" homepage "https://zmap.io" url "https://github.com/zmap/zmap/archive/v2.1.1.tar.gz" sha256 "29627520c81101de01b0213434adb218a9f1210bfd3f2dcfdfc1f975dbce6399" revision 1 head "https://github.com/zmap/zmap.git" bottle do rebu...
Java
import sys import os import subprocess import string printable = set(string.printable) def sanitize(txt): txt = ''.join(filter(lambda c: c in printable, txt)) return txt def traverse(t, outfile): print>>outfile, sanitize(t.code+'\t'+t.description) for c in t.children: traverse(c, outfile) de...
Java
<?php class GuildWarsMenu extends btThemeMenu { public function __construct($sqlConnection) { parent::__construct("guildwars", $sqlConnection); } public function displayLink() { if($this->intMenuSection == 3) { $menuLinkInfo = $this->menuItemObj->objLink->get_info(); $checkURL = p...
Java
Changelog ========= 3.x (unreleased) ---------------- * Allow including many templates without reaching recursion limits. Merge of [#787](https://github.com/mozilla/nunjucks/pull/787). Thanks Gleb Khudyakov. * Allow explicitly setting `null` (aka `none`) as the value of a variable; don't ignore that value and l...
Java
cask :v1 => 'chunkulus' do version :latest sha256 :no_check url 'http://presstube.com/screensavers/presstube-chunkulus-mac.zip' homepage 'http://presstube.com/blog/2011/chunkulus/' license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder screen_save...
Java
// I would prefer this to be delete.lua and load it using NSBundle // But I failed. I don't know why. static const char * deletelua = "" "-- This script receives three parameters, all encoded with\n" "-- MessagePack. The decoded values are used for deleting a model\n" "-- instance in Redis and removing any reference t...
Java
/* Copyright (c) Citrix Systems, 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 retain the above * copyright notice, this l...
Java
class PureFtpd < Formula desc "Secure and efficient FTP server" homepage "https://www.pureftpd.org/" url "https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.49.tar.gz" sha256 "767bf458c70b24f80c0bb7a1bbc89823399e75a0a7da141d30051a2b8cc892a5" revision 1 bottle do cellar :any sha256 "...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>DbSync: DbSync_DbAdapter_AdapterInterface Interface Reference</title> <...
Java
<?php $service_doc['departamentos|departments'] = array( 'en' => array ( 'pattern' => '/ubigeo/departments', 'description' => 'Lists the ubigeo codes for all departments', ), 'es' => array( 'patron' => '/ubigeo/departamentos', 'descripción' => 'Lista los códigos de ubigeo de...
Java
#!/usr/bin/env python """Bootstrap setuptools installation To use setuptools in your package's setup.py, include this file in the same directory and add this to the top of your setup.py:: from ez_setup import use_setuptools use_setuptools() To require a specific version of setuptools, set a download mirror, ...
Java
import sys import unittest from streamlink.plugin.api.utils import itertags def unsupported_versions_1979(): """Unsupported python versions for itertags 3.7.0 - 3.7.2 and 3.8.0a1 - https://github.com/streamlink/streamlink/issues/1979 - https://bugs.python.org/issue34294 """ v = sys.v...
Java
import { inject, injectable } from 'inversify'; import { ServiceIdentifiers } from '../../../container/ServiceIdentifiers'; import * as ESTree from 'estree'; import { TNodeWithStatements } from '../../../types/node/TNodeWithStatements'; import { TObjectExpressionKeysTransformerCustomNodeFactory } from '../../../types...
Java
# $FreeBSD: soc2013/dpl/head/usr.sbin/nfsdumpstate/Makefile 192854 2009-05-26 15:19:04Z rmacklem $ PROG= nfsdumpstate MAN= nfsdumpstate.8 .include <bsd.prog.mk>
Java
function(modal) { function ajaxifyLinks (context) { $('a.address-choice', context).click(function() { modal.loadUrl(this.href); return false; }); $('.pagination a', context).click(function() { var page = this.getAttribute("data-page"); ...
Java
require 'spec_helper' describe Hbc::CLI do it "lists the taps for Casks that show up in two taps" do listing = Hbc::CLI.nice_listing(%w[ caskroom/cask/adium caskroom/cask/google-chrome passcod/homebrew-cask/adium ]) expect(listing).to eq(%w[ caskroom/cask/adium google-chrom...
Java
# $FreeBSD: soc2013/dpl/head/lib/libiconv_modules/UTF1632/Makefile 219062 2011-02-25 00:04:39Z gabor $ SHLIB= UTF1632 SRCS+= citrus_utf1632.c CFLAGS+= --param max-inline-insns-single=32 .include <bsd.lib.mk>
Java
class Fio < Formula desc "I/O benchmark and stress test" homepage "https://github.com/axboe/fio" url "https://github.com/axboe/fio/archive/fio-3.19.tar.gz" sha256 "809963b1d023dbc9ac7065557af8129aee17b6895e0e8c5ca671b0b14285f404" license "GPL-2.0" bottle do cellar :any_skip_relocation sha256 "252dd...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
Java
/**************************************************************************** * arch/arm/src/nuc1xx/nuc_lowputc.c * * Copyright (C) 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permi...
Java
require "language/haskell" class Purescript < Formula include Language::Haskell::Cabal desc "Strongly typed programming language that compiles to JavaScript" homepage "http://www.purescript.org" url "https://github.com/purescript/purescript/archive/v0.11.7.tar.gz" sha256 "56b715acc4b92a5e389f7ec5244c9306769...
Java
# Keywords This listing explains the usage of every Pony keyword. |Keyword | Usage| | --- | --- | | actor | defines an actor | as | conversion of a value to another Type (can raise an error) | be | behavior, executed asynchronously | box | default reference capability – object is readable, but not writable | break | ...
Java
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Dirk Mueller (mueller@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it ...
Java
/* * Copyright (c) 2008-2011, Matthias Mann * * 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 retain the above copyright notice, * this...
Java
/* * Copyright (c) 2001 Alexander Kabaev * 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 con...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Qtc.Classes.Types</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="t...
Java
using System; using System.Collections.Generic; namespace NMaier.SimpleDlna.Utilities { public abstract class Repository<TInterface> where TInterface : class, IRepositoryItem { private static readonly Dictionary<string, TInterface> items = BuildRepository(); private static Dictionary<string, TI...
Java
// Package tag. package tag println("tag27")
Java
namespace XenAdmin.Dialogs { partial class AboutDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
Java
# Copyright (c) 2013, Ruslan Baratov # All rights reserved. # !!! DO NOT PLACE HEADER GUARDS HERE !!! include(hunter_add_version) include(hunter_cacheable) include(hunter_download) include(hunter_pick_scheme) include(hunter_cmake_args) hunter_add_version( PACKAGE_NAME GTest VERSION "1.7.0-hunter" ...
Java
class Cpm < Formula desc "Fast CPAN module installer" homepage "https://metacpan.org/pod/cpm" url "https://cpan.metacpan.org/authors/id/S/SK/SKAJI/App-cpm-0.997002.tar.gz" sha256 "19de1224b5c86d566eb0b85767775efb5bbab82ce98ee8c44f8843f26aabbbab" license any_of: ["Artistic-1.0-Perl", "GPL-1.0-or-later"] head...
Java
package tcp import ( "expvar" "fmt" "time" "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/libbeat/logp" "github.com/elastic/beats/packetbeat/flows" "github.com/elastic/beats/packetbeat/protos" "github.com/tsg/gopacket/layers" ) const TCP_MAX_DATA_IN_STREAM = 10 * (1 << 20) const ( Tc...
Java
import batoid import numpy as np from test_helpers import timer, do_pickle, all_obj_diff, init_gpu, rays_allclose @timer def test_properties(): rng = np.random.default_rng(5) for i in range(100): R = rng.normal(0.0, 0.3) # negative allowed sphere = batoid.Sphere(R) assert sphere.R == ...
Java
/* $Id$ */ #include "platform.h" #include "di_defs.h" #include "pc.h" #include "dqueue.h" #include "adapter.h" #include "entity.h" #include "um_xdi.h" #include "um_idi.h" #include "debuglib.h" #include "divasync.h" #define DIVAS_MAX_XDI_ADAPTERS 64 /* -----------------------------------------------------------------...
Java
cask 'mpv' do version '0.23.0' sha256 '9c4f5873fc955920c3d570277a2a74f527a9073c27ee1a5eeb3270a1180961e8' # laboratory.stolendata.net/~djinn/mpv_osx was verified as official when first introduced to the cask url "https://laboratory.stolendata.net/~djinn/mpv_osx/mpv-#{version}.tar.gz" appcast 'https://laborato...
Java
--- title: News --- {% include header.html %} <div class="hmargin" style="float: right"><a class="groups_link" style="color: #fff" href="https://groups.google.com/group/capnproto-announce">Stay Updated</a></div> <h1>News</h1> {% for post in site.posts %} <h2><a href="{{ site.baseurl }}.{{ post.url }}">{{ post.title...
Java
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: Soeren Sonnenburg, Heiko Strathmann, Yuyu Zhang, Viktor Gal, * Thoralf Klein, Fernando Iglesias, Sergey Lisitsyn */ #ifndef __STREAMING_ASCIIFILE_H__ #define __STREAMING_ASCIIFILE_H__ #include <shogun/lib/confi...
Java
#!/bin/bash exec newrelic-admin run-program python manage.py celeryd --maxtasksperchild=${CELERY_MAX_TASKS_PER_CHILD:-100}
Java
#!/usr/bin/env python3 import sys import re import mpmath as mp mp.dps=250 mp.mp.dps = 250 if len(sys.argv) != 2: print("Usage: format_CIAAW.py ciaawfile") quit(1) path = sys.argv[1] atomre = re.compile(r'^(\d+) +(\w\w*) +(\w+) +\[?(\d+)\]?\*? +(.*) *$') isore = re.compile(r'^(\d+)\*? +(\[?\d.*.*\]?) *$'...
Java
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Java
<?php namespace common\models; use common\modules\i18n\Module; /** * This is the model class for table "magazine_item". * * @property integer $id * @property integer $magazine_id * @property string $image * @property integer $sort * * @property Magazine $magazine */ class MagazineItem extends Bean { /*...
Java
import warnings import unittest import sys from nose.tools import assert_raises from gplearn.skutils.testing import ( _assert_less, _assert_greater, assert_less_equal, assert_greater_equal, assert_warns, assert_no_warnings, assert_equal, set_random_state, assert_raise_message) fro...
Java
// Copyright (c) 2012 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. #include "media/filters/reference_audio_renderer.h" #include <math.h> #include "base/bind.h" #include "base/synchronization/waitable_event.h" names...
Java
<?php namespace ValuSoTest\TestAsset; use ValuSo\Annotation; /** * @Annotation\Exclude */ abstract class AbstractExcludedService { public function excluded() { return true; } }
Java
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="tr"> <context> <name>BMMDialog</name> <message> <location filename="../BMMDialog.ui" line="14"/> <source>Manage Bookmarks</source> <translation>Yer İmlerini Yönet</translation> </message> <message> ...
Java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__wchar_t_alloca_loop_73a.cpp Label Definition File: CWE124_Buffer_Underwrite.stack.label.xml Template File: sources-sink-73a.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated...
Java
import React from 'react'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import AddComment from './AddComment'; const USER = { user: { user: 'RSwanson', username: 'Ron_Swanson', imageURL: '', users: [ { name: 'April Ludwig', url: 'aprilL@parksdept.com', d...
Java
/* -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of the com...
Java
--pass out-of-range data of string type to the parameter --1. [error] out-of-range argument: timestamptz type select last_day(timestamptz'23:00:00 13/01'); select last_day(timestamptz'04:14:07 1/19/2038'); select last_day(timestamptz'03:15:07 1/19/2038'); select last_day(timestamptz'03:14:08 1/19/2038'); select l...
Java
/************************************************************* * Project: NetCoreCMS * * Web: http://dotnetcorecms.org * * Author: OnnoRokom Software Ltd. * * Website: www.onnorokomsoftware.com * * ...
Java
# -*- coding: utf-8 -*- # # アルゴリズムデザインコンテストのさまざまな処理 # # Copyright (C) 2015 Fujitsu import numberlink from datastore import * from hashlib import sha1, sha256 from flask import make_response, render_template import random import datetime from tz import gae_datetime_JST from define import DEFAULT_YEAR def adc_response...
Java
{% extends "hub/base.html" %} {% load staticfiles %} {% block pagetitle %}Users{% endblock %} {% block content %} <div class="dashhead"> <div class="dashhead-titles"> <h6 class="dashhead-subtitle">UoP Botswana MoH / TB Training</h6> <h2 class="dashhead-title">Users</h2> </div> </div> <hr class="m-t"> <div...
Java
#include "mex.h" #include <iostream> #include "drakeMexUtil.h" #include "RigidBodyManipulator.h" #include "math.h" using namespace Eigen; using namespace std; /* * mex interface for bullet collision detection * closest-distance for each body to all other bodies (~(NB^2-NB)/2 points) * * MATLAB signature: * * [x...
Java
#include "MutableValueSetterProxy.h" #include <jsi/jsi.h> #include "MutableValue.h" #include "SharedParent.h" using namespace facebook; namespace reanimated { void MutableValueSetterProxy::set( jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &newValue) { auto propName = name.utf8(rt); ...
Java
/* * Copyright (c) 2014, Ford Motor Company * 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 retain the above copyright notice, this * list of condit...
Java
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>colour.models.cie_xyy Module &mdash; Colour 0.3.4 documentation</title> <link rel="stylesheet" href="_static/basic.css" type="text/css" /> <link r...
Java
Because the ```gpu_test_expectations``` directory is based on parts of Chromium's ```gpu/config`` directory, we want to keep a patch of the changes added to make it compile with ANGLE. This will allow us to merge Chromium changes easily in our ```gpu_test_expectations```. In order to make a change to this directory, d...
Java
local Dta = select(2, ...) Dta.Lang.English = {} local English = Dta.Lang.English ---------------------------------------- --Help ---------------------------------------- ---Intro------------------------------------------------------------------ English.Intro = {} English.Intro.Label = "Intro" English.Intro.Text1 = "...
Java
from constance.admin import ConstanceForm from django.forms import fields from django.test import TestCase class TestForm(TestCase): def test_form_field_types(self): f = ConstanceForm({}) self.assertIsInstance(f.fields['INT_VALUE'], fields.IntegerField) self.assertIsInstance(f.fields['B...
Java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_struct_54b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml Template File: sources-sinks-54b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Rout...
Java
<script> var xx = []; var x = ["aa", "bb"]; var j=Math.random(); for(var i=0; i <2; i++){ for(var k=0; k<2; k++) { if(i==k) xx[i] = x[k]; } } // xx = ["aa", "bb"] </script>
Java
// Copyright (c) 2014-2016, The Monero Project // // 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 o...
Java
<?php namespace app\models; use Yii; use app\models\general\GeneralLabel; use app\models\general\GeneralMessage; /** * This is the model class for table "tbl_ref_jawatan_induk". * * @property integer $id * @property string $desc * @property integer $aktif * @property integer $created_by * @property integer $...
Java
// Copyright 2010 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...
Java
/* sbt -- Simple Build Tool * Copyright 2009, 2010 Mark Harrah */ package sbt package compiler import scala.util import java.io.File import CompilerArguments.{abs, absString, BootClasspathOption} /** Forms the list of options that is passed to the compiler from the required inputs and other options. * The direc...
Java
// Copyright (c) 2012 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. #include "chrome/browser/chromeos/login/version_info_updater.h" #include <vector> #include "base/bind.h" #include "base/bind_helpers.h" #include "ba...
Java
// Copyright (c) 2016 Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Java
// 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. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8TestSpecialOperations.h" #include "bindings...
Java
/*============================================================================* * * * This file is part of the Zoto Software suite. * * * * Copyright (C) 2004 Zoto, Inc. 123 South Hudson, OKC, OK 73102 * ...
Java
/* * $Id$ */ /* Copyright (c) 2000-2004 Board of Trustees of Leland Stanford Jr. University, all rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including...
Java
# - Find LevelDB # # LEVELDB_INCLUDE_DIRS - List of LevelDB includes. # LEVELDB_LIBRARIES - List of libraries when using LevelDB. # LEVELDB_FOUND - True if LevelDB found # Look for the header of file. find_path(LEVELDB_INCLUDE NAMES leveldb/db.h PATHS $ENV{LEVELDB_ROOT}/include /...
Java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE90_LDAP_Injection__w32_wchar_t_connect_socket_31.c Label Definition File: CWE90_LDAP_Injection__w32.label.xml Template File: sources-sink-31.tmpl.c */ /* * @description * CWE: 90 LDAP Injection * BadSource: connect_socket Read data using a connect socket (clie...
Java
/* MobileRobots Advanced Robotics Interface for Applications (ARIA) Copyright (C) 2004, 2005 ActivMedia Robotics LLC Copyright (C) 2006, 2007 MobileRobots Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fr...
Java
// Copyright 2019 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_MEDIA_WEBRTC_SAME_ORIGIN_OBSERVER_H_ #define CHROME_BROWSER_MEDIA_WEBRTC_SAME_ORIGIN_OBSERVER_H_ #include "base/callback.h" #inclu...
Java
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="html/html; charset=utf-8" /> <title>LeapVector Class Reference</title> <meta id="xcode-display" name="xcode-display" content="render"/> <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" /> <link rel="stylesheet" ...
Java