repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
forkunited/ARKWater | src/main/java/ark/cluster/ClustererString.java | package ark.cluster;
import java.util.List;
import ark.data.DataTools;
public abstract class ClustererString extends Clusterer<String> {
protected DataTools.StringTransform cleanFn;
public ClustererString(DataTools.StringTransform cleanFn) {
this.cleanFn = cleanFn;
}
@Override
public List<St... |
pkavumba/arxiv-vanity-restful-api | arxiv_vanity/papers/models.py | <reponame>pkavumba/arxiv-vanity-restful-api
import datetime
import docker.errors
from django.conf import settings
from django.db import models
from django.contrib.postgres.fields import ArrayField, JSONField
from django.core.files.storage import default_storage
from django.urls import reverse
from django.utils import t... |
potherca-contrib/origin-community-cartridges | openshift-origin-cartridge-jbossrhq-4/template/deployments/rhq.ear/rhq-core-domain-ejb3.jar/org/rhq/core/domain/sync/entity/SystemSettings.java | /*
* RHQ Management Platform
* Copyright (C) 2005-2011 Red Hat, Inc.
* All rights reserved.
*
* 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 version 2 of the License.
*
* This program i... |
comprakt/comprakt-fuzz-tests | output/b88694246bd04e2fb37a7a48494bdc2d.java | <gh_stars>0
class Ufl_Z {
public boolean[][][] hWkdGpZX3;
public void[] EzM9cQ55J () throws w {
return -null.gBPE();
return -false[ true.hFm];
int[][] uXk8U1 = new K().ic();
void RZJ0yF9TTBGm = false.HtdMvlliMaMV() = 970942[ new int[ -wvGU[ !!Jaujfzdq6LvQm().RUTkE()]].fo8WuvX(... |
vgmtool/vgm2pre | phoenix/.test/test-layout.cpp | <filename>phoenix/.test/test-layout.cpp<gh_stars>10-100
#include "phoenix.hpp"
using namespace nall;
using namespace phoenix;
struct Application : Window {
VerticalLayout layout;
Button button1;
Button button2;
Button button3;
Application() {
setStatusText("???");
setStatusVisible();
setFrameGe... |
uk-gov-mirror/DFE-Digital.get-help-with-tech | spec/models/allocation_data_file_spec.rb | require 'rails_helper'
RSpec.describe AllocationDataFile, type: :model do
describe '#allocations' do
let(:filename) { Rails.root.join('tmp/allocation_test_data.csv') }
context 'when a school has an allocation entry' do
let(:attrs) do
{
urn: '103001',
school_name: 'Little Sc... |
gavab/Prog2 | gyak/Override.java | <filename>gyak/Override.java
class A{
int i,j;
A(int i, int j){
this.i=i;
this.j=j;
}
void show(){
System.out.println("i=="+i+" j=="+j);
}
}
class B extends A{
int k;
B(int i, int j, int k){
super(i,j);
this.k=k;
}
void show(){
super.show();
System.out.println("k=="+k);
}
}
class Override{... |
santomon/taskonomy | code/tools/train_imagenet.py | <gh_stars>100-1000
'''
Name: extract.py
Desc: Extract losses.
Usage:
python encode_inputs.py /path/to/cfgdir/ --gpu gpu_id
'''
from __future__ import absolute_import, division, print_function
import argparse
import os
import numpy as np
import pdb
import pickle
from runstats import Statistics
import tensor... |
Alexhuszagh/funxx | pycpp/re/new.h | <gh_stars>1-10
// :copyright: (c) 2017 <NAME>.
// :license: MIT, see licenses/mit.md for more details.
/**
* \addtogroup PyCPP
* \brief Specialized memory allocation for RE objects.
*/
#pragma once
#include <pycpp/stl/memory.h>
#include <pycpp/stl/utility.h>
#include <string.h>
PYCPP_BEGIN_NAMESPACE
// FUNCT... |
ipetkowww/java-fundamentals | 10. Text Processing/src/lab_tasks/Lab05_DigitsLettersAndOther.java | <gh_stars>0
package lab_tasks;
import java.util.Scanner;
public class Lab05_DigitsLettersAndOther {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
StringBuilder digits = new StringBuilder();
StringBuilder lett... |
outr/lucene4s | implementation/src/main/scala/com/outr/lucene4s/field/value/support/StringValueSupport.scala | package com.outr.lucene4s.field.value.support
object StringValueSupport extends StringBackedValueSupport[String] {
override def toString(value: String): String = value
override def fromString(s: String): String = s
} |
Mjtlittle/portfolio | src/components/EmailForm/index.js | import React from 'react'
import mailtoLink from 'mailto-link'
import styles from './EmailForm.module.sass'
import { useInputState } from '../../hooks/useInputState'
import { useSiteMetadata } from '../../hooks/useSiteMetadata'
const EmailForm = () => {
const { email } = useSiteMetadata()
const [subject, subje... |
xxm1995/bootx-platform | bootx-services/service-order/src/main/java/cn/bootx/order/core/billing/entity/OrderBilling.java | <gh_stars>1-10
package cn.bootx.order.core.billing.entity;
import cn.bootx.common.core.function.EntityBaseFunction;
import cn.bootx.common.mybatisplus.base.MpBaseEntity;
import cn.bootx.order.core.billing.convert.BillingConvert;
import cn.bootx.order.dto.billing.OrderBillingDto;
import com.baomidou.mybatisplus.annotat... |
DataCanvasIO/StreamTau2 | streamtau_streaming/src/main/java/com/zetyun/streamtau/streaming/StreamBuilder.java | /*
* Copyright 2020 Zetyun
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
perfectrecall/aws-sdk-cpp | aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SendPipelineExecutionStepSuccessRequest.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/SageMakerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
... |
cailean-d/chat-app-server | server/models/friend.js | <filename>server/models/friend.js
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const database = mongoose.connection;
const friendSchema = new Schema({
friend_1: {
type: String,
required: true
},
friend_2: {
type: String,
required: true
},
... |
vvoww/BKCommonLib | src/main/java/com/bergerkiller/bukkit/common/collections/octree/DoubleOctree.java | <reponame>vvoww/BKCommonLib<filename>src/main/java/com/bergerkiller/bukkit/common/collections/octree/DoubleOctree.java
package com.bergerkiller.bukkit.common.collections.octree;
import java.util.AbstractCollection;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.N... |
jkuester/ccl-testing | ccl-maven-plugin/src/main/java/com/cerner/ccl/testing/maven/ccl/util/DelegatingOutputStream.java | package com.cerner.ccl.testing.maven.ccl.util;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
/**
* An {@link OutputStream} that delegates its work to an underlying collection of {@code OutputStrea... |
pyracanda/runtime | src/native/corehost/bundle/manifest.cpp | <reponame>pyracanda/runtime<gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "manifest.h"
using namespace bundle;
manifest_t manifest_t::read(reader_t& reader, const header_t& header)
{
manifest_t mani... |
GhostieSpook/lilianne | web/src/reducers/users.js | import { INITIALIZE, SET_CURRENT_SONG, SET_DJ_ORDER } from '../actions';
export default function users(state = {}, action) {
switch (action.type) {
case INITIALIZE: {
const users = { ...state };
const { history, order, current } = action.payload;
for (const song of history) {
... |
idiomaspuentes/tc-create-app | src/hooks/useStateReducer.js | import { useCallback, useReducer } from 'react';
import { ensureRepo } from 'gitea-react-toolkit';
import { stateReducer } from '../core/state.reducer';
import { saveState } from '../core/persistence';
import defaults from '../core/state.defaults';
export const useStateReducer = ({
authentication,
language,
sou... |
FigueroaR/meetup_mock_web_app | node_modules/yaml/dist/schema/Node.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
class Node {}
exports.default = Node; |
adamdubey/NodeJS30 | day6-array-methods/pop.js | arr = [ 5 , 5 , 8 , 7 , 6 ];
console.log(arr);
arr.pop();
console.log(arr); |
benjmainbit/ECR721 | node_modules/@openzeppelin/hardhat-upgrades/dist/upgrade-proxy.js | <filename>node_modules/@openzeppelin/hardhat-upgrades/dist/upgrade-proxy.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeUpgradeProxy = void 0;
const upgrades_core_1 = require("@openzeppelin/upgrades-core");
const utils_1 = require("./utils");
function makeUpgradeProxy(hre) {... |
qdlxs99/Zabbix4j | src/test/java/com/zabbix4j/lldrule/LLDRuleGetTest.java | <filename>src/test/java/com/zabbix4j/lldrule/LLDRuleGetTest.java
package com.zabbix4j.lldrule;
import com.zabbix4j.ZabbixApiParamter;
import com.zabbix4j.ZabbixApiTestBase;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author <NAME>
*/
public class LLDRuleGetTest extends ZabbixApiTestBase {
... |
mayunSaicmotor/saic-carbondata | core/src/main/java/org/apache/carbondata/core/writer/ThriftWriter.java | /*
* 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 ... |
IamMayankThakur/test-bigdata | adminmgr/media/code/python/red1/BD_152_554_125_reducer.py | #!/usr/bin/python3
import csv
from operator import itemgetter
import sys
#current_count = 0
#current_key = ""
current_key = ""
current_wickets = 0
current_balls = 0
results = []
for line in sys.stdin:
line = line.strip()
line_val = line.split(",")
bat, bowl, wickets, balls = line_val[0], line_val[1], line_val[2], l... |
alirkaya/programming-textbook-solutions | thinkpython_allen_downey/exercise_10_5.py | def chop(t):
del t[0], t[-1]
t = [1,2,3,4,5,6]
print(chop(t))
print(t)
|
dongdong-cloud/dd-cloud | dd-blog/src/main/java/fun/imcoder/cloud/blog/service/ArticleCategoryService.java | <filename>dd-blog/src/main/java/fun/imcoder/cloud/blog/service/ArticleCategoryService.java
package fun.imcoder.cloud.blog.service;
import fun.imcoder.cloud.base.support.BaseService;
import fun.imcoder.cloud.blog.model.ArticleCategory;
public interface ArticleCategoryService extends BaseService<ArticleCategory> {
}
|
codegen-io/gwt-json-overlay | test/src/test/java/test/InheritanceSubA.java | <filename>test/src/test/java/test/InheritanceSubA.java<gh_stars>0
package test;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonTypeName("a")
public interface InheritanceSubA extends InheritanceSuper {
String getA();
}
|
xbai0624/MPD_GEM_View_SSP | gem/include/GEMRootHitTree.h | #ifndef GEM_ROOT_HIT_TREE_H
#define GEM_ROOT_HIT_TREE_H
#include <TTree.h>
#include <TFile.h>
#include "GEMStruct.h"
#include "GEMSystem.h"
////////////////////////////////////////////////////////////////////////////////
// save replayed evio files to root tree
#define MAXHITS 20000
class GEMRootHitTree
{
public:
... |
MonsterENT/EiRas | EiRas/Framework/EiRas/PlatformDependency/OnMetal/Material/GraphicsResourceHeapMetal.h | //
// GraphicsResourceHeapMetal.h
// EiRasMetalBuild
//
// Created by MonsterENT on 12/8/19.
// Copyright © 2019 MonsterENT. All rights reserved.
//
#import "BaseMetalObject.h"
#include <Material/MaterialLayout.hpp>
using namespace MaterialSys;
@interface GraphicsResourceHeapMetal : BaseMetalObject
-(instancety... |
re3turn/twitter-crawling | api/src/models/__init__.py | from . import entity
|
jiadaizhao/LeetCode | 0101-0200/0186-Reverse Words in a String II/0186-Reverse Words in a String II.py | <filename>0101-0200/0186-Reverse Words in a String II/0186-Reverse Words in a String II.py
class Solution:
def reverseWords(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
def reverseStr(s, start, end):
while start < end:
... |
gurfinkel/codeSignal | tournaments/isCorrectSentence/isCorrectSentence.cpp | bool isCorrectSentence(std::string inputString) {
char leadChar = inputString[0],
endChar = inputString[inputString.size() - 1];
if ('A' <= leadChar && leadChar <= 'Z'
&& endChar == '.') {
return true;
}
else {
return false;
}
}
|
stefpetrov/Software-University | First Steps in Coding/zoomagazin.js | function zooshop(input) {
let dogFood =(input[0] * 2.5);
let catFood =(input[1] * 4);
let totalAmount = dogFood + catFood;
console.log(`${totalAmount} lv.`)
}
zooshop(["5", "4"])
|
Siceron/TFEScheduler | src/main/java/objects/TFE.java | <filename>src/main/java/objects/TFE.java<gh_stars>0
package objects;
import java.util.ArrayList;
import java.util.List;
public class TFE {
private String code;
private List<Person> students;
private List<Jury> advisors;
private List<Jury> readers;
private int fixedSession;
private int bannedSession;
public... |
george-jipa/time-series-math | src/test/java/ro/hasna/ts/math/ml/distance/PlaaEuclideanDistanceTest.java | /*
* Copyright 2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
HMS-Core/hms-ecommerce-demo | app/src/main/java/com/huawei/industrydemo/shopping/page/SplashActivity.java | <gh_stars>10-100
/*
Copyright 2020-2021. Huawei Technologies Co., Ltd. All rights reserved.
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/LICENS... |
tucci-lee/tucci-sso | sso-server/src/main/java/cn/tucci/sso/server/core/support/TokenCodec.java | <filename>sso-server/src/main/java/cn/tucci/sso/server/core/support/TokenCodec.java
package cn.tucci.sso.server.core.support;
/**
* token编解码器
*
* @author tucci.lee
*/
public interface TokenCodec {
/**
* 加密token
*
* @param uid uid
* @return token
*/
String encode(Long uid);
/... |
sohaibiftikhar/cluster-broccoli | server/src/main/scala/de/frosner/broccoli/nomad/models/WithId.scala | package de.frosner.broccoli.nomad.models
/**
* Attaches a nomad ID to arbitrary payload.
*
* @param jobId The nomad ID
* @param payload The payload
* @tparam T The type of the paylo
*/
final case class WithId[T](jobId: String, payload: T)
|
fduminy/intellij-community | java/java-tests/testSrc/com/intellij/projectView/ProjectViewUpdatingTest.java | /*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.intellij.projectView;
import com.intellij.ide.projectView.PresentationData;
import com.intellij.ide.projectView.TreeStructureProvider;
import com.intellij.ide.... |
barboras7/drools | drools-core/src/main/java/org/drools/core/command/SetVariableCommandFromLastReturn.java | <reponame>barboras7/drools
/*
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* 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
... |
xinbaojian/demo-template | manage-websocket/src/main/java/com/qitech/websocket/controller/WebSocketController.java | package com.qitech.websocket.controller;
import com.qitech.constant.UrlConstants;
import com.qitech.websocket.endpoint.PublishService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http... |
divenswu/proximabilin | src/repository/binlog/table_reader.cc | /**
* Copyright 2021 Alibaba, Inc. and its affiliates. All Rights Reserved.
*
* 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... |
wwkenwong/piecewise | src/glibc-2.23/sysdeps/unix/bsd/bsd4.4/kfreebsd/setrlimit64.c | /* 'setrlimit64' is the same as 'setrlimit', because __rlim64_t == __rlim_t. */
|
fjpavm/ChilliSource | Projects/Tools/PNGAlphaPremultiplier/src/com/chilliworks/chillisource/pngalphapremultiplier/PngPremultiplier.java | <reponame>fjpavm/ChilliSource
/**
* PngPremultiplier.java
* Chilli Source
* Created by <NAME> on 30/01/2013.
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Tag Games Limited
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation fi... |
cheshire137/hue-steamer | app.js | <filename>app.js
var hue = require('node-hue-api'),
// Converter = require('./converter'),
HueApi = hue.HueApi,
lightState = hue.lightState,
bridgeIP, username;
var argCount = process.argv.length;
for (var i = 0; i < argCount; i++) {
var arg = process.argv[i];
if (arg === '-b' && i + 1 < argCount) ... |
klinker24/Android-SlidingMessaging | src/main/java/com/klinker/android/messaging_donate/floating_notifications/EmojiDialogActivity.java | <reponame>klinker24/Android-SlidingMessaging
package com.klinker.android.messaging_donate.floating_notifications;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
... |
sky5454/30daysMakeOS-Origin-ISOfiles | 30days-Origin-ISOfiles/omake/tolsrc/go_0023s/gcc/insn-flags.h | <gh_stars>10-100
/* Generated automatically by the program `genflags'
from the machine description file `md'. */
#ifndef GCC_INSN_FLAGS_H
#define GCC_INSN_FLAGS_H
#define HAVE_cmpdi_ccno_1_rex64 (TARGET_64BIT && ix86_match_ccmode (insn, CCNOmode))
#define HAVE_cmpdi_1_insn_rex64 (TARGET_64BIT && ix86_match... |
BuckWang0509/codeforces-go | main/1600-1699/1620A_test.go | <reponame>BuckWang0509/codeforces-go
package main
import (
"github.com/EndlessCheng/codeforces-go/main/testutil"
"testing"
)
// http://codeforces.com/problemset/problem/1620/A
// https://codeforces.com/problemset/status/1620/problem/A
func TestCF1620A(t *testing.T) {
// just copy from website
rawText := `
inputCo... |
reneelpetit/codestream-server | inbound_email/test/test.js | // unit tests concerning the inbound email server
'use strict';
const InboundEmailServerConfig = require(process.env.CSSVC_BACKEND_ROOT + '/inbound_email/config/config');
const EmailTest = require('./email_test');
const Async = require('async');
const EmailTests = require('./email_tests');
var Config;
// make eslin... |
datavetaren/epilog | src/common/garbage_collector.hpp | #pragma once
#ifndef _common_garbage_collector_hpp
#define _common_garbage_collector_hpp
#include <bitset>
#include <vector>
#include <map>
namespace epilog { namespace common {
class garbage_collector {
public:
garbage_collector(heap &h) : heap_(h) {};
// Garbage collects and returns number of collected bytes.... |
RachelleH/-hmcts-ia-case-documents-api | src/main/java/uk/gov/hmcts/reform/iacasedocumentsapi/domain/DateProvider.java | <gh_stars>1-10
package uk.gov.hmcts.reform.iacasedocumentsapi.domain;
import java.time.LocalDate;
import java.time.LocalDateTime;
public interface DateProvider {
LocalDate now();
LocalDateTime nowWithTime();
}
|
cindy1764/pouch | apis/types/image_info.go | <reponame>cindy1764/pouch
// Code generated by go-swagger; DO NOT EDIT.
package types
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-o... |
gavin2lee/incubator-gl | mnis/core/src/main/java/com/lachesis/mnis/core/sysDic/entity/repository/SysDicRepository.java | package com.lachesis.mnis.core.sysDic.entity.repository;
import java.util.List;
import com.lachesis.mnis.core.sysDic.entity.SysDic;
public interface SysDicRepository {
int save(SysDic record);
List<SysDic> queryAll();
List<String> queryDicTypes();
}
|
Syncena/Maven-firmware | src/cortexm/cortexm.h | /*
* Copyright (c) 2022, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
longuyen1/maven | maven-core/src/main/java/org/apache/maven/plugin/PluginContainerException.java | package org.apache.maven.plugin;
/*
* 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, Ve... |
hoantran-it/Utility-Library | utility-library/src/main/java/com/github/hoantran/lib/utility/query/RestParams.java | <reponame>hoantran-it/Utility-Library<gh_stars>1-10
/**
* Created by <NAME> @ http://hoantran-it.blogspot.com
*
* Any modifications to this file must keep this entire header intact.
*
*/
package com.github.hoantran.lib.utility.query;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import ... |
yz0426/yangyu | yangyu-1-api/src/main/java/com/yangyu/fallback/IRoleFallback.java | package com.yangyu.fallback;
import com.yangyu.api.RoleApi;
import com.yangyu.user.api.vo.RoleVo;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public class IRoleFallback implements FallbackFactory<RoleApi> {
@Override
public RoleApi ... |
ExpressAI/DataLab | datasets/sdqa/sdqa.py | # coding=utf-8
# Copyright 2022 The TensorFlow datasets Authors and the HuggingFace datasets, DataLab 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/li... |
xuzhikethinker/t4f-data | structure/core/src/main/java/aos/data/structure/CircularListIterator.java | /****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... |
echo80313/grpc | src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h | /* This file was generated by upbc (the upb compiler) from the input
* file:
*
* envoy/service/load_stats/v3/lrs.proto
*
* Do not edit -- your changes will be discarded when the file is
* regenerated. */
#ifndef ENVOY_SERVICE_LOAD_STATS_V3_LRS_PROTO_UPB_H_
#define ENVOY_SERVICE_LOAD_STATS_V3_LRS_PROTO_UPB_H_... |
Gaia3D/F4DConverter | F4DConverter/converter/util/utility.h | #pragma once
#include <vector>
#define M_PI 3.14159265358979323846
namespace gaia3d
{
class GeometryUtility
{
public:
///< 점 3개로 이루어진 평면의 normal vector를 계산
static void calculatePlaneNormal(double& x0, double& y0, double& z0,
double& x1, double& y1, double& z1,
double& x2, double& y2, doub... |
altshiftcreative/checkout-sdk-java | src/main/java/com/checkout/workflows/four/conditions/response/EntityWorkflowConditionResponse.java | package com.checkout.workflows.four.conditions.response;
import com.checkout.workflows.four.conditions.WorkflowConditionType;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@ToString(call... |
ckamtsikis/cmssw | PhysicsTools/TagAndProbe/test/utilities/RooPowLaw.cxx | <reponame>ckamtsikis/cmssw
/*****************************************************************************
* Project: RooFit *
* *
* Copyright (c) 2000-2005, Regents of the Univer... |
leewcc/gduthacker | src/com/hackerspace/model/ClassroomApply.java | package com.hackerspace.model;
import java.sql.Date;
import java.sql.Timestamp;
import java.text.ParseException;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.... |
Brimes7/Synaps-FE | src/components/Uploader/Uploader.js | import React, {useEffect, useState} from 'react';
import styled from 'styled-components';
import {message, Upload} from 'antd';
import {uploadImage} from '../../actions/photo';
import {UploadIcon} from './UploadIcon.js';
import * as PropTypes from 'prop-types';
import {useAppHooks} from '../../customHooks/useAppHooks.j... |
iansjk/akdata | _docs/test.js | <reponame>iansjk/akdata
// UA test
let ua = navigator.userAgent;
document.getElementById("user_agent").innerText = ua;
$("#jquery").text($.fn.jquery);
$("#vue").html("Vue: {{ error }} <br> <div v-html='content' class='row'></div> <br> {{ char }}");
let vue_app = new Vue({
el: "#vue",
data: { error: Vue.version, c... |
sechel/jtem-halfedgetools | src/de/jtem/halfedgetools/plugin/image/ImageHook.java | package de.jtem.halfedgetools.plugin.image;
import static java.awt.Image.SCALE_SMOOTH;
import static java.awt.image.BufferedImage.TYPE_INT_ARGB;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Logg... |
GrowMoi/haedus | app/controllers/api/users/storages_controller.rb | <filename>app/controllers/api/users/storages_controller.rb
module Api
module Users
class StoragesController < BaseController
before_action :authenticate_user!
respond_to :json
api :PUT,
"/users/storages",
"update user data"
param :frontendValues, String, required: true, d... |
abfeldman/lydia | tools/cnf2dimacs/pp.c | #include <assert.h>
#include <string.h>
#include "pp_variable.h"
#include "tv.h"
static void pp_clause_list(FILE *fp, const_tv_clause_list clauses, const_variable_list variables)
{
unsigned int ix, iy;
for (ix = 0; ix < variables->sz; ix++) {
fprintf(fp, "c variable %d: ", ix + 1);
pp_variable... |
ZhouGuixin/CicadaPlayer | framework/base/media/PBAFFrame.cpp | //
// Created by moqi on 2019-08-28.
//
#include "PBAFFrame.h"
extern "C" {
#include <libavutil/frame.h>
#include <libavutil/imgutils.h>
}
PBAFFrame::operator AVAFFrame *()
{
CVReturn err;
uint8_t *data[4] = {nullptr};
int linesize[4] = {0};
int planes, ret, i;
OSType pixel_format = CVPixelBufferG... |
oldDing666/BiShiLianXi | src/JZOffer_v1/T_14_1.java | <filename>src/JZOffer_v1/T_14_1.java
package JZOffer_v1;
/**
* @author: afuya
* @program: BiShiLianXi
* @date: 2021/9/15 4:19 下午
*/
public class T_14_1 {
public int cuttingRope(int n) {
if (n == 2)
return 1;
else if (n == 3)
return 2;
int n1 = n % 3;
int ... |
svvsdIC/Poseidon-raspberryPi | src/plugins/input-configurator/public/js/input-configurator-widgets-autodiscovery.js | /*
Running this within a function prevents leaking variables
in to the global namespace.
*/
(function(window) {
'use strict';
var widgets = namespace('widgets');
widgets['orov-input-configurator'] = {
name:'orov-input-configurator',
defaultUISymantic: 'multipurpose-display',
url: 'input-co... |
codejyhuang/huang | hrym-app/hrym-app-dao/src/main/java/com/hrym/rpc/auth/dao/mapper/lesson/TaskAreaLessonMapper.java | package com.hrym.rpc.auth.dao.mapper.lesson;
import com.hrym.common.annotation.DataSource;
import com.hrym.rpc.app.dao.model.VO.lessonVO.TaskAreaLessonVO;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* Created by hrym13 on 2018/6/25.
* 推荐功课
*/
public interface TaskAreaLessonMapper {
... |
Chronotron/chaos-beast | CS219/src/PolyMorphismDiscussion.java | import java.util.ArrayList;
/***************************************************
* PolymorphismDiscussion.java
* <NAME>
* <p>
* Demonstrates the concept of Polymorphism
****************************************************/
public class PolyMorphismDiscussion {
public static void main(String[] args) {
... |
insertish/ppa-cw3 | src/main/java/gay/oss/cw3/renderer/shaders/LevelOfDetail.java | <reponame>insertish/ppa-cw3<filename>src/main/java/gay/oss/cw3/renderer/shaders/LevelOfDetail.java
package gay.oss.cw3.renderer.shaders;
/**
* Enumeration representing the level of detail to render a model at.
*
* @author <NAME> (K21002534)
* @author <NAME> (K21003008)
*/
public enum LevelOfDetail {
High(20)... |
guozimao/maoziguo-system | ruoyi-system/src/main/java/com/ruoyi/groupcompany/service/impl/DtBusinessTaskServiceImpl.java | <filename>ruoyi-system/src/main/java/com/ruoyi/groupcompany/service/impl/DtBusinessTaskServiceImpl.java<gh_stars>1-10
package com.ruoyi.groupcompany.service.impl;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.*;
import com.ruoyi.businessteam.domain.MerchantShopRelation;
import com.r... |
baderzone/biopartsdb | test/unit/helpers/pcr_gel_image_annotations_helper_test.rb | <gh_stars>1-10
require 'test_helper'
class PcrGelImageAnnotationsHelperTest < ActionView::TestCase
end
|
MaximeBaudette/PyCIM | CIM15/IEC61970/Informative/InfCommon/Bank.py | <reponame>MaximeBaudette/PyCIM
# Copyright (C) 2010-2011 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, ... |
Ubpa/DustEngine | include/Utopia/Core/Components/WorldTime.h | #pragma once
namespace Ubpa::Utopia {
// singleton
struct WorldTime {
double elapsedTime; // in seconds
float deltaTime; // in seconds
};
}
|
taegyunkim/front-end | rewriting/src/test/scala/org/opencypher/v9_0/rewriting/ReplaceLiteralDynamicPropertyLookupsTest.scala | /*
* Copyright (c) Neo4j Sweden AB (http://neo4j.com)
*
* 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 applic... |
abdelillah-tech/ui | packages/components/src/ObjectViewer/Table/Table.component.js | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import union from 'lodash/union';
import toFlat from '../toflat';
import JSONLike from '../JSONLike';
import theme from './Table.scss';
/**
* @param {Object} data
* @param {Bool} isFlat
* @return {Array<String>}
*/... |
syoyo/lucille | src/render/shader.c | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
/* for performance analizer */
#if defined(__APPLE__) && defined(__MACH__)
//#include <ppc_intrinsics.h>
#endif
#include "vector.h"
#include "shader.h"
#include "raytrace.h... |
EthanGrahn/geo-data-portal | gdp-common-utilities/src/main/java/gov/usgs/cida/gdp/urs/URSLoginProvider.java | package gov.usgs.cida.gdp.urs;
import gov.usgs.cida.gdp.constants.AppConstant;
import gov.usgs.cida.proxy.registration.HttpLoginProvider;
import java.io.IOException;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
... |
zjxkenshine/codedemo | springboot-demo/springbootdemo06-SQL/src/main/java/com/kenshine/jdbc/service/impl/UserServiceImpl.java | <gh_stars>1-10
package com.kenshine.jdbc.service.impl;
import com.kenshine.jdbc.dao.IUserDao;
import com.kenshine.jdbc.domain.User;
import com.kenshine.jdbc.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
... |
sarang-apps/darshan_browser | fuchsia/engine/common/web_engine_content_client.cc | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fuchsia/engine/common/web_engine_content_client.h"
#include "base/command_line.h"
#include "fuchsia/base/fuchsia_dir_scheme.h"
#include "fuchsi... |
StudyNoteOfTu/manlife | app/src/main/java/com/example/tufengyi/manlife/utils/tools/ObjectsAdapter.java | package com.example.tufengyi.manlife.utils.tools;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.tuf... |
Sledro/College-Programs | Year-2/Java/Object Oriented Programs/AssessOne/src/Product.java | <filename>Year-2/Java/Object Oriented Programs/AssessOne/src/Product.java
/*
@author <NAME>
Student Number: C00137009
Date: November '15
Purpose: Assessemnt One
*/
public abstract class Product {
//Start variables
private int productID;
private String productName;
private String productDescription;
@Sup... |
yingyingtang-brex/go-server-sdk | internal/datastore/data_store_eval_impl.go | package datastore
import (
"gopkg.in/launchdarkly/go-sdk-common.v2/ldlog"
ldeval "gopkg.in/launchdarkly/go-server-sdk-evaluation.v1"
"gopkg.in/launchdarkly/go-server-sdk-evaluation.v1/ldmodel"
"gopkg.in/launchdarkly/go-server-sdk.v5/interfaces"
"gopkg.in/launchdarkly/go-server-sdk.v5/internal/datakinds"
)
type d... |
ShaderKitty/geodesuka | inc/geodesuka/core/math.h | <reponame>ShaderKitty/geodesuka
#pragma once
#ifndef GEODESUKA_CORE_MATH_H
#define GEODESUKA_CORE_MATH_H
/*\\ ---------------------------------------- gclm.h ---------------------------------------- \\//
Vector Notation:
Vectors are to be treated as column vectors, but there is flexibility in left multiplication
wh... |
phantomjinx/modeshape | integration/modeshape-jbossas-integration-tests/src/test/java/org/modeshape/test/integration/JdbcDriverIntegrationTest.java | <reponame>phantomjinx/modeshape
/*
* ModeShape (http://www.modeshape.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.apache.org/licenses/LICENSE-2.0
*
* Unl... |
Ricky-Nz/knocknock-web | src/utils.js | <gh_stars>1-10
import Relay from 'react-relay';
export const preparePageParams = ({query}) => {
if (query.first) {
return {
first: parseInt(query.first||5),
after: query.after||null,
search: query.search||null
};
} else {
return {
last: parseInt(query.last||5),
before: query.before||null,
sea... |
1056215801/-MITC-YING_TAN | modules/MIT-Cloud/MIT-Cloud-server/src/main/java/com/mit/cloud/service/TestBookService.java | package com.mit.cloud.service;
import com.baomidou.mybatisplus.plugins.Page;
import com.mit.cloud.dao.TestBookMapper;
import com.mit.cloud.model.TestBook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 测试Service
*
* @author shuyy
* @date 2018/11... |
Chulei799/work | src/main/java/com/qaprosoft/carina/work/mobile/gui/pages/common/AddMealPageBase.java | package com.qaprosoft.carina.work.mobile.gui.pages.common;
import com.qaprosoft.carina.core.gui.AbstractPage;
import com.qaprosoft.carina.work.mobile.gui.pages.constants.IConstants;
import org.openqa.selenium.WebDriver;
public abstract class AddMealPageBase extends AbstractPage implements IConstants {
public Add... |
liuyahui0519/iBase4J | iBase4J-SYS-Service/src/main/java/org/ibase4j/core/listener/SysServerListener.java | <gh_stars>0
package org.ibase4j.core.listener;
import javax.servlet.ServletContextEvent;
import org.ibase4j.service.ISysCacheService;
import org.ibase4j.service.ISysDicService;
import org.ibase4j.service.ISysUserService;
import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.WebA... |
cirope/mawidabp | app/controllers/conclusion_draft_reviews_controller.rb | <gh_stars>1-10
class ConclusionDraftReviewsController < ApplicationController
before_action :auth, :load_privileges, :check_privileges
before_action :set_conclusion_draft_review, only: [
:show, :edit, :update, :export_to_pdf, :export_to_rtf,
:score_sheet, :download_work_papers, :create_bundle,
:compose... |
liambaloh/OpenEOB | Assets/StreamingAssets/tgui/packages/tgui/interfaces/AtmosMixer.js | import { useBackend } from '../backend';
import { Button, LabeledList, NumberInput, Section } from '../components';
import { Window } from '../layouts';
export const AtmosMixer = (props, context) => {
const { act, data } = useBackend(context);
return (
<Window>
<Window.Content>
<Section>
... |
Neusoft-Technology-Solutions/aws-sdk-cpp | aws-cpp-sdk-mq/include/aws/mq/model/ListConfigurationRevisionsRequest.h | <filename>aws-cpp-sdk-mq/include/aws/mq/model/ListConfigurationRevisionsRequest.h<gh_stars>0
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mq/MQ_EXPORTS.h>
#include <aws/mq/MQRequest.h>
#include <aws/core/utils/memory/s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.