text
stringlengths
1
1.05M
<reponame>axyjs/axy-define-asm "use strict"; exports.runCLI = require("./lib/cli.js").runCLI; exports.run = require("./lib/api.js").run;
#!/bin/bash set -xe sudo docker pull grafana/grafana
<filename>specs2/src/test/scala/org/http4s/specs2/SilenceOutputStream.scala<gh_stars>0 /* * Copyright 2021 http4s.org * * 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...
import serial import sys import threading import time import argparse import struct import queue class TaskManager: def __init__(self, serial_port): self.serial_port = serial_port self.task_queue = queue.Queue() self.serial_connection = serial.Serial(serial_port, baudrate=9600, timeout=1) ...
<reponame>nkmiura/mw2ape package br.usp.poli.lta.nlpdep.execute.NLP.output; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.HashMap; import java.util.LinkedList; public class NLPOutputList { private static final Logger logger = LoggerFactory.getLogger(NLPOutputList.class); private ...
<gh_stars>0 import {test} from 'qunit'; import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'; import Sugar from 'ember-sugar-date'; moduleForAcceptance('Acceptance | when index'); test('visiting /', function (assert) { visit('/'); andThen(function () { assert.equal(currentURL(), '/'); ...
const { Message, MessageEmbed } = require("discord.js") module.exports = { name : 'hextostring', description : 'tranlates hex do decimal', execute(client, message, args) { let hexString = args[0]; function hexToString(str) { const buf = new Buffer.from...
#!/bin/bash # # Start script for company-appointments.api.ch.gov.uk APP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [[ -z "${MESOS_SLAVE_PID}" ]]; then source ~/.chs_env/private_env source ~/.chs_env/global_env source ~/.chs_env/company-appointments.api.ch.gov.uk/env PORT="${COMPANY_AP...
/* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable react/prop-types */ // @ts-nocheck import React from 'react'; import { Link } from '../../helpers'; import NavLinks from './nav-lin...
#!/bin/bash SINCE=$1 RELEASE=$2 BRANCH="${3:-$(git branch --show-current)}" OUTFILE=$4 docker run --rm=true -it -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator \ --user pomerium --project pomerium \ -o "${OUTFILE}" \ --no-issues \ --max-issues 500 \ --usernames-as-githu...
function newDateFromRef(days) { return moment('01/01/2015 12:00', 'DD/MM/YYYY HH:mm').add(days, 'd').toDate(); } module.exports = { threshold: 0.01, config: { type: 'line', data: { labels: [newDateFromRef(0), newDateFromRef(1), newDateFromRef(2), newDateFromRef(4), newDateFromRef(6), newDateFromRef...
#!/bin/bash echo "Starting flume agent : ${FLUME_AGENT_NAME}" cat "${FLUME_CONF_FILE}" su-exec "${FLUME_USER}" flume-ng agent \ -c "${FLUME_CONF_DIR}" \ -f "${FLUME_CONF_FILE}" \ -n "${FLUME_AGENT_NAME}" \ -Dflume.root.logger=INFO,console \ -Dflume.monitoring.type=http \ -Dflume.monitoring.port="${FLUME_REPORT...
curl https://backgroundcheck.yourcompany.com/post -k \\ -x __VAULT_PROXY_URL__ \\ -X POST \\ -H "Content-type: application/json" \\ -d '{"ssn": "$VGS_TOKEN"}'
<gh_stars>0 /* Functions for processing flex files into the json format used by the site. */ const fs = require('fs'); const util = require('util'); const parseXml = require('xml2js').parseString; const speakerRegistry = require('./speaker_registry').speakerRegistry; const tierRegistry = require('./tier_registry').ti...
package com.walkermanx.photopicker.adapter; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Build; import android.util.DisplayMetrics; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import andr...
<filename>src/components/Services.js import React from "react" import { graphql, useStaticQuery } from "gatsby" import ServiceCard from "./ServiceCard" const query = graphql` { services: allContentfulServiceBruni { nodes { id title altText desc: childContentfulServiceBruniDe...
<reponame>TommasoAzz/Stalker-Backend package it.qbteam.persistence.repository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import it.qbteam.mod...
package com.dam.user.rest.message; import com.fasterxml.jackson.databind.JsonNode; /** * LoginRequest is the typical request to authenticate the user against the system. * * Response: TokenResponse * * Scope: External Calls * * @author dirk * */ public class WrappedRequest { private JsonNode wrapped...
var searchData= [ ['key',['key',['../classgeopm_1_1_profile_table.html#a3ccebf2606e66bded2f5566539d46afc',1,'geopm::ProfileTable::key()'],['../classgeopm_1_1_profile_table_imp.html#a7ebd0ea914e167a287538f365c592eec',1,'geopm::ProfileTableImp::key()'],['../classgeopm_1_1_shared_memory.html#a5b16cccaccbc0cabcf1865839f5...
<reponame>hhaip/langtaosha package cn.lts.memcachedclient.serializer; import cn.lts.common.exception.InternalRuntimeException; import net.rubyeye.xmemcached.transcoders.CachedData; import net.rubyeye.xmemcached.transcoders.CompressionMode; import net.rubyeye.xmemcached.transcoders.Transcoder; /** * 默认的编解码器 * * @a...
package com.devaneios.turmadeelite.services.impl; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.regions.Regions; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.AmazonS3ClientBuilder; import com.amazonaws.s...
exports.config = { seleniumAddress: 'http://localhost:4723/wd/hub', specs: ['../test/protractor/spec.js'], chromeOnly: false, capabilities: { browserName: 'safari' , platformName: 'iOS' , deviceName: 'iPhone Simulator' }, baseUrl: 'http://localhost:' + (process.env.HTTP_PORT || '8000') };
import pickle def serialize_object(obj, file_path): try: with open(file_path, 'wb') as file: pickle.dump(obj, file) print(f"Object serialized and saved to {file_path}") except Exception as e: print(f"Serialization failed: {e}") # Example usage data = {'name': 'Alice', 'age'...
<filename>src/components/title.js import { createElement } from "../lib/dom"; import "./title.scss"; import logo from "../assets/pokeball.svg"; export function title(text) { const image = createElement("img", { className: "logo", src: logo }); const element = createElement("h1", { innerText: text, ...
<reponame>toooot0000/System-Monitor #include "linux_parser.h" #include <dirent.h> #include <unistd.h> #include <sstream> #include <string> #include <vector> #include <unordered_map> #include <regex> #include <filesystem> #include <assert.h> #include <iostream> using std::stof; using std::string; using std::to_stri...
<reponame>ThallesTorres/Linguagem_C // Exercício 12 - Dado um número inteiro positivo n, imprimir os n primeiros naturais ímpares. #include <stdio.h> int main(void) { int num, impar; impar = 1; printf("Digite um número: "); scanf("%d", &num); printf("Os %d primeiros números ímpares são: ", n...
sudo apt-get install linux-headers-$(uname -r) -y distribution=$(. /etc/os-release;echo $ID$VERSION_ID | sed -e 's/\.//g') wget https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/cuda-$distribution.pin sudo mv cuda-$distribution.pin /etc/apt/preferences.d/cuda-repository-pin-600 sudo apt-key ...
<filename>src/app/pages/basic-data/orders/trainer-account-reports/trainer-account-reports.component.ts import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { environment } from '../../../../../environments/environment.prod'; import { OrdersService } from '....
from django.db import models from django.utils import timezone import datetime class Appointment(models.Model): patient_name = models.CharField(max_length=100) appointment_datetime = models.DateTimeField() reason = models.CharField(max_length=200) def is_future_appointment(self): return self.a...
#! /bin/sh asv profile -E existing '^increment.Merge(.*)' &> report/increment asv profile -E existing 'original_increment.Merge(.*)' &> report/original_increment asv profile -E existing 'original_merge.Merge(.*)' &> report/original_merge asv profile -E existing '^merge_increment.Merge(.*)' &...
<gh_stars>1-10 package kr.co.gardener.admin.model.other.list; import kr.co.gardener.admin.model.other.Notice; import kr.co.gardener.util.CommonList; public class NoticeList extends CommonList<Notice>{ public NoticeList() { super("공지 관리"); addTh("공지ID", "noticeId", "none"); addTh("제목", "noticeTitle", "text"...
./jwe -train wiki_process.txt -output-word word_vec -output-char char_vec -output-comp comp_vec -size 200 -window 5 -sample 1e-4 -negative 10 -iter 100 -threads 8 -min-count 5 -alpha 0.025 -binary 0 -comp ../subcharacter/comp.txt -char2comp ../subcharacter/char2comp.txt -join-type 1 -pos-type 1 -average-sum 1
from ..Core.registers import Registers from ..Core.commands import Commands from ..Core.types import Types from .base import Base from .itoa_and_write import ItoaWrite class Write(Base): is_loaded = False def __init__(self, compiler): Base.__init__(self, compiler) if Write.is_loaded: ...
import React from 'react'; import chai, { expect } from 'chai'; import chaiEnzine from 'chai-enzyme'; import { shallow } from 'enzyme'; import FullHeader from '../../src/Main'; // chai.use(chaiEnzine()); describe('<FullHeader />', () => { it('should have header tag when mount', () => { const wrapper = sha...
<reponame>prt2121/android-workspace package com.prt2121.rxagain; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import butterknife.Bind; import butterknife.ButterKnife; import com.google.gson.G...
const listHandler = require("../../procedural/listHandler"); describe(createDescribeHeader("Procedural listHandler.js"), function() { describe( createDescribeHeader("#generateSearchResults(booksData)"), function() { it( createItHeader( "generates array of book objects when an api resu...
<reponame>community-boating/cbidb-public-web import {apBasePath} from "./_base"; export default apBasePath.appendPathSegment<{}>("/reg");
<reponame>vadi2/codeql public class A { String taint() { return "tainted"; } void sink(Object o) { } static String step(String s) { return s + "0"; } static class Box { String s; Box(String s) { this.s = s + "1"; } String getS1() { return s + "2"; } String getS2() { return step(s + "...
#!/bin/bash # profiles = xccdf_org.ssgproject.content_profile_ospp # remediation = none # Use auditctl in RHEL7 sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service echo "-a always,exit -F dir=/var/log/audit/ -F perm=r -F auid>=1000 -F auid!=unset -F key=access-audit-tra...
package com.md.appbrige.appuserconnect.server; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.jdo.Extent; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import com.md.appbrige.appuserconnect.model.Message; p...
#!/bin/sh mkdir /.drive/ps2 ln -s /home/ps2 useradd ps2 -d /home/ps2 cp /home/pi/.bashrc /home/ps2/ cp /home/pi/.profile /home/ps2 chown ps2:ps2 -R /home/ps2
<reponame>vasinov/cathouse-frontend require_relative '../test_helper' class RenderCmsIntergrationTest < ActionDispatch::IntegrationTest def setup super Rails.application.routes.draw do get '/render-basic' => 'render_test#render_basic' get '/render-page' => 'render_test#rende...
<gh_stars>1-10 # This initializer will catch the use of deprecated gqueries. Since there can be thousands of events # we should decide what to do with them. At the moment I'm just showing them on the log. We could # save them to a separate log file or store them externally and use a gquery counter. # if Rails.root.joi...
terraform() { cat <<EOF provider "aws" { region = "$REGION" } resource "aws_subnet" "$NAME" { vpc_id = "$VPC_ID" cidr_block = "10.0.1.0/24" # Replace with the desired CIDR block for the subnet # Add any other necessary subnet configurations here } EOF }
<reponame>divBis0/KodalySongDatabase var ToneKeyboard = {}; jQuery(function($) { ToneKeyboard.options = { layout: 'custom', customLayout: { 'normal' : [ // "n(a):title_or_tooltip"; n = new key, (a) = actual key, ":label" = title_or_tooltip (use an underscore "_" in place of a space " ") 'd(d):do ...
#!/usr/bin/env bash ceph_mon_ip=10.250.20.11 ceph_user=u18-k8s ssh root@${ceph_mon_ip} ceph auth print-key client.${ceph_user}
import { Component, OnInit } from '@angular/core'; import { User, Video, UserStats } from 'src/app/models'; import { AdminService } from 'src/app/services'; @Component({ selector: 'admin-users-chart', templateUrl: './admin-users-chart.component.html' }) export class AdminUsersChartComponent implements OnInit {...
<reponame>silentsoft/silentsoft-ui package org.silentsoft.oss; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import org.junit.Assert; import org.junit.Test; import org.silentsoft.oss.license.BSD3ClauseLicense; import org.silentsoft.oss.license.MITLicense; public cl...
import { DocumentNode } from 'graphql'; import { GraphQLClient } from 'graphql-request'; import { print } from 'graphql/language/printer'; import { action, computed, observable, runInAction } from 'mobx'; import { AbortablePromise } from '../AbortablePromise'; export class GraphQLRequest<TResult, TVariables> { @obse...
<filename>sync/sched.go // @Author : Lik // @Time : 2021/1/26 package main import ( "runtime" "sync" ) func TestSchedDemo() { wg := new(sync.WaitGroup) wg.Add(4) go func() { defer wg.Done() for i := 0; i < 6; i++ { println(i) if i == 3 { runtime.Gosched() } } }() go func() { defer wg.Don...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_outbond_twotone = void 0; var ic_outbond_twotone = { "viewBox": "0 0 24 24", "children": [{ "name": "rect", "attribs": { "fill": "none", "height": "24", "width": "24", "x": "0", "y": "0" ...
<filename>test/com/twu/biblioteca/CustomerTest.java package com.twu.biblioteca; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Created by alexa on 4/02/2019. */ public class CustomerTest...
# ---------------------------------------------------------------------------- # # Package : client-java-api # Version : 6.0.1 / 8.0.0 # Source repo : https://github.com/kubernetes-client/java # Tested on : UBI 8.5 # Language : Java # Travis-Check : True # Script License: Apache License, Version 2 or later ...
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
<reponame>gitnooji/nj-kik-controller 'use strict'; let nock = require('nock'); let request = require('supertest'); let assert = require('assert'); let Bot = require('../index.js'); const BOT_USERNAME = 'testbot'; const BOT_API_KEY = '2042cd8e-638c-4183-aef4-d4bef6f01981'; describe('Get user profile info', () => { ...
package modele; /* Enum : DistributionType ------------------------------------------ Constantes liées à l'algorithme de remplissage du vaisseau suivant différentres stratégies. Possibilités : Naif, Packet, Life_focus */ public enum FillingType { NAIVE, PACKET, LIFE_FOCUS, MORE_SPA...
#!/usr/bin/env python3 import random #for i in range(180): while True: title = input() print("{0:.2f} {1}".format(random.uniform(1, 101), title))
<reponame>agus-setiawan-desu/brapi-Java-TestServer package io.swagger.model.germ; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; import org.springframework.validation.annotation.Validated; /** * CrossParent */ @Validated @javax.annot...
module.exports = { PORNSTARS_LIST: '#pornstarsSearchResult li .wrap', pornstars_search_selectors: { ACTOR: '.title', VIDEO_NUMBER: '.videosNumber', VIEW_NUMBER: '.pstarViews', RANK: '.rank_number' }, pornstars_element_attributs: { LINK: 'href', TITLE: 'title', HD: null, DURATION: 'innerHTML', VIEW...
package top.yifan.template.exception; import java.net.URI; /** * ErrorConstants * * @author star */ public final class ErrorConstants { public static final String ERR_CONCURRENCY_FAILURE = "error.concurrencyFailure"; public static final String ERR_VALIDATION = "error.validation"; public static final ...
package com.margsapp.messenger.Settings; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.content.res.Configuration; import android.os.Bundle; import android.view.View; import android.widget.ImageView; ...
#!/bin/bash set -o errexit set -o nounset set -o pipefail readonly CT_VERSION=latest readonly KIND_VERSION=v0.11.1 readonly CLUSTER_NAME=chart-testing readonly REPO_ROOT="${REPO_ROOT:-$(git rev-parse --show-toplevel)}" find_latest_tag() { if ! git describe --tags --abbrev=0 2>/dev/null; then git rev-list...
<filename>src/components/UploadAttachmentButton/index.js<gh_stars>10-100 import UploadAttachmentButton from './UploadAttachmentButton' import connector from './UploadAttachmentButton.connector' export default connector(UploadAttachmentButton)
/** * Created by AstafyevaLA on 24.04.2014. */ // loads taskLists, calendarLists, userName var loader = new Loader(); // keeps the number of successfully added tasks and events to ask for mark var markCounter = new MarkCounterBool(30, 365); // dictionaries module var spr = new Spr(); // popup win settings? that s...
import React from 'react'; import Header from './Header'; import UserInfo from './UserInfo'; import Content from './Content'; import './css/Main.css'; class Main extends React.Component{ render(){ return( <div className="main bg-dark"> <div className="main-header"> <Header/> </di...
#!/bin/bash # profiles = xccdf_org.ssgproject.content_profile_cui # remediation = bash . $SHARED/auditd_utils.sh prepare_auditd_test_enviroment set_parameters_value /etc/audit/auditd.conf "space_left_action" "halt"
# # Original solution via StackOverflow: # http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t # # # Install via `conda` directly. # This will fail to install all # dependencies. If one fails, # all dependencies will fail to install. #---------...
/*eslint-disable*/ import React from "react"; // nodejs library to set properties for components import PropTypes from "prop-types"; // nodejs library that concatenates classes import classNames from "classnames"; // material-ui core components import { List, ListItem } from "@material-ui/core"; import { makeStyles } f...
# Shell function library to initialize Kerberos credentials # # Note that while many of the functions in this library could benefit from # using "local" to avoid possibly hammering global variables, Solaris /bin/sh # doesn't support local and this library aspires to be portable to Solaris # Bourne shell. Instead, all ...
<html> <head> <title>People</title> </head> <body> <table> <tr> <th>Name</th> <th>Age</th> <th>Address</th> </tr> <tr> <td>Thomas</td> <td>25</td> <td>101 Main Street</td> </tr> <tr> <td>Maria</td> <td>35</td> <td>145 Second Street</td> </tr> <tr> <td>Joe</td> <td>45</td> <td>35 Wall Street</td> <...
import React, { useState } from 'react'; const Tabs = () => { const [activeTab, setActiveTab] = useState(0); return ( <div> <div> <button onClick={() => setActiveTab(0)} style={activeTab === 0 ? { fontWeight: 'bold' } : null} ...
#!/bin/bash # What we get from Transifex is unusable and needs some fixing before we're able to use # the translations. FILE=$1 # Fix xliff tags perl -i -pe 's/&lt;xliff:g id=\\?"(.*?)?\\?"&gt;/<xliff:g id="\1">/g' $FILE perl -i -pe 's/&lt;\/xliff:g&gt;/<\/xliff:g>/g' $FILE # Escape single and double quotes before ...
import subprocess import json def query_cardano_tip(testnet_magic): command = f"cardano-cli query tip --testnet-magic {testnet_magic}" result = subprocess.run(command, shell=True, capture_output=True, text=True) output = result.stdout.strip() tip_info = json.loads(output) slot_number = tip_info["sl...
import uuid from django.db import models class Preference(models.Model): """站点偏好""" uuid = models.CharField(primary_key=True, max_length=36, default=uuid.uuid4) name = models.CharField('网站名称', max_length=45) update_time = models.DateTimeField(auto_now=True) create_time = models.DateTimeField(auto...
import Service from '@ember/service'; import Ember from 'ember'; export default Service.extend({ client:undefined, urlStateService: Ember.inject.service(), regionLocatorService: Ember.inject.service(), init: function(){ this.setupSDK(); }, setupSDK: function(){ let state = this....
<reponame>petercunning/notebook<filename>CSW/geoportal-servicetype.py # coding: utf-8 # In[ ]: #Query Geoportal CSW to find COAWST data # In[1]: from owslib.csw import CatalogueServiceWeb from owslib import fes import numpy as np # In[2]: endpoint = 'http://www.ngdc.noaa.gov/geoportal/csw' csw = CatalogueSer...
import sys import subprocess def execute_command(command): process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = process.communicate() if process.returncode != 0: print(f"Error executing command: {command}") print(stderr.decode('utf...
import React, { useState } from 'react'; import axios from 'axios'; function BookSearch() { const [query, setQuery] = useState(''); const [books, setBooks] = useState([]); const searchBooks = async (e) => { e.preventDefault(); const result = await axios.get(`https://www.googleapis.com/books/v1/volumes?q=${query...
import re def validatePassword(password, confirmPassword): # Check if passwords match if password != confirmPassword: return False # Check password strength criteria if len(password) < 8: return False if not re.search(r"[A-Z]", password): return False if not re.sear...
#!/usr/bin/env bash #fractional intensity should be determined prior running atlasBREX #nohup siterate.sh & echo "PID: $BASHPID" for file in *'sj_'*'.nii.gz'* do btemplate=b_T1_2weeks.nii.gz nbtemplate=nb_T1_2weeks.nii.gz #remove 'sj' name=$(echo $file | cut -d "_" -f2- ) #atlasBREX: FNIRT bash atlasBREX.sh -b $b...
import * as React from "react"; import { addons, types } from "@storybook/addons"; import { AddonPanel } from "@storybook/components"; import { ADDON_ID, PANEL_ID, PARAM_KEY } from "./constants"; import { Panel } from "./panel"; addons.register(ADDON_ID, () => { addons.add(PANEL_ID, { title: "Abstract", ty...
CREATE TABLE `task` ( `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1, `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `priority` int(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `task` ADD PRIMARY KEY (`id`);
<gh_stars>1-10 package align2; import java.util.ArrayList; import stream.SiteScore; /** * @author <NAME> * @date Oct 15, 2013 * */ public abstract class AbstractIndex { AbstractIndex(int keylen, int kfilter, int pointsMatch, int minChrom_, int maxChrom_, MSA msa_){ KEYLEN=keylen; KEYSPACE=1...
<filename>chest/3rd-party/rrd4j/common/src/main/java/net/community/chest/rrd4j/common/jmx/MBeanDsDef.java package net.community.chest.rrd4j.common.jmx; import net.community.chest.jmx.dom.MBeanFeatureDescriptor; import net.community.chest.rrd4j.common.core.DsDefExt; import net.community.chest.util.datetime.TimeUnits; ...
<gh_stars>0 class P3 { public static void main(String[] args) { int i=20; while (i>=10) { if (i%2!=0) { System.out.println(i + " is a odd number"); } i--; } } }
import wagtail.admin.rich_text.editors.draftail.features as draftail_features from django.conf import settings from django.utils.html import format_html_join from wagtail.core import hooks from .rich_text import ( AnchorEntityElementHandler, AnchorIndentifierEntityElementHandler, anchor_entity_decorator, ancho...
<gh_stars>1-10 package com.illumina.basespace.property; import java.util.ArrayList; import java.util.List; import com.illumina.basespace.entity.ApiResource; import com.illumina.basespace.util.TypeHelper; public abstract class ReferenceProperty<T extends ApiResource> extends Property<T> { public ReferenceProperty...
const supertest = require("supertest"); const app = require("../../../../server"); const database = require("../../../../server/database"); const cleanDatabase = require("../../../utils/cleanDatabase"); afterAll(() => cleanDatabase()); describe("POST /api/v1/auth/signup", () => { it('should throw error "EMAIL_INVAL...
import React from "react"; import { Box, Code, Divider, Heading, Text } from "@chakra-ui/react"; const Comments = ({ comments = [] }) => { return ( <> <Heading size="md">Comments</Heading> <div className="flex-row my-4"> {comments && comments.map((comment) => ( <div key...
import React from 'react'; export default class ArrowDown extends React.Component { render() { const { width, height, color } = this.props; return ( <svg width={width} height={height} viewBox="0 0 140 140" version="1.1" > <g id="Icons" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> ...
db.createCollection('users') db.users.insertOne({ firstName: 'John', lastName: 'Smith', age: 25, email: 'john.smith@example.com' }) db.users.insertOne({ firstName: 'Jane', lastName: 'Doe', age: 23, email: 'jane.doe@example.com' })
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; public class NonAssignedFieldsTest { static class Node<T> { volatile Node<?> next; static final AtomicReferenceFieldUpdater<Node,Node> nextUpdater = AtomicReferenceFieldUpdater.newUpdater(Node.class, Node.class, "next"); } { Node<?> node =...
/* * Author: <NAME> (melo.cassio at gmail.com) */ package crawler; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.ut...
#!/bin/bash set -e set -o pipefail umask 0002 DATA_DIR=/srv/kenlab/celine/master_thesis/data/vcf_files/joint_genotyping/A_vcf_350/vcf_compressed SCRATCH_DIR=~/script_dir/runtime_scripts/joint_parallel_10samples/scratch_GATKv4_jointgenotype_sa0012 echo "Job runs on `hostname`" echo "at $SCRATCH_DIR" mkdir $SCRATCH_DIR...
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 <NAME>. All rights reserved. # """Show the objects with references to a given object. """ #end_pymotw_header import gc flags = (gc.DEBUG_COLLECTABLE | gc.DEBUG_UNCOLLECTABLE | gc.DEBUG_OBJECTS | gc.DEBUG_SAVEALL ) gc....
<gh_stars>1-10 // // Block.cpp // SampleGame // // Created by <NAME> on 1/26/17. // Edited by <NAME> on 03/08/2017 // Copyright © 2017 De Anza College Developers' Guild. All rights reserved. // #include "Block.h" /*default constructor *sets all values to zero and color black */ Block::Block(){ _xPos...
import React, { useState } from 'react'; import { View, FlatList, TextInput, TouchableOpacity, Button } from 'react-native'; const App = () => { const [contacts, setContacts] = useState([]); const [name, setName] = useState(''); const [editing, setEditing] = useState(false); const [editingIndex, setEditingInd...
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
package com.github.chen0040.leetcode.day03.medium; /** * Created by xschen on 30/7/2017. * * summary: * You are given an n x n 2D matrix representing an image. * Rotate the image by 90 degrees (clockwise). * * link: https://leetcode.com/problems/rotate-image/description/ */ public class RotateImage { publi...
def reverse_string(s): return s[::-1] # Driver function s = "Hello World!" print ("The reversed string is : ",end="") print (reverse_string(s))