content
stringlengths
10
4.9M
<reponame>StandardES/Python-Update-Script import time import os localtime = time.asctime( time.localtime(time.time()) ) os.system('sudo cp -r /var/www/html localtime-html')
SIMFEROPOL, Ukraine (AP) - Crimea's parliament on Monday declared the region an independent state, after its residents voted overwhelmingly to break off from Ukraine and seek to join Russia. In the same resolution, it said that all Ukrainian state property on the territory of the Black Sea peninsula will be nationaliz...
/** * Implements {@link ConfigurationStore#storeConfiguration(OutputStream)}. * Stores/serializes the property name-value associations currently present * in this <tt>ConfigurationStore</tt> into a specific <tt>OutputStream</tt> * in the format represented by this instance. * * @para...
When the Supreme Court rules in King v. Burwell, the new Obamacarechallenge, its judges won't be the first to grapple with whether the health law's subsidies on the federal marketplace are legal. Since early 2014, five separate courts have issued rulings on the issue in three separate health law challenges. Three cour...
<gh_stars>0 from AndroidRunner.Device import Device import subprocess # noinspection PyUnusedLocal def main(device: Device, *args: tuple, **kwargs: dict): subprocess.run(['fuser', '-k', '8081/tcp'])
<gh_stars>10-100 /** * Copyright 2017 TerraMeta Software, 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 requir...
/** * Method to validate that an element is valid for writing to the datastore. * TODO Minimise differences to super.validateElementForWriting() * @param sm StateManager for the List * @param element The element to validate * @param index The position that the element is being stored at in the ...
MOSCOW (Reuters) - Russia outfoxed European Union sanctions by delivering gas turbines made by Germany’s Siemens to the annexed Ukrainian region of Crimea. Now for the hard part, switching them on. FILE PHOTO: A still image taken from video footage shows blue tarpaulins covering equipment at the port of Feodosia, Crim...
def add_composite_param(self, cropbg_param, bbox, bg_hw, fname_in, fname_out, path_to_bg_image): with open(fname_in, 'rb') as f: data = pickle.load(f, encoding='latin1') data['composite_param'] = {} data['composite_param']['cropbg_param'] = cropbg_param data['composite_param'...
package com.ctrip.xpipe.redis.console.cache; import com.ctrip.xpipe.redis.console.model.DcTbl; /** * @author lishanglin * date 2021/4/17 */ public interface DcCache { DcTbl find(String dcName); DcTbl find(long dcId); }
// // Delete a timer object from the data base, by removing the intrusive // reference. If any other objects has a reference to this timer such as // boost::asio, the timer object deletion is automatically deferred // bool TimerManager::DeleteTimer(Timer *timer) { if (!timer || timer->fired()) return false; if ...
<gh_stars>10-100 import { Component, NgModule } from '@angular/core'; import { SbbButtonModule, SbbLinksModule } from '@sbb-esta/angular-public'; @Component({ selector: 'sbb-button-test', template: ` <button sbbButton>Description</button> <button sbbButton mode="primary">Description</button> <button sb...
// CloseWithError initiates the closing handshake. func (s *Socket) CloseWithError(e *CloseError) { s.closeError = e b, _ := e.ToBytes() s.WriteMessage(OpcodeClose, b) }
ORNL’s Titan supercomputer is helping Brookhaven physicists understand the matter that formed microseconds after the Big Bang. At the dawn of the universe – just after the Big Bang – all matter was in the form of a hot-flowing soup called quark-gluon plasma, or QGP. Though a few ambitious, atom-smashing experiments ha...
/** * Abstract test for TCP connected channels. * * @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a> * @author <a href="mailto:frainone@redhat.com">Flavia Rainone</a> */ public abstract class AbstractNioTcpTest<T extends ConnectedChannel, R extends StreamSourceChannel, W extends StreamSinkChanne...
Brian Burke isn't just a legend of the NHL. He's a fists-up, knock-your-teeth-out gladiator. But when his hockey-loving son came out of the closet and died soon after, he was thrust into a strange new role: advocate for gays in a macho sports culture. He's no cheerleader—he looks like he hates every minute of it—but lo...
An Empirical Investigation of the Antecedents of Sales Force Control Systems The author summarizes 11 hypotheses from agency theory, transaction cost analysis, and Ouchi's theoretical approach about the impact of environmental, company, and salesperson characteristics on the design of sales force control systems (outc...
#include<iostream> #include<cstdio> using namespace std; int main() { int num; bool cards[4][14]; char a; int b; for(int i=0; i<4; i++){ for(int j=0; j<14; j++){ cards[i][j] = false; } } scanf("%d\n", &num...
// Record returns the value of the next kafka message. func (s *Source) Record() (interface{}, error) { if s.MaxMsgs > 0 { s.numMsgs++ if s.numMsgs > s.MaxMsgs { return nil, io.EOF } } msg, ok := <-s.consumer.Messages() if ok { var ret interface{} switch s.Type { case "json": parsed := make(map[st...
def load_data_file(filename, encoding='utf-8'): data = pkgutil.get_data(PACKAGE_NAME, os.path.join(DATA_DIR, filename)) return data.decode(encoding).splitlines()
The First Stars: A Low-Mass Formation Mode We perform numerical simulations of the growth of a Population III stellar system under photodissociating feedback. We start from cosmological initial conditions at z = 100, self-consistently following the formation of a minihalo at z = 15 and the subsequent collapse of its c...
<filename>packages/web/server/src/lib/log.ts import chalk from 'chalk'; export const colors = { error: chalk.red('error') + ' -', ready: chalk.green('ready') + ' -', }; // Ready, no issues export const ready = (...message: string[]) => { console.log(colors.ready, ...message); }; // Uh oh, there were issues fou...
/** * aligns all simulation axes from this root of this chain up until the pinned tips * of any child chains with the constraint an local axes of their corresponding bone. */ public void alignSimulationAxesToBones() { if(!this.isBasePinned() && this.getParentSegment() != null) { this.getParentSegment()...
/** * Check that if an application code contains an extra CDI bean that implements javax.sql.DataSource, * but it is not a data source configured through regular configuration means, then it is not included in * health checks. */ public class DataSourceHealthCheckWithExtraProducerTest { @RegisterExtension ...
/** * CHART.JS default values for LEGEND element. * * @author Andrea "Stock" Stocchero */ public final class DefaultLegend implements IsDefaultLegend { private static final boolean DEFAULT_DISPLAY = true; private static final boolean DEFAULT_FULL_SIZE = true; private static final boolean DEFAULT_RE...
#include<iostream> #include<string> #include<queue> #include<stack> #include<vector> #include<map> #include<cstdio> #include<cstdlib> #include<algorithm> #include<set> #include<list> #include<iomanip> #include<cstring> #include<cmath> #include<limits> #include<cctype> #include<unordered_map> #include<complex> #pragma w...
Culture and children's cosmology. In this investigation, we examined children's knowledge of cosmology in relation to the shape of the earth and the day-night cycle. Using explicit questioning involving a choice of alternative answers and 3D models, we carried out a comparison of children aged 4-9 years living in Aust...
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:05:58 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/TVServices.framework/TVServices * classdump-dyld is licensed under GPLv3, Copyright © 2013-201...
<filename>CameraUI.framework/CAMModeAndDeviceCommand.h /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CameraUI.framework/CameraUI */ @interface CAMModeAndDeviceCommand : CAMCaptureCommand { NSError * __configurationError; CAMCaptureGraphConfiguration * __desiredGraphConfiguration; ...
// to split into resource oriented (Providers/Titles/...) services public class HoldingsIQServiceImpl implements HoldingsIQService { private static final Logger LOG = LoggerFactory.getLogger(HoldingsIQServiceImpl.class); private static final String HTTP_HEADER_CONTENT_TYPE = "Content-type"; private static final ...
from pyomo.environ import Block, Expression, units as pyunits from watertap3.utils import financials from watertap3.wt_units.wt_unit import WT3UnitProcess ## REFERENCE ## CAPITAL: # Cost Estimating Manual for Water Treatment Facilities (McGivney/Kawamura) (2008) # DOI:10.1002/9780470260036 # Water and Wastewater Engin...
import logging import sentry_sdk from api.endpoints import categories, develop, jobs, login, tasks, users from core.config import get_settings from core.logger import get_logger, init_gunicorn_uvicorn_logger from fastapi import FastAPI from sentry_sdk.integrations.asgi import SentryAsgiMiddleware from sentry_s...
// Get the adapter by the GUID bool Win32GetAdapterFromGuid(void *a, char *guid) { bool ret = false; IP_INTERFACE_INFO *info; ULONG size; int i; LIST *o; wchar_t tmp[MAX_SIZE]; if (a == NULL || guid == NULL) { return false; } UniFormat(tmp, sizeof(tmp), L"\\DEVICE\\TCPIP_%S", guid); size = sizeof(IP_INTER...
def FromPrimary(cls, connection, pkey_value): raise NotImplementedError
/** * Provides support for atmospheric temperature profiles. * * @author Steven R. Emmerson * @version $Id: AirTemperatureProfile.java,v 1.12 2005/05/13 18:34:49 jeffmc Exp $ */ public class AirTemperatureProfile extends FunctionType { /** * The singleton instance. */ private static AirTemperatu...
package libModel import ( "fmt" ) const ( errSchemaFormat = "Schema Error:[%s]\n" errUnknownTypeFormat = "unknown datatype: columnName:%s, columnType:[%s]" ) func errSchema(errMsg string) error { return fmt.Errorf(errSchemaFormat, errMsg) } func errUnknownType(columnName, columnType string) error { return...
<gh_stars>0 import numpy as np def many_logical_and(*args): """ `logical and` together many arrays without the need to nest the function grossly. """ if len(args) > 1: return np.logical_and(args[0], many_logical_and(args[1:])) else: return args[-1] def maskLowDeviationRGB(images, cutoff=...
Limit Theorems for Additive Functionals of the Fractional Brownian Motion We investigate first and second order fluctuations of additive functionals of a fractional Brownian motion (fBm) of the form \begin{align}\label{eq:abstractmain} Z_n=\left\{\int_{0}^{t}f(n^{H}(B_{s}-\lambda))ds\ ; t\geq 0 \right\} \end{align} wh...
d={1:1,3:1,5:1,7:1,8:1,10:1,12:1,4:2,6:2,9:2,11:2,2:3} a=list(map(int,input().split())) if d[a[0]]==d[a[1]]: print('Yes') else: print('No')
// Size returns the size of the resource. 0 if it does not exist. func (d Resource) Size() int64 { filePath := d.GetFilePath() if f, err := os.Stat(filePath); err == nil { return f.Size() } return 0 }
/** * Slot reports from task executor are the source of truth regarding the state of slots. The * reported state may not match what is currently being tracked, and if so can contain illegal * transitions (e.g., from free to allocated). The tracked and reported states are reconciled by * simulating s...
n = int(input()) l = [] while(n): l.append(n % 10); n = n // 10 while(len(l) < 5): l.append(0) n = l[4]*10000 + l[3] + l[2]*1000 + l[1]*10 + l[0]*100 x = pow(n, 5) l2=[] while(x): l2.append(x % 10); x = x // 10 while(len(l2) < 5): l2.append(0) l3=[] for i in range(5): l3...
import { createReducer } from '@reduxjs/toolkit' import { Field, replaceSwapState, selectCurrency, setRecipient, switchCurrencies, typeInput } from './actions' export interface SwapState { readonly independentField: Field readonly typedValue: string readonly [Field.INPUT]: { readonly currencyId: strin...
/** * Requests all offline messages. * This also marks them as read server side. * Results are returned in a {@link FriendMsgHistoryCallback}. */ public void requestOfflineMessages() { ClientMsgProtobuf<CMsgClientChatGetFriendMessageHistoryForOfflineMessages.Builder> request = ...
//Test string sig to linked list byte data structure. func TestByteSeqToByteList(t *testing.T) { expect := list.New() expect.PushBack(0xC7) expect.PushBack(0xE8) expect.PushBack(0xff) expect.PushBack(0xff) expect.PushBack(0xff) expect.PushBack(0xff) expect.PushBack(0x48) expect.PushBack(0x89) input := "C7 E8 ...
#include <bits/stdc++.h> #define endl "\n" using namespace std; int main(){ string S; int n,C[300],ans=0; cin>>n>>S; if (n>26) {cout<<-1<<endl;return 0;} for (int i=0;i<n;i++){ if (C[S[i]]==1) ans++; else C[S[i]]=1; } cout<<ans<<endl; return 0; }
/** * Tests that source tags are added/collected properly for fields in * multiple inner classes. Scans the file <code>TestField4</code> */ public void testFieldMultiInnerClass() { IApiDescription manifest = newDescription(); doScan("a/b/c/TestField4.java", manifest); //$NON-NLS-2$ ...
Micro-buckling of carbon fibers in shape memory polymer composites under bending in the glass transition temperature region The influence of a wide temperature range in the glass transition region of a shape memory polymer (SMP) matrix on micro-buckling of the fiber reinforcements in shape memory polymer composites (S...
<filename>src/main/java/be/unamur/laboil/domain/persistance/DemandDAO.java package be.unamur.laboil.domain.persistance; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; /** * @author <NAME> on 06-08-18 */ @Data @AllArgsConstructor ...
<filename>geomesa-quickstart-python/tools/ECQL/queryFormatters.py #!/usr/bin/env python #coding:utf-8 """ queryFormatters.py Description: These functions executes an ECQL query and either loads the results into a python dictionary or list, or writes it to a JSON file. Field names and java data type are provided ...
// RemoveChannel removes a single channel between two nodes. func (c *GraphCache) RemoveChannel(node1, node2 route.Vertex, chanID uint64) { c.mtx.Lock() defer c.mtx.Unlock() c.removeChannelIfFound(node1, chanID) c.removeChannelIfFound(node2, chanID) }
Fermion excitations of a tense brane black hole By finding the spinor eigenvalues for a single deficit angle (d-2)-sphere, we derive the radial potential for fermions on a d-dimensional black hole background that is embedded on a codimension two brane with conical singularity, where the deficit angle is related to the...
/** * This class is a Kafka SourceConnector generating tasks to ingest MQTT messages. **/ public class MqttSourceConnector extends SourceConnector { private static final Logger log = LoggerFactory.getLogger(MqttSourceConnector.class); private Map<String, String> configProps; private MqttSourceConnectorCo...
<gh_stars>1-10 # -*- python -*- # -*- coding: utf-8 -*- # # <NAME> <<EMAIL>> # # (c) 2013-2021 parasim inc # (c) 2010-2021 california institute of technology # all rights reserved # # the package import altar # my protocol from .RNG import RNG as rng # the random number generator class GSLRNG(altar.component, family...
package com.besmartmobile.union; import com.besmartmobile.union.app.SomeUnion; import com.google.gson.GsonBuilder; import org.junit.Test; import static com.besmartmobile.union.app.SomeUnionExt.*; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). ...
export * from './record.endpoint' export { MonthDayYearDate } from './common.endpoint' export { Contributor } from './common.endpoint' export { OrgDisambiguated } from './orgs.disambiguated.endpoint' export { ApplicationMenuItem } from './menu.local' export { UserInfo } from './userInfo.endpoint' export { NameForm } fr...
By Arshad Mohammed WASHINGTON, May 29 (Reuters) - North Korea’s second nuclear test has forced the United States to grapple with the idea that Pyongyang may never give up atomic weapons, current and former U.S. officials said this week. The potential implications range from a higher risk of global weapons proliferati...
import numpy as np from CleanBotEnv import CleanBotEnv import unittest class TestCleanBotEnv(unittest.TestCase): def test_interaction(self): """Performs a series of interaction with the environment""" # Setup def check_state(bot_pos, dirty=False, reward=0, done=False): _state,...
// Checks if all signatures in a list is present in the signature database func (sd *SignatureDatabase) Exists(certtype util.EFIGUID, siglist *SignatureList) bool { for _, sdsiglist := range *sd { if !sdsiglist.CmpHeader(siglist) { continue } return sdsiglist.ExistsInList(siglist) } return false }
<reponame>mimfgg/semla<filename>semla-common/src/test/java/io/semla/model/Score.java package io.semla.model; public class Score { public String name; public int score; public static Score with(String name, int score) { Score player = new Score(); player.name = name; player.score =...
def _collect_joins(self, joins): joins = joins or [] self.joins = [] for join in joins: master = coalesce_physical(join["master"],self.fact_name,schema=self.schema) detail = coalesce_physical(join["detail"],schema=self.schema) self.logger.debug("collecting joi...
<filename>contract/data.go package contract // DataManager holds the methods that manipulates the main data. type DataManager interface { MySQL() MySQLRepo }
<reponame>ScottyPotty1/Dolphin-7-VM-Releases<filename>DolphinIF.h #ifndef _DOLPHINIF_H_ #define _DOLPHINIF_H_ #include <windows.h> #include <string.h> #ifdef _DEBUG class ostream; #endif namespace DolphinIF { enum { MinSmallInteger = -0x40000000, MaxSmallInteger = 0x3FFFFFFF }; typedef signed char SBYTE; typedef ...
def final_conv_dim(input_dim, kernels, paddings): all_dims = [np.asarray(input_dim)] for kernel, padding in zip(kernels, paddings): all_dims.append((all_dims[-1] - kernel + 2 * padding) / 2 + 1) return np.asarray(all_dims).astype(int)
module Plot(plotDefault,plot,writePlot,plot3d,simple2d,plotX11) where import Graphics.Gnuplot.Advanced import qualified Graphics.Gnuplot.Terminal.X11 as X11 import Graphics.Gnuplot.File import qualified Graphics.Gnuplot.Graph.TwoDimensional as Graph2D import qualified Graphics.Gnuplot.Plot.TwoDimensional as Plot2D im...
<filename>src/main/java/org/monster/strategy/analyse/protoss/CoreAnalyser.java package org.monster.strategy.analyse.protoss; import bwapi.UnitType; import org.monster.common.UnitInfo; import org.monster.common.constant.EnemyUnitVisibleStatus; import org.monster.common.util.TimeUtils; import org.monster.common.util.Uni...
/******************************************************************************* * Copyright of the Contributing Authors, including: * * (c) 2019 <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...
def sups(self): sups_req = RequestBuilder.ConceptMethod.SchemaConcept.sups() from grakn.service.Session.Concept import ConceptFactory return map(lambda iter_res: ConceptFactory.create_remote_concept(self._tx_service, iter...
export class DialogOpenConfig { data?: any; width?: string; maxWidth?: string; minWidth?: string; panelClass?: string; constructor(obj: Partial<DialogOpenConfig>) { Object.assign(this, obj); } }
/** Sums up a series of rolls into a total. */ int sum_up(int* rolls, int count) { int sum = 0; for (int i = 0; i < count; i++) { sum += rolls[i]; } return sum; }
<gh_stars>0 export * from './anchorUtils'; export * from './mathUtils';
// UnaryServerInterceptor returns a new unary server interceptors that adds logrus.Entry to the context. func UnaryServerInterceptor(logger *Logger) grpc.UnaryServerInterceptor { loggerImpl := logger.GetImpl() traceHeader := strings.ToLower(logger.GetTraceHeader()) timeFormat := logger.GetTimeFormat() return func(c...
/* LICENSE: MIT License Copyright (C) 2017 <NAME> <<EMAIL>> https://github.com/jay/ExecInExplorer/blob/master/LICENSE */ #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif #ifndef PSAPI_VERSION #define PSAPI_VERSION 1 #endif #include "ExecInExplorer_Util.h" #include <Windows.h> #include <Psapi.h>...
/* * JBoss, Home of Professional Open Source * Copyright 2008, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
<reponame>wkigen/WingEngine #ifndef _WING_ENGINE_APPLICATION_H_ #define _WING_ENGINE_APPLICATION_H_ #include "common\engine_defines.h" #include "application\application.h" namespace WingEngine { class WING_ENGINE_API EngineApplication:public WingCore::Application { public: EngineApplication(); virtual ~Engin...
import java.util.*; /* */ public class pr173 { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Enter a string: "); String s = sc.nextLine(); System.out.println("Enter a number: "); int n = sc.nextInt(); if(s.lengt...
// deepCopy creates a deep copy of the json subtree pointed by the current node // if deep is false only the subtree child references are copied else a recursive deep copy is made func deepCopy(n Node, deep bool) (Node, error) { var node Node switch v := n.(type) { case *MapNode: m := NewMapNode(v.Id()) node = m...
<gh_stars>1-10 /* Copyright (C) 1996-1997 Id Software, Inc. This program 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 2 of the License, or (at your option) any later version. This program is di...
Your message has been sent successfully If you want to know why Hillary Clinton referred to Donald Trump supporters as "a basket of deplorables," you need look no further than the deplorable behavior being displayed among them in Washington during the inauguration. Courtesy of Jared Yates Sexton, who writes for the N...
<reponame>WraithM/prosper {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} module Prosper.Listing ( Listing(..) , Offer(..) , Credit(..) , Rating(..) , Category(..) , Status(..) ) where import Control.Applicative (pure, (...
<filename>install/core/python/tank/descriptor/descriptor_core.py # Copyright (c) 2016 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, c...
def createFile(dataArray=None, outfile=None, header=None): assert(dataArray is not None), "Please supply a data array for createFiles" try: fitsobj = fits.HDUList() if header is not None: try: del(header['NAXIS1']) del(header['NAXIS2']) ...
/** * private listener class */ private class ExeListener implements ExecutionListener { /** * implements executionError in ExecutionListener */ public void executionError(Manager manager, Throwable throwable) { } /** * implements executionFinished in ExecutionList...
/** * Attempt to clean up fused trees that have multiple root blocks by simply destroying them both messily */ protected void cleanupFrankentree(World world, BlockPos treePos, IBlockState treeState, List<BlockPos> endPoints, SafeChunkBounds safeBounds) { Set<BlockPos> blocksToDestroy = new HashSet<>(); BlockBra...
s = input() len=len(s) li=[] li.append(s[0]) li.append(str(len-2)) li.append(s[len-1]) ss="".join(li) print(ss)
/* Handler for the PUT /api/queue function in our API that is used, for now to handle updates to the order of jobs in the queue. */ func (a *AppController) ReorderQueue(rw http.ResponseWriter, r *http.Request) { var req QueueUpdateReq var resp QueueUpdateResp reqJSON := json.NewDecoder(r.Body) respJSON := json.Ne...
def Export(project, output_uri_prefix, collection_ids=None): dbname = 'projects/{}/databases/{}'.format( project, DEFAULT_DATABASE) return GetService().ExportDocuments( GetExportDocumentsRequest(dbname, output_uri_prefix, collection_ids))
/** * Utilities to manage VirtualBox machine life cycle. */ @Singleton public class MachineController { @Resource @Named(ComputeServiceConstants.COMPUTE_LOGGER) protected Logger logger = Logger.NULL; private final Supplier<VirtualBoxManager> manager; private final MachineUtils machineUtils; privat...
Direct Spectroscopic Measurement and Theoretical Modeling of the Diffusion of a Single Species in a Two-Phase Unstirred System The diffusion of 8-hydroxyquinoline from an aqueous phase into an organic phase and vice versa has been measured using a static transfer cell. The total change in concentration in either phase...
<reponame>Baisen1105/WEB-Project package com.vole.film.repository; import com.vole.film.entity.Link; import org.springframework.data.jpa.repository.JpaRepository; /** * 友情链接 Repository 接口 */ public interface LinkRepository extends JpaRepository<Link,Integer> { }
<filename>list/sort_test.go package list_test import ( "fmt" . "github.com/flowonyx/functional" "github.com/flowonyx/functional/list" ) func ExampleSort() { input := []int{3, 2, 5, 8, 1} r := list.Sort(input) fmt.Println(r) // Output: [1 2 3 5 8] } func ExampleSortDescending() { input := []int{3, 2, 5, 8, 1...
<gh_stars>0 package br.com.zup.transacoes.transacao; import br.com.zup.transacoes.transacao.Cartao.CartaoResponse; import br.com.zup.transacoes.transacao.Estabelecimento.EstabelecimentoResponse; import java.math.BigDecimal; import java.time.LocalDateTime; public class EventoTransacaoResponse { private BigDecima...
/** * Shows showPopup menu at the specified location. The {@code x} and {@code y} coordinates * are in JTabbedPane coordinate system. */ private void showPopup(int x, int y) { Content content = getContentAt(x, y); if (content == null) { return; } DefaultAct...
/** * Returns a thread dump (thread states) as response. * If the thread dump is not supported then the status code returned is 500 (internal error). * * @author Decebal Suiu */ public class ThreadDumpHandler implements RouteHandler { private static final Logger log = LoggerFactory.getLogger(ThreadDumpHandler...
<filename>src/main/java/com/github/blalasaadri/fpinjava/examples/annotations/ImmutableConfiguration.java package com.github.blalasaadri.fpinjava.examples.annotations; import org.immutables.value.Value.Style; import org.immutables.vavr.encodings.VavrOptionEncodingEnabled; @Style( get = { "get*", "is*" }, ...
def delete(self, key): key = bytes_to_str(key) LOGGER.debug(f"Deleting azure blob at {self._container_name}/{key}") blob_client = self._blob_service_client.get_blob_client( container=self._container_name, blob=f'{self.base_path}{key}', ) blob_client.delete...
When Louis Muglia and a group of fellow researchers studied nearly 3,500 mothers and their babies in Finland, Denmark and Norway, they noticed a curious pattern: The data suggested that shorter mothers had shorter pregnancies, smaller babies and a higher risk for preterm births. “The relatively shorter you were, the r...
Effects of cyclic variability in Pacific decadal oscillation on winter wheat production in China Due to restrictions on the long period ranges of Pacific decadal oscillation (PDO) and the limited amount of winter wheat yield data in China, there is little knowledge or understanding of the effects of PDO on winter whea...
def add_source(self, node, relationship): if isinstance(node, Vertex): self.source.append((node, relationship)) else: self._print_node_type_error(node)
//Recursive funciton to copy the member functions linked list void Class::copyFunction(ClassMember* functionCopy) { if(functionCopy == NULL) { return; } ClassMember* copyMemberFunction = new ClassMember(*functionCopy); this->copyFunctionInsert(copyMemberFunction); copyFunction(functionCopy->g...