content stringlengths 10 4.9M |
|---|
<filename>__tests__/compressFiles.spec.ts
import fs from "fs";
import { join } from "path";
import compressFiles from "../compressFiles";
const root = process.cwd();
const fakeFile = join(root, "hello.js");
const fakeFile2 = join(root, "goodbye.js");
const code = `
(() => {
try {
console.log("Hello World!");
... |
package com.task.phones.rest;
import com.task.phones.mapper.DeviceMapper;
import com.task.phones.rest.model.CreateDeviceDto;
import com.task.phones.rest.model.DeviceDto;
import com.task.phones.service.TestingDeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;... |
# Copyright 1999-2020 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 applicable law or a... |
/**
* The <tt>UserAgentPlugIn</tt> handles setting the global and per-feed
* HTTP user agent settings, overriding the default <i>curn</i> user agent
* setting. It intercepts the following configuration parameters:
*
* <table border="1">
* <tr valign="top" align="left">
* <th>Section</th>
* <th>Paramet... |
class JobList:
"""Generic job class."""
def __init__(self, data=None, **kw):
self._raw = data
@property
def values(self):
raise NotImplementedError()
def __len__(self):
return len(self.values())
def __iter__(self):
for job in self.values():
yield j... |
Evaluation of Urea-motility-indole medium for recognition and differentiation of Salmonella and Shigella species in stool cultures
A semisolid urea-motility-indole medium designed for detection in Enterobacteriaceae of urease activity, motility, and indole production in one tube was prepared and evaluated. The formula... |
Cherokee Townhouses: Architectural Adaptation to European Contact in the Southern Appalachians
Public structures known as townhouses were hubs of public life in Cherokee towns in the southern Appalachians during the seventeenth and eighteenth centuries A.D., and in towns predating European contact. Townhouses were sou... |
Scalable Application-Dependent Diagnosisof Interconnects of SRAM-Based FPGAs
This paper presents a new method for diagnosing (detection and location) multiple faults in an application-dependent interconnect of a SRAM-based FPGA. For fault detection, the proposed technique retains the original interconnect configuratio... |
<reponame>griwes/reaveros
/*
* Copyright © 2021 Michał 'Griwes' Dominiak
*
* 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... |
Democrats appear to have enough votes to filibuster the confirmation of Neil Gorsuch to the U.S. Supreme Court under the existing procedures of the Senate. So now the question is whether the Republicans have enough votes to “go nuclear” and change those procedures, essentially wiping out the ability of a minority party... |
def _forward_stft(wav: th.Tensor,
kernel: th.Tensor,
window: th.Tensor,
return_polar: bool = False,
pre_emphasis: float = 0,
frame_hop: int = 256,
onesided: bool = False,
center: bool = False,
... |
SPATIAL PLANNING TEXT INFORMATION PROCESSING WITH USE OF MACHINE LEARNING METHODS
Spatial development plans provide an important information on future land development capabilities. Unfortunately, at the moment access to planning information in Poland is limited. Despite many initiatives taken to standardize planning ... |
TUMOR NECROSIS FACTOR AND PULMONARY HOST DEFENSE. • 1098
Tumor Necrosis Factor (TNF) is a multifunctional cytokine that has been implicated in a variety of pathologic processes. To evaluate the role of TNF during pulmonary inflammation and infection, we have generated an animal model in which the human surfactant apop... |
def isbn_has_valid_check_digit(self, isbn):
if not self.ISBN_RE.match(isbn):
raise ValueError(str(isbn) + " is no valid 13-digit ISBN!")
checksum = 0
for index, digit in enumerate(isbn):
if index % 2 == 0:
checksum += int(digit)
else:
... |
def wrap_to_octave(self, cents, octave_length=1200):
octave_cents = cents % octave_length
return octave_cents |
n,k = map(int,raw_input().strip().split(' '))
if(n==1):
print 0
elif(k>=n/2):
print (n*(n-1)/2)
else:
print ((2*n*k) - (k*(2*k+1)))
|
// Put enqueues a job to the named queue
func (q *queue) PutOrReplace(class string, jid string, data interface{}, opt ...putOptionFn) (int64, error) {
pd := newPutData()
if err := pd.setOptions(opt); err != nil {
return -1, err
}
args := []interface{}{"put", timestamp(), "", q.name, jid, class, marshal(data), pd.... |
string = str(raw_input())
def palindromo(string):
string_inv = string[::-1]
if string == string_inv:
string = string[0:len(string)-1]
return 1
else:
return 0
while(palindromo(string) == 1 and len(string) > 0):
string = string[0:len(string)-1]
print len(string)
|
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<map>
#include<vector>
using namespace std;
int n,m;
struct edge{
int s,t,nxt;
}e[1000005];
int e_cnt,last[300005],tot,e_cnt_bak,last_bak[300005];
inline void ins(int a,int b){
e[e_cnt]=(edge){a,b,last[a]};
last[a]=e_cnt++;
}
int bl[3000... |
/**
* The coder is very lazy for this initUI method
* void
*/
private void initUI()
{
setLayout(new GridLayout(4, 4, 3, 3));
setBackground(new Color(192, 192, 192, 192));
GridButton gridButton;
for(int i = 0; i < 16; i++)
{
gridButton = new GridBut... |
THE days of craning your neck for a glimpse of the view outside a plane’s tiny porthole window could soon be over.
Plans are underway for a revolutionary fleet of business jets outfitted with huge windows that would offer unparalleled views of the earth below — as well as providing more natural light than previously i... |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args)throws IOException {
BufferedReader br;
br = new BufferedReader(new InputStreamReader(System.in));
//**********************************************************************
// br = new BufferedReader(new... |
#include <stdio.h>
int main()
{
unsigned int n;
scanf("%u", &n);
unsigned int res = 0;
char cnt, dem;
cnt = 0;
while (n != 0)
{
switch(cnt)
{
case 0:
dem = 100;
break;
case 1:
dem = 20... |
/*
* Copyright 2016 Google 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 to in w... |
/**
* This queue takes care of loading nodes in the background.
*/
private static final class Queue extends Thread {
private volatile Stack nodes = new Stack();
private Object lock = new Object();
private volatile boolean running = true;
public Queue() {
super("DirectoryChooser-Backgroun... |
/**
* Encrypt a string using provided key
*
* @param key UUID key
* @param text Data to encrypt
* @return byte[] of encrypted data
*/
public static byte[] encrypt(String key, String text)
{
byte[] encrypted = {};
try
{
key = key.replaceAll("-"... |
/**
* Created by Aaron on 6/12/15.
*/
public class DiskFragment extends Fragment {
private ObservableScrollView mScrollView;
private View rootView;
private Timer mTimer;
private static String VALUE_START = "";
private static String VALUE_END = "";
private boolean instanceLoaded = false;
... |
<gh_stars>10-100
import { Trans } from '@lingui/macro'
import { Col, Row } from 'antd'
import { ThemeContext } from 'contexts/themeContext'
import { PropsWithChildren, useContext } from 'react'
import ProjectPreview from './ProjectPreview'
const FULL_WIDTH_PX = 24
export default function ProjectConfigurationFieldsCo... |
The Haustorium, a Specialized Invasive Organ in Parasitic Plants.
Parasitic plants thrive by infecting other plants. Flowering plants evolved parasitism independently at least 12 times, in all cases developing a unique multicellular organ called the haustorium that forms upon detection of haustorium-inducing factors d... |
// Close closes the etcd session.
func (e *EtcdLeaderElection) Close() {
log.Info("Closing etcd session")
e.session.Close()
log.Info("Closed etcd session")
} |
import frappe
from latte.utils.caching import cache_in_mem
from frappe.model.document import Document
from frappe.modules import get_module_app
core_doctypes_list = {'DocType', 'DocField', 'DocPerm', 'User', 'Role', 'Has Role',
'Page', 'Module Def', 'Print Format', 'Report', 'Customize Form',
'Customize Form Field',... |
Story highlights Judge rules that statute of limitations has expired
Prosecutors had asked for five years in prison
Ex-PM survived political, corruption, sex scandals before quitting in November
A judge has dismissed the corruption case against former Italian Prime Minister Silvio Berlusconi, saying that the statute... |
/**
* This method is called by the view whenever the
* user tried to trigger an exit operation.
*/
void exitTriggered() {
iView.dispose();
iModel = null;
System.exit(0);
} |
Literature Review on Enterprise Tacit Knowledge Management
Tacit knowledge management provides potential impetus for the sustainable development of knowledge-based economy. Despite the fact that many Chinese enterprises have realized the strategic value of tacit knowledge, relevant studies on tacit knowledge managemen... |
/**
* Commands Module
*
* This module contains all server commands that can be sent/received by the
* server.
*/
pub mod hello;
pub mod bye;
pub mod putobj;
use crate::utils;
pub use hello::*;
pub use bye::*;
pub use putobj::*; |
import { Client, Provider, Receipt, Result } from "@blockstack/clarity";
export class RocketMarketClient extends Client {
constructor(provider: Provider) {
super("rocket-market", "rocket-tutorial/rocket-market", provider);
}
async balanceOf(owner: string): Promise<number> {
const query = this.createQuer... |
def add_case_detection(list_of_flows, available_compartments):
case_detection_flows = CASE_DETECTION_FLOWS
case_detection_flows[0].update(
{
"to": Compartment.ON_TREATMENT
if Compartment.ON_TREATMENT in available_compartments
else Compartment.RECOVERED
}
)... |
def win(s, e):
if e % 2:
return s % 2 ^ 1
if s > e // 2:
return s % 2
if s > e // 4:
return 1
return win(s, e // 4)
def lose(s, e):
if s > e // 2:
return 1
return win(s, e // 2)
def game(n):
res = [0, 1]
for i in range(n):... |
<reponame>Xuyuanp/hodor
/*
* Copyright 2017 <NAME>
* Author: <NAME>
*
* 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 requi... |
// Functions
// ----------------------------------------------------------------------------
// We cannot really test much more than this for transmit without totally
// whiteboxing the test, which isn't good as we may change the implementation
// soon to buffer the requests then package them as a sync write command
TE... |
n, p = (int(_) for _ in input().split())
a = [input() for i in range(n)][::-1]
ans = 0
apple = 0
for s in a:
apple *= 2
if s == 'halfplus':
apple += 1
ans += p * apple // 2
print(ans)
|
// Test basic operations in a safe manner.
func TestBasicEncoderDecoder(t *testing.T) {
var values = []interface{}{
true,
int(123),
int8(123),
int16(-12345),
int32(123456),
int64(-1234567),
uint(123),
uint8(123),
uint16(12345),
uint32(123456),
uint64(1234567),
uintptr(12345678),
float32(1.234... |
/**
* @author Oleg Cherednik
* @since 03.07.2013
*/
@Slf4j
public final class IcoFile extends AbstractIconFile {
public IcoFile(ImageInputStream in) throws IOException, IconManagerException {
super(createImageById(new FileHeader(in), in));
}
// ========== static ==========
private static Li... |
{
type CoffeeCup = {
shots: number;
hasMilk: boolean;
};
class CoffeeMaker {
static BEANS_GRAM_PER_SHOT: number = 7; // class Level
coffeeBeans: number = 0; // instance (object) Level
constructor(coffeeBeans: number) {
this.coffeeBeans = cof... |
<filename>tests/e2e/HeatMap/pages/default.page.ts
import { DefaultPage } from "../../DefaultPage/home.page";
class HeatMap extends DefaultPage {
get heatMap() {
return browser.element(".mx-name-heatMap1 .js-plotly-plot svg");
}
open(): void {
browser.url("/p/heatmap");
}
}
const heat... |
No, I am not going to defend Bill O’Reilly. I am clueless regarding his guilt or innocence. But I will say that the Left’s glaring hypocrisy regarding sexual harassment is off the chain. All of the women with strong evidence of sexual harassment, including criminal behavior, by Bill Clinton were gang assaulted by the L... |
/**
* Not-in-place intrinsic Gaussian blur filter using {@link ScriptIntrinsicBlur} and {@link
* RenderScript}. This require an Android versions >= 4.2.
*
* @param dest The {@link Bitmap} where the blurred image is written to.
* @param src The {@link Bitmap} containing the original image.
* @param con... |
🔥 Ignite Your Mobile Development
An unfair head start for your React Native apps.
Gant Laborde Blocked Unblock Follow Following Jun 6, 2016
When our mobile dev team jumped into React Native 8 months ago, we couldn’t find concise information. The boilerplates we did find were either lacking or just … well sucked. Ke... |
/// Cut an u64 into a vector of bytes but only consider the bytes included
/// in the size of U.
fn cut_int_as_u64<U>(n: u64) -> Vec<u8> {
let mut ret: Vec<u8> = Vec::new();
for i in 0..size_of::<U>() {
ret.push(((n >> ((8 * i) as u8)) & 0xFF) as u8);
}
return ret;
} |
/**
* Test the behaviour when writing the result to the outputstream causes an IOException.
* @throws IOException
* @throws JspException
*/
@Test(expected = JspException.class)
public void doStartTag_exception_writing_cached_content() throws IOException, JspException {
testSubject.setKey("mykey");
testSu... |
/**
* Abstraction for Magnets
*
* @author Joey Spillers
*/
public class Magnets { ///[0] Forward, [1] Right, [2] Back, [3] Left
static int[] low = {10000,10000,10000,10000};
static int[] high = {0,0,0,0};
static MagneticSensor compass = new MagneticSensor(SensorPort.S2);
/**
* Calibrates using t... |
def unpack_mconfig_any(mconfig_any: Any, mconfig_struct: TAny) -> TAny:
unpacked = mconfig_any.Unpack(mconfig_struct)
if not unpacked:
raise LoadConfigError(
'Cannot unpack Any type into message: %s' % mconfig_struct,
)
return mconfig_struct |
def delete(self, *, reason=None):
yield from self._state.http.delete_channel(self.id, reason=reason) |
def filterSubreads(self, subreads_pbi):
if self.coverage_depth is not None:
if subreads_pbi.shape[0] > self.coverage_depth:
subreads_pbi = subreads_pbi.sample(self.coverage_depth)
subread_ixs = subreads_pbi.index
return subread_ixs |
class CommanderCacher:
"""A class to manage per-commander caches."""
def __init__(self):
try:
path = join(g.app.homeLeoDir, 'db', 'global_data')
self.db = SqlitePickleShare(path)
except Exception:
self.db = {} # type:ignore
#@+others
#@+node:ekr.2010... |
/**
* Creates the python code within the response handler to parse
* the response payload assuming no encapsulating xml tag
*/
public class BaseParsePayload implements ParsePayload {
private final String typeModel;
private final Integer code;
public BaseParsePayload(final String typeModel, final int co... |
/**
* This is a wrapper class for ProxyHandler as it is implemented as final. This class implements
* the HttpHandler which can be injected into the handler.yml configuration file as another option
* for the handlers injection. The other option is to use RouterHandlerProvider in service.yml file.
*
* @author Steve... |
// InsertTimezone returns a single timezone from the DB for the given identifier
func InsertTimezone(timezone Timezone) (int, error) {
var rowid int
err := db.QueryRow("INSERT INTO timezones(name, timeoffset, identifier) VALUES($1, $2, $3) RETURNING id", timezone.Name, timezone.Timeoffset, timezone.Identifier).Scan(&... |
Dual-Channel Convolution Network With Image-Based Global Learning Framework for Hyperspectral Image Classification
Recently, convolutional neural networks (CNNs) have been widely applied to hyperspectral image (HSI) classification due to their detailed representation of features. Nevertheless, the current CNN-based HS... |
<gh_stars>1000+
package main
import (
"fmt"
"github.com/mattn/go-gtk/glib"
"github.com/mattn/go-gtk/gtk"
"strconv"
)
func main() {
gtk.Init(nil)
window := gtk.NewWindow(gtk.WINDOW_TOPLEVEL)
window.SetPosition(gtk.WIN_POS_CENTER)
window.SetTitle("GTK Go!")
window.Connect("destroy", func(ctx *glib.CallbackCont... |
<reponame>tkertesz/hrrqt
#include "network.h"
Network::Network(QObject *parent) :QObject(parent)
{
my_socket = new QUdpSocket(this);
IsStarted = false;
}
bool Network::setIp(QHostAddress MyIP, QHostAddress OtherIP)
{
myip = MyIP;
otherip = OtherIP;
return true;
}
bool Network::startBinding()
{
... |
package com.cqs.legou_client;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.TextUtil... |
Rocker Ted Nugent launched a volley of invective at local protesters and the New Haven Register during a syndicated radio interview Saturday.
Anyone anticipating wild remarks from the Motor City Madman was not disappointed by his interview for the nationally syndicated radio program “The Weekend” that was aired on WGA... |
/**
* A controller for a screw drive.
*
* @author Daniel Ruess
*/
public class ScrewDrive implements Updatable{
private final Jaguar motor = new Jaguar(6);
private final StringEncoder string = new StringEncoder(1);
NetworkTable server = NetworkTable.getTable("SmartDashboard");
/**
... |
import React from 'react';
import './best-deals.scss';
const BestDealsPage: React.FC = () => (
<div className="BestDealsPage">
BestDealsPage
</div>
);
export default BestDealsPage;
|
Towards a wireless microsystem for liquid analysis
The paper describes both semi-wireless and wireless (433 MHz) liquid sensing systems based upon dual shear horizontal surface acoustic wave (SH-SAW) devices and introduces a novel design concept and a novel principle of detection. Each system comprises an uncoated pas... |
TRENTON, N.J. – Mitch Walding, a former fifth-round pick who went to the same Northern California high school as former Blue Jays third baseman Ed Sprague and current Phillies utilityman Ty Kelly, has always been confident in his ability to hit.
But if you would have told him two years ago that he’d be leading the Eas... |
""" Common functions for package biobb_analysis.ambertools """
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import csv
import re
from pathlib import Path, PurePath
from biobb_common.tools import file_utils as fu
from warnings import simplefilter
# ignore all future warnin... |
# import pytest
from punch import helpers
def test_optstr2dict_single_option():
optstr = "part=major"
assert helpers.optstr2dict(optstr) == {
'part': 'major'
}
def test_optstr2dict_multiple_options():
optstr = "part=major,reset=true"
assert helpers.optstr2dict(optstr) == {
'pa... |
// 2012-07-22 shift to confine horizontally or vertically, ctrl-shift to resize, ctrl to pick
public class BrushTool extends PlugInTool implements Runnable {
private final static int UNCONSTRAINED=0, HORIZONTAL=1, VERTICAL=2, RESIZING=3, RESIZED=4, IDLE=5; //mode flags
private static String BRUSH_WIDTH_KEY = "brush.w... |
/**
* Creates and sends an event to listeners when a user closes java.sql.Connection
* object belonging to this PooledConnection.
*/
protected void connectionClosedNotification() {
synchronized (connectionEventListeners) {
if (connectionEventListeners.size() == 0)
retu... |
// WithMutexMode will use mutex to receive metrics from the app throught the API.
//
// This determines how the client receive metrics from the app (for example when calling the `Gauge()` method).
// The client will either drop the metrics if its buffers are full (WithChannelMode option) or block the caller until the
/... |
/**NOTE: This main function is only used for testing the function getDist(path)*/
public static void main(String[] args) throws Exception {
System.out.println("----- Distribution Information in dataset -----\n");
String[] path = {"files/data/codec.arff",
"files/data/ormlite.arff", "files/data/jsqlparser.arff"... |
/** Write the footer on a stream */
private static void writeFooter(DataOutputStream fout,String version)
{
try{
fout.writeBytes("<hr width=\"800\"></center>");
fout.writeBytes("<b>GanttProject ("+version+")</b><br>\n");
fout.writeBytes("<b><a href=\"ganttproject.sourceforge.net\">ganttproject.sourceforge.n... |
The Effect of Familiarization on the Reliability of Isokinetic Assessment in Breast Cancer Survivors
To determine the amount of familiarization sessions required by breast cancer survivors to achieve a reliable measurement of muscle function assessed using isokinetic dynamometry. Twenty-six breast cancer survivors per... |
package main
import (
"fmt"
"strings"
)
func ping(pingChannel chan<- string, message string) {
pingChannel <- message // Send the message thru the ping channel
}
func pong(pingChannel <-chan string, pongChannel chan<- string) {
message := <-pingChannel // Receive the message from ping channel
pon... |
<gh_stars>100-1000
# Copyright (c) 2021 Graphcore Ltd. All rights reserved.
# Written by <NAME>
import yaml
import os
from config import cfg
def merge_dict(src, dst):
for key, val in src.items():
if isinstance(val, dict):
if key not in dst:
dst[key] = {}
merge_dict(... |
/**
* Returns the factory bean that makes it possible to inject {@link LockService} directly into other beans instead of accessing it via
* {@link Hekate#locks()} method.
*
* @return Service bean.
*/
@Lazy
@Bean
public LockServiceBean lockService() {
return new LockServiceBean()... |
<gh_stars>0
//
// Dog.h
// A1property
//
// Created by MS on 15-6-2.
// Copyright (c) 2015年 qf. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Dog : NSObject
@property int age;
//第一组
//nonatomic(不考虑线程安全)/atomic(默认的,考虑线程安全)
@property (nonatomic) int height;
//第二组
//readwrite(默认的)/readonly(... |
def _get_data(self, gas, loc, voltage, speed, trial):
cols = []
for g in gas:
for l in loc:
try:
(sub, files) = self._get_sensor_col_files(g, l)
except OSError as e:
print('{}\n Keeping calm and carrying on.'.format(e))
... |
// newTemplateFuncs returns a set of template funcs bound to the supplied args.
func (a *Generator) newTemplateFuncs() template.FuncMap {
return template.FuncMap{
"filterFields": a.filterFields,
"shortName": a.shortName,
"nullcheck": a.nullcheck,
"hasColumn": a.hasColumn,
"columnNames": a... |
// Retrieve a specific config.
func GetConfig(networkId string, configType string, key string) (interface{}, error) {
client, conn, err := getConfigServiceClient()
if err != nil {
return nil, err
}
defer conn.Close()
req := &protos.GetOrDeleteConfigRequest{NetworkId: networkId, Type: configType, Key: key}
val, ... |
#!/usr/bin/env python
import argparse
import logging
import asyncio
parser = argparse.ArgumentParser(
description='Upload a file or a directory to s3')
parser.add_argument('path', nargs=1,
help='location of files to upload')
parser.add_argument('--bucket', '-b', nargs=1, required=True,
... |
def add_sub(hub, payload):
hub.pop.sub.add(*payload['args'], **payload['kwargs']) |
package se.sics.mspsim.cli;
import java.io.File;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Hashtable;
import se.sics.mspsim.core.EmulationException;
import se.sics.mspsim.util.ActiveComponent;
import se.sics.mspsim.util.ComponentRegistry;
import se.sics.mspsim.ut... |
<gh_stars>0
#include "Pargon/Application.h"
#include "Pargon/Files.h"
#include "Pargon/Graphics.DirectX11.h"
#include "Pargon/Audio.XAudio2.h"
#include "Pargon/Input.Win32.h"
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
using namespace Pargon;
class Playground : ApplicationInterface
{
public:
... |
import { Injectable } from '@nestjs/common';
import { CreateUserDto } from 'src/users/users.dto';
import { LoginDto } from './auth.dto';
@Injectable()
export class AuthService {
signIn(user: CreateUserDto) {
return 'signIn';
}
login(user: LoginDto) {
return `login`;
}
logout() {
return `logout`... |
/**
* Method 'markAsRead()' should complete successfully if response code is
* 205.
* @throws Exception Thrown in case of error.
*/
@Test
public void markAsReadOkIfResponseStatusIs205() throws Exception {
MkContainer container = null;
try {
container = new MkGrizzlyCo... |
<gh_stars>0
package org.infinispan.objectfilter.impl.hql;
import java.util.LinkedList;
import java.util.List;
/**
* @author <EMAIL>
* @since 7.0
*/
public final class FilterEmbeddedEntityTypeDescriptor implements FilterTypeDescriptor {
private final String entityType;
private final List<String> propertyPath... |
/*
* Open Source Physics software is free software as described near the bottom of this code file.
*
* For additional information and documentation on Open Source Physics please see:
* <http://www.opensourcephysics.org/>
*/
package org.opensourcephysics.media.core;
import java.awt.event.MouseEvent;
impor... |
Infrared Excess and Molecular Clouds: A Comparison of New Surveys of Far-Infrared and H I 21 Centimeter Emission at High Galactic Latitudes
We have created a map of the large-scale infrared surface brightness in excess of that associated with the atomic interstellar medium, using region-by-region correlations between ... |
package com.amyliascarlet.jsontest.bvt.bug;
import junit.framework.TestCase;
import com.amyliascarlet.lib.json.JSON;
import com.amyliascarlet.lib.json.annotation.JSONField;
import com.amyliascarlet.lib.json.serializer.SerializerFeature;
public class Bug_for_field extends TestCase {
public void test_annotation()... |
package com.codepath.simpletodo.data;
import java.io.Serializable;
/**
* Created by Karl on 9/26/2016.
*/
public class TodoListItem implements Serializable{
private String item, note;
private int priority;
private long id, dueDate;
private boolean status;
public static final int LOW = 0;
pub... |
<filename>Mobile App/Code/sources/com/google/android/gms/internal/C2052or.java
package com.google.android.gms.internal;
import android.os.Bundle;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
/* renamed from: com.google.android.gms.internal.or */
public class C2052... |
/**
* The type Bla class.
*/
public class BlaClass {
/**
* The type Inner.
*
* @param <T> the type parameter
*/
public class Inner<T> {
}
} |
Noise reduction techniques in pulse width modulated inductive switching systems of PSLV
The subject of the paper is the techniques employed in the Polar Satellite Launch Vehicle to reduce electromagnetic interference in control systems which have pulse width modulated inductive switching systems. There are 3 such cont... |
She's deadly, she's powerful, she's got six arms! It's the X-Men's Spiral and here she's been revamped in Marvel Legends style. I started with the upper half of a Target Exclusive Spiral and mounted it to a Captain Marvel lower body. She sport's Black Widow's head, different dance-pose hands, and Spiral's leg fur was h... |
def to_kurdish(self, solar=False):
if solar == False:
kurdish_year = self.shamsi_date.year + 1321
ku_date = JalaliDate(
kurdish_year, self.shamsi_date.month, self.shamsi_date.day
)
elif solar == True:
kurdish_year = self.whole_year.year + 1... |
//calculates the nodes of the output layer. It will be used if any other activation besides softmax will be used
private void calculate_activation_nodes(double[] last_layer_vals, double[][] weights){
double sum = 0.0;
for(int row = 0; row < weights.length; row++){
for(int column = 0; column ... |
Fans are invited to pick the worst episode of Arrow Season 3 in the annual GreenArrowTV Awards.
Earlier in the week, we had fans voting for the Best Episode of Arrow Season 3 as part of our annual GreenArrowTV Awards… now, it’s time to pick the worst. This is assuming that not all 23 episodes of Arrow Season 3 were pe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.