text stringlengths 3 1.05M |
|---|
/*-----------------------------------------------------------------------------
* MurmurHash3 was written by Austin Appleby, and is placed in the public
* domain. The author hereby disclaims copyright to this source code.
* Note - The x86 and x64 versions do _not_ produce the same results, as the
* algorithms are opti... |
//setting up connection to the database
require('dotenv').config();
const { Pool } = require('pg');
const uri = process.env.DB_URI;
const pool = new Pool({
connectionString: uri,
max: 3
});
module.exports = pool; |
"""SCons.Tool.cyglink
Customization of gnulink for Cygwin (http://www.cygwin.com/)
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
from SCons.Tool.linkCommon import StringizeLibSymlinks, EmitLibSymlinks
from... |
#!/usr/bin/env python
#pylint: skip-file
# This source code is licensed under the Apache license found in the
# LICENSE file in the root directory of this project.
class TicketRbacResult(object):
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the... |
import logging
import requests
import argparse
from bs4 import BeautifulSoup
from time import sleep
from os import path
from db import get_db_connection, dict_factory
import coloredlogs
from csv import DictReader
coloredlogs.install()
logging.basicConfig()
logger = logging.getLogger(__name__)
logger.setLevel(logging.I... |
# Generated by Django 3.1.5 on 2021-01-31 02:26
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 sou... |
from typing import List, Optional, Dict
from blspy import PrivateKey, AugSchemeMPL, G2Element
from src.types.condition_var_pair import ConditionVarPair
from src.types.condition_opcodes import ConditionOpcode
from src.types.program import Program
from src.types.coin import Coin
from src.types.coin_solution import Coin... |
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org/CONTRIBUTORS.txt for the list o... |
var express = require("express");
var bodyParser = require("body-parser");
var methodOverride = require("method-override");
var PORT = process.env.PORT || 3000;
var app = express(); |
import React, { Component } from 'react';
import { Button, Modal } from 'semantic-ui-react';
import axios from 'axios';
class ModalConfirmDelete extends Component {
constructor(props) {
super(props);
this.state ={
modalOpen: false
}
this.handleOpen = this.handleOpen.bind(this);
this.hand... |
import RPi.GPIO as GPIO
class Button:
def __init__(self, pin):
self.pin = pin
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(self.pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
def status(self):
return GPIO.input(self.pin) # LOW when pressed
def exit(self):
... |
const { format } = require('util');
// Access a property on an object via string
var getValueFromString = function(path, origin) {
if (origin === void 0 || origin === null) origin = this;
if (typeof path !== 'string') path = '' + path;
var parts = path.split(/\[|\]|\.|'|"/g).reverse(),
name;
while (parts... |
import logging
import astropy.units as u
import numpy as np
from astropy.nddata import NDUncertainty, StdDevUncertainty
from astropy.coordinates import SpectralCoord
from .spectrum1d import Spectrum1D
from astropy.nddata import NDIOMixin
__all__ = ['SpectrumCollection']
log = logging.getLogger(__name__)
class Spe... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "NSObject-Protocol.h"
@class CContact;
@protocol BrandProfileHeaderViewDelegate <NSObject>
- (void)onPersonalVerifiedLabelCli... |
import logging
from typing import TYPE_CHECKING, Optional
from rotkehlchen.assets.asset import Asset
from rotkehlchen.constants.assets import A_USD
from rotkehlchen.errors import RemoteError
from rotkehlchen.fval import FVal
from rotkehlchen.inquirer import Inquirer
from rotkehlchen.logging import RotkehlchenLogsAdapt... |
import lugiax from '@lugia/lugiax';
export default async function doRequest(url: string, { ...rest }) {
const apiUrls = lugiax
.getState()
.get('security')
.get('apiUrls')
.toJS();
// if (apiUrls.indexOf(url) === -1) {
// return Promise.resolve({ error: "无访API问权限" });
// }
const res = awa... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
def selection_3():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... |
/* Webpack Configuration
===================================================================================================================== */
// Load Core:
const path = require('path');
const webpack = require('webpack');
// Load Plugins:
const CleanPlugin = require('clean-webpack-plugin');
const Uglif... |
import Backbone from 'backbone';
import Sidebar from './Sidebar';
import NavMenuModel from '../models/NavMenuModel';
import InterfaceLayoutView from './InterfaceLayoutView';
class MainPage extends Backbone.View {
initialize() {
this.name = 'mainPageLayout';
this.menuModel = NavMenuModel;
th... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/
*
* Software distr... |
/*! @license Firebase v4.3.0
Build: rev-bd8265e
Terms: https://firebase.google.com/terms/
---
typedarray.js
Copyright (c) 2010, Linden Research, Inc.
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 Softw... |
import unittest
import sys
import logging
from importlib import import_module
# unittest is used for writing the test application
# sys and logging modules are for logging test info onto the terminal
class TestPopulations(unittest.TestCase):
def setUp(self):
self.sim = import_module("pyNN.carlsim")
... |
import unittest
import os
import json
from carson.github.parser import Parser
from carson.slack.client import SlackClient
class GithubParserTest(unittest.TestCase):
SEND_SLACK_MESSAGE_PR_NUMBERS = []
def mock_get_pull_request_data(self, url):
self.assertEqual(url, 'https://api.github.com/repos/Sylver... |
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestRegressor
def loadTrainData():
data = pd.read_csv("./data/train.csv")
for i in range(28*28):
data.loc[(data['pixel%d'%i]>0), 'pixel%d'%i] = 1
return data
def loadTestDat... |
import random
import os
username = ''.join(random.choice(
|
exports.run = (client, msg) => {
if (msg.guildConf.deleteCommand === true) msg.delete();
return false;
};
exports.conf = {
enabled: true,
requiredModules: [],
};
exports.help = {
name: "deleteCommand",
type: "inhibitors",
description: "Enables the ability for Guild/Bot owners to decide if they want all ... |
import Vue from "vue";
import Router from "vue-router";
import Home from "../pages/Home";
import LoadFile from "../pages/LoadFile";
import ForceGraph from "../components/ForceGraph";
import VisualiseData from "../components/VisualiseData";
import GraphList from "../pages/GraphList";
Vue.use(Router);
export default ne... |
'use strict';
const express = require('express');
const router = express.Router();
const pageController = require("../controller/pageController.js");
console.log('page page page')
router.get('/',pageController.signIn); /*登录*/
router.get('/index',pageController.index); /*首页*/
module.exports = router;
|
const path = require('path')
module.exports = function (manifestPath) {
const manifest = require(manifestPath)
if (
!manifest ||
!manifest.content_scripts ||
!manifest.content_scripts[0].css
) return []
const contentCss = manifest.content_scripts[0].css
return contentCss.map(css => path
.r... |
// == mojo ====================================================================
//
// Copyright (c) gnawice@gnawice.com. All rights reserved.
// See LICENSE in root folder
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation... |
/*!
* aes256.js v1.0.0
* @author Andrey Izman <izmanw@gmail.com>
* @copyright Andrey Izman (c) 2018
* @license MIT
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.co... |
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... |
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
from pathlib import Path
from subprocess import call
from sys import stdout
from typing import cast
from urllib import ... |
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "packspu.h"
#include "cr_mem.h"
#include "cr_packfunctions.h"
#include "cr_string.h"
#include "packspu_proto.h"
#define MAGIC_OFFSET 3000
/*
* Allocate a ne... |
def aumentar(valor,taxa):
res = valor*(1 + taxa/100)
return res
def diminuir(valor,taxa):
res = valor*(1-taxa/100)
return res
def dobro(valor):
res = valor*2
return res
def metade(valor):
res = valor/2
return res |
/* Generated automatically. DO NOT EDIT! */
#define SIMD_HEADER "simd-kcvi.h"
#include "../common/n1fv_2.c"
|
import logging
from consts.award_type import AwardType
# Prioritized sort order for certain awards
sort_order = {
AwardType.CHAIRMANS: 0,
AwardType.FOUNDERS: 1,
AwardType.ENGINEERING_INSPIRATION: 2,
AwardType.ROOKIE_ALL_STAR: 3,
AwardType.WOODIE_FLOWERS: 4,
AwardType.VOLUNTEER: 5,
AwardTy... |
dataent.provide("dataent.views");
(function() {
var method_prefix = 'dataent.desk.doctype.kanban_board.kanban_board.';
var store = fluxify.createStore({
id: 'store',
initialState: {
doctype: '',
board: {},
card_meta: {},
cards: [],
columns: [],
filters_modified: false,
cur_list: {},
emp... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.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 ... |
from dataclasses import dataclass
from dataclasses import field
@dataclass()
class Contador:
comeca: str
termina: str = field(repr=False) # Não mostrará o termina quando eu der print na instância
c1 = Contador(1, 21)
print(c1)
|
from abc import ABC, abstractmethod
class Module(ABC):
instances = [] # list of all instances
def __init__(self):
super().__init__()
self.cmd_map = {} # (str)name : (func)function
self.name = None
self.version = None
self.author = None
self.up... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 9.5.15
description: >
Proxy ( target, handler )
...
3. If Type(hand... |
import { replace, noop } from './utils'
/**
* Inline-Level Grammar
*/
/* eslint-disable no-useless-escape */
const inline = {
escape: /^\\([\\`*{}\[\]()#+\-.!_>])/,
autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
url: noop,
tag: /^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,
link: /^!?\[(inside)\]\(href\)/... |
import os
import typing
from dataclasses import dataclass
from typing import Any, Callable, Dict, Optional
from google.protobuf.json_format import MessageToDict
from flytekit import FlyteContext, PythonFunctionTask
from flytekit.common.tasks.sdk_runnable import ExecutionParameters
from flytekit.extend import Executio... |
# -*- coding: utf-8 -*-
from datetime import date
from decimal import Decimal
from .. import fhirtypes # noqa: F401
from .. import condition
def test_Condition_1(base_settings):
filename = (
base_settings["unittest_data_dir"]
/ "condition-example-f001-heart.canonical.json"
)
inst = condi... |
// 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.
//
// Holds helpers for gathering UMA stats about downloads.
#ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
#define CONTENT_BROWSER_DOWNLOAD_DOWNL... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[2151],{"013z":function(e,t,n){"use strict";var a=n("q1tI"),l=n.n(a),o=n("NmYn"),r=n.n(o),c=n("Wbzz"),b=n("Xrax"),s=n("a7k6"),i=n("TSYQ"),p=n.n(i),u=n("QH2O"),d=n("qKvR");var m=({title:e,tabs:t=[]})=>Object(d.b)("div",{className:p()(u.pageHeader,{[u.withTabs]:t.length... |
// Copyright IBM Corp. 2014,2018. All Rights Reserved.
// Node module: strong-soap
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
"use strict";
var fs = require('fs'),
soap = require('..').soap,
assert = require('assert'),
should = require(... |
/* Part of SWI-Prolog
Author: Jan Wielemaker
E-mail: J.Wielemaker@vu.nl
WWW: http://www.swi-prolog.org
Copyright (c) 1985-2019, University of Amsterdam
VU University Amsterdam
CWI, Amsterdam
All rights reserved.
Redistribution an... |
#pragma once
#include <Core/Defines.h>
#include <Interpreters/SettingsCommon.h>
namespace Poco
{
namespace Util
{
class AbstractConfiguration;
}
}
namespace DB
{
class IColumn;
class Field;
/** Settings of query execution.
*/
struct Settings
{
/// For initialization from empty initialize... |
from collections import defaultdict
import random
import time
import uuid
from motorway.contrib.amazon_sqs.intersections import SQSInsertIntersection
from motorway.decorators import batch_process
from motorway.messages import Message
from motorway.intersection import Intersection
class SentenceSplitIntersection(Inter... |
const express = require('express');
const router = express.Router();
/* GET "who we are" page. */
router.get('/', (req, res) => {
if (global.env_name.toLowerCase().indexOf('prod') !== 0){
bannerhtml = '<section class="banner">'+global.env_name+'</section>'
}
res.render('who', {
title: 'Who We Are',
... |
__all__ = ['stream_batched', 'call_once', 'threadlocal', 'shared_call']
import functools
import threading
import time
from collections.abc import Callable, Sequence
from concurrent.futures import Future
from contextlib import ExitStack
from queue import Empty, SimpleQueue
from threading import Thread
from typing impor... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.11/esri/copyright.txt for details.
//>>built
define({"esri/widgets/LayerList/nls/LayerList":{widgetLabel:"Elenco layer",noItemsToDisplay:"Non \u00e8 attualmente disponibile alcun elemento da visualizzare.",la... |
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... |
import Scene3D from "./Scene3D";
export default class AnimatedScene3D extends Scene3D
{
cameraControls = null;
cameraControlsParams = null;
cameraControlsEnabled = true;
init(options)
{
if (options)
{
if (options.cameraControlsEnabled)
{
this... |
#ifndef AGREGAREMPLEADOWINDOW_H
#define AGREGAREMPLEADOWINDOW_H
#include <QDialog>
#include "adminmainwindow.h"
namespace Ui {
class AgregarEmpleadoWindow;
}
class AgregarEmpleadoWindow : public QDialog
{
Q_OBJECT
public:
explicit AgregarEmpleadoWindow(QWidget *parent = 0);
~AgregarEmpleadoWindow();
pr... |
"use strict";
angular.module('newspaperOrderModule', [
'productManageMentOrderRankModule',
'productManageMentOrderDeleteModule'
]).
controller('newspaperOrderCtrl', newspaperOrderCtrl);
newspaperOrderCtrl.$injector = ["$scope", "$filter", "$timeout", "$modal", "$stateParams", "trsHttpService", "SweetAlert", "tr... |
from rest_framework.routers import DefaultRouter
class CustomDefaultRouter(DefaultRouter):
"""
this router is going to accept queries that possess as well as queries
that don't possess a trailing slash between the url and the query param
"""
def __init__(self, *args, **kwargs):
super()._... |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import torch.utils.data
import random
from data.base_data_loader import BaseDataLoader
from data import online_dataset_for_old_photos as dts_ray_bigfile
def CreateDataset(opt):
print("\n>>CreateDatasset")
dataset = None
if opt.train... |
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
import { Tokenizer, Token, Source, SourceKind } from "../dist/assemblyscript.js";
const dirname = path.dirname(fileURLToPath(import.meta.url));
const file = process.argv.length > 2 ? process.argv[2] : path.join(dirname, "..", "src", "t... |
/* globals describe, it */
const path = require('path')
const fse = require('fs-extra')
const assert = require('assert')
const { EOL } = require('os')
const { default: TextBuffer } = require('../../dist/TextBuffer')
const { default: EditorFs } = require('../../dist/EditorFs')
const TMP = path.join(__dirname, '.temp')... |
import { Link, graphql, useStaticQuery } from "gatsby"
import React from "react"
export default function Navbar() {
// useStaticQuery can only be used one
const data = useStaticQuery(graphql`
query SiteInfo {
site {
siteMetadata {
title
}
}
}
`)
const { title } = ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./components/ProgressIndicator/index"), exports);
//# sourceMappingURL=ProgressIndicator.js.map |
import {
GraphQLObjectType,
GraphQLString,
GraphQLInt,
GraphQLList,
GraphQLBoolean
} from 'graphql'
import Post from './Post'
import User from './User'
import { q } from '../shared'
import Authored from './Authored/Interface'
const { STRATEGY, DB } = process.env
export default new GraphQLObjectType({
des... |
"use strict";
exports.ExpTypes = {
Binary: function (ast) {
return ast.constructor.name === 'Binary';
},
Quote: function (ast) {
return ast.constructor.name === 'Quote';
},
EmptyExpr: function (ast) {
return ast.constructor.name === 'EmptyExpr';
},
ImplicitReceiver: f... |
// Push the ball to knock over all the blue skeletons without hitting any red ones.
// The blue skeletons can be found as enemies.
var center = Vector(40, 35);
var punch_array = [];
var enemies = hero.findEnemies();
var friend = hero.findFriends()[0];
var ball = hero.findNearest(hero.findByType('ball'));
var bal... |
class CopyTask extends BalmTask {
constructor(input = '', output = '', renameOptions = {}) {
super('copy');
this.input = input;
this.output = output;
this.renameOptions = renameOptions;
}
get fn() {
return () => {
return src(BalmFile.absPaths(this.input))
.pipe($.rename(this.re... |
$.ajaxSetup({
cache : false
});
$(function() {
// 身份证验证
jQuery.validator.addMethod("isIdCardNo", function(value, element) {
value = $.trim(value);
return this.optional(element) || checkCard(value);
}, "请正确输入您的身份证号码");
// 电话号码验证
jQuery.validator.addMethod("isPhone", function(val... |
/*!
* @@name
* @@author
* Version @@version - built @@timestamp
* @@license Licensed
*
*/
( function ( ) {
var exports = {};
/**
* Validator
*/
var Validator = function ( options ) {
this.__class__ = 'Validator';
this.__version__ = '@@version';
this.options = options || {};
this.bindingKey ... |
export var __N_SSG=true;export default function Home(){return __jsx("div",null)}
|
/*
** NOTE: This file is generated by Gulp and should not be edited directly!
** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp.
*/
/* http://keith-wood.name/calendars.html
Slovak localisation for Gregorian/Julian calendars for jQuery.
Written by Vojtech... |
const http = require('http')
const Context = require('./Context')
const compose = require('./utils/compose')
module.exports = class Koa {
constructor() {
this.middlewares = []
}
listen(port = 3000) {
const server = http.createServer((req, res) => {
const context = new Context(req, res)
cons... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import re
import traceback
from abc import abstractmethod, ABC
from typing import List
from bs4 import BeautifulSoup
from spidery.spider.engine import BaseCrawl
from spidery.spider.resource import DataNews, DataArticle
class NewsEngine(Base... |
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2017-2020 Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions a... |
import numpy as np
import math
arr = np.loadtxt(open("csv files/matlab.csv","rb"),delimiter=",",skiprows=0)
data = np.loadtxt(open("csv files/input_tindex.csv","rb"),delimiter=",",skiprows=0)
array = np.loadtxt(open("csv files/groupin.csv","rb"),delimiter=",",skiprows=0)
def fsldiff(x):
obstacle = [[894,586],[165... |
from unittest import TestCase
from urllib.parse import urlparse
import fints_url
class TestBasics(TestCase):
def test_bank_codes(self):
for bc in [86055592, 10077777, 10070000, 43060967]:
url = fints_url.find(bank_code=bc)
assert urlparse(url)
|
const { checkTokenMiddleWare, checkToken } = require('./auth');
/**
* @swagger
* /save-data:
* post:
* summary: Saves data using an automatic payment.
* description: Data must be able to be JSON.stringify()-ed. User must have authorized auto payments. Returns an automatic payment result. You can use the... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathBold.js
*
* Copyright (c) 2009-2019 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TemplateType = void 0;
var TemplateType;
(function (TemplateType) {
TemplateType["INLINE"] = "INLINE";
TemplateType["S3_LOCATION"] = "S3_LOCATION";
})(TemplateType = exports.TemplateType || (exports.TemplateType = {}));
//# sou... |
var t=function(){return(t=Object.assign||function(t){for(var e,o=arguments,n=1,i=arguments.length;n<i;n++)for(var r in e=o[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function e(o,n){var i=t({},o);for(var r in n)"object"!=typeof o[r]||null===o[r]||Array.isArray(o[r])?void... |
require('./_typed-array')('Uint16', 2, function (init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
|
"""
kaggle_dataset_down.py
Script to download Kaggle datasets
author: @justjoshtings
created: 4/1/2022
"""
import time
from Woby_Modules.KaggleAPI import KaggleAPI
def main():
kaggle_dataset_owner = 'justjoshtings'
path_to_data = '../corpus/'
data_url_end_point = 'spooky-reddit-stories'
data_title = ... |
def dump(system, fp):
string = dumps(system)
fp.write(string)
def dumps(system):
output = "Prescription:\n"
elements = [" " + str(x) for x in system]
output += "\n".join(elements)
return output
def loads(string):
print string
|
"use strict";
const { SOCKET_ERROR, SOCKET_CONVERSATIONS } = require('../common/constants');
const { convertStringToJson } = require('../common/utils');
const getSocket = (namespace) => {
const { getSocketInstance } = require('.');
return getSocketInstance(namespace);
}
const sanitizePayload = (roo... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['hi']={"editor":"रिच टेक्स्ट एडिटर","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"मदद के लिये ALT 0 दबाए","browseServer":"सर्वर ब्राउज़... |
import paramiko,os,sys,socket
#Final
import threading,time
def ssh_connect(passw,code=0):
global stop_flag
global idpass
ssh=paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try:
ssh.connect(host,port=22,username=username,password=passw)
stop_flag=1
... |
"""
Copyright (c) Contributors to the Open 3D Engine Project.
For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
#
# Helpful functions to simplify running the Hydra tests
#
import pytest
pytest.importorskip('ly_test_tools')
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sample demonstrates how to recognize US sales receipts from a URL.
*/
const { FormRecognizerClient, AzureKeyCredential } = require("@azure/ai-form-recognizer");
// Load the .env file if it exists
require("dotenv").config();
asyn... |
#ifndef CVMFS_ASYNC_READER_H
#define CVMFS_ASYNC_READER_H
/**
* This file is part of the CernVM File System.
*/
#include <tbb/concurrent_queue.h>
#include <tbb/task_scheduler_init.h>
#include <tbb/task.h>
#include <tbb/tbb_thread.h>
#include <list>
#include <string>
#include "char_buffer.h"
#include "../util_co... |
/*
==============================================================================
This file is part of the JUCE examples.
Copyright (c) 2017 - ROLI Ltd.
The code included in this file is provided under the terms of the ISC license
http://www.isc.org/downloads/software-support-policy/isc-license. Permiss... |
const HDWalletProvider = require('truffle-hdwallet-provider');
const Web3 = require('web3');
const { interface, bytecode } = require('./compile');
const provider = new HDWalletProvider(
'donor depth alcohol bounce shallow pitch divert fence solution farm outside thing',
'https://rinkeby.infura.io/v3/afd5... |
from collections.abc import Callable
import torch
import functools
import logging
log = logging.getLogger(__name__)
try:
from mapped_convolution.nn import MappedConvolution, MappedTransposedConvolution
except ImportError:
__SPHERICAL_MAPPED_INCLUDED__ = False
else:
__SPHERICAL_MAPPED_INCLUDED__ = True
_... |
# coding=utf-8
# Copyright 2020 The Tensor2Tensor 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... |
"""
This file is part of:
NIND's BodySlide Utilites
by NIND
Created to work with BodySlide 2 and Outfit Studio
by Ousnius
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... |
var servicesApp=angular.module('ServicesApp', []);
angular.module("ServicesApp").controller("ServicesController", [ "$scope", function($scope) {
$scope.services = [
{
name: 'Web Development',
price: 300,
active:true
},{
name: 'Desi... |
#pragma once
#if defined(__AVR__)
#include <avr/pgmspace.h>
#else
#include <pgmspace.h>
#endif
#define DEBUG_PRINT
#ifdef DEBUG_PRINT
#define DEBUG(s) \
{ ... |
const Table = require("../models/table");
const Field = require("../models/field");
const db = require("../db");
const { getState } = require("../db/state");
getState().registerPlugin("base", require("../base-plugin"));
afterAll(db.close);
beforeAll(async () => {
await require("../db/reset_schema")();
await requ... |