text
stringlengths
3
1.05M
# This file was automatically created by FeynRules $Revision: 535 $ # Mathematica version: 7.0 for Mac OS X x86 (64-bit) (November 11, 2008) # Date: Fri 18 Mar 2011 18:40:51 from object_library import all_couplings, Coupling from function_library import complexconjugate, re, im, csc, sec, acsc, asec ################...
/* Copyright (C) 2014 Paul Brossier <piem@aubio.org> This file is part of aubio. aubio 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 3 of the License, or (at your option) any later v...
const Command = require('../Command'); const messages = { 'errorChecking': 'Hmm.. I encountered some issues looking up the players. Is Shotbow.net offline?', 'errorBadKey': 'Hmm.. I couldn\'t find the game you were talking about. Try again?', 'result': 'There { count, plural, one {is currently # player} ...
if (document.querySelector('#com-atlassian-confluence')) { console.log(" -- cf-auto-expander"); /* jquery-based auto-expander */ // $('.expand-control > .icon:not(.expanded)') // .parent() // .click(); /* pure-js auto-expander */ [] .slice.call(document.querySelectorAll('.expand-contro...
$(function() { var data_to_pass = {}, dg_status = $("#dg_status").val(); if(dg_status) { data_to_pass = { "dg_status": dg_status } } // get vars $.ajax({ url: "/url/to/ajax_get_vars.php", type: "POST", data: data_to_pass, dataType...
"""Support for sending data to Dweet.io.""" import logging from datetime import timedelta import voluptuous as vol from homeassistant.const import ( CONF_NAME, CONF_WHITELIST, EVENT_STATE_CHANGED, STATE_UNKNOWN) import homeassistant.helpers.config_validation as cv from homeassistant.helpers import state as state_...
var project = (function(obj) { var plugin_path = "../plugin/project"; obj.plugin_path = plugin_path; obj.init = function() { central.project = {}; //support.loadJS(plugin_path+"/new_project.js"); support.loadJS(plugin_path+"/open_project.js"); support.loadJS(plugin_path+"/project_tree.js"); support.loa...
"use strict"; exports.__esModule = true; /** * Returns true if any item within the haystack contains the needle * @param {string} needle * @param {array} haystack * @return {boolean} */ exports["default"] = (function (needle, haystack) { if (needle === void 0) { needle = ''; } if (haystack === void 0) { ha...
#!/usr/bin/env python # Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
$(document).ready(function() { var timeout = setTimeout(function() { $('.check').on('click', function() { if ($(this).hasClass('checked')) { $(this).removeClass('checked'); } else { $(this).addClass('checked'); } }); }, 1000); });
""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") # from whitenoise....
/** * Auto-generated action file for "Linode" API. * * Generated at: 2019-06-06T13:12:27.533Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / linode-com-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed under the A...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import style from './style.styl'; class Switch extends Component { static defaultProps = { selected: false, apply: () => {} } static propTypes = { selected: Pro...
import random import math import time import pandas as pd import numpy as np import torch import torch.utils.data as data import torch.nn as nn import torch.nn.functional as F import torch.optim as optim # Thiết định các giá trị ban đầu torch.manual_seed(1234) np.random.seed(1234) random.seed(1234) from utils.datalo...
# MINLP written by GAMS Convert at 01/15/21 11:37:32 # # Equation counts # Total E G L N X C B # 1115 397 80 638 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
import argparse import os import pickle import sys import numpy as np import pandas as pd import scipy.sparse as sp sys.path.append('../') import grb.utils as utils from grb.dataset import Dataset from grb.evaluator import AttackEvaluator if __name__ == '__main__': parser = argparse.ArgumentParser(description='...
export default async function handleUpload (data) { const file = data try { const fileContents = readUploadedFileAsText(file) return fileContents } catch (e) { console.warn(e.message) } } function readUploadedFileAsText (inputFile) { const temporaryFileReader = new FileReader() return new Prom...
from fcache.cache import FileCache from UnleashClient.features.Feature import Feature from UnleashClient.variants.Variants import Variants from UnleashClient.constants import FEATURES_URL from UnleashClient.utils import LOGGER # pylint: disable=broad-except def _create_strategies(provisioning: dict, ...
from apscheduler.schedulers.blocking import BlockingScheduler from linebot import LineBotApi from linebot.models import TextSendMessage import urllib.request import os sched = BlockingScheduler() #定時去戳 url 讓服務不中斷 @sched.scheduled_job('cron', day_of_week='mon-sun', minute='*/25') def scheduled_job(): ur...
/* http://prismjs.com/download.html?themes=prism&languages=clike+javascript+json */ var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,uti...
from django.urls import reverse from rest_framework import status from rest_framework.test import force_authenticate from core.models import UserModel from recycle.models import CommercialRequest from recycle.views.commercial_order import CommercialOrderDetailsAPIView from tests.unittests.common import APIFactoryTestC...
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2010-2012 Gary Burton # GraphvizSvgParser is based on the Gramps XML import # DotSvgGenerator is based on the relationship graph # report. # ...
import pickle import typing as _t from cachelib.base import BaseCache class RedisCache(BaseCache): """Uses the Redis key-value store as a cache backend. The first argument can be either a string denoting address of the Redis server or an object resembling an instance of a redis.Redis class. Note: P...
#!/usr/bin/.env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ExpenseTracker.settings') try: from django.core.management import execute_from_command_line exc...
#ifndef TESTCOMPUTECOMMONATTRIBUTES_H #define TESTCOMPUTECOMMONATTRIBUTES_H #include "../src/ShapePopulationBase.h" #include <math.h> class TestShapePopulationBase { public: TestShapePopulationBase(); bool testComputeCommonAttributes(std::string filename, std::string filenameExpectedResult); }; #endif // ...
const db = require("../db/conn"); const { Post, Community, User } = require("../models"); const postData = require("./postData.json"); const userData = require("./userData.json"); const communityData = require("./communityData.json"); db.once("open", async () => { await Post.deleteMany({}); const post = await Post...
import importlib.util import os import stat import typing from email.utils import parsedate import anyio from starlette.datastructures import URL, Headers from starlette.exceptions import HTTPException from starlette.responses import FileResponse, RedirectResponse, Response from starlette.types import Receive, Scope,...
import typescript from "rollup-plugin-typescript2" import {nodeResolve} from "@rollup/plugin-node-resolve" import commonJS from "@rollup/plugin-commonjs" export default { input: "./src/index.ts", output: [{ format: "cjs", file: "./dist/index.cjs", externalLiveBindings: false }, { format: "es", ...
# -*- coding: utf-8 -*- #import sys #import os #import sample #def initialize(): # sys.path.insert(0, "C:\\Users\\usuario\\GIT\\Game\\sample") # sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.p...
from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404, redirect, render from .forms import RecpieForm from .models import Ingredient, Recipe, RecipeIngredient @login_required def food_recipe_list_view(request): """ View: Get all recipies associated with the curr...
/* $NetBSD: fmvreg.h,v 1.1 2002/10/05 15:16:11 tsutsui Exp $ */ /* * All Rights Reserved, Copyright (C) Fujitsu Limited 1995 * * This software may be used, modified, copied, distributed, and sold, * in both source and binary form provided that the above copyright, * these terms and the following disclaimer are re...
import io import sys import textwrap from test.support import warnings_helper, captured_stdout, captured_stderr import traceback import unittest from unittest.util import strclass class MockTraceback(object): class TracebackException: def __init__(self, *args, **kwargs): self.c...
# Generated by Django 3.1 on 2020-09-20 19:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0008_auto_20200920_0550'), ('accounting', '0001_initial'), ] operations = [ migrations.AlterMo...
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
# -*- coding: utf-8 -*- """Convert ICD-10 to OBO. Run with python -m pyobo.sources.icd10 -v """ import logging from typing import Any, Iterable, Mapping import click from more_click import verbose_option from tqdm import tqdm from ..sources.icd_utils import ( ICD10_TOP_LEVEL_URL, get_child_identifiers, ...
"""Contains a dictionary that maps file extensions to VTK readers.""" import pathlib import os import numpy as np import vtk import pyvista VTK9 = vtk.vtkVersion().GetVTKMajorVersion() >= 9 READERS = { # Standard dataset readers: '.vtk': vtk.vtkDataSetReader, '.pvtk': vtk.vtkPDataSetReader, '.vti':...
''' [Hard]This problem was asked by Amazon. There exists a staircase with N steps, and you can climb up either 1 or 2 steps at a time. Given N, write a function that returns the number of unique ways you can climb the staircase. The order of the steps matters. For example, if N is 4, then there are 5 unique ways: ...
describe('[Regression](GH-423)', function () { it('Should raise click event except in Firefox if target element appends child after mousedown', function () { return runTests('testcafe-fixtures/index.test.js', 'Raise click if target appends child', { skip: ['firefox', 'firefox-osx'] }); }); it("Shou...
import React, {useContext} from 'react'; import {Context} from '../context'; import "./sidePanel.css"; export default function ListContainer(){ const {setList, filterResults, fetchListUsers} = useContext(Context); const handleClick = (list) => { setList(list); fetchListUsers(list); } ...
"非同期でやらせたいタスク" import time def handle(event, context): print("name = %s" % event['name']) time.sleep(5) return "Success"
angular.module('angularResizable', []) .directive('resizable', function ($document, $timeout, $window) { var toCall; function throttle(fun) { if (!toCall) { toCall = fun; $timeout(function () { toCall(); toCall = null; ...
#!/usr/bin/env python def print_banner(s): print('##------------------------------------------------------------------------------') print(f'## {s}') print('##------------------------------------------------------------------------------') class Car: def __init__(self, color, mileage): self.co...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); load("9943750f07ea537be5f5aa14a5f7b1b7.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: 21.2.5.8 description: RegExp.proto...
# -*- coding: utf-8 -*- """AWS DynamoDB result store backend.""" from __future__ import absolute_import, unicode_literals from collections import namedtuple from time import sleep, time from kombu.utils.url import _parse_url as parse_url from celery.exceptions import ImproperlyConfigured from celery.five i...
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:34:24 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/Frameworks/CoreML.framework/C...
# Exercicio 4 # importando itemgetter from operator import itemgetter dicionario = {} lista = [] print('-' * 30) print('Cadastro de Produtos') print('-' * 30) while True: # Entrada codigo. codigo = int(input('Digite o código do produto:(0 para sair): ')) if codigo == 0: break # Entrada estoque. ...
from django.urls import path, include from rest_framework_nested import routers from .views import EventViewSet, CommentViewSet, FeedViewSet router = routers.SimpleRouter() router.register('events', EventViewSet) router.register('feed', FeedViewSet) event_router = routers.NestedSimpleRouter(router, 'events', lookup...
/** * @fileoverview added by tsickle * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * f...
/** * rudiment - CRUD resource manager * https://github.com/gavinhungry/rudiment */ (function() { 'use strict'; module.exports = { id: '_id', api: { init: function() { var dbCursorProto = Object.getPrototypeOf(this._db.find()); dbCursorProto.toArray = dbCursorProto.toArray || dbC...
import chainer import chainer.functions as F import chainer.links as L import sys import numpy as np import collections import ast import gast import inspect import six import types import weakref from chainer_compiler.elichika.parser import vevaluator from chainer_compiler.elichika.parser import core from chainer_co...
import wgPatentCheck from './wgPatent' import syPatentCheck from './syPatent' import inventPatentCheck from './inventPatent' export default { wgPatentCheck, syPatentCheck, inventPatentCheck }
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("placeholder","eu",{title:"Leku-marka Aukerak",toolbar:"Leku-marka sortu",name:"Placeholder Name",invalidName:"The placeholder can not be empty a...
/* * SeminarCatalog API * Rest API for SeminarCatalog Administration * * OpenAPI spec version: 1.0.0 * Contact: info@databay.de * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.12 * * Do not ed...
from Child import Child from Node import Node # noqa: I201 PATTERN_NODES = [ # type-annotation -> ':' type Node('TypeAnnotation', kind='Syntax', children=[ Child('Colon', kind='ColonToken'), Child('Type', kind='Type'), ]), # enum-case-pattern -> type-identifie...
#ifndef LIGHTGBM_APPLICATION_H_ #define LIGHTGBM_APPLICATION_H_ #include <LightGBM/meta.h> #include <LightGBM/config.h> #include <vector> #include <memory> namespace LightGBM { class DatasetLoader; class Dataset; class Boosting; class ObjectiveFunction; class Metric; /*! * \brief The main entrance of LightGBM. thi...
/* * Copyright (c) 2018 Apple Inc. All rights reserved. */ #ifndef __OSLOG_ENTRY_LOG_H__ #define __OSLOG_ENTRY_LOG_H__ #ifndef __INDIRECT_OSLOG_HEADER_USER__ #error "Please use <OSLog/OSLog.h> instead of directly using this file." #endif NS_ASSUME_NONNULL_BEGIN /*! * @enum OSLogEntryLogLevel * * @abstract * T...
//*************************************************************************** // // Copyright (c) 2001 - 2006 Intel Corporation // // 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 // // ...
const uploadImage = require('../lib/uploadImage') let handler = async (m, { conn, text }) => { let teks = text ? text : m.quoted && m.quoted.text ? m.quoted.text : m.text await conn.sendFile(m.chat, global.API('xteam', '/videomaker/colorful', { text: teks }, 'APIKEY'), 'colorful.mp4', "fatur gay", m) } handler.help...
# Core modules - Developers only import os import subprocess import fabric import sys sys.path.insert(1, '../cui') import i18n i18n.load_path.append('./locales/') i18n.set('filename_format', '{namespace}.{format}') # Local modules - Developers only import tasks.logr as LOG import tasks.dev as DEV import tasks.config...
/** * @license * Copyright 2018 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
// circles // copyright Artan Sinani // https://github.com/lugolabs/circles /* Lightwheight JavaScript library that generates circular graphs in SVG. Call Circles.create(options) with the following options: id - the DOM element that will hold the graph radius - the radius of the circles w...
# Tasks module. # =================================== labels = ("completed", "started", "created_at", "modified", "depends_from", "priority", "description", "identifier") class Task(object): """Simple task class""" def __init__(self, info, table): self.info = info self.table = tabl...
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime from .utils import ( Wallet, HDPrivateKey, HDKey ) from .network import * import inspect def generate_mnemonic(strength=128): _, seed = HDPrivateKey.master_key_from_entropy(strength=strength) return seed def generate_child_id()...
"""Controller for the api/ endpoint, test with api/getstuff""" from flask import Blueprint mod = Blueprint('api', __name__) @mod.route('/getstuff') def getstuff(): return '{"result" : "You are accessing the api"}' @mod.route('/device/<int:device_id>/data') @mod.route('/registry/<int:reg_id>/data/<int:device_id...
/* eslint no-underscore-dangle: ["error", { "allow": ["__get__"] }] */ 'use strict'; const Mocha = require('mocha'); const Chai = require('chai'); const jsdocx = require('jsdoc-x'); const http = require('http'); const rewire = require('rewire'); const qs = require('querystring'); const EventEmitter = require('events'...
import { createGlobalStyle } from 'styled-components' const GlobalStyle = createGlobalStyle` * { box-sizing: border-box; padding: 0; margin: 0; outline: 0; } body, html { @import url('https://fonts.googleapis.com/css?family=Roboto'); background: #eee; font-family: Roboto, sans-serif...
# Using aiohttp server part since it already comes as part of aiohttp import asyncio import socket import ssl import subprocess from dataclasses import dataclass, field from http import HTTPStatus from pathlib import Path from tempfile import NamedTemporaryFile from typing import Optional import structlog from aiohttp...
/* Copyright (c) 2001-2004, Roger Dingledine. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. * Copyright (c) 2007-2019, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file bench.c * \brief Benchmarks for lower level Tor modules. **/ #include "orconfig.h" #include "core...
from typing import List class Solution1: def set_zeroes(self, matrix: List[List[int]]) -> None: num_rows = len(matrix) num_cols = len(matrix[0]) col_0 = 1 for i in range(num_rows): if matrix[i][0] == 0: col_0 = 0 for j in range(1, num_cols): ...
import base64 import json import logging import os import re from collections import defaultdict from datetime import datetime, timedelta from flask_babel import lazy_gettext as _ from lxml import etree from sqlalchemy.orm import contains_eager from sqlalchemy.orm.session import Session from core.analytics import Ana...
module.exports = { _: { storage_is_encrypted: 'Dein Speicher ist verschlüsselt. Zum Entschlüsseln wird ein Passwort benötigt.', enter_password: 'Gib das Passwort ein', bad_password: 'Fasches Passwort, nächster Versuch', never: 'nie', continue: 'Weiter', ok: 'OK', }, wallets: { select_w...
from queue import Queue ​ def truckTour(petrolpumps): route = Queue() ​ # put all of the pumps in the queue for p in petrolpumps: route.put(p) ​ start = 0 tank = 0 # keep track of how many pumps we've traversed traversed = 0 ​ # loop over every pair in the input array whi...
import os from cfdata.tabular import * from cfml import * # datasets boston = TabularDataset.boston() prices_file = os.path.join("datasets", "prices.txt") prices = TabularData(task_type=TaskTypes.REGRESSION).read(prices_file).to_dataset() breast_cancer = TabularDataset.breast_cancer() digits = TabularDataset.digits(...
const mongoose = require('mongoose'); /** * Product model schema. */ const productSchema = new mongoose.Schema({ name: { type: String, required: true }, price: { type: Number, required: true }, description: { type: String } }); module.exports = mongoose.model('product', productSchema);
''' Problem: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99. Find the largest palindrome made from the product of two 3-digit numbers which is less than N. ''' n=int(input()) for i in range(n-1,10000,-1): temp=str(i) if(temp==...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2006 Shteryana Shopova <syrinx@FreeBSD.org> * 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...
# -*- coding: utf-8 -*- """ Let’s say I give you a list saved in a variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write one line of Python that takes this list a and makes a new list that has only the even elements of this list in it. """ a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] b = [x for x in a if x % ...
var gulp = require('gulp'); var copy = require('./commands/CopyFiles'); var elixir = require('laravel-elixir'); var config = elixir.config; /* |---------------------------------------------------------------- | Copying |---------------------------------------------------------------- | | This task offers a si...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOw...
''' Calculate Inception Moments Adapted from https://github.com/ajbrock/BigGAN-PyTorch/blob/master/calculate_inception_moments.py under the MIT license. This script iterates over the dataset and calculates the moments of the activations of the Inception net (needed for FID), and also returns the Inception Score o...
import koa from "koa"; import koaRouter from "koa-router"; import koaBody from "koa-bodyparser"; import { graphqlKoa, graphiqlKoa } from "apollo-server-koa"; import configs from './configs'; import { schema } from "./schemas" const app = new koa(); const router = new koaRouter(); //post请求 app.use(koaBody()) //设置路由 ro...
#!/usr/bin/env python """ Command-line utility for administrative tasks. # For more information about this file, visit # https://docs.djangoproject.com/en/2.1/ref/django-admin/ """ import os import sys if __name__ == '__main__': os.environ.setdefault( 'DJANGO_SETTINGS_MODULE', 'CS50WebProgramming...
export const MAINNET = 'mainnet' export const RINKEBY = 'rinkeby' export const PRODUCTION = 'production' export const PRE_PRODUCTION = 'pre-production' export const STAGING = 'staging' export const DEVELOPMENT = 'development' export const NETWORK_NAME = 'NETWORK_NAME' export const NETWORK_VERSION = 'NETWORK_VERSION' ...
from pymsbuild._types import * class DllPackage(PydFile): r"""Represents a DLL-packed package. This is the equivalent of a regular `Package`, but the output is a compiled DLL that exposes submodules and resources using an import hook. Add `Function` elements to link """ options = { **PydFile.options,...
const Usage = require('./Usage'); const CommandPrompt = require('./CommandPrompt'); /** * Converts usage strings into objects to compare against later * @extends Usage */ class CommandUsage extends Usage { /** * @since 0.0.1 * @param {KlasaClient} client The klasa client * @param {usageString} usageString T...
#ifndef NNUTILS_H #define NNUTILS_H #include <torch/torch.h> #include <vector> bool is_empty(at::Tensor x); /* Clips gradient norm of an iterable of parameters. * The norm is computed over all gradients together, as if they were * concatenated into a single vector. Gradients are modified in-place. * Arguments: *...
const request = require("../helpers/request"); const ApiUrls = require("../helpers/ApiUrls"); const parameterChecker = require("../helpers/parameterChecker"); const url = new ApiUrls(); const getCoinInfo = (params) => { return request(url.contracts.GetCoinInfoByContractAddressAndId(params["id"],params["contract_addr...
#Exploit Title: Free SMTP Server - Local Denial of Service Crash (PoC) # Date: February 3, 2009 # Exploit Author: Metin Kandemir (kandemir) # Vendor Homepage: http://www.softstack.com/freesmtp.html # Software Link: https://free-smtp-server.en.uptodown.com/windows/download # Version: 2.5 # Tested on: Windows 7 Service P...
#!/usr/bin/python # Martin Mathieson # Look for and removes unnecessary includes in .cpp or .c files # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # import subprocess import os import sys import shutil de...
/* io.c - ber general i/o routines */ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 1998-2021 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authoriz...
import axios from 'axios' import React, { Component } from 'react' import ApiData from './ApiData' export class Home extends Component { constructor() { super() this.state = { apiData:[], showData:false, massege:"", showMassege:false } } ...
import React from 'react' import styles from './Control.module.scss' import clsx from 'clsx' export default function Control(props) { const { name, inputType, type, onChange, placeholder, className, ...rest } = props; let input = null; if(inputType === 'textarea'){ input = <textarea type={type...
import React from 'react' import { graphql } from 'gatsby' import Helmet from 'react-helmet' import get from 'lodash/get' import Img from 'gatsby-image' import Layout from '../components/layout' import heroStyles from '../components/hero.module.css' import recipeStyles from './recipe.module.css' class RecipeTemplate ...
from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession, SQLContext def get_spark_session(): # load Spark session spark = SparkSession.builder.master("local[64]").appName("PySparkShell").getOrCreate() conf = SparkConf().setAppName("PySparkShell").setMaster("local[64]") sc = Sp...
# -*- coding: utf-8 -*- import click import sys from askanna import job as aa_job from askanna import project as aa_project from askanna.cli.utils import ask_which_job, ask_which_project, ask_which_workspace from askanna.core.config import Config from askanna.core.utils import extract_push_target config = Config() ...
import itertools from typing import ( AsyncContextManager, AsyncIterator, Collection, Dict, List, Optional, Set, Tuple, ) from async_generator import asynccontextmanager from async_service import Service, background_trio_service from eth_enr import ENRAPI, ENRManagerAPI, QueryableENRDat...
############################################################################## # Copyright 2020 IBM Corp. 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 # # htt...
# -*- coding: utf-8 -*- import sys if './' not in sys.path: sys.path.append('./') from numpy import array from itertools import chain from screws.freeze.main import FrozenOnly from tools.linear_algebra.gathering.regular.matrix.main import Gathering_Matrix from tools.linear_algebra.gathering.vector import Gathering_Vec...
# -*- coding: utf-8 -*- """library - Example module.""" __title__ = 'example' __version__ = '0.1.0' __author__ = 'constrict0r <constrict0r@protonmail.com>' __all__ = []
"use strict"; /** * @name dxScheduler * @publicName dxScheduler * @inherits Widget, DataHelperMixin * @groupName Time Management Widgets * @module ui/scheduler * @export default */ module.exports = require("./scheduler/ui.scheduler");