text stringlengths 1 1.05M |
|---|
#!/bin/sh
#
# Use this script to update all the copyright years in the source code and
# documentation.
#
# Usage:
# cd vgc
# ./tools/update_copyright_year.sh <previous-year> <current-year>
#
# Note: individual authors should not forget to update their lines in the
# COPYRIGHT file whenever they contribute new code in ... |
#!/bin/bash
set -eux
git clone app app-with-setup
# Do whatever you need to do here to modify/prepare your application for deployment. |
<filename>gameCenter/src/main/java/com/shiliu/game/service/impl/GameExcelServiceImpl.java<gh_stars>0
package com.shiliu.game.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.shiliu.game.dao.GameExcelMapper;
import com.shiliu.game.domain.GameExcel;
import com.s... |
<filename>raw/Spool/Loans.sql<gh_stars>0
select * from xafnfc.cltb_account_master where substr(product_code,4,1) = 'T'
-- Outstanding staff loan accounts
select m.branch_code,m.account_number,m.PRIMARY_APPLICANT_NAME, b.out_bal_amount
from xafnfc.cltb_daily_acc_out_bal b join xafnfc.cltb_account_master m on m.... |
if dcheck xautolock && dcheck slock; then
xautolock -time 5 -locker slock -corners 0-00 &
fi
|
/**
* skylark-browserfs - A version of browserfs that ported to running on skylarkjs.
* @author
* @version v0.9.0
* @link
* @license MIT
*/
(function(factory,globals) {
var define = globals.define,
require = globals.require,
isAmd = (typeof define === 'function' && define.amd),
isCmd = (!isA... |
<filename>src/Store/reducers/environmentReducer.js
import { UPDATE_ENVIRONMENT, INITIALIZE_ENVIRONMENT, DRAW_CARD, PERFORM_ATTACK } from "../actions/actionTypes";
import Core from '../../Core'
const initialState = {
environment: undefined,
}
export default function(state = initialState, action) {
if (actio... |
<filename>internal/app/client/cli/cancel/command.go
package cancel
import (
"errors"
"fmt"
"io"
"os"
"strconv"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
cli "github.com/muniere/glean/internal/app/client/cli/base"
"github.com/muniere/glean/internal/pkg/jsonic"
"github.com/muniere/glean/in... |
SELECT
SUM(order_total) AS total_orders
FROM orders
WHERE customer_id = 1234; |
<filename>src/numbercell.js
var Cell = require('./cell.js');
function NumberCell(x, y, value) {
Cell.call(this, x, y);
this.value = value;
this.rest = value;
}
NumberCell.prototype = Object.assign({}, Cell.prototype, {
constructor: NumberCell,
toString: function() {
return this.value;
... |
<reponame>anchorchat/anchor-ui
/* eslint-env mocha */
import { expect } from 'chai';
import getStyles from '../../src/pagination/get-styles';
import styles from '../../src/pagination/styles';
describe('Pagination.getStyles', () => {
describe('root', () => {
it('should get styles', () => {
const style = get... |
package poemstar.algorithm;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author xinway
*/
public class WordMatcherTest {
public WordMatcherTest() {
}
/**
* Test of split method, of class WordMatcher.
*/
@... |
package com.leidos.dataparser.executor;
import com.leidos.dataparser.pipeline.Pipeline;
import com.leidos.dataparser.pipeline.StageException;
import com.leidos.dataparser.pipeline.factories.PipelineFactory;
import com.leidos.dataparser.pipeline.factories.PipelineFactoryLocator;
import org.apache.logging.log4j.LogManag... |
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
rail-rna prep elastic -m $DIR/sra_batch_41.manifest --skip-bad-records --ignore-missing-sra-samples --core-instance-type m3.xlarge --master-instance-type m3.xlarge -o s3://rail-sra-hg38/sra_prep_batch_41 -c 20 --core-instance-bid-price 0.25 --m... |
#!/usr/bin/env bash
ROOT_DIR=$(git rev-parse --show-toplevel)
IMAGE_TYPE="$1"
shift
if echo "$IMAGE_TYPE" | grep -q "\-user"; then
OS_USER="test"
else
OS_USER="root"
fi
cat <<EOF | docker build --force-rm -t "githooks:$IMAGE_TYPE" -f - "$ROOT_DIR" || exit 1
FROM githooks:$IMAGE_TYPE-base
ENV GH_TESTS="/var/... |
<filename>src/main/java/ru/alklimenko/calculator/Expression.java<gh_stars>0
package ru.alklimenko.calculator;
import java.util.Collections;
import java.util.EmptyStackException;
import java.util.Set;
import java.util.Stack;
/**
* A class for representing an expression in a form that is convenient for processing
*/
... |
#!/usr/bin/env bash
#
# Usage:
# $SH ./runtime-errors.sh <function name>
#
# Run with bash/dash/mksh/zsh.
source test/common.sh
# Run with SH=bash too
SH=${SH:-bin/osh}
banner() {
echo
echo ===== "$@" =====
echo
}
_error-case() {
$SH -c "$@"
# NOTE: This works with osh, not others.
local status=$?
... |
package com.darian.javabeans;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.List;
/***
* Spring 理解 PropertyEditor
*/
public class SpringPropertyEditorDemo {
public static void main(String[] args) {
ClassPathXmlApplicationContext context =
n... |
#!/bin/bash
bebasid_banner(){
echo " _ _ _ _ "
echo "| |__ ___| |__ __ _ ___(_) __| |"
echo "| '_ \ / _ \ '_ \ / _' / __| |/ _' |"
echo "| |_) | __/ |_) | (_| \__ \ | (_| |"
echo "|_.__/ \___|_.__/ \__,_|___/_|\__,_|"
echo
echo "===== PEDULI INTERNET NETRAL ====="
echo... |
<gh_stars>1-10
Scalr.regPage('Scalr.ui.core.security', function (loadParams, moduleParams) {
var defaultPassword = '******';
var form = Ext.create('Ext.form.Panel', {
width: 700,
title: 'Security',
fieldDefaults: {
anchor: '100%',
labelWidth: 130
},
... |
#!/bin/bash
# Define your tenant url
tenant="$(cat ../secret/tenant)";
# Define your API key
apiKey="$(cat ../secret/api-key)";
# Define Space
space="$(cat ../secret/space)";
# Define filename
directory="../files/*";
# Declare authorized extension
declare -a extension=("csv");
# Check list extension
in_array() {
l... |
<reponame>PioTech6719/RelicRecovery1718<gh_stars>0
package org.firstinspires.ftc.teamcode.hardware.gamepads;
import com.qualcomm.robotcore.hardware.Gamepad;
import org.firstinspires.ftc.teamcode.utils.Constants;
public class CustomGamepad {
private final double GAMEPAD_THRESHOLD = Constants.GAMEPAD_THRESHOLD;
... |
class EducationStandard extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'education_standard';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['education_name'], 'string', 'max' =>... |
package com.justinblank.strings;
import org.apache.commons.lang3.tuple.Pair;
import java.util.List;
import java.util.stream.Collectors;
public class CheckCharsOperation extends Operation {
private Block successTarget;
List<Pair<CharRange, DFA>> transitions;
CheckCharsOperation(Inst inst, int count, Lis... |
use std::collections::HashMap;
struct Account {
username: String,
balance: f64,
}
struct BankingSystem {
accounts: HashMap<String, Account>,
}
impl BankingSystem {
fn new() -> Self {
BankingSystem {
accounts: HashMap::new(),
}
}
fn create_account(&mut self, userna... |
#!/bin/sh
echo "The application will start in ${JHIPSTER_SLEEP}s..." && sleep ${JHIPSTER_SLEEP}
exec java ${JAVA_OPTS} -noverify -XX:+AlwaysPreTouch -Djava.security.egd=file:/dev/./urandom -cp /app/resources/:/app/classes/:/app/libs/* "de.fhaachen.skilltracker.SkilltrackerApp" "$@"
|
#!/bin/bash
#
#Ubuntu 20.04
#Install pritunl and mongodb 4.4
#
echo "deb http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" > /etc/apt/sources.list.d/mongodb-org-4.4.list
echo "deb http://repo.pritunl.com/stable/apt focal main" > /etc/apt/sources.list.d/pritunl.list
apt-key adv --keyserver hkp://keys... |
#!/bin/bash
URL=$1
WIDTH=$2
HEIGHT=$3
MODE=$4
EXTRA=$5
if [ "$MODE" == "png" ]; then
wget --no-check-certificate --output-document=temp/input.swf $URL
FRAME=$EXTRA
if [ "$FRAME" == "" ]; then
FRAME=$(swfdump -D temp/input.swf | grep "Frame count" | cut -d ':' -f 2)
fi
echo Frame count: $FRAME
rm temp/output... |
cat <<EOT
export NPM_CONFIG_PREFIX="${NPM_CONFIG_PREFIX:-$WS}"
EOT
|
package com.mycompany.presentation.breweryWorker;
import com.mycompany.crossCutting.objects.Machine;
import com.mycompany.domain.breweryWorker.MachineController;
import com.mycompany.domain.breweryWorker.MachineSubscriber;
import com.mycompany.domain.breweryWorker.interfaces.IMachineControl;
import com.mycompany.domai... |
package com.huatuo.net.thread;
import java.util.ArrayList;
import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.huatuo.base.MyApplication;
import com.huatuo.dictionary.MsgId;
import com.huatuo.net.http.ActionResponse;
import com.huatuo.net.http.Ht... |
<reponame>Lambda-School-Labs/frontend-vbb-portal
import {
OPEN_MODAL,
CLOSE_MODAL,
SET_CONTENT,
CREATE_MODAL,
SET_CONFIG,
} from './Modal.types';
export const openModal = () => {
return {
type: OPEN_MODAL,
};
};
export const closeModal = () => {
return {
type: CLOSE_MODAL,
};
};
export cons... |
/**************************************************************
* DROP BLOCK INGESTOR FUNCTIONS
**************************************************************/
DROP FUNCTION attempt_chain_head_update(VARCHAR, BIGINT);
|
#!/bin/bash
echo Compiling protobufs
rm -rf tmp
mkdir tmp
PROTOS_DIR=../protos
./protoc --proto_path=$PROTOS_DIR --descriptor_set_out=tmp/compiled.pb \
$PROTOS_DIR/google/protobuf/descriptor.proto \
$PROTOS_DIR/google/protobuf/csharp_options.proto \
$PROTOS_DIR/google/protobuf/unittest.proto \
$PROTOS_DIR/goo... |
#!/usr/bin/env bash
cdrkit_version=1.1.11
cdrkit_download_path=http://distro.ibiblio.org/fatdog/source/600/c
cdrkit_file_name=cdrkit-${cdrkit_version}.tar.bz2
cdrkit_sha256_hash=b50d64c214a65b1a79afe3a964c691931a4233e2ba605d793eb85d0ac3652564
cdrkit_patches=cdrkit-deterministic.patch
genisoimage=genisoimage-$cdrkit_ve... |
// Empties folders to start fresh
// The actual grunt server settings
module.exports = function (grunt) {
'use strict';
return [
'<%= config.build %>'
];
};
|
function convertFtoC(f) {
return (f - 32) * 5 / 9;
}
console.log(convertFtoC(90)); // Outputs: 32.22 |
#include<stdio.h>
void towerOfHanoi(int n, char from_rod, char to_rod, char aux_rod)
{
if (n == 1)
{
printf("Move disk 1 from rod %c to rod %c\n", from_rod, to_rod);
return;
}
towerOfHanoi(n-1, from_rod, aux_rod, to_rod);
printf("Move disk %d from rod %c to rod %c\n", n, fr... |
<reponame>nickakey/SentenceRoller<gh_stars>0
/* eslint-disable */
import { render, fireEvent, cleanup, getNodeText } from "react-testing-library";
import React from "react";
import axios from "axios-jsonp-pro";
import ThesaurusInput from "../src/components/Input.jsx";
import randomLetter from "random-letter";
jest.mock... |
import React, { useState } from 'react';
function App() {
const [name, setName] = useState('');
function handleChange(e) {
setName(e.target.value);
}
return (
<div>
<form>
<label for="name">Name:</label>
<input type="text" id="name" onChange={handleChange}/>
</form>
<h2>Name entered: {name}</h2>
</div>
... |
# ██▀███ ▓█████▄▄▄█████▓ ██▀███ ▒█████
# ▓██ ▒ ██▒▓█ ▀▓ ██▒ ▓▒▓██ ▒ ██▒▒██▒ ██▒
# ▓██ ░▄█ ▒▒███ ▒ ▓██░ ▒░▓██ ░▄█ ▒▒██░ ██▒
# ▒██▀▀█▄ ▒▓█ ▄░ ▓██▓ ░ ▒██▀▀█▄ ▒██ ██░
# ░██▓ ▒██▒░▒████▒ ▒██▒ ░ ░██▓ ▒██▒░ ████▓▒░
# ░ ▒▓ ░▒▓░░░ ▒░ ░ ▒ ░░ ░ ▒▓ ░▒▓░░ ▒░▒░▒░
# ░▒ ░ ▒░ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒░
# ░░ ... |
#!/bin/sh
set -e
set -u
NAME=renderer-linux-x64
DEST=/tmp/pack/$NAME
VERSION=$1
# Build the binaries
scons -c
scons
# Copy the files to an independent folder
rm -rf $DEST
mkdir -p $DEST
cp bin/* $DEST
cp -R /cef/* $DEST
rm -r $DEST/include
# Compress 3rd party libraries
cp /usr/lib/libglog.so.0.0.0 $DEST/libglog.s... |
#!/usr/bin/env sh
###############################################################################
# Copyright (c) Intel Corporation - All rights reserved. #
# This file is part of the LIBXSMM library. #
# ... |
import java.util.ArrayList;
import java.util.Arrays;
public class Main {
public static ArrayList<Integer> sort(int a[]) {
Arrays.sort(a);
ArrayList<Integer> result = new ArrayList<>();
for (int value : a) {
result.add(value);
}
return result;
}
public s... |
<reponame>Makae/OOGeom
/*
* For more infos check:
* https://wiki.delphigl.com/index.php/Dual_Quaternion
*/
function VectorCalc(v) {
this.v = v || [0, 0, 0];
this.calculation = [
this.v[0],
this.v[1],
this.v[2]
];
}
VectorCalc.prototype.result = function() {
return this.calcul... |
package org.javacc.cpp;
import org.javacc.parser.CodeGeneratorSettings;
import org.javacc.parser.Context;
import org.javacc.utils.CodeBuilder;
import java.io.File;
/**
* The {@link CppCodeBuilder} class.
*/
class CppCodeBuilder extends CodeBuilder<CppCodeBuilder> {
private enum Buffer {
Main,
Include,... |
<reponame>Adaptivity/EvilCraft<gh_stars>0
package evilcraft.items;
import evilcraft.Reference;
import evilcraft.api.config.ItemConfig;
/**
* Config for the {@link HardenedBloodShard}.
* @author rubensworks
*
*/
public class HardenedBloodShardConfig extends ItemConfig {
/**
* The unique instance.
... |
#include <iostream>
void bubbleSort(int arr[], int size)
{
int temp;
for (int i = 0; i < size - 1; i++) {
for (int j = 0; j < size - i - 1; j++) {
if (arr[j] > arr[j + 1]) {
temp = arr[j];
arr[j] = arr[j + 1];
arr[j + 1] = temp;
}
}
}
}
int main()
{
int arr[] = { 5, 8, 3, 7, 1, 0 };
int size = sizeof(a... |
<gh_stars>1-10
// Generated by Haxe 3.4.4
(function () { "use strict";
var Main = function() {
console.log("DOM Example");
$(function() {
console.log("Jquery DOM ready (easy way)");
$(".container").append("<p>Jquery DOM ready (easy way)</p>");
});
$(window.document).ready(function() {
console.log("Jquery DOM ... |
<gh_stars>0
const {src,dest,series,parallel} = require('gulp');
const del = require('del');
const typescript = require('gulp-typescript');
const terser = require('gulp-terser');
const outputFolder = 'dist';
function clean() {
return del(outputFolder);
}
function compile() {
re... |
package io.dronefleet.mavlink.common;
import io.dronefleet.mavlink.annotations.MavlinkEntryInfo;
import io.dronefleet.mavlink.annotations.MavlinkEnum;
/**
* RTK GPS baseline coordinate system, used for RTK corrections
*/
@MavlinkEnum
public enum RtkBaselineCoordinateSystem {
/**
* Earth-centered, Earth-fi... |
import FtLogo from './FtLogo';
import LoadingDots from './LoadingDots';
export {
FtLogo,
LoadingDots
};
|
<filename>events/tcpconnect.js
module.exports = function (bot) {
bot.on('tcpConnect', function (socket) {
console.log('[TCP] Connected!');
});
};
|
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
string reverse_words(string s) {
vector<string> words;
string word = "";
for(auto ch : s) {
if(ch == ' ') {
words.push_back(word);
word.clear();
} else {
word.push_back(... |
#!/usr/bin/env bash
set -exu
# install golangci-lint as recommended on the project page
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
cd "${CIRCLE_WORKING_DIRECTORY}"
golangci-lint run --enable deadcode --enable varcheck --enable staticc... |
<reponame>rarible/ethereum-sdk<gh_stars>10-100
import type { MessageTypes, TypedMessage } from "./domain"
import { SignTypedDataMethodEnum } from "./domain"
export type SendFunction = (method: string, params: any) => Promise<any>
export async function signTypedData<T extends MessageTypes>(
send: SendFunction, signer... |
fn main() {
for i in 1..11 {
if i % 2 == 0 {
println!("{}", i);
}
}
} |
struct EntityId(u32);
struct EntityPickerViewMut(Option<EntityId>);
impl EntityPickerViewMut {
fn new(entity_id: Option<EntityId>) -> Self {
EntityPickerViewMut(entity_id)
}
}
fn picker_clear_stash_sys(mut entity_picker: EntityPickerViewMut) -> Option<EntityId> {
entity_picker.0.take()
}
fn main... |
package org.ednovo.gooru.domain.service.collection;
public interface AbstractCollectionCopyService {
}
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.diskette = void 0;
var diskette = {
"viewBox": "0 0 64 64",
"children": [{
"name": "g",
"attribs": {
"id": "DISKETTE"
},
"children": [{
"name": "g",
"attribs": {},
"children": [{
"... |
<filename>src/app/models/custom-error-response.ts<gh_stars>0
export interface CustomErrorResponse {
error: string;
message: string;
status: number;
timestamp: string; // example: yyyy-MM-dd hh:mm:ss
}
|
<filename>aerofoil/spar_cap_BM.py
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 02 21:52:00 2020
@author: yuw
"""
import parsec_12
import numpy as np
from matplotlib import pyplot as plt
def flapwise_bending_moment(coordinates_out,coordinates_inn,N1,N2):
for i in range(N1,N2):
if i==N1:
a... |
# This script create release assembly of encuestame
pushd enme-utils
mvn clean install -Dmaven.test.skip=true
popd
pushd enme-persistence
mvn clean install -Dmaven.test.skip=true
popd
pushd enme-core
mvn clean install -Dmaven.test.skip=true
popd
pushd enme-social
mvn clean install -Dmaven.test.skip=true
popd
pushd... |
<filename>consumer-driven-contracts-with-spring-cloud-contract/book-store-client/src/test/java/de/rieckpil/blog/BookClientTest.java
package de.rieckpil.blog;
import com.fasterxml.jackson.databind.JsonNode;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autow... |
<reponame>googleapis/googleapis-gen
# 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-... |
<reponame>muttiopenbts/cascade_spit
from django.conf.urls import url
from django.urls import include, path, re_path
from . import views
from django.contrib.auth import views as auth_views
app_name = 'dashboard'
urlpatterns = [
re_path(r'^$', views.HomeView.as_view(), name='home'),
re_path(r'^$', views.HomeVie... |
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... |
#!/bin/bash
# Be verbose, and stop with error as soon there's one
set -ev
if [[ "$TEST_TYPE" == "tests" ]]
then
THEKEY=`ssh-keygen -y -f "${HOME}/.ssh/id_rsa"`
echo 'AUTHORIZED_KEY='"$THEKEY" > "${TRAVIS_BUILD_DIR}/torquessh.env"
docker build -t torquessh "${TRAVIS_BUILD_DIR}/.ci/torquessh-doubler"
# ... |
#!/sbin/sh
#
# Backup and restore addon /system files
#
export C=/tmp/backupdir
export SYSDEV="$(readlink -nf "$2")"
export SYSFS="$3"
export V=18.0
export ADDOND_VERSION=3
# Partitions to mount for backup/restore in V3
export all_V3_partitions="vendor product system_ext"
# Scripts in /system/addon.d expect to find... |
<reponame>DerSchmale/spirv4web
export declare enum RayFlagsMask {
None = 0,
OpaqueKHR = 1,
NoOpaqueKHR = 2,
TerminateOnFirstHitKHR = 4,
SkipClosestHitShaderKHR = 8,
CullBackFacingTrianglesKHR = 16,
CullFrontFacingTrianglesKHR = 32,
CullOpaqueKHR = 64,
CullNoOpaqueKHR = 128,
SkipT... |
using Microsoft.CodeAnalysis;
public enum SynthesizedLocalKind
{
None,
ImplicitVariable,
ExplicitVariable
}
public class SynthesizedLocalVariable
{
public bool IsImportedFromMetadata { get; }
public SynthesizedLocalKind SynthesizedKind { get; }
public SynthesizedLocalVariable(bool isImportedF... |
#!/usr/bin/env bash
# Convert any video supported by your ffmpeg to mp3. The resulting mp3 will be
# saved in the same location as the original video, and will have the same
# filename, except the filename extension. This script assumes that the given
# filepath has an adequate filename extension.
# Copyright 2017 ol... |
#!/usr/bin/env bash
set -e
echo "==> Vault (server)"
# Vault expects the key to be concatenated with the CA
sudo mkdir -p /etc/vault.d/tls/
sudo tee /etc/vault.d/tls/vault.crt > /dev/null <<EOF
$(cat /etc/ssl/certs/me.crt)
$(cat /usr/local/share/ca-certificates/01-me.crt)
EOF
echo "==> checking if we are using enterp... |
package pepperlint
import (
"go/ast"
)
// BinaryExprRules is a list of type BinaryExprRule.
type BinaryExprRules []BinaryExprRule
// ValidateBinaryExpr will iterate through the list of array types and call
// ValidateBinaryExpr. If an error is returned, then that error will be added
// to the batch of errors.
func ... |
package com.example.lostandfoundoncampus.bean;
import cn.bmob.v3.BmobUser;
import cn.bmob.v3.datatype.BmobFile;
import cn.bmob.v3.datatype.BmobRelation;
public class User extends BmobUser {
private BmobRelation collect;
private String sex;
private String img_url;
private BmobFile photo;
private B... |
class StateSelector extends React.Component {
constructor(props) {
super(props);
this.state = {
selectedState: '',
selectedCounty: ''
}
}
//Populates the state selector dropdown
renderStateOptions() {
const states = {};
this.props.data.for... |
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-400124
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl... |
<filename>src/CToolDlg.cpp<gh_stars>100-1000
// CToolDlg.cpp
// Copyright (c) 2014, <NAME>
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "CToolDlg.h"
#include "interface/NiceTextCtrl.h"
enum
{
ID_TITLE_TYPE = 100,
ID_TOOL_TYPE,
... |
<filename>public/js/SegregatableJS/get.js
function GetWasteTypes(callBack) {
$.ajax({
type: "GET",
headers: {
Authorization:
"Bearer " + $("meta[name=api-token]").attr("content"),
Accept: "application/json"
},
url: "api/wasteCollect/segregation... |
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
int num1 = 2;
int num2 = 4;
int num3 = 3;
int largest = Math.max(Math.max(num1... |
package com.blog.board.domain;
public class BoardVO {
private String board_no;
private String board_title;
private String board_content;
private String board_regist_date;
private String board_regist_id;
private String board_modify_date;
private String board_modify_id;
private String board_read_c... |
<reponame>ColFusion/PentahoKettle<filename>CarteService/default/src/main/java/org/rzo/yajsw/timer/DummyTimer.java
package org.rzo.yajsw.timer;
public class DummyTimer implements Timer
{
public void init()
{
}
public boolean isHasTrigger()
{
return false;
}
public boolean isStartImmediate()
... |
#!/bin/sh
cd $PWD;
# ssh root@$1 "echo \"ls /tmp/|grep \\\"jetty-0.0.0.0-9090-root.war-_-any\\\"\" >text.sh && sh text.sh"
# scp getJettyFolderPathForRootwar.sh root@$1:~/
# directory=`ssh root@$1 'sh ~/getJettyFolderPathForRootwar.sh'`
directory=/tmp/$(ssh root@$1 "echo \"ls /tmp/|grep \\\"jetty-0.0.0.0-9090-root.war-... |
"""
Data
================
data storage and manipulation classes, should be sufficient to run the game without display
"""
from enum import Enum
import numpy
class Facing(Enum):
YP = 0
XP = 1
ZN = 2
YN = 3
XN = 4
ZP = 5
# gives a directional delta array in hex coordinates for given Facing
de... |
<filename>app/assets/javascripts/app/categories/catAlertService.factory.js
angular
.module('app')
.service("catAlertService", [catAlertService]);
function catAlertService(){
var currentRecipe = "";
var setSuccess = function(category, recipe){
// debugger;
currentRecipe = recipe + " was added... |
package com.report.application.domain.vo;
import com.report.common.unit.vo.NonBlankNameTest;
class PlanetNameTest extends NonBlankNameTest<PlanetName> {
@Override
protected Class<PlanetName> getClassOfTheInstanceBeingCreated() {
return PlanetName.class;
}
}
|
#!/bin/bash
module unload matlab && module load matlab/2019a
log=compiled/commit_ids.txt
true > $log
echo "/N/u/brlife/git/jsonlab" >> $log
(cd /N/u/brlife/git/jsonlab && git log -1) >> $log
echo "/N/u/brlife/git/NIfTI" >> $log
(cd /N/u/brlife/git/NIfTI && git log -1) >> $log
echo "GLMdenoise" >> $log
(cd `pwd` && gi... |
<gh_stars>0
const SEND_MESSAGE = "SEND-MESSAGE";
let initialState = {
dialogs: [
//Array of dialogs data
{ id: 1, name: "Bator" },
{ id: 2, name: "Irina" },
{ id: 3, name: "Viktor" },
{ id: 4, name: "Jason" },
{ id: 5, name: "Abraham" },
],
messages: [
//Array of messages data
{ i... |
const logger = {
error: (errorCode, ...text) => {
if (console) {
!text
? console.error(errorCode)
: console.error(
`[next-auth][error][${errorCode}]`,
text,
`\nhttps://next-auth.js.org/errors#${errorCode.toLowerCase()}`
)
}
},
debug: (debug... |
<filename>java-io/src/br/com/cursoalura/javaIO/usingJavaIO/WritingFileWithFileWriter.java
package br.com.cursoalura.javaIO.usingJavaIO;
import java.io.FileWriter;
import java.io.IOException;
public class WritingFileWithFileWriter {
public static void main(String[] args) throws IOException {
FileWriter fw = new F... |
function processTableConfig(config: TableConfig): TableConfig {
const modifiedConfig: TableConfig = { ...config };
if (modifiedConfig.hasActions) {
modifiedConfig.columns.push('Actions');
}
if (modifiedConfig.hasExpandedRow) {
modifiedConfig.data.forEach((row) => {
row.expanded = false;
});
... |
<filename>Parentheses/Call/main.go
// Call renders a comma separated list enclosed by parenthesis
// Use for function calls
package main
import (
"fmt"
. "github.com/dave/jennifer/jen"
)
func main() {
c := Qual("fmt", "Printf").Call(Lit("%#v: %T\n"), Id("a"), Id("b"))
fmt.Printf("%#v", c)
} |
#!/bin/sh
#gcc -DDEBUG -o dict -fms-extensions -Wno-microsoft-anon-tag dict.c main.c
gcc -o dict -fms-extensions -Wno-microsoft-anon-tag dict.c main.c
|
db.books.find(
{
author: "John Doe",
published: true,
clicked: true
}
) |
<reponame>swinkels/skempy<filename>skempy/module_path_finder.py
import os
class ModulePathFinder(object):
def find_path(self, file_path):
directory, file_name = os.path.split(file_path)
module_name, _ = os.path.splitext(file_name)
return '.'.join(self.find_packages(directory) + [module_na... |
<filename>src/components/Tabs/ProponentManagment/Questions.js
import { AnswerCell, SelectColumnFilter } from 'components/Reusable'
import { SPList } from 'components/SharePoint'
import React from 'react'
import { Assignee } from './Assignee'
export const Questions = (props) => {
const { UUID } = props
const listNa... |
package shadows.placebo.patreon.wings;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.entity.model.PlayerModel;
import net.minecraft.util.ResourceLocation;
... |
<reponame>segfaultxavi/nem.core
package org.nem.core.time.synchronization;
import org.hamcrest.MatcherAssert;
import org.hamcrest.core.*;
import org.junit.*;
import org.nem.core.test.Utils;
import org.nem.core.time.NetworkTimeStamp;
import java.util.HashMap;
public class CommunicationTimeStampsTest {
// region con... |
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "transformations/low_precision/fake_quantize.hpp"
#include <algorithm>
#include <cmath>
#include <limits>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <ngraph/opsets/opset1.... |
#!/bin/bash
if ! [[ -e "/package" && -d "/package" ]] ; then
echo "You need to add docker run option for mounting a volume: -v /path/to/dir:/package"
exit 1
fi
git clone -b ${BRANCH} https://${REPO}.git ${GOPATH}/src/${REPO}
cd ${GOPATH}/src/${REPO}/modules/${MODULE}
go get ./...
./control build
./control pack
mv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.