text
stringlengths
1
1.05M
<filename>module_account/src/main/java/arouter/dawn/zju/edu/module_account/ui/modify_pickname/ModifyPicknameActivity.java package arouter.dawn.zju.edu.module_account.ui.modify_pickname; import android.view.MenuItem; import com.alibaba.android.arouter.facade.annotation.Route; import arouter.dawn.zju.edu.module_accou...
using System; public class Citizen { private string _demCitizenValue; public string DemCitizenValue { get { return _demCitizenValue; } set { if (string.Equals(value, "yes", StringComparison.OrdinalIgnoreCase) || string.Equals(value, "no", StringComparison.OrdinalIgnoreC...
module.exports = { images: { domains: ['images.dog.ceo'], }, };
<reponame>googleapis/googleapis-gen<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/lic...
import dialogflow import os from google.api_core.exceptions import InvalidArgument # Set up DialogFlow session and credentials DIALOGFLOW_PROJECT_ID = "[PROJECT_ID]" DIALOGFLOW_LANGUAGE_CODE = 'en-US' os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "[CREDENTIALS]" SESSION_ID = "[SESSION_ID]" def detect_intents_texts(...
<reponame>deyihu/maptalks-echarts-gl /** * Provide WebGL layer to zrender. Which is rendered on top of qtek. * * * Relationship between zrender, LayerGL(renderer) and ViewGL(Scene, Camera, Viewport) * zrender * / \ * LayerGL LayerGL * (renderer) (renderer) * / \ * V...
// AgoraHookingDlg.h : header file // #include "AGButton.h" #pragma once class CAssistantBox; class CExtendAudioFrameObserver; #include "CHookPlayerInstance.h" // CAgoraHookingDlg dialog class CAgoraHookingDlg : public CDialogEx { // Construction public: CAgoraHookingDlg(CWnd* pParent = NULL); // standard constru...
#include <stdio.h> int main() { int i; for (i=1; i<200; i++) { if (i % 7 == 0) printf( "%d ", i ); } return 0; }
#!/usr/bin/env bash # Copyright 2019 curoky(cccuroky@gmail.com). # # 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...
import sqlite3 def update_student(id): conn = sqlite3.connect('students.db') cur = conn.cursor() cur.execute("UPDATE students SET name='John Doe' WHERE id=?", (id, )) conn.commit() conn.close() update_student(1)
<reponame>archiloque/Tumblr-Machine require 'sequel/extensions/pg_array' require 'sequel/extensions/pg_array_ops' Sequel.extension :core_extensions Sequel.extension :pg_array_ops class TumblrMachine DATABASE.extension :pg_array class Tag < Sequel::Model end class Tumblr < Sequel::Model one_to_many :post...
class Timezone { constructor(zoneName) { this.zoneName = zoneName; } getCurrentTime() { // Get the current time based on the time zone } setTimezone(timezoneName) { // Set the time zone to the passed in name this.zoneName = timezoneName; } }
<filename>doc_test.go package numtow import ( "fmt" "github.com/gammban/numtow/lang" "github.com/gammban/numtow/lang/en" "github.com/gammban/numtow/lang/ru" "github.com/gammban/numtow/lang/ru/gender" ) func ExampleMustString_default() { fmt.Println(MustString("8691705", lang.EN, en.FormatDefault)) // Output: ...
<gh_stars>0 export default () => ` <div class="profile-card-aligner"> <div class="profile-card"> <section class="upperProfileContainer"> <div class="upper-left"> <img id="user-photo" src="" alt="profile picture"> </div> <div class="upper-right"> <button id="otherBack"><i class="fas fa-chev...
class MaterialProperties: def __init__(self): self.properties = {} def set_property(self, name, value): self.properties[name] = value def get_property(self, name): return self.properties.get(name, None) def property_exists(self, name): return name in self.properties #...
class UserInput: def __init__(self, input): self.input = input def process(self): output = "" if self.input == 42: output = "The answer to the Ultimate Question of Life, the Universe and Everything!" else: output = "Error. Unknown input." return o...
<reponame>chenggangpro/alibaba-rsocket-broker package com.alibaba.rsocket.listen.impl; import com.alibaba.rsocket.RSocketAppContext; import com.alibaba.rsocket.listen.RSocketListener; import com.alibaba.rsocket.observability.RsocketErrorCode; import io.netty.handler.ssl.OpenSsl; import io.netty.handler.ssl.SslContextB...
def fibonacci(n): if n<0: print("Incorrect input") # First Fibonacci number is 0 elif n==0: return 0 # Second Fibonacci number is 1 elif n==1: return 1 else: return fibonacci(n-1)+fibonacci(n-2)
import {Destination} from "./Destination"; import {Operator} from "./Operator"; export interface Leg { origin: Destination; destination: Destination; departure: Date; arrival: Date; hint: null; operator: Operator; mode: string; public: boolean; }
#!/bin/sh # Nagios plugin - simpler ping that doesn't leave zombie processes # This exists only because in December 2020, after upgrading the OS # distro, nagios, its plugins and *everything else*, the check_ping # command started leaving 1000+ zombies daily. This shell script doesn't. STATE_OK=0 STATE_WARNING=1 ST...
package com.breakersoft.plow.test.dao; import static org.junit.Assert.*; import javax.annotation.Resource; import org.junit.Test; import com.breakersoft.plow.Folder; import com.breakersoft.plow.dao.FolderDao; import com.breakersoft.plow.dao.ProjectDao; import com.breakersoft.plow.test.AbstractTest; public class Fo...
#!/usr/bin/env bash . lib.sh # https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html execute_get_request _nodes
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import ProjectSvg from '@rsuite/icon-font/lib/file/Project'; const Project = createSvgIcon({ as: ProjectSvg, ariaLabel: 'project', category: 'file', displayName: 'Project' }); export defau...
<gh_stars>0 import Listr from 'listr'; import buildApiReference from './api-reference'; import buildSearchIndex from './search-index'; const tasks = new Listr( [buildApiReference, buildSearchIndex] // { renderer: 'verbose' } ); export default tasks; if (!module.parent) { tasks.run().catch(err => { console...
def find_mode(list): max_count = 0 mode = list[0] count = {} for item in list: if (item in count): count[item] += 1 else: count[item] = 1 if (count[item] > max_count): max_count = count[item] mode = item return mode
#!/bin/sh find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t...
require "test_helper" class Houston::Slack::SlackControllerTest < ActionController::TestCase def setup @routes = Houston::Slack::Engine.routes end context "When Slack posts a slash command event, it" do setup do @calls = 0 Houston::Slack.config.slash("test") { @calls += 1 } stub(Hou...
<reponame>quintel/etengine # Presents information about the capacity and costs of producers. class ProductionParametersSerializer # Creates a new production parameters serializer. # # scenario - The Scenario whose node details are to be presented. # # Returns an ProductionParametersSerializer. def initializ...
def common_string(list): count = {} common = list[0] max_count = 1 for i in range(len(list)): element = list[i] if element in count: count[element] += 1 if element not in count: count[element] = 1 if max_count < count[element]: max_coun...
#!/bin/bash # Copyright 2017 Istio 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 ...
import express from 'express'; const route = express.Router(); import cheerio from 'cheerio'; import dayjs from 'dayjs'; dayjs.locale('ko'); import getHTML from '../functions/getHTML.js'; function getDayCount(user){ return new Promise((resolve, reject) => { getHTML(req.params.user) .then((html) => ...
package pir import ( "math" "math/rand" "testing" "time" "github.com/ncw/gmp" "github.com/sachaservan/paillier" ) func setup() { rand.Seed(time.Now().Unix()) } // run with 'go test -v -run TestSharedQuery' to see log outputs. func TestSharedQuery(t *testing.T) { setup() db := GenerateRandomDB(TestDBSize, ...
package com.watayouxiang.mediaplayer.core; public enum Orientation { /** * 竖屏 */ Portrait, /** * 竖屏反向 */ Portrait_Reverse, /** * 横屏 */ Landscape, /** * 横屏反向 */ Landscape_Reverse }
#!/bin/bash source "./helpers.bash" set -e TEST_NET="cilium" function cleanup { gather_files 01-ct ${TEST_SUITE} docker rm -f server client httpd1 httpd2 curl curl2 2> /dev/null || true monitor_stop } trap cleanup EXIT cleanup monitor_start logs_clear docker network inspect $TEST_NET 2> /dev/null || { docker...
<reponame>andrewvo89/tempnote<filename>firebase/functions/src/scheduled-functions/index.ts<gh_stars>1-10 import Firebase from '../utils/firebase'; import Firestore from '../utils/firestore'; import Note from '../models/note'; import Statistic from '../models/statistic'; import functions = require('firebase-functions');...
<gh_stars>0 /* * Jira Ticket: * Created Date: Wed, 9th Dec 2020, 08:09:21 am * Author: <NAME> * Email: <EMAIL> * Copyright (c) 2020 The Distance */ import React, {useState} from 'react'; import {View, Platform, Text, ActivityIndicator} from 'react-native'; import {ScaleHook} from 'react-native-design-to-componen...
import { Injectable } from '@angular/core'; import { DataLayerRule, DataLayerConfig, DataLayerObserver, LogEvent, LogAppender, OperatorOptions, DataLayerTarget } from '@fullstory/data-layer-observer'; import { Subject } from 'rxjs'; import { DataLayerService } from './datalayer.service'; class ComposerAppender impleme...
$.ajaxSetup({ headers:{ 'X-CSRF-TOKEN' : $('meta[name="csrf-token"]').attr('content') } }); function RemoveRow(id, url){ if(confirm('Xoa cai nay??')){ $.ajax({ type: 'DELETE', datatype: 'JSON', data: {id}, url:url, success: functio...
<filename>src/main/java/pe/com/optical/middleware/crm/repository/TipoRepository.java package pe.com.optical.middleware.crm.repository; import java.util.List; import pe.com.optical.middleware.crm.domain.TipoBE; public interface TipoRepository extends BaseRepository<TipoBE, Long> { List<TipoBE> obtenerTiposPorConcept...
#!/usr/bin/env bash RED=`tput setaf 1` GREEN=`tput setaf 2` YELLOW=`tput setaf 3` NOCOLOR=`tput sgr0` BASEDIR=$(dirname "$0") module_name=$1 module_package_name=$2 SOURCE=./$BASEDIR/template DEST=./$BASEDIR/../../${module_name} cp -r ${SOURCE} ${DEST} find $DEST -name '*.*' -exec sed -i -e "s/#module_name/$module_...
#!/bin/bash cd weboob source env/bin/activate args=`while read x ; do echo $x ; done` python py/operations.py << EOF $args EOF
def parse_words(article): article_words = [] words = article.split() for word in words: if word not in article_words: article_words.append(word) return article_words article_words = parse_words(article) print(article_words)
arr = [2, 3, 2, 4, 5, 6, 2, 6] # Function to remove all duplicates def remove_duplicates(arr): unique_arr = [] for item in arr: if item not in unique_arr: unique_arr.append(item) return unique_arr unique_arr = remove_duplicates(arr) print("Array with all the duplicates removed is:",uni...
#!/bin/bash # # Check the workstation configuration. # Autostart script for Text Workstation application consumes the exit code # from this script and launches (exit code 0) or does not launch # (exit code 1) the application. # # This is a temporary solution - when all the sites are off XTs this # script needs to be ...
import LoadingBarClass from './loading-bar-instance'; interface IloadingBarConfig { color?: string, failedColor?: string, height?: number } class LoadingBar { private loadingBarInstance; private color: string = 'primary'; private failedColor: string = 'error'; private height: number = 2; ...
SELECT COUNT(DISTINCT product_name) FROM products;
/* * Copyright 2016 <NAME> (<EMAIL>) * * 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...
<filename>test/fixtures/apps/rpc-server/config/config.default.js<gh_stars>1-10 'use strict'; exports.keys = 'rpc-server_1538293372835_2550'; exports.rpc = { server: { namespace: 'org.eggjs.dubbo', group: 'HSF', }, };
from typing import List def countDistinctIslands(grid: List[List[int]]) -> int: def dfs(grid, i, j, path, direction): if i < 0 or i >= len(grid) or j < 0 or j >= len(grid[0]) or grid[i][j] == 0: return '0' grid[i][j] = 0 path += direction path = dfs(grid, i+1, j, path, '...
#!/usr/bin/env sh # # Copyright 2008 Amazon Technologies, Inc. # # Licensed under the Amazon Software License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://aws.amazon.com/asl # # This file is distributed on an "AS IS" BASIS, ...
package org.tungsten.service.hastelloy.model; public class SpaceCraft { private String name; public SpaceCraft() { } public SpaceCraft(String name) { this.name = name; } public String getName() { return name; } }
<gh_stars>1-10 import { IWidget, IBalanceSettings, IBalanceFormSettings } from 'shared/types/models'; import { balanceSettingsFormEntry } from '../../../redux/reduxFormEntries'; import Settings from './Settings/Settings'; import { default as Content } from './Content/Content'; const widget: IWidget<IBalanceSettings,...
#!/bin/bash set -e RED="\033[0;31m" GREEN="\033[32m" NOCOLOR="\033[0m" genome_build=hg38 deploy_dir=${PWD}/temp log_file=${PWD}/INSTALL.log threads=1 setup_tabix_tools() { echo -e "${GREEN}=> Setup bgzip and tabix${NOCOLOR}" start_dir=${PWD} { cd ${deploy_dir} \ && wget https://github.com/samtool...
#!/bin/bash #SBATCH --time=0:30:00 #SBATCH -N 2 #SBATCH --ntasks-per-node=28 #SBATCH --job-name=ondemand/sys/myjobs/basic_comsol_parallel #SBATCH --no-requeue #SBATCH --licenses=comsolscript@osc # A Basic COMSOL Parallel Job for the OSC Owens Cluster # https://www.osc.edu/resources/available_software/software_list/c...
def insert_sorted(data): sorted_list = [] for i in range(len(data)): # Find the appropriate location for the number for j in range(len(sorted_list)): if data[i] < sorted_list[j]: sorted_list.insert(j,data[i]) break else: sorted_list.append(data[i]) return sorted_list
#!/bin/bash # # exit on any error: set -beEu -o pipefail # switching to beta for version 286 export branch="beta" # to use the top of the source tree, uncomment this branch=HEAD statment # and comment out the one above. This is sometimes useful when there # are new fixes in the source tree in between beta releases. ...
#!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the...
from django.conf.urls import url from django.urls import include, path from django.contrib import admin from .views import UserView,activate, LoginView,RegistrationView# LogoutView, from rest_framework import routers from rest_framework_simplejwt import views as jwt_views # router = routers.DefaultRouter() # # router....
#!/usr/bin/env bash set -e cd "$(dirname "$0")/.." source ci/_ annotate() { ${BUILDKITE:-false} && { buildkite-agent annotate "$@" } } source ci/rust-version.sh stable export RUST_BACKTRACE=1 export RUSTFLAGS="-D warnings" source scripts/ulimit-n.sh # Clear cached json keypair files rm -rf "$HOME/.config/s...
#!/bin/bash -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_DIR=$SCRIPT_DIR/../.. source $PROJECT_DIR/conf/base.conf source $PROJECT_DIR/conf/deps_version.conf echo "platform: \"${platform}\"" echo "proto_version \"${proto_version}\"" #DOWNLOADS_DIR=$SCRIPT_DIR/downloads #GEN_DIR=$SCRIPT_DIR...
<gh_stars>0 -- ------------------------------------------------------------- -- TablePlus 3.12.8(368) -- -- https://tableplus.com/ -- -- Database: users_db -- Generation Time: 2021-05-30 02:18:05.0140 -- ------------------------------------------------------------- -- This script only contains the table creation stat...
import axios from "axios"; import { toast } from "react-toastify"; axios.interceptors.response.use(null, error => { console.log(error); const expectedError = error.response && error.response.status >= 400 && error.response.status < 500; if (!expectedError) { console.log(error); toast.error("A...
# Function to return nth Fibonacci number def Fibonacci(n): if n<0: print("Incorrect input") # First Fibonacci number is 0 elif n==1: return 0 # Second Fibonacci number is 1 elif n==2: return 1 else: return Fibonacci(n-1)+Fibonacci(n-2) # Driver Progr...
const recorder = require('watchtower-recorder'); const eventsStreamName = process.env['WATCHTOWER_EVENT_KINESIS_STREAM']; const debug = process.env.DEBUG_WATCHTOWER; // Loading modules that fail when required via vm2 const aws = require('aws-sdk'); const cp = require('child_process'); let context, lambdaExecutionCont...
#!/bin/bash fyne bundle data/icon.png > bundled.go
<reponame>rsc/client // @flow import {connect, type TypedState} from '../../../../util/container' import {isTeamWithChosenChannels, getTeamMemberCount} from '../../../../constants/teams' import {BigTeamHeader} from '.' const mapStateToProps = (state: TypedState, {teamname}) => ({ badgeSubscribe: !isTeamWithChosenCha...
<reponame>SkyBlockDev/The-trickster const Discord = require("discord.js"); const Enmap = require("enmap"); const { MessageEmbed } = require('discord.js'); const ms = require("parse-ms"); const maxtags = 25 module.exports = { cooldown: '2s', category: 'tags', aliases: ['createtag'], minArgs: 1, maxArgs...
import React from "react"; import { Cartesian3 } from "cesium"; import { Viewer, Entity } from "cesium-react"; const positions = [ Cartesian3.fromDegrees(-74.0707383, 40.7117244, 100), Cartesian3.fromDegrees(139.767052, 35.681167, 100), ]; export default class SimpleEntity extends React.PureComponent { state ...
<filename>pirates/world/FortBarricade.py # File: F (Python 2.4) from pandac.PandaModules import NodePath, Point3 from direct.directnotify import DirectNotifyGlobal from pandac.PandaModules import rad2Deg, Vec3, GeomVertexFormat, GeomVertexData, GeomVertexWriter, Geom, GeomTriangles, GeomNode, CollisionNode, CollisionP...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
#!/bin/sh # ============LICENSE_START==================================================== # Copyright (C) 2021. Nordix Foundation. All rights reserved. #!/bin/sh # ============LICENSE_START==================================================== # Copyright (C) 2021. Nordix Foundation. All rights reserved. # ============...
<reponame>rezaa89/pyamplitude from distutils.core import setup from codecs import open from os import path from setuptools import find_packages setup( name='pyamplitude', version='1.2.0.dev1', packages=['pyamplitude'] ) here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), e...
<filename>app/controllers/index.js<gh_stars>1-10 /** * Initialize the App Navigation object based on the structure of the XML File */ var App = Alloy.Globals.App; App.Navigator.init({ mainView: $.page, // <- The Top Level View menuView: $.menu, // <- The Underlying Menu contentView: $.mainWindow, // <- The ...
<reponame>bike7/testingtasks<filename>addressbook-web-tests/src/test/java/pl/kasieksoft/addressbook/appmanager/ContactHelper.java<gh_stars>0 package pl.kasieksoft.addressbook.appmanager; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.seleni...
CUDA_VISIBLE_DEVICES=0 \ python main_single_gpu.py \ -cfg='./configs/hvt_s2_patch16_224.yaml' \ -dataset='imagenet2012' \ -batch_size=16 \ -data_path='/dataset/imagenet'
import React, { useState } from 'react'; import axios from 'axios'; const Search = () => { const [ingredients, setIngredients] = useState(''); const [recipes, setRecipes] = useState(null); const handleSubmit = async e => { e.preventDefault(); const response = await axios.get(`/api/recipes?ingredients=${ingred...
<reponame>blueshiftone/ngx-grid import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, OnInit, ViewChild } from '@angular/core' import { MatMenuTrigger } from '@angular/material/menu' import { TPrimaryKey } from '@blueshiftone/ngx-grid-core' import { LocalizationService } from '../../services/loca...
<reponame>cbarrett/XPC-Calc<filename>XPC Calc/XPC_CalcAppDelegate.h // // XPC_CalcAppDelegate.h // XPC Calc // // Created by <NAME> on 8/6/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Cocoa/Cocoa.h> #import <xpc/xpc.h> @interface XPC_CalcAppDelegate : NSObject <NSApplicationDelegate> ...
json.array!(@game_actions) do |game_action| json.extract! game_action, :description json.url game_action_url(game_action, format: :json) end
public class Group { public string GroupName { get; set; } public string SubjectId { get; set; } public string IdentityProvider { get; set; } // Constructor to initialize the properties public Group(string groupName, string subjectId, string identityProvider) { GroupName = groupName...
<reponame>akkySrivastava/UNIVERSITY-MANAGEMENT-SYSTEM /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package university.management.system; import javax.swing.*; import java.aw...
<gh_stars>1-10 package io.github.yamporg.ifbhfix; import com.buuz135.industrial.tile.block.BlackHoleUnitBlock; import javax.annotation.Nonnull; import javax.annotation.Nullable; import net.minecraft.block.Block; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.Enu...
<filename>src/main/java/evilcraft/render/entity/RenderNetherfish.java package evilcraft.render.entity; import net.minecraft.client.renderer.entity.RenderSilverfish; import net.minecraft.entity.monster.EntitySilverfish; import net.minecraft.util.ResourceLocation; import evilcraft.Reference; import evilcraft.api.config....
var json2xls = require('../lib/json2xls'); var data = require('../spec/arrayData.json'); var fs = require('fs'); var xls = json2xls(data,{}); fs.writeFileSync('output.xlsx',xls, 'binary');
#!/bin/bash # ============================================================================== # Copyright 2019 Baidu.com, Inc. 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 ...
<reponame>andreapatri/cms_journal "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _styledComponents = _interopRequireDefault(require("styled-components")); var _propTypes = _interopRequireDefault(require("prop-types")); function _interopRequireDefault(...
#!/bin/bash release_dir=mpm-$1 rm -rf $release_dir/* mkdir -p $release_dir cp -v target/release/mpm $release_dir if [ "$1" == "windows-latest" ]; then 7z a -r $release_dir.zip $release_dir else zip -r $release_dir.zip $release_dir fi
<reponame>menghuanlunhui/springboot-master<gh_stars>0 package com.jf.database.enums; /** * Created by admin on 2017/6/29. */ public enum OrderState { /** -1-订单取消 */ S11(-1, "订单取消"), /** 0-待付款 */ S0(0, "待付款"), /** 2-已支付(待发货) */ S2(2, "已支付(待发货)"), /** 3-已发货(待收货) */ S3(3, "已发货(待收货)")...
<filename>src/main/java/genepi/haplogrep/util/HgClassifier.java package genepi.haplogrep.util; import java.io.IOException; import org.jdom.JDOMException; import core.SampleFile; import core.TestSample; import exceptions.parse.sample.InvalidRangeException; import phylotree.Phylotree; import phylotree.PhylotreeManager...
const { prepareNextExpressApp } = require('@core/keystone/test.utils') const URL_PREFIX = '/' const NAME = 'FRONT05NEXT' async function prepareBackServer (server) {} async function prepareBackApp () { const { app } = await prepareNextExpressApp(__dirname) return app } module.exports = { NAME, URL_PR...
#!/bin/bash ## Copyright (c) 2021 mangalbhaskar. All Rights Reserved. ##__author__ = 'mangalbhaskar' ###---------------------------------------------------------- ## Utilility functions for nvidia, gpu ###---------------------------------------------------------- function lsd-mod.nvidia.get__vars() { lsd-mod.log.e...
<filename>irrdb.legacy/src/programs/irr_notify/notify.c /* * $Id: notify.c,v 1.22 2002/10/17 20:25:56 ljb Exp $ */ #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <string.h> #include <sys/types.h> #include <regex.h> #include <unistd.h> #include <time.h> #include <irr_notify.h> #include <pgp.h>...
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ package com.amazon.dataprepper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.ComponentScan; imp...
<filename>src/org/sosy_lab/cpachecker/util/octagon/Octagon.java /* * CPAchecker is a tool for configurable software verification. * This file is part of CPAchecker. * * Copyright (C) 2007-2014 <NAME> * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
import React from 'react'; import { StaticQuery, graphql } from 'gatsby'; import { shape, arrayOf, string } from 'prop-types'; import { MediumStyled, ItemStyled, ThumbnailStyled, LinkStyled, PostTitleStyled, DescriptionStyled, } from './MediumStyled'; const query = graphql` query { allMediumPost(sort...
/* * Copyright 2019 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkCanvas.h" #include "include/core/SkColor.h" #include "include/core/SkPaint.h" #include "include/core/SkRect.h" #include "include/cor...
<gh_stars>0 //jshint esnext:true const assert = require('assert'); const sinon = require('sinon'); const Suite = require('../suite'); const request = require('superagent'); require('co-mocha'); describe('http component', function() { 'use strict'; describe('act as source', function() { var suite; beforeE...
import command from './command'; import { R, fs, IAction, ICommand, IValidate } from './common'; /** * Loads a set of modules and constructs a command object. */ function toCommand(modulePath: string): ICommand { const m = require(modulePath); let name; name = m.name ? m.name : fs.basename(modulePath, '.js'); ...
def concatenate_strings(str1, str2, str3): # Initialize an empty string joined_string = "" # Iterate over the strings and concatenate for s in (str1, str2, str3): joined_string += s return joined_string concatenated_string = concatenate_strings(str1, str2, str3) print(concatenated_string)
# shellcheck disable=SC2148 TMP_DIR="${TMPDIR:-/tmp}/rocksdb-sanity-test" if [ "$#" -lt 2 ]; then echo "usage: ./auto_sanity_test.sh [new_commit] [old_commit]" echo "Missing either [new_commit] or [old_commit], perform sanity check with the latest and 10th latest commits." recent_commits=`git log | grep -e...