content
stringlengths
10
4.9M
<reponame>SangameswaranRS/knowledge-extraction<filename>src/main/java/nlp/ParserExtractor.java<gh_stars>10-100 package nlp; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import model.TripletRelation; import opennlp.tools.cmdline.parser.ParserTool; ...
for _ in range(int(input())): a,b,x,y,n=map(int,input().split()) if a<x and b<y: print(a*b) elif a<x: v=b-y if n>=v: print(a*y) else: print(a*(b-v)) elif b<y: v=a-x if n>=v: print(b*x) else: ...
<filename>pkg/profile/profile.go package profile // Profile represents a person's profile. type Profile struct { // The ID of the profile ID string `json:"id", datastore:"-"` // The name of the person, which is suitable for display. DisplayName string `json:"displayName"` // A representation of the individual com...
#include<bits/stdc++.h> #define ll long long using namespace std; const ll MAXN = 1e5+5; int a[MAXN]; int ask(int x,int y){ cout<<"? "<<x<<" "<<y<<endl; int ret = 0; cin>>ret; return ret; } int vis[MAXN]; int main() { int n; cin>>n; if(n==1){ cout<<"! 1"<<endl; ...
#include<iostream> #include<cstdio> #include<cstring> using namespace std; typedef long long ll; #define N 105 #define M 40020 inline int read(){ int x=0,f=1; char c=getchar(); while(c<'0'||c>'9'){ if(c=='-')f=-1; c=getchar(); } while(c>='0'&&c<='9'){ x=(x<<3)+...
Male Gray Short-Tailed Opossums (Monodelphis Domestica) Receive Penile Intromissions When Treated with Estrogen and Progesterone in Adulthood Following treatment with estradiol and progesterone, gonadectomized male as well as female gray opossums received penile intromissions from intact stimulus males. Intromission w...
import React, { useState } from "react"; import { Link, useHistory } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { Alert, AlertVariant, Button, PageSection, ToolbarItem, } from "@patternfly/react-core"; import { ExpandableRowContent, TableComposable, Tbody, Td, Th...
<gh_stars>0 from keras.models import Sequential, Model from keras.layers import Flatten, Dense, Dropout from keras.layers import GRU, LSTM, SimpleRNN, Input from keras.layers import Conv2D, MaxPooling2D, ZeroPadding2D from keras.optimizers import SGD import cv2, numpy as np def get_symbol(input_shape,weights_path=None...
def format_hyperparameters(dict_of_hyperparameter_lists, add_save_paths=True, main_save_path='', append_keys=[]): hyperparameters_as_list = explode_to_list(dict_of_hyperparameter_lists) hyperparameters_df = pd.DataFrame(hyperparame...
package ta import ( "errors" "reflect" "testing" ) func TestMean(t *testing.T) { var testCases = []struct { msg string values []float64 expMean float64 }{ {"test zero data point", []float64{}, 0, }, {"test simple values", []float64{2, 3}, 2.5, }, {"test 10 values", []float64{0...
<reponame>IusztinPaul/portfolio-management<gh_stars>1-10 from .misc import * from .time import * from .logger import *
<filename>src/interfaces/index.ts export { IController } from './base-controller' export { Class } from './class' export { Controller as ControllerInterface } from './controller' export { ExceptionFilter, ExceptionFilterMetadata } from './exception-filter' export { Middleware as MiddlewareInterface } from './middleware...
Women in gambling studies: a poststructural analysis Abstract Background Gambling studies literature is a space where discourses call objects such as ‘gambling harm reduction’ and ‘women harmed by gambling’ into being and give them status as namable and describable. Methodology and methods A poststructural feminist an...
<gh_stars>0 #[diplomat::bridge] mod ffi { struct RefList<'a> { data: &'a i32, next: Option<Box<Self>>, } impl<'b> RefList<'b> { pub fn node(data: &'b i32) -> Self { RefList { data, next: None } } pub fn extend(&mut self, other: Self) { match ...
def select(self): warnings.filterwarnings("ignore", category=DeprecationWarning) best_score = float('inf') best_num_components = self.n_constant for n in range(self.min_n_components, self.max_n_components + 1): try: hmm_model = self.base_model(n) ...
A layered lithium nickel manganese oxide as environmentally friendly cathode material for secondary batteries Cobalt-free cathode material development is considered necessity to assure the sustainability of Li-ion batteries. Cobalt is always considered expensive and unsafe for both human and environment. LiNi0.5Mn0.5O...
<gh_stars>1-10 /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribut...
/** * Util methods for conversion to\from {@link IDataSet}. */ final class DataSetConverters { private DataSetConverters() {} /** Invokes {@link #toDataSet(Workbook)} with new {@link Workbook}. */ static IDataSet toDataSet(final InputStream workbook) { return toDataSet(ConverterUtils.new...
Composite longrod-the solution of future line insulation in China A composite long rod insulator produced in the authors' laboratory is discussed. The insulator is made of porcelain and silicone rubber. Test results on the electrical and mechanical properties are reported. The insulator has many advantages, such as li...
def map_fold_change_from_exp(self, exp_obj): assert isinstance(exp_obj, Experiment) results = FoldChangeResult.objects.filter(experiment=exp_obj) if not results: logger.error('No results loaded for experiment %s, aborting', exp_obj.id) return None fc_data = collec...
export const ConfigGroupsStateName: string = 'app.groups'; class ConfigGroupsController implements ng.IController { public $onInit() { } public details: boolean; constructor( private $window: ng.IWindowService, ) { "ngInject"; } public onRetry() { this.$window.history....
/* * Copyright 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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
import java.io.*; import java.util.*; public class Solution { static Scanner sc=new Scanner(System.in); static PrintWriter out=new PrintWriter(System.out); //Main Method static boolean isPrime(long x) { for(long i=2;i*i<=x;i++) if(x%i==0) return false; return true; } static int N=1000000,sieve[]=new...
/* author : <NAME> Link : https://www.hackerrank.com/challenges/java-bigdecimal/problem */ import java.math.BigDecimal; import java.util.*; class Solution{ public static void main(String []args){ //Input Scanner sc= new Scanner(System.in); int n=sc.nextInt(); String []s=new ...
/** * This class handles the turns and the related timers. * * @author Fabio Codiglioni */ public class TurnManager extends Observable { private List<Player> players; private List<Integer> playersOrder; private int index; private CountdownTimer timer; private int timeout = 30; /** * @...
/** * @file an_static_planner.h * @brief Defines the Planner_c class. * @authur: <NAME> */ #include <vector> #include <ctime> #include <chrono> #include "ros/ros.h" #include "an_messages/lanes.h" #include "an_messages/obstacles.h" #include "geometry_msgs/PoseStamped.h" #include "lib/OpenList.h" #include "lib/Nod...
def look_up_lib(keys): subd = command_lib.command_lib[keys.pop(0)] while keys: subd = subd[keys.pop(0)] return subd
// sort the saved files and return them fn files_sorted(&mut self) -> &[PathBuf] { let _ = self.files(); // prime cache self.files.sort(); self.files() }
/// Use this struct to load a model, make predictions, and log events to the app. impl<Input, Output> Model<Input, Output> where Input: Into<PredictInput>, Output: From<PredictOutput> + Into<PredictOutput>, { /// Load a model from the `.tangram` file at `path`. pub fn from_path( path: impl AsRef<Path>, options:...
<reponame>BrendanJones44/gpa_calc """ Module for errors within modules for this application. Author: <NAME>, GitHub: BrendanJones44 """ from enum import Enum class ErrorTypes(Enum): """ ErrorTypes is an Enum of various classes of errors the model can have """ MISSING_PARAM = "missing parameter" B...
Okay, so the title is a poor play on words (see below). Moving on. Daniel Kuehn comments on Greg Mankiw’s recent blog post, “The Liquidity Trap May Soon Be Over.” I do not have much to say on Mankiw or liquidity traps, but Daniel brings up two interesting — tangential — points that I would like to comment on. Interes...
//GetDarkPubLog get darkword publish log func (s *Service) GetDarkPubLog(date string) (darkout []searchModel.Dark, pub bool, err error) { var ( logs []searchModel.DarkPubLog ) l := searchModel.DarkPubLog{} if err = s.dao.DB.Model(&searchModel.DarkPubLog{}).Where("atime = ?", date).Order("groupid desc"). First(&...
import { Component } from '@angular/core'; import { PageTwo } from './page-two'; import { Nav } from '@ionic/angular'; @Component({ selector: 'page-one', template: ` <ion-header> <ion-toolbar> <ion-title>Page One</ion-title> </ion-toolbar> </ion-header> <ion-content> Page One <div> ...
<filename>Game/Test_Game/Obstacles.h #pragma once #include <vector> #include <string> #include "GameObject.h" #include "Utils.h" using namespace std; class Obstacles : public GameObject { private: int speed = 0, tick = 0, bgColor, fgColor; protected: int autoX = 1, autoY = 0; public: Obstacles() : GameObject(0, 0, ...
n, k = map(int,input().split()) left = 240-k count = 0 if left >= 5 : for i in range(1,n+1): if left-5*i < 0 or count>=n: break else: count+=1 left = left-5*i print(count)
// UpdateRecentTracks updates the recent tracks func (u *User) UpdateRecentTracks() { if *config.MockExternalCalls { return } if !u.Settings.RecentTracks { return } if *config.Debug { log.WithFields(log.Fields{ "type": "recenttracks", "user": u, }).Debug("Started updating recent tracks, but debug mod...
By Nicholas West The Chicago police department continues to march toward what it calls “policing in the 21st century.” If their conduct is any indication, that police work would include systemic corruption, unlawful detention, torture, racial profiling and mass surveillance. However, activists and journalists continu...
mod final_consonant; mod initial_consonant; mod medial_vowel; mod syllable; use super::byte::*; use final_consonant::*; use initial_consonant::*; use medial_vowel::*; pub(crate) use syllable::Syllable;
def split_x(self, x, unit_vals=False, src_vals=False): retVal = FeatureSet() if unit_vals and src_vals: logger.warning("Not sure how you would like to split the features") return None if not isinstance(x, (list, tuple)): x = [x] if unit_vals: ...
/** * Common method to prepare the request params for CDC query operation for both sync and async calls * * @param entities * the list of entities * @param changedSince * the date where the entities should be listed from the last changed date * @return IntuitMes...
Risk Management, Capital Budgeting, and Capital Structure Policy for Insurers and Reinsurers This article builds on Froot and Stein in developing a framework for analyzing the risk allocation, capital budgeting, and capital structure decisions facing insurers and reinsurers. The model incorporates three key features: ...
A mean lord exiles fairytale creatures to the swamp of a grumpy ogre, who must go on a quest and rescue a princess for the lord in order to get his land back. Princess Fiona's parents invite her and Shrek to dinner to celebrate her marriage. If only they knew the newlyweds were both ogres. Woody is stolen by Al who i...
/** * @author Shamsul Bahrin Abd Mutalib * @version 1.01 */ public class SQLRendererAdapter { SQLRenderer r; String sql = ""; public SQLRendererAdapter(SQLRenderer r) { this.r = r; } public ResultSet doSelect(Db db, String table) throws Exception { return doSelect(d...
// Fits boundingBox within the confines of the map. public static void boxResize(Rectangle boundingBox) { boundingBox.setSize(Math.min(boundingBox.width, res[0]), Math.min(res[1], boundingBox.height)); boundingBox.setLocation(Math.max(Math.min(boundingBox.x, res[0] - 1 - boundingBox.width), 0), ...
#include <stdint.h> uint16_t crc16_update(uint16_t crc, uint8_t a){ int i; if(crc || a){ crc ^= a; for (i = 0; i < 8; ++i) { if (crc & 1) crc = (crc >> 1) ^ 0xA001; else crc = (crc >> 1); } } return crc; }
// Returns an iterator within frame_entries pointing to the FrameEntry // matching the specified sequence number. // If the sequence number was not found, will return end(frame_entries) // // _Requires_lock_held_(m_lock) vector<ctsConfig::JitterFrameEntry>::iterator ctsIoPatternMediaStreamClient::FindSequenceNumber(l...
/** * Respond to an authentication request from the back-end for SSPI authentication (AUTH_REQ_SSPI). * * @throws SQLException on SSPI authentication handshake failure * @throws IOException on network I/O issues */ @Override public void startSSPI() throws SQLException, IOException { /* * We us...
// Scans given directory first for the AGS game config. If such config exists // and it contains directions to the game data, then use these settings to find it. // Otherwise, scan original directory for the game data. // Returns found path to game data, or empty string if failed. String find_game_data_in_config_and_di...
<gh_stars>0 /* * Copyright 2017 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 * * Unless req...
NATURAL‐KILLER CELL ACTIVITY AND CYTOGENETIC RESPONSE IN CHRONIC MYELOGENOUS LEUKAEMIA TREATED WITH α‐INTERFERON The capacity of alpha interferon (aIFN) to directly induce lymphokine activated killer (LAK) cytotoxicity without requiring the participation of interleukin 2 (IL2) (Ellis et al, 1989) has prompted us to te...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "../../lib/complex.h" typedef struct { const Complex base; const uint64_t expoent; const Complex expected; } Test_Values; int main(void) { const Test_Values values[] = { {complex_init(0.0, 0.0), 0, complex_init(1.0, 0.0)}, ...
def hybrid_forward(self, F, x, anchors): a = F.slice_like(anchors, x, axes=(2, 3)) return a.reshape((1, -1, 4))
<filename>src/mock/response.go package mock import ( "encoding/json" "net/http/httptest" ) func GetResponse() *httptest.ResponseRecorder { return httptest.NewRecorder() } func GetResponseBody(body []byte, data interface{}) { if err := json.Unmarshal(body, &data); err != nil { panic(err) } }
// Code generated by hack/codegen-events.py. DO NOT EDIT. package events import "github.com/golang/protobuf/proto" type EventType = string type Event interface { proto.Message Type() EventType } const ( EventWorkflowCreated EventType = "WorkflowCreated" EventWorkflowDeleted EventType = "WorkflowDele...
// repackIfNeeded uses a set of heuristics to determine whether the repository needs a // full repack and, if so, repacks it. func (s *server) repackIfNeeded(ctx context.Context, repository *gitalypb.Repository) error { repoPath, err := s.locator.GetRepoPath(repository) if err != nil { return err } hasBitmap, err...
/** * A Custom view pager class for suppressing gesture exceptions. */ public class CustomViewPager extends ViewPager { /** * Instantiates a new Custom view pager. * * @param context the context */ public CustomViewPager(Context context) { super(context); } /** * Instantiates a new Custom view pager....
DRAIN: Deadlock Removal for Arbitrary Irregular Networks Correctness is a first-order concern in the design of computer systems. For multiprocessors, a primary correctness concern is the deadlock-free operation of the network and its coherence protocol; furthermore, we must guarantee the continued correctness of the n...
This video is brought to you by CoinIdol.com in partnership with Koles Coin News Channel Crypto voting system to be patented by Fidelity Investments New voting platform to be introduced by Fidelity. The world's fourth largest mutual fund Fidelity Investments, is looking to patent a method that enables blockchain to b...
/******************************************************************** * FUNCTION mgr_xml_skip_subtree * * Already encountered an error, so advance nodes until the * matching start-node is reached or a terminating error occurs * - end of input * - start depth level reached * * INPUTS: * reader == XmlReader alread...
<reponame>paser4se/marble<filename>docker/update_docker_hub.py """Utility script to update docker hub descriptions using the Rest API. Usage: update_docker_hub.py update --username=<username> --password=<password> [--image=<image>] update_docker_hub.py (-h | --help) update_docker_hub.py --version Options: -h ...
<reponame>matthew9811/rs<filename>src/main/java/com/shengxi/system/entity/test/TestStu.java package com.shengxi.system.entity.test; import com.shengxi.system.entity.config.BaseEntity; /** * @author: Matthew * @Date: 2019/5/9 16:09 * @Description: */ public class TestStu extends BaseEntity { private String su...
<gh_stars>10-100 #pragma once #include <vector> namespace SOUI { //---------------------------------------------------------------------------------- // // 通用扩展通知, 起始偏移300 // //---------------------------------------------------------------------------------- #define EVT_STDEXT_BEGIN (E...
/** * Reads map entries from a socket, this could be a client or server socket */ class TcpSocketChannelEntryReader { public static final int HEADROOM = 1024; ByteBuffer in; ByteBufferBytes out; public long lastHeartBeatReceived = System.currentTimeMillis(); private lo...
class CimDumpDataLoader: """Utility to load data from dump folder""" def load(self, dumps_folder: str) -> CimDataCollection: """Load data from dump folder NOTE: dumps folder should contains following files. ports.csv, vessels.csv, routes.csv, order_proportion.csv, globa...
/* returns a parent if it matches the given directive */ static const ap_directive_t * find_parent(const ap_directive_t *dirp, const char *what) { while (dirp->parent != NULL) { dirp = dirp->parent; if (strcasecmp(dirp->directive, what) == 0) ret...
/** * Learn an Annotator from AnnotationExample's. * * @author William Cohen */ public abstract class AnnotatorLearner { abstract public void reset(); /** Accept a pool of documents. */ abstract public void setDocumentPool(Iterator<Span> documents); /** Returns true if the learner has more queries to answer...
def create_group(self, properties: Dict[str, Optional[Any]]) -> Dict: group = self.ms_client.http_request(method='POST', url_suffix='groups', json_data=properties) return group
/** * * * <p> * Added: / TL<br> * Modifications: * </p> * * @author Tim Lammarsch * */ public class TemporalComparisonPredicate extends BinaryExpression implements Predicate { public static final int BEFORE = 0x0101; public static final int AFTE...
Agile C2 organizational decision allocation and pattern evolution methods A study of the evolutionary approach to decision allocation in C2 organizations, and an analysis of the decision structure and the division of decision authority in C2 organizations. Construct three decision models and give some of the attribute...
def add_question(question, answers, paragraph_dict, article_title): existing_questions = [q['question'] for q in paragraph_dict['qas']] if question in existing_questions: msg = "Question '{}' not unique in paragraph." raise ValueError(msg.format(question)) for answer_dict in answers: ...
/** * This node represent those strange places where we have what it a valid semantic element * but syntactically it is not there: [1, (), 3]. The parens here are syntax and evaluating * it will return nil but a nil is not actually there. */ public class ImplicitNilNode extends Node { public ImplicitNilNode(S...
/** * @testcase tc_libc_stdio_remove_p * @brief Deletes the file whose name is specified in filename. * @scenario Open file and remove * @apicovered remove * @precondition NA * @postcondition NA */ static void tc_libc_stdio_remove_p(void) { char *filename = VFS_FILE_PATH;...
A Republican-aligned super PAC is trying to knock down Democrats’ official effort Monday to rebrand themselves as “a better deal” -- launching an ad campaign that targets House Minority Leader Nancy Pelosi and argues her party remains mired in “the same, old liberal ideas.” The Congressional Leadership Fund is behind ...
/** * Created by Noor on 1/9/17. */ public class ServiceError { private int code; private String message; private ServiceError(int code, String message) { this.code = code; this.message = message; } public static ServiceError unknownError() { return new ServiceError(1000...
/** * Function: load_SED_from_fitsext * The function creates a energy distribution from the data stored * in a fits file extension. The data must be stored in the columns * "wavelength" and "flux". * * Parameters: * @param spectral_models_file - pathname to the spectral models file * @param s_models ...
The program that Ottawa is looking to reboot allowed police, spy agencies, and possibly others to obtain Canadians’ data and personal information without a warrant from telecommunications companies and others. While the government argued in court that this practise, which often came with no paper trail at all, was simp...
import React from 'react'; import { ArrowFunctionExpression } from '~/components'; import { render } from '~/index'; import JSXExpressionContainer from './index'; describe('<JSXExpressionContainer />', () => { it('renders empty', () => { const code = render(<JSXExpressionContainer debug />, { prettier: fal...
package org.nutz.json.generic; public class Employee2{ protected String mobile; }
Epidemiology of Spondyloarthritis in Colombia There are no formal statistics about the incidence, prevalence or demographics of patients with spondyloarthropathies (SpAs) in Colombia. However, information from a few studies provides a preliminary snapshot of SpAs in the country. In this article, the authors review wha...
// Sample to get an alert policy public class GetAlertPolicy { public static void main(String[] args) throws ApiException, IOException { String alertPolicyName = "alert-policy-id"; // i.e projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] getAlertPolicy(alertPolicyName); } public static...
/// This method balances the targets ditribution of a data set with only one target variable by unusing /// instances whose target variable belongs to the most populated target class. /// It returns a vector with the indices of the instances set unused. /// @param percentage Percentage of instances to be unused. Vector...
<reponame>nmoehrle/scanalyze #ifdef __cplusplus extern "C" { #endif /* module: cyfile.h echo image header file */ /* @(#)cyfile.h 1.30 */ /* globals */ /* Internal types, These modules all assume the following types: * * char 1 byte signed integer, -128...127 * unsigned char 1 byte unsigned integer, 0...255 *...
def remove_ind(self, ind, inplace=False): tree = self if inplace else self.copy() tree.total_flops() tree.total_write() tree.max_size() d = tree.size_dict[ind] s_ind = self.bitset_edges.frommembers((ind,)) for node, node_info in tree.info.items(): invo...
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { RootState } from "../../state/store"; export enum ChallengeStatus { Pending, Failure, Success, Pending_LastRunFailure, } export type ChallengeInfo = { status: ChallengeStatus; id: string; }; export const challengeSlice = createSlice(...
/** * Class to use to make instrumented / unit tests with on the PixelByPixelPicturesComparator class * * @author Pierre-Yves Lapersonne * @version 1.1.0 * @since 13/062016 * @see AbstractTest */ public class ItPixelByPixelPicturesComparator extends AbstractTest { /** * Tests the constructor *...
<reponame>ypar/django-cognoma<filename>api/management/commands/generateinternaltoken.py import os from datetime import datetime from django.core.management.base import BaseCommand import jwt class Command(BaseCommand): help = 'Generates a JWT for use internally inside Cognoma.' def add_arguments(self, parser...
def combineBenignIRPLogs(path): all_file_names = [i for i in glob.glob(str(path) + '/' + '*_processed.*')] all_file_names = sorted(all_file_names) try: return pd.concat([pd.read_csv(f) for f in all_file_names]) except: print("Something went wrong in combining benign logs")
# Copyright (c) 2019 Tradeshift # Copyright (c) 2020 <NAME> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modi...
#if !defined(TMSOCKET_SERVER_STREAM_HPP__) && !defined(TMSOCKET_CLIENT_STREAM_HPP__) # error Please include <client_stream.hpp> or <server_stream.hpp> instead. #endif #ifndef TMSOCKET_DETAILS_SOCKET_STREAM_IPP__ #define TMSOCKET_DETAILS_SOCKET_STREAM_IPP__ class socket_stream { public: socket_stream(int buf_si...
def _generate_tarfile() -> io.BytesIO: fh = io.BytesIO(bytearray(128 * 1024)) tf = tarfile.open(fileobj=fh, mode='w|') for i in range(10): artificial_file = io.BytesIO(BIN_DATA60 + BIN_DATA60 * i) tar_info = tarfile.TarInfo(name=f'file_{i}') tar_info.size = len(artificial_file.getb...
namespace Envoy { using testing::Test; } // namespace Envoy
def count_trees(data, x_inc, y_inc): max_length, max_height, x, y, trees = len(data[0]), len(data), 0, 0, 0 limit_reached = False while not limit_reached: x += x_inc y += y_inc if x >= max_length: x -= max_length if data[y][x] == "#": trees += 1 ...
from great_expectations.core.usage_statistics.anonymizers.execution_engine_anonymizer import ( ExecutionEngineAnonymizer, ) from great_expectations.datasource import PandasDatasource class CustomDatasource(PandasDatasource): pass def test_datasource_anonymizer(): datasource_anonymizer = ExecutionEngineA...
<gh_stars>0 use std::collections::VecDeque; use sdl2; use sdl2::event::Event; use sdl2::keyboard::Keycode; use sdl2::pixels::Color; use sdl2::rect::Rect; use sdl2::video::FullscreenType; use preferences::Preferences; use game::{Direction, GameState, Tile}; pub struct Engine { game_state: GameState, tile_size:...
/** * @return A help string for this switch */ public String help() { var specifics = new StringList(); specifics.add(quantifier.name().toLowerCase()); if (defaultValue != null) { specifics.add("default: " + defaultValue); } return this + "=" + t...
/** * <p>Title: ServiceFactory</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * @author xuesong.net * @version 1.0 */ public class ServiceFactory { private static UserManager userManager; private static SessionManager sessionManager; private static final Logger logger = LoggerFactor...
def play(self): self.is_set() res = requests.get(Song.PLAY.format(self.room.ip_address, self.id)) return res.json()
module Day09 (run09) where import Data.Maybe import Control.Applicative import Control.Monad import Helper -- Good old brute force solutions... yikes bikes solve1 :: [Integer] -> Maybe Integer solve1 [] = Nothing solve1 allX@(_:xs) = filterMaybe (not . flip elem combos) target <|> solve1 xs where pre...
<reponame>NicolasMahe/statechannels import {Logger} from 'pino'; import {ChannelResult} from '@statechannels/client-api-schema'; import {Store} from '../engine/store'; import {Outgoing} from '../protocols/actions'; export interface ObjectiveManagerParams { store: Store; logger: Logger; timingMetrics: boolean; }...
/** * Contains{@link BindingAdapter}s for the {@link Coupon} list. */ public class OnSaleCouponsListBindings { private static final String TAG = OnSaleCouponsListBindings.class.getSimpleName(); @BindingAdapter("bind:item") public static void bindItems(RecyclerView recyclerView, List<Coupon> items) { ...