text
stringlengths
1
1.05M
package com.solofeed.tchernocraft.tileentity; import com.solofeed.tchernocraft.Tchernocraft; import com.solofeed.tchernocraft.util.ReflectionUtils; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.fml.common.registry.GameRegistry; import org.apache.commons.lang3.StringUtils; import java.util.Set;...
/****************************************************************************** Course videos: https://www.red-gate.com/hub/university/courses/t-sql/tsql-for-beginners Course scripts: https://litknd.github.io/TSQLBeginners Introducing SELECTs and Aliasing SAMPLE SOLUTIONS ***********************************...
import numpy as np import ctypes def generate_heatmap(data_points, image_size): # Convert data points to C-compatible format data_array = np.array(data_points, dtype=np.float32) data_ptr = data_array.ctypes.data_as(ctypes.POINTER(ctypes.c_float)) num_points = len(data_points) # Call the C++ functi...
package com.jira.client.web.config; import com.jira.client.web.model.properties.AgileProperties; import com.jira.client.web.model.properties.AutoTestProperties; import com.jira.client.web.model.properties.IamProperties; import com.jira.client.web.model.properties.OAuthProperties; import lombok.Getter; import lombok.Se...
<reponame>yinfuquan/spring-boot-examples package com.yin.springboot.mybatis.server; import java.util.List; import com.yin.springboot.mybatis.domain.OmsOrderItem; public interface OmsOrderItemService{ int deleteByPrimaryKey(Long id); int insert(OmsOrderItem record); int insertOrUpdate(OmsOrderItem recor...
import subprocess import sys def build_and_upload_package(): try: # Step 1: Create source distribution and wheel distribution subprocess.run([sys.executable, "setup.py", "sdist", "bdist_wheel"], check=True) # Step 2: Upload distribution files to PyPI using twine subprocess.run([sys...
<reponame>liimur/IRCClientiOS /* * Copyright (C) 2004-2009 <NAME> <EMAIL> * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at your * option...
<filename>src/main/java/com/went/core/erabatis/phantom/FieldSource.java package com.went.core.erabatis.phantom; /** * <p>Title: FieldSource</p> * <p>Description: ่กจๅญ—ๆฎตไฟกๆฏ</p> * <p>Copyright: Shanghai era Information of management platform 2017</p> * * @author <NAME> * @version 1.0 * <pre>History: 2017/10/...
module.exports = (Bluebird, logger) => { function warningThen(onFulfilled, onRejected) { if(!logger.active){ return super.then(onFulfilled, onRejected); } if(typeof onFulfilled !== "function" && onFulfilled !== null) { // explicit `then(null, handler)` case try { thro...
#!bin/bash exec 0<>/dev/console 1<>/dev/console 2<>/dev/console cat <<'msgend' <byYonasProduction> <Winter is coming> โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ...
<filename>SysView_Driver/SysList.hpp #pragma once void* __cdecl operator new(size_t size, POOL_TYPE pool, ULONG tag); void __cdecl operator delete(void* p, unsigned __int64); typedef class CSysList { enum TAG { PROCESS = 0x555, MODULE, DRIVER, BLACKLIST, THREAD }; protected: static PLI...
def find_substring(string, substring): """ This function will take a given string and substring and return True if the substring occurs in the string. """ if substring in string: return True else: return False
#!/bin/bash ##################################### # Author: Sebastiaan Tammer # Version: v1.0.0 # Date: 2018-09-09 # Description: Show of the capabilities of an interactive script. # Usage: ./interactive.sh ##################################### # Prompt the user for information. read -p "Name a fictional character: "...
<filename>tests/test_version.py from .context import sol #============================ defines =============================== #============================ fixtures ============================== #============================ helpers =============================== #============================ tests =====...
/******************************************************************************* * Copyright 2020 Regents of the University of California. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found in the LICENSE.txt file at the root of the project. ***********************...
class RecruitmentManager: def __init__(self): self.countries_of_recruitment = [] self.contacts = {} def add_contact(self, country, name, email): if country not in self.countries_of_recruitment: self.countries_of_recruitment.append(country) self.contacts[country] ...
/******************************************************************************* * Copyright 2016 * Ubiquitous Knowledge Processing (UKP) Lab * Technische Universitรคt Darmstadt * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
import { Access, Accesses, Engine, Field, FieldSubType, FieldType, GeneratorResult, Input, Model, StringVariations, Template, } from '@hapify/generator/dist/interfaces'; // Export types export { Access, Engine, FieldSubType, FieldType, Input }; export interface IStringVariants extends StringVariations {} e...
// // RAPThreadDataSource.h // redditAPI // // Created by Woudini on 2/27/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> typedef void (^TableViewCellTopicBlock)(id cell, id item); typedef void (^TableViewCellCommentBlock)(id cell, id item, id indexPath); @interface RAPThreadDat...
from kafka import KafkaProducer import time def process_temperature_message(message: bytes, output_topic: str) -> None: producer = KafkaProducer(bootstrap_servers=['127.0.0.1:9092']) s = message.decode('utf-8') temp = s.split(' ') temperature = int(temp[1]) print("Fire alarm algorithm receiving", s...
import java.util.Random; public class RandomNumberBetween { public static void main(String[] args) { Random random = new Random(); int randomNumber = 1 + random.nextInt(50); System.out.println("Generated random number between 1 and 50 is: " + randomNumber); } }
<filename>src/templates/help.js export default ` /* ShaderScribble =========== by Surma (twitter.com/DasSurma) Options: -------- - name=<name>: Load scratchpad with the given name - norun: Donโ€™t start the rendering loop - help: Discard any stored data and show this - boilerplate: Discard any stored dat...
<reponame>szab100/secmgr // Copyright 2010 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 appli...
#!/usr/bin/env bash set -eu -o pipefail # try to test all possible different cases: # - cloned repo vs. archive # - tags vs. no tags in history # - tagged commit vs. sometime after # - on branch tip vs. detached head export ALWAYS_LONG_VERSION="y" export REVISION_SEPARATOR=" r" export HASH_SEPARATOR=" " export DIRTY_...
import { configure } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' configure({adapter: new Adapter()}) let context = require.context('./tests', true, /\.js$/) context.keys().forEach(context)
import * as State from '../system/state'; import * as Util from '../system/util'; import * as Graphics from '../graphics'; function convertDataFromTiledEditor (data) { // do stuff } export default class TileMap { loaded = false; layers = [ ]; playLayer = 0; get isTiledEditorMap ( ) { return false; } const...
<filename>lang/py/pylib/code/math/math_gamma.py #!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 <NAME>. All rights reserved. # """Factorial """ #end_pymotw_header import math for i in [ 0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6 ]: try: print '{:2.1f} {:6.2f}'.format(i, math.gamma(i)) except Val...
python train.py --model-name="AttentionLSTM" --config=./configs/attention_lstm.txt --epoch-num=10 \ --valid-interval=1 --log-interval=10
#!/usr/bin/env bats -*- bats -*- # shellcheck disable=SC2096 # # Tests for podman build # load helpers @test "podman build - basic test" { rand_filename=$(random_string 20) rand_content=$(random_string 50) tmpdir=$PODMAN_TMPDIR/build-test mkdir -p $tmpdir dockerfile=$tmpdir/Dockerfile cat >...
function capitalizeFirstLetters(str) { let strArr = str.split(" "); let newStr = ""; for (let i = 0; i < strArr.length; i++) { newStr += strArr[i].charAt(0).toUpperCase() + strArr[i].slice(1); if (i < (strArr.length - 1)) { newStr += " "; } } return newStr; } /...
#!/bin/bash S="${BASH_SOURCE[0]}" D=`dirname "$S"` SECURE_CORE_ROOT="`cd "$D"/.. && pwd`" for dir in poky meta-openembedded meta-secure-core; do (cd "$SECURE_CORE_ROOT/$dir"; git pull) done
<gh_stars>0 import React from "react"; import { RingView } from "./RingView"; import { RingSize } from "./model/RingSize"; import { RingColor } from "./model/RingColor"; export const TestRingPage = () => { return ( <div style={{ width: "300px", height: "300px" }}> <RingView size={RingSize.SMALL} color={Rin...
#!/bin/sh gpu=7 cr=24 kr=6 dp=28 wd=6 mkdir -p "logs/model/coarse/all/crop${cr}/kernel${kr}/depth${dp}/width${wd}/" python -u src/train.py --gpu $gpu \ --coarse_classes \ --crop_size $cr --kernel_size $kr \ --depth $dp --width_factor $wd | tee "logs/model/coarse/all/crop${cr}/kernel${kr}/depth${dp}/width${wd}...
<filename>chest/windows/core/src/main/java/net/community/chest/win32/core/serial/ObjectNullMultiple256Record.java /* * */ package net.community.chest.win32.core.serial; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.StreamCorruptedException; import net.community....
<reponame>joshuarubin/zb<gh_stars>100-1000 package object import ( "bufio" "bytes" "fmt" "io" stdioutil "io/ioutil" "srcd.works/go-git.v4/plumbing" "srcd.works/go-git.v4/plumbing/storer" "srcd.works/go-git.v4/utils/ioutil" ) // Tag represents an annotated tag object. It points to a single git object of // an...
import React from 'react'; import ReactDOM from 'react-dom'; import { Table } from 'react-bootstrap'; const users = [ { name: 'John Doe', job: 'Web Developer', age: 31, city: 'Boston', }, { name: 'Jane Smith', job: 'Data Scientist', age: 27, city: 'New York', }, { name: 'Dave Williams', job: 'Engineer',...
<reponame>tdrv90/freeCodeCamp /* https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-numbers-in-a-range We'll pass you an array of two numbers. Return the sum of those two numbers plus the sum of all the numbers between them. The lowest number will n...
export class Address { public_place: string; house_number: string; complement: string; neighborhood: string; cep: string; city: string; state: string; } export class Course { id: number; name: string; dateRegister: Date; workload: string; } export class Student { id: number; name: string; ...
<filename>public/javascripts/controllers/RecordCtrl.js onceUpon.controller('RecordCtrl', function RecordCtrl($scope, SentencesFactory, SocketFactory, PlaybackFactory, $http, $timeout, Modernizr) { // only SocketFactory needs to be exposed to controller scope for template $scope.SocketFactory = SocketFacto...
<reponame>Banuba/beauty-android-java<filename>app/src/main/assets/bnb-resources/effects/Makeup/modules/hair/avg-color/accumulate/copy.frag.js<gh_stars>0 'use strict'; const fragmentShader = "modules/hair/avg-color/accumulate/copy.frag"; exports.default = fragmentShader;
# # Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foun...
import React, { Fragment } from 'react'; import Typography from '@material-ui/core/Typography'; import { List, ListItem, ListItemText, Divider } from '@material-ui/core'; const CommentList = (props) => { const { comments } = props; return ( <List > {comments.map((data, i) => ( <Fra...
#! /usr/bin/env bash bug=1936707 if [[ $1 == "--hwut-info" ]]; then echo "sphericalcow: $bug 0.24.10 --plot flag doesnt seem to work" exit fi tmp=`pwd` # (*) Create a screwed-up version of 'dot' the graphviz package. echo "#! /usr/bin/env bash" > $bug/dot # NOTE: The 'VIZ' is written...
#include <iostream> #include <stdlib.h> using namespace std; void your_code() { // Make your boolean statement! // Make below three statement to be true bool t1 = true; bool t2 = false; bool t3 = true; // Make below three statement to be false bool f1 = false; bool f2 = false; bool f3 = true; /...
package transport // package github.com/justanotherorganization/justanotherbotkit/transport import "github.com/justanotherorganization/justanotherbotkit/transport/internal/proto" type ( // Event wraps a pb.BaseEvent up with it's accompanied transport. Event struct { *pb.BaseEvent Transport } )
alter table comment add content varchar(1024) null;
socket.on('rooms', function(msg) { console.log(msg); }); socket.on('player-disconnected', function(msg) { ships[msg].disconnected = true; console.log("player " + msg + " disconnected"); }); socket.on('binary-data', function(msg) { decodeBinary(msg); }); socket.on('init-data', function(msg) { data = msg; ...
# _*_ coding: utf-8 _*_ """ Created by lr on 2019/08/30. """ from functools import wraps from flask import request from werkzeug.contrib.cache import SimpleCache __author__ = 'lr' ''' class Limiter(object): cache = SimpleCache() def limited(self, callback): self.limited_callback = callback ...
#!/bin/bash # # Copyright (c) 2019-2020 P3TERX <https://p3terx.com> # # This is free software, licensed under the MIT License. # See /LICENSE for more information. # # https://github.com/P3TERX/Actions-OpenWrt # File name: diy-part1.sh # Description: OpenWrt DIY script part 1 (Before Update feeds) # # Uncomment a feed...
package com.went.core.erabatis.component.condition; import com.went.core.erabatis.phantom.ChainCondition; import com.went.core.erabatis.phantom.Condition; import java.util.Arrays; import java.util.Collections; import java.util.LinkedList; import java.util.List; /** * <p>Title: </p> * <p>Description: </p> * <p>Cop...
#!/bin/bash # Joshua Meyer (2017) # USAGE: # # ./run.sh <corpus_name> # # INPUT: # # input_dir/ # lexicon.txt # lexicon_nosil.txt # phones.txt # task.arpabo # transcripts # # audio_dir/ # utterance1.wav # utterance2.wav # utterance3.wav # ...
<reponame>dailave/oqs /* * $Id$ * * Copyright 2006-2008 <NAME>. All rights reserved. * * 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...
#!/bin/bash # Number of tests total=8 ############################################################################################################################### clear f_banner echo -e "${BLUE}Uses recon-ng, Traceroute, wafw00f and Whatweb.${NC}" echo echo -e "${BLUE}[*] Acquire API keys for maximum results wit...
#!/bin/bash benchmark=$1 preprocess=$2 split=$3 if [ -z "${benchmark}" ]; then echo "benchmark is unset or set to the empty string" exit 1; fi if [ -z "${preprocess}" ]; then echo "No preprocessing" preprocess="np" fi if [ "${preprocess}" = "p" ]; then datasets=$(cat ./settings.py | grep "DATASETS_...
<gh_stars>1-10 class Logger::SimpleJsonFormatter < Logger::Formatter Format = "[%s] [%s]: %s\n" SEVERITY_MAP = { "DEBUG" => "debug", "ERROR" => "err", "WARN" => "warning", "INFO" => "info", "FATAL" => "crit" } attr_accessor :datetime_format def initialize @datetime_format = nil en...
#!/usr/bin/env bash set -e -u -o pipefail declare -r SCRIPT_NAME=$(basename "$0") declare -r SCRIPT_DIR=$(cd $(dirname "$0") && pwd) log() { local level=$1; shift echo -e "$level: $@" } err() { log "ERROR" "$@" >&2 } info() { log "INFO" "$@" } die() { local code=$1; shift local msg="$@"; s...
<filename>trclib/TrcColor.java /* * Copyright (c) 2020 Titan Robotics Club (http://www.titanrobotics.com) * * 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...
#!/bin/bash #PBS -V #PBS -N no_w_CNRM_F2_85 #PBS -l nodes=1:ppn=1,walltime=2:00:00 #PBS -l mem=40gb #PBS -q fast #PBS -k o ##PBS -j oe #PBS -e /home/hnoorazar/analog_codes/04_analysis/parallel/quick/error/E_no_w_CNRM_F2_85 #PBS -o /home/hnoorazar/analog_codes/04_analysis/parallel/quick/error/O_no_w_CNRM_F2_85 #PBS -m...
<reponame>AlexChachanashviliOss/Decimated package io.github.achacha.decimated.timeprovider; public class TimeProviderSystem implements TimeProvider { @Override public long getMillis() { return System.currentTimeMillis(); } }
TERMUX_PKG_HOMEPAGE=http://kubernetes.io TERMUX_PKG_DESCRIPTION="Kubernetes.io client binary" TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>" TERMUX_PKG_VERSION=1.16.2 TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=https://dl.k8s.io/v$TERMUX_PKG_VERSION/kubernetes-src.tar.gz...
#!/bin/bash source /cvmfs/cms.cern.ch/cmsset_default.sh export SCRAM_ARCH=slc6_amd64_gcc700 export SSL_CERT_DIR=/etc/grid-security/certificates export X509_USER_PROXY=/home/tuos/x509up_u126986 cd /scratch/tuos/trigger/CMSSW_10_3_0_pre5/src/rerecoMonitor/AODProgress eval `scramv1 runtime -sh` dateAndTime=$(date +"%Y%...
from ..Core.commands import Commands from ..Core.registers import Registers from ..Runtime.base import Base from ..Runtime.atoi import Atoi from .write import Write class Read(Base): is_loaded = False def __init__(self, compiler): Base.__init__(self, compiler) if Read.is_loaded: ...
import { BadRequestException, Body, Controller, Get, Logger, NotFoundException, Post, Redirect, Render, Res, UseFilters, UseGuards, UseInterceptors, } from '@nestjs/common' import { Response } from 'express' import { CurrentUser } from '../common/decorators/current-user.decorator' import { Jwt...
import test from './SumOfTwoIntegers.js'; function TreeNode(val) { this.val = val; this.left = this.right = null; } function ListNode(val) { this.val = val; this.next = null; } function dec2bin(dec) { return (dec >>> 0).toString(2); } console.dir(test(-2,5));
'use strict' angular.module('xentinels').directive('sidenav', ["AuthService", function(AuthService) { return { restrict: 'A', templateUrl: 'app/partials/sidenav.html', link: function($scope, $element, $attrs) { $(".button-collapse").sideNav(); } }; }]);
#!/usr/bin/env bash #this pastes together the input features from the real data #with the RF class probabilities for both fl & nonfl ("5 class") #only use the probabilities from here on #e.g. SRR1163655.sorted.bam.bed.rl.nX3.minX2.mq.rm.sr.snps.ot.gc.umap.ed.td.logsX3.sm.sdX2.lmX4.lsX10 #or features.full as a symlink ...
const httpStatus = require('http-status'); const APIError = require('../helpers/APIError'); const config = require('../../config/config'); const user = { username: 'popgram', password: '<PASSWORD>' }; function login(req, res, next) { if (req.body.username === user.username && req.body.password === user.password...
<reponame>valkirilov/fmi-rsa<filename>src/Point.java /** * * A simple class which represents a Point in the 2D plane * * @author valentin * */ public class Point { private long x; private long y; Point(long x, long y) { this.x = x; this.y = y; } long getX() { return x; } void setX(long x) ...
<gh_stars>1-10 # frozen_string_literal: true # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
#!/bin/bash set -e TIMEOUT=300s for i in $@; do CGO_ENABLED=0 golangci-lint run -e format_gen --disable-all \ -Egofmt \ -Egovet \ -Egolint \ -Egoimports \ -Eineffassign \ -Eerrcheck \ -Edeadcode \ -Emisspell \ -Egocyclo \ -Estaticcheck \ -Egosimple \ -Estructcheck \ -Etypecheck \ -Eunuse...
#!/usr/bin/env bash yarn build:minimal && ./go.sh "static/testData/badQuality/underexposed_1.jpg" "static/testData/badQuality/underexposed_2.jpg" "static/testData/badQuality/underexposed_3.jpg"
<reponame>thekevinscott/ml-classifier<gh_stars>100-1000 import * as tf from '@tensorflow/tfjs'; export interface IClasses { [index: string]: number; } // export enum DataType { // TRAIN = "train", // EVAL = "eval", // }; export interface IData { classes: IClasses; [index: string]: IImageData; } export inte...
function resolveModulePath(importStatement, currentFilePath) { const moduleTypes = ['immutable', 'mutable', 'causal', 'hashing', 'literals']; const modulePath = importStatement.replace('import * from', '').trim(); const resolvedPath = currentFilePath.split('/').slice(0, -1).join('/') + modulePath + '.js'; for ...
import os from bs4 import BeautifulSoup import requests from urllib.parse import urlparse DIST_CEXT = os.path.join( os.path.dirname(os.path.realpath(os.path.dirname(__file__))), "kolibri", "dist", "cext", ) PYPI_DOWNLOAD = "https://pypi.python.org/simple/" PIWHEEL_DOWNLOAD = "https://www.piwheels.org/s...
package academy.devonline.java.home_section001_classes.methods_dyna_array.dyna_array_contains; public class DynaArrayTest { public static void main(String[] args) { DynaArray dynaArray = new DynaArray(); dynaArray.add(0); dynaArray.add(1); dynaArray.add(2); dynaArray.add(3);...
This deep learning model can be implemented using a three-part architecture to recognize the sentiment of a sentence: 1. A preprocessing layer which will process the input sentence and extract features that can be used as inputs to the model. This can include tokenization to create word embeddings, lemmatization to no...
<gh_stars>0 /** * CertManager is based on [jetstack's cert-manager](https://github.com/jetstack/cert-manager) helm chart. * * @module "@kloudlib/cert-manager" * @packageDocumentation * * @example * ```typescript * import { CertManager } from '@kloudlib/cert-manager'; * * new CertManger('cert-manager', { * ...
def combine_strings(str1, str2): return str1 + str2
<gh_stars>0 package vectorwing.farmersdelight.common.block; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.item.context.Bl...
<gh_stars>0 // This is some class. class SomeClass { constructor(someOptions) { this.prop1 = someOptions.prop1; this.prop2 = someOptions.prop2; this.prop3 = someOptions.prop3; } someFunc() { console.log("This is some func of some class"); } static type = "SOME_CLASS...
package com.service; import com.entity.User; import java.util.List; import java.util.Map; public interface UserService { public User getUser(long userId); public User getUser(String username, String userpass); public String setUser(); public List<User> getlist(Map<String, Object> map); }
$(function (jQuery) { let slides = $('.slides'); $(slides).slick({ autoplay: true, dots: true, arrows: false, customPaging: function (slider, i) { console.log(slider); console.log(i); return "<button class='button-dot'>" } }); }(jQ...
#!/bin/bash -vx source $OKTA_HOME/$REPO/scripts/setup.sh export TEST_SUITE_TYPE="checkstyle" export TEST_RESULT_FILE_DIR="${REPO}/build2/reports/lint" if ! npm run lint:report; then echo "lint failed! Exiting..." exit ${TEST_FAILURE} fi echo $TEST_SUITE_TYPE > $TEST_SUITE_TYPE_FILE echo $TEST_RESULT_FILE_DIR > ...
import { PrismaClientKnownRequestError } from '@prisma/client/runtime'; import { PrismaError } from './PrismaError'; export class PrismaP2013Error extends PrismaError { constructor(originalError: PrismaClientKnownRequestError) { super(originalError, 'Missing the required argument'); } }
import {registry} from '@jahia/ui-extender'; // import register from './ContentEditorExtensions.register'; registry.add('callback', 'contentEditorExtensions', { targets: ['jahiaApp-init:20'], // callback: register callback: () => import('./ContentEditorExtensions.register') });
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
def extract_view_names(url_patterns: list) -> dict: view_names_dict = {} for pattern, view_name in url_patterns: if view_name in view_names_dict: view_names_dict[view_name].append(pattern) else: view_names_dict[view_name] = [pattern] return view_names_dict
#!/bin/bash -ex # Utilities. function get_container_ip { docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $1 } function create_namespace { name=$1 curl -k -H "Content-Type: application/yaml" -XPOST --data-binary @- https://172.17.0.3:6443/api/v1/namespaces <<EOF apiVersio...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
#!/usr/bin/env bash eval $(minikube docker-env) echo "Your shell is now configured to talk to Minikube, enjoy!"
class Grouping: def __init__(self): self.buckets = {} def add_indices(self, bucket_index, indices): if bucket_index not in self.buckets: self.buckets[bucket_index] = [] self.buckets[bucket_index].extend(indices) def remove_indices(self, bucket_index, indices): i...
#!/bin/bash get_relative_path(){ echo "$(dirname $(realpath $0))" } # This is working when this script is run, # but might not work when called this function # from command line, as bash may not able to find # the path of this file of 'get_relative_path' function get_relative_path
package com.java.study.answer.zuo.dadvanced.advanced_class_05; import java.util.Arrays; public class Code_03_Min_Gold { public static int minGold1(int[] knights, int[] dragons) { Arrays.sort(knights); int res = 0; for (int i = 0; i < dragons.length; i++) { int cost = getMaxLeftmost(knights, dragons[i]); ...
package com.company; public class URLDepthPair { private String URL; private int depth; public int getDepth() { return depth; } public String getURL() { return URL; } public URLDepthPair(String URL, int depth){ this.URL = URL; this.depth = depth; } @Overrid...
package com.attributestudios.wolfarmor.client.renderer.entity.layer; import com.attributestudios.wolfarmor.WolfArmorMod; import com.attributestudios.wolfarmor.api.util.Capabilities; import com.attributestudios.wolfarmor.api.util.Resources; import com.attributestudios.wolfarmor.api.IWolfArmorCapability; import com.attr...
import React, { useState, useEffect } from 'react' import { pingUrl } from '../utils' import { ipfsGateway, ipfsNodeUri } from '../../site.config' import styles from './Status.module.css' export default function Status({ type }: { type: string }) { const [isOnline, setIsOnline] = useState(false) const [isLoading, ...
def run_game_loop(gameplay): clock = pygame.time.Clock() while gameplay.is_running(): for event in pygame.event.get(): if event.type == pygame.QUIT: gameplay.quit_game() keys = pygame.key.get_pressed() gameplay.handle_input(keys) ...
#!/bin/bash # https://github.com/Hyy2001X/AutoBuild-Actions # AutoBuild Module by Hyy2001 # AutoBuild Actions Diy_Core() { Author=Hyy2001 Default_Device=d-team_newifi-d2 } Diy-Part1() { [ -e feeds.conf.default ] && sed -i "s/#src-git helloworld/src-git helloworld/g" feeds.conf.default [ ! -d package/lean ] && mkdir -...
#!/usr/bin/env sh set -e if [ $(getent group ping) ]; then delgroup ping addgroup -g $DOCKER_GID docker adduser -D -G docker hypso fi exec su-exec hypso java -jar /home/hypso/hypso.jar
<gh_stars>1-10 package depth_first_search; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.StringTokenizer; /** * * @author exponential-e * ๋ฐฑ์ค€ 16964๋ฒˆ: DFS ์ŠคํŽ˜์…œ ์ €์ง€ * * @see https://www.acmicpc.net/problem/16964/ * */ publi...