text stringlengths 1 1.05M |
|---|
<filename>src/buffer.c<gh_stars>1-10
/*
* buffer.c -- growable data buffers.
*
* by <NAME>
*
* Copyright 2003-2012 See accompanying license
*
*/
#include "cat/buffer.h"
#include <stdlib.h>
#include <string.h>
#if CAT_USE_INLINE
#define INLINE inline
#else
#define INLINE
#endif
static INLINE void dyb_sanity(s... |
<reponame>tony-aq/optic
import { BodyShapeDiff, ParsedDiff, DiffLocation } from './parse-diff';
import {
BodyPreview,
CurrentSpecContext,
IChangeType,
IDiffDescription,
} from './Interfaces';
import { getExpectationsForShapeTrail } from './shape-diff-dsl-rust';
import { code, ICopy, plain } from '<src>/pages/di... |
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part1.sh
# Description: OpenWrt DIY script part 1 (Before Update feeds)
#
# Uncomment a feed... |
<filename>migrations/2_deploy_contracts.js
var slotMachine = artifacts.require("./slotMachine.sol");
module.exports = function(deployer) {
deployer.deploy(slotMachine);
};
|
#!/bin/bash
# Setup Build environment for compiling matlab scripts at Broad
# These settings work with versions 7.2, 7.3
# Set in global_vars.sh
# MATLAB_ROOT=/broad/tools/apps/matlab7.2
# MATLAB_ROOT=/broad/tools/apps/matlab73
# MATLAB_ROOT=/broad/tools/apps/matlab76
source $(dirname $0)/global_vars.sh
echo "Using Mo... |
module.exports = {
plugins: [
require('windicss/plugin/typography'),
require('windicss/plugin/forms'),
require('windicss/plugin/aspect-ratio'),
require('windicss/plugin/line-clamp'),
require('windicss/plugin/filters'),
require('windicss/plugin/scroll-snap'),
],
};
|
'use strict';
angular.module('guityApp')
.controller('SearchCtrl', function ($scope, $location, guityAPI) {
//TODO: Should be better both style and code.
//TODO: If click elsewhere but the result page, then close it.
$scope.showSearch = false;
$scope.$watch('searchField', function(newVal) {
if... |
<gh_stars>1-10
// Copyright 2020 Chaos Mesh 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 applicab... |
import { loadStripe } from "@stripe/stripe-js";
export async function getStripeJs() {
const stripJs = await loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY);
return stripJs;
}
|
#!/bin/bash
#set -x
CMD_SCREEN_SHOT="screenshot"
TOP=$(pwd)
TARGET_SAVE_DIR="/data/screenShot"
HOST_SAVE_DIR=$TOP/screenShot
MAX_NUM=100
#TMP=$(mktmp)
((DEL_FILE_NR=$MAX_NUM/2))
DEL_FILE_LIST="find $HOST_SAVE_DIR|sed -n "1,"$MAX_NUM"p""
num=0
sum=0
adb shell "mkdir $TARGET_SAVE_DIR" >/dev/null 2>&1
while true
do
((num... |
<gh_stars>0
package dev.johanness.processor.test._internal;
import dev.johanness.processor.test.mock.element.TypeElementMock;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementVisitor;
import javax.lang.... |
apidoc -i src/ -o apidoc/
|
""" Visualization code for point clouds and 3D bounding boxes with mayavi.
Modified by <NAME>
Date: September 2017
Ref: https://github.com/hengck23/didi-udacity-2017/blob/master/baseline-04/kitti_data/draw.py
"""
import numpy as np
import mayavi.mlab as mlab
try:
raw_input # Python 2
except NameError:
raw... |
module VagrantPlugins
module AWS
VERSION = '0.7.3'
end
end
|
package cn.stylefeng.roses.kernel.system.modular.theme.service;
import cn.stylefeng.roses.kernel.system.api.pojo.theme.SysThemeTemplateRelRequest;
import cn.stylefeng.roses.kernel.system.modular.theme.entity.SysThemeTemplateRel;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 系统主题模板属性关系service接口
*... |
#!/usr/bin/env bash
set -euo pipefail
# Deploys the blockchain api to App Engine
#
# Flags:
# -n: Name of the network, maps to App Engine 'service' (integration, production, etc.)
NETWORK=""
while getopts 'a:n:' flag; do
case "${flag}" in
n) NETWORK="$OPTARG" ;;
*) error "Unexpected option ${flag}" ;;
es... |
import React, { useState } from 'react';
// Redux & Firebase
import { useSelector, useDispatch } from 'react-redux';
import { importTransactionsAction } from '../../redux/reducers/AuthReducer';
// Parse CSV
import Papa from 'papaparse';
import { Card, Button, List, ListItem } from '@material-ui/core';
import Alert f... |
#!/usr/bin/env bash
set -euo pipefail
PID_FILE=/tmp/qcluster.pid
function start_qcluster() {
echo "--> Starting qcluster"
poetry run python manage.py qcluster & echo $$! > $PID_FILE
}
function kill_qcluster() {
echo "--> Killing qcluster"
pid=$(cat $PID_FILE)
rkill "$pid"
}
function restart_qclu... |
package Control;
import Model.User;
import Model.UserInfo;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class MainMenuController {
public void userBtn(ActionEvent event) {
... |
#!/usr/bin/env bash
set -e
for file in $(find . -name '*.sh'); do
bash -n $file
done
|
#!/bin/bash
set -ex
###########################################################
# UTILS
###########################################################
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install --no-install-recommends -y tzdata ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-u... |
import * as tmp from 'tmp'
import { privateKeyToAddress } from '@celo/utils/lib/address'
import { LocalAccount } from './accounts';
import AccountsDB, { decryptLocalKey, encryptLocalKey } from './accountsdb'
tmp.setGracefulCleanup()
test('accountsDB test', () => {
const tmpobj = tmp.fileSync();
const db = new Accou... |
def arrayCountDistinct(arr):
# Create an empty object to store the distinct elements
result = {}
# Iterate through the input array
for num in arr:
# Check if the element exists in the result object
if num in result:
# Increase its count
result[num] += 1
# ... |
(defn product
[element]
(apply * element))
(product [1 2 3 4]) |
import "reflect-metadata";
import { Model } from "../";
import { IFmModelPropertyMeta, IFmModelRelationshipMeta } from "./index";
import { IDictionary } from "common-types";
/** Properties accumlated by propertyDecorators */
export declare const propertiesByModel: IDictionary<IDictionary<IFmModelPropertyMeta>>;
/** Re... |
git clone --branch fix-9-04 https://github.com/frankier/dep_search.git
cd dep_search
git submodule init
git submodule update
make
|
#! /bin/bash
kpt fn eval --image gcr.io/kpt-fn/starlark:unstable --fn-config fn-config.yaml --image-pull-policy never
|
bool load_schedule(serialization::input_archive & ar, ...) {
// Implement the logic to process the schedule and determine if the parcel was migrated or scheduled locally
// Extract necessary information from the input archive and perform the required checks
// Example pseudo-code logic:
// Read parcel ... |
<gh_stars>100-1000
from os import environ as env
import smtplib
import ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from runners.helpers import log
from runners.helpers import vault
HOST = env.get('SA_SMTP_HOST', env.get('SMTP_SERVER', ''))
PORT = int(env.get('SA_SMTP_PORT... |
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.beginPath();
ctx.arc(100, 75, 50, 0, 2 * Math.PI);
ctx.fillStyle = 'red';
ctx.fill(); |
#!/usr/bin/zsh
function lxcd ()
{
machine=$1
if [ "$machine" != "reveng" -a "$machine" != "target-arch" -a "$machine" \
!= "target-ubuntu" ]; then
lxc delete -i "$machine"
else
echo "Error: $machine is a template and should not be destroyed."
fi
}
function lxcs ()
{
lxc exec... |
const test = require('tap').test
const server = require('../server')
const sinon = require('sinon')
const index = require('../../lib/index')['create']
const semver = require('semver')
var ARROW
var CONNECTOR
test('### Start Arrow ###', function (t) {
server()
.then((inst) => {
ARROW = inst
... |
<reponame>osl2/RBLS<filename>RBLS-Teamprojekt/src/main/java/praesentation/FormelAnsicht.java
package praesentation;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt... |
def generate_fibonacci(n):
"""
Generates an array of Fibonacci numbers.
Args:
n (int): The desired length of the Fibonacci array.
Returns:
list: A list of Fibonacci numbers.
"""
fibonacci_arr = [0, 1]
while len(fibonacci_arr) < n:
fibonacci_arr.append(fi... |
<gh_stars>100-1000
package com.github.messenger4j.internal.gson;
import com.github.messenger4j.send.recipient.PhoneNumberRecipient;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import java.lang.reflect.Typ... |
<filename>UDP_TransferNT/include/UDP_TransferNT.h
#ifndef UDP_TRANSFER_NT_H
#define UDP_TRANSFER_NT_H
#include "Network.h"
#endif |
<gh_stars>0
function test() {
var test = {
test: 'hello'
};
}
|
#!/bin/bash
# Set up the appropriate rustc toolchain
set -e
cd "$(dirname "$0")"
ERRNO=0
RTIM_PATH=$(command -v rustup-toolchain-install-master) || ERRNO=$?
CARGO_HOME=${CARGO_HOME:-$HOME/.cargo}
# Check if people also install RTIM in other locations beside
# ~/.cargo/bin
if [[ "$ERRNO" -ne 0 ]] || [[ "$RTIM_PATH" ... |
#!/usr/bin/env bash
set +e
#LC_ALL=C
# Licence block
: << LICENSE
MIT License
Copyright (c) 2018 Vitalii Bieliavtsev
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, includ... |
<filename>src/test/java/com/cathive/fx/guice/thread/FxApplicationThreadMethodInterceptorTest.java
/*
* Copyright (C) 2012-2013 The Cat Hive Developers.
*
* 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 t... |
<gh_stars>0
// Copyright 2020 Self Group Ltd. All Rights Reserved.
import SelfSDK from '../../src/self-sdk'
import { exit } from 'process';
async function request(appID: string, appSecret: string, selfID: string) {
// const SelfSDK = require("self-sdk");
let opts = {'logLevel': 'debug'}
if (process.env["S... |
<gh_stars>0
package level_three;
//package com.google.challenges;
import java.util.HashMap;
import java.util.Map;
//import org.apache.commons.lang3.time.StopWatch;
/**
*
* @author Peter
* With her LAMBCHOP doomsday device finished, Commander Lambda is preparing for her debut on the galactic stage - bu... |
<filename>src/main/java/stincmale/server/reqres/spring/http/package-info.java<gh_stars>0
/**
* Contains <a href="https://spring.io/projects/spring-framework">Spring</a>-specific functionality useful for request/response HTTP
* implementations of {@link stincmale.server.Server}.
*/
@javax.annotation.ParametersAreNonn... |
#include <iostream>
#include <vector>
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution
{
public:
bool hasPathSum(TreeNode* root, int sum)
{
if (root == nullptr)
return false;
... |
<reponame>artsy/Mitosis<filename>source/facebook/types.js
// @flow
/** A structre used for triggering quick replies */
export interface QuickReply {
content_type: "text",
title: string,
payload?: string
}
/** Button for attaching to images */
export interface FBButton {
type: "web_url" | "postback",
title: ... |
<reponame>davidyu62/egovframe-runtime<filename>Batch/org.egovframe.rte.bat.core/src/test/java/org/egovframe/brte/sample/example/support/EgovStagingItemProcessor.java
/*
* Copyright 2006-2007 the original author or authors. *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... |
#!/bin/bash
# elasticsearch 使用相关命令
# 启动 es 服务
sudo systemctl restart elasticsearch.service
# 测试 es 启动是否成功,es 启动需要时间,大概 10s ~ 1min
curl 127.0.0.1:9200
# 停止 es 服务
sudo systemctl stop elasticsearch.service
# 关闭 es 开机启动
sudo systemctl disable elasticsearch.service
# 开启索引,接口地址 /{index_name}/_open
curl -XPOST http://lo... |
# SPDX-FileCopyrightText: 2017 <NAME> for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_max9744`
====================================================
CircuitPython module for the MAX9744 20W class D amplifier. See
examples/simpletest.py for a demo of the usage.
* Author(s): <NAME>
Implementati... |
# DOTFILES_SHELL="$(dirname "$(readlink -f -- "$0")")"
DOTFILES_SHELL="$(dirname "$(readlink "$0")")"
DOTFILES="$(dirname $(dirname "$DOTFILES_SHELL"))"
if [ "${SAVED_PATH:-==Unset==}" = "==Unset==" ]; then
export SAVED_PATH="${PATH}"
else
export PATH="${SAVED_PATH}"
fi
# env # # # # # # # # # # # # # # # # #... |
<gh_stars>1-10
/*
* Copyright 2017 agido GmbH
*
* 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... |
#!/bin/ash
apk add curl --no-cache
python -m SimpleHTTPServer 80 &
PID=$!
certbot certonly --webroot -w ./ -n --agree-tos --email ${EMAIL} --no-self-upgrade -d ${DOMAINS}
kill $PID
CERTPATH=/etc/letsencrypt/live/
ls $CERTPATH || exit 1
cat ./secret-template.json | \
sed "s/NAMESPACE/${NAMESPACE}/" | \
sed ... |
#!/bin/bash -e
if [ -f /opt/rucio/etc/rucio.cfg ]; then
echo "rucio.cfg already mounted."
else
echo "rucio.cfg not found. will generate one."
j2 /tmp/rucio.cfg.j2 | sed '/^\s*$/d' > /opt/rucio/etc/rucio.cfg
fi
echo "=================== /opt/rucio/etc/rucio.cfg ============================"
cat /opt/rucio/... |
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+0+512-N/model --tokenizer_name model-configs/1024-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+0+512-N/512+0+512-FW-first-256 --do_eval --per_device_eval_batch_... |
import { Extent3DDict, ImageCopyTexture, Origin3DDict } from "../webgpu";
export class TextureUtils {
static destination = new ImageCopyTexture();
static source = new ImageCopyTexture();
static copySize = new Extent3DDict();
// n -> 1
static buildTextureArray(
textures: GPUTexture[],
length: number,... |
#!/bin/bash
#
cd data/
curl -O https://attackevals.mitre-engenuity.org/downloadable_JSON/AhnLab_Results.json
curl -O https://attackevals.mitre-engenuity.org/downloadable_JSON/Bitdefender_Results.json
curl -O https://attackevals.mitre-engenuity.org/downloadable_JSON/CheckPoint_Results.json
curl -O https://attackevals.m... |
#!/bin/sh
cd $(dirname $(realpath $(cygpath --unix $0)))
sh deploy.sh
WOT_DIRECTORY=/cygdrive/d/home/max/WoT
CURRENT_DIRECTORY=`pwd`
#SAMPLE_REPLAY=15.wotreplay
#SAMPLE_REPLAY=fogofwar.wotreplay
#SAMPLE_REPLAY=markers.wotreplay
SAMPLE_REPLAY=squad.wotreplay
#SAMPLE_REPLAY=tk,blowup.wotreplay
cd ${WOT_DIRECTORY}
RE... |
<reponame>v-greach/iot-sdks-e2e-fx<filename>ci-wrappers/c/wrapper/generated/WrapperApi.cpp
/**
* IoT SDK Device & Client REST API
* REST API definition for End-to-end testing of the Azure IoT SDKs. All SDK APIs that are tested by our E2E tests need to be defined in this file. This file takes some liberties with the... |
#!/bin/bash
set -e
source "${EJABBERD_HOME}/scripts/lib/base_config.sh"
source "${EJABBERD_HOME}/scripts/lib/config.sh"
source "${EJABBERD_HOME}/scripts/lib/base_functions.sh"
source "${EJABBERD_HOME}/scripts/lib/functions.sh"
# discover hostname
readonly nodename=$(get_nodename)
is_zero ${ERLANG_NODE} \
&& expo... |
<?php
$arr = array(1,2,3,4,5);
$sum = 0;
foreach ($arr as $val) {
$sum += $val;
}
echo $sum;
?>
# Output: 15 |
#ifndef SCANNER_H
#define SCANNER_H
#include <string>
#include <regex>
class Scanner {
public:
void scan(const std::string &userExpression);
void setLexeme(const std::string &lexemePattern);
std::string formattedExpression() const;
private:
std::string _formattedExpression;
std::regex _lexeme;
}... |
const express = require('express');
const consign = require('consign');
const bodyParser = require('body-parser');
const expressValidator = require('express-validator');
const app = express();
require('./routes/routes.js')(app);
//require('./db/db.js');
app.use(bodyParser.urlencoded({ extended... |
#!/bin/bash
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
# other details. No copyright assignment is required to contribute to Ascent.
set -ev
export TAG_NAME=alpinedav/ascent-ci:ubuntu-18.04-cuda-11.4.0-devel
... |
<gh_stars>0
import React from 'react'
import resume from '../assets/pdf/Delara-Shamanian-Resume-2022.pdf'
const Media = () => {
return (
<div>
<ul className="icons">
<li>
<a
href="https://github.com/delarasham"
className="icon fa-github alt"
target="_bla... |
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/1024+0+512-only-pad/13-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/1024+0+512-only-pad/13-1024+0+512-HPMI-1 --do_eval --per_d... |
/* eslint-disable camelcase */
/**
* Setup environment defaults
*/
process.env.NODE_ENV = process.env.NODE_ENV ? process.env.NODE_ENV : "development";
process.env.npm_config_environment = process.env.npm_config_environment
? process.env.npm_config_environment
: "development";
process.env.npm_config_branch = pr... |
'use strict';
var chai = require('chai');
var sinon = require('sinon');
chai.use(require('sinon-chai'));
var expect = chai.expect;
var MultiParser = require('../multiparser.js');
describe('The MultiParser constructor', function () {
it('requires a boundary to be provided', function () {
expect(function () {
... |
<gh_stars>0
'use strict';
/*
* @Author: <NAME>, Design Research Lab, Universität der Künste Berlin
* @Date: 2016-05-04 11:38:41
* @Last Modified by: lutzer
* @Last Modified time: 2016-07-14 16:51:58
*/
export default {
web_service_url : '/api/',
web_socket_url : ':'+window.location.port,
files_url : '/files/',... |
package com.ccl.simplerecylerview.holder;
import android.util.SparseArray;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
/**
* Created by ccl on 2017/4/24.
* RecyclerView封装抽取
*/
public class BaseAdapterHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLon... |
<reponame>muthukumaravel7/armnn<filename>Documentation/structstd_1_1hash_3_01armnn_1_1profiling_1_1_profiling_guid_01_4.js
var structstd_1_1hash_3_01armnn_1_1profiling_1_1_profiling_guid_01_4 =
[
[ "operator()", "structstd_1_1hash_3_01armnn_1_1profiling_1_1_profiling_guid_01_4.xhtml#ad8ec82f570fd40a657d1551253da547... |
import { nullOrUndefined } from "@/helpers/checks";
const defaultAddress: string =
process.env.NODE_ENV === "development"
? "http://localhost:8000"
: "https://htwg-app-back.herokuapp.com/";
/**
* @description Maps http_status_code to a string
* @param status
*/
export function statusToString(status: numb... |
#Aqueduct - Compliance Remediation Content
#Copyright (C) 2011,2012 Vincent C. Passaro (vincent.passaro@gmail.com)
#
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the Licens... |
package com.linkedin.datahub.graphql.resolvers.domain;
import com.linkedin.common.urn.Urn;
import com.linkedin.datahub.graphql.QueryContext;
import com.linkedin.datahub.graphql.authorization.AuthorizationUtils;
import com.linkedin.datahub.graphql.exception.AuthorizationException;
import com.linkedin.datahub.graphql.ge... |
ckc.directive('teamCookTimeChart', teamCookTimeChart);
/* @ngInject */
function teamCookTimeChart() {
//define the directive
var directive = {
restrict: "AECM",
templateUrl: 'assets/views/directives/team-cookTimeChart-directive.htm',
replace: true,
scope: {
merchant... |
<gh_stars>1-10
/*
* Copyright (c) Open Source Strategies, Inc.
*
* Opentaps is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version... |
console.clear();
/*
Functions objects, objects are not functions
*/
// Expression
var x = function fn (x,y) {};
// call with x()
// x is holding a function object.
// declare
function myFun(x,y) {} // no semi colon
/* take input, do something, return */
// x -> x + 1 -> return result
function add (x) {
... |
import { h } from "../h";
import { Intro } from "./intro";
import { Example } from "./example";
import { Tokens } from './tokens';
import { Template } from '../template';
// TODO test
export const SiteContents = (
<main>
<h1>hi</h1>
</main>
);
|
require 'fog/core/model'
module Fog
module Compute
class OracleCloud
class SecurityList < Fog::Model
identity :name
attribute :account
attribute :description
attribute :uri
attribute :outbound_cidr_policy
attribute :proxyuri
attribute :policy
# Only ... |
<filename>AcousticFieldSim/src/acousticfield3d/protocols/ArduinoNano.java
package acousticfield3d.protocols;
import acousticfield3d.gui.MainForm;
import acousticfield3d.simulation.AnimKeyFrame;
import acousticfield3d.simulation.Transducer;
import acousticfield3d.utils.TextFrame;
import java.util.List;
/**
*... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.u1F1F2 = void 0;
var u1F1F2 = {
"viewBox": "0 0 2600 2760.837",
"children": [{
"name": "path",
"attribs": {
"d": "M2281 2297q0 17-11 30.5t-31 13.5h-366q-17 0-28-10t-13-27l-74-747-284 757q-5 12-15.5 19.5t-22.5 7.5h-... |
<filename>TrackOrJargh/src/main/java/com/trackorjargh/javarepository/PointFilmRepository.java
package com.trackorjargh.javarepository;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;... |
#!/bin/bash
mkdir -p build
cd build
cmake ..
make -j8
cd .. |
#!/usr/bin/env bash
CUDA_VISIBLE_DEVICES=5 python ../MultiDCP/ehill_multidcp_pretrain.py \
--drug_file "../MultiDCP/data/all_drugs_l1000.csv" \
--gene_file "../MultiDCP/data/gene_vector.csv" --hill_train_file "../MultiDCP/data/ehill_data/high_confident_data_train.csv" \
--hill_dev_file "../MultiDCP/data/ehill_data/hi... |
<filename>code/service-catalog-tmp/src/main/java/com/ibm/catalog/ProductCategory.java
package com.ibm.catalog;
import javax.persistence.*;
@Entity
@Table(name = "productcategory")
@NamedQuery(name = "ProductCategory.findByCategoryId", query = "SELECT f FROM ProductCategory f WHERE f.categoryid=:categoryid")
public cl... |
# Import necessary packages
from keras.models import Sequential
from keras.layers import Dense
# Define model
model = Sequential()
model.add(Dense(32, activation='relu', input_dim=4))
model.add(Dense(1, activation='sigmoid'))
# Compile model
model.compile(optimizer='rmsprop',
loss='binary_crossentropy',
metrics=['a... |
import d3 from 'd3';
export function moveToFront () {
const sel = d3.select(this);
return sel.each(function () {
this.parentNode.appendChild(this);
});
}
|
/*
* Entry point for the companion app
*/
import { settingsStorage } from "settings";
import { localStorage } from 'local-storage';
import { outbox } from "file-transfer";
import { device } from "peer";
import * as messaging from "messaging";
function extractSetting(settingName, defaultValue, typeMap = val => Num... |
#include "Line.hh"
using namespace glow::geometry;
|
/*
* Script to help compare gzipped and non-zipped key spaces on S3
*
* Usage: node utils/compare.js
*
* Expects data to be in files like
*
* 2018-02-10/1518286521.ndjson.gz
* 2018-02-10/1518287191.ndjson.gz
* 2018-02-10/1518293192.ndjson.gz
* ...
*
* Will output a file called missing.txt that'll contain mi... |
#!/usr/bin/env bash
set -eE
# (C) Sergey Tyurin 2022-05-18 18:00:00
# Disclaimer
##################################################################################################################
# You running this script/function means you will not blame the author(s)
# if this breaks your stuff. This script/functi... |
# Copyright (c) 2013, Daynix Computing LTD (www.daynix.com)
# All rights reserved.
#
# Maintained by oss@daynix.com
#
# This file is a part of VirtHCK, please see the wiki page
# on https://github.com/daynix/VirtHCK/wiki for more.
#
# This code is licensed under standard 3-clause BSD license.
# See file LICENSE supplie... |
<gh_stars>0
var penumpang = [];
var tambahPenumpang = function(namaPenumpang, penumpang) {
// jika angkot kosong
if ( penumpang == 0 ) {
// tambah penumpang di awal array
penumpang.push(namaPenumpang);
// kembalikan isi array dan keluar dari function
return penumpang;
} else {
// telusuri seluruh kursi dar... |
arr.sort()
# arr = ["apple", "boy", "cat", "dog"] |
#!/bin/bash
cd /usr/share/grafana.all
grafana-server -config /etc/grafana.all/grafana.ini cfg:default.paths.data=/var/lib/grafana.all 1>/var/log/grafana.all.log 2>&1
|
<filename>src/views/Components/Components.js<gh_stars>1-10
import React from "react";
// react components for routing our app without refresh
import { Link } from "react-router-dom";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// @material-ui/icons
// core components
import He... |
#
# borrowed from project https://github.com/doodeck/aws-lambda-idempotent
# similarly the invokidempotent folder
mkdir -p tmp
zip -r tmp/index.zip \
*.js invokeidempotent/*.js invokeidempotent/modules/ \
lib/ modules/ public/ routes/ views/ node_modules/
# As of CLI 1.7 upload-function option has been discontinu... |
#!/bin/bash
IMAGE=$1
if [ -z "$1" ]; then
echo "Please include an image name parameter (e.g. trellisldp/trellis-cassandra)"
exit 1
else
echo "Building docker image $IMAGE"
fi
VERSION=$(./gradlew -q getVersion)
BRANCH=$(git branch 2>/dev/null | sed -n -e 's/^\* \(.*\)/\1/p')
TAG=latest
# Use the develop... |
<reponame>lyzardiar/MangoLua<gh_stars>0
#include "Window.h"
using namespace mango;
Window* Window::_instance = nullptr;
void mango::Window::Destory() {
if (_instance != nullptr) {
delete _instance;
_instance = nullptr;
}
} |
<reponame>lgoldstein/communitychest
package net.community.chest.util.logging.factory.console;
import java.io.PrintStream;
import java.util.EnumMap;
import java.util.Map;
import net.community.chest.util.logging.AbstractLoggerWrapper;
import net.community.chest.util.logging.LogLevelWrapper;
import net.community.chest.u... |
<reponame>WERMAR/sfsDashboard<filename>web/builderboard/src/app/error-dialog/error-dialog.component.ts
import {Component, Input, OnInit} from '@angular/core';
import {MatDialogRef} from '@angular/material/dialog';
@Component({
selector: 'app-error-dialog',
templateUrl: './error-dialog.component.html',
})
export cl... |
#!/bin/bash
set -euo pipefail
kill -0 "$(cat /var/www/kivitendo-erp/users/pid/config.kivitendo.conf.pid)"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.