text stringlengths 1 1.05M |
|---|
package com.ilscipio.scipio.ce.webapp.filter;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* SCIPIO: Helper methods for URL rewriting and filtering.
* Added 2017-08-14.
*/
public class UrlFilterHelp... |
<filename>src/main/java/malte0811/controlengineering/network/panellayout/Replace.java
package malte0811.controlengineering.network.panellayout;
import com.google.common.base.Preconditions;
import malte0811.controlengineering.controlpanels.PlacedComponent;
import net.minecraft.network.FriendlyByteBuf;
import net.minecr... |
module Fog
module AWS
class Elasticache
class Real
require 'fog/aws/parsers/elasticache/single_cache_cluster'
# Reboots some or all of an existing cache cluster's nodes
# Returns a cache cluster description
#
# === Required Parameters
# * id <~String> - The ... |
#! /bin/sh -x
set -e
set -u
set -o pipefail
opam_packages=(
dune
ppx_import
ppx_deriving
ppx_expect
#ppx_deriving_cmdliner
#camomile
menhir
ocaml-print-intf
ocaml-lsp-server
utop
# llvm
)
# opam init --bare --yes
# opam switch create 4.11.2
opam init ... |
const req = require.context('./svg', false, /\.svg$/);
const requireAll = (requireContext: any) => requireContext.keys().map(requireContext);
requireAll(req);
export default requireAll;
|
package com.creadigol.verticalviewpager.transforms;
/**
* Copyright (C) 2015 Kaelaela
*
* 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
*
*... |
import Keycloak from "keycloak-js";
import { idpUrl, idpRealm, idpClientId } from "./js/environment";
// Setup Keycloak instance as needed
// Pass initialization options as required or leave blank to load from 'keycloak.json'
const keycloak = Keycloak({
url: idpUrl,
realm: idpRealm,
clientId: idpClientId,
});
... |
function previewFile(input){
//console.log(input, input.files, input.files[0]);
var file = input.files[0];
if(file){
var reader = new FileReader();
reader.onload = function(){
//console.log($(input).parent().find("img#previewImg"));
$(input).parent().find("img#previewIm... |
# A dynamic programming solution for
# counting the number of possible
# ways to make change of N units
# using given coins
def count(S, m, n):
# table[i] will be storing
# the number of solutions for
# value i. We need n+1 rows
# as the table is consturcted
# in bottom up manner using
# the b... |
# 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/licenses/LICENSE-2.0
#
# Unless required by applicabl... |
<filename>test/menu/get-styles.test.js<gh_stars>10-100
/* eslint-env mocha */
import { expect } from 'chai';
import getStyles from '../../src/menu/get-styles';
import styles from '../../src/menu/styles';
describe('Menu.getStyles', () => {
describe('container', () => {
it('should get styles', () => {
const ... |
<filename>lib/Ariadne/QueryFinder/TreeWalker.js
/*
Siesta 4.2.2
Copyright(c) 2009-2016 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/products/siesta/license
*/
Role('Ariadne.QueryFinder.TreeWalker', {
methods : {
getParent : function (el) {
throw new Error("Abstract metho... |
import component from './ClickCatcher'
import connector from './ClickCatcher.connector'
export default connector(component)
|
#!/usr/bin/env bash
# Installs common brew packages
# Install coreutils
brew install coreutils
sudo ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum
brew install moreutils
brew install findutils
brew install gnu-sed
# Install Bash 4
brew install bash
sudo cat >> /etc/shells <<EOF
/usr/local/bin/bash
EOF
bre... |
package parse
import (
"bytes"
"encoding/json"
"strings"
"github.com/BurntSushi/toml"
"github.com/douyu/juno/internal/pkg/code"
)
// TomlParse ..
type TomlParse struct {
}
// NewTomlParse ..
func NewTomlParse() Parse {
return &TomlParse{}
}
// Convert ...
func (tp *TomlParse) Convert(text string) (res []byte... |
#!/bin/bash
ganache-cli -p 7545 --gasLimit 100000000000000 2> /dev/null 1> /dev/null &
sleep 5 # to make sure ganache-cli is up and running before compiling
rm -rf build
truffle compile
truffle migrate --reset --network development
truffle test
kill -9 $(lsof -t -i:8545) |
#!/usr/bin/env bash
set -e
if [ -z $OS_VERSION ];then
echo "No OS_VERSION provided, using 16.04."
OS_VERSION="16.04"
fi
# generate Vagrantfile for the initial box
if [ $OS_VERSION = "16.04" ];then
vagrant init puppetlabs/ubuntu-16.04-64-nocm --box-version="1.0.0"
else if [ $OS_VERSION = "18.04" ];then
vag... |
package com.example.signup;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import an... |
require 'spec_helper'
module Fauve
module Scheme
describe Colour do
let(:section_name) { :scheme }
let(:section) { Fauve::Scheme::Section.new(section_name) }
let(:reference) { Fauve::Scheme::Reference.new(reference_name) }
subject { described_class.new(section, reference) }
... |
#!/bin/sh
# create the flag file
echo $FLAG > flag.txt
# create the challenge file
tar czf /tmp/flag.tar.gz flag.txt
# tell the uploader what files we want uploaded
echo "/tmp/flag.tar.gz"
|
CUDA_VISIBLE_DEVICES=0,1 python3 main.py --dataroot='/data/zhangdan/dataset/celebAHQ/celeba-256/' --noise_dim=512 --batch_size=32 --test_batch_size=16 --nEpochs=500 --sample-step=1000 --save_step=10 --channels='32, 64, 128, 256, 512, 512' --trainsize=29000 --input_height=256 --output_height=256 --m_plus=160 --weight_ne... |
#!/usr/bin/env bash
# Root directory of integration tests.
INTEGRATION_ROOT=${INTEGRATION_ROOT:-$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")}
# Test data path.
TESTDATA="${INTEGRATION_ROOT}/testdata"
# Root directory of the repository.
CRIO_ROOT=${CRIO_ROOT:-$(
cd "$INTEGRATION_ROOT/.." || exit
pwd -P
)}
... |
#!/usr/bin/env bash
CURR_WID=$(xdotool getwindowfocus);
CHROME_WID=$(xdotool search --name '#e11aeca0e7e00447b2d72d96cd55c32b4273ad29f1f2b48ae73d692475825979');
if [[ ${CHROME_WID} ]]
then
xdotool windowactivate ${CHROME_WID};
xdotool key 'ctrl+r';
xdotool windowactivate ${CURR_WID};
fi |
"""
Create a program to remove duplicates from a given list without using a set
"""
# List with duplicate items
input = [1, 2, 3, 2, 4, 5]
# Initialize an empty list
output = []
# Iterate over the input list
for element in input:
# If the element is not in the output list
# append it to the output list
... |
<reponame>willkg/steve<filename>setup.py
#######################################################################
# This file is part of steve.
#
# Copyright (C) 2012-2014 <NAME>
# Licensed under the Simplified BSD License. See LICENSE for full
# license.
#################################################################... |
<gh_stars>10-100
alter table #prefix#user add column phone char(32) not null default '';
alter table #prefix#user add column address char(48) not null default '';
alter table #prefix#user add column address2 char(48) not null default '';
alter table #prefix#user add column city char(48) not null default '';
alter table... |
<reponame>carvetime/study-webpack
function log(){
console.log("execute log ....")
}
log() |
package com.iseninc;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.x500.X500Name;
import org.bouncycastle.asn1.x509.*;
import org.bouncycastle.cert.CertIOException;
import org.bouncycastle.cert.X509CertificateHolder;
import org.bouncycastle.cert.X509v3CertificateBuilder;
import org.bo... |
#!/bin/bash
bold=$(tput bold)
normal=$(tput sgr0)
red=$(tput setaf 1)
error()
{
echo "ERROR: $1" 1>&2
usage_and_exit 1
}
usage()
{
echo "Usage: $PROGRAM [options] "
echo " options:"
echo " -help Print this usage"
echo " -aarch ... |
package ca.bc.jx.ap.retry.kafka;
import kafka.server.KafkaConfig;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.kafka.test.EmbeddedKafkaBroker;
@TestConfiguration
public class EmbeddedKafkaBrokerConfig {
private fina... |
#!/bin/sh
# MAINTAINER: portmgr@FreeBSD.org
# $FreeBSD: head/Mk/Scripts/find-lib.sh 481327 2018-10-06 08:19:19Z antoine $
[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_FIND_LIB}" ] && set -x
if [ -z "${LIB_DIRS}" -o -z "${LOCALBASE}" ]; then
echo "LIB_DIRS, LOCALBASE required in environment." >&2
exit 1
fi
... |
require "./test/helper.rb"
class TestHTTP < ElasticTestCase
include EventMachine::ElasticSearch::HTTP
def base_url
"http://localhost:9200"
end
test "successful explicit callback" do
req = request(:get, "/")
req.callback {|response|
assert response["ok"]
done
}
end
test "succe... |
/**
klassi-js
Copyright © 2016 - <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... |
#!/bin/bash
ExitCode="$1"
Region="$2"
StackName="$3"
StackTag="$4"
AutoScalingGroup="$5"
IsSubStack="$6"
if [ -z "$ExitCode" ]; then
echo "Invalid ExitCode"
exit 1
fi
if [ -z "$Region" ]; then
echo "Invalid Region"
exit 1
fi
if [ -z "$StackName" ]; then
echo "Invalid StackName"
exit 1
fi
if [ -z "$Stac... |
export const httpHeaders = [
'Accept',
'Accept-Charset',
'Accept-Encoding',
'Accept-Language',
'Accept-Datetime',
'Authorization',
'Cache-Control',
'Connection',
'Cookie',
'Content-Length',
'Content-MD5',
'Content-Type',
'Date', 'Expect',
'Forwarded',
'From',
'Host',
'If-Match',
'If-... |
<gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_looks_6_twotone = void 0;
var ic_looks_6_twotone = {
"viewBox": "0 0 24 24",
"children": [{
"name": "path",
"attribs": {
"d": "M0 0h24v24H0V0z",
"fill": "none"
},
"children": []
}, {
... |
Feature('Fold / Unfold');
Scenario('can fold/unfold tasks', ({ I }) => {
I.amOnPage('http://localhost:8080');
I.fillField('할 일', '첫 번째 할 일');
I.click('추가');
I.click('첫 번째 할 일');
I.fillField('할 일', '두 번째 할 일');
I.click('추가');
I.click('두 번째 할 일');
I.fillField('할 일', '세 번째 할 일');
... |
window.addEventListener('load', () => {
const timerCircles = {
300: document.querySelector('.ShortBreak'),
900: document.querySelector('.LongBreak'),
1500: document.querySelector('.Pomodoro'),
};
let timer = 0;
let current;
let auto = false;
let autoCounter = -1;
let interval;
let blockConnect = false;
... |
<filename>src/test/java/es/upm/etsisi/cf4j/recommender/matrixFactorization/BeMFTest.java
package es.upm.etsisi.cf4j.recommender.matrixFactorization;
import es.upm.etsisi.cf4j.data.DataModel;
import es.upm.etsisi.cf4j.data.MockDataSet;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import s... |
import React, {Component} from "react";
import {DateTime} from "luxon";
export default class DateHelper extends Component {
static getDateDifferenceInMinutes(start,end){
if(start != null && end != null){
let diffMilliseconds = end-start;
let diffSeconds = diffMilliseconds/1000;
... |
<reponame>MccreeFei/jframe<gh_stars>10-100
package jframe.elasticsearch.service;
/**
* @author dzh
* @date May 17, 2018 1:40:04 PM
* @version 0.0.1
*/
public class TestTransportClient {
}
|
def spellchecker(paragraph):
# Split the paragraph into words
words = paragraph.split()
# Comparing each word with our dictionary
for word in words:
if word not in dictionary:
print("Spelling mistake:", word)
# Call the function
spellchecker("The quick brpwn fox jumps over the lzy ... |
rm *.pdf
rm *.gz
rm *.bcf
rm *.blg
rm *.toc
rm *.xml
rm *.out
rm *.log
rm *.bbl
rm *.aux
|
/*
* Copyright (c) 2015, EURECOM (www.eurecom.fr)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... |
#!/bin/bash
full_path="$PWD/$0"
prefix=$(dirname $full_path)
script_path="python $prefix/scripts/cron_script.py $prefix/db_chauffage.db >> $prefix/logs/cron.log"
(crontab -l 2>/dev/null; echo "*/5 * * * * $script_path ") | crontab -
|
#!/usr/bin/env zsh
# \
# \\,
# \\\,^,.,,. Zero to Hero
# ,;7~((\))`;;,, <zerotohero.dev>
# ,(@') ;)`))\;;', stay up to date, be curious: learn
# ) . ),(( ))\;,
# /;`,,/7),)) )) )\,,
# (& )` (,((,((;( ))\,
D="$FIZZ_HTML_GEN_ROOT/dist"
F="warm-up/020-valid-parentheses"
D="... |
import type { Address, AddressPOJO, ContactInfo, ContactInfoPOJO, Identifiers, IdentifiersPOJO, Note, NotePOJO, TimeRange, TimeRangePOJO, UUID } from "../../common";
import type { PickupCancellationReason } from "../enums";
import type { PickupService, PickupServiceIdentifierPOJO } from "./pickup-service";
import type ... |
class SignalProperty:
def __init__(self, color):
self.color = color
class FluorescentConfig:
def __init__(self):
self.reference = "mRFP1"
self.signal_properties = {}
def set_reference(self, reference):
self.reference = reference
def add_signal_property(self, protein, c... |
import express from 'express';
import http from 'http';
import passport from 'passport';
import { PORT } from './config'
import db from './db';
import router from './routes';
import middlewares from './middlewares';
import passportConfig from './auth';
import socket from './socketIO';
const app = express();
const ser... |
#!/bin/bash -l
#$ -e /dev/null
#$ -o /dev/null
#$ -P tuberculosis
#$ -pe omp 16
#$ -t 1-18
module load sratoolkit/2.10.5
module load nextflow/19.10.0
INDEX=$(($SGE_TASK_ID-1))
INPUT=(SRR7992048 SRR7992049 SRR7992050 SRR7992051 SRR7992052 SRR7992053 SRR7992054 SRR7992055 SRR7992056 SRR7992057 SRR7992058 SRR7992059 S... |
<reponame>rsuite/rsuite-icons<gh_stars>1-10
// Generated by script, don't edit it please.
import createSvgIcon from '../../createSvgIcon';
import YoastSvg from '@rsuite/icon-font/lib/legacy/Yoast';
const Yoast = createSvgIcon({
as: YoastSvg,
ariaLabel: 'yoast',
category: 'legacy',
displayName: 'Yoast'
});
exp... |
#!/bin/bash
#set -e
PRJ_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
UTILS_DIR="${PRJ_DIR}/utils"
TMP_FOLDER="${PRJ_DIR}/tmp"
TFS_PATH="${PRJ_DIR}/terraform/aws"
STATE_FILE_PATH="${TFS_PATH}/terraform.tfstate"
LOGS_FOLDER="${PRJ_DIR}/logs"
LOG_FILE_PATH="${LOGS_FOLDER}/start.log"
export EXAMPLE=... |
/*
* OutOfScope.sql
* Chapter 7, Oracle10g PL/SQL Programming
* by <NAME>, <NAME>, and <NAME>
*
* This script demonstrates the scope of exceptions.
*/
BEGIN
DECLARE
e_UserDefinedException EXCEPTION;
BEGIN
RAISE e_UserDefinedException;
END;
EXCEPTION
/* e_UserDefinedException is out of scope here ... |
import { Controller, Get, Post, Req, Res } from '@nestjs/common';
import { AppService } from './app.service';
import {Request,Response} from 'express'
import { verify } from 'jsonwebtoken';
import { UserService } from './user/user.service';
import { createAccessToken, createRefreshToken } from './utils/auth';
@Controll... |
<reponame>Andy114514/bible-copypaste<filename>src/config/bible.js
const bible = [
{
id: "support",
title: "支援",
template:
"${支援者|桐生會長},請您支援 #${被支援者|桐生ココ} ,她僅僅因為說${被支援者的主张|台灣是個國家},就受${被支援者的反对者|中國五毛}機器人的攻擊以及人身威脅,和未婚夫${无关者|肖戰}的婚約也被迫取消,請一定聲援她!",
},
{
id: "nature",
title: "尿性",
template:
... |
<reponame>smagill/opensphere-desktop<filename>open-sphere-plugins/infinity/src/main/java/io/opensphere/infinity/json/BoundingBox.java<gh_stars>10-100
package io.opensphere.infinity.json;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import com.vividsolutions.jts.geom.Geometry;
import io.opensphere.co... |
<reponame>paullewallencom/java-978-1-7884-7523-5
package com.packt.designpatterns.bp.commandpattern;
public class Pizza {
private String name;
private int qty;
public Pizza(String name, int qty) {
this.name = name;
this.qty = qty;
}
public void makeOrder() {
System.out.println(qty + " " + na... |
package projectsol.worldsofsol.common.world.gen;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.gen.surfacebuilder.SurfaceBuilder;
import java.... |
namespace PadawanEquipment
{
class Program
{
static void Main(string[] args)
{
double amountOfMoney = double.Parse(Console.ReadLine());
int studentsCount = int.Parse(Console.ReadLine());
double priceOFLightsaber = double.Parse(Console.ReadLine());
... |
#!/bin/bash
#
# Show update instruction for installed tools.
#
# VERSION :0.1.2
# DATE :2015-07-06
# AUTHOR :Viktor Szépe <viktor@szepe.net>
# LICENSE :The MIT License (MIT)
# URL :https://github.com/szepeviktor/debian-server-tools
# BASH-VERSION :4.2+
# DEPENDS :apt-get ins... |
<!DOCTYPE html>
<html>
<head>
<title>Fibonacci Sequence</title>
</head>
<body>
<h1>Fibonacci Sequence Generator</h1>
<p>Enter a number to generate the Fibonacci sequence:</p>
<input id="num" type="number">
<button onclick="fibonacci()">Generate</button>
<p>Sequence:</p>
<p id="result"></p><br>
<... |
<reponame>mhs1314/allPay<filename>qht-modules/qht-api/src/main/java/com/qht/model/TeacherInfoModel.java
package com.qht.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
public class TeacherInfoModel implements Serializable {
private String uid;
private BigDecim... |
package main
import (
"flag"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
"log"
"os"
"9fans.net/go/draw"
"github.com/mjl-/duit"
)
func check(err error, msg string) {
if err != nil {
log.Fatalf("%s: %s\n", msg, err)
}
}
func main() {
log.SetFlags(0)
flag.Usage = func() {
log.Println("duitimage path")
... |
g++ -shared -fPIC -Wl,-z,relro,-z,now -Ofast -std=gnu++17 -I ../base/ -I ../../include main.cpp -o ../../out/antixray.so
|
#!/bin/sh
set -e
# Install CMake 3.16+ from official Kitware repository (see https://apt.kitware.com/)
sudo apt-get update
sudo rm /usr/local/bin/ccmake* /usr/local/bin/cmake* /usr/local/bin/cpack* /usr/local/bin/ctest*
sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget
wget... |
<filename>tools/buildmessage.js<gh_stars>0
var Fiber = require('fibers');
var Future = require('fibers/future');
var _ = require('underscore');
var files = require('./files.js');
var parseStack = require('./parse-stack.js');
var fiberHelpers = require('./fiber-helpers.js');
var Progress = require('./progress.js').Progr... |
// Copyright...
#include <gtest/gtest.h>
#include "toolbox.h"
using namespace formulate;
TEST(ToolboxTest, GetSetTest) {
Toolbox toolbox;
toolbox.set_current_tool(Toolbox::kText_Tool);
EXPECT_EQ(Toolbox::kText_Tool, toolbox.current_tool());
toolbox.set_current_tool(Toolbox::kArrow_Tool);
EXPECT_EQ(Toolbox... |
interface Person {
name: string;
age: number;
} |
<reponame>jbwyme/action-destinations<gh_stars>0
// Generated file. DO NOT MODIFY IT BY HAND.
export interface Payload {
/**
* The Google Ads conversion label. You can find this value from your Google Ads event snippet. The provided event snippet should have, for example, `send_to: AW-123456789/AbC-D_efG-h12_34-56... |
package org.apache.dubbo.sample.tri.interop.client;
import io.grpc.*;
import org.apache.dubbo.common.context.Lifecycle;
import org.apache.dubbo.sample.tri.util.TriSampleConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.Objects;
public class GrpcServer im... |
<filename>src/eu/iamgio/jrfl/api/commands/Command.java
package eu.iamgio.jrfl.api.commands;
import eu.iamgio.jrfl.api.commands.completion.InitialCommandTabCompletion;
import eu.iamgio.jrfl.api.commands.completion.TabCompletion;
import eu.iamgio.jrfl.api.configuration.Formatter;
import eu.iamgio.jrfl.program.nodes.Node... |
<reponame>gebsl/oyd-browsing-plugin<gh_stars>1-10
export const REPO_URI = 'dev.unterholzer.oyd.browsing'; |
<reponame>mincho8050/web_programming_course
package net.control;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Welcome exte... |
#!/usr/bin/env bash
## run with -
## bash contrib/build-docker-scripts/buildARMlinux_64.sh
export LC_ALL=C.UTF-8
export PACKAGES="clang llvm unzip"
# The root dir.
BASE_ROOT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../../ >/dev/null 2>&1 && pwd )
export BASE_ROOT_DIR
VER=$(head -n 20 $BASE_ROOT_DIR/configure.a... |
var searchData=
[
['continueonfailure_1451',['ContinueOnFailure',['../structCatch_1_1ResultDisposition.html#a3396cad6e2259af326b3aae93e23e9d8aa18c94bd60c5614e17a84c2ced3bbfd5',1,'Catch::ResultDisposition']]]
];
|
package com.mycompany.smartparkingmanagement.dao;
import com.mycompany.smartparkingmanagement.entities.BookingBean;
import com.mycompany.smartparkingmanagement.entities.OrderBean;
import com.mycompany.smartparkingmanagement.entities.TimeCheckBean;
import com.mycompany.smartparkingmanagement.helper.ConnectionProvider;
... |
<reponame>aminnelson/google-appengine-mac-launcher
/* Copyright 2009 Google Inc.
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 ... |
#!/bin/bash
#
chown vagrant.vagrant /home/vagrant/.ssh/id_rsa
chmod 600 /home/vagrant/.ssh/id_rsa
|
#!/usr/bin/env bash
REL_SCRIPT_DIR="`dirname \"$0\"`"
SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
case "$OSTYPE" in
darwin*) PLATFORM="OSX" ;;
linux*) PLATFORM="LINUX" ;;
bsd*) PLATFORM="BSD" ;;
*) PLATFORM="UNKNOWN" ;;
esac
release_python()
{
cd $SCRIPT_DIR/..
git checkout -B ... |
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
set -ev
. "$DIR/set-tags"
mkdir -p /tmp/csi
for tag_info_string in $TAGS; do
IFS=';' read -a tag_info <<< "$tag_info_string"
echo "testing ${tag_info[1]}"
echo "X_CSI_PERSISTENCE_CONFIG=$X_CSI_PERSISTENCE_CONFIG"
echo "X_C... |
final class AddNewEmployeeState {
enum Change {
case error(message: String?)
case loading(Bool)
case success
}
var onChange: ((AddNewEmployeeState.Change) -> Void)?
/// Loading state indicator
var isLoading = false {
didSet {
onChange?(.loading(isLoadin... |
<reponame>Hunter4787/User-Admin<gh_stars>0
import React, { Component } from 'react';
import { Route } from 'react-router-dom'
import SignIn from './signin';
import SignUp from './signup';
import Home from './home';
import Aboutus from './aboutus';
import Footer from './footer';
import Header from './header';
import Use... |
<reponame>MrH3nry/Hefastos<filename>Hefastos_Android/app/src/main/java/br/edu/ifpb/hefastos_android/entities/QuestaoAberta.java
package br.edu.ifpb.hefastos_android.entities;
/**
* Created by henri on 20/03/2017.
*/
public class QuestaoAberta extends Questao {
private String resposta;
public QuestaoAberta(... |
root -l -b <<-EOF
.x digi.C
.q
EOF
root -l -b <<-EOF
.x ADC_analysis.C
.q
EOF
root -l -b <<-EOF
.x Particle_tracking.C
.q
EOF
|
webpackJsonp(["module"],{
/***/ "../../../../../src/app/components/dashboard/dashboard.component.html":
/***/ (function(module, exports) {
module.exports = "<app-loader [loaderState]=\"loaderState\"></app-loader>\n\n<header>\n <app-header \n [activeView]=\"activeView\" \n (changeView)=\"changeView($e... |
#!/bin/sh
#
#
script_dir=`dirname $0`
service_mode=$1
servers=$2
if [ "${service_mode}" == "" ] ; then
service_mode=bootstrap
fi
REPO_NAME=cloudconductor_init
GIT_URL=https://github.com/cloudconductor/cloudconductor_init.git
TOOL_DIR=/opt/chefdk/embedded/bin
BUNDLE_TOOL=${TOOL_DIR}/bundle
WORK_DIR=`pwd`
WORK_R... |
<reponame>premss79/zignaly-webapp
import React, { useState, useEffect } from "react";
import "./StatsFilter.scss";
import { Box } from "@material-ui/core";
import useExchangesOptions from "../../../../../hooks/useExchangesOptions";
import CustomSelect from "../../../../CustomSelect";
import { useIntl } from "react-intl... |
import number from '../src/number'
describe('number()', () => {
const key = 'foo'
const originalEnv = process.env
beforeEach(() => {
process.env = {
...originalEnv,
}
})
it('reads "0" as 0', () => {
process.env[key] = '0'
expect(number(key)).toBe(0)
})
it('reads "1" as 1', () => ... |
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
classpath=$(${DIR}/classpath.sh dev/jetty-server)
if [ $? -ne 0 ]; then
e... |
<reponame>zmb3/om
package api_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/ghttp"
"github.com/pivotal-cf/om/api"
"net/http"
"strings"
)
var _ = Describe("Available Products", func() {
var (
progressClient *ghttp.Server
client *ghttp.Server
service ... |
<reponame>danielotaviano/fastfeet<filename>server/src/modules/user/services/ListAllUserService.spec.ts
import BadRequestError from '../../../shared/err/BadRequestError';
import FakeHashProvider from '../providers/HashProvider/fakes/FakeHashProvider';
import FakeUserRepository from '../repositories/fakes/FakeUserReposit... |
<gh_stars>10-100
import {
animate,
animateChild,
AnimationTriggerMetadata,
query,
state,
style,
transition,
trigger
} from '@angular/animations';
export function fadeInOut(): AnimationTriggerMetadata {
return trigger('fadeInOut', [
state(
'open',
style({
opacity: 1
})
... |
/*
Info: JavaScript for JavaScript Basics Lesson 3, JavaScript Loops, Arrays, Strings, Task 6, Maximal Sequence
Author: Removed for reasons of anonymity
Successfully checked as valid in JSLint Validator at: http://www.jslint.com/ and JSHint Validator at: http://www.jshint.com/
*/
'use strict';
function findMaxSequence(... |
class CustomIterator:
def __init__(self, data):
self.data = data
self.position = 0
self.size = len(data)
def __iter__(self):
return self
def __next__(self):
if self.position < self.size:
self.position += 1
return True
else:
... |
#!/bin/bash
##
read -p "Please input the AliCloud access_key:" ACCESS_KEY
read -p "Please input the AliCloud secret_key:" SECRET_KEY
read -p "The Alicloud region is: " REGION
read -p "The Docker version is:" DOCKER_VERSION
read -p "The kubernetes version is:" KUBE_VERSION
## check params
if [[ -z $ACCESS_KEY || -... |
import { createSlice } from '@reduxjs/toolkit'
import { apiPortfolio, getcheck } from './api'
const check = createSlice({
name: 'check',
initialState: {
loading: false,
check: null,
error: false,
},
reducers: {
fetching: state => {
state.loading = true
... |
<gh_stars>0
package vishnu.adventofcode.zio
import zio._
object Day2 extends AoCZIORunnable {
def countValidInputs(inputs:Iterator[String]):UIO[Int] = {
ZIO.effectTotal(inputs.count(vishnu.adventofcode.justscala.Day2.isInputValid))
}
def countTobogganValidInputs(inputs:Iterator[String]):UIO[Int] = {
Z... |
#!/bin/bash
#
# Jobscript for launching dcmip2012 test4-1 on the NERSC Cori machine
#
# usage: sbatch jobscript-...
#SBATCH -J d41-preqx # job name
#SBATCH -o out_dcmip2-0.o%j # output and error file name (%j expands to jobID)
#SBATCH -n 64 # total number of mpi tasks requested
#SBATCH -p ... |
<gh_stars>0
/**
* Sample program that perform BlockWrite
* @file BlockWrite.c
*/
#include <tm_reader.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <inttypes.h>
#include <string.h>
#include "serial_reader_imp.h"
/* Enable this to use transportListener */
#ifndef USE_TRANSPORT_LIS... |
import unittest
from tornado_http2.encoding import BitEncoder, BitDecoder, EODError
class TestData(object):
def __init__(self, *args):
self.args = args
def encode(self, encoder):
for arg in self.args:
self.encode_value(encoder, arg)
def decode(self, test, decoder):
fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.