text stringlengths 3 1.05M |
|---|
/**
* Auto-generated action file for "Mandrill" API.
*
* Generated at: 2019-05-07T14:42:55.779Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / mandrillapp-com-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed unde... |
/* Copyright (C) 2007-2017 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS 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,
or (at your option) any... |
// Things are happening
var elem = document.getElementById("in-game-ad-right");
elem.remove();
var elem = document.getElementById("in-game-ad-left");
elem.remove();
|
import React from "react";
import {
Section,
SectionTitle,
ListItem,
UnorderedList
} from "../../shared/styles/styled-components";
import { devstack } from "../../data/technologies";
const DevStack = () => {
return (
<Section id="dev-stack">
<SectionTitle> My dev stack </SectionTitle>
<Unor... |
import BT from './index'
import { Options, DevicesMap, DevicesIdMap } from './share'
import { Device } from './device/index'
import { arrayBufferToHex } from './util/util'
import {
FAIL_TYPE_SERVICE,
FAIL_TYPE_CHARACTERISTIC,
} from './util/constants'
let isInitBt = false
let isSearching = false
let searchTimeoutI... |
import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dtb.settings')
django.setup()
from tgbot.handlers.dispatcher import run_polling
if __name__ == "__main__":
run_polling()
|
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... |
import datetime
import decimal
import functools
import hashlib
import logging
from time import time
from django.conf import settings
from django.db.utils import NotSupportedError
from django.utils.timezone import utc
logger = logging.getLogger('django.db.backends')
class CursorWrapper:
def __init... |
(function () {
'use strict';
angular
.module('app')
.filter('na', na)
.filter('urlencode', urlencode);
function na() {
return function (input) {
return (angular.equals(input, 0)) ? 'N/A' : input;
};
}
function urlencode(){
return func... |
module.exports = {
packageJson() {
this.addDependencies(
'mongoose',
'mongoose-organizer'
);
},
};
|
// flow-typed signature: 9263e8345ff6ee853333b4d0b28792fd
// flow-typed version: <<STUB>>/koa-bodyparser_v^2.3.0/flow_v0.36.0
/**
* This is an autogenerated libdef stub for:
*
* 'koa-bodyparser'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work w... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Reliab... |
# -*- coding: utf-8 -*-
from contextlib import nested
import django
from django.conf import settings
from django.db import connections, reset_queries
from django.test.utils import override_settings
from django.utils import translation
from django.utils.functional import lazy
import jinja2
import multidb
from mock imp... |
'use strict'
const KVBackend = require('./kv-backend')
/** Vault backend class. */
class VaultBackend extends KVBackend {
/**
* Create Vault backend.
* @param {Object} client - Client for interacting with Vault.
* @param {Object} logger - Logger for logging stuff.
*/
constructor ({ client, logger }) {... |
/* */
"format cjs";
angular.module('appUsingTemplateCache', ['ngMaterial'])
.controller('DemoCtrl', function($scope) {})
.config(function($mdIconProvider) {
// Register icon IDs with sources. Future $mdIcon( <id> ) lookups
// will load by url and retrieve the data via the $http and $templateCache
$m... |
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./src/blobDownYellowDesktop.svg":
/*!***************************************!*\
!*** ./src/blobDownYellowDesktop.svg ***!
\***************************************/
/***/ ((__unused_webpack_module, __webpack_... |
/* ppAnalyse - Analyse paired plasmid reads. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "psl.h"
#include "portable.h"
void usage()
/* Explain usage and exit. */
{
errAbort(
"ppAnalyse - Analyse paired plasmid reads.\n"
"usage:\n"
" ppAnalyse headers insertSizes pairs.psl finDir pa... |
import sys
import unittest
class TestMethodsMain(unittest.TestCase):
class MyOut(object):
def __init__(self):
self.data = []
def write(self, s):
self.data.append(s)
def flush(self):
self.data = []
def getvalue(self):
return self.da... |
import gc
import os
import time
import sys
import logging
import warnings
from models import VLOG
import numpy as np
import scipy.io as sio
import torch
import argparse
import MahjongPy as mp
from env_mahjong import *
def test_performance(agents_test, env_test, times=80, use_posterior=None, rotate_player=False):
... |
module.exports = {
preset: 'react-native',
rootDir: '.',
testMatch: ['<rootDir>/src/**/*.test.(js|jsx|ts|tsx)'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'\\.(css|less)$': 'identity-obj-proxy',
'^user-logic$': '<rootDir>/external/user-logi... |
# micropolisstartpanel.py
#
# Micropolis, Unix Version. This game was released for the Unix platform
# in or about 1990 and has been modified for inclusion in the One Laptop
# Per Child program. Copyright (C) 1989 - 2007 Electronic Arts Inc. If
# you need assistance with this program, you may contact:
# http://wik... |
/*
* Copyright (c) 2004 ITE technology Corp. All Rights Reserved.
*/
/** @file
* Header file of font functions.
*
* @author Mandy Wu
* @version 0.1
*/
#ifndef __FONT_H
#define __FONT_H
#include "m2d/m2d_graphics.h"
#ifdef __cplusplus
extern "C" {
#endif
//=====================================================... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('restaurant', '0041_auto_20150710_0850'),
]
operations = [
migrations.AlterField(
model_name='kitchen',
... |
const { Transaction, Blockchain } = require('../src/blockchain');
const EC = require('elliptic').ec;
const ec = new EC('secp256k1');
const signingKey = ec.keyFromPrivate('3d6f54430830d388052865b95c10b4aeb1bbe33c01334cf2cfa8b520062a0ce3');
function createSignedTx(amount = 10) {
const txObject = new Transaction(signin... |
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
import About from "../components/about"
const AboutPage = () => (
<Layout>
<SEO title="About" keywords={[`about carolina martinez`]} />
<About />
</Layout>
)
export default AboutPage
|
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.table.Table.
sap.ui.define(['jquery.sap.global', 'sap/ui/Device',
'sap/ui/core/Control', 'sap/ui/core/El... |
# o exemplo abaixo trabalha os conceitos de importação de biblioteca na linha 2 e de utilização do módulo de raiz quadrada (sqrt) na linha 4.
from math import sqrt
num = int(input('Digite um número: '))
raiz = sqrt(num)
print('A raiz de {} é igual a {}'.format(num, raiz))
# no exemplo abaixo trabalhamos o conceito de... |
#!/usr/bin/python
#
# Copyright 2018 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 or ag... |
import os
from pathlib import Path
import tkinter as tk
from tkinter import ttk, filedialog, messagebox
from typing import Callable
# class for the GUI app
class GUIApp:
def __init__(self,
master,
run_callback: Callable[..., None]):
self.run_callback = run_callback
... |
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RRcpp(RPackage):
"""The 'Rcpp' package provides R functions as well as C++ classes which
... |
export { default } from './GetInvolved'; |
var searchData=
[
['handangles_5fdefault_963',['HandAngles_Default',['../class_s_g_core_1_1_kinematics_1_1_anatomy.html#a5f3d7029b64ea596e7dceef63516d37d',1,'SGCore::Kinematics::Anatomy']]],
['handangles_5ffist_964',['HandAngles_Fist',['../class_s_g_core_1_1_kinematics_1_1_anatomy.html#a908a434454734030c612117c82e7... |
"""Definition and setup of the Omnilogic Sensors for Home Assistant."""
import logging
from homeassistant.components.sensor import DEVICE_CLASS_TEMPERATURE
from homeassistant.const import (
CONCENTRATION_PARTS_PER_MILLION,
MASS_GRAMS,
PERCENTAGE,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
VOLUME_LITERS,
)... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
from substorm_utils.signature_lists import get_model_signature_lists, get_obs_signature_lists
from plot_substorm_convolution import make_convolution_figure, datadir
from datetime import datetime, timedelta
if __name__=='__main__':
obs_signatures=get_obs_signature_lists(datadir=datadir)
threshold=2.5
tstart... |
class Ast:
def __init__(self, name: str, token_position: tuple, grammars: list = None,
grammar: str = None):
"""
I am an AST tree, grammars are my children
`grammars` can be both a spelling string, or a list of Ast instance
"""
# matched grammar object name
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright 2021, Yutong Xie, UIUC.
Valid the sudoku.
'''
class Solution(object):
def isValidSudoku(self, board):
"""
:type board: List[List[str]]
:rtype: bool
"""
def check(num, i, j):
# check the same ... |
from .spiders import Spider
from .asyn_spider import AsynSpider
|
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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 applica... |
#!/usr/bin/env python3
import numpy as np
# %%
# Assignment Pt. 1: Edit Distances
gem_doppel = [
("GCGTATGAGGCTAACGC", "GCTATGCGGCTATACGC"),
("kühler schrank", "schüler krank"),
("the longest", "longest day"),
("nicht ausgeloggt", "licht ausgenockt"),
("gurken schaben", "schurkengaben")
]
# %%
d... |
from sympy import (
adjoint, conjugate, DiracDelta, Heaviside, nan, pi, sign, sqrt,
symbols, transpose, Symbol, Piecewise, I, S, Eq, oo,
SingularityFunction, signsimp
)
from sympy.utilities.pytest import raises
from sympy.core.function import ArgumentIndexError
from sympy.utilities.exceptions import SymP... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement("g", null, React.createElement("path", {
d: "M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 ... |
;(function() {
var loadingImg = 'data:image/gif;base64,R0lGODlhIAAgAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4ODg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8P... |
(function($){
$(function(){
$('.button-collapse').sideNav();
$('.parallax').parallax();
}); // end of document ready
})(jQuery); // end of jQuery name space
$(document).ready(function() {
$('.getDevotional').click(function() {
//Your beautiful list of books that you will not need :/
... |
from flask import Flask
from threading import Thread
import requests as req
app = Flask('')
@app.route('/')
def home():
return"It's Alive!"
def run():
app.run(host ='0.0.0.0', port = 8080)
def keep_alive():
t = Thread(target = run)
t.start()
|
# Generated by Django 3.2.5 on 2021-08-30 06:55
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0042_participant_updated_at'),
]
operations = [
migrations.AlterField(
model_name='par... |
/*
* Copyright (C) 2017 Dremio 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:expandtab 2
# Copyright 2016, 2017 juga (juga at riseup dot net), MIT license.
"""Lease class for the DHCP client implementation of the Anonymity Profile
([:rfc:`7844`]).."""
from __future__ import absolute_import
import logging
import attr
from attr.validators import instance_... |
param = "55cc6c7c4b951e1028433f68625e256670f553c8!!!ebff02fb05fffc0702f7030102!!b3035f50ad6a64c797176ef0fb74f6674a256e0be80645e49f1953c2aea798897d15719eca122ea69145cbac8042c57e3fa6209f071c5f776f3f36c14ef350f821e467b52768298e3ec01284a497133e2cc005bf9b9a74e7d621fe5b19f5868e52775f864feee740da9dced0ffbed14e7a7d3bfbbc4f847... |
import logging
import os
import pathlib
import random
import sys
import time
from itertools import chain
from collections import Iterable
import gc
import numpy as np
import pandas as pd
import torch
from PIL import Image
import matplotlib.pyplot as plt
from attrdict import AttrDict
from tqdm import tqdm
from pycocoto... |
import json, sqlite3
import config
db = sqlite3.connect(config.config['db_name'])
db.execute('''DROP TABLE IF EXISTS users''') # Old case
db.execute('''DROP TABLE IF EXISTS tokens''')
db.execute('''CREATE TABLE tokens (id INTEGER PRIMARY KEY, api_token VARCHAR(20) UNIQUE, company INTEGER)''')
db.execute('''INSERT IN... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The join function is intentionally generic.
It does not require that its th... |
const assert = require('chai').assert
const expect = require('chai').expect
const util = require('../dist/dtc.util.umd').default
describe('Object', function () {
describe('merge', function () {
const obj1 = {
name: 'zhangsan',
list: [12, 22, 34, 55]
},
obj2 = {
age: 22,
... |
var searchData=
[
['audioclip',['AudioClip',['../classfoleys_1_1AudioClip.html',1,'foleys']]],
['audiofifo',['AudioFifo',['../classfoleys_1_1AudioFifo.html',1,'foleys']]],
['audiomixer',['AudioMixer',['../classfoleys_1_1AudioMixer.html',1,'foleys']]],
['audioparameterautomation',['AudioParameterAutomation',['..... |
"""
Support for MQTT switches.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.mqtt/
"""
import logging
from typing import Optional
import voluptuous as vol
from homeassistant.core import callback
from homeassistant.components.mqtt import (
A... |
import pytest
from monty.serialization import loadfn
from emmet.core.electronic_structure import ElectronicStructureDoc
@pytest.fixture(scope="session")
def structure(test_dir):
"""
Fe (mp-13) structure with correct magmoms
"""
structure = loadfn(test_dir / "Fe_structure.json")
return structure
... |
// 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.
#ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_FACTORY_H_
#define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_FACTORY_H_
#include ... |
#!/usr/bin/env python
#
# Copyright (c) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your op... |
from .anchor import * # noqa: F401, F403
from .bbox import * # noqa: F401, F403
from .evaluation import * # noqa: F401, F403
from .fp16 import * # noqa: F401, F403
from .mask import * # noqa: F401, F403
from .post_processing import * # noqa: F401, F403
from .utils import * # noqa: F401, F403
|
from flask import Flask
from dash import Dash
from {{appname}}.config import mydash
# should start and end with a '/'
URL_BASE_PATHNAME = '/'
server = Flask(__name__)
app = Dash(
__name__,
server=server,
url_base_pathname=URL_BASE_PATHNAME,
external_stylesheets=mydash["external_stylesheets"],
ex... |
"""
WSGI config for everest 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... |
"""
This code gets result of NIT Raipur students from command line
Author: @appi147
"""
from io import BytesIO
from PIL import Image
from selenium import webdriver
def load_first(rollNo, sem):
"""
This function has to be run only once at beginning.
"""
roll = driver.find_element_by_id('txtRegno')
... |
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Firebase from 'firebase'
import constants from 'utils/constants'
import LoginLayout from 'layouts/LoginLayout'
import LoginView from 'views/LoginView'
import NewrecipeView from 'views/NewrecipeView'
import AllrecipesView from 'views/Allre... |
"""
Django settings for energyaustralia-coding-test project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/sett... |
from pathlib import Path
from typing import Dict, Tuple, Union
import torchaudio
from torch import Tensor
from torch.hub import download_url_to_file
from torch.utils.data import Dataset
from torchaudio.datasets.utils import (
extract_archive,
)
_URL = "https://datashare.ed.ac.uk/bitstream/handle/10283/3038/DR-VC... |
const createFakeUserStore = (
gender = 'M',
useMailingAddress = true,
useResidentialAddress = true,
phones = {
hasMobile: true,
hasHome: true,
hasWork: true,
hasTemporary: true,
},
data = {},
) => {
return {
getState: () => ({
user: {
profile: {
userFullName: {
... |
/* [MS-XLSB] 2.4.28 BrtBeginComment */
function parse_BrtBeginComment(data, length) {
var out = {};
out.iauthor = data.read_shift(4);
var rfx = parse_UncheckedRfX(data, 16);
out.rfx = rfx.s;
out.ref = encode_cell(rfx.s);
data.l += 16; /*var guid = parse_GUID(data); */
return out;
}
function write_BrtBeginComment... |
from traits.testing.unittest_tools import unittest
from traits.api import Float, HasTraits, Int, List
class Foo(HasTraits):
x = Float
y_changes = List
def _y_changed(self, new):
self.y_changes.append(new)
class TestDynamicTraitDefinition(unittest.TestCase):
""" Test demonstrating special ... |
// Copyright 2015 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.
import {FittingType} from 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/constants.js';
import {flush} from 'chrome://resources/polymer/v3_0/polymer... |
// Astral Shipwright - Gwennaël Arbona
#pragma once
#include "CoreMinimal.h"
#include "Actor/NovaTurntablePawn.h"
#include "UI/NovaUITypes.h"
#include "NovaSpacecraft.h"
#include "NovaSpacecraftPawn.generated.h"
/** Current assembly state */
enum class ENovaAssemblyState : uint8
{
Idle,
LoadingDematerializing,
Mo... |
from staffjoy.resource import Resource
class ShiftQuery(Resource):
"""Returns workers that can claim a potential shift"""
PATH = "organizations/{organization_id}/locations/{location_id}/roles/{role_id}/shiftquery/"
|
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 22 2020 01:47:48).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
@protocol CSWallpaperView <NSObject>
- (void)setFullscreen:(BOOL)arg1;
- (void)setCoverSheetWallpaperStyle:(long long)arg1;
- (void)setBackgroundStyle:(long long)arg1;
@end
|
__version__ = "0.0.11"
|
"use strict";
import React, { Component } from "react";
import PropTypes from "prop-types";
import { noop } from "../utils";
import GenericChartComponent from "../GenericChartComponent";
import { getMouseCanvas } from "../GenericComponent";
class ClickCallback extends Component {
render() {
const {
onMouseDown... |
from collections import OrderedDict
from decimal import Decimal
from random import choice, randint
import re
from ai import BaseAi, EasyEnemy, HardEnemy, MediumEnemy, AllyAI
from engine import Engine
from get_config import CONFIG_OBJECT
from game_data import GameData
from typing import Final, Optional
import input_hand... |
#!/usr/bin/env python3.5
"""Goes through all usernames and collects their information"""
import json
import datetime
from util.settings import Settings
from util.datasaver import Datasaver
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from util.cli_helper import get_all_user_na... |
#!/usr/bin/env python
import sys
import os
# file_name = os.environ["map_input_file"]
file_path, file_name = os.path.split(os.getenv("map_input_file"))
def main(separator='\t'):
for line_number, line in enumerate(sys.stdin):
for word in line.split():
word = word.strip('!?"-.,_ \'()[]').lower... |
import re
import os
import shutil
import pathlib
from difflib import SequenceMatcher
import regex
def get_tail(filename):
basedir, tail = os.path.split(filename)
return tail, basedir
def get_fname(filename):
basedir, tail = os.path.split(filename)
fname, ext = os.path.splitext(tail)
return fnam... |
import typing
from enum import unique
import os
import numpy as np
import torch
from tqdm import tqdm
import xarray as xr
from langbrainscore.dataset import Dataset
from langbrainscore.interface import EncoderRepresentations, _ModelEncoder
from langbrainscore.utils.encoder import (
aggregate_layers,
cos_sim_m... |
# -*- coding: utf-8 -*-
import json
from zhihuuser.items import ZhihuItem
from scrapy import Request, Spider
class ZhihuuserSpider(Spider):
name = 'zhihuuser'
allowed_domains = ["www.zhihu.com"]
start_urls = ["https://www.zhihu.com/"]
start_user = "lin-jia-sheng-96"
followees_url = 'https://www.zhi... |
import { relative, sep, posix, resolve, dirname } from 'path';
import * as rollup from 'rollup';
import htmPlugin from './plugins/htm-plugin.js';
import sucrasePlugin from './plugins/sucrase-plugin.js';
import wmrPlugin from './plugins/wmr/plugin.js';
import wmrStylesPlugin from './plugins/wmr/styles-plugin.js';
import... |
import Vue from 'vue'
const Vif = Vue.extend({
name: 'Vif',
data() {
return {
awesome: true,
ok: true
}
},
render() {
return (
<div>
{/* v-if */}
{this.awesome ? <h1>Vue is awesome!</h1> : null}
{/* v-if with v-else */}
{this.aweso... |
require("./utils").createTests([6231], 1, "a2");
|
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the terms found in... |
"""
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.71
Contact: support@ory.sh
Generated by: htt... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... |
import traceback
import idc
import idaapi
idaapi.require('.AnalyserBase', 'DDE.Analysers')
idaapi.require('.TESObjectAnalyser', 'DDE.Analysers')
idaapi.require('.VFTableAnalyser', 'DDE.Analysers')
idaapi.require('.FuncAnalyser', 'DDE.Analysers')
idaapi.require('.StringAnalyser', 'DDE.Analysers')
idaapi.require('arch64... |
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "E08000032"
addresses_name = (
"parl.2019-12-12/Version 2/Bradford Polling Stations_12th December.TSV"
)
stations_name = (
"parl.2019-12-12... |
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin')
const T... |
# -*- coding: utf-8 -
#
# This file is part of http-parser released under the MIT license.
# See the NOTICE for more information.
import os
import re
import sys
import urlparse
import zlib
from http_parser.util import b, bytes_to_str, IOrderedDict, StringIO, unquote
METHOD_RE = re.compile("[A-Z0-9$-_.]{3,20}")
VERS... |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import ugettext_lazy as _
from .models import EmailUser as User
from .forms import AdminUserChangeForm, UserCreationForm
@admin.register(User)
class UserAdmin(UserAdmin):
fieldsets = (
(
... |
import functools
import igraph as ig
import jax.numpy as jnp
from jax import jit, vmap
@functools.partial(jit, static_argnums=(1,))
def acyclic_constr_nograd(mat, n_vars):
"""
Differentiable acyclicity constraint from Yu et al. (2019)
http://proceedings.mlr.press/v97/yu19a/yu19a.pdf
Args:
m... |
from functools import wraps
from flask import current_app, flash, redirect,\
url_for, request
from flask_login import config, current_user
def admin_required(func):
@wraps(func)
def decorated_view(*args, **kwargs):
if request.method in config.EXEMPT_METHODS:
return func(*args, **kwar... |
/*-
* Copyright (c) 2000 Michael Smith
* Copyright (c) 2003 Paul Saab
* Copyright (c) 2003 Vinod Kashyap
* Copyright (c) 2000 BSDi
* 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. ... |
from game_state import GameState
import random
import constants as c
class AIChessHelper:
"""
A helper class used by the q_learn file to interpret the chosen game. In this case, the class interprets chess.
States and actions are represented as:
State: (value, num_squares, king_safety)
Ac... |
# -*- coding: utf-8 -*-
"""
@author: Nicolas Rivet
"""
import json
import urllib.request as req
import requests
class IGservice():
"""
methods to use IG API services
"""
_base_urls = {
'demo':'https://demo-api.ig.com/gateway/deal',
'live':'https://api.ig.com/gateway/... |
#!/usr/bin/env python
import sys
from twython import Twython
import os
cmd = '/opt/vc/bin/vcgencmd measure_temp'
line = os.popen(cmd).readline().strip()
temp = line.split('=')[1].split("'")[0]
#to run: (command line) python SillyTweeter.py 'twitter message from my raspberry pi'
##################################... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... |
import dash
import dash_core_components as dcc
import dash_html_components as html
import colorlover as cl
import datetime as dt
import flask
import os
import pandas as pd
from pandas_datareader.data import DataReader
import time
app = dash.Dash('stock-tickers')
server = app.server
app.scripts.config.serve_locally =... |
from scrapy_redis_loadbalancing import picklecompat
def test_picklecompat():
obj = {'_encoding': 'utf-8',
'body': '',
'callback': '_response_downloaded',
'cookies': {},
'dont_filter': False,
'errback': None,
'headers': {'Referer': ['http://www.dmoz.org/']},
... |