text stringlengths 1 1.05M |
|---|
package com.ctrip.persistence.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @author <NAME>
*/
@Entity
@Table(name = "t_element_tpl_param_group")
public class ElementTplParamGroup extends BaseEntity {
private String name;
private String value;
private Boolean closed;
... |
<reponame>get-bundled/axyz-sdk
import React, { useMemo } from 'react';
import Axyz, { type AxyzSDKOptions } from '@axyzsdk/js';
import { createTheme, CSS, NextUIProvider } from '@nextui-org/react';
import { WagmiProvider } from 'wagmi';
import {
ConnectionProvider as SolanaConnectionProvider,
WalletProvider as Sola... |
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
import os, sys, time
KEY_SET_FILE = "data/key.set"
if not os.path.exists(KEY_SET_FILE):
raise Exception("Key set cannot be located")
keys = [str(line.strip()) for line in open(KEY_SET_FILE)]
"""
Let's only support searching for a single key for now.... |
#!/bin/bash
while [[kill -0 $0]]
do
echo "$PID is running"
# Do something knowing the pid exists, i.e. the process with $PID is running
done
python trainval_net.py --da True --src city --tar fcity --net res101 --bs 1 --lr 0.001 --save_dir data/pretrained_model --cuda --lr_decay_step 50000 2>&1 | tee debug/train_... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.phoneSquare = void 0;
var phoneSquare = {
"viewBox": "0 0 1536 1792",
"children": [{
"name": "path",
"attribs": {
"d": "M1280 1193q0-11-2-16t-18-16.5-40.5-25-47.5-26.5-45.5-25-28.5-15q-5-3-19-13t-25-15-21-5q-15 0-3... |
package com.chankin.ssms.core.entity;
/*
*
* 用户自定义异常
* */
public class UserException extends RuntimeException {
private long date = System.currentTimeMillis();
public long getDate() {
return date;
}
}
|
#! /bin/bash
if [ -n "$1" ] && ! id "$1" >/dev/null 2>&1; then
useradd -g users -G sudo -d /home/users -s /bin/zsh -g users -G sudo $1 && echo "ADDED $1"
usermod -aG sudo "$1"
echo "$1 ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
fi
|
import { Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { Observable, of } from "rxjs";
import { catchError, tap, map } from "rxjs/operators";
import { LoggerService } from "./logger.service";
declare var userContext: any;
export class BaseService {
userContext;
ApiUrl... |
<filename>camel-core/src/main/java/org/apache/camel/spi/TransformerRegistry.java<gh_stars>0
/**
* 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... |
from starlette.applications import Starlette
from starlette.responses import HTMLResponse
from starlette.templating import Jinja2Templates
templates = Jinja2Templates(directory="templates")
app = Starlette()
@app.route('/')
async def homepage(request):
context = {
"title": "Book List",
"books": [
{
"title": "Th... |
import React from 'react'
import App from "./App";
import './App.css';
import Dashboard from "./componentss/Dashboard"
import Wallets from "./componentss/Wallets"
import Profile from './componentss/Profile';
import TotalIncome from './componentss/TotalIncome';
import LevelIncome from './componentss/LevelIncome';
import... |
#!/bin/sh
#echo "Be sure to compile PageRank2 with appropriate NUM_NODE"
CMDNAME=`basename $0`
if [ $# -ne 2 ]; then
echo "Usage: $CMDNAME run rwr input_id niteration" 1>&2
echo "input_id: 1: sample(num_node=16)"
echo " 2: wiki-Vote(num_node=7115)"
echo " 14: s14.edge(2.7MB)"
echo " ... |
// Copyright (C) 2019-2021, <NAME>.
// @author xiongfa.li
// @version V1.0
// Description:
package authentication
type Manager interface {
Authenticate(auth Authentication) (Authentication, error)
}
|
<gh_stars>0
class CancelInterview
attr_reader :auth, :application_choice, :interview, :cancellation_reason
def initialize(
actor:,
application_choice:,
interview:,
cancellation_reason:
)
@auth = ProviderAuthorisation.new(actor: actor)
@application_choice = application_choice
@intervie... |
const initState = {
userData: [],
blogPost: [],
geoLocation: { lat: "", lng: "", location: "" },
};
function Reducer(state = initState, action) {
switch (action.type) {
case "LOAD_DATA":
return { ...state, userData: action.payload };
case "GET_POST":
return { ...state, post: action.payload ... |
validate_templates
==================
:synopsis: Checks templates on syntax or compile errors.
Options
=======
verbosity
~~~~~~~~~
A higher verbosity level will print out all the files that are processed not just the onces that contain errors.
break
~~~~~
Do not continue scanning other templates after the first fai... |
package cn.stylefeng.roses.kernel.system.api.exception.enums.theme;
import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import cn.stylefeng.roses.kernel.system.api.constants.SystemConstants;
import lombok.Getter;
/**
* 系统主题模板属性异常类
*
... |
/*
* 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"); you ... |
#!/bin/bash
#
cd basic; ./run_all.sh; cd ..
cd advanced; ./run_all.sh; cd ..
cd simulations; ./run_all.sh; cd ..
cd volumetric; ./run_all.sh; cd ..
cd pyplot; ./run_all.sh; cd ..
cd other; ./run_all.sh; cd ..
# other/dolfin
if python -c 'import pkgutil; exit(not pkgutil.find_loader("dolfin")... |
python setup.py sdist
pip install twine -q -q
twine upload dist/* -u $user -p $passw
rm -rf build/ dist/ *.egg-info/ |
python3 xmTool/demo_CAM2.py 4349 1
python3 xmTool/demo_CAM2.py 3175 2
python3 xmTool/demo_CAM2.py 1407 3
python3 xmTool/demo_CAM2.py 5630 1
python3 xmTool/demo_CAM2.py 0722 12
python3 xmTool/demo_CAM2.py 1584 4
python3 xmTool/demo_CAM2.py 4349 1
python3 xmTool/demo_CAM2.py 0859 2
python3 xmTool/demo_CAM2.py 1295 9 |
def translate_account_group_ids(role):
translated_ids = []
for id in role['accountGroupIds']:
if isinstance(id, int):
translated_ids.append(roman_numeral(id))
else:
translated_ids.append(id.upper()[::-1])
return translated_ids
def roman_numeral(n):
roman_numerals... |
import csv
import statistics
class CSVProcessor:
def __init__(self):
self.data = []
def load_data(self, file_path):
with open(file_path, 'r') as file:
csv_reader = csv.reader(file)
self.data = [row for row in csv_reader]
def calculate_statistics(self, column):
... |
function ssh_ping()
{
local host="${1}"
if [ ! -z "${2+x}" ]; then
local user="${2}"
else
local user=`whoami`
fi
local result=`ssh_exe "${host}" "echo \"hello\"" "${user}" 2>/dev/null | { grep 'hello' || test $? = 1; }`
if [ -z "${result}" ]; then
echo 'false'
else
echo 'true'
fi
}
function ssh_exe()
{... |
<reponame>orthopteroid/psychic-sniffle<gh_stars>1-10
// copyright 2016 <NAME> (<EMAIL>)
// MIT license
#include <iostream>
#include <cstring>
#include <cstring>
#include "sniffle.h"
#include "cpuinfo.h"
using namespace sniffle;
//////////////////////////////
template<typename Rep, uint Dimension, uint Population>... |
<reponame>rainu/mqtt-logger
package main
import (
"github.com/alexflint/go-arg"
"go.uber.org/zap"
"os"
"regexp"
"time"
)
type Config struct {
MqttBrokerAddress string `arg:"--broker,required,env:MQTT_BROKER_ADDRESS,help:The mqtt broker address."`
MqttTopics []string `arg:"--topic,sep... |
<filename>types/helpers.go<gh_stars>0
package types
import (
"io"
"github.com/hexbee-net/errors"
"github.com/hexbee-net/parquet/encoding"
)
func encodeValue(w io.Writer, enc ValuesEncoder, all []interface{}) error {
if err := enc.Init(w); err != nil {
return err
}
if err := enc.EncodeValues(all); err != nil... |
<gh_stars>0
package cn.finalteam.rxgalleryfinalprovider.imageloader;
import android.content.Context;
import android.graphics.drawable.Drawable;
import com.squareup.picasso.Picasso;
import java.io.File;
import cn.finalteam.rxgalleryfinalprovider.ui.widget.FixImageView;
/**
* Desction:
* Author:pengjianbo
* Date:... |
import { assert } from '@0x/assert';
import { addressUtils } from '@0x/utils';
import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
import * as _ from 'lodash';
import { Callback, ErrorCallback, PartialTxParams, WalletSubproviderErrors } from '../types';
import { Subprovider } from './subpr... |
#!/bin/bash
######################################################################
# Custom entrypoint that activate conda before running spleeter.
#
# @author Félix Voituret <fvoituret@deezer.com>
# @version 1.0.0
######################################################################
# shellcheck disable=1091
. "/op... |
//#####################################################################
// Copyright 2010, <NAME>.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//#####################################################################
#include <Phy... |
#!/bin/bash
###########################################################
## Ejemplo: Se muestra como usar los decimales
## para que tenga deciamles, hay que definir la variable
###########################################################
## Leer de teclado y guardar en variable NUMERO1
read -p 'Introduce el primer nume... |
$(document).ready(function(){
var deliveryTeam = [];
$.get("api/manage-team/team/delivery", function(data){
deliveryTeam =JSON.parse(JSON.stringify(data)).data;
for(var i=0; i<deliveryTeam.length; i++){
var card = $('.delivery_boy_card').clone();
card.removeClass('delivery_... |
<reponame>YaroShkvorets/ant-design-vue
import type { PanelMode } from '../interface';
export default function getExtraFooter(
prefixCls: string,
mode: PanelMode,
renderExtraFooter?: (mode: PanelMode) => any,
) {
if (!renderExtraFooter) {
return null;
}
return <div class={`${prefixCls}-footer-extra`}>{... |
<filename>li-apache-kafka-clients/src/main/java/com/linkedin/kafka/clients/utils/CompositeCollection.java
/*
* Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License").
See License in the project root for license information.
*/
package com.linkedin.kafka.clients.utils;
import java.uti... |
#!/bin/sh
read -r -p 'Commit message: ' desc # prompt user for commit message
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
git add .
git add -u
git commit -m "$desc"
git push origin $branch
|
package com.company;
import java.util.Scanner;
public class Exercise_2_13 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter the monthly saving amount: ");
double monthlySaving = input.nextDouble();
double monthlyRate =... |
<gh_stars>10-100
package artifality.item.base;
import artifality.extension.Artifact;
import artifality.item.ArtifactSettings;
import net.minecraft.item.ItemStack;
import net.minecraft.text.Style;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;
import java.awt.*;
public class ArtifactItem ... |
<reponame>yamamotok/dataobject
import { hasFactory } from './hasFactory';
import { hasToPlain } from './hasToPlain';
export function isDataObject(ctor: unknown): boolean {
if (typeof ctor !== 'function') {
return false;
}
return hasToPlain(ctor) && hasFactory(ctor);
}
|
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.PIDFCoefficients;
@com.qualcomm.robotcore.eventloop.opmode.TeleOp(name = "UltimateGoalTeleOp", group = "Competition")
public class TeleOp extends Robot {
@Override
public void init(... |
#!/bin/bash
dotnet build AutoMiniProfiler.sln /nologo
dotnet test AutoMiniProfiler.sln |
// @flow
import * as React from 'react'
import {
Avatar,
Box2,
ConnectedUsernames,
FloatingMenu,
HOCTimers,
Icon,
ProgressIndicator,
Text,
type PropsWithTimer,
} from '../../../../../common-adapters/'
import {collapseStyles, globalColors, globalMargins, isMobile, platformStyles} from '../../../../../s... |
#!/usr/bin/env bats
load '../lib/helper'
load '../bats/extensions/bats-support/load'
load '../bats/extensions/bats-assert/load'
load '../bats/extensions/bats-file/load'
@test "view: helm view" {
run helm secrets view
assert_failure
assert_output --partial 'Error: secrets file required.'
}
@test "view: he... |
#!/bin/bash
rlwrap stellite-wallet-cli --wallet-file wallet_m --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_m.log start_mining
|
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
import { Observable, of } from 'rxjs';
import { mergeMap, take } from 'rxjs/operators';
import { Hero } from './hero.model';
import { HeroService } from './hero.service';
@Injectable({
... |
#!/bin/bash
set -e
set +x
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
echo "usage: $(basename $0) [firefox|webkit] [--full-history] [--has-all-builds]"
echo
echo "List CDN status for browser"
echo
exit 0
fi
if [[ $# == 0 ]]; then
echo "missing browser: 'firefox' or 'webkit'"
echo "try './$(basename ... |
from socket import inet_pton, AF_INET6, error as SocketError
from .base import ProxyPart
class HostPart(ProxyPart):
__slots__ = ()
attribute = '_host'
def render(self, obj, value, raw=False):
result = super(HostPart, self).render(obj, value, raw)
try:
if not raw:
result.encode('ascii')
except ... |
% python timeit.py "100**100"
100000 loops, best of 3: 4.04 usec per loop
% python timeit.py "200**200"
100000 loops, best of 3: 9.03 usec per loop
% python timeit.py "100**100" "200**200"
100000 loops, best of 3: 13.1 usec per loop
|
// Book class
class Book {
private String title;
private String author;
private boolean available;
public Book(String title, String author) {
this.title = title;
this.author = author;
this.available = true;
}
public String getTitle() {
return title;
}
p... |
#!/usr/bin/env bash
# Author : Titouan Laessle
# Copyright 2017 Titouan Laessle
# License : MIT
# Quick check if we do have the directories, if not create them
function check_parent {
parent_dir=$( dirname $1 )
if [[ ! -d $parent_dir ]]; then
mkdir $parent_dir
fi
}
# Will download the feature tab... |
SELECT e1.name as employeeName, e2.name as managerName
FROM employee e1
INNER JOIN employee e2
ON e1.managerID = e2.id; |
<reponame>fyamvbf/nablarch-sandbox
CREATE TABLE PUBLIC.BATCH_REQUEST (
BATCH_REQUEST_ID VARCHAR(100) NOT NULL,
BATCH_REQUEST_NAME VARCHAR(100) NOT NULL,
PROCESS_HALT_FLG CHAR(1) NOT NULL,
PROCESS_ACTIVE_FLG CHAR(1) NOT NULL,
SERVICE_AVAILABLE CHAR(1) NOT NULL,
RESUME_POINT BIGINT NOT NULL,
PRIMARY KEY (BA... |
/*
rule = RewriteConsoleUsage
*/
package fix.standard_services
import scala.io.StdIn.readLine
object ConsoleUsage {
def consoleProgram() = {
println("Please enter your name")
val name = readLine()
val x = 3
println("Hello " + name)
}
}
|
#!/bin/bash
export pip_build_version=$(python get_version.py)
export build_version=$pip_build_version
export docker_build_version=$(echo $pip_build_version | sed 's/+/_/g')
wheel_suffix=$(python -c "import sys; print(sys.version_info.major)")
wheel_name_tail="${pip_build_version}-py${wheel_suffix}-none-any.whl"
bui... |
<reponame>albangaignard/galaxy-PROV
/*
* The MIT License
*
* Copyright 2016 <NAME> <<EMAIL>>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without ... |
task=multitask
# or bart
model="bart"
echo $model
if [ $model == "t5" ]
then
folder_prefix="VLT5"
backbone="t5-base"
batch_size=300
elif [ $model == "bart" ]
then
folder_prefix="VLBart"
backbone="facebook/bart-base"
batch_size=500
fi
echo $folder_prefix
echo $backbone
feature=RN101
lr=1e-3... |
<gh_stars>0
package org.springaop.chapter.two.pointcut;
public class RegExpTargetExample {
public void printName() {
System.out.println("Max");
}
public void printAction() {
System.out.println("swim");
}
public void printSpot() {
System.out.println("in Poetto beach");
... |
import os
import torch
class BaseModel(object):
def initialize(self, opt):
self.opt = opt
self.gpu_ids = opt.gpu_ids
self.is_Train = opt.is_Train
self.save_dir = os.path.join(opt.checkpoints_dir, opt.model)
self.result_dir = os.path.join(opt.test_dir, opt.pretrained_G) if opt.pretrained_G else opt.test_di... |
rm -rf ./build/macos/Build/Products/Debug/*
rm -rf ./build/macos/Build/Products/Release/* |
'use strict';
var _32 = {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 32,
height: 32,
},
content: [
{
elem: 'path',
attrs: {
d:
'M9.5 8h10.6a5 5 0 1 0 0-2H9.5a5.5 5.5 0 0 0 0 11h11a3.5 3.5 0 0 1 0 7h-8.6a5 5 0 1 0 0 2... |
#!/bin/bash
for n in {3..48..3}
do
echo "./mp " $1 " " $2 " " $4 " " ${n}
./throughput_mp $1 ${n} $2 $3 $4 $5 $6 $7 $8 >> results/throughput_mp.txt
done
echo "./sequential " $1 " " $2 " " $4 " " 1
./sequential $1 1 $2 $3 $4 $5 $6 $7 $8 >> results/sequential.txt
cd plot
./tput_mp.sh
cp tput_mp.eps "../throughput_mp_"... |
<reponame>Jwt-acs/ANG-JWTAuthenticator<filename>src/app/starter/profile/profile.component.ts<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { LoginServiceService } from '../../services/login-service.service';
import swal from 'sweetalert';
... |
<reponame>Weked/JUnit_Test_Exercise<filename>biblioteca3.0/src/bibliotecaUFMA/cadastroUsuario.java
package bibliotecaUFMA;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.... |
class Admin::NewAuctionViewModel < Admin::BaseViewModel
attr_reader :auction
DEFAULT_START_DAYS = 5
DEFAULT_END_DAYS = 7
DEFAULT_DELIVERY_DAYS = 12
def initialize(auction = nil)
@auction = auction
end
def new_record
auction || Auction.new
end
def new_auction_nav_class
'usa-current'
en... |
import sys
import re
import os
from typing import List
from pathlib import Path
def process_output_files(output_dir: str, output_base_names: List[str]) -> List[str]:
chrom_regex = re.compile(r'(chr[a-zA-Z0-9]+)')
chromosomes = [chrom_regex.search(x).group(1) for x in output_base_names]
output_dir = Path(o... |
c = [[0] * 15 for i in range(5)]
for i in range(5):
d = list(input())
d_len = len(d)
for j in range(d_len):
c[i][j] = d[j]
for i in range(15):
for j in range(5):
if c[j][i] == 0:
continue
else:
print(c[j][i], end='')
|
#!/bin/bash
timeout 12 cvc4 cvc4-m-i-q-T_12-VS-z3-T_1-GeRnz_1.smt2 --tlimit=12000 >/dev/null 2>&1
retVal=$?
if [ $retVal -eq 124 ]
then
timeout 1 z3 -smt2 cvc4-m-i-q-T_12-VS-z3-T_1-GeRnz_1.smt2 -T:1 >/dev/null 2>&1
exit $?
fi
exit 1
|
<filename>script/js/weather.js<gh_stars>0
// Weather - Openweathermap.org API - Markle
$.getJSON('http://api.openweathermap.org/data/2.5/weather?id=4923226&units=imperial&APPID=180f0c84f43029018bef20431f8b0416', function(data) {
console.log(data.name);
$('#currentTemp').text(data.main.temp + '°');
$('#description... |
package com.guigu.single;
/*
* ����ʽ��
* �ӳٴ������ʵ������
*
* 懒汉式:
* 延迟创建这个实例对象
*
* (1)构造器私有化
* (2)用一个静态变量保存这个唯一的实例
* (3)提供一个静态方法,获取这个实例对象
*/
public class Singleton5 {
private static Singleton5 instance;
private Singleton5(){
}
public static Singleton5 getInstance(){
if(instance == null){
synch... |
<reponame>mjirik/scaffanweb
# /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import zipfile
# zipdir
#
# def zipdir(path, zip_fn):
#
# ziph = zipfile.ZipFile(zip_fn, 'w', zipfile.ZIP_DEFLATED)
# # ziph is zipfile handle
# for root, dirs, files in os.walk(path):
# for file in files:
# ... |
import { Runner } from '../runner/runner'
import { ExecutionOptions } from './execution-options'
type Fn<Result, Param> = (params: { result: Result; param: Param; executionOptions: ExecutionOptions }) => void
type Id = number
export abstract class UseCase<Result = void, Param = void> {
abstract readonly: boolean
... |
import os
import datetime
def rename_files(file_list):
current_date = datetime.datetime.now().strftime("%Y%m%d")
for filename in file_list:
parts = filename.split('_')
if len(parts) == 2 and parts[1].endswith('.bin'):
new_filename = f"5MCP19_{current_date}.bin"
os.rename... |
/*==================================================================*\
| EXIP - Embeddable EXI Processor in C |
|--------------------------------------------------------------------|
| This work is licensed under BSD 3-Clause License |
| The full license terms and condit... |
import os
def save_visualization(ypred, true_classes, image_paths):
for id_val, (pred, true_class, img_path) in enumerate(zip(ypred, true_classes, image_paths)):
root_name, _ = os.path.splitext(img_path)
if pred == true_class:
save_dir = 'visual_correct'
else:
save_d... |
def fahrenheit_to_celsius(fahrenheit):
celsius = (fahrenheit - 32) * 5/9
return celsius |
<filename>src/java_8_in_action/stream_collector/CollectorHarness.java
package java_8_in_action.stream_collector;
import static java.util.stream.Collectors.partitioningBy;
import java.util.List;
import java.util.Map;
import java.util.stream.IntStream;
// 기본 컬렉터 vs 커스텀 컬렉터 성능 비교
public class CollectorHarness {
public... |
#!/usr/bin/env bash
source env/bin/activate;
python3 scraper.py;
|
<filename>src/main/java/ch/raiffeisen/openbank/party/persistency/model/PartyType.java
package ch.raiffeisen.openbank.party.persistency.model;
/**
* Party type, in a coded form.
*
* @author <NAME>
*/
public enum PartyType {
// Party that has delegated access.
Delegate,
// Party is a joint owner of the accoun... |
<filename>src/components/LocationInput/index.js
import component from './LocationInput'
import connector from './LocationInput.connector'
export default connector(component)
|
#! /bin/sh
set -e
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/lib"
./bin/nuggan -server ":$PORT" -server-config server.conf
|
#!/bin/sh
build_time=$(date +%s)
git_branch=$(git symbolic-ref --short -q HEAD)
git_tag=$(git describe --tags --exact-match 2>/dev/null)
git_commit_count=$(git rev-list HEAD --count)
git_hash=$(git rev-parse --short HEAD)
info_plist="${BUILT_PRODUCTS_DIR}/${EXECUTABLE_FOLDER_PATH}/Info.plist"
/usr/libexec/PlistBuddy... |
package com.multiteam.mt.proxy;
public class ServerProxy extends CommonProxy {
} |
<reponame>oag221/vcaslib
package algorithms.vcas;
/*
This is an implementation of the Camera object described in the paper
"Constant-Time Snapshots with Applications to Concurrent Data Structures"
<NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
PPoPP 2021
Copyright (C) 2021 <NAME>
This program is free software: you c... |
<gh_stars>10-100
# frozen_string_literal: true
module Twitch
class Client
## API method for games
module Games
def get_games(options = {})
initialize_response Game, get('games', options)
end
def get_top_games(options = {})
initialize_response Game, get('games/top', options)... |
class RegisterController < ApplicationController
include RegisterHelper
def create
render(nothing: true, status: 405) && return unless request.content_type == 'application/json'
render(nothing: true, status: 405) && return unless params.key?(:marketplace_url)
render(nothing: true, status: 405) && retur... |
public class GameCharacter {
private double positionX;
private double speedX;
private double accelerationX;
public GameCharacter(double initialPositionX, double initialSpeedX, double accelerationX) {
this.positionX = initialPositionX;
this.speedX = initialSpeedX;
this.accelerati... |
#!/bin/bash
#conda activate pytorch
model=$1
splits=$(ls ../data/splits)
for file in $splits
do
protocal=$(echo $file | awk 'BEGIN {FS = "_"} {print $1}')
if [ $protocal = "template" ]
then
t1=$(echo $file | awk 'BEGIN {FS = "_"} {print $3}')
t2=$(echo $file | awk 'BEGIN {FS = "_"} {print $4}')
t3=$(echo $fi... |
<reponame>basselhossam/flowchart-designer-and-simulator<filename>Statements/SingleOperator.cpp
#include "SingleOperator.h"
#include <sstream>
using namespace std;
SingleOperator::SingleOperator(ApplicationManager * AM, string txt, Point l_cor, int width, int height, int t_width, int t_height, string LeftHS, stri... |
import {Helper} from "../gear/Helper";
export const pluginName = "gear-scene-status";
const rawParams = Helper.find();
/**
*
* @type {PluginParameters}
*/
export const PARAMS = Helper.parse(rawParams);
export let Alias = {};
export const DIRECTORY = {
status: "menu/status"
};
/**
* the bitmap type
*/
e... |
<reponame>mablack01/CoordinateFinder<filename>src/Direction.java
/**
*
* @author <NAME> (<EMAIL>)
*
*/
public enum Direction {
NORTH(),
EAST(),
SOUTH(),
WEST();
/**
* Calculates the new coordinate direction given a command.
* @param origin The original direction of a coordinate.
* @param turn... |
<gh_stars>100-1000
import { createContext, ReactNode } from 'react';
export interface SVGDefsContextProps {
addDef(id: string, node: ReactNode): void;
removeDef(id: string): void;
}
const SVGDefsContext = createContext<SVGDefsContextProps>(undefined as any);
export default SVGDefsContext;
|
package com.bn.tag;
public class ShuijingThread extends Thread{
GameView gv; //GameView���������
boolean flag; //�߳��Ƿ�ִ�б�־λ //��Ϸ�Ƿ���б�־λ
boolean whileflag=true;
//int sleepSpan = AI_THREAD_SLEEP_SPAN; //��Ϸ����ʱ�߳�ִ��ʱ��
public ShuijingThread(GameView gv){
this.gv = gv;
flag = false;
... |
<filename>core/src/test/java/org/lint/azzert/context/ContextBuilderTest.java
package org.lint.azzert.context;
import org.junit.jupiter.api.Test;
import org.lint.azzert.strategy.framework.JUnit4Strategy;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assert... |
/*
* 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.
*
* Opentap... |
from .wrapper import CSituationView, _BACKGROUND_COLOR |
<reponame>phosphor-icons/phosphr-webcomponents
/* GENERATED FILE */
import { html, svg, define } from "hybrids";
const PhChatCircle = {
color: "currentColor",
size: "1em",
weight: "regular",
mirrored: false,
render: ({ color, size, weight, mirrored }) => html`
<svg
xmlns="http://www.w3.org/2000/svg... |
<gh_stars>0
#include <program.hpp>
namespace gl {
Program::Program() : m_id(glCreateProgram()) {}
Program::Program(const std::set<ShaderPtr>& shaders) : Program() {
for (const auto& shader : shaders) {
attach_shader(shader);
}
link();
}
Program::Program(Program&& other) noexcept : m_id(std::move(other.m_i... |
RAMFS_COPY_BIN='osafeloader oseama otrx truncate'
PART_NAME=firmware
BCM53XX_FW_FORMAT=
BCM53XX_FW_BOARD_ID=
BCM53XX_FW_INT_IMG_FORMAT=
BCM53XX_FW_INT_IMG_TRX_OFFSET=
BCM53XX_FW_INT_IMG_EXTRACT_CMD=
LXL_FLAGS_VENDOR_LUXUL=0x00000001
# $(1): file to read magic from
# $(2): offset in bytes
get_magic_long_at() {
dd i... |
// Tag class to be implemented
public class Tag
{
private Dictionary<string, string> memberDescriptions = new Dictionary<string, string>();
public static Tag Create<T>(string description)
{
// Create a new instance of the Tag class and set the tag description
Tag tag = new Tag();
ta... |
OUT=./gen/go
PROTOS=./protos
# Importing the commons functions
. ./test_commons.sh
gen_go() {
# shellcheck source=src/lib.sh
mkdir -p ${OUT}
rm -rf "${OUT:?}/*"
protoc -I=${PROTOS} --go_out=plugins=grpc:${OUT} ${PROTOS}/*
}
gen_go
check_file "${OUT}/cart.pb.go" "Go" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.