text
stringlengths
1
1.05M
<filename>packages/staker/src/i18n.js export const i18nValidator = { 'en': { needAddr: 'Please pass the index/address or define SAIHUBOT_VALIDATOR first', query: 'Query validator\'s balance...', accountBalance: 'Account Balance', validatorBalance: '(Eth2) Validator Balance', xdaiBalance: 'xDai Cha...
package interpreter.interpreter; import interpreter.ast.Node; /** * Created by Thomas on 2-3-2015. */ public interface Interpreter { public void interpret(final Node node); }
import React, {Component} from "react"; import Fold from "pawjs/src/components/fold"; import ReactLogo from "src/resources/images/reactjs.svg"; import SmallImage from "src/resources/images/mario-large.png?sizes=100w+200w+400w+800w&placeholder"; import Picture from "pawjs/src/components/picture/picture"; // import axios...
<reponame>desrtfx/AdventOfCode2017 /** * */ /** * @author desrtfx * */ package day05;
#!/usr/bin/env bash # Copyright 2019 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
#!/usr/bin/env bash DELAY=0.02
#!/bin/bash -eE SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P) # shellcheck source=env.sh . "${SCRIPT_DIR}/env.sh" echo "INFO: setup TON node..." SETUP_USER="$(id --user)" SETUP_GROUP="$(id --group)" echo "INFO: Getting my public IP..." until [ "$(echo "${MY_ADDR}" | grep "\." -o | wc -l)" -eq 3 ] ; do...
Advanced Bash-Scripting Guide: Prev Chapter 16. External Filters, Programs and Commands Next 16.4. Text Processing Commands Commands affecting text and text files sort File sort utility, often used as a filter in a pipe. This command sorts a text stream or file forwards or backwards, or according to various keys or ch...
<filename>C2CRIBuildDir/projects/C2C-RI/src/jameleon-test-suite-3_3-RC1-C2CRI/jameleon-core/src/java/net/sf/jameleon/util/TemplateProcessor.java<gh_stars>0 /* Jameleon - An automation testing tool.. Copyright (C) 2003-2007 <NAME> (<EMAIL>) This library is free software; you can redistribute it and/or ...
#!/bin/sh /usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.panic.Transmit.plist" -c 'Delete :CustomS3UploadHeaders2' /usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.panic.Transmit.plist" -c 'Add :CustomS3UploadHeaders2 array' /usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.panic.Transmit.plist" -c...
//=============================================================================== // @ IvCatmullRom.cpp // // CatmullRom spline // ------------------------------------------------------------------------------ // Copyright (C) 2008-2015 by <NAME> and <NAME>. // All rights reserved. // // Use of this source code is gov...
package com.didi.drouter.page; import static androidx.fragment.app.FragmentPagerAdapter.BEHAVIOR_SET_USER_VISIBLE_HINT; import static com.didi.drouter.page.IPageRouter.IPageObserver.CHANGED_BY_SHOW; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.f...
/******************************************************************************* * Copyright 2016 <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/l...
def generate_combinations(letters): combs = [] # Base case if len(letters) == 1: for letter in letters: combs.append(letter) else: for letter in letters: subLetters = [x for x in letters if x != letter] subCombs = generate_combinations(subLett...
require 'fog/core/model' module Fog module OracleCloud class Database class Backup < Fog::Model identity :db_tag, :aliases=>'dbTag' attribute :backup_complete_date, :aliases=>'backupCompleteDate' attribute :status attribute :database_id def completed? ...
<filename>projects/ngx-magic-table/src/public_api.ts import { from } from 'rxjs'; /* * Public API Surface of ngx-magic-table */ export * from './lib/ngx-magic-table/ngx-magic-table.component'; export * from './lib/ngx-column-template/ngx-column-template.component'; export * from './lib/ngx-magic-table.module'; expo...
#!/bin/sh echo "import Plutus.Contracts.Game" echo "import Ledger.Ada" echo "args = LockParams { secretWord = \"eagle\", amount = lovelaceValueOf 90 }" echo "import Data.Aeson" echo "import Data.ByteString.Lazy.Char8 as BSL" echo "BSL.putStrLn $ encode args"
GEVENT = False import multiprocessing from optparse import OptionParser arg_parser = OptionParser() arg_parser.add_option("-a", "--agency", dest="agency", action="store", type="string", default=None, help="Specify an agency to which to limit the dump.") arg_parser.add_option("-d", "--docket", dest="docket", action="s...
/* * Copyright (C) 2012-2014 <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 agree...
<filename>src/test/sdg/equations/NonLinear3.java package sdg.equations; import sdg.Equation; /** * Represents the SDE: * dX(t) = [sin(X(t))^3 * cos(X(t)) - sin(X(t))^2] dt - sin(X(t))^2 dW(t) */ public class NonLinear3 extends Equation { public NonLinear3(double x0, double t0, double tN) { super(x0, ...
/* * @Descripttion: 运维管理 * @version: 1.0.0 * @Author: LSC * @Date: 2021-06-17 10:31:01 * @LastEditors: LSC * @LastEditTime: 2021-06-17 10:33:18 */ import view from '@/components/view.vue' export default { title: '运维管理', path: 'mochaITOM', name: 'mochaITOM', component: view, children: [ ...
/* * 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 ...
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import UserPlusSvg from '@rsuite/icon-font/lib/legacy/UserPlus'; const UserPlus = createSvgIcon({ as: UserPlusSvg, ariaLabel: 'user plus', category: 'legacy', displayName: 'UserPlus' }); export default UserPlus;
#!/bin/bash cd `dirname $0` sfctl application upload --path SmokeTestCSharp --show-progress sfctl application provision --application-type-build-path SmokeTestCSharp sfctl application upgrade --app-id fabric:/SmokeTestCSharp --app-version $1 --parameters "{}" --mode Monitored cd -
<filename>index.js var crypto = require('crypto') var randomBytesClassic = crypto.randomBytes module.exports = function (seed) { randomBytes.seed = seed = seed || randomBytesClassic(32) randomBytes.currentSeed = seed return randomBytes function randomBytes (n) { var result = Buffer.allocUnsafe(n) var...
def selection_sort(arr): n = len(arr) for i in range(n): min_idx = i for j in range(i+1, n): if arr[min_idx] > arr[j]: min_idx = j arr[i], arr[min_idx] = arr[min_idx], arr[i] arr = [4, 5, 13, 2, 9, 7] selection_sort(arr) print(arr) # Output: [2, 4, 5, 7, 9, 13]
<reponame>kathesama/gaugemeter-app import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { DispositivoPageRoutingModule } from './dispositivo-routing.module'; import { DispositivoPag...
/* * Copyright 2015-present Open Networking Foundation * * 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...
// Use parseInt() in the convertToInteger function so it converts the input string str into an integer, and returns it. // convertToInteger should use the parseInt() function // convertToInteger("56") should return a number // convertToInteger("56") should return 56 // convertToInteger("77") should return 77 // conver...
import { Component, getComponentByDomNode, startComponents } from '@gondel/core'; import { createElement } from 'react'; import { createGondelReactLoader, GondelReactComponent } from './GondelReactComponent'; const createComponentStateHTML = (initialState: object = {}) => { const tree = document.createElement('div');...
package org.mammon.messaging; public interface PublicationConverter<T extends Identifiable> { Identifiable convert(T object, String newIdentity); }
#!/bin/bash # This script deploys a dev version of the extension to the dev environment for development / testing purposes. # It also shares / installs it into the given Azure organization. # Arguments: # $1 - Extension version # $2 - Organization that will be shared the extension # Handle arguments INPUT_PARAM_AZ_EX...
<reponame>abin1525/rose-edg<gh_stars>1-10 #ifndef PAR_PRO_SPOT_TGBA_HH #define PAR_PRO_SPOT_TGBA_HH #include <cassert> //CodeThorn includes #include "ParProSpotState.h" #include "ParProSpotSuccIter.h" #include "StateRepresentations.h" // BOOST includes #include "boost/unordered_set.hpp" //SPOT includes #include "tg...
int maxCoin(int M, int denominations[], int n) { int arr[n]; // initialize array with 0 for (int i = 0; i < n; i++) arr[i] = 0; for (int i = n - 1; i >= 0; i--) { // compute no. of coins to get amount M arr[i] = M / denominations[i]; // reduce amoun...
#!/bin/sh if [ "$IS_CONTAINER" != "" ]; then go mod vendor go mod verify git diff --exit-code else podman run --rm \ --env IS_CONTAINER=TRUE \ --volume "${PWD}:/go/src/github.com/openshift/installer:z" \ --workdir /go/src/github.com/openshift/installer \ docker.io/openshift/origin-release:golan...
var execSync = require('child_process').execSync; var execAsync = require('child_process').exec; var fs = require('fs'); var md5 = require('js-md5'); var async = require('async'); var http = require('http'); var https = require('https'); var path = require('path'); var urlencode = require('urlencode'); const debug = re...
unset IFS set -o errexit -o nounset -o noglob export PATH=/bin:/sbin:/usr/bin:/usr/sbin export LC_ALL=C
<reponame>uwplse/legato package edu.washington.cse.instrumentation.analysis; import java.util.HashSet; import java.util.Set; import soot.SootMethod; import soot.jimple.toolkits.callgraph.Edge; import soot.jimple.toolkits.callgraph.EdgePredicate; public class ReflectionEdgePredicate implements EdgePredicate { public...
from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.contrib.auth.models import User class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) follows = models.ManyToManyField( "self", related_name="...
<filename>pkg/pipeline/run.go /* Copyright 2021 The Crossplane 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 copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
/* * Copyright (C) 2013 The Android Open Source Project * * 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 app...
from tempfile import NamedTemporaryFile from datetime import datetime, timedelta from pdfminer.high_level import extract_text import urllib import urllib.request import shutil import json import os import sys BASE_URL = 'https://oklahoma.gov/content/dam/ok/en/covid19/documents/weekly-epi-report' REPORT = '%Y.%m.%d W...
def factorial(num): if num == 0: return 1 else: return num * factorial(num - 1)
/* * 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 ...
public static void CountOccurencesInString(string s) { string[] words = s.Split(' '); Dictionary<string, int> counts = new Dictionary<string, int>(); foreach(string w in words) { if(counts.ContainsKey(w)) counts[w]++; else counts[w] = 1; } var ...
// -!- C++ -!- ////////////////////////////////////////////////////////////// // // System : // Module : // Object Name : $RCSfile$ // Revision : $Revision$ // Date : $Date$ // Author : $Author$ // Created By : <NAME> // Created : Sun Aug 26 20:36:02 2018 // Last...
<filename>models/chims_models/evaluation.js let mongoose = require('mongoose'); // Evaluation Schema let evaluationSchema = mongoose.Schema({ EvaluationID: { type: Number }, CaseID: { type: Number }, PatientID: { type: Number }, EvalType: { type: String }...
(function(){ 'use strict'; angular .module('app') .factory('Interceptador', interceptador); interceptador.$inject = ["$q", "$window", "$location", "toaster"]; function interceptador($q, $window, $location, toaster) { var service = { request : request, responseError : responseEr...
import { NativeTouchEvent, GestureResponderEvent } from 'react-native'; export function extractSingleTouch(e: GestureResponderEvent): (NativeTouchEvent | null) { const nativeEvent = e.nativeEvent; const touches = nativeEvent.touches; const changedTouches = nativeEvent.changedTouches; const hasTouches = touches...
package com.peony.entrance.tcp_protobuf; import com.peony.core.control.BeanHelper; import com.peony.core.control.request.RequestService; import com.peony.core.data.entity.account.MessageSender; import com.peony.core.net.packet.NettyPBPacket; import com.peony.common.tool.thread.ThreadPoolHelper; import io.netty.channel...
<gh_stars>1-10 package com.auta; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.b...
<filename>quotes/src/main/java/se/callista/quotes/QuotesApplication.java package se.callista.quotes; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.d...
import React from 'react'; import { Switch, Route, Redirect } from 'react-router-dom'; import viewsRoutes from 'views/routes'; const Routes = (): JSX.Element => { return ( <Switch> {viewsRoutes.map((item, i) => ( <Route key={i} exact path={item.path} render={() => item.renderer()} /> ))} ...
extension UIColor { static func HexToColor(hexString: String) -> UIColor? { var formattedHexString = hexString.trimmingCharacters(in: .whitespacesAndNewlines) if formattedHexString.hasPrefix("#") { formattedHexString.remove(at: formattedHexString.startIndex) } va...
<gh_stars>1-10 import request from "../utils/request"; // const qs = require('querystring') const statisApi = { statis: "/api/dashboard/static" }; export function getStatisApi() { return request({ url: statisApi.statis, method: "get", headers: { "Content-Type": "application/json;charset=UTF-8" ...
#!/bin/sh SCRIPT="$0" while [ -h "$SCRIPT" ] ; do ls=`ls -ld "$SCRIPT"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then SCRIPT="$link" else SCRIPT=`dirname "$SCRIPT"`/"$link" fi done if [ ! -d "${APP_DIR}" ]; then APP_DIR=`dirname "$SCRIPT"`/.. APP_D...
#ifndef OOP_ASSIGNMENT2_USERLIST_H #define OOP_ASSIGNMENT2_USERLIST_H #include "User.h" #include "Book.h" class UserList { private: User* users_; int capacity_; int usersCount_; public: UserList(int); UserList(const UserList&); void addUser(User);// at the end of the array. User& searchUse...
fn md5_i(a: u32, b: u32, c: u32, d: u32, x: u32, s: u32, t: u32) -> u32 { ((b & c) | ((!b) & d)).wrapping_add(a).wrapping_add(x).wrapping_add(t).rotate_left(s) } struct MD5 { state: [u32; 4], } impl MD5 { fn process_block(&mut self, block: &[u8]) { let mut x = [0u32; 16]; for i in 0..16 { ...
class Chef::Knife::Ssh def action_nodes(n) @action_nodes=n end def fix_longest(l) @longest=l end end
pushd . # pip install -r misc/requirements.txt export FLASK_APP=app.py flask run popd
<gh_stars>10-100 ///////////////////////////////////////////////////////////////////////////// // Name: src/gtk1/mdi.cpp // Purpose: // Author: <NAME> // Copyright: (c) 1998 <NAME> // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compi...
package io.opensphere.controlpanels.layers; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.function....
#!/bin/bash sudo yum update -y sudo yum install docker -y sudo systemctl enable docker sudo systemctl start docker sudo hostnamectl set-hostname ${NAME}
#!/bin/sh set -e bundler install bundler exec jekyll build ruby sitemap.rb rm -rf htmltest mkdir -p htmltest # our baseUrl is /docs so we need to create that structure for htmltest # otherwise it would fail to find absolute links like /docs/3.5 cp -a _site htmltest/docs # do not deploy file generated by jekyll-redire...
<gh_stars>10-100 /* Copyright © 2021 The OpenEBS 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 copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
zip -r deploy.zip \ css \ img \ webfonts \ \ common.js \ config.js \ elm.min.js \ index.js \ live_config.js \ twitch-ext.min.js \ viewer.js \ \ config.html \ live_config.html \ panel.html
<gh_stars>0 import React from 'react' import PropTypes from 'prop-types' import { makeStyles } from '@material-ui/core/styles' import { Paper } from '@material-ui/core' import TextProperty from './TextProperty' import HostilityProperty from './HostilityProperty' const useStyles = makeStyles(theme => ({ paper: { ...
<reponame>neuroelf/dermodelphi import React, { Component } from 'react'; import { BLOCKS_ADDCAT, NEWCATEGORY_ACAT_NEW } from '../Constants' export default class DelphiNewCategoryASelect extends Component { constructor(props) { super(props); this.state = { }; this.handleChange = thi...
import * as React from 'react'; import styles from './FunctionBasedStyled.module.scss'; import { IFunctionBasedStyledProps } from './IFunctionBasedStyledProps'; import { Checkbox, PrimaryButton, Toggle, IToggleStyleProps, IToggleStyles, ICheckboxStyleProps, IButtonStyles, ICheckboxStyles } from "office-ui-fabric-react"...
<reponame>Arbolista/spike /*global module require*/ var webpack_config = require('./client/config/test/webpack'); module.exports = function (config) { config.set({ browsers: ['PhantomJS'], files: [ 'test.client.js' ], basePath: './', frameworks: [ 'jasmine' ], preprocessors: ...
<filename>WebExtension/config.js 'use strict'; var config = {}; config.map = { number: [ 'period', 'resetPeriod', 'initialPeriod', 'notificationTime', 'notificationTruncate', 'notification.sound.media.default.type', 'notification.sound.media.custom0.type', 'notification.sound.media.custom1.type', 'notif...
<reponame>ndinakar/Phase4-SCSB-Gateway<gh_stars>1-10 package org.recap.model; import lombok.Getter; import lombok.Setter; import java.util.List; /** * Created by hemalathas on 1/11/16. */ @Getter @Setter public class ItemResponseInformation { private String patronBarcode; private List<String> itemBarcodes...
package stereoscope import ( "github.com/anchore/stereoscope/pkg/image" ) type config struct { Registry image.RegistryOptions AdditionalMetadata []image.AdditionalMetadata Platform *image.Platform }
<filename>renard-wx/functions/adminUpUser/index.js // 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() const db = cloud.database() const _ = db.command // 云函数入口函数 exports.main = async (event, context) => { var id = event.id var userId = event.userId try { return await db.collection('jingzhi-user')...
<filename>v15.4/genEntry.js "use strict"; const fs = require('fs'); const path = require('path'); const modulePaths = [ './app/common/js/components', './app/common/js/basecomponent' ]; function getDirnames(modulePath) { const filenames = fs.readdirSync(path.join(__dirname, modulePath), 'utf8'); const dirname...
<reponame>landawn/ProjectEuler package com.landawn.projecteuler._100; import static org.junit.Assert.assertEquals; import java.util.Set; import org.junit.Test; import com.landawn.abacus.util.Array; import com.landawn.abacus.util.stream.IntStream; import com.landawn.projecteuler.TestBase; /** * * @...
#! /bin/bash cd client || exit go test -v .
use Blackfire\Player\Guzzle\StepConverter; use Blackfire\Player\Step\FollowStep; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; class CustomStepConverter implements StepConverter { public function convertStep($step) { if ($step instanceof FollowStep) { $url = $step->getUrl(); ...
<gh_stars>0 /* * Telemetry.c * * Created on: Dec 18, 2020 * Author: Théo */ #include "Telemetry.h" #include "../Data_Logger/Data_logger.h" #define MAX_TRANSMIT_SPEED 10000 //Permet de rajouter une limite de vitesse (utile dans une précédente application de ce module) #define PERIODE_1_OCTET (1000000 ...
const { resolve } = require('path') const postcss = require('rollup-plugin-postcss') module.exports = { rollup(config) { config.plugins.push( postcss({ config: { path: './postcss.config.js' }, extensions: ['.css'], minimize: true, include: ['./src/styles/in...
/** * ST STTS751 temperature Sensor I2C extension for makecode. * From microbit/micropython Chinese community. * https://github.com/makecode-extensions */ /** * ST STTS751 temperature Sensor I2C extension */ //% weight=100 color=#4090e0 icon="\uf2c7" block="STTS751" namespace STTS751 { export enum STTS751_T_UNI...
def find_anagrams(word_list): anagrams = [] for i in range(len(word_list)-1): for j in range(i+1, len(word_list)): if sorted(word_list[i]) == sorted(word_list[j]): anagrams.append((word_list[i],word_list[j])) return anagrams
def mean(list): total_sum = 0 for num in list: total_sum += num mean = total_sum/len(list) return mean list = [2.3, 3.7, 4.9] print(mean(list))
'use strict'; /*global require*/ var defaultValue = require('terriajs-cesium/Source/Core/defaultValue'); var defined = require('terriajs-cesium/Source/Core/defined'); var knockout = require('terriajs-cesium/Source/ThirdParty/knockout'); var MenuBarItemViewModel = function(options) { this.label = options.label; ...
#!/bin/sh # # Configure a host as a client to the Galaxy CernVM-FS repositories. # # USAGE # # sudo ./cvmfs-galaxy-client-setup.sh -v <PROXY_ADDRESS> # # The above may take about 2 minutes to run. After which the Galaxy # CernVM-FS repositories can be accessed. For example, # # ls /cvmfs/data.galaxyproject.org ...
"""Farcy class test file.""" from __future__ import print_function from collections import namedtuple from datetime import datetime from farcy import (Config, FARCY_COMMENT_START, Farcy, FarcyException, UTC, main, no_handler_debug_factory) from mock import MagicMock, call, patch from github3.excepti...
#!/bin/sh # Create Default RabbitMQ setup ( sleep 10 ; \ # Create users # rabbitmqctl add_user <username> <password> rabbitmqctl add_user ${RABBIT_USERNAME} ${RABBIT_PASSWORD} ; \ # Set user rights # rabbitmqctl set_user_tags <username> <tag> rabbitmqctl set_user_tags ${RABBIT_USERNAME} administrator ; \ # Create v...
/** Feature Actions plugin classes. */ package io.opensphere.featureactions;
def remove_space(string): words = string.split() return ' '.join(words) # testing input_string = "This string has extra whitespace." result = remove_space(input_string) print(result) # Output: "This string has extra whitespace."
import Skillbar from './Skillbar'; export default Skillbar;
package Dao; import models.Word; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.sql2o.Connection; import org.sql2o.Sql2o; import static org.junit.Assert.*; /** * Created by Guest on 1/31/18. */ public class Sql2oWordDaoTest { private Connection connection; private Sql2oW...
package benchmarks.CLEVER.Sub.Eq; public class newV { private int foo(int a, int b) { int c=b-a; return c; } int main() { return foo(900,5); } }
package cn.home1.cloud.config.server.util; import static lombok.AccessLevel.PRIVATE; import lombok.NoArgsConstructor; @NoArgsConstructor(access = PRIVATE) public abstract class Consts { public static final String DATA_DIRECTORY = System.getProperty("user.home") + "/data/config-server"; public static final ...
int add_numbers(int a, int b){ return a + b; }
import { getFlatLayerMock } from './sketch-layer.component.mock'; import { SketchData } from './sketch.service'; export function getSketchDataMock() { return { previews: [{}], pages: [ getFlatLayerMock(9) ] } as SketchData; }
<gh_stars>1-10 const httpStatus = require('http-status'); const ElasticsearchService = require('../services/elasticsearch.service'); const APICatalogService = require('../services/api-catalog.service'); /** * Namespace index search * see https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api...
# Copyright 2014 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. # # This script should not be run directly but sourced by the other # scripts (e.g. sysroot-creator-trusty.sh). Its up to the parent scripts # to define cert...
package com.nike.cerberus.hystrix; import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext; import com.nike.riposte.server.http.RequestInfo; import com.nike.riposte.server.http.ResponseInfo; import com.nike.riposte.server.http.filter.RequestAndResponseFilter; import io.netty.channel.ChannelHandlerContext...
<reponame>lt123456/6hc /** Name : ajaxPost Author : kingthy Email : <EMAIL> Blog : http://www.cnblogs.com/kingthy/ Version : 1.0.0 License : MIT,GPL licenses. **/ jQuery.fn.extend({ ajaxPost : function(settings){ if(typeof settings == 'function'){ success = arguments[0]; }else{ success = null; } ...
def calculate_carry(a, k, initial_carry): i = len(a) - 1 carry = initial_carry while i >= 0: summ = carry + ord(a[i]) - ord('0') carry = summ // k i -= 1 return carry