text
stringlengths
1
1.05M
<filename>coms/responses.py import asyncio, discord try: from _command import Command except: from coms._command import Command import pickle class Com(Command): def __init__(self): self.usage = "!responses" self.description = "Direct Messages you with a list of all the responses!" ...
/** * 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"...
require 'marky_markov' markov = MarkyMarkov::Dictionary.new('dictionary') markov.parse_file "there_is_a_way.txt" markov.parse_file "the_breeze_at_dawn.txt" markov.parse_file "not_intrigued_with_evening.txt" markov.parse_file "moving_water.txt" markov.parse_file "out_beyond_ideas.txt" markov.parse_file "there_is_a_commu...
namespace TT.Tests.Builders.RPClassifiedAds { public class RPClassifiedAdBuilder : Builder<RPClassifiedAd, int> { private string title; private string description; private decimal price; private string category; public RPClassifiedAdBuilder() { // Con...
<reponame>LuanFaria/Conversor_de_Moedas from PyQt5.QtWidgets import QApplication, QMainWindow import sys from interface import * from Coletor import * import datetime class Converter(QMainWindow, Ui_MainWindow): def __init__(self): super().__init__(None) super().setupUi(self) # Fixar o Ta...
#!/bin/bash set -ex set -o pipefail # Default number of steps and batch size for the challenge N_STEP=16 N_BATCH=8 # For a fast experiment: # N_STEP=15 # N_BATCH=1 # Input args CODE_DIR=$1 N_REPEAT=$2 # Where output goes DB_ROOT=./output DBID=run_$(date +"%Y%m%d_%H%M%S") # Setup vars OPT=$(basename $CODE_DIR) OPT...
<gh_stars>1-10 package org.tom_v_squad.soiwenttoaconcert.controllers; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.Errors; import org.springframework.web.bind.annotation.*; imp...
<filename>src/test/java/io/shadowstack/candidates/InvocationReplayerTest.java<gh_stars>0 package io.shadowstack.candidates; import io.shadowstack.*; import io.shadowstack.incumbents.InvocationRecorder; import io.shadowstack.incumbents.InvocationSink; import io.shadowstack.invocations.Invocation; import lombok.extern.s...
import { graphql, useStaticQuery } from "gatsby" const useStudioPage = () => { const { prismicStudio } = useStaticQuery(graphql` { prismicStudio { data { manifesto { title { text } column_2 { html } co...
# change apt soft source to Chinese mirror site sudo sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list # import openresty GPG key: wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add - sudo apt update sudo apt install -y software-properties-common # add openresty rep...
heroku container:login heroku container:push web heroku container:release web
<reponame>smagill/opensphere-desktop<filename>open-sphere-base/mantle/src/main/java/io/opensphere/mantle/transformer/impl/PolygonRegionCommandWorker.java package io.opensphere.mantle.transformer.impl; import java.util.Collection; import java.util.List; import java.util.Set; import java.util.concurrent.locks.Reent...
package com.rey.jsonbatch.playground.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; @JsonIgnoreProperties({"loop", "predicate", "httpMethod", "url", "headers", "body", "transformers", "responses"}) @JsonInclude(JsonInclude.Include.NON_NULL) pu...
from typing import List, Tuple class Point: def __init__(self, x: int, y: int): self.x = x self.y = y class Polygon: def __init__(self, points: List[Tuple[int, int]]): self.points = [Point(x, y) for x, y in points] self.indexed = False def index(self): # Implement ...
package mysqlconn import ( "context" "database/sql" "fmt" "github.com/domonda/go-sqldb" "github.com/domonda/go-sqldb/impl" ) // New creates a new sqldb.Connection using the passed sqldb.Config // and github.com/go-sql-driver/mysql as driver implementation. // The connection is pinged with the passed context, //...
package de.ids_mannheim.korap.misc; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import org.junit.Test; import com.fasterxml.jackson.databind.JsonNode; import de.ids_mannheim.korap.exceptions.KustvaktException; import de.ids_mannheim.korap.query.serialize.QuerySerializer...
#!/bin/bash set -e eval "$(ssh-agent -s)" && \ ssh-add /home/galuisal/.ssh/id_rsa_ext ssh-add -l rsync --delete -avzhe 'ssh -p 2222' --progress lovelace@192.168.100.47:/home/lovelace/cardano-node/mainnet/rocinante/relay0 /mnt/storage/cardano/ \ && ssh -p 2222 lovelace@192.168.100.40 'mkdir -p /home/lovela...
<reponame>mighteejim/manager<filename>src/profile/integrations/layouts/IndexPage.js import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { Tabs } from 'linode-components/tabs'; export function IndexPage(props) { const tabs = [ { name:...
#Run this curl command to invoke the service. $ curl "http://localhost:9090/sample/path;a=4;b=5/value1;x=10;y=15?bar=value2" { "pathParam": "value1", "queryParam": "value2", "matrix": { "path": "a=4, b=5", "foo": "x=10, y=15" } }
#!/bin/bash set -e -x yum -y install autoconf automake cmake gcc gcc-c++ git make pkgconfig zlib-devel portmidi portmidi-devel Xorg-x11-server-deve mesa-libEGL-devel mtdev-devel mesa-libEGL freetype freetype-devel openjpeg openjpeg-devel libpng libpng-devel libtiff libtiff-devel libwebp libwebp-devel dbus-devel dbus ...
SELECT * FROM contacts where first_name LIKE 'M%'
<filename>dist/common/intent.js import { palette } from '@dfds-shared/colors'; export var Intent; (function (Intent) { Intent[Intent["Primary"] = 0] = "Primary"; Intent[Intent["Secondary"] = 1] = "Secondary"; Intent[Intent["Success"] = 2] = "Success"; Intent[Intent["Warning"] = 3] = "Warning"; Intent[Intent[...
ip tuntap add tap100 mode tap ip addr add 10.0.0.1/24 dev tap100 ip link set dev tap100 up
#!/bin/bash clear BRANCH_TAG=$(git rev-parse --abbrev-ref HEAD) echo "----------------------------------- RESET $BRANCH_TAG" git fetch origin && \ git reset --hard origin/$BRANCH_TAG echo "----------------------------------- RESET CONCLUIDO" echo
#!/bin/bash dieharder -d 204 -g 44 -S 2080882235
<filename>core/plugin/activity/activity.rb # -*- coding: utf-8 -*- # 通知管理プラグイン miquire :mui, 'tree_view_pretty_scroll' require "set" # アクティビティの設定の並び順 UserConfig[:activity_kind_order] ||= ["retweet", "favorite", "follow", "list_member_added", "list_member_removed", "dm", "system", "error"] # アクティビティタブに保持する通知の数 UserCo...
var searchData= [ ['comments',['COMMENTS',['../namespacejson11.html#a8ed5b6b8d6e11e5cdf2e213e192a817baab5f715cadd88a391f6d749c5f5910b0',1,'json11']]] ];
// class-dump results processed by bin/class-dump/dump.rb // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Jul 30 2018 09:07:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <Foundation/Foundation.h> #import <CoreGraphics/CoreGraphics.h> #import <X...
#!/bin/bash top_dir=$(git rev-parse --show-toplevel | sed 's|/[^/]*$||') # run ansible ansible-playbook -i .contiv_k8s_inventory ./contrib/ansible/cluster.yml --tags "contiv_restart" -e "networking=contiv contiv_fabric_mode=default contiv_bin_path=$top_dir/netplugin/bin"
package com.sa.web; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SentimentAnalysisWebApp { public static void main(String[] args) { SpringApplication.run(SentimentAnalysisWebApp.class, args); ...
import type { LayoutRectangle } from 'react-native'; export function layoutReducer( state: LayoutReducerState, action: LayoutReducerAction ): LayoutReducerState { const { type, ...stateProps } = action; switch (type) { case LayoutReducerActionType.update: return { ...state, ...statePr...
cp docker-compose.yml.sample docker-compose.yml docker-compose build docker-compose up -d
<gh_stars>0 import pulsar as psr def load_ref_system(): """ Returns d-arginine as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" N 2.1694 0.0784 -2.2820 C 1.5771 -0.9760 -1.4246 C...
<reponame>cjeanGitHub/microservice-spring-cloud-159 package com.study.vcloud.vclouduser.user.service.impl; import com.baomidou.mybatisplus.service.impl.ServiceImpl; import com.study.vcloud.vclouduser.user.entity.SysRole; import com.study.vcloud.vclouduser.user.mapper.SysRoleMapper; import com.study.vcloud.vclouduser.u...
#!/bin/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 applicable law ...
<filename>src/keypadConfig.h #ifndef keyPadConfig_h #define keyPadConfig_h #include <Arduino.h> #define C1 4 // Col 1 #define C2 5 // Col 2 #define C3 6 // Col 3 #define C4 7 // Col 4 #define R1 8 // Row 1 #define R2 9 // Row 2 #define R3 10 // Row 3 #define R4 11 // Row 4 cons...
python3 install.py $@
import React from "react"; export interface SectionBlockProps { className?: string; children?: React.ReactNodeArray | React.ReactNode; isExperimental?: boolean; title: string; }
import fetch, { Headers, Request, Response } from 'node-fetch' import AbortController from 'abort-controller' import { FormData, Blob } from 'formdata-node' globalThis.AbortController = AbortController // @ts-expect-error globalThis.fetch = fetch globalThis.Headers = Headers // @ts-expect-error globalThis.Request = Re...
/** * Copyright 2018 hubohua * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agree...
# -*- coding: utf-8 -*- """Kuihao_FL_Sequential_Multi-Clients_Simulation Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/gist/kuihao/2b8b376fd307d83661fcd65679cc99ec/kuihao_fl_sequential_multi-clients_simulation.ipynb #Prepare Dataset """ dataset_path = 'da...
<reponame>rachelkwaynick/redux-toolkit import React from 'react' import Footer from './features/filters/Footer' import AddTodo from './features/todos/AddTodo' import VisibleTodoList from './features/todos/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) exp...
#!bash # shellcheck disable=SC2239 CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # shellcheck source=scripts/tmux_cmd_path.sh source "$CURRENT_DIR/tmux_cmd_path.sh" yank_line="y" yank_line_option="@yank_line" yank_pane_pwd="Y" yank_pane_pwd_option="@yank_pane_pwd" yank_default="y" yank_option="@c...
import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { PostUpdateManyWithoutAuthorInput } from '../post/post-update-many-without-author.input'; @InputType() export class UserUpdate...
<filename>src/elements/FlowField.ts<gh_stars>0 import { IFlowField } from './ElementInterface'; import { ICanvasState } from '../components/Canvas/CanvasInterfaces'; import { getCoordinateAfterRotation } from '../utils/math'; export default class FlowField implements IFlowField { private fields: nj.NdArray[][] = [...
#!/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...
/* * Copyright 2021 HM Revenue & Customs * * 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...
<reponame>path64/assembler // // ELF object format // // Copyright (C) 2003-2007 <NAME> // // 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 // ...
import {getElement} from "./functions"; var modal = function (modalId) { const ele = getElement(modalId), errorDiv = ele.querySelector('.alert.error'); return { show: function () { errorDiv.classList.remove('show'); ele.classList.add('show'); getEle...
A suitable natural language processing task for summarizing a given article is extractive summarization. This task involves extracting out key phrases from the text. The extracted phrases are then used to generate an overview of the article by rephrasing them into more concise sentences. An algorithm such as the TextRa...
#!/bin/sh set -e Database_Check="${EDGEX_DB:-redis}" Secure_Check="${EDGEX_SECURE:-true}" # Set default config cp /edgex/config/00-consul.json /consul/config/00-consul.json # Set config files - Redis DB if [ "$Database_Check" = 'redis' ]; then echo "Installing redis health checks" cp /edgex/config/database/0...
#!/usr/bin/env bash # Build Pype using existing virtual environment. art () { cat <<-EOF . . .. . .. _oOOP3OPP3Op_. . .PPpo~· ·· ~2p. ·· ···· · · ·Ppo · .pPO3Op.· · O:· · · · .3Pp · oP3'· 'P33· · 4 ·· · · · ·· · · · ·~OP 3PO· .Op3 : · ·· _____ __...
<reponame>SamOdum/timeuler-mite import { fail } from "../fail" export function getMiteAccountName() { let accountName = process.env.MITE_ACCOUNT_NAME! if (!accountName) { fail("MITE_ACCOUNT_NAME not found") } return accountName } export function getMiteAccessToken() { let accessToken = process.env.MIT...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = syntheticClick; var _notifier = require('./notifier'); var _constants = require('./constants'); var blockClick = false; var blockClickTimerID = null; var blockClickCounter = 0; // call node.click() on tap, and block a ...
#!/usr/bin/env bash #Petit script pour suivre un redirect de type refresh dans un fichier HTML #ATTENTION: ça été fait pour une structure perso ! #faudra modifier le script pour d'autres structures #zf181114.1606 #source: https://stackoverflow.com/questions/428109/extract-substring-in-bash #note: shopt -s extglob ...
#!/bin/sh # this script prepare database and redis instance to run acceptance test # # NOTE: assumes existance of a "template_postgis" loaded with # compatible version of postgis (legacy.sql included) PREPARE_REDIS=yes PREPARE_PGSQL=yes while [ -n "$1" ]; do if test "$1" = "--skip-pg"; then PREPARE_PGSQL...
<gh_stars>10-100 const path = require("path"); const fs = require("fs").promises; const BUILD_PATH = path.join(__dirname, "..", "dist"); const ignoreSet = new Set(["index.html", "robots.txt", "service-worker.js"]); (async () => { const files = await fs.readdir(BUILD_PATH); const filteredFiles = files.filter((fil...
from math import acos, degrees def angle_planar_3d(normal1, normal2): length1 = math.sqrt((normal1[0]**2) + (normal1[1]**2) + (normal1[2]**2)) length2 = math.sqrt((normal2[0]**2) + (normal2[1]**2) + (normal2[2]**2)) dotProduct = normal1[0]*normal2[0] + normal1[1]*normal2[1] + normal1[2]*normal2[2] cosA...
#!/bin/sh sudo pip install -r requirements.txt python test_hello_world.py 127.0.0.1 127.0.0.1
<filename>qiita_db/test/test_portal.py # ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ---------...
<reponame>depp/raycast #include "defs.h" #include "imath.h" #include "world.h" #include <stdlib.h> // #include <stdio.h> struct world *world_new(void) { struct world *w = xmalloc(sizeof(*w)); struct obj *o = &w->player; o->x0 = 0; o->y0 = 0; o->x1 = 0; o->y1 = 0; o->angle = 0; o->speed ...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { environment } from 'src/environments/environment'; import { Device } from '../_models/device'; @Injectable({ providedIn: 'root' }) export class DeviceService { baseUrl=environment.apiUrl; constructor(private http...
#!/bin/bash # This simulates a button press for a fixed period of seconds for the power switch # similar to the press of a power switch for an ATX PSU # Setting GPIO18 to 1 is the same as pushing the power switch for the X735 BUTTON=18 echo "$BUTTON" > /sys/class/gpio/export; echo "out" > /sys/class/gpio/gpio$BUTTON...
#include "icon.hpp" /*! * \brief Constructor * */ Icon::Icon(){} /*! * \brief Constructor with name of icon * * Write something about the function such as input/output, what it does * etc... * \n input: * \n output: */ Icon::Icon(GUI & gui, std::string name){ my_...
<filename>tests/test_triangle.py from star_tracker.modules.triangle import Triangle from numpy import pi import pytest def test_print(): t = Triangle([0,0,0],3,5) p = str(t) assert p == '| 0,0,0 --> 3.00 5.00 |' def test_validArea(): t = Triangle([0,0,0],3,5) s = [t.validArea(1,2), t.validArea(1,1...
#!/bin/bash # Copyright 2019 The Vitess 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 o...
<gh_stars>0 import zipfile z = zipfile.ZipFile("zipfile.zip", "r") for filename in z.namelist(): print 'File:', filename, bytes = z.read(filename) print 'has', len(bytes), 'bytes'
<gh_stars>1000+ from .execution import ( ScheduledExecutionFailed, ScheduledExecutionResult, ScheduledExecutionSkipped, ScheduledExecutionSuccess, ) from .scheduler import ( DagsterDaemonScheduler, DagsterScheduleDoesNotExist, DagsterScheduleReconciliationError, DagsterSchedulerError, ...
package pantry import ( "fmt" "reflect" "strings" ref "github.com/yazver/golibs/reflect" ) func addIfNotSpace(m map[string]string, k, v string) { k = strings.TrimSpace(strings.ToLower(k)) v = strings.TrimSpace(v) if k != "" && v != "" { m[k] = v } } func parseTagSettings(tag reflect.StructTag, opt *Option...
<reponame>Gr1f0n6x/TarantoolORM<filename>src/main/java/org/tarantool/orm/annotations/IndexedFieldParams.java package org.tarantool.orm.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(E...
package owlmoney.logic.command.transaction; import static owlmoney.commons.log.LogsCenter.getLogger; import java.util.logging.Logger; import owlmoney.logic.command.Command; import owlmoney.model.bank.exception.BankException; import owlmoney.model.profile.Profile; import owlmoney.model.transaction.exception.Transacti...
weak var saveState: PVSaveState? { didSet { if let saveState = saveState { titleLabel.text = saveState.title let dateFormatter = DateFormatter() dateFormatter.dateFormat = "MMM d, h:mm a" timeStampLabel.text = dateFormatter.string(from: saveState.timestamp) ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bug = void 0; var bug = { "viewBox": "0 0 16 16", "children": [{ "name": "path", "attribs": { "fill-rule": "evenodd", "d": "M11 10h3V9h-3V8l3.17-1.03-.34-.94L11 7V6c0-.55-.45-1-1-1V4c0-.48-.36-.88-.83-.97L10....
<reponame>Zueuk/JitCat<filename>src/jitcat/ExpressionAny.cpp<gh_stars>0 /* This file is part of the JitCat library. Copyright (C) <NAME> 2018 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ #include "jitcat/ExpressionAny.h" #include "jitcat/CatASTNodes.h" #includ...
<reponame>reportportal/plugin-bts-azure /* * WorkItemTracking * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 6.1-preview * Contact: <EMAIL> * * NOTE: This class is auto generated by the swagger code generator program. * https://g...
<filename>app/src/main/java/com/ergdyne/tasktimer/EditTaskActivity.java package com.ergdyne.tasktimer; import android.app.AlertDialog; import android.app.TimePickerDialog; import android.content.DialogInterface; import android.database.Cursor; import android.os.Bundle; import android.support.v7.app.ActionBar; import a...
timing_test(function() { at(0, function() { assert_styles( '.anim', [{'left':'100px'}, {'left':'100px'}, {'left':'0px'}, {'left':'0px'}]); }, "Autogenerated"); at(0.5, function() { assert_styles( '.anim', [{'left':'150px'}, {'left':'125px'}, {'lef...
package se.sundsvall.messaging.model; import javax.validation.Valid; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; import io.swagger.v3.oas.annotations.media.Schema; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.EqualsAndHas...
package br.edu.up.pessoa.model; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; import org.springframework.lang.NonNull; @Entity public class Pessoa { ...
set -ex mkdir -p ~/.hermes/ cp ./scripts/ci/hermes/config.toml ~/.hermes/ hermes keys add stargaze -f $PWD/scripts/ci/hermes/stargaze.json hermes keys add gaia -f $PWD/scripts/ci/hermes/gaia.json hermes keys add osmosis -f $PWD/scripts/ci/hermes/osmosis.json hermes tx raw ft-transfer stargaze gaia transfer channel-0 99...
<filename>src/shared/drivers/gps/ublox/UbloxGPSData.h /* Copyright (c) 2020 Skyward Experimental Rocketry * Author: <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 restr...
import React, { useState } from 'react'; function App() { const [items, setItems] = useState([ { name: 'Apples', selected: false }, { name: 'Oranges', selected: false }, { name: 'Bananas', selected: false }, ]); const toggleItemSelection = (index) => { const updatedItems = [...items]; updatedItems[index].sele...
root=$(git rev-parse --show-toplevel) kbase_dir=kbase-extension src_dir=src test_dir=test ext_components_dir=kbase-extension/static/ext_components nbextension_dir=nbextensions container_root=/kb/dev_container/narrative/ if [ -z "$ENV" ]; then echo "The 'ENV' environment variable is required, set to either ci, next, ap...
lock "~> 3.11.0" # # あなたのGitHubユーザー名に変更してください # set :repo_url, "https://github.com/kenjimanishi/20180430-schoo.git" # # あなたのWebサーバーの環境に合わせてデプロイ先ディレクトリパスを設定してください # set :deploy_to, "/var/www/schoo"
# import libraries from sklearn.feature_extraction.text import CountVectorizer from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import accuracy_score # create features using count vectorizer corpus = [words] vect = CountVectorizer(stop_words='engli...
#!/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 l...
<!DOCTYPE html> <html> <head> <title>States and Capitals</title> </head> <body> <h1>States and Capitals</h1> <ul> <li>Alabama - Montgomery</li> <li>Alaska - Juneau</li> <li>Arizona - Phoenix</li> <li>Arkansas - Little Rock</li> <li>California - Sacramento</li> <li>Colorado - Denver</li> <li>Connecticut...
<filename>data_structures/Academind JavaScript Data Structures/course_resources/01_Getting_Started/01-arrays/app.js const names = ['Max', 'Manu', 'Julie', 'Max']; // Index starts at zero console.log(names[1]); console.log(names.length); for (const el of names) { console.log(el); } names.push('Julie'); console.log(n...
<gh_stars>0 /* * JBoss, Home of Professional Open Source. * Copyright 2016 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 ...
<filename>lib/active_scaffold/helpers/association_helpers.rb<gh_stars>100-1000 module ActiveScaffold module Helpers module AssociationHelpers # Cache the options for select def cache_association_options(association, conditions, klass, cache = true) if active_scaffold_config.cache_association_o...
package models import org.joda.time.DateTime import play.api.libs.json.{Writes, Reads, Json} /** * Created by Jo on 2/4/16. */ case class Group ( groupId: Long, groupName: String, creator: String, profileImg: String, description: String, created: DateTime, updated: DateTime ) object Group { implici...
package com.decathlon.ara.service.dto.executedscenario; import java.util.Date; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class ExecutedScenarioDTO { private Long id; private String featureFile; private Stri...
#!/bin/bash # ec2_get_root_volume_sizes # [AWS_PROFILE=<aws cli profile name>] ./ec2_get_root_volume_sizes <environment> <project> environment="${1}"; project="${2}"; echo -e " EBS Root Volume Sizes ############################################################## | Name | Instance | Volume Id ...
#!/bin/bash docker build -f Dockerfile_build_px4_mavlink_aarch64 -t px4_mavlink_build . # creates a shared proj directory where firmware sources can live mkdir -p $PWD/proj docker run --rm --name px4_build0 -v $PWD/proj:/proj -it px4_mavlink_build # This embeds px4_sitl in a container for easy running docker build -f ...
/* * Copyright © 2021 Apple Inc. and the ServiceTalk project 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 requi...
TERMUX_PKG_HOMEPAGE=https://rybczak.net/ncmpcpp/ TERMUX_PKG_DESCRIPTION="NCurses Music Player Client (Plus Plus)" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=0.8.2 TERMUX_PKG_REVISION=5 TERMUX_PKG_SHA256=650ba3e8089624b7ad9e4cc19bc1ac6028edb7523cc111fa1686ea44c0921554 TERMUX_PKG_SRCURL=https://rybczak.net/ncmpcpp/s...
<filename>site/app/features/shared/components/notFound.js import React from 'react'; import {compose} from '@truefit/bach'; import {withGATracker} from '../enhancers'; const NotFound = () => <div>Sorry I wasnt able to find the page</div>; export default compose(withGATracker())(NotFound);
<gh_stars>0 package org.jooby.internal.couchbase; import static org.junit.Assert.assertEquals; import org.jooby.couchbase.GeneratedValue; import org.junit.Test; import com.couchbase.client.java.repository.annotation.Id; public class IdGeneratorTest { public static class Base { String id; } public static...
#!/bin/bash # Start the first process # /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf runuser -l postgres -c '/usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf' & s...
<filename>src/main/java/org/wildfly/extension/elytron/KeyStoreAliasDefinition.java<gh_stars>0 /* * JBoss, Home of Professional Open Source. * Copyright 2015 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may ...