text
stringlengths
608
8.17k
// Code generated by smithy-go-codegen DO NOT EDIT. package finspace import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Adds metadata tags to a...
/* * Hisilicon clock separated gate driver * * Copyright (c) 2012-2013 Hisilicon Limited. * Copyright (c) 2012-2013 Linaro Limited. * * Author: Haojian Zhuang <haojian.zhuang@linaro.org> * Xin Li <li.xin@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the ter...
/** * The Forgotten Server - a free and open-source MMORPG server emulator * Copyright (C) 2015 Mark Samman <mark.samman@gmail.com> * * 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 Free Software Foundation; eithe...
/* Helpparse.c - help file parser. Copyright (C) 2000 Imre Leber 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 Free Software Foundation; either version 2 of the License, or (at your option) an...
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging __author__ = 'Tim Schneider <tim.schneider@northbridge-development.de>' __copyright__ = "Copyright 2015, Northbridge Development Konrad & Schneider GbR" __credits__ = ["Tim Schneider", ] __maintainer__ = "Tim Schneider" __email__ = "mail@northbridge-developm...
/* * Copyright 2013, The Sporting Exchange Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
// Code generated by smithy-go-codegen DO NOT EDIT. package managedblockchain import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/managedblockchain/types" smithy "github.com/awslabs/smithy-go" "g...
<?php defined('BASEPATH') or exit('No direct script access allowed'); /* * ============================================================================== * Author : Sheik * Email : info@srampos.com * For : SRAM POS * Web : http://srammram.com * ===========================================...
[stime](../README.md) › [Globals](../globals.md) › ["Format/Minute"](../modules/_format_minute_.md) › [Minute](_format_minute_.minute.md) # Class: Minute Minute format ## Hierarchy * [Format](_format_.format.md) ↳ **Minute** ## Index ### Methods * [format](_format_minute_.minute.md#format) * [formatNumber](_f...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_wchar_t_alloca_loop_33.cpp Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml Template File: sources-sink-33.tmpl.cpp */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSourc...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34011 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
/** @file appmodule.cpp @brief This file is part of Kalinka mediaserver. @author Ivan Murashko <ivan.murashko@gmail.com> Copyright (c) 2007-2012 Kalinka Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft...
## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' require 'msf/core/handler/reverse_tcp' require 'msf/base/sessions/command_shell' require 'msf/base/sessions/command_shell_options' module Metasploit3 include M...
/** * Copyright (c) 2019 Horizon Robotics. All rights reserved. * @File: LmkPosePostPredictor.cpp * @Brief: definition of the LmkPosePostPredictor * @Author: zhengzheng.ge * @Email: zhengzheng.ge@horizon.ai * @Date: 2019-07-17 14:27:05 * @Last Modified by: zhengzheng.ge * @Last Modified time: 2019-07-17 15:18:1...
# coding=utf-8 # Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licen...
"""Get example scripts, notebooks, and data files.""" import argparse from datetime import datetime, timedelta from glob import glob import json import os import pkg_resources from progressbar import ProgressBar try: # For Python 3.0 and later from urllib.request import urlopen except ImportError: # Fall b...
const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const session = require('express-session'); const MYSQLStore = require('express-session-sequelize')(session.Store); const next = require('next'); const compression = require('compression'); const helmet = requir...
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import sys from spack import * class ScalapackBase(CMakePackage): """Base class for building ScaLAPACK, shared with...
import os from typing import Optional from pytorchltr.utils.downloader import DefaultDownloadProgress from pytorchltr.utils.downloader import Downloader from pytorchltr.utils.file import validate_and_download from pytorchltr.utils.file import extract_zip from pytorchltr.utils.file import dataset_dir from pytorchltr.da...
/* Package: dyncall Library: test File: test/callf/main.c Description: License: Copyright (c) 2007-2021 Daniel Adler <dadler@uni-goettingen.de>, Tassilo Philipp <tphilipp@potion-studios.com> Permission to use, copy, modify, and distribute this software for any purpose with or...
// This is a library to be used to represent a Graph and various measurments for a Graph // and to perform optimization using Particle Swarm Optimization (PSO) // Copyright (C) 2008, 2015 // Patrick Olekas - polekas55@gmail.com // Ali Minai - minaiaa@gmail.com // // This program is free softwa...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. // http://code.google.com/p/protobuf/ // // 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:...
/* * Copyright (C) 2015 - 2016 VREM Software Development <VREMSoftwareDevelopment@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.or...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__char_connect_socket_ifstream_83_bad.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-83_bad.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: connect_socket Re...
/** * Tiny LRU cache for Client or Server * * @author Jason Mulligan <jason.mulligan@avoidwork.com> * @copyright 2018 * @license BSD-3-Clause * @link https://github.com/avoidwork/tiny-lru * @version 5.0.5 */ "use strict"; (function (global) { const empty = null; class LRU { constructor (max, ttl) { thi...
/* * SpanDSP - a series of DSP components for telephony * * super_tone_rx.h - Flexible telephony supervisory tone detection. * * Written by Steve Underwood <steveu@coppice.org> * * Copyright (C) 2003 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or mo...
import sys import logging import urlparse import urllib import redis from flask import Flask, current_app from flask_sslify import SSLify from werkzeug.contrib.fixers import ProxyFix from werkzeug.routing import BaseConverter from statsd import StatsClient from flask_mail import Mail from flask_limiter import Limiter ...
from datetime import timedelta from random import randint from ichnaea.data.tasks import ( monitor_api_key_limits, monitor_api_users, monitor_queue_size, ) from ichnaea import util class TestMonitor(object): def test_monitor_api_keys_empty(self, celery, stats): monitor_api_key_limits.delay()...
""" Test command line commands. """ from pathlib import Path from subprocess import PIPE, Popen __author__ = "Sergey Vartanov" __email__ = "me@enzet.ru" from xml.etree import ElementTree from xml.etree.ElementTree import Element from map_machine.ui.cli import COMMAND_LINES LOG: bytes = ( b"INFO Constructing way...
require File.dirname(__FILE__) + '/../../spec_helper' # include Remote class TestEC2Class include PoolParty::Remote::RemoterBase include Ec2 include CloudResourcer include CloudDsl def keypair "fake_keypair" end def ami;"ami-abc123";end def size; "small";end def security_group; "default"...
/** * \file main.cpp * \brief An example and benchmark of AmgX and PETSc with Poisson system. * * The Poisson equation we solve here is * \nabla^2 u(x, y) = -8\pi^2 \cos{2\pi x} \cos{2\pi y} * for 2D. And * \nabla^2 u(x, y, z) = -12\pi^2 \cos{2\pi x} \cos{2\pi y} \cos{2\pi z} * for 3D. * * The exact...
<?php /* * This file is part of the PHPBench package * * (c) Daniel Leech <daniel@dantleech.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace PhpBench\Tests\Unit\Progress\Logger; use PhpBench\Model\Benchmark; use...
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2018 Zhongshi Jiang <jiangzs@nyu.edu> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mo...
import type { CustomNextPage } from "next"; import { useState } from "react"; import { useForm } from "react-hook-form"; import { useManageAccount } from "src/hook/vendor/useManageAccount"; import { Layout } from "src/layout"; import { Attention, InputLayout, InputType, } from "src/pages/vendor/auth/component"; i...
买卖股票的最佳时机 II 我们必须确定通过交易能够获得的最大利润(对于交易次数没有限制)。为此,我们需要找出那些共同使得利润最大化的买入及卖出价格。 解决方案 方法一:暴力法 这种情况下,我们只需要计算与所有可能的交易组合相对应的利润,并找出它们中的最大利润。 class Solution { public int maxProfit(int[] prices) { return calculate(prices, 0); } public int calculate(int prices[], int s) { if (s >= prices.length) ...
/* * UDP server wrapper class. * * @author Michel Megens * @email dev@bietje.net */ #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <lwiot.h> #include <lwiot/types.h> #include <lwiot/log.h> #include <lwiot/stl/string.h> #include <lwiot/error.h> #include <lwiot/network/stdne...
import * as angularDevkitSchematics from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree, } from '@angular-devkit/schematics/testing'; import * as path from 'path'; import { readJsonInTree } from '../../src/utils'; const { Tree } = angularDevkitSchematics; jest.mock( '@angular-devkit/sc...
// // System.CodeDom CodeDirectiveCollection class // // Authors: // Marek Safar (marek.safar@seznam.cz) // Sebastien Pouliot <sebastien@ximian.com> // // (C) 2004 Ximian, Inc. // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtainin...
/* * Copyright (c) 2008-2020, Hazelcast, 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 ...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Mailer\Transport; use Psr\Log\LoggerInterface; use Ps...
#pragma checksum "C:\Users\merve bilgiç\Documents\GitHub\KombniyApp\KombniyApp\Views\Shared\_LoginPartial.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6c93321e6e9b0f148e0449c5902bf5cb7ad221b8" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemA...
describe 'Feature Test: Store', :type => :feature do describe "Category List" do it "displays all of the categories as links" do visit store_path Category.all.each do |category| expect(page).to have_link(category.title, href: category_path(category)) end end end ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (...
/* * machine_kexec.c - handle transition of Linux booting another kernel * Copyright (C) 2002-2003 Eric Biederman <ebiederm@xmission.com> * * GameCube/ppc32 port Copyright (C) 2004 Albert Herranz * LANDISK/sh4 supported by kogiidena * * This source code is licensed under the GNU General Public License, * Versi...
// Copyright (c) 2017-2018, The Enro 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 of ...
from datetime import datetime import logging import os import subprocess import sys from argparse import Namespace logging.getLogger("transformers").setLevel(logging.WARNING) import click import torch from luke.utils.model_utils import ModelArchive from zero.utils.experiment_logger import commet_logger_args, CometL...
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
/* The smooth Class Library * Copyright (C) 1998-2014 Robert Kausch <robert.kausch@gmx.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of "The Artistic License, Version 2.0". * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRA...
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "td/utils/port/SocketFd.h" #include "td/utils/loggi...
import { BAKED_BASE_URL, WORDPRESS_URL } from 'settings' import * as React from 'react' import { Head } from './Head' import { CitationMeta } from './CitationMeta' import { SiteHeader } from './SiteHeader' import { SiteFooter } from './SiteFooter' import { formatAuthors, FormattedPost, FormattingOptions } from '../form...
require 'active_support/core_ext/string/strip' module ActiveRecord module ConnectionAdapters class AbstractAdapter class SchemaCreation # :nodoc: def initialize(conn) @conn = conn @cache = {} end def accept(o) m = @cache[o.class] ||= "visit_#{o.class.n...
"""OAuth1 module written according to http://oauth.net/core/1.0/#signing_process""" import base64 import hmac import requests # requests must be loaded so that urllib receives the parse module import time import urllib from hashlib import sha1 from six import b from uuid import uuid4 use_parse_quote = not hasattr(ur...
// -*- C++ -*- /** * @file region_maker.cpp * @brief A ROS node to make correct region for obstacle measurment * * @author Yasushi SUMI <y.sumi@aist.go.jp> * * Copyright (C) 2021 AIST * Released under the MIT license * https://opensource.org/licenses/mit-license.php */ #ifdef HAVE_CONFIG_H #include "config....
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib...
""" Django settings for hiren project. Generated by 'django-admin startproject' using Django 1.8.4. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths ...
""" app.py - Flask-based server. @author Thomas J. Daley, J.D. @version: 0.0.1 Copyright (c) 2019 by Thomas J. Daley, J.D. """ import argparse import random from flask import Flask, render_template, request, flash, redirect, url_for, session, jsonify from wtforms import Form, StringField, TextAreaField, PasswordField,...
(function () { const ERRORS = { invalidPassword: 'Please enter a valid password.', invalidEmail: 'Please enter a valid email', invalidUsername: 'Username is not a valid. Specical char, upper, number is required.', invalidFirstname: 'Please provide valid firstname.', passAndConfirmShouldMatch: 'Pa...
import sinon from 'sinon'; import PropTypes from 'prop-types'; import configureStore from 'redux-mock-store'; const mockStore = configureStore(); window.TestStubs = { // react-router's 'router' context router: () => ({ push: sinon.spy(), replace: sinon.spy(), go: sinon.spy(), goBack: sinon.spy(), ...
import React, { useState } from 'react' import { Button, Card, Col, Container, Form, Row } from 'react-bootstrap' import { useHistory } from 'react-router-dom' import NaeApiAuth from '../../service/NaeApiAuth' const texts = { en: { form: 'Login form', username: 'Username', password: 'Password', login...
<?php /* * Fresns (https://fresns.org) * Copyright (C) 2021-Present Jarvis Tang * Released under the Apache-2.0 License. */ return [ 'accepted' => 'باید ومنل شی :attribute.', 'accepted_if' => 'The :attribute must be accepted when :other is :value.', 'active_url' => ':att...
<?php namespace App\Http\Controllers; use App\Model\Shop; use App\Model\ShopUser; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Validation\Rule; class ShopUsersController extends Controller { // public function index() { $shopusers = ShopUser::paginate(5); ...
<?php /** * Text shown in error messaging. */ return [ // Permissions 'permission' => 'You do not have permission to access the requested page.', 'permissionJson' => 'You do not have permission to perform the requested action.', // Auth 'error_user_exists_different_creds' => 'A user with the ema...
#pragma checksum "..\..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "573B5D11E0DDAD4FEC58863ED87D9CFC6214A2B250AB3DAAC84C18AE1D2ADEFF" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4...
require 'spec_helper' RSpec.describe Airbrake::AirbrakeLogger do let(:project_id) { 113743 } let(:project_key) { 'fd04e13d806a90f96614ad8e529b2822' } let(:endpoint) do "https://airbrake.io/api/v3/projects/#{project_id}/notices?key=#{project_key}" end let(:airbrake) do Airbrake::Notifier.new(project...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LeetCode.Challenge { /// <summary> /// https://leetcode.com/explore/challenge/card/november-leetcoding-challenge/566/week-3-november-15th-november-21st/3534/ /// /// </summary> internal class No...
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace app\assets; use yii\web\AssetBundle; /** * Main application asset bundle. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ class IndexAsset ...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("SM...
=begin #Cisco Intersight #Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced...
/* * Copyright (c) 2018 Gustavo Valiente gustavo.valiente@protonmail.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software ...
//--------------------------------------------------------------------------- #include <opengl/vertex_layout.h> //--------------------------------------------------------------------------- static const char * const shader_code_2d_wired_rect_vs = R"SHADER( /** * !vertex: p2 t */ #version 330 core layout(std140) uni...
# from https://stackoverflow.com/questions/8032642/how-to-obtain-image-size-using-standard-python-class-without-using-external-lib import struct import imghdr def get_image_size(fname): """Determine the image type of fhandle and return its size. from draco""" with open(fname, "rb") as fhandle: ...
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Parsplice(CMakePackage): """ParSplice code implements the Parallel Trajectory Splicing al...
#!/usr/bin/env python2.5 # # Copyright 2009 the Melange 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 appl...
Read the [SDK documentation](https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-streamanalytics_1.0.0-beta.2/sdk/streamanalytics/azure-resourcemanager-streamanalytics/README.md) on how to add the SDK to your project and authenticate. ```java import com.azure.resourcemanager.streamanalytics.models.C...
cask 'unity-ios-support-for-editor@2019.3.8f1' do version '2019.3.8f1,4ba98e9386ed' sha256 :no_check url "https://download.unity3d.com/download_unity/4ba98e9386ed/MacEditorTargetInstaller/UnitySetup-iOS-Support-for-Editor-2019.3.8f1.pkg" name 'iOS Build Support' homepage 'https://unity3d.com/unity/' pkg '...
/* * 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 gameshop.advance.technicalservices; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Loren...
/* * 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. */ import React from 'react'; import { shallow } from 'enzyme'; import { UserLis...
import React from 'react'; import Link from 'gatsby-link'; import Projects from '../components/Projects'; import StyledLink from '../components/StyledLink'; import { styling, colors, delay } from '../utils/style'; import { Container } from '../utils/shared'; import styled, { keyframes } from 'styled-components'; co...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('material-ui/SvgIcon'); var _SvgIcon2 = _interopReq...
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
# Rainbow 2, by Al Sweigart al@inventwithpython.com # Shows a simple squiggle rainbow animation. import time, random, sys try: import bext except ImportError: print("""This program requires the bext module, which you can install by opening a Terminal window (on macOS & Linux) and running: python3 -m pip ...
#! /usr/bin/env python # 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 # "...
class Hyperspec < Formula desc "Common Lisp ANSI-standard Hyperspec" homepage "http://www.lispworks.com/documentation/common-lisp.html" url "ftp://ftp.lispworks.com/pub/software_tools/reference/HyperSpec-7-0.tar.gz" version "7.0" sha256 "1ac1666a9dc697dbd8881262cad4371bcd2e9843108b643e2ea93472ba85d7c3" bot...
/********************************************************************************/ /* Portable Graphics Library for Embedded Systems * (C) Componentality Oy, 2015 */ /* Initial design and development: Konstantin A. Khait */ /* Support, comments and questions: dev@componentality.com ...
/******************************************************************************* * Copyright 2012 Kim Herzig, Sascha Just * * 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....
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 15:39, 20/04/2020 % # ...
class VulkanHeaders < Formula desc "Vulkan Header files and API registry" homepage "https://github.com/KhronosGroup/Vulkan-Headers" url "https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.2.155.tar.gz" sha256 "46226dd0a8023114acfe2ba3e4fab8af8595781a4b5b5f3371b21f90f507814d" license "Apache-2.0" bot...
import json import socket def is_jsonable(obj): try: json.dumps(obj) return True except (TypeError, OverflowError, ValueError): return False def sanitize_meta(meta): keys_to_sanitize = [] for key, value in meta.items(): if not is_jsonable(value): keys_to_s...
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://doc.hyperf.io * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Tegic\HyperfWechat; use Hyperf\HttpMessage\Stream\SwooleStream; use ...
"use strict"; var People = (function () { function People(obj) { this.personId = obj && obj.personId || null; this.isenable = obj && obj.isenable || null; this.title = obj && obj.title || null; this.firstName = obj && obj.firstName || null; this.lastName = obj && obj.lastName...
<?php /** * Open Source Social Network * * @package Open Source Social Network * @author Open Social Website Core Team <info@softlab24.com> * @copyright 2014 iNFORMATIKON TECHNOLOGIES * @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence * @link h...
// Copyright (c) 2021 Leandro T. C. Melo <ltcmelo@gmail.com> // // 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 without limitation the rights // to use, copy...
// -*- C++ -*- //========================================================== /** * Created_datetime : 10/15/2013 14:23 * File : ScopedLock.hpp * Author : GNUnix <Kingbug2010@gmail.com> * Description : * * <Change_list> */ //====================================================...
import {ITofUser} from './models/tof-request'; import {Bundle, Practitioner} from '../../../../libs/tof-lib/src/lib/stu3/fhir'; import {Globals} from '../../../../libs/tof-lib/src/lib/globals'; export function createTestUser(userId = 'test.user', name = 'test user', email = 'test@test.com'): ITofUser { return { ...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // As informações gerais sobre um assembly são controladas por // conjunto de atributos. Altere estes valores de atributo para modificar as informações // associada a um assembly. [assembly: AssemblyTitle("Phobos.BLL...
class Codec2 < Formula desc "Open source speech codec" homepage "https://www.rowetel.com/?page_id=452" # Linked from https://freedv.org/ url "https://hobbes1069.fedorapeople.org/freetel/codec2/codec2-0.8.1.tar.xz" sha256 "a07cdaacf59c3f7dbb1c63b769d443af486c434b3bd031fb4edd568ce3e613d6" bottle do cella...
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/of'; import { User } from './models/user'; @Injectable() export class AppUserService { private users: User[] = [{ id: 1, firstName: 'user', lastName: 'user', email:...
/* * uicbm2model.h - CBM2 model selection UI for MS-DOS. * * Written by * Marco van den Heuvel <blackystardust68@yahoo.com> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under...
import tensorflow as tf from tensorflow.keras.callbacks import ModelCheckpoint import os class TensorBoardFix(tf.keras.callbacks.TensorBoard): """ This fixes incorrect step values when using the TensorBoard callback with custom summary ops https://stackoverflow.com/questions/64642944/steps-of-tf-summar...
--- layout: post title: "Introducing boot.rackspace.com" date: 2014-01-23 16:00 comments: true author: Antony Messerli published: true categories: - Cloud Servers - Cloud Tools - Images - iPXE - OpenStack - Performance --- We have had a number of customers request the need to be able to create their own Cloud Servers...