text
stringlengths
1
1.05M
def isPalindrome(str): for i in range(0, int(len(str)/2)): if str[i] != str[len(str)-i-1]: return False return True inputStr = 'madam' if (isPalindrome(inputStr)): print("Yes") else: print("No")
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Keep any values in here in sync with reserved_infos.py. namespace catapult { extern const char kStoriesDiagnostic[]; }
<gh_stars>0 package cli import ( "context" "flag" "fmt" "io/ioutil" "net/http" "strings" "time" "github.com/qdm12/gluetun/internal/constants" "github.com/qdm12/gluetun/internal/params" "github.com/qdm12/gluetun/internal/provider" "github.com/qdm12/gluetun/internal/settings" "github.com/qdm12/gluetun/inter...
#!/bin/bash mkdir -p puzzledb gen() { H=$1 W=$2 P=$3 N=$4 CV=$5 CF=$6 SQ=$7 DEP=$8 OF=$9 MW=${10} F="puzzledb/h=${H}_w=${W}_p=${P}_cv=${CV}_cf=${CF}_sq=${SQ}_dep=${DEP}" if [ "$OF" -ne "0" ]; then F="${F}_of=${OF}" fi if [ ! -f $F ]; then echo Ge...
var searchData= [ ['randomisedenvironment_2ecs',['RandomisedEnvironment.cs',['../_randomised_environment_8cs.html',1,'']]], ['randomwalk_2ecs',['RandomWalk.cs',['../_random_walk_8cs.html',1,'']]], ['ray_2ecs',['Ray.cs',['../_ray_8cs.html',1,'']]], ['raycastsensor_2ecs',['RaycastSensor.cs',['../_raycast_sensor_8...
#!/usr/bin/env bash set -e echo "Updating pythonpath..." export PYTHONPATH=/opt/lfg/django:$PYTHONPATH echo "Reloading env variables..." . /opt/lfg/env echo "Displaying env vars for debugging..." env echo "Starting server..." make prodserver
<reponame>nepalez/separator<filename>spec/shared/generator.rb # encoding: utf-8 # Generates the condition object with regexp def generate(regexp) klass = Class.new(Selector::Condition) klass.send(:define_method, :[]) { |value| nil ^ value[regexp] } klass.new end
#include "syscall.h" #define NB 10 /* * Creation de plusieurs threads utilisateur qui affichent des caractères. * Le thread 1 doit afficher 'X' et le caractère 'a' passé en paramètre de UserThreadCreate. * Le thread 2 doit afficher 'Y' et 'b' passé en paramètre de UserThreadCreate. * Bug: * Le thread 1 affiche '...
""" Generate a code snippet to print an ASCII tree of a given height """ def draw_tree(height): for i in range(height): for j in range(i+1): print('*', end='') print() if __name__ == '__main__': draw_tree(5) """ Output: * ** *** **** ***** """
#!/bin/bash #/ Usage: bin/strap.sh [--debug] #/ Install development dependencies on macOS. set -e [[ "$1" = "--debug" || -o xtrace ]] && STRAP_DEBUG="1" STRAP_SUCCESS="" sudo_askpass() { if [ -n "$SUDO_ASKPASS" ]; then sudo --askpass "$@" else sudo "$@" fi } cleanup() { set +e sudo_askpass rm -rf "...
var searchFilter = searchFilter ||  {}; searchFilter.data = function (searchElement, mainElement, subElements, searching) { var search = $(searchElement), container = $(mainElement), sub = container.find($(subElements)), filterSearch = search.val().toLowerCase(); for (i = 0; i < sub.l...
<filename>tdt4250.mush.model/src/tdt4250/mush/model/Variable.java /** */ package tdt4250.mush.model; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Variable</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link tdt4250.m...
//T(n) = log2(n) #include <iostream> using namespace std; int main(){ int i, j;//contadores int x;//aux int cont; int n;//tamanho do problema cin >> n; cont = 0; i = 1; while(i < n){ x = i * 2; i *= 2; cont ++; } cout << cont << endl; return 0; }
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
<filename>src/main/java/cn/gobyte/apply/security/config/MvcConfig.java package cn.gobyte.apply.security.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcCo...
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by <NAME>, <EMAIL>, All rights reserved. # LLNL-CODE-647188 # # For det...
if [[ "$OSTYPE" == "msys" ]]; then alias apache='~/Apache24/bin/httpd.exe' alias hibernate="rundll32.exe powrprof.dll,SetSuspendState" alias ifconfig="ipconfig -all" alias lock="rundll32.exe user32.dll,LockWorkStation" else alias apache='sudo /opt/apache2/bin/httpd' fi
load test_helpers setup() { load "${BATS_UTILS_PATH}/bats-support/load.bash" load "${BATS_UTILS_PATH}/bats-assert/load.bash" cd ./tests/command_after } @test "command_after: should run after script if cmd string" { run lets cmd-with-after assert_success assert_line --index 0 "Main" assert_...
<gh_stars>0 /* * 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 * "Lic...
import { IAchievementPrerequisite, ICraftingPrerequisite, IRecipe } from "../api"; import { getFromMapNum, getFromMapStr } from "./mapoperations"; export interface IBaseComputerNode { neededAmount: number; ownedAmount: number; } export interface IBaseComputerItemNode extends IBaseComputerNode { itemId: nu...
public function pictureStore(Request $request) { $this->validate($request, [ 'foto.*' => 'required|image|mimes:jpeg,png,jpg,gif,svg', ]); if ($request->hasfile('foto')) { foreach ($request->file('foto') as $file) { $name_file = "Lumban-Gaol_Foto-" . rand() . "-" . time() . "." . ...
#!/usr/bin/env bash # PLEASE NOTE: This script has been automatically generated by conda-smithy. Any changes here # will be lost next time ``conda smithy rerender`` is run. If you would like to make permanent # changes to this script, consider a proposal to conda-smithy so that other feedstocks can also # benefit from...
// Define the macro for infinite casting from one numeric type to another macro_rules! impl_inf_cast_from { ($from:ty, $to:ty) => { impl InfCast for $from { fn inf_cast(self) -> $to { self as $to } } }; } // Define the macro for infinite casting between i...
package io.swagger.model.pheno; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import org.springframework.validation.annotation.Validated; /** * ObservationVariableNewRequest */ @Validated @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", da...
set -aux DATA_PATH='data/' if [ ! -d $DATA_PATH ]; then mkdir ${DATA_PATH} fi if [ ! -d $DATA_PATH'VOC' ]; then wget https://oneflow-static.oss-cn-beijing.aliyuncs.com/train_data_zjlab/VOC2012.zip unzip VOC2012.zip -d $DATA_PATH fi PRETRAIN_MODEL_PATH="vgg_imagenet_pretrain_model/" MODEL="vgg16" #choose from vg...
<gh_stars>0 import browser from "./browser" import device from "./device" import operatingSystem from "./operatingsystem" import screen from "./screen" import windowInfo from "./window" export default function browserInfo() { return { browser: browser.browser(), device: { height: device.pixelHeight(), ...
import random lst = random.sample(range(10, 21), 10) print(lst)
from typing import List def get_mx_records(domain: str) -> List[str]: if domain.endswith('.com'): # Replace with actual logic to determine domain provider mx_records = MXRecords().get_mx_records(domain) elif domain.endswith('.google.com'): # Replace with actual logic to determine Google domain ...
<gh_stars>10-100 package io.opensphere.core.cache.jdbc; import java.io.NotSerializableException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.Lis...
fn find_latest_version(versions: Vec<String>) -> String { let mut latest_version = String::new(); for version in versions { if latest_version.is_empty() || is_newer_version(&version, &latest_version) { latest_version = version; } } latest_version } fn is_newer_version(versio...
from flask import Flask, jsonify, request import requests app = Flask(__name__) @app.route('/get_data', methods=['GET']) def get_data(): user_input = request.args.get('input') if user_input: api_url = 'https://api.example.com/data' params = {'query': user_input} response = requests.get...
The 5 devices should be connected to one another in a star topology, with all 5 devices connected to a central "hub". The hub should be connected to a router, which is then connected to the internet. The devices should each be given an IP address so they can communicate with each other over the network, and the router ...
<reponame>ksh9241/java8_in_action<filename>src/java_8_in_action/functionalprograming/TreeExample.java package java_8_in_action.functionalprograming; public class TreeExample { public static void main(String[] args) { Tree a = update("a", 100, null); System.out.println(a); System.out.println(); a = updat...
import path from 'path'; import fs from 'fs-extra'; import inquirer from 'inquirer'; import spawn from 'cross-spawn'; import update from './update'; import npmType from '../utils/npm-type'; import log from '../utils/log'; import conflictResolve from '../utils/conflict-resolve'; import generateTemplate from '../...
<reponame>Hoovs/OpenLibraryClient<filename>server/handlers/search_test.go package handlers import ( "go.uber.org/zap" "net/url" "testing" ) func TestCreateUrl(t *testing.T) { baseUrl := "http://test?q=" cases := []struct { name string v url.Values validate func(error) bool expectedStr...
from typing import Iterable class Table: def __init__(self, *, name: str, key: str, description: str, cluster: str, database: str, schema_name: str, column_names: Iterable[str], ...
#!/usr/bin/env python3.9 import asyncio import os import shutil import tempfile import unittest import eris.tools as tools import eris.worker as worker class WorkerTestCase(unittest.TestCase): def setUp(self): self.temp_dir = tempfile.mkdtemp() self.original_working_dir = os.getcwd() o...
<filename>index.js import { create } from 'rung-sdk'; import { OneOf, Double } from 'rung-sdk/dist/types'; import Bluebird from 'bluebird'; import agent from 'superagent'; import promisifyAgent from 'superagent-promise'; import { gt, keys, lt, merge, path } from 'ramda'; const request = promisifyAg...
<reponame>tatjam/Photon #include "Model.h" #define TINYOBJLOADER_IMPLEMENTATION #include "../../dep/tiny_obj_loader.h" namespace ph { Vertex vVertex(glm::vec3 pos, glm::vec3 nrm, glm::vec2 tex) { Vertex out; out.pX = pos.x; out.pY = pos.y; out.pZ = pos.z; out.nX = nrm.x; out.nY = nrm.y; out.nZ = nrm....
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a...
public void mergeSort(int arr[], int l, int r) { if (l < r) { // Find the middle point int m = (l+r)/2; // Sort first and second halves mergeSort(arr, l, m); mergeSort(arr, m+1, r); // Merge the sorted halves merge(arr, l, m, r); } }
#!/usr/bin/env bash ./vimrc.sh ./brew.sh # add brew to current path source ~/.profile ./zsh.sh ./tmux.sh
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> template <typename T1, typename T2, typename T3> struct VirtActionInvoker3 { typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*); static inline void Invoke (Il2CppMet...
package hex.tree.xgboost; import org.junit.Test; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.text.NumberFormat; import java.text.ParseException; import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.uti...
numbers = [4, 11, 18, 12, 7] def median(array) sorted = array.sort len = sorted.length (sorted[(len - 1) / 2] + sorted[len / 2]) / 2.0 end puts median(numbers) # Output: 11.0
<reponame>ddv12138/spider-bing-wallpaper package getBingWallpaer; import java.net.MalformedURLException; import java.net.URL; public class StartConection { public static void main(String[] args) { URL url = null; try { for(int i = -1;i<8;i++) { url = new URL("http://cn.bing.com/HPImageArchive.aspx?...
#!/bin/sh unzip -o appleseed-2.0.0-beta-0-g5cff7b96b-mac64-clang.zip unzip -o emily_1.4.zip unzip -o disney_material_1.2.zip unzip -o material_tester_1.4.zip cp -va emily/* appleseed cp -va disney_material/* appleseed cp -va material_tester/* appleseed echo "#!/bin/bash cd appleseed ./bin/appleseed.cli --benchmark-m...
#!/bin/bash #"***************************************************************************************************" # common initialization #"***************************************************************************************************" # select master or some GitHub hash version, and whether or not to force a c...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.smile2 = void 0; var smile2 = { "viewBox": "0 0 16 16", "children": [{ "name": "path", "attribs": { "fill": "#000000", "d": "M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM11 4c0.552 0 1 0.448...
const { Pool } = require("pg"); module.exports = new Pool({ user: "gbinqkrx", password: "<PASSWORD>", host: "motty.db.elephantsql.com", port: 5432, database: "gbinqkrx" });
<reponame>lananh265/social-network "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pinterest2 = void 0; var pinterest2 = { "viewBox": "0 0 16 16", "children": [{ "name": "path", "attribs": { "fill": "#000000", "d": "M8 0c-4.412 0-8 3.587-8 8s3.587 8 8 8 8-...
var morgan = require('morgan'); //payload delivered through a prototype pollution attack Object.prototype[':method :url :status :res[content-length] - :response-time ms'] = '25 \\" + console.log(\'hello!\'); + //:method :url :status :res[content-length] - :response-time ms'; //benign looking usage of morgan that can b...
#!/bin/bash if [ ! $# == 2 ]; then echo 'Put first string' read $ONE echo 'And now second string' read $TWO else ONE="$1" TWO="$2" fi if [ "$ONE" == "$TWO" ]; then echo -e '\e[92mSame' else echo -e '\e[91mNot the same' fi echo -e '\e[39m'
<gh_stars>1-10 # Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/api/serviceusage/v1beta1/serviceusage.proto for package 'Google.Api.ServiceUsage.V1beta1' # Original file comments: # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use...
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'webmock/rspec' require 'userapi' include WebMock
x = 'curso de python no cursoemvideo' count = x.count('curso') print(count)
#!/bin/bash ###################################################################### # Script building manylinux silx wheels # The silx sources are dowloaded from the git repository # # Run it on a manylinux CentOS docker image. # For 64 bits wheels, run: # sudo docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_x86...
package io.opensphere.feedback; import java.awt.Insets; import io.opensphere.core.PluginLoaderData; import io.opensphere.core.Toolbox; import io.opensphere.core.api.adapter.PluginAdapter; import io.opensphere.core.control.ui.ToolbarManager.SeparatorLocation; import io.opensphere.core.control.ui.ToolbarManager...
#!/usr/bin/env bash ZIP_NAME=jetifier.zip curl "https://dl.google.com/dl/android/studio/jetifier-zips/1.0.0-beta09/jetifier-standalone.zip" -o $ZIP_NAME unzip $ZIP_NAME rm -rf $ZIP_NAME mv jetifier-standalone/bin/jetifier-standalone jetifier-standalone/bin/jetifier rm jetifier-standalone/bin/jetifier-standalone.bat ...
git config --global user.email "travis@travis-ci.org" git config --global user.name "Travis CI" git checkout master git add instapi/version.txt git commit -m "Bump Version (Build $TRAVIS_BUILD_NUMBER) [skip version travis]" git remote rm origin git remote add origin https://breuerfelix:${GH_TOKEN}@github.com/breuerfel...
package elasta.sql.ex; /** * Created by sohan on 6/27/2017. */ final public class SqlDbException extends RuntimeException { public SqlDbException(String msg) { super(msg); } }
#!/bin/sh #################################################################### # Script Name : maxminddownloader.sh # Description : Script to download Maxmind CVS and .mmdb Datafiles # Args : Use the .conf file to specify the licence # Author : Gerardo Gonzalez # Email : gerardoj.gonzalezg@b...
<reponame>jrfaller/maracas package com.github.maracas.forges; public class ForgeException extends RuntimeException { public ForgeException(String message, Throwable cause) { super(message, cause); } public ForgeException(Throwable cause) { super(cause); } }
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+0+512-shuffled-N-VB/7-model --tokenizer_name model-configs/1024-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+0+512-shuffled-N-VB/7-512+0+512-SS-N-1 --do_eval --...
function printElements(arr) { for (let i=0;i<arr.length;i++) console.log(arr[i]); }
package jssim; /** * * @author rodrigo */ import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import org.openimaj.image.MBFImage; import org.openimaj.video.xuggle.XuggleVideo; public class SSIMXuggleVideo{ public int qtdeFrames; ...
package sandbox.either import scala.collection.immutable object Main21 extends App { val either1 = Right(11) val either2 = Right(33) val test: Either[Nothing, Int] = for { a <- either1 b <- either2 } yield a + b import cats.syntax.either._ val a: Either[String, Int] = 3.asRight[String] val b = ...
const crange = document.querySelector(".crange--input"); const moneyL = document.querySelector(".crange--money"); crange.addEventListener("input", (e) => { // Printing Range Value let donation = e.target.value; moneyL.classList.add("animate"); donation == 0 ? (moneyL.innerHTML = `Fiyat. 0`) ...
#include <stdio.h> #include <string.h> int areRotations(char *str1, char *str2) { int size = strlen(str1); char temp[size*2]; strcpy(temp, str1); strcat(temp, str1); if (strstr(temp, str2)) return 1; return 0; } int main() { char string1[] = "abcd"; char string2[] = "dcba"; if(areRotations(str...
SELECT * FROM users_orders WHERE user_id = 1 ORDER BY order_date;
#!/bin/bash # Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights # reserved. Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file. DIR="$( cd "$( dirname "$0" )" && cd .. && pwd )" OUT_PATH="${DIR}/out/docs" $JAVA_HOME/bin/javadoc -Xdoclint:none -windo...
import { json } from 'express' import asyncHandler from 'express-async-handler' import Category from '../models/categoryModel.js' export const addCategory = async(req,res) => { const image = req.file const data = req.body const category = await Category.findOne({name : data.name}) if(!category){ ...
/* * Copyright 2008-2009 MOPAS(Ministry of Public Administration and Security). * * 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 * ...
# Decision Tree # # Create the root node # root_node = Node("Will the person purchase chocolate?") # Create the branch nodes # age_node = Node("Age") salary_node = Node("Salary") consumption_node = Node("Consumption") # Connect each branch node to the root node # root_node.add_children(age_node) root_node.add_chi...
const copyClip = (text: string) => { return navigator.clipboard.writeText(text); }; export { copyClip };
<reponame>pulsar-chem/BPModule<filename>lib/systems/l-phenylalanine.py<gh_stars>0 import pulsar as psr def load_ref_system(): """ Returns l-phenylalanine as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" N 0.7060 ...
import { ICommandProps } from '.' import { client } from '../index' import { randomNumber } from '../utils' export const description = 'ths command will look into the future to answer your yes or no question!' const eightBallResponses = [ 'It is certain.', 'It is decidedly so.', 'Without a doubt.', 'Y...
# python3 md070crosslevenshteinPhon.py ../../../xdata/y2016riga-cog-ukru/pattr-internet-ua-dict07.txt ../../../xdata/y2016riga-cog-ukru/pattr-internet-ru-dict2.txt ua ru >../../../xdata/y2016riga-cog-ukru/pattr-internet-crosslev-ua-ru07.txt # python3 md070crosslevenshteinPhonV02TopCand.py ../../../xdata/y2016riga-cog-u...
<filename>main.cpp<gh_stars>0 #include "pop3_ssl/pop3_ssl.hpp" #include <iostream> #include <regex> #include <urlmon.h> #include <sstream> #pragma comment(lib, "urlmon.lib") std::string pop3_host = "your pop3 host", pop3_port = "your pop3 port", //Usually 995 pop3_user = "your pop3 user", pop3_pass = "<PASSWORD...
import keras from keras.layers import Embedding, LSTM, Dense, Dropout from keras.models import Sequential # Define model model = Sequential() model.add(Embedding(vocab_size, output_dim=128)) model.add(LSTM(1024)) model.add(Dropout(0.3)) model.add(Dense(vocab_size, activation='softmax')) # Compile and fit model.compil...
#!/bin/bash cloned_dir=`dirname $0` # NOTE: abs path needed just bc of some bash errors abs_path=`realpath $cloned_dir` cd $cloned_dir echo "Loading generated configuration" source "$cloned_dir/.env" echo "Running temporary container for database user set up" temp_network=temp_network temp_name=temp_name echo "Creat...
directories=(/scratch/2020-04-22/bio-zhaoy1/01.Rawdata/X101SC20030251-Z01-F004/00.Rawdata /scratch/2020-04-22/bio-zhaoy1/01.Rawdata/X101SC20030251-Z01-F005/00.Rawdata /scratch/2020-04-22/bio-zhaoy1/01.Rawdata/X101SC20030251-Z01-J002/00.Raw_data) for directory in ${directories[@]} do #directory=/home/shareDir/bio-share...
#!/bin/sh export OPENRAM_TECH="/home/mrg/openram/technology:/home/mrg/data/sky130_fd_bd_sram/tools/openram/technology" cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sky130_fd_bd_sram__openram_dp_cell.mag . cp /home/mrg/data/sky130_fd_bd_sram/tools/openram/technology/sky130/maglef_lib/sk...
from FSM import * from myhdl import * import random @block def tbFSM(): # Entradas OPcode = Signal(modbv(35)[8:0]) #si se coloca 35 realiza store, 3 load y otra cosa fecth/decode. RAMdone = Signal(modbv(0)[1:0]) #EstadoPresente = Signal(modbv(0)[2:0]) #EstadoPresente = Signal(Estado.Fetc...
#!/usr/bin/env bash # Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
<gh_stars>0 FactoryGirl.define do factory :review do new "MyString" end end
#!/bin/bash source bin/util/toolbox.sh build_image() { error_message="temporary docker image failed to build." success_message="temporary docker image successfully built." cmd='docker build . --rm -t tmp:build' INFO "build temporary docker image" && eval_command -f "$error_message" -s "$success_message" "...
<reponame>3Xpl0it3r/loki-operator<filename>pkg/client/clientset/versioned/typed/lokioperator.l0calh0st.cn/v1alpha1/fake/fake_promtail.go /* Copyright The Kubernetes Authors. 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...
#include <iostream> #include <string> #include <cctype> char caesarCipher(char c, int key) { char A = (islower(c)) ? 'a' : 'A'; c = (isalpha(c)) ? (c - A + (26 - key)) % 26 + A : c; return c; } int main() { std::string input; int key; std::cout << "Enter a line of text:\n"; std::getline(s...
package cyclops.pure.typeclasses.foldable; import cyclops.function.higherkinded.Higher; import cyclops.pure.arrow.MonoidK; import cyclops.function.companion.Monoids; import cyclops.container.control.Option; import cyclops.container.immutable.impl.LazySeq; import cyclops.container.immutable.impl.Seq; import cyclops.fun...
package admin import ( adminHandlers "github.com/backpulse/core/handlers/admin" "github.com/gorilla/mux" ) func handleConstants(r *mux.Router) { r.HandleFunc("/constants/languages", adminHandlers.GetLanguages).Methods("GET") }
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class ModifyCoursesTableColorColumn extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('cours...
function compareStrings(str1, str2) { let distinctChars = new Set(); for (let char of str1) { distinctChars.add(char); } for (let char of str2) { if (distinctChars.has(char)) return false; } return true; }
#!/bin/bash cd /home/spinningtop/ && python3 -u ./spinningtop.py
<reponame>smagill/opensphere-desktop package io.opensphere.mantle.data.geom.impl; import java.awt.Color; import java.util.List; import edu.umd.cs.findbugs.annotations.NonNull; import io.opensphere.core.model.time.TimeSpan; import io.opensphere.core.util.lang.BitArrays; import io.opensphere.mantle.data.geom.Ca...
#!/bin/bash fw_depends() { for dependency in "$@"; do if ! command -v "$dependency" &> /dev/null; then echo "Installing $dependency..." sudo apt-get install -y "$dependency" # Assuming the package manager is apt if [ $? -ne 0 ]; then echo "Failed to inst...
<gh_stars>100-1000 // Copyright 2009-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // ospray #include "MultiDevice.h" #include "MultiDeviceRenderTask.h" #include "camera/registration.h" #include "fb/LocalFB.h" #include "fb/registration.h" #include "geometry/registration.h" #include "lights/registration...
package gov.cms.bfd.server.war.stu3.providers; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.Timer; import com.newrelic.api.agent.Trace; import gov.cms.bfd.model.codebook.data.CcwCodebookVariable; import gov.cms.bfd.model.rif.HospiceClaim; import gov.cms.bfd.model.rif.HospiceClaimLine; import...
package io.opensphere.subterrain.xraygoggles.ui; import java.awt.Color; import java.util.List; import java.util.Observable; import java.util.Observer; import io.opensphere.core.api.DefaultTransformer; import io.opensphere.core.data.DataRegistry; import io.opensphere.core.geometry.Geometry; import io.opensph...
#!/bin/sh -e DIRECTORY=$(dirname "${0}") SCRIPT_DIRECTORY=$( cd "${DIRECTORY}" || exit 1 pwd ) # shellcheck source=/dev/null . "${SCRIPT_DIRECTORY}/../configuration/project.sh" if [ "${1}" = --help ]; then echo "Usage: ${0} [--ci-mode]" exit 0 fi CONCERN_FOUND=false CONTINUOUS_INTEGRATION_MODE=false...