text stringlengths 1 1.05M |
|---|
<reponame>df-service-e2e-test/x_khu2_9th_stress_test_5
/*
* Copyright (c) 2008-2019, Hazelcast, 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 at
*
* http://www... |
num = 1
sum = 0
while num <= 10:
sum = sum + num
num = num + 1
print(sum) # Output: 55 |
#!/bin/bash
# List of project directories
projects=("project1" "project2" "project3")
# Create bin directory if it doesn't exist
mkdir -p bin
# Iterate through each project directory
for i in "${projects[@]}"
do
echo "Building \"$i\""
cd "$i" || exit 1
go build -o "../bin/$i"
cd ..
done |
package project.controllers.cf_controllers;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import project.controllers.BaseController;
im... |
#!/bin/bash
image_name=$1
arch_list=("amd64" "arm64")
for arch in ${arch_list[@]}
do
echo "# build manifest for ${arch}"
img_of_cur_arch=${image_name}-${arch}
# check image
set +e
docker inspect ${img_of_cur_arch} 2>&1 > /dev/null
if [ $? -ne 0 ]; then
echo "[Warning] No ${arch} image ... |
// This module was autogenerate. Please don't edit.
exports._UnsafeList = require("@material-ui/core/List").default; |
def calculate_sum(n):
res = 0 # Initialize the variable to store the sum
for i in range(1, n+1): # Iterate through all positive integers up to n
res += i # Add the current integer to the sum
return res # Return the calculated sum |
import requests
from requests.auth import HTTPBasicAuth
class RestApiService:
def __init__(self, connection):
self.conn = connection
def about(self):
endpoint = "/about"
url_format = f"{self.conn.get('homePageUrl')}{endpoint}"
response = requests.get(url_format, auth=HTTPBasicA... |
const Event = require('../../base/Event');
const Guild = require('../../models/Guild');
const data = {};
module.exports = class extends Event {
async run(message) {
if (message.channel.type === 'dm' || !message.channel.viewable || message.author.bot) return;
if (message.webhookID) return;
... |
set -e
if [ ! -n "$OH_MY_VIM" ]; then
OH_MY_VIM=~/.oh-my-vim
fi
if [ -d "$OH_MY_VIM" ]; then
echo "\033[0;33mYou already have Oh My Vim installed.\033[0m You'll need to remove $OH_MY_VIM if you want to install"
exit
fi
echo "\033[0;34mCloning Oh My Vim...\033[0m"
hash git >/dev/null 2>&1 && /usr/bin/env git cl... |
#! /bin/bash
set -e
# Settings from environment
UDACITY_SOURCE=${UDACITY_SOURCE:-`pwd`}
UDACITY_IMAGE=${UDACITY_IMAGE:-bydavy/carnd-capstone}
CONTAINER_NAME="udacity_carnd"
if [ "$(docker ps -a | grep ${CONTAINER_NAME})" ]; then
echo "Attaching to running container..."
docker exec -it ${CONTAINER_NAME} bash $@
el... |
import pandas as pd
def process_geographical_data(geographical_data: pd.DataFrame) -> pd.DataFrame:
geographical_data['GEOID_long_a'] = geographical_data['GEOID_a']
geographical_data['GEOID_long_b'] = geographical_data['GEOID_b']
geographical_data['GEOID_a'] = geographical_data['GEOID_a'].str.replace("5303... |
<reponame>AfterGlowShadow/daaiwujiang<gh_stars>0
function slideController () {
var partners = document.getElementById("partners"),
ul = partners.getElementsByTagName("ul")[0],
li = ul.getElementsByTagName("li"),
height = li[0].offsetHeight;
ul.style = "height:" + height + "px;";
do... |
<gh_stars>1000+
# set async_mode to 'threading', 'eventlet', 'gevent' or 'gevent_uwsgi' to
# force a mode else, the best mode is selected automatically from what's
# installed
async_mode = None
import time
from flask import Flask, render_template
import socketio
sio = socketio.Server(logger=True, async_mode=async_mod... |
CP="bin:lib/guava-23.0.jar"
MAIN="ptatoolkit.scaler.doop.Main"
#echo
#echo $*
java -Xmx48g -cp $CP $MAIN $*
|
#!/bin/bash -e
HERE=$(dirname $(readlink -f $0))
source $HERE/../helpers.sh
require_params MACHINE IMAGE OTA_LITE_TAG
OSTREE_BRANCHNAME="${OSTREE_BRANCHNAME-lmp-localdev}"
SOTA_CLIENT="${SOTA_CLIENT-aktualizr}"
AKLITE_TAG="${AKLITE_TAG-promoted}"
H_BUILD="${H_BUILD-lmp-localdev}"
LMP_VERSION=$(git --git-dir=.repo/man... |
<reponame>drapisarda/local-websites
// Styles
import './styles/main.scss';
// Data
import categories from './data/categories.json';
import countries from './data/countries.js';
// App
import dom from './core.js';
const app = document.querySelector('app');
dom.setElement('total-country-count', Object.keys(countries).l... |
<reponame>tbhuabi/stream<gh_stars>1-10
import { PartialObserver } from './observable';
import { Subject } from './subject';
import { Subscription } from './subscription'
export class BehaviorSubject<T> extends Subject<T> {
private currentValue: T;
constructor(defaultValue: T) {
super()
this.currentValue =... |
#pragma once
#include <iostream>
#include "planargraph.hh"
class Triangulation;
// Cubic planar graphs (polyhedral graphs)
struct CubicGraph : public PlanarGraph {
CubicGraph() {}
CubicGraph(const PlanarGraph& g) : PlanarGraph(g) {
for(node_t u=0;u<N;u++)
if(neighbours[u].size() != 3){
fprintf... |
use reqwest::Client;
use serde::Deserialize;
// Define the Clue struct based on the expected structure
#[derive(Debug, Deserialize)]
struct Clue {
// Define the fields of the Clue struct based on the actual structure
// For example:
// id: u64,
// text: String,
// category: String,
// ...
}
//... |
import { TestBed, inject } from '@angular/core/testing';
import { XformParserService } from './xform-parser.service';
describe('XformParserService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [XformParserService]
});
});
it('should be created', inject([XformParserServi... |
#include <iostream>
int main()
{
double fahrenheit = 72;
double celsius = (fahrenheit - 32) * 5 / 9;
std::cout << "Celsius = " << celsius;
return 0;
} |
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <openssl/rsa.h>
#include <openssl/err.h>
#include "inc.h"
#include "tcpcrypt_ctl.h"
#include "tcpcrypt.h"
#include "tcpcryptd.h"
#include "crypto.h"
#include "profile.h"
static struct crypt_... |
<filename>modules/caas/backend/src/main/java/io/cattle/platform/agent/instance/factory/impl/AgentBuilderRequest.java
package io.cattle.platform.agent.instance.factory.impl;
import io.cattle.platform.core.constants.InstanceConstants;
import io.cattle.platform.core.model.Instance;
import io.cattle.platform.core.util.Sys... |
/**
* Copyright 2018-2020 Dynatrace 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 agreed... |
python3 -W ignore main_chexpert.py --wandb_project_name debug \
--log_dir /data/selfsupervision/log/chexpert \
--num_epoch 3 \
--model_name densenet121 \
--optimizer adam \
... |
# Map network drive
mkdir /home/pi/WD2TB
sudo mount -t cifs -o username=<>,password=<> //SERVER.local/WD2TB /home/pi/WD2TB
|
<reponame>normancarcamo/boilerplate-react-universal
function MyPlugin(options) {
this.nombre = options;
}
MyPlugin.prototype.apply = function(compiler) {
// ...
compiler.plugin('compilation', function(compilation) {
compilation.plugin('html-webpack-plugin-before-html-processing', function(data, callback) {
... |
package io.yggdrash.node;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import io.yggdrash.TestUtils;
import io.yggdrash.contract.ContractQry;
import io.yggdrash.core.Address;
import io.yggdrash.core.BranchId;
import io.yggdrash.core.TransactionHusk;
import io.... |
module BrNfe
module Service
module Thema
module V1
class ConsultaNfse < BrNfe::Service::Thema::V1::Base
include BrNfe::Service::Concerns::Rules::ConsultaNfse
def wsdl
get_wsdl_by_city[:consult]
end
def method_wsdl
:consultar_nfse
end
def xml_builder
... |
<reponame>rockenbf/ze_oss<filename>ze_imu/include/ze/imu/imu_rig.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistr... |
'use strict';
var rule = require('../../../lib/rules/terminating-properties');
var RuleTester = require('eslint').RuleTester;
var ruleTester = new RuleTester();
ruleTester.run('terminating-properties', rule, {
valid: [{
code: [
'it("works as expected", function() {',
' expect(true).to.be.ok;',
... |
<filename>src/main/java/com/gastos/deputado/dto/Deputado.java
package com.gastos.deputado.dto;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
@JsonIgnoreP... |
set cmd:fail-exit yes
set cmd:default-protocol ftps
set ftp:ssl-auth TLS
set ftp:ssl-force yes
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftps:initial-prot ""
|
<gh_stars>1-10
package au.org.noojee.irrigation.servlets;
import java.util.List;
import javax.persistence.EntityManagerFactory;
import javax.servlet.ServletContextEvent;
import javax.servlet.annotation.WebListener;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.pi4j.i... |
//Implements a function using JavaScript that takes two parameters
//and checks if the first parameter is greater than the second
function greaterThan(x, y) {
if (x > y) {
return true;
} else {
return false;
}
} |
<gh_stars>1-10
module.exports = {
RUNNING: "RUNNING",
DELETED: "DELETED",
COMPLETED: "COMPLETED",
NONE: "NONE"
};
|
#include <Python.h>
/* a preexisting C-level function you want to expose, e.g: */
static double total(double* data, int len)
{
double total = 0.0;
int i;
for(i=0; i<len; ++i)
total += data[i];
return total;
}
/* here is how you expose it to Python code: */
static PyObject *totalDoubles(PyObject ... |
#!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# This script brings up a Hyperledger Fabric network for testing smart contracts
# and applications. The test network consists of two organizations with one
# peer each, and a single node Raft ordering service. Users can a... |
public extension Double {
/// Print the decimal number with specific precision. For example, 12.3.
///
/// - Parameter precision: The precision specified. If it is nil, the original value will be returned.
/// - Returns: The formatted string or nil in case of precision error.
func decimalString... |
# encoding: utf-8
name 'ubuntu_base'
maintainer '<NAME>'
maintainer_email '<EMAIL>'
license 'Apache 2.0'
description 'Installs/configures all base Ubuntu installs.'
version '0.14.0'
recipe 'ubuntu_base::default', 'Installs/configures all base Ubuntu installs.'
depends... |
<gh_stars>1-10
package operation
import (
"math"
"reflect"
"testing"
"github.com/gojek/merlin/pkg/transformer/types/series"
"github.com/stretchr/testify/assert"
)
func TestOperationNode_Execute(t *testing.T) {
tests := []struct {
name string
node *OperationNode
want interface{}
wantErr bool
}... |
<reponame>rafaelbr/chatbot-clima
import flask, json
import os
from utils import post_facebook_message, get_weather
from flask import Blueprint, request, jsonify, make_response
from flask_restful import Api, Resource
testBP = Blueprint('test', __name__)
api = Api(testBP, prefix='/test')
class TestEndpoint(R... |
<reponame>schinmayee/nimbus
//#####################################################################
// Copyright 2006-2009, <NAME>, <NAME>, <NAME>, <NAME>.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//##########################... |
/*
* 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 ... |
var text = fs.readFileSync(fileName, "utf8");
var file = fs.createWriteStream(fileName, { encoding: "utf8" });
file.write("???");
file.end();
|
if [ -e .env ]
then
IFS='
'
export $(cat .env | grep -v "#" | grep -v '^$' | xargs -0)
IFS=
php -S localhost:3000 -t .
else
echo ".env File was not found. Create a .env file in the root folder of the project following the example in .env.default"
fi
|
#!/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"); you ... |
[
[2, 3, 9, 7],
[7, 8, 1, 4],
[4, 6, 5, 2],
[1, 5, 3, 8]
]; |
#!/bin/bash
# This is an example script of training and running model ensembles.
# train 5 models with different seeds
CUDA_VISIBLE_DEVICES=3 python train.py --seed 1234 --data_dir /home/scratch/gis/datasets/tacred/data/json/ --vocab_dir /home/scratch/gis/datasets/tacred-relation_data/ --id 01 --info "Position-aware ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SuperSet = void 0;
class SuperSet extends Set {
constructor(prototype) {
super(prototype);
}
squash(...values) {
values.forEach((x) => {
this.add(x);
});
}
get(value) {
co... |
#!/bin/sh
################################################################################
# This file is part of the package effrb. It is subject to the license
# terms in the LICENSE.md file found in the top-level directory of
# this distribution and at https://github.com/pjones/effrb. No part of
# the effrb package... |
<gh_stars>100-1000
#ifndef NNET_IMAGE_H_
#define NNET_IMAGE_H_
#include "nnet_common.h"
#include "hls_stream.h"
#include <math.h>
namespace nnet {
struct resize_config {
static const unsigned height = 10;
static const unsigned width = 10;
static const unsigned n_chan = 10;
static const unsigned new_h... |
<gh_stars>0
import React from 'react';
import Slider from "react-slick";
import alamin from './img/team/alamin.jpg'
import rasel from './img/team/rasel.jpg'
import akash from './img/team/akash.jpg'
// import redwan from './img/team/redwan.jpg'
export default class Team_slider extends React.Component {
render() ... |
import React, {Component} from "react";
import Router from "next/router";
import Link from "next/link";
import axios, {AxiosResponse} from 'axios';
import Layout from "../components/layout/Layout";
import Form from "../components/Form/Form";
import {providerInterface} from "../components/Provider/Provider";
class Pay... |
package pubbot.fun;
import com.jagrosh.jdautilities.command.Command;
import com.jagrosh.jdautilities.command.CommandEvent;
import com.jagrosh.jdautilities.commons.waiter.EventWaiter;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.entities.Message;
import net.dv8tion.jda.core.events.message.guild... |
<reponame>jcgay/homebrew
require 'formula'
class RpmDownloadStrategy < CurlDownloadStrategy
def initialize name, resource
super
@tarball_name = "#{name}-#{resource.version}.tar.gz"
end
def stage
safe_system "rpm2cpio.pl <#{tarball_path} | cpio -vi #{@tarball_name}"
safe_system "/usr/bin/tar -xzf... |
#!/bin/bash
set -e
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
[[ "$1" != "" && "$1" != "-fix" ]] && echo "The only supported argument is -fix" && exit
FIX=$1
# We are currently standardized on using LLVM/Clang10 for this script.
# Note that this is totally independent of the versi... |
#!/bin/bash
set -e
echo "****** INSTALLATION START ******"
script_path=$(cd `dirname $0`; pwd)
#----------------------------------------
bash $script_path/../../SungemSDK/installer/macOS/install.sh >/dev/null
#----------------------------------------
if [ "$1" = "tuna" ] ; then
echo "Using TUNA mirror"
I... |
<gh_stars>0
package helper
import (
"context"
"time"
)
// suppressedContext suppresses cancellation or expiration of the context.
type suppressedContext struct{ context.Context }
func (suppressedContext) Deadline() (deadline time.Time, ok bool) { return time.Time{}, false }
func (suppressedContext) Done() <-chan ... |
#!/bin/bash
##############################################################################
# Tim H 2020
# Description: creates a compressed file containing the logs neccessary
# to troubleshoot dynamic connections to cloud providers like AWS and Azure
# It also sets the ownership and permissions so it is easier to ... |
/*
* Copyright 2015-2021 <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 ... |
<filename>src/rules-configurations/eslint/brace-style.d.ts<gh_stars>0
import { RuleConfiguration } from '../../../support/Rule'
type Options = (("1tbs" | "stroustrup" | "allman") | {
allowSingleLine?: boolean
})[]
type Configuration = RuleConfiguration<'brace-style', 'eslint', Options>
export default Configuration |
<filename>Test/src/test-three.js/ConfigPanel.js
import DockingPanel from 'DockingPanel'
export default class ConfigPanel extends DockingPanel {
/////////////////////////////////////////////////////////////
//
//
/////////////////////////////////////////////////////////////
constructor (domContainer) {
... |
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-400124
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl... |
if [ "$1" = "lein" ]; then
exportVariable JAVA_CMD "$JAVA_HOME/bin/java"
exportVariable LEIN_JAVA_CMD "$JAVA_HOME/bin/java"
if [ -n "$JENV_OPTIONS" ]; then
if [ -z "$LEIN_JVM_OPTS" ]; then
exportVariable LEIN_JVM_OPTS $JENV_OPTIONS
exportVariable JVM_OPTS $JENV_OPTIONS
else
echo "LEIN_... |
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2016 <NAME>
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
package org.sunbird.notification.sms;
import static org.powermock.api.mockito.PowerMockito.doReturn;
import static org.powermock.api.mockito.PowerMockito.mock;
import static org.powermock.api.mockito.PowerMockito.when;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import org.apache.http.... |
<reponame>SumanthAkula/valorant-rpc
def presence(rpc,client=None,data=None,content_data=None,config=None):
rpc.update(
state="Away",
details=f"Menu - {content_data['queue_aliases'][data['queueId']] if data['queueId'] != '' else 'Custom Setup'}",
large_image="game_icon_yellow",
large_... |
#!/bin/bash
SERVICE=$1
# validate mysql
echo "sleeping for 60 seconds during mysql boot..."
sleep 60
mysql -uroot -p${SERVICE}-test --host=mysql --port=3306 -e "SELECT VERSION();SELECT NOW()"
mysql -u${SERVICE}-test -p${SERVICE}-test --host=mysql --port=3306 -e "SELECT VERSION();SELECT NOW()"
mysql -u${SERVICE}-test ... |
ERROR=0
if ruby -rubygems t1.rb > /dev/null 2>&1; then
echo "t1 OK"
else
echo "t1 FAIL"
ERROR=1
fi
if ruby -rubygems t2.rb > /dev/null 2>&1; then
echo "t2 OK"
else
echo "t2 FAIL"
ERROR=2
fi
if ruby -rubygems t3.rb > /dev/null 2>&1; then
echo "t3 OK"
else
echo "t3 FAIL"
ERROR=3
fi
exit $ERROR
|
#!/bin/bash
# if [ -z $1 ] ; then
# echo "usage: sudo $(basename $0)"' <path to compose file>'
# exit 1
# fi
path=$(dirname $0)
# Copy stdout and stderr via named pipe to stdout of container for logging.
_fifo="/container_stdout"
exec > >(tee -ia "$_fifo")
exec 2> >(tee -ia "$_fifo" >&2)
_timing_sec_start=${SEC... |
import { Component } from '@angular/core';
@Component({
selector: 'app-table-data',
template:
<table class="table table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let data of tableData">
<td>{{data.id}}</td>
<td>{{data.name}}</td>
<td>{{data.age}}<... |
#!/bin/bash
set -eu
function get_abs_filename() {
echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")"
}
function usage() {
echo "usage: ./bootstrap.sh MFEXT_HOME"
}
if test "${1:-}" = "--help"; then
usage
exit 0
fi
if test "${1:-}" = ""; then
usage
exit 1
fi
MFEXT_HOME=$(get_abs_filename ... |
<reponame>hieutran3010/EnglishOnline<filename>src/app/models/user.ts
import ModelBase from './modelBase';
export default class User extends ModelBase {
email!: string;
emailVerified!: boolean;
phoneNumber?: string;
password?: string;
displayName!: string;
avatarUrl?: string;
role?: string;
disabled?: b... |
package com.jeanboy.component.permission.core;
/**
* @author caojianbo
* @since 2019/12/3 15:02
*/
public interface Watcher {
/**
* 已授权
*/
void onGranted();
/**
* 权限被拒绝
*
* @param isNeverAsk 已选择不再询问
*/
void onDenied(boolean isNeverAsk);
}
|
<reponame>Zovube/Tasks-solutions
#pragma GCC optimize("O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
#define __USE_MINGW_ANSI_STDIO 0
#include<bits/stdc++.h>
using namespace std;
#define dbg(x) cerr << #x << " == " << x << "\n";
#define PI acos(-1)
#define pb push_... |
#!/bin/bash -x
export PYTHON_VERSION=2.7
export JDK_VERSION=8
export SCALA_VERSION=2.12.4
export MAVEN_VERSION=3.5.2
export HADOOP_VERSION_DETAIL=2.7.5
export SPARK_VERSION_DETAIL=2.2.1
export HADOOP_FOR_SPARK_VERSION=2.7
export FLINK_VERSION_DETAIL=1.4.0
export HADOOP_FOR_FLINK_VERSION=26
export SCALA_FOR_FLINK_VERSI... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.textColor = void 0;
var textColor = {
"viewBox": "0 0 16 16",
"children": [{
"name": "path",
"attribs": {
"fill": "#000000",
"d": "M5.032 13l0.9-3h4.137l0.9 3h1.775l-3-10h-3.488l-3 10h1.776zM7.432 5h1.137l0.9... |
basicGrp1="bundles
console
context
discover
getting_started
home
management
saved_objects_management
status_page
timelion
"
basicGrp2="visualize
"
basicGrp3="dashboard
"
xpackGrp1="advanced_settings
ap... |
// @flow
import { fbapi } from "../../facebook/api"
import type { MitosisUser } from "../types"
import { Cities } from "places"
import { updateMitosisUser } from "../../db/mongo"
import { GravityShowsSearchAPI, gravity, metaphysicsQuery } from "../artsy-api"
import { elementForArtwork } from "./artwork/element"
import... |
TERMUX_PKG_HOMEPAGE=https://xmake.io/
TERMUX_PKG_DESCRIPTION="A cross-platform build utility based on Lua"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Ruki Wang @waruqi"
TERMUX_PKG_VERSION=2.5.3
TERMUX_PKG_SRCURL=https://github.com/xmake-io/xmake/releases/download/v${TERMUX_PKG_VERSION}/xmake-v${TERMUX_PKG_VERS... |
<filename>src/templates/Home.js<gh_stars>0
import React from "react"
import { graphql, Link } from "gatsby"
import SEO from "../components/seo"
import Layout from "../components/layout"
import Flickity from "react-flickity-component"
import { Tab, Tabs, TabList, TabPanel } from "react-tabs"
import { SRLWrapper } from "... |
package org.allenai.ari.solvers.textilp.utils
import edu.illinois.cs.cogcomp.annotation.Annotator
import edu.illinois.cs.cogcomp.core.datastructures.textannotation.{ Constituent, SpanLabelView, TextAnnotation }
import edu.illinois.cs.cogcomp.core.utilities.SerializationHelper
import edu.illinois.cs.cogcomp.core.utilit... |
#!/bin/sh
# 关闭服务
systemctl stop docker
# 开机关闭
systemctl disable docker
#rm -rf /etc/systemd/system/docker.service.d
# 删安装包
yum list installed | grep docker
rpm -qa | grep docker*
yum remove docker
yum remove -y docker-ce-cli
# 删除镜像
rm -rf /var/lib/docker
rm -rf /var/run/docker
docker --version
#### 遇到问题
#
# 问题:rm: ca... |
<reponame>Organizational-Proof-Of-Work/clearinghoused_build
#!/usr/bin/env python
# Licensed to PSF under a Contributor Agreement.
# See http://www.python.org/psf/license for licensing details.
from __future__ import absolute_import
__author__ = "<NAME>"
__copyright__ = "Copyright 2010-2013, <NAME>"
__email__ = "sorin... |
<reponame>cchdo/ctdcal<gh_stars>1-10
from ctdcal import flagging
import numpy as np
import pandas as pd
import pytest
# TODO: make a class and recycle 3 data sets, separating outliers and NaNs:
# data = [np.nan] + 97 * [0] + [100, 100]
# data = pd.Series([np.nan] + 97 * [0] + [100, 100])
# data = pd.DataFrame([np.nan... |
package Multiply_Strings;
import java.util.ArrayList;
import java.util.List;
public class Solution {
public String multiply(String num1, String num2) {
/**
* directly get product and add them in one iteration
* 36ms
*/
int[] pos = new int[num1.length() + num2.length()]... |
const path = require('path');
const webpack = require('webpack');
const autoprefixer = require('autoprefixer-core');
// Specify what theme will the dev webpack config will serve
// Change during development time to test layout for different themes. Available themes : red, blue, gray (default)
// Restart dev server aft... |
<reponame>akimikimikimikimikimikimika/shellCommands<filename>Time Measurement/Python/main.py
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from lib import CM,data
from analyze import argAnalyze
from execute import execute
from docs import help,version
d=data()
argAnalyze(d)
if d.mode==CM.main: execute(d)
if d.... |
<reponame>fspoettel/nine9s-discord-webhook
/* globals NINE9S_WEBHOOK_SECRET */
import { EventData } from './types/EventData'
import { Nine9sWebhookEvent } from './types/Nine9sWebhookEvent'
/**
* @see https://nine9s.cloud/api/docs
*/
export function isAuthenticated(headers: Headers): boolean {
return (
headers... |
<reponame>tsonntag/gitter
require 'action_view'
module Gitter
class TableCell
include ActionView::Helpers::NumberHelper
attr_reader :x, :y, :content
def initialize x, y, content
@x, @y, @content = x, y, content
end
def html opts = {}
Table.tag :td, formatted_content, opts.merge(... |
def descending_sort(arr):
n = len(arr)
for i in range(n):
for j in range(0, n-i-1):
if arr[j] < arr[j+1] :
arr[j], arr[j+1] = arr[j+1], arr[j]
return arr |
<reponame>nabeelkhan/Oracle-DBA-Life
-- ***************************************************************************
-- File: 12_2.sql
--
-- Developed By TUSC
--
-- Disclaimer: Neither Osborne/McGraw-Hill, TUSC, nor the author warrant
-- that this source code is error-free. If any errors are
-- f... |
<filename>DicomWebStorge/Orthanc-1.7.4/OrthancFramework/Sources/Images/Font.cpp
/**
* Orthanc - A Lightweight, RESTful DICOM Store
* Copyright (C) 2012-2016 <NAME>, Medical Physics
* Department, University Hospital of Liege, Belgium
* Copyright (C) 2017-2020 <NAME>., Belgium
*
* This program is free software: you... |
<gh_stars>0
import { Indicator, Toast } from 'mint-ui'
import errMsg from '../unit/apiErr.js'
export const pageInit = {
data() {
return {
isAJAX: false, // 是否通信过了 => loading 没有重新设为 true 只显示一次 loading
showDataView: false, // 通信过了且有数据
showNoView: false // 通信过了且没数据 showView 不能用同一个变量 会闪
}
},... |
#!/usr/bin/env bash
#
# Copyright (c) 2019 The Baricoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Detect when a mutable list or dict is used as a default parameter value in a Python function.
export LC_AL... |
<filename>common/src/index.ts
export * from './types';
export * from './api';
export * from './constant';
|
//# sourceMappingURL=ts_test.js.map |
#!/usr/bin/env bash
# add ZSH to list of accepted shells
if grep -Fxq "/usr/local/bin/zsh" /etc/shells > /dev/null 2>&1; then
echo_skip "ZSH is already in the list of accepted shells"
else
# If not found
sudo sh -c 'echo "/usr/local/bin/zsh" >> /etc/shells'
if grep -Fxq "/usr/local/bin/zsh" /etc/shells > /dev/null... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.