content
stringlengths
10
4.9M
import faust import logging import pandas as pd from datetime import datetime from pipeline import transform_to_clean, transform_to_tokens, predict_mod_proba from elasticsearch_async import AsyncElasticsearch from elasticsearch.exceptions import ElasticsearchException import json import os logging.info("Starting mod...
/** * fire property change event to listeners. * @param e Event object. */ private void firePropertyEvent(PropertyChangeEvent e){ for(PropertyChangeListener listener: propertyListeners){ listener.propertyChange(e); } }
Update: This story has been updated Wednesday morning with information from the police department. CARTERET -- The Middlesex County Prosecutor's Office is investigating allegations that police officers punched, kicked and bloodied a 16-year-old suspect last week after he led them on a brief chase before crashing his c...
<filename>src/proxy/ProxyPatternDemo.java package proxy; public class ProxyPatternDemo { public static void main(String[] args) { Image image=new ProxyImage("test_10mb.jpg"); System.out.println("it will load from localDisk: "+"\n"); image.display(); System.out.println(); System.out.println("It will ...
module Private where modname = "Private"
/** * Verify the entrance. * * @param config Yaml example configuration */ public static void validate(final YamlExampleConfiguration config) { Map<String, List<String>> configurationMap = Maps.newHashMap(); configurationMap.put("products", config.getProducts()); configuratio...
/** * Create an Image in this extent * * @param name * Image Tag * @return the newly created image * @throws SQLException */ public FMImage createImage(String imageTag) throws SQLException { if ((imageTag == null) || imageTag.isEmpty()) { th...
<reponame>SushantAgrawal/neuro-share-integrated<filename>src/app/shared/services/activity/activity.service.ts import { Injectable } from "@angular/core"; import { Subject } from 'rxjs/Subject'; import { MsService } from '@sutterhealth/data-services'; import { MSPatientData } from '@sutterhealth/data-services/models/ms-...
import { createContentPlugin } from '@react-page/create-plugin-materialui'; import React from 'react'; type Address = { street: string; city: string; zipCode: string; }; type Shop = { name: string; address: Address; }; type State = { title: string; shops: Shop[]; }; export default createContentPlugin<St...
A Countermeasure Study on the Universities' Majors Setup and Reform of Management System This paper indicates many existing problems in majors setup. These problems include: excessive development of some majors; incomplete related management system; lack of majors' transformation and none of the exit mechanism; curric...
<filename>codes/CodeForces/Round #268/cf469B.cpp #include <cstdio> #include <cstring> #include <vector> #include <algorithm> using namespace std; const int maxn = 1005; int p, q, l, r, v[maxn]; vector<int> g; void init () { int x, y; scanf("%d%d%d%d", &p, &q, &l, &r); for (int i = 0; i < p; i++) { scanf("%d%d...
<filename>impl/mask/masking.go<gh_stars>100-1000 package mask type Masking struct{} func (m *Masking) Has(mask, field byte) bool { return mask&field != 0 } func (m *Masking) Set(mask *byte, field byte, when bool) { if when { *mask |= field } }
// PointInBounds bitmap point in bounds func PointInBounds(bit robotgo.CBitmap, x, y int) bool { var point C.MMPoint point.x = C.size_t(x) point.y = C.size_t(y) cbool := C.point_in_bounds(ToThis(bit), point) return bool(cbool) }
// Copyright 2020-2021, The Tremor Team // // 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 agr...
package jetbrains.mps.ide.devkit.actions; /*Generated by MPS */ import jetbrains.mps.annotations.GeneratedClass; import jetbrains.mps.workbench.action.BaseAction; import javax.swing.Icon; import com.intellij.icons.AllIcons; import com.intellij.openapi.actionSystem.AnActionEvent; import java.util.Map; import com.intel...
<filename>TDEngine2/plugins/FmodAudioContext/source/CFmodAudioContext.cpp #include "../include/CFmodAudioContext.h" #include "../include/CFmodAudioClip.h" #include <stringUtils.hpp> #include <utils/CFileLogger.h> #include <utils/Utils.h> #include <unordered_map> #include <fmod.hpp> #include <fmod_studio.hpp> #include <...
def attack2(self, hero_position): self.attack2_current_steps = 0 if self.top <= self.permitted_y[0]: self.set_speed(0, self.attack2_speed) elif self.bottom >= self.permitted_y[1]: self.set_speed(0, -self.attack2_speed) elif hero_position[1] > self.center[1]: ...
import React, { PropsWithChildren } from 'react'; import { IconProps } from './IconProps'; type Props = PropsWithChildren<IconProps & { viewbox?: string }>; export const IconWrapper = function IconWrapper({ size = 32, className, fill = 'currentColor', children, viewbox = '0 0 32 32', ...props }: Props) { ...
def check_raster_clip_crs( raster_dataset, roi_bbox, enable_transform=True, verbose=False ): roi_epsg = roi_bbox.crs.to_epsg() raster_crs = raster_dataset.crs.to_epsg() if enable_transform: if roi_epsg == raster_crs: pass else: if verbose: print( ...
def read_tf_scalar_summary(file_path): data = dict() data['step'] = list() for event in tf.train.summary_iterator(file_path): if event.summary.value: data['step'].append(event.step) for v in event.summary.value: if v.tag not in data: ...
Read on for a review of Skinfood’s Parsley and Mandarin Essence! Skin Type: Oily/Acne Prone. Combo in the winter. Today’s review will be on the first AB product I had to actually wait a long time for and that is the Skinfood Parsley and Mandarin Essence! I was very excited when this came in because reading about how...
Analysis of misaligned optical rotational Doppler effect by modal decomposition. The optical rotational Doppler effect (RDE) is closely related to the unique orbital angular momentum (OAM) carried by optical vortex, whose topological charge means the mode of OAM. Compared with the coaxial incidence, the rotational Dop...
<reponame>openwengo/qmail-ldap #ifndef EXIT_H #define EXIT_H /* XXX unistd.h */ extern void _exit(int); #endif
package com.lcg.example; import com.alibaba.cloud.nacos.NacosConfigProperties; import com.alibaba.nacos.api.config.listener.Listener; import com.lcg.example.mq.MySource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot....
# Datos Complejos en Python """ Tuplas Diccionarios Listas Matrices.... """ mi_tupla = ('Cadena de texto', 4.5, 15, True, 0o42, 0x45, (34, 45)) print("Esta es una tupla = " + str(mi_tupla)) print("El tamanio de la tupla es = " + str(len(mi_tupla))) print("============================================") mi_lista = [3, ...
import time import gym import tensorflow as tf from stable_baselines.deepq import DQN, MlpPolicy from furuta_env_t_deepq import FurutaEnvTorqueDeepqBal, FurutaEnvTorqueDeepqUp import common as cm #STEPS = 10000 #STEPS = 60000 STEPS = 200000 #STEPS = 200000 #DIMENSION = 16 #DIMENSION = 32 #DIMENSION = 64 DIMENSION =...
Density model of the Permo – Triassic lithospheric mantle of the Ivrea Verbano Complex <p>The Ivrea &#8211; Verbano Zone (IVZ) is a virtually complete lower-to-middle continental crustal section exposed in the Western Italian Alps in result of exhumation processes during the Alpine orogenic cycle. To the northwest, th...
/** * A class to do the database queries needed to fetch requisitions, po, preq etc., for * migration of status code from purap documents to the document header's workflowdocument. */ public class PurapDocumentsStatusCodeMigrationDaoOjb extends PlatformAwareDaoBaseOjb { private static org.apache.log4j.Logger LOG...
/** * Creates an instance of the <code>IOException</code> class using the specified exception. * * @param ex * An <code>Exception</code> object that represents the exception used to create the IO exception. * * @return A <code>java.io.IOException</code> object that represents ...
<reponame>johannesboyne/goauth0Request<gh_stars>0 package goauth0Request import ( "encoding/json" "fmt" "net/http" "net/http/httptest" "testing" ) func TestDo(t *testing.T) { // auth0 fake server auth0_ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { decoder := json.Ne...
<gh_stars>10-100 /* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * 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 * * Unl...
// Required means the user MUST fill this flag func Required() FlagOpt { return func(f *Flag) { f.Required = true } }
/** * Creates a new ResponseWaiting Thread, BrewingProcessSummary, initiated the subsriber set and * the state maps. */ private void init() { this.responseWaitingTread = new ResposeWaitingThread(); brewingProcessSummary = new BrewingProcessSummary(null); pushedMessages = new ArrayList<>(); init...
/** * Identifier for an archive bases on name and version. * * @see ArchiveIdentifierMessageDigest */ public class ArchiveIdentifierVersion extends ArchiveIdentifier { private final String version; /** * Constructor. * @param archiveType type of the archive * @param name * @param vers...
/* This is kind of bogus -- we slip a mini recursive-descent parser in here to handle the conditional statement syntax. */ static COMMAND * parse_cond_command () { COND_COM *cexp; cexp = cond_expr (); return (make_cond_command (cexp)); }
Back in April our road trip from Sydney to Melbourne took around 30hrs and involved an overnight charge in Canberra and a 4hr charge on 3 phase in Wodonga. Today, we did that entire trip in less than 12hrs thanks to the installation of Tesla’s superchargers, all of which have gone live within the last 2 weeks. First S...
declare namespace atlas { /** * The control for a visual and interactive web map. * https://docs.microsoft.com/en-us/javascript/api/azure-maps-control/atlas.map?view=azure-iot-typescript-latest */ export class Map { constructor(container: string, options: atlas.Models.ServiceOptions & a...
There is no official NHL statistic for getting your bucket knocked off after the whistle, but if there was the runaway league leader would be a certain Brendan Gallagher, late of Montreal, Quebec. Hockey has its share of pests and rodents, but the dimunitive Montreal Canadiens winger inspires a special kind of animus....
/** * verifies that the updated values through violations correction actually reflects in the table. * If 'hashKeysUpdated' is not null, checks for only the specified hash keys in the set. Otherwise, checks for all */ private void verifyUpdatedTableRecords(String tableName, String tableHashK...
<gh_stars>0 package com.zupedu.monica.mercadolivre.usuario; import com.zupedu.monica.mercadolivre.anotacao.CampoUnico; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; public class UsuarioRequest { @NotBlank @Email @CampoUnico(fie...
/** * Runs the AOC challenges. * <p> * If "wait" is supplied as an argument, then the main thread will wait until the next day unlocks. This includes waiting until * the upcoming challenge opens and downloading the input file automatically between 2 and 30 seconds, inclusive. * After downloadin...
Application of multi-criteria decision making to sustainable deep-sea mining vertical transport plans Ever since the concept of deep-sea mining was first described, the prospect of deep-sea mining testing and monitoring has proved to be a subject of great interest. Despite the considerable research and commercial atte...
export * from './cloudfront.service';
/* Return the user's security identifier from the current process. */ PSID w32_get_user_sid (void) { int okay = 0; HANDLE proc = NULL; HANDLE token = NULL; TOKEN_USER *user = NULL; PSID sid = NULL; DWORD tokenlen, sidlen; proc = OpenProcess (PROCESS_QUERY_INFORMATION, FALSE, GetCurrentProcessId()); if ...
#!/usr/bin/env python # -*- coding: utf-8 -*- class SalesKingException(Exception): def __init__(self, code, message, errors = None,**kwargs): self.code = code self.msg = message self.errors = errors super(SalesKingException,self).__init__(**kwargs) class APIExcept...
Programming and its implication on programming languages: Overview and introduction In the short time that has elapsed since the appearance of the special issue of Computing Survey, , it has become one of the classics in computer science. Articles from that issue have become required reading material for introductory...
<filename>learn-go-with-tests/05_structs_methods_interfaces/area/area_test.go package area import "testing" func TestArea(t *testing.T) { areaTests := []struct { name string shape Shape result float64 }{ {name: "Rectangle", shape: Rectangle{Width: 12, Height: 6}, result: 72.0}, {name: "Circle", shape: ...
def post_create_comm_note(note): thread = note.thread obj = thread.obj for developer in obj.authors.all(): thread.join_thread(developer) try: nonuser_mozilla_contacts = [] for email in obj.get_mozilla_contacts(): try: moz_contact = UserProfile.objects....
// GetList handles requests for listing Docs by path prefix. func (h DocHandler) GetList(w http.ResponseWriter, r *http.Request) { query := r.URL.Query().Get("query") tags := strings.Split(r.URL.Query().Get("tags"), ",") if len(tags) == 1 && tags[0] == "" { tags = nil } docs, err := h.docStore.ListDocs(r.Context...
<reponame>SiegeEngine/siege-net use std::fmt; #[derive(Clone,Copy,Debug,PartialEq,Eq,Serialize,Deserialize)] #[repr(C)] pub struct Flags(u8); static FLAGS_FIRST: u8 = 0x01; static FLAGS_LAST: u8 = 0x02; static FLAGS_MULTIPLE: u8 = 0x04; static FLAGS_IN_ORDER: u8 = 0x08; static FLAGS_ACK: u8 = 0x10; impl Flags { ...
/** * The run block of the timer, if first sends a ping if the response is pong it just comes back to sleep. If no * response it checks if the user is in a game. If so it checks if the game is a 3 or less players game. If it is it * shuts the game down. If not it just disconnects the player form the game. If u...
Effects of Hyperbaric Oxygen Therapy on Brain Perfusion, Cognition and Behavior in Fetal Alcohol Spectrum Disorder-A Case Study. A 15-year-old girl diagnosed with FASD underwent 100 courses of hyperbasic oxygen therapy (HBOT). Prior to HBOT, single motion emission compute tomographic begin imaging (SPECT) revealed are...
<filename>Chatbot_investment/chatbot/investment_bot/admin.py from django.contrib import admin from investment_bot.models import user_database,Section_Details,Amount_Restrictions,Section_Deduction admin.site.register(user_database) admin.site.register(Amount_Restrictions) admin.site.register(Section_Details) admin.site...
Bilateral giant fibroadenoma in a nulliparous lady: challenges in management Introduction Fibroadenomas are the most common type of breast lump found in young women. Giant fibroadenoma (GF) refers to fibroadenomas, that are either >5cm in size or >500 gram in weight . There are a few important issues that have to be ...
<filename>src/connectivity/network/tun/network-tun/state.cc // Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "state.h" namespace network { namespace tun { bool MacState::operator==(const MacSta...
'use strict'; import type { Router } from "express"; interface IRoutes { IUsersRouter: Router } export default IRoutes;
<reponame>ZanderZhao/android-cnblogs package com.rae.cnblogs.user.activity; import android.content.DialogInterface; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.Gravity; import android.view.WindowManager; import com.a...
Formation of Nanoporous Anodic Alumina by Anodization of Aluminum Films on Glass Substrates Our research was aimed at the study of aluminum films and porous anodic alumina (PAA) films in thin-film РАА/Al structures for optical sensors, based on metal-clad waveguides (MCWG). The results of the scanning electron microsc...
About Thank you for checking out our project! How does it stick? Will it damage the screen? What devices do they work on? The Classic uses a special micro-suction cup material imported from Japan. The suction cups are so small that you can't see them with your naked eye. If a Classic ever loses its stickiness simp...
import KeycloakConfig from "./KeycloakConfig"; import { ResponseMode } from "./ResponseMode"; import { v4 as uuidv4 } from "uuid"; export default class Signup { readonly realm: string; readonly url: string; readonly clientId: string; readonly redirectUrl: string; readonly scope: string; readonly responseMo...
The facility 15 miles off the coast of Aberdeenshire could generate enough electricity to power 19,000 homes. Scottish Government The world’s largest offshore wind farm is set to be built in Scotland. The facility 15 miles off the coast of Peterhead in Aberdeenshire could generate enough electricity to power 19,000 ...
/** Check the consistency of a matrix. * * @param node The node. * @param number_dimensions The number of dimensions. * @param tier The current tier. * @param chunk_tier The chunk tier. * @param rel_tolerance The relative tolerance when comparing values. * @param norm2_reference The square of the norm of this no...
/** * @author Alex Ivchenko */ public class AgentResults { private final Agent agent; private final List<PartResult> results; public static AgentStageBuilder builder() { return new Builder(); } public Agent agent() { return agent; } public Stream<PartResult> stream() { ...
import {createExpressApplication, createHttpServer, createHttpsServer, listenServer} from "@tsed/common"; export {createExpressApplication, createHttpServer, createHttpsServer, listenServer};
<filename>django_print_sql/print_sql.py import time from django.db.models.sql.compiler import SQLCompiler from functools import wraps from contextlib import contextmanager try: import sqlparse except ImportError: import warnings warnings.warn('`pip install sqlparse` to use the pretty print feature...
<reponame>thomasbreydo/x-class-projects package com.thomasbreydo.orbitals; import org.opensourcephysics.display.Drawable; import org.opensourcephysics.display.DrawingPanel; import java.awt.*; import java.util.ArrayList; import java.util.List; public class CelestialSystem implements Drawable { List<CelestialBody> b...
def solve(self, problem, x=None, eq_constraints=None, ineq_constraints=None, lambdas=None, gammas=None, rho=None): man = problem.manifold verbosity = problem.verbosity objective = problem.cost if x is None: if hasattr(self.inner_solver, '_populationsize'): if ...
<reponame>johnzachary/clogger /* -*- coding: utf-8 -*- * ---------------------------------------------------------------------- * Copyright © 2012-2013, RedJack, LLC. * All rights reserved. * * Please see the COPYING file in this distribution for license details. * ------------------------------------------------...
<filename>Trabalho2_MarcosPietrucci/src/Elementos/Elemento.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Elementos; import javafx.scene.image.Image; /** * Classe abs...
/** * The class <code>PolicyTypeTest</code> contains tests for the class * <code>{@link PolicyType}</code>. * * @generatedBy CodePro at 6/1/16 1:41 PM * @version $Revision: 1.0 $ */ public class PolicyTypeTest { /** * Run the String toString() method test. * * @throws Exception * * @g...
def _validate_model(model, training_set, testing_set, _classification=True, **kwargs): try: model = copy.deepcopy(model) except TypeError: logging.warning('Cannot pickle %s model.' \ 'Cross ...
# Copyright 2020 G-Research # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
Development and Application of a Control Strategy for Sucker Rod Pump Artificial Oil Lift System In the oil industry, one area that has been developed and gained highlight is automation and well control, which has been used in artificial lift methods, especially in Sucker Rod Pump (SRP), considered the most used metho...
def add_string_field(self, name, validation, required=False): self.data_definition[name] = fields.String(validate=validation, required=required)
/* * 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 writing, software * distribut...
Interval estimation of disease loci: development and applications of new linkage methods Three variants of the confidence set inference (CSI) procedure were proposed and applied to both the simulated and the Collaborative Study on the Genetics of Alcoholism (COGA) data. For each of the two applications, we first perfo...
package com.company; import java.util.ArrayList; public class Main { public static void main(String[] args) { //Create list with this elements //"Bananas", "Bread", "Milk" String[] arrayStrings = new String[]{"Bananas", "Bread", "Milk"}; ArrayList<String> shoppingList = new Arra...
class Service: """ Implementation of task computation service with docker api """ client: docker.DockerClient tools: Dict[str, Dict] containers: List[str] def __init__(self, tools_dir: str): self.tools = {} self.containers = [] try: self.client = docker....
<reponame>khoelsch/selenium-webdriver-example package de.edgeway.webdriver.utilities.assertions; import org.junit.jupiter.api.Test; import org.openqa.selenium.WebElement; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.mockito.Mockito.mock; import static org.mockito.Mockito....
// GetURLSubDir returns the download URL with it's respective type prefix // along with subDir path, if present. func (g *goGetter) GetURLSubDir(remoteURL, destPath string) (string, string, error) { repoURL, subDir := SplitAddrSubdir(remoteURL) zap.S().Debugf("downloading %q to %q", repoURL, destPath) URLWithType, e...
<filename>setup.go package s3browser // This file handles Plugin initialization. // The methods are in the same order Caddy calls them: // - init // - CaddyModule // - CaddyModule:New // - parseCaddyfile (see caddyfile.go) // - UnmarshalCaddyfile // - Provision // - Validate // // After all that the plugin is i...
Peace is off the table in Syria. The US is escalating the conflict via its client states There will be no peace in Syria. Saudi Foreign Minister Adel al-Jubeir announced yesterday that for The Kingdom, the removal of Assad is "crucial," adding without any sense of shame that the Syrian leader is the "single most effe...
/** * @author szgooru * Created On: 07-Mar-2017 */ public class RubricCopyProcessor extends AbstractCommandProcessor { protected RubricCopyProcessor(ProcessorContext context) { super(context); } @Override protected void setDeprecatedVersions() { // NOOP } @Override prot...
<filename>src/views/error/404/index.tsx import React from 'react' import { Result, Button } from 'antd' import { connect } from 'react-redux' const NotFound = (props: any) => { const { history, taglist, deleteTag } = props // 关闭时,清除缓存 const goHome = () => {} return ( <Result status='404' title=...
<reponame>edson-a-soares/geometric_acyclic_visitor #ifndef ACYCLIC_VISITOR_GEOMETRY_ANGLE_H #define ACYCLIC_VISITOR_GEOMETRY_ANGLE_H namespace Geometry { class Angle { public: Angle(const float); float getLength() const; private: const float length; }; } #endif
<reponame>daileyet/testbank /** * */ package com.openthinks.ordersys.service; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import com.openthinks.ordersys.dao.DaoHelper; import com.openthinks.ordersys.mode.SysUser; /** * @author DAD2SZH *...
Telehealth Benefits and Barriers Telehealth includes health care services provided using audio and video technology. Telehealth was originally developed to provide basic care to rural and underserved patients. Higher rates of use of telehealth are now standard in many practices since the coronavirus disease 2019 pande...
<filename>controllers/rbac/directoryrolebinding/controller.go package directoryrolebinding import ( "context" "fmt" "time" "github.com/go-logr/logr" rbacv1 "k8s.io/api/rbac/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s....
/** * The default responses to {@link CommandResponses}. */ public class DefaultCommandResponses implements CommandResponses { private final EmbedBuilder bad = new EmbedBuilder().setColor(Color.RED).setTimestamp(Instant.now()); @Override public Message noPerms(Message message, List<Permission> permission...
import { helpers, keys } from '../../../../../__data__'; const properties = ` public readonly properties = { codeVersion: '1.0', author: 'dicarlo2', email: '<EMAIL>', description: 'The TestSmartContract', }; `; describe('ForwardValue', () => { test('cannot be implemented', async () => { helpers.compileS...
from os import path from pytest import raises from shorter.start.config import theme_folders from shorter.start.environment import ROOT_DIR def test_theme_folders_default(): stat, tmpl = theme_folders(theme="default") assert stat == path.join(ROOT_DIR, "themes", "default", "static") assert tmpl == path...
/** * Startup class. * * @author Ryszard Trojnacki */ public class Main implements Runnable { private static final Logger log=LoggerFactory.getLogger(Main.class); private SMTPServer server; @Inject private MessageHandlerFactory mhf; @Inject private ConfigurationService cs; @Inject public void init(...
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
<reponame>tuandt-gem/GemCore<filename>Core/src/main/java/com/gemvietnam/base/viper/interfaces/IInteractor.java<gh_stars>0 package com.gemvietnam.base.viper.interfaces; /** * Base Interactor * Created by neo on 8/29/2016. */ public interface IInteractor<P extends IPresenter> { }
<reponame>z131031231/x-pipe<gh_stars>1000+ package com.ctrip.xpipe.redis.keeper.store; import com.ctrip.xpipe.redis.core.store.CommandsGuarantee; import com.ctrip.xpipe.redis.core.store.CommandsListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Objects; /** * @author lishanglin * d...
/** * Just calls Request ID many times and assert we * got different values, ideally this should be * run under parallel threads. Since the function under * test has no external dependencies it is assumed * that this test is good enough. */ @Test public void testRequestIDisRandom() { HashSe...
<filename>MiniProfiler/Callbacks.cpp<gh_stars>1-10 #include "Callbacks.h" #include <string> #include "ProfileWriter.h" ProfileWriter* _callTrace; // Note: Naked function call needs __stdcall! void __stdcall OnEnter(FunctionIDOrClientID functionIDOrClientID, COR_PRF_ELT_INFO eltInfo) { // Same function may be assigne...
<filename>src/socket/multiplex.ts import { MuSocketServer, MuSocketServerState, MuSocketServerSpec, MuSocket, MuCloseHandler, } from './socket'; export class MuMultiSocketServer implements MuSocketServer { private _state = MuSocketServerState.INIT; public state () : MuSocketServerState { ...
<gh_stars>1-10 //! `dns/packet.rs`: DNS packet utilities use errno::{self, Errno}; use libc; use super::domain; pub unsafe fn copy( buf: *const u8, len: u32, mut pos: u32, mut out: *mut u8, mut outlen: u32, ) -> u32 { let current_block; 'loop0: loop { if outlen == 0 { c...
/** * * @author Rob Veldpaus */ public class ThreadCountCollector implements BiFunction<RestDataCollector, String, Pair> { public static final String THREAD_COUNT_URI = "jvm/thread-system/threadcount"; @Override public Pair apply(RestDataCollector collector, String serverInstance) { return new ...