text stringlengths 3 1.05M |
|---|
/******************************************************************************
* Copyright 2017 The Apollo 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
... |
"""Volume View"""
__docformat__ = "numpy"
import logging
import os
from typing import Optional, List
import matplotlib.pyplot as plt
import pandas as pd
from openbb_terminal.config_terminal import theme
from openbb_terminal.common.technical_analysis import volume_model
from openbb_terminal.config_plot import PLOT_DP... |
import { combineReducers } from 'redux'
import { reducer as reduxForm } from 'redux-form'
import authReducer from './authReducer'
import surveysReducer from './surveysReducer'
// combineReducers takes all reducers and assigns them all to state properties
export default combineReducers({
auth: authReducer,
f... |
/**
* Kendo UI v2017.2.504 (http://www.telerik.com/kendo-ui)
* Copyright 2017 Telerik AD. All rights reserved. ... |
import { getParams } from '@/libs/util'
const USER_MAP = {
super_admin: {
name: 'super_admin',
user_id: '1',
access: ['super_admin', 'admin'],
token: 'super_admin',
avator: 'https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTL0msB8jbgywsOpnhwpBBiaibGriciam9qibUZpFe3zAibXcGAmMhstwOXLzcoxGHKtBkIJqCwfm6... |
# -*- coding: utf-8 -*-
# Copyright © 2017 Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from __future__ import print_function as _
from __future__ import division as _
from... |
(function() {
'use strict';
/**
* import
*/
var _;
if(typeof require !== 'undefined') {
_ = require('lodash');
}
else {
_ = window._;
}
/**
*
* @constructor
*/
var Board = function(players, columns, rows) {
var self = {};
self.areas = {};
/**
* Create a 2d array filled with target... |
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const packageConfig = require('../package.json')
exports.assetsPath = function (_path) {
const assetsSubDirectory = process.env.NODE_ENV === 'production'
? config.build.a... |
const Sequelize = require('Sequelize');
module.exports = (sequelize) => {
return sequelize.define('User', {
name: {
type: Sequelize.STRING
}
});
}
|
# MIT License
#
# Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018
#
# 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
# r... |
import * as Yup from 'yup';
import User from '../models/User';
class UserController {
async store(req, res) {
const schema = Yup.object().shape({
name: Yup.string().required(),
email: Yup.string()
.email()
.required(),
password: Yup.string()
.required()
.min(6),
... |
# genqueue.py
#
# Generate a sequence of items that put onto a queue
def genfrom_queue(thequeue):
while True:
item = thequeue.get()
if item is StopIteration:
break
yield item
def sendto_queue(items, thequeue):
for item in items:
thequeue.put(item)
thequeue.put(... |
var loginView = {};
$(function() {
loginView = new LoginView();
$("#btnShowCreateLogin").click(function() {loginView.drawCreateLoginScreen();});
$("#btnCreateLogin").click(function() {loginView.createLogin();});
$("#btnLogin").click(function() {loginView.login();});
$(".commandButton").click(functi... |
import base64
from pbx_gs_python_utils.utils.Files import Files
from osbot_aws.Dependencies import load_dependency
from osbot_aws.apis.S3 import S3
from osbot_aws.apis.Secrets import Secrets
def send_file_to_slack(file_path, title, bot_token, channel): # refactor into Slack_A... |
/**
*
* Find more about the lame micro-framework at
* http://cubiq.org/
*
* Copyright (c) 2010 Matteo Spinelli, http://cubiq.org/
* Released under MIT license
* http://cubiq.org/dropbox/mit-license.txt
*
*/
// Create our own namespace (because it's cool)
(function () {
// Define the core element
var $ = fu... |
# Generated by Django 3.0.9 on 2020-09-03 20:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_ingredient'),
]
operations = [
migrations.CreateModel(
... |
import React from "react";
import { SlidingDrawer } from "../SlidingDrawer";
import { WikiContent } from "../wiki/WikiContent";
import useMapWiki from "../../hooks/map/useMapWiki";
export const MapDrawer = () => {
const { mapWiki } = useMapWiki();
return (
<SlidingDrawer placement={"left"} startVisible={true}>
... |
// According to http://lua-users.org/lists/lua-l/2016-04/msg00216.html we can
// use `stdtod_l` on all platforms when defining `_GNU_SOURCE`.
#include "sentry_boot.h"
#include "sentry_alloc.h"
#include "sentry_core.h"
#include "sentry_string.h"
#include "sentry_sync.h"
#include "sentry_utils.h"
#include <locale.h>
#i... |
/**
****************************************************************************************
*
* @file main.c
*
* @brief LCD Controller Demo application
*
* Copyright (C) 2019 Dialog Semiconductor.
* This computer program includes Confidential, Proprietary Information
* of Dialog Semiconductor. All Rights Rese... |
/**
* @fileoverview added by tsickle
* Generated from: languages/date-picker/de_DE.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
/**
* @license
* Copyright Alibaba.com All Rights Reserved... |
define(['settings', 'utils', 'connector', 'project'], function (settings, utils, conn, project) {
// Obfuscate mode
if (document.getElementById('obfuscator-console')) {
document.body.addEventListener('click', function (e) {
if ((e.target.getAttribute('data-target') !== '#navbar-main-ta... |
const Discord = require("discord.js");
exports.run = (client, message, args) => {
const davet = new Discord.MessageEmbed()
.setColor("#fffff1")
.setTitle("Beni Sunucuna Ekle")
.setDescription("[__**Davet Et !**__](https://discord.com/oauth2/authorize?client_id=778564765152444437&scope=bot&permissions=8) \n\... |
"use strict";
var helpers = require("../../helpers/helpers");
exports["Asia/Aqtau"] = {
"1924" : helpers.makeTestYear("Asia/Aqtau", [
["1924-05-01T20:38:55+00:00", "23:59:59", "LMT", -12064 / 60],
["1924-05-01T20:38:56+00:00", "00:38:56", "FORT", -240]
]),
"1930" : helpers.makeTestYear("Asia/Aqtau", [
["193... |
from typing import List
import discord
from discord.ext import commands
# Defines a custom button that contains the logic of the game.
# The ['TicTacToe'] bit is for type hinting purposes to tell your IDE or linter
# what the type of `self.view` is. It is not required.
class TicTacToeButton(discord.ui.Button['TicTac... |
# -*- coding: utf-8 -*-
"""
idfy_rest_client.models.signature_type
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
class SignatureType(object):
"""Implementation of the 'SignatureType' model.
TODO: type model description here.
Attribu... |
""" Base class for p-value test.
Author:
C.M. Gosmeyer
Date:
Mar 2018
References:
"Introduction to Statistical Problem Solving in Geography",
J.C. McGrew, Jr., A.J. Lembo, Jr., C.B. Monroe
"""
from __future__ import print_function
import numpy as np
import pandas as pd
from stats.tables.lo... |
class AppStorage {
storageToken(token){
localStorage.setItem('token', token);
}
storageUser(user){
localStorage.setItem('user', user);
}
store(user, token){
this.storageToken(token);
this.storageUser(user);
}
clear(){
localStorage.removeItem('t... |
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4
Version: 4.7.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin/admin/
*/
var handleJqueryFileUpload = function() {
// Initialize the jQuery File Upload widget:
$('#fileupload').fileupload({
autoUpload:... |
import unittest
import logging
def warn_if_not_implemented(func):
def wrapper(*args, **kwargs):
try:
func(*args, **kwargs)
except Exception as e:
if e.args[0] == 'Not implemented':
logging.warning('%s is not implemented' % func.__name__[len('test_'):])
... |
import pandas as pd
from sklearn.metrics import log_loss
import math
import numpy as np
from functools import reduce
# Define a function which
def create_df(path):
df = (pd.read_csv(path, dtype={'season': str})
.assign(Date=lambda df: pd.to_datetime(df.Date))
.pipe(lambda df: df.dropna(thresh=len(df) - 2... |
module.exports.config = {
name: "sing",
version: "1.0.5",
hasPermssion: 0,
credits: "Mirai Team",
description: "Phát nhạc thông qua link YouTube, SoundCloud hoặc từ khoá tìm kiếm",
commandCategory: "media",
usages: "[link or content need search]",
cooldowns: 10,
dependencies: {
"ytdl-core": "",
"simple-you... |
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY... |
# Ustad# SIDRA5# Thuglife# Somibro# Gamz#!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass
os.system('rm -rf .txt')
for n in range(10000):
nmbr = random.randint(1111111, 9999999)
sys.stdout = open('.txt', 'a')
print(nmbr)
sys.st... |
# -*- coding: utf-8 -*-
# Copyright (c) 2021, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class WaterSolubleSulphateContent(Document):
pass
|
import argparse
from libmproxy import cmdline
import tutils
def test_parse_replace_hook():
x = cmdline.parse_replace_hook("/foo/bar/voing")
assert x == ("foo", "bar", "voing")
x = cmdline.parse_replace_hook("/foo/bar/vo/ing/")
assert x == ("foo", "bar", "vo/ing/")
x = cmdline.parse_replace_hook(... |
function BooksList() {
return <section>
List of Books
</section>
}
export default BooksList; |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
update_pupils.py
Last updated: 2019-12-03
"""
from wz_core.reporting import Report
from test_core import testinit, runTests
if __name__ == '__main__':
testinit ()
from wz_compat.import_pupils import importLatestRaw
rpd = importLatestRaw (2020)
# f... |
var searchData=
[
['error_1017',['error',['../namespacepbr_1_1shared_1_1apis_1_1logging.html#a542f57ec5157568ea7ee664caa308b09acb5e100e5a9a3e7f6d1fd97512215282',1,'pbr::shared::apis::logging']]]
];
|
// DocSection: cm_api_v2_post_language
// Tip: Find more about JS/TS SDKs at https://docs.kontent.ai/javascript
// Using ES6 syntax
import { ManagementClient } from '@kentico/kontent-management';
const client = new ManagementClient({
projectId: '<YOUR_PROJECT_ID>',
apiKey: '<YOUR_API_KEY>'
});
const response = aw... |
#Credit https://www.geeksforgeeks.org/bucket-sort-2/
# Python3 program to sort an array
# using bucket sort
import time #import time function
import numpy as np
from numpy import mean
from random import randint
import statistics as st
#number of runs to average
num_runs = 10
results = []# array to hold the result... |
define(function (require, exports, module) {
"use strict";
// Code that needs to display user strings should call require("strings") to load
// strings.js. This file will dynamically load strings.js for the specified by bracketes.locale.
//
// Translations for other locales should be placed in nls/... |
""" library to take autodiff and execute a computation graph """
from __future__ import absolute_import
import numpy as np
from .Node import Op
from ..stream import *
from .. import ndarray
from .. import gpu_links as gpu_op
from athena.gpu_ops.Conv2d import Conv2dOp, Conv2d_Gradient_of_DataOp, Conv2d_Gradient_of_Filte... |
import * as swcHelpers from "@swc/helpers";
function foobar(_param = {}) {
var { bar ={} } = _param;
swcHelpers.objectWithoutProperties(_param, [
"bar"
]);
}
suddenly((_param)=>{
var { x: a } = _param;
return swcHelpers.objectWithoutProperties(_param, [
"x"
]).y;
}), suddenly((... |
#!C:\Users\sadeem\Desktop\SITE_BOOTCAMP_QA\StudentWork\Sadeem\Python\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] ... |
"use strict";
console.log('WORKER: executing.');
var version = 'v3.25::';
var offlineFundamentals = [
'',
'index.html',
'src/audio/beep6.mp3',
'src/css/icofont/',
'src/css/index.css',
'src/scripts/index.js',
'src/scripts/lector.js',
'src/scripts/jquery.scannerdetection.js',
'src/scri... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007 INRIA, Gustavo Carneiro
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This prog... |
from migrate.changeset.constraint import UniqueConstraint
def execute(database, engine):
cons = UniqueConstraint(database.SchemaMigration.migration_file, table=database.get_table(database.SchemaMigration))
cons.create(engine=engine)
|
const { installForTests } = require('./esbuild')
const rimraf = require('rimraf')
const assert = require('assert')
const path = require('path')
const util = require('util')
const url = require('url')
const fs = require('fs')
const readFileAsync = util.promisify(fs.readFile)
const writeFileAsync = util.promisify(fs.wri... |
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this l... |
"""
Lightnet Pruning Module |br|
This module contains classes and functions to prune convolutions in your networks,
in order to make them faster and/or better suited for your application.
"""
from . import dependency
from ._base import *
from ._multi import *
from ._l2 import *
from ._gm import *
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import json
import pytest
import time
SERVER = "http://127.0.0.1:8080/v1"
class Test_Get_First:
"""
tests the /get_first resource
"""
@pytest.fixture
def example_data(self):
return {"data": [1, 2, 3, 4, time.time()], "ending... |
"""Base fixtures for testing and import point for everything else."""
import pytest
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from sqlalchemy.exc import InternalError
from stickerfinder.db import base
from .fixtures import * # noqa
from .helper import * # noqa
@pytest.fixture(scope="... |
//===-- MICmnStreamStderr.h -------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.coverage',
'sphinx.ext.doctest',
'sphinx.ext.extlinks',
'sphinx.ext.ifconfig',
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'sphinx.ext.... |
/*
* hostapd / Configuration file parser
* Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#ifndef CONFIG_NATIVE_WINDOWS
#include <grp.h>
#endif /* CONFIG_NATIVE_WINDOWS */
#in... |
dojo.provide("lucid.widget.Window");
dojo.require("dojox.layout.ResizeHandle");
dojo.require("dojo.dnd.move");
dojo.require("dojox.fx.easing");
dojo.require("dijit._Templated");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.Menu");
dojo.requireLocalization("lucid.widget", "window");
dojo.declare("l... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ma... |
/*@include util-buffer.js@*/
/*===
basic test
object
[object Uint8Array]
true
===*/
function basicTest() {
var pb = createPlainBuffer('ABCD');
// typeof
print(typeof pb);
// class name in Object.prototype.toString()
print(Object.prototype.toString.call(pb));
// instanceof
print(pb insta... |
# Copyright 2020 The TensorFlow Probability Authors. All Rights Reserved.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# THIS FILE IS AUTO-GENERATED BY `gen_linear_operators.py`.
# DO NOT MODIFY DIRECTLY.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... |
/*
* Copyright (c) 2018 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
#!/usr/bin/env python
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import hashlib
import sys
import os
from random import SystemRandom
import base64
import hmac
if len(sys... |
const express = require('express');
const movieController = require('../controllers/movie');
const orderController = require('../controllers/order');
let router = express.Router();
router.get('/', (req, res) => res.status(200).json({text: 'OK'}));
router.post('/movies', (req, res, next) => {
movieController.c... |
import os
class Config:
API_BASE_URL = 'http://quotes.stormconsultancy.co.uk/random.json'
SECRET_KEY = os.environ.get('SECRET_KEY')
#email configurations
MAIL_SERVER = 'iank299@gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get("MAIL_USERNAME")
MAIL_PASSWOR... |
from subprocess import check_call, CalledProcessError
from sys import argv
try:
check_call([argv[1], 'apples', 'bananas', 'orange soda'])
except CalledProcessError as ex:
print "!! error code", ex.returncode
|
import os
import re
import numpy as np
import pandas as pd
FILE_ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
source = os.path.join(FILE_ROOT_PATH, '9889.xlsx')
output = os.path.join(FILE_ROOT_PATH, 'result_9889.xlsx')
def merge_sheets(path: str) -> pd.DataFrame:
'''将每个表格的sheet页中日期、期货成交汇总、期货持仓汇总聚集到一起
... |
// ______ ____ ___ _______ __________ ______ ____ ______________
// __/ _ \/ __ \/ _ )/ __/ _ \/_ __/ __ \ _/ _ |_/ /__/ __/ __/ _/
// _/ , _/ /_/ / _ / _// , _/ / / / /_/ / / __ |/ /__/ _/_\ \_/ /
// /_/|_|\____/____/___/_/|_| /_/ \____/ /_/ |_/____/___/___/___/
//
// -
// Creature_connesse 0.1 by Roberto ... |
from __future__ import print_function, absolute_import, division
import collections
from numba import types
QuicksortImplementation = collections.namedtuple(
'QuicksortImplementation',
(# The compile function itself
'compile',
# All subroutines exercised by test_sort
'partition', 'partition3... |
# -*- coding: utf-8 -*-
class PacketParser:
def __init__(self):
self.buff = bytearray()
def feed(self, buff):
self.buff += bytearray(buff)
def findEnd(self):
i = 0
while i < len(self.buff):
if self.buff[i] == 0x00:
return (i)
... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-11 07:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... |
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { useMemo } from 'react'
import { isFunction, get } from 'lodash'
import { format } fro... |
from discord.ext import commands
from src.user_command import UserCommand, VaguePatternError, LongResponseException, ShortTriggerException
from src.user_command import ResponseKeywordException, DuplicatedTriggerException, update_command
from src.user_command import UserLimitException
from src.config import get_session
... |
# coding: utf-8
"""
Seldon Deploy API
API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501
OpenAPI spec version: v1alpha1
Contact: hello@seldon.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future... |
import React, { Component } from 'react';
import './SingleGallery.css';
class SingleGallery extends Component {
constructor(props) {
super(props);
this.state = {
gallery: []
}
}
componentWillMount() {
fetch(`https://5a60889111654a0012d3013f.mockapi.io/imagecard/users/${this.props.id}/image... |
#from PyQt6.QtCore import QSize, Qt
#from PyQt6.QtWidgets import QApplication, QMainWindow, QTableView
from PyQt6.QtSql import QSqlDatabase, QSqlTableModel, QSqlQueryModel
from mainwindow import Ui_MainWindow
from PyQt6 import QtCore, QtGui, QtWidgets
db = QSqlDatabase("QSQLITE")
db.setDatabaseName("./baza/chinook.db")... |
'use strict'
/* global describe, beforeEach, it */
var expect = require('chai').expect
var angular = require('angular')
require('angular-mocks/ngMock')
describe('cc-cvc', function () {
beforeEach(angular.mock.module(require('../')))
var $compile, scope, controller, element
beforeEach(angular.mock.inject(funct... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkLabeledTreeMapDataMapper.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This... |
##NOTE: Always leave this variable
my_commands = {
#Add all the commands that you want the bot to handle from this module
#e.g: [[COMMAND-NAME]] : {"notes":[[COMMAND-DESCRIPTION]]}
#EXAMPLE
#"/howToContactYou" : {"notes":" Check how you can contact me!"},
}
##NOTE: Always leave this method
#Always le... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var EventBusy = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createElement... |
const modalItem = (tipe='show') => $('#modal').modal(tipe);
var tabel = '';
var btnHapus = '';
var btnSimpan = new Tombol('#btnSimpan');
function simpan() {
let simpandata = $.ajax(url+'/simpan', {
dataType: 'json',
type: 'POST',
data: $('#form').serialize(),
beforeSend: () => b... |
#!/usr/bin/env python
"""
Module that trains a linear regression model to combine
content based and collaborative recommenders.
"""
import numpy
from sklearn import linear_model
class LinearRegression(object):
"""
Linear regression to combine the results of two matrices.
"""
def __init__(self, train_l... |
import re
from abc import ABC
from collections.abc import Sequence
from ats.utils.schemaengine import Schema, Optional, Any, Or
from ats.utils.schemaengine import Use, And, Default, Fallback
from ats.utils.import_utils import import_from_name
from genie.metaparser.util.exceptions import SchemaError
from .device impor... |
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
version = '0.6.7'
setup(name='mi-instrument',
version=version,
description='OOINet Marine Integrations',
url='https://github.com/oceanobservatories/mi-instrument',
... |
/* eslint-disable */
import React from 'react';
import { getComponents } from 'boringbits/react';
import {Helmet} from 'boringbits/client';
import {connect} from 'react-redux';
import PageList from '../components/PageList';
import SiteTree from '../components/SiteTree';
import fetch from 'cross-fetch';
import Grid from... |
from tropo.base import Template, dump
from tropo.storage import StorageAccount
def test_template():
sa = StorageAccount(name="storage-1", location="westeurope", sku={"name": "Standard_RAGRS"}, kind='Storage')
t = Template(resources=[sa])
expected = {'$schema': 'https://schema.management.azure.com/schemas/2... |
/*-
* Copyright (c) 2002 Jake Burkholder
* Copyright (c) 2004 Robert Watson
* 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 copy... |
import 'angular';
import 'angular-mocks/angular-mocks';
import './app/pickerService';
var context = require.context('./', true, /app\/(?!datepick|custom-bootstrap).+\.js$/);
context.keys().forEach(context);
|
import math, hashlib, json, os, random
from datetime import datetime, timedelta
import sqlalchemy as sa
from sqlalchemy.orm import relationship
from sqlalchemy.types import *
from metamodel import *
import bcrypt
@Model
def Log():
target_id = ForeignKey(Integer, 'Target.id')
message = Unicode(65536)
at ... |
/**
* @file origin.h
* @brief Parse origin from xml string
*
* @author Levi Armstrong
* @date September 1, 2019
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2019, Southwest Research Institute
*
* @par License
* Software License Agreement (Apache License)
* @par
* Licensed under the Ap... |
import Component from './component';
({
id: "2cUE8DNl",
block: "{\"symbols\":[],\"statements\":[[7,\"Component\",[],[[],[]],null]],\"hasEval\":false,\"upvars\":[]}",
meta: {
scope: () => ({
Component
})
}
});
|
# coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.22
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import ate... |
const uuid = require("uuid");
const models = require("../models");
const bcrypt = require("bcrypt");
const JwtStartegy = require("passport-jwt").Strategy;
const jwt = require("jsonwebtoken");
const mailer = require("../utilities/mailjet");
const helpers = require("../utilities/helpers");
const paystackApi = require('.... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import TopSection from 'library/saya/Rick/TopSection';
import AboutNews from 'library/saya/Rick/AboutNews';
import TechnologyProjects from 'library/saya/Rick/TechnologyProjects';
import MobileLayout from '../../../shared/MobileLayout';
import b... |
const moment = require("moment");
const { format } = require("date-fns");
describe("misc1", () => {
it.each([[82800], [3600]])("startTime=%i, expected=", (startTime) => {
const actualTime1 = moment(startTime * 1000)
.utc(false)
.format("HH:mm")
.toString();
const actualTime2 = format(new D... |
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import fu... |
# Generated by Django 2.0.7 on 2018-08-24 15:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... |
const express = require('express');
const router = express.Router();
const {
db,
dbSync
} = require('../../db.js');
router.post('/api/getSingleClient', (req, res) => {
const {
ident_code
} = req.body;
const sql = `SELECT id FROM clients WHERE ident_code = '${ident_code}'`;
d... |
class PatternProjectAndCapture
{
public:
projectAndCapture();
private:
void initialize();
vector<IplImage*> projectedFringePatternsVertical;
vector<IplImage*> projectedFringePatternsHorizontal;
vector<IplImage*> projectedGrayCodesVertical;
vector<IplImage*> projectedGrayCodesHorizontal;
vector<IplImage*... |
/*
* Layer 20
*/
@class Secret20_DecryptedMessageAction;
@class Secret20_DecryptedMessageAction_decryptedMessageActionSetMessageTTL;
@class Secret20_DecryptedMessageAction_decryptedMessageActionReadMessages;
@class Secret20_DecryptedMessageAction_decryptedMessageActionDeleteMessages;
@class Secret20_DecryptedMessage... |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
# Modifications copyright (C) 2017 Uber Technologies, 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.apa... |
# Copyright 2015 Nervana Systems Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |