text
stringlengths
1
1.05M
#!/bin/bash # 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"); ...
import CSVToArray from "./CSV/CsvToArray"; export var FinalJSON = ""; function ConvertToJson(FormData) { var convertedToArrayFromFunction = CSVToArray(FormData.content); var finalConversionToJson = []; ReceiveTheCSVInArrayAndPushTheSentences( convertedToArrayFromFunction, finalConversionToJso...
import torch import torch.nn as nn import torch.nn.functional as F class ResidualBlock(torch.nn.Module): def __init__(self, channels): super(ResidualBlock, self).__init__() self.block = nn.Sequential( ConvBlock(channels, channels, kernel_size=3, stride=1, normalize=True, relu=True), ...
package org.felix.ml.sampling.cfg; import org.felix.ml.sampling.exception.ConfigException; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.commons.lang.StringUtils; import java.io.InputStream; import java.io.Reader; imp...
<reponame>codefacts/Elastic-Components package elasta.orm.idgenerator; import elasta.core.promise.intfs.Promise; import io.vertx.core.json.JsonObject; /** * Created by sohan on 6/28/2017. */ public interface ObjectIdGenerator<T> { Promise<JsonObject> generateId(String entity, JsonObject jsonObject); }
#!/bin/bash /bin/sh -c "php-fpm -D --pid /opt/bitnami/php/tmp/php-fpm.pid -y /opt/bitnami/php/etc/php-fpm.conf" /bin/sh -c "/opt/bitnami/scripts/nginx/run.sh"
from django.db import models from django.utils import timezone import uuid from django.conf import settings class Comment(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, serialize=False) text = models.TextField() created_at = models.DateTimeField(auto_now_add=True...
export declare enum ImageOperandsMask { None = 0, Bias = 1, Lod = 2, Grad = 4, ConstOffset = 8, Offset = 16, ConstOffsets = 32, Sample = 64, MinLod = 128, MakeTexelAvailable = 256, MakeTexelAvailableKHR = 256, MakeTexelVisible = 512, MakeTexelVisibleKHR = 512, Non...
const { spawn } = require('child_process') const consolelog = require('debug')('webdriver:utils') function isObject (p) { return typeof p === 'object' && p !== null && !Array.isArray(p) } function checkRes (res) { if (!isObject(res)) throw new Error('Unexpected non-object received from webdriver') if (typeof res....
export * from './AudioManager'; export * from './GameUpdateArgs'; export * from './GameState'; export * from './GameStorage'; export * from './Rotation'; export * from './RotationMap'; export * from './Session'; export * from './Tag';
// // mulle_objc_version.h // mulle-objc-runtime // // Created by Nat! on 10.07.16. // Copyright (c) 2016 Nat! - <NAME>. // Copyright (c) 2016 Codeon GmbH. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following ...
<gh_stars>0 import {GQLRequest} from '../node_modules/prendus-shared/services/graphql-service'; export async function LTIPassback(userToken: string, ltiSessionIdJWT: string) { const data = await GQLRequest(` mutation($ltiSessionIdJWT: String!) { assignmentLTIGrade(ltiSessionIdJWT: $ltiSessionIdJWT) { ...
#!/bin/bash set echo on SP_MAVEN="192.168.4.201 mvn.csdn.net maven.csdn.net" BI_MAVEN="192.168.6.145 mvn.csdn.net maven.csdn.net" HOST_FILE="/C/Windows/System32/drivers/etc/hosts" M2_HOME="/c/Users/zhengwx/.m2/" SP_SETTINGS="settings_sp.xml" BI_SETTINGS="settings_bi.xml" DST_SETTINGS="settings.xml" grepResult=`gre...
const getters = { menus: state => state.routes.menus, name: state => state.user.user_name, hasGetInfo: state => state.user.hasGetInfo } export default getters
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate # your own config based on it. # # Tip: Looking for a nice color? Here's a one-liner to print colormap. # # for i in {0..255}; do print -Pn "%${i}F${(l:3::0:)i}%f " ${${(M)$((i%8)):#7}:+$'\n'}; done # Temporarily change options. 'bu...
#!/usr/bin/env bash version="$1" if [ -z "$version" ]; then echo "version is empty!" exit 1 fi find . -name "go.mod" | sed 's~\./~~' | sed "s/go.mod/${version}/" | while read t; do git tag $t done
<reponame>jorgedemetrio/social-midia-manager /** * */ package com.br.alldreams.socialmidia.conf; import javax.persistence.EntityManagerFactory; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.c...
from distutils.core import setup setup( name="irt-data", version="1.2", packages=[ "irt", "irt.data", "irt.graph", "irt.text", "irt.common", ], license="MIT", author="<NAME>", author_email="<EMAIL>", description="Inductive Reasoning with Text - Be...
#!/bin/bash set -e # urls.txtの内容をredisのqueueとして投入する # すでに投入済みの場合はスキップする . ./lib/redis-helper.sh . ./lib/url-helper.sh namespace="vscovid-crawler" for url in `cat urls.txt`; do # URLの整形 url=${url:9:-1}l echo path $url domain=`get_domain_by_url $url` echo domain $domain host=`grep $domain --in...
import React from 'react'; import { Link } from 'react-router-dom'; import logo from './logo.png'; import './style.scss'; const Header = () => ( <header> <img className="logo" src={logo} alt={logo} /> <nav> <ul> <li> <Link to="/">Drag & Drop</Link> </li> <li> ...
var style = { container: { border: 'solid', borderWidth: 0.5, borderColor: '#000' } }; var FilterElement = React.createClass({ displayName: 'FilterElement', getInitialState: function () { return { autodelete: false, counts: 0 }; }, getDefaultProps: function () { return ...
<reponame>chrishumboldt/rocket-utility /** * @author <NAME> */ import { RocketIs } from '../is/is.utility'; /** * Lowercase the whole string. * * @param data - The string modify. */ function lowercaseAll(data: string = ''): string { return data.toString().toLowerCase(); } /** * Lowercase the first letter of...
<filename>app/components/directives/general/box-directive.js<gh_stars>0 myApp.compileProvider.directive('boxDirective', function() { return { restrict: 'E', templateUrl: function() { return "/app/components/directives/general/views/box-template.html"; }, scope: { ...
#!/bin/bash # # * build directory is /usr/src/CMake # # * install directory is /usr # # * after installation, archive, source and build directories are removed # set -ex WRAPPER="" while [ $# -gt 0 ]; do case "$1" in -32) WRAPPER="linux32" ;; *) echo "Usage: Usage: ${0##*/} [-32]" ...
import ast import pathlib import pprint from flake8_rst_docstrings import Plugin def parse_python_file(file_path): file_content = pathlib.Path(file_path).read_text() parsed_nodes = [] tree = ast.parse(file_content) plugin = Plugin(tree) plugin_results = list(plugin.run()) for node in ...
<reponame>kikkia/Vinny-Redux<gh_stars>10-100 package com.bot.commands.alias; import com.bot.commands.ModerationCommand; import com.bot.db.AliasDAO; import com.bot.db.GuildDAO; import com.bot.models.Alias; import com.bot.models.InternalGuild; import com.bot.utils.AliasUtils; import com.bot.utils.ConstantStrings; import...
''' Created on Oct 14, 2014 @author: stefan ''' from parser import stpcommands from ciphers.cipher import AbstractCipher from parser.stpcommands import getStringLeftRotate as rotl class KeccakCipher(AbstractCipher): """ This class provides a model for the Keccak hash function by <NAME>, <NAME>, <NAME> ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-credentials', templateUrl: './credentials.component.html', styleUrls: ['./credentials.component.scss'] }) export class CredentialsComponent implements OnInit { constructor() { } ngOnInit() { } messages = [ { image...
package cn.stylefeng.guns.onlineaccess.modular.mapper; import cn.stylefeng.guns.onlineaccess.modular.entity.DataTypeDirector; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; @Mapper public interface DataTypeDirectorMapper extends BaseMapper<DataTypeDirector> { }
package AulaSeis; import java.util.Scanner; public class BoletimPersistente { private Double MediaAprovacao; private int NumeroFaltas; public void run() { Scanner readLine = new Scanner(System.in); System.out.println("Qual a média de aprovação?"); this.MediaAprovacao = Double.parseDouble(readLine.nextLin...
import {colors} from '@material-ui/core'; import { AddCircleOutline as AddCircleOutlineIcon, RemoveCircleOutline as RemoveCircleOutlineIcon, Edit as EditIcon } from '@material-ui/icons'; export const lines = (stats) =>{ return [ { title: 'Lines Added', value: stats.addPercentage, icon: Ad...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the Apache Licens...
class CreditCard { private: int cardNumber; int expirationDate; float balance; float creditLimit; public: CreditCard(int cardNumber, int expirationDate); bool charge(float amount); // Charge the CreditCard bool pay(float amount); // Pay amount to the CreditCard float getBalance(); // Return balance float ...
<filename>C2CRIBuildDir/projects/C2C-RI/src/RICenterServices/src/org/enterprisepower/net/portforward/Listener.java /* * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
var PlayerState = { playerIdx: 0, color: 0, position: { x: 0, y: 0 } } var Player = { oninit: function (vnode) { m.request({ method: "GET", url: "/api/register/Erwan/1", extract: function (xhr) { return xhr.responseText } }) .then(function (result) { [PlayerSt...
<gh_stars>0 import { useEffect, useState } from "react"; export const useDidMount = (initState = false) => { const [didMount, setDidMount] = useState(initState); useEffect(() => { setDidMount(true); return () => { setDidMount(false); }; }, []); return didMount; };
#!/bin/bash # Bash script with AZ CLI to automate the creation of an # Azure Data Factory account. # Chris Joakim, Microsoft, October 2021 source ./azconfig.sh arg_count=$# processed=0 mkdir -p tmp create() { processed=1 echo 'creating adf rg: '$adf_rg az group create \ --location $adf_region \...
package net import ( "bytes" "fmt" "net" "strconv" "time" "github.com/pkg/errors" ) const ( OutOfBandHeader = "\xff\xff\xff\xff" GetInfoCommand = "getinfo" GetStatusCommand = "getstatus" ) func SendCommand(addr, cmd string) ([]byte, error) { raddr, err := net.ResolveUDPAddr("udp4", addr) if err != nil...
/* eslint arrow-body-style: ["error", "as-needed"] */ import { call, fork, put, takeEvery, all } from 'redux-saga/effects'; import { log } from '@navikt/digisyfo-npm'; import { hentApiUrl, post } from '../../../gateway-api'; import { ETTERSEND_SOKNAD_ARBG_FORESPURT, ettersenderSoknadTilArbeidsgiver, ettersendS...
/** * Copyright 2019 <NAME> (www.algorithmist.net) * * 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 la...
from typing import List from .helpers import Reconstruct, QuantizationError class DataProcessor: def __init__(self, compressed_data: List[int]): self.compressed_data = compressed_data def reconstruct_data(self) -> List[float]: reconstructor = Reconstruct() reconstructed_data = reconstr...
$(function() { registerTemplate('guides',` <h1 id="page-heading">Guides</h1> <div class='mdl-grid'> {{#forEachGuide}} <div class='mdl-cell mdl-cell--4-col'> <div class='guide-card mdl-card mdl-shadow--2dp'> <div class='mdl-ca...
#include <math.h> #define MAX_VOLUME 100 typedef struct { float x; float y; float z; } vec; float calculate_distance(const vec *loc) { // Assuming listener's location is at (0, 0, 0) return sqrt(loc->x * loc->x + loc->y * loc->y + loc->z * loc->z); } void sound_updatechanvol(int chan, const vec ...
#!/bin/bash # builds intermediate interp tables (geo and taxonomy). NOTE: make sure the epsg-hsql jar is the right version for the latest release of occurrence-hive! log () { echo $(tput setaf 6)$(date '+%Y-%m-%d %H:%M:%S ')$(tput setaf 14)$1$(tput sgr0) } #SONAR_REDIRECT_URL=http://repository.gbif.org/repository/g...
curl -X POST \ https://app.datadoghq.com/api/v2/roles/<ROLE_UUID>/permissions \ -H "Content-Type: application/json" \ -H "DD-API-KEY: <YOUR_DATADOG_API_KEY>" \ -H "DD-APPLICATION-KEY: <YOUR_DATADOG_APPLICATION_KEY>" \ -d '{ "data": { ...
########################################################################################## # # Copy original mixer_paths_qrd.xml and run script to add stereo effects into it. # # ########################################################################################## # Copy files and run scripts mkdir -p $MODPATH/s...
/** * @file : smartptr.h * @brief : Smart pointers header file in CUDA C++14, * @author : <NAME> <<EMAIL>> * @date : 20171007 * @ref : * * If you find this code useful, feel free to donate directly and easily at this direct PayPal link: * * https://www.paypal.com/cgi-bin/webscr?cmd=_donations&b...
export { default as spec } from './spec/index'; export * from './interfaces/index';
<!-- Copyright 2020 Kansaneläkelaitos 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...
function countUniqueCategories($categoryIds) { // If the input list is empty, return 0 if (empty($categoryIds)) { return 0; } // Use array_unique to remove duplicate category IDs and count the unique ones return count(array_unique($categoryIds)); }
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CalendarCheckOSvg from '@rsuite/icon-font/lib/legacy/CalendarCheckO'; const CalendarCheckO = createSvgIcon({ as: CalendarCheckOSvg, ariaLabel: 'calendar check o', category: 'legacy', displayName: 'CalendarChec...
package com.plus3.privilege.dao.mapper; import com.plus3.privilege.dao.entity.PermissionOfRole; import java.util.List; public interface PermissionOfRoleMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table permission_of_role * * @mbggen...
use std::path::Path; fn check_config_file(file_path: &str) { let config_path = Path::new(file_path); if config_path.exists() { println!("{} already exists", config_path.to_str().unwrap()); } else { println!("{} does not exist", config_path.to_str().unwrap()); } } fn main() { check...
def perimeter(edges): total = 0 for edge in edges: total += edge return total
import React, { Component, PropTypes } from 'react'; import classNames from 'classnames'; import except from 'except'; import rowStyles from './Row.scss' class Row extends Component { render() { const other = except(this.props, ['className']); let rowClassName = classNames(this.props.className, 'ms-row');...
## Schema CREATE DATABASE pets_db; USE pets_db; CREATE TABLE buyers( id int NOT NULL AUTO_INCREMENT, buyer_name varchar(255) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE pets( id int NOT NULL AUTO_INCREMENT, animal_breed varchar(255) NOT NULL, animal_name varchar(255) NOT NULL, price int NOT NULL, buyer_id int NO...
<reponame>neelsomani/literature-server import React, { Component } from 'react'; export default class ClaimDisplay extends Component { constructor(props) { super(props); this.state = { show: true, lastHalfSuit: this.props.halfSuit }; } componentDidUpdate() {...
<gh_stars>0 var md5 = require('MD5'), User = require('./userModel'), loginUser = require('./loginUser'); // Creates a new user module.exports = function createUser (socket, data) { // Hash the password data.password = <PASSWORD>(data.password); // Create a new user in MongoDB var user = new User(data...
def isPalindrome(inputString): # Base case: if the length of inputString is 0 or 1 if len(inputString) == 0 or len(inputString) == 1: return True # Checking the first and last character of inputString if inputString[0] != inputString[len(inputString) - 1]: return False retu...
def generate_send_to_spark_command(variable, var_name): if isinstance(variable, str): type_of_variable = "str" else: type_of_variable = "pandas" return f"%%send_to_spark -i {var_name} -t {type_of_variable} -n {var_name}"
import React from "react"; import API from "../../utils/API"; import "./style.css"; function BookCard(props){ const handleCardButton = (event) => { if(props.type === "save"){ API.saveBook(props).then(res => { document.getElementById(props.googleId).disabled = true; document.getElementById(...
<gh_stars>0 module.exports = require('./utils/queue');
<gh_stars>0 function increaseNumberRoundness(n) { return /0[1-9]/.test(n); } //////////////////////////////////////// function increaseNumberRoundness(n) { const parts = n .toString() .split("") .reverse(); let state = false; for (let part of parts) { if (part !== "0") state = true; else if...
export const SET_CARDS = 'SET_CARDS'; export const DELETE_CARD = 'DELETE_CARD'; export const SET_CURRENT_USER = 'SET_CURRENT_USER'; export const SET_GROUPS = 'SET_GROUPS';
#!/bin/bash set -e DIR=$(dirname $(realpath "$0")) # locate folder where this sh-script is located in SCRIPT="./tests/run_tests.inp" PROJECT="parallel_specs" cd $DIR echo "Switched to ${DIR}" gretlcli -b -e -q ${SCRIPT} if [ $? -eq 0 ] then echo "Success: All tests passed for '${PROJECT}'." exit 0 else echo ...
<reponame>saltstack/rend<gh_stars>1-10 version = '4.1'
<filename>back-end/hub-core/src/test/java/io/apicurio/hub/core/editing/KafkaEditingSessionTest.java /* * Copyright 2020 Red Hat * * 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 * * ...
package com.prt2121.bees; import android.support.v4.app.Fragment; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; imp...
#!/bin/bash count=`nvidia-smi --query-gpu=name --format=csv,noheader | wc -l` echo 'start' for (( c=count; c>=1; c-- )) do python3 benchmark_models.py -g $c & done wait echo 'end'
#!/bin/bash set -eo pipefail FUNCTION=$(aws cloudformation describe-stack-resource --stack-name java-basic --logical-resource-id function --query 'StackResourceDetail.PhysicalResourceId' --output text) if [ $1 ] echo "dollar 1 is $1" echo "function is $FUNCTION" then case $1 in string) PAYLOAD='"MYSTRING"' ...
import chalk from 'chalk' import * as path from 'path' import * as typescript from 'typescript' import webpack from 'webpack' import { formatWebpackMessages } from '../lib/formatWebpackMessages' import { paths } from '../lib/paths' import { IS_CI, RuntimeOptions } from '../util/env' import { diffFileSize, getBundleSize...
<filename>lib/chord.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.confi...
class MedicalCodeManager: def __init__(self): self.icd9cm = [...] # List of ICD-9-CM codes self.comorbidity_mappers = {...} # Dictionary mapping ICD-9-CM codes to comorbidities self.icd10 = [...] # List of ICD-10 codes def get_icd9cm_codes(self): return self.icd9cm def g...
<filename>snail/src/main/java/com/acgist/snail/context/RecycleContext.java package com.acgist.snail.context; import java.util.function.Function; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.acgist.snail.IContext; import com.acgist.snail.context.SystemContext.SystemType; import com.acgist.snail...
cd ../ cd dev.juiceyourskills.com git pull npm install cd ../ cd test.juiceyourskills.com git pull npm install cd ../ cd www.juiceyourskills.com git pull npm install cd ../ cd dev.juiceyourskills.com
<reponame>huangbin082/Bin<filename>Algorithm/src/main/java/com/leetcode/Solution_451.java package com.leetcode; import java.util.*; public class Solution_451 { public String frequencySort(String s) { Map<Character, Integer> map = new HashMap<>(); for (int i = 0; i < s.length(); i++) { ...
#!/bin/bash WORK_DIR=$(readlink -f .) DATA_DIR=${WORK_DIR}/data PROJECT=$1 CONFIG_NAME=$2 MODEL_NAME=$3 PROJECT_DIR=${WORK_DIR}/experiments/$PROJECT OUTPUT_DIR=${DATA_DIR}/output/$PROJECT ANNOTATION_DIR=${DATA_DIR}/annotations/$PROJECT if [ -z "$MODEL_NAME" ]; then MODEL_NAME=bert-base-uncased fi ANNOTATION_DIR="$A...
<reponame>EIDSS/EIDSS-Legacy package com.bv.eidss; import java.util.List; import com.bv.eidss.model.GisBaseReference; import android.app.Activity; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class GisBaseReferenceAdap...
# Function to evaluate expression in postfix notation def postfix_evaluator(expr): # Create an empty stack stack = [] # Iterate through the input expression for char in expr: # Push operand in stack # Negative numbers are considered as operand if char.isdigit() or char[0] ...
class FeatureToggle: def __init__(self, toggles): self.toggles = toggles def is_enabled(self, feature_name): if feature_name in self.toggles: return self.toggles[feature_name] != DISABLED else: return False
#!/bin/bash # I rarely do bash scripting, so feel free to refine this script. echo "Linking MALA and MALA data repo." # Get the paths we need for setup. script_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" mala_base_path=$( echo ${script_path%/*} ) mala_base_path=$( echo ${mala_base_path%/*...
/** * ## popularPhotos.js * * # Display Popular Feed Photos as a grid */ 'use strict' /** * ## Imports * */ import React, {PropTypes} from 'react' import { StyleSheet, View, Dimensions, Image } from 'react-native' import _ from 'lodash' /** * ## Styles */ const styles = StyleSheet.create({ contain...
<reponame>mothguib/pytrol<gh_stars>0 # -*- coding: utf-8 -*- from pytrol.model.action.Action import Action from pytrol.model.action.Actions import Actions class SendingMessageAction(Action): def __init__(self, _message: str, _agt_id: int): r""" Args: _message (str): _agt_...
use std::error::Error; struct Context; impl Context { fn find_exact(&self, name: &str) -> Result<String, Box<dyn Error>> { // Implementation of finding the password based on the name // For example, returning a hardcoded password for demonstration purposes match name { "Alice" ...
# Ruby 1.x is no longer a supported runtime, # but its regex features are still recognized. # # Aliases for the latest patch version are provided as 'ruby/n.n', # e.g. 'ruby/1.9' refers to Ruby v1.9.3. Dir[File.expand_path('../versions/*.rb', __FILE__)].sort.each { |f| require f }
function docker_volume_list_each_that_matches() { # [docker_volume_match_predicate_expression] local docker_volume_match_predicate_expression="${1:-0}" docker volume list | perl -e ' my $match_predicate_expression = shift(@ARGV); while( <> ) { if ($. == 1) { if (m{DRIVER\s+VOLUME NAME\b}) { p...
# Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # What to do sign=false verify=false build=false setupenv=false # Systems to build linux=true windows=true osx=true # Other Basic v...
require 'test_helper' class PeriodsControllerTest < ActionController::TestCase setup do @period = periods(:one) end #NOT LOGGED IN test "index should get signin if not logged in" do get :index assert_redirected_to "/sign_in" end test "new should get signin if not logged in" do get :new ...
package com.example.tour; import android.app.Activity; import android.os.AsyncTask; import android.os.Bundle; public class user_details extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); //setCon...
export const GridBreakPoints = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 } export const GridColumns = { lg: 100, md: 80, sm: 50, xs: 25, xxs: 10 } export const WidgetTitleHeight = 34 // 34px export const getWidgetWidth = (windowWidth, gridColumns) => { if (windowWidth > 1200) { return (windowWidth * (gridCo...
## DL params export BATCHSIZE=2 export EVALBATCHSIZE=80 export NUMEPOCHS=${NUMEPOCHS:-15} export EXTRA_PARAMS='--val-epochs 10 15 --lr-decay-epochs 60 75 --lr-warmup-epoch=26 --lr=0.004375 --weight-decay=4e-5 --bn-group=8 --gradient-predivide-factor=32 --input-batch-multiplier=20' ## System run parms export DGXNNODES=...
package com.github.guitsilva.battleship.view.frames; import com.github.guitsilva.battleship.view.Console; public class ShipsFrame extends Frame implements Renderable { public void render() { Console.clear(); this.renderHeader(); Console.print("Ships distribution on the grid:", 100, true, ' '); Co...
/* * This file is generated by jOOQ. */ package com.yg.gqlwfdl.dataaccess.db.tables; import com.yg.gqlwfdl.dataaccess.db.Indexes; import com.yg.gqlwfdl.dataaccess.db.Keys; import com.yg.gqlwfdl.dataaccess.db.Public; import com.yg.gqlwfdl.dataaccess.db.tables.records.PricingDetailsRecord; import java.util.Arrays; i...
import React from 'react'; import { storiesOf } from '@storybook/react'; import ContentTitle from './contentTitle'; storiesOf('Components/ContentTitle', module).add('default', () => { return <ContentTitle>you are swapping</ContentTitle>; });
package de.hswhameln.typetogether.networking.util; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import de.hswhameln.typetogether.networking.types.Identifier; public class Decimal { public static List<Integer> fromIdentifierList(List<Identifier> identifiers) { ...
<reponame>joeosburn/parcel // @flow strict-local import type { Blob, FilePath, BundleResult, Bundle as BundleType, BundleGraph as BundleGraphType, NamedBundle as NamedBundleType, Async, } from '@parcel/types'; import type SourceMap from '@parcel/source-map'; import type WorkerFarm from '@parcel/workers';...
#!/bin/sh set -e mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt > "$RESOURCES_TO_COPY" XCASSET_FILES=() case "${TARGETED_DEVICE_FAMILY}" in 1,2) TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" ;; 1) ...
def find_max(root): if root != None: if root.right != None: return find_max(root.right) else: return root.data # Driver Code if __name__ == "__main__": root = Node(20) root.left = Node(8) root.right = Node(22) root.left.left = Node(4) root.left.right...
package com.tranzzo.android.sdk; import android.content.Context; import androidx.annotation.NonNull; import java.util.Map; interface TelemetryProvider { @NonNull Map<String, String> collect(@NonNull Context context); }
<filename>src/reader/templatetags/shortcuts.py from django.core.serializers import serialize from django.db.models.query import QuerySet from django import template import json register = template.Library() @register.filter(is_safe=True) def jsonify(obj): if isinstance(obj, QuerySet): return serializ...