text stringlengths 3 1.05M |
|---|
/*
* @author : Ram Kulkarni (http://ramkulkarni.com)
*/
function startScript(canvasId)
{
playbackInterruptCommand = "";
$(document).bind("ready", function()
{
$("#pauseBtn").hide();
//$("#playBtn").hide();
drawing = new RecordableDrawing(canvasId);
$("#recordBtn").click(function(){
var btnTxt = $("#re... |
const config = {
...require("./webpack.common"),
mode: "production",
};
module.exports = config;
|
#! /usr/bin/python
#import cv2
#import sys
print("Python version sss")
#print (sys.version)
print("Version info.")
#print (sys.version_info)
import rospy
from std_msgs.msg import String
def talker():
pub = rospy.Publisher('chatter', String, queue_size=10)
rospy.init_node('talker', anonymous=True)
rate = ... |
# Copyright (c) OpenMMLab. All rights reserved.
from .bisenetv1 import BiSeNetV1
from .bisenetv2 import BiSeNetV2
from .cgnet import CGNet
from .fast_scnn import FastSCNN
from .hrnet import HRNet
from .icnet import ICNet
from .mit import MixVisionTransformer
from .mobilenet_v2 import MobileNetV2
from .mobilenet_v3 impo... |
# Limites
from limite.telaGenerica2 import TelaGenerica
# Utils
from PySimpleGUI import PySimpleGUI as sg
class TelaRelatorio(TelaGenerica):
def __init__(self, controlador):
super().__init__(controlador)
self.init_components()
def init_components(self):
sg.ChangeLookAndFeel('Reddit'... |
// BEGIN-SNIPPET dialog-component.js
import Component from '@ember/component';
export default Component.extend({
actions: {
onSubmit(value) {
alert(value);
}
}
});
// END-SNIPPET |
import sys
import json
import re
import string
import logging
import numpy as np
import unicodedata
from nltk.stem.porter import PorterStemmer
stemmer = PorterStemmer()
logger = logging.getLogger()
def normalize_answer(s):
def remove_articles(text):
return re.sub(r"\b(a|an|the)\b", " ", text)
def ... |
'use strict';
/**
* @ngdoc directive
* @name webAppApp.directive:timeEditor
* @description
* # timeEditor
*/
angular.module('webAppApp')
.directive('timeEditor', function() {
return {
template: '<input ng-required="ngRequired" ng-disabled="ngDisabled" type="time" class="form-control" ng-m... |
/*
* Ext JS Library 3.3.0
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.ComponentMgr=function(){var c=new Ext.util.MixedCollection();var b={};var a={};return{register:function(d){c.add(d)},unregister:function(d){c.remove(d)},get:function(d){return c.get(d)},onAva... |
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = env.bool('DJANGO_DEBUG', default=True)
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET... |
module.exports = {};
const plugins = {
react: require("eslint-plugin-react"),
import: require("eslint-plugin-import"),
sonarjs: require("eslint-plugin-sonarjs"),
prettier: require("eslint-plugin-prettier"),
"@typescript-eslint": require("@typescript-eslint/eslint-plugin")
};
// Eslint can't load plugins tra... |
# Pydifact - a python edifact library
#
# Copyright (c) 2021 Karl Southern
#
# 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
# ... |
# Copyright 2011 Red Hat, 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 t... |
/*
* bad-test.js: Tests for intentionally broken command(s).
*
* (C) 2010, Nodejitsu Inc.
*
*/
var assert = require('assert'),
fs = require('fs'),
path = require('path'),
nock = require('nock'),
vows = require('vows'),
jitsu = require('../../lib/jitsu'),
macros = require('../helpers/macro... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'en-gb', {
armenian: 'Armenian numbering',
bulletedTitle: 'Bulleted List Properties',
circle: 'Circle',
decimal: 'Decimal (1, 2, 3, e... |
class Solution:
def findNumbers(self, nums: List[int]) -> int:
counter = 0
for numbers in nums:
converted_num = str(numbers)
if len(converted_num) %2 == 0:
counter = counter + 1
return counter |
# -*- coding: utf-8 -*-
import sys
import logging
import http.client
from redis import StrictRedis
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
from django.conf import settings
from django.contrib.auth import get_user
from django.core.handlers.wsgi import WSGIRequest
from django.core.exceptions im... |
#pragma once
class Frustum;
class Planet;
struct PatchInstance;
#include "Patch.h"
enum TriNext
{
CULL,
LEAF,
SPLIT,
SPLITCULL
};
struct Tri
{
Tri(glm::vec3 A, glm::vec3 B, glm::vec3 C, Tri* Parent, short Level)
:a(A), b(B), c(C), parent(Parent), level(Level)
{
}
Tri* parent = nullptr;
Tri* c1 = nullptr... |
from selenium import webdriver
from selenium.webdriver import Firefox
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.firefox.options import Options
from selenium.common import exceptions
import r... |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from hydra.core.config_search_path import ConfigSearchPath
from hydra.plugins.search_path_plugin import SearchPathPlugin... |
import React from 'react';
import Link from '../../../link/link';
import './description.css';
const description = {
ORF1a: (
<div className="display__sequence-description">
<h3>ORF1a</h3>
<div className="display__sequence-nucleotides">
<span>Start:</span>
<span>266</span>
<s... |
var group__group_details =
[
[ "any_of", "structboost_1_1hana_1_1detail_1_1any__of.html", null ],
[ "array", "structboost_1_1hana_1_1detail_1_1array.html", null ],
[ "CanonicalConstant", "structboost_1_1hana_1_1detail_1_1CanonicalConstant.html", null ],
[ "create", "structboost_1_1hana_1_1detail_1_1crea... |
/* =========================================================================
zconfig - work with config files written in rfc.zeromq.org/spec:4/ZPL.
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of CZMQ, the high-level C binding for 0MQ:
http://czmq.zeromq.org.
Thi... |
from diagrams import Cluster, Diagram
from diagrams.aws.compute import ECS, EKS, Lambda
from diagrams.aws.database import Redshift
from diagrams.aws.integration import SQS
from diagrams.aws.storage import S3
with Diagram("Event Processing", show=False):
source = EKS("k8s source")
with Cluster("Event Flows"):... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_Krypt_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_Krypt_ExampleVersionStr... |
import uvicorn
from fastapi import FastAPI, File,Form,Body,status
from typing import List,Optional
import cv2
import numpy as np
import pytesseract
import os
import io
from fastapi.responses import JSONResponse
import datetime
hypegenai = FastAPI()
import numpy as np
import cv2
from PIL import ImageFile
import os
from ... |
require( './styles/impossiblefish.css' )
import * as autosizeTank from './scripts/autosizeTank.js';
import * as fillTank from './scripts/fillTank.js';
import * as menu from './scripts/menu.js'
window.onload = function(){
function $( selector, container ) {
return ( container || document ).querySelector( selector... |
import numpy as np
# Pytorch
import torch
from torch import nn, optim
import torchvision
from torchvision import datasets, models, transforms, utils
# Miscellaneous
import os
import time
import json
from PIL import Image
import argparse
def load_model(hidden_layer_size, arch):
model = getattr(models, arch)(pretr... |
# Copyright 2019 ByteDance, Inc. All Rights Reserved.
# Copyright 2019 Uber Technologies, 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.o... |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# use exception
|
'use strict'
const requestIp = require('request-ip')
const isLocalhost = require('../../utils/is-localhost')
/**
* The register method used by hapi.js.
* @param {Hapi.Server} server
* @param {Object} options
* @return {void}
*/
const register = async (server, options) => {
const requiredHeaders = ['nethash',... |
var _ = require('lodash'),
Promise = require('bluebird'),
sequence = require('../../utils/sequence'),
path = require('path'),
fs = require('fs'),
errors = require('../../errors'),
commands = require('./commands'),
versionin... |
# -*- coding: utf-8 -*-
#/usr/bin/python2
'''
By kyubyong park. kbpark.linguist@gmail.com.
https://www.github.com/kyubyong/tacotron
'''
class Hyperparams:
'''Hyper parameters'''
# mode
sanity_check = False
gan_mode = True
# data
#text_file = 'WEB/text.csv'
#sound_fpath = 'WEB'
dat... |
STATUS_EVENT = "status"
RESUME_EVENT = "resume"
TEST_COMPLETED_EVENT = "test_completed"
class EventDispatcher(object):
def __init__(self):
self._clients = {}
def add_session_client(self, client):
token = client.session_token
if token not in self._clients:
self._clients[tok... |
import numpy as np
from numpy.random import rand
import matplotlib.animation as animation
import matplotlib.pyplot as plt
import matplotlib as mpl
import pandas as pd
import json
from skimage import exposure,img_as_ubyte
import time
import argparse
import os
import glob
import re
from scipy.interpolate import griddata
... |
from django.urls import path
from .views import HomePageView, AboutPageView, add_order, checkout,json_endpoint
urlpatterns = [
path('', HomePageView.as_view(), name='home'),
path('about/', AboutPageView.as_view(), name='about'),
path('order/', add_order, name='order'),
path('checkout/', checkout, name... |
from datetime import datetime
import operator
from flask import request, jsonify
from segservice import app
from segservice.model import SmartSegmenter
from segservice import database
from segservice.database import format_data
@app.method('/frequencies')
def add_frequencies(req_data):
database.insert_page_data(re... |
export default {
data() {
return {
selectList: [
{
value: 'name',
searchType: 'input',
name: '发票编号'
},
{
value: 'phone',
searchType: 'select',
name: '发票类型',
selectData: []
},
{
value: 'new... |
var qqueue_8c =
[
[ "qqueue", "qqueue_8c.html#a7bd8537313542cb0db0c912fce4af056", null ],
[ "qqueue_setsize", "qqueue_8c.html#ada41104b85c01a5773263c3ff84f9dc5", null ],
[ "qqueue_push", "qqueue_8c.html#a3111eeb954b1af9c0c8a67f96968b988", null ],
[ "qqueue_pushstr", "qqueue_8c.html#a382fb2a1977afc2b129b... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/**
* Link to the project's GitHub page:
* https://github.com/duralog/CodeMirror
*/
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(requ... |
""" demo for an interesting problem in reference vs value """
class BoolWrapper(object):
def __init__(self, value):
self.value = value
def __repr__(self):
return self.value
def __str__(self):
return str(self.value)
class MainClass(object):
def __init__(self):
self.data = BoolWrapper(True)
obj = MainCla... |
/* gencodeAttrs.h was originally generated by the autoSql program, which also
* generated gencodeAttrs.c and gencodeAttrs.sql. This header links the database and
* the RAM representation of objects. */
#ifndef GENCODEATTRS_H
#define GENCODEATTRS_H
#define GENCODEATTRS_NUM_COLS 14
extern char *gencodeAttrsCommaSe... |
//Created by [rxreducer] snippet.
import {
DELETE_MOVIE_FULFILLED,
DELETE_MOVIE_PENDING,
DELETE_MOVIE_REJECTED,
FETCH_MOVIES_FULFILLED,
FETCH_MOVIES_PENDING,
FETCH_MOVIES_REJECTED,
} from "../actions/moviesAction";
const initialState = {
movies: [],
error: {},
loading: false,
};
export default (state... |
from .EnvVarCondition import *
from ....Helpers import logging_helper
from ....Helpers.pbPlist import pbItem
import objc
import re
from .EnvConstants import *
class EnvVariable(object):
def __init__(self, dictionary):
self.added_after = False;
self.mergedKeys = set();
self.parentValue... |
#!_PYTHONLOC
#
# (C) COPYRIGHT 2014-2021 Ahasuerus
# ALL RIGHTS RESERVED
#
# The copyright notice above does not evidence any actual or
# intended publication of such source code.
#
# Version: $Revision$
# Date: $Date$
from SQLparsing import *
from biblio import *
if __name__ == '__mai... |
'use strict';
module.exports = app => {
return class extends app.Serializer {
constructor() {
super();
this.fields = [
'count',
'time',
// ... and so on
];
}
format(obj, options) {
if (options.null) return null;
const data = this.pick(obj);
d... |
const express = require('express')
const { join } = require('path')
const app = express()
app.use(express.static(join(__dirname, 'public')))
app.use(express.urlencoded({ extended: true }))
app.use(express.json())
app.get('/notes', (req, res) => {
res.sendFile('/public/notes.html', {root:__dirname})
console.log... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = fact... |
# coding: utf-8
from sqlalchemy.testing import eq_
from sqlalchemy import types as sqltypes, exc, schema
from sqlalchemy.sql import table, column
from sqlalchemy.testing import (fixtures,
AssertsExecutionResults,
AssertsCompiledSQL)
from sqlalchemy impor... |
const minimax = require('../../../src/game/ai/minimax')
const referee = require('../../../src/game/referee')
describe('the minimax algorithm', () => {
let board
beforeEach(() => {
board = referee.create()
})
it('throws an error if the board is full', () => {
board = referee.update(board, 1, 'X')
b... |
from django.conf import settings
DATABASE_MAPPING = settings.DATABASE_APPS_MAPPING
# A router to control all database operations on models1 for different
# databases.
#
# In case an app is not set in settings.DATABASE_APPS_MAPPING, the router
# will fallback to the `default` database.
#
# Settings ... |
const vueWithTransform = require('vue-template-es2015-compiler');
const paramsDetect = require('./../../../ast/paramsDetect');
const CONST = require('./../../../util/const');
/**
* parsse handler AST
* @param {String} expr function expression, e.g. doSomething(a,b,c); item++;
* @return {Object} AST result
... |
#
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
from rlstructures.logger import Logger, TFLogger
from rlstructures import DictTensor, TemporalDictTensor
from rlstructures import logging... |
#!/usr/bin/env python
# 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
#
# Authors:
# - Paul Nilsson, paul.nilsson@cern.ch, 2017-2019
import os
impo... |
/*
* http://burtleburtle.net/bob/c/lookup3.c
*/
/*
* ----------------------------------------------------------------------------
* lookup3.c, by Bob Jenkins, May 2006, Public Domain.
*
* These are functions for producing 32-bit hashes for hash table lookup.
* hashword(), hashlittle(), hashlittle2(), hashbig(),... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var tap_1 = __importDefault(require("tap"));
var mapper_1 = require("../../lib/mapper");
var dictionarie... |
describe("when always caching pages", {
"deco/ajax": "Mocks/ajaxMock"
},[
"deco/spa/PageLoader",
"deco/ajax"
], function(
PageLoader,
ajax
){
var pageLoader;
beforeEach(function(){
var config = {
cachePages: true
};
pageLoader = new PageLoader(config);
ajax.respondImmediately = f... |
'use strict';
module.exports = {
db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/mean-test',
http: {
port: 3001
},
aggregate: false,
assets: {
hash: false
},
logging: {
format: 'common'
},
app: {
name: 'Contenful API Showcase by foolishneo'
},
strategies... |
__author__ = 'vin@misday.com'
class KeyEvent:
'''From ${android}\android-sdk-windows\sources\android-23\android\view\KeyEvent.java'''
# /** Key code constant: Unknown key code. */
KEYCODE_UNKNOWN = 0;
# /** Key code constant: Soft Left key.
# * Usually situated below the display... |
function checkClipRect(page, clipRect) {
it("should have clipRect with height "+clipRect.height, function () {
expect(page.clipRect.height).toEqual(clipRect.height);
});
it("should have clipRect with left "+clipRect.left, function () {
expect(page.clipRect.left).toEqual(clipRect.left);
}... |
from __future__ import print_function
import os, sys
from PIL import Image
for infile in sys.argv[1:]:
f, e = os.path.splitext(infile)
outfile = f + ".jpg"
print(outfile)
if infile != outfile:
try:
Image.open(infile).save(outfile)
except IOError:
print("cannot co... |
#!/usr/bin/env python3
import calendar
cal = calendar.Calendar(calendar.SUNDAY)
cal_data = cal.yeardays2calendar(2017, 3)
print("Length : {}".format(len(cal_data)))
top_months = cal_data[0]
print("Length of top_months: {}".format(len(top_months)))
first_month = top_months[0]
print("Length of first_month: {}".forma... |
# Copyright 2020 - 2021 MONAI Consortium
# 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 wri... |
/* *********************************************************************
* _____ _ _
* |_ _|____ _| |_ _ _ __ _| |
* | |/ _ \ \/ / __| | | |/ _` | |
* | | __/> <| |_| |_| | (_| | |
* |_|\___/_/\_\\_... |
const tsc = require("typescript");
const tsConfig = require("./tsconfig.json");
module.exports = {
process(src, path) {
if (path.endsWith(".ts") || path.endsWith(".tsx")) {
return tsc.transpile(src, tsConfig.compilerOptions, path, []);
}
return src;
}
};
|
import torch
from torch import nn
import pdb
class PredictiveAE(nn.Module):
def __init__(self, size=128, num_lstm_layers=1, lstm_size=512):
super(PredictiveAE, self).__init__()
self.size = size
self.lstm_size = lstm_size
self.num_lstm_layers = num_lstm_layers
self.lstms = [nn.LSTMCell(size, self.lstm_size... |
// COPYRIGHT © 2020 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
# Utils file for password-strength
# Imports
import os
import platform
# Mapping the clear screen command accordingly to each OSes
os_command_mapper = {'Windows':'cls', 'Linux':'clear', 'Darwin':'clear'}
def clear_screen():
try:
cmd = os_command_mapper[platform.system()]
os.system(cmd)
excep... |
import scipy.misc
import numpy as np
import os
from glob import glob
import imageio
import tensorflow as tf
import tensorflow.contrib.slim as slim
from keras.datasets import cifar10, mnist
class ImageData:
def __init__(self, load_size, channels, crop_pos='center'):
self.load_size = load_size
self... |
"""
This file offers the methods to automatically retrieve the graph Dongia sp. URHE0060.
The graph is automatically retrieved from the STRING repository.
Report
---------------------
At the time of rendering these methods (please see datetime below), the graph
had the following characteristics:
Datetime: 2021-02... |
var winState = {
create: function(){
var winLabel = game.add.text(80, 80, 'YOU WON',
{font: "50px Arial", fill:"#00FF00"});
var startLabel = game.add.text(80, game.world.height-80, 'press "w" key to restart',
{font: "25px ... |
import io
import os
import re
from setuptools import find_packages
from setuptools import setup
with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()
setup(
name="csj_parser",
version="0.0.2",
url="https://github.com/Proteus-tech/csj-parser",
license='MIT',
author... |
$('.nav-item').removeClass('active')
$('#menu-member').addClass('active')
var ROLE = ''
var STATUS = ''
async function setData(page=1) {
let query = '?page='+page+'&role='+ROLE+'&status='+STATUS
let data = await get(BASE_URL+'/account'+query)
if(data && data['status']) {
let html = ''
let... |
/**
******************************************************************************
* @file lcdconf.c
* @author MCD Application Team
* @brief This file implements the configuration for the GUI library
******************************************************************************
* @attention
*
* Co... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import configparser
import html
import os
import selenium
import selenium.webdriver.chrome.options
import sentry_sdk
import sqlite3
import time
import twitter
import urllib
class Twitter2Facebook(object):
def post(self, text):
url = 'https://mbasic.facebook.c... |
import { combineReducers } from 'redux';
import counterReducer from './CounterReducer';
const reducers = combineReducers({
newState: counterReducer
})
export default reducers;
|
"""
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v0.0.1-alpha.46
Contact: support@ory.sh
Generated by: htt... |
//
// NewSwimViewController.h
// zuimeigeci
//
// Created by Mee Leo on 3/9/2015.
// Copyright © 2015 YCompany. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NewSwimViewController : UIViewController
@end
|
# -*- coding: utf-8 -*-
import os
import KBEngine
from KBEDebug import *
from Poller import Poller
"""
interfaces进程主要处理KBEngine服务端与第三方平台的接入接出工作。
(注意:由于interfaces是一个单线程服务器,如果需要使用python的http服务器库,建议使用异步的(例如:Tornado),否则会卡主线程造成阻塞)
目前支持几种功能:
1: 注册账号
当客户端请求注册账号后,请求会由loginapp转发到dbmgr,如果dbmgr挂接了interfaces,则dbmgr将请求转发至这里(KBEng... |
/*
The following source code derives from Darknet
*/
#include <algorithm>
#include <iomanip>
#include <iosfwd>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <math.h>
using namespace std;
using namespace std::chrono;
#define CONF 0.5
const int classificationCnt = 3;
const int an... |
#!/usr/bin/env python
# ===============================================================================
# Copyright (c) 2014 Geoscience Australia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
... |
import os
import numpy as np
import json
import EggNet
import EggNet.Reader
from util import perform_real_quant, init_network_from_weights, plot_confusion_matrix, evaluate_network_full, \
quant2float, init_fake_network_from_weights, read_np_keras, \
init_quant_network_from_weights
def quant_to_int(x, b, f):... |
/*! UIkit 2.19.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
!function(t){var i;window.UIkit&&(i=t(UIkit)),"function"==typeof define&&define.amd&&define("uikit-slideset",["uikit"],function(){return i||t(UIkit)})}(function(t){"use strict";function i(i,e,s,n){var a,o,r,l,u=t.$.Deferred(),h=this.option... |
// Copyright (c) 2011-2019 The ton Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ton_WALLET_COINCONTROL_H
#define ton_WALLET_COINCONTROL_H
#include <policy/feerate.h>
#include <policy/fees.h>
#include ... |
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 7 13:44:35 2021
@author: Brandon Caron
"""
import winreg
import os
import difflib
def get_software_list(hive, flag):
aReg = winreg.ConnectRegistry(None, hive)
aKey = winreg.OpenKey(aReg,
r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", 0,
... |
module.exports = [
// instance
{ method: 'post', path: 'instance/item', controller: 'instance', meta: { right: { type: 'resource', module: 'a-settings', name: 'settings' } } },
{
method: 'post',
path: 'instance/save',
controller: 'instance',
middlewares: 'validate',
meta: {
validate: { v... |
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import { centered } from 'components/Field/Field.scss';
import { Constraints } from 'lib/Filters';
import DateTimeEntry... |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... |
import App from './app'
import Header from './header'
import Form from './form'
import Field from './field'
import FieldErrors from './field_errors'
import StringInput from './string_input'
import NumberInput from './number_input'
import DateTimeInput from './date_time_input'
import TextInput from './text_input'
import... |
const xmlhttprequest = require('./xmlhttprequest');
const defaultLogger = require('./logger');
const Pool = require('./pool');
const requestHandler = require('./request-handler');
const responseHandler = require('./response-handler');
const validate = require('./validate');
global.XMLHttpRequest = xmlhttprequest.XMLH... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:43:41 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/Frameworks/PencilKit.framework/PencilKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limn... |
import './App.css';
import { useState } from 'react';
import axios from 'axios';
function App() {
const [user, setUser] = useState({
name: '',
class: ''
})
function handleChange(event) {
const { name, value } = event.target;
setUser(prevInput => {
return {
...prevInput,
[na... |
//
// Created by mwo on 5/11/15.
//
#ifndef XMREG01_TOOLS_H
#define XMREG01_TOOLS_H
#define PATH_SEPARARTOR '/'
#define ARQ_AMOUNT(value) \
static_cast<double>(value) / 1e9
#define REMOVE_HASH_BRAKETS(a_hash) \
a_hash.substr(1, a_hash.size()-2)
#include "arqma_headers.h"
#include "../ext/fmt/ostream.h"
... |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Point of Sale',
'version': '1.0.1',
'category': 'Sales/Point of Sale',
'sequence': 40,
'summary': 'User-friendly PoS interface for shops and restaurants',
'description': "",
'depend... |
from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('about/', views.about),
path('contributors/', views.contributors),
path('test/', views.test),
path('form/', views.form),
path('add-new/', views.newMembers),
path('results/', views.results),
pat... |
import hashlib
import os
from typing import Dict
from loguru import logger
DEFAULT_SALT = "DEFAULT_LANDMARKERIO_SALT"
APP_SALT = os.getenv("LANDMARKERIO_SALT", DEFAULT_SALT)
# Create default sentinel that cannot match with anything
class _MISSING:
pass
MISSING = _MISSING()
def hash_password(salt: str, passw... |
/*BBWOW:This file is part of datchannin bbWoW mod, mod_version = 10.00, game_version = 1.4.0.49*/
/*
* @Project: Battle Brothers
* @Company: Overhype Studios
* @Description: Perks Module JS
*/
"use strict";
var CharacterScreenPerksModule = function(_parent, _dataSource)
{
this.mParent = _parent;
this.... |
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generato... |
const express = require("express");
const router = express();
const { createWebAPIRequest } = require("../util/util");
router.get("/", (req, res) => {
const cookie = req.get("Cookie") ? req.get("Cookie") : "";
const data = {
artistId: `${req.query.id}`
};
createWebAPIRequest(
"music.163... |