repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Sanbingduizhang/blog
node_modules/pickadate/builds/translations/de_DE.js
/* pickadate v5.0.0-alpha.3, @license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, (global.pickadate = global.pickadate || {}, global.pickada...
KTH/aspen
modules/util/environment.py
"""environment.py Helper module and data definition names for the os environment""" __author__ = '<EMAIL>' import os import root_path from modules.util import data_defs # REQUIRED REGISTRY_SUB_DIRECTORY = 'REGISTRY_SUB_DIRECTORY' REGISTRY_REPOSITORY_URL = 'REGISTRY_REPOSITORY_URL' CLUSTERS_TO_DEPLOY = 'CLUSTERS_TO_...
Const-me/vis_avs_dx
avs_dx/DxVisuals/Utils/DirectXErrors/DirectXErrors.h
<filename>avs_dx/DxVisuals/Utils/DirectXErrors/DirectXErrors.h #pragma once // Get error description from HRESULT code, e.g. "The caller did not supply a sufficiently large buffer." Returns nullptr for unknown codes. The data doesn't include Win32 errors, FormatMessage API already knows them. const char* getDxErrorDes...
bobheadlabs/sourcegraph
internal/search/result/commit_json_test.go
<reponame>bobheadlabs/sourcegraph<filename>internal/search/result/commit_json_test.go package result import ( "encoding/json" "testing" "time" "github.com/stretchr/testify/require" "github.com/sourcegraph/sourcegraph/internal/api" "github.com/sourcegraph/sourcegraph/internal/gitserver/gitdomain" "github.com/s...
quidphp/front
js/include/validate.js
<gh_stars>1-10 /* * This file is part of the QuidPHP package <https://quidphp.com> * Author: <NAME> <<EMAIL>> * License: https://github.com/quidphp/front/blob/master/LICENSE */ // validate // script with behaviours related to validation const Validate = Quid.Validate = { // isNumericDash // retourne ...
maxml/NodeLearning
ex_require/cycle/index.js
console.log('main starting'); const a = require('./first'); const b = require('./second'); console.log('in main, a.done = %j, b.done = %j', a.done, b.done); // console.log(require('../module').rand)
Ellis0817/Introduction-to-Programming-Using-Python
tests/test.py
"""Pytest檢查.""" # test_show.py import pytest def test_sample1(): """測試1.""" assert True def test_sample2(): """測試2.""" assert [1, 2, 3] != [3, 2, 1] @pytest.mark.xfail() def test_sample3(): """測試3.""" assert False @pytest.mark.xfail() def test_sample4(): """測試4.""" assert True
lolengine/lolengine
src/t/test-common.cpp
// // Lol Engine — Unit tests // // Copyright © 2010—2020 <NAME> <<EMAIL>> // // Lol Engine is free software. It comes without any warranty, to // the extent permitted by applicable law. You can redistribute it // and/or modify it under the terms of the Do What the Fuck You Want // to Public License, Version 2, a...
animatedmax/bookbinder
spec/lib/bookwatch/subnav/subnav_generator_spec.rb
<reponame>animatedmax/bookbinder<gh_stars>0 require_relative '../../../../lib/bookwatch/subnav/subnav_generator' require_relative '../../../../lib/bookwatch/subnav/navigation_entries_from_html_toc' require_relative '../../../../lib/bookwatch/subnav/template_creator' require_relative '../../../../lib/bookwatch/subnav/pd...
pdpdds/SDLGameProgramming
sdl2/openblock/src/system/Window.h
#pragma once #include "Event.h" #include "InputMap.h" #include <memory> #include <string> #include <vector> class AudioContext; class GraphicsContext; /// The Window represents the game window, and it is the interface between /// the native operating system and hardware. It provides a way to draw on /// the scree...
yakuizhao/intel-vaapi-driver
android/android_9/hardware/intel/img/hwcomposer/merrifield/ips/common/PrepareListener.cpp
/* // Copyright (c) 2014 Intel Corporation  // // 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 o...
mhoran/ssoca
auth/authn/github/service.go
package github type Service struct{} func (Service) Type() string { return "github_authn" } func (Service) Version() string { return "0.1.0" }
Exiro1/Master-O-fOlympus-Java-Remake
src/com/exiro/terrainList/WaterCoast.java
<gh_stars>1-10 package com.exiro.terrainList; import com.exiro.object.Case; import com.exiro.object.City; import com.exiro.object.ObjectType; import com.exiro.sprite.Direction; import java.util.ArrayList; public class WaterCoast extends Terrain { boolean angle; Direction direction; int number; pub...
CnybTseng/JDE
mot/models/heads/__init__.py
<reponame>CnybTseng/JDE from .jde import JDEHead
michaelkantor/wavemaker
wavemaker/wavemaker-studio/src/main/webapp/pages/NewLiveFormDialog/NewLiveFormDialog.js
<reponame>michaelkantor/wavemaker /* * Copyright (C) 2010-2013 VMware, Inc. 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/...
flip4dev/ebay
lib/ebay/responses/get_picture_manager_options.rb
require 'ebay/types/picture_manager_subscription' require 'ebay/types/picture_manager_picture_display' module Ebay # :nodoc: module Responses # :nodoc: # == Attributes # array_node :subscriptions, 'Subscription', :class => PictureManagerSubscription, :default_value => [] # array_node :picture_types, 'P...
thufv/mastery
sample/examples_survey/right2.java
<reponame>thufv/mastery<filename>sample/examples_survey/right2.java class TempBuilder { void createParameters() { map.put("h", new C(5, 50)); } }
MacroLau/quiche
gquiche/quic/platform/api/quic_bug_tracker.h
// Copyright (c) 2016 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. #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_BUG_TRACKER_H_ #define QUICHE_QUIC_PLATFORM_API_QUIC_BUG_TRACKER_H_ #include "platform/quic_platform_impl/quic_...
chandthash/nppy
Project Pattern/pattern_37.py
def pattern_thirty_seven(): '''Pattern thirty_seven 1 2 3 4 5 2 5 3 5 4 5 5 ''' num = '12345' for i in range(1, 6): if i == 1: print(' '.join(num)) elif i in range(2, 5): space = -2 * i + 9 # using -2*n + 9 for ge...
anthonyf996/ChessApp
src/Model/MetaCommand.py
class MetaCommand: def __init__(self, commands): self.commands = commands def execute(self): raise NotImplementedError def undo(self): raise NotImplementedError
Rja-0/appstatus
appstatus-web/src/main/java/net/sf/appstatus/web/pages/LoggersPage.java
<filename>appstatus-web/src/main/java/net/sf/appstatus/web/pages/LoggersPage.java<gh_stars>10-100 /* * Copyright 2010-2013 Capgemini 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:...
larkov/MailTrackerBlocker
MailHeaders/Catalina/MailUI/_SuggestionsBannerView.h
// // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 <NAME>. // #import <AppKit/NSVisualEffectView.h> @class SGBanner; @interface _SuggestionsBannerView : NSVisualEffectView { SGBanner *_banner; // 112 = 0x70 } @property(retain, nonatomic...
matthew-macgregor/blitzplus_msvc2019
win32gui/win32tabber.h
<reponame>matthew-macgregor/blitzplus_msvc2019 #ifndef WIN32TABBER_H #define WIN32TABBER_H #include "../gui/tabber.h" #include "win32gadget.h" class Win32Tabber : public BBTabber,public Win32WndProc{ Win32Gadget _tabber; Win32Gadget _client; int updateSelected(); protected: ~Win32Tabber(); public: Win32Tabber...
backwards-rat-race/jOOQ
jOOQ-meta/src/main/java/org/jooq/meta/h2/information_schema/tables/FunctionAliases.java
/* * This file is generated by jOOQ. */ package org.jooq.meta.h2.information_schema.tables; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Name; import org.jooq.Record; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; import org.jooq.impl.D...
folio-org/ui-invoice
src/invoices/InvoiceDetails/Information/Information.js
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { isNumber } from 'lodash'; import { Col, KeyValue, Row, } from '@folio/stripes/components'; import { ViewMetaData } from '@folio/stripes/smart-components'; import { AcqUnitsView, AmountWithCu...
stevejay/artfullylondon-api
event-service/src/event-service/index.js
<reponame>stevejay/artfullylondon-api import * as eventRepository from "../persistence/event-repository"; import * as normaliser from "./normaliser"; import * as validator from "./validator"; import * as mapper from "./mapper"; import * as notifier from "../notifier"; export async function get(params, options) { con...
OmniPico/PicoItemLib
work/decompile-b94c4521/net/minecraft/server/BlockWeepingVinesPlant.java
<filename>work/decompile-b94c4521/net/minecraft/server/BlockWeepingVinesPlant.java package net.minecraft.server; public class BlockWeepingVinesPlant extends BlockGrowingStem { public static final VoxelShape d = Block.a(1.0D, 0.0D, 1.0D, 15.0D, 16.0D, 15.0D); public BlockWeepingVinesPlant(BlockBase.Info block...
ToonTalk/behaviour-composer
BC/src/uk/ac/lkl/server/persistent/NetLogoNameSerialNumber.java
<reponame>ToonTalk/behaviour-composer /** * */ package uk.ac.lkl.server.persistent; // import javax.persistence.Id; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Cached; /** * Maintains the largest serial number assigned to * a NetLogo procedure name * * @author <N...
BatsResearch/taglets
taglets/pipeline/end_model.py
<reponame>BatsResearch/taglets<filename>taglets/pipeline/end_model.py<gh_stars>10-100 from .taglet import ImageTrainable, VideoTrainable import logging import os import torch import numpy as np log = logging.getLogger(__name__) class EndModelMixin(): def __init__(self, task): super().__init__(task) ...
HisenZhang/RM2019SummerCamp
RCBigAlgo/catkin_ws/src/rcbigalgo/include/mechanical_executer.h
<gh_stars>10-100 #ifndef MECHANICAL_EXECUTER_H #define MECHANICAL_EXECUTER_H #include <ros/ros.h> #include <std_msgs/Float64MultiArray.h> namespace MechanicalExecuter { const double ANGULAR_TOLERANCE = 5.0 / 180.0 * M_PI; //rad enum ActionType { ACTION_NONE, ACTION_SERVO, ACTION_MOTO...
seckcoder/lang-learn
python/thrift/gen-cpp/case_types.cpp
<reponame>seckcoder/lang-learn<gh_stars>1-10 /** * Autogenerated by Thrift Compiler (0.9.0-dev) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #include "case_types.h" #include <algorithm> const char* TestCase::ascii_fingerprint = "37B2446DC377ADEFEF2182DF53458E87"; const ...
BVier/Taskana
history/taskana-simplehistory-rest-spring/src/main/java/pro/taskana/rest/resource/TaskHistoryEventAssembler.java
<filename>history/taskana-simplehistory-rest-spring/src/main/java/pro/taskana/rest/resource/TaskHistoryEventAssembler.java package pro.taskana.rest.resource; import org.springframework.beans.BeanUtils; import org.springframework.hateoas.mvc.ResourceAssemblerSupport; import pro.taskana.history.api.TaskanaHistoryEvent;...
sabertazimi/hust-lab
operatingSystems/hust-final/proj1_2/cpuwindow.cpp
<reponame>sabertazimi/hust-lab #include <QString> #include <QTimer> #include <cstdio> #include <unistd.h> #include "cpuwindow.h" using namespace std; CPUWindow::CPUWindow(QWidget *parent) : QMainWindow(parent) { move(QPoint(600, 300)); label = new QLabel(this); label->setText("CPU Usage = 0%"); label-...
mmattamala/gtsam.org
doxygen/a02788.js
var a02788 = [ [ "Base", "a02788.html#a8014b64b6ca21e950abfd4666ff81ed0", null ], [ "BaseEliminateable", "a02788.html#aa8426d72a4ee49cdea4c01dd04bfb412", null ], [ "Indices", "a02788.html#a2e98a123ffbf71a3ad7d5070c458e227", null ], [ "shared_ptr", "a02788.html#a4a38a0fa8aea06ee7fa1d9dceab25387", null ],...
Gridelen/cpp-prog-lang-ex
12_Funcs/Ex/1/Source.cpp
/* [1] (*1) Write declarations for the following: a function taking arguments of type pointer to character and reference to integer and returning no value; a pointer to such a function; a function taking such a pointer as an argument; and a function returning such a pointer. Write the definition of a function that take...
JulKaltenegger/ROTUNDORO-
src/components/ProjectSelection/CardGrid.js
import React from "react"; import { Grid } from "@material-ui/core"; import ProjectCard from "./ProjectCard"; import { makeStyles } from "@material-ui/core/styles"; const useStyles = makeStyles((theme) => ({ root: { flexGrow: 1, }, })); const CardGrid = (props) => { const classes = useStyles(); return ( ...
VivekMaran27/How-to-install-SimpleScalar-on-Ubuntu
build/glibc-1.09/stdio/psignal.c
<reponame>VivekMaran27/How-to-install-SimpleScalar-on-Ubuntu<filename>build/glibc-1.09/stdio/psignal.c /* Copyright (C) 1991, 1992 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Gener...
Amatofrancesco99/Progetto-F21
src/main/java/cinema/model/persistence/dao/interfaces/IDiscountDao.java
<reponame>Amatofrancesco99/Progetto-F21 package cinema.model.persistence.dao.interfaces; import java.sql.SQLException; import cinema.model.reservation.discount.types.DiscountAge; import cinema.model.reservation.discount.types.DiscountDay; import cinema.model.reservation.discount.types.DiscountNumberSpectators; /** ...
SebGrenier/OpenCLFilterPipeline
OpenCLFilterPipeline/Camera.cpp
<reponame>SebGrenier/OpenCLFilterPipeline #include "Camera.h" Camera::Camera() : _center_x(0) , _center_y(0) , _width(1) , _height(1) , _zoom_level(1) { } Camera::~Camera() { } void Camera::Translate(double x, double y) { _center_x += x; _center_y += y; } void Camera::Zoom(const double factor) { _width = _...
eikek/publet
web/src/main/scala/org/eknet/publet/web/guice/ModuleManager.scala
<filename>web/src/main/scala/org/eknet/publet/web/guice/ModuleManager.scala /* * Copyright 2012 <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/lic...
FreddieSun/twister2
twister2/executor/src/java/edu/iu/dsc/tws/executor/core/ExecutionRuntime.java
<filename>twister2/executor/src/java/edu/iu/dsc/tws/executor/core/ExecutionRuntime.java // 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 /...
aestesis/elektronika
src/STLport/stlport/stl/_alloc_old.h
template<class _Tp, class _Alloc> class __simple_alloc { typedef _Alloc __alloc_type; public: typedef typename _Alloc::value_type __alloc_value_type; typedef _Tp value_type; static size_t _STLP_CALL __chunk(size_t __n) { return (sizeof(__alloc_value_type)==sizeof(value_type)) ? __n : ((__n*s...
ForteScarlet/forhttpapi
src/main/java/com/forte/qqrobot/component/forhttpapi/beans/response/Resp_getStrangerInfo.java
<reponame>ForteScarlet/forhttpapi package com.forte.qqrobot.component.forhttpapi.beans.response; import com.forte.qqrobot.beans.messages.result.AbstractStrangerInfo; import com.forte.qqrobot.beans.messages.result.StrangerInfo; import com.forte.qqrobot.beans.messages.types.SexType; /** * @author Ricardo * @c...
RoshanSyed/BookiePro
src/components/App/TitleBar/MacTitleBar/index.js
import MacTitleBar from './MacTitleBar'; import './MacTitleBar.less'; export default MacTitleBar;
iclosure/smartsoft
Src/VC/bcgcbpro/BCGPVisualConstructor.cpp
<filename>Src/VC/bcgcbpro/BCGPVisualConstructor.cpp //******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of the BCGControlBar Library // Copyright (C) 1998-2012 BCGSoft Ltd. // All rights reserved. // // This source code can be used, d...
bluecolor/storm
api/controllers/TaskInstanceController.js
var Status = require('../constants/Status'); var util = require('util'); var BaseController = require('./BaseController'); var TaskInstanceController = { find: function(req, res){ var id = req.param('id'); var respond = function(instances){ res.send(instances); }; Task...
acdaniells/spiral
spiral/cli/main.py
<gh_stars>0 #!/usr/bin/env python3 """Spiral developer application main module.""" from spiral import App, CaughtSignal from spiral.cli.controllers.base import Base class SpiralApp(App): """Spiral developer application.""" class Meta: label = "spiral" controller = "base" template_m...
ddboline/movie_collection_app
make_collection.py
<reponame>ddboline/movie_collection_app #! /usr/bin/env python # -*- coding: utf-8 -*- """ manage collection """ from __future__ import (absolute_import, division, print_function, unicode_literals) from movie_collection_app.make_collection import make_collection_parse if __name__ == '__main__': make_collection_par...
gbaliarda/TPE2-SO
Kernel/interruptions/syscalls.c
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "../include/naiveConsole.h" #include "keyboard.h" #include "interrupts.h" #include "syscalls.h" #include "time.h" #include "../include/pipes.h" #include "....
ihydrogen/hydrogen-chat-bot-py
vk_auth/account_manager.py
import json as j from utils import config_file from vk_api.api import Account # Name for key of acc list ACCOUNT_LIST = "account list" class AccountManager: def __init__(self, location=config_file.CONF_FILE): self.location = location # location of file with users location = config_file.CONF_FI...
Chyroc/underscore
utils/intutil/intutil_test.go
<gh_stars>0 package intutil_test import ( "github.com/Chyroc/underscore/utils/intutil" "github.com/stretchr/testify/assert" "testing" ) type IntRangeTest struct { s string list []int err string } func TestParserIntRange(t *testing.T) { as := assert.New(t) for _, test := range []IntRangeTest{ //{"1", [...
Thong-Nguyen-Zigvy/zv-react-training
Training5/thongnq-training5/src/state/reducers/todos.js
import { CREATE_TODO, RETRIEVE_TODOS, UPDATE_TODO, DELETE_TODO, FILTER_TODO_BY_NAME } from "../actions/type"; const initialState = []; const todoReducer = (todos = initialState, action) => { const {type, payload} = action; switch (type){ case CREATE_TODO: return [...to...
andykingking/http_stub
spec/lib/http_stub/server/request/factory_spec.rb
<filename>spec/lib/http_stub/server/request/factory_spec.rb describe HttpStub::Server::Request::Factory do let(:session_configuration) { instance_double(HttpStub::Server::Session::Configuration) } let(:session_registry) { instance_double(HttpStub::Server::Session::Registry) } let(:server_memory) { i...
xiaojie19852006/incubator-linkis
linkis-public-enhancements/linkis-datasource/linkis-metadata/src/main/java/org/apache/linkis/metadata/domain/mdq/vo/ApplicationVO.java
<filename>linkis-public-enhancements/linkis-datasource/linkis-metadata/src/main/java/org/apache/linkis/metadata/domain/mdq/vo/ApplicationVO.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 i...
SulaimanAlabbar/discord-bot
tools/migrate.js
<filename>tools/migrate.js const { spawnSync } = require("child_process"); const { resolve } = require("path"); const relative = require("relative"); const migrationsDirectory = require("./migrationsDirectory"); const migrateCommand = resolve( __dirname, "../", "node_modules/migrate/bin/migrate" ); const comman...
DavideCorradiDev/houzi-game-engine
source/houal/test/hou/al/test_al_state.cpp
// Houzi Game Engine // Copyright (c) 2018 <NAME> // Licensed under the MIT license. #include "hou/al/test_al_base.hpp" #include "hou/al/al_state.hpp" using namespace hou; namespace { class test_al_state : public test_al_base {}; } // namespace TEST_F(test_al_state, set_distance_model) { EXPECT_EQ(AL_INVE...
pection-zz/Lenquality-MachineLearning
MachineLearning/TestforPreprocess.py
import cv2 import numpy as np import matplotlib.pyplot as plt import pandas as pd import argparse import glob import os from random import shuffle IMAGE_SIZE = 50 BLOCKSIZE = 20 BLOCKSTRIBE = BLOCKSIZE//2 CELLSIZE = BLOCKSIZE NBINS = 9 DERIVAPERTURE = 1 WINSIGMA = -1. HISTOGRAMNORMTYPE = 0 L2HYSTHRE...
TankleL/gamert
code/gamert/src/dynopt-lua/luart.cpp
#include "luart.hpp" #include "resmgr-static.hpp" #include "lexp.hpp" #include "config-dynopt.hpp" /* ************************************************************************ * luart - lua runtime * ***********************************************************************/ lua_State* luart::global_state = nullptr; ...
brightchen/apex-malhar
library/src/main/java/com/datatorrent/lib/util/UnifierArrayList.java
<filename>library/src/main/java/com/datatorrent/lib/util/UnifierArrayList.java<gh_stars>1-10 /** * 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 A...
Sohail0786/CogStack-Pipeline
src/integration-test/java/uk/ac/kcl/mutators/BadOCRMutator.java
package uk.ac.kcl.mutators; import org.junit.Ignore; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import javax.annotation.PostConstruct; import java.util.Random; import java.util.StringTokenizer...
Tedyst/SpotifyUtils
userutils/playlist.go
package userutils import ( log "github.com/sirupsen/logrus" "github.com/tedyst/spotifyutils/config" "github.com/tedyst/spotifyutils/metrics" "github.com/tedyst/spotifyutils/tracks" "github.com/zmb3/spotify" ) // GetPlaylistTracks returns a list of tracks for a given playlist func (u *User) GetPlaylistTracks(ID s...
psbin2017/garbage-collection
gc/src/test/java/com/collection/gc/domain/CarTest.java
package com.collection.gc.domain; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import com.collection.gc.domain.car.Car; im...
bartbutler/rcloud
htdocs/js/rclient.js
RClient = { create: function(opts) { function on_connect() { if (!rserve.ocap_mode) { result.post_error(result.disconnection_error("Expected an object-capability Rserve. Shutting Down!")); shutdown(); return; } // the rclou...
ahnitz/pegasus
src/edu/isi/pegasus/planner/catalog/transformation/TCMode.java
<reponame>ahnitz/pegasus /** * Copyright 2007-2008 University Of Southern California * * <p>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 * * <p>http://www.apache.org/licenses/LICENSE-2.0 ...
gbroccolo/geom
line_stringzm.go
<filename>line_stringzm.go package geom import ( "errors" ) // ErrNilLineStringZM is thrown when a LineStringZM is nil but shouldn't be var ErrNilLineStringZM = errors.New("geom: nil LineStringZM") // ErrInvalidLineStringZM is thrown when a LineStringZM is malformed var ErrInvalidLineStringZM = errors.New("geom: in...
5h3r10k/APCSA-2021
Coursework/Ch6/Ch6_Answers/src/ch6/ArrayHW1.java
<filename>Coursework/Ch6/Ch6_Answers/src/ch6/ArrayHW1.java package ch6; public class ArrayHW1 { public static void main(String[] args) { //declaring Array int[] nums = new int[10]; //random values // use inclusive values int min = 1; int max = 100; ...
un-knower/embrace-datacollector3.0.1
dev-lib/src/main/java/com/streamsets/pipeline/stage/devtest/RecordCreatorProcessor.java
<reponame>un-knower/embrace-datacollector3.0.1<gh_stars>0 /* * Copyright 2017 StreamSets Inc. * * 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/LIC...
gxa/atlas
base/src/test/java/uk/ac/ebi/atlas/search/baseline/BaselineExperimentProfilesListTest.java
<gh_stars>10-100 package uk.ac.ebi.atlas.search.baseline; import org.junit.Test; import uk.ac.ebi.atlas.model.FactorAcrossExperiments; import uk.ac.ebi.atlas.model.experiment.baseline.BaselineExpression; import uk.ac.ebi.atlas.model.experiment.baseline.Factor; import uk.ac.ebi.atlas.model.experiment.baseline.impl.Fact...
MotorFu/SplashActivity
src/com/zxq/activity/SplashActivity.java
<reponame>MotorFu/SplashActivity package com.zxq.activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.v4.app.FragmentActivity; import android.text.TextUtils; import com.zxq.xmpp.R; import com.zxq.util.PreferenceConstants; import com.zxq.util.PreferenceUt...
shashi-kant10/nit_lab
Sem2/cplusplus/Assignment5/3.cpp
<gh_stars>0 // Assignment 9 // Question 2 // 2021pgcaca050 #include <iostream> #include <algorithm> using namespace std; class Fraction { private: int num; int denom; public: Fraction() { num = 0, denom = 1; } Fraction(int num, int denom) { this->num = num; this-...
specs-feup/specs-lara
Tutorial-2018-DEI-Java/src-sorts/ApplicationTuner.java
<reponame>specs-feup/specs-lara<filename>Tutorial-2018-DEI-Java/src-sorts/ApplicationTuner.java import java.util.Arrays; import java.util.Random; import algorithms.Quicksort; public class ApplicationTuner { private static final int[] SIZES = { 5, 20, 50, 100, 200, 500 }; private static final int NUM_EXECS = ...
rectory-school/rectory-apps
academics/migrations/0042_auto_20160309_0956.py
<filename>academics/migrations/0042_auto_20160309_0956.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('academics', '0041_auto_20160303_1343'), ] operations = [ migration...
carlos-aguayo/ray
rllib/models/torch/attention_net.py
<filename>rllib/models/torch/attention_net.py """ [1] - Attention Is All You Need - Vaswani, <NAME>, Parmar, Uszkoreit, <NAME> - Google Brain/Research, U Toronto - 2017. https://arxiv.org/pdf/1706.03762.pdf [2] - Stabilizing Transformers for Reinforcement Learning - E. Parisotto et al. - DeepMind - 20...
shawn-dsz/sku
scripts/build-storybook.js
// First, ensure the build is running in production mode process.env.NODE_ENV = 'production'; const path = require('path'); const { promisify } = require('util'); const rimraf = promisify(require('rimraf')); const { argv } = require('../config/args'); const gracefulSpawn = require('../lib/gracefulSpawn'); const { stor...
DioHX/FireNote
src/components/Sidebar/styles.js
<filename>src/components/Sidebar/styles.js import styled from 'styled-components'; export const Container = styled.aside` display: flex; flex-direction: column; justify-content: space-between; z-index: 10; min-height: 100%; min-width: 80px; background: #282A36; color: #b3b3b3; border-right: 0.01rem s...
allewwaly/dementia-forensics
DementiaKM/ProcessHider.cpp
#include "ProcessHider.h" #include "ProcessHiderPrivateIncludes.h" #include "SymbolWrapper.h" #include "GenericHider.h" #include "AllocationHider.h" #include "ThreadHider.h" #include "ObjectHider.h" #include "HideEntry.h" #include "FileHider.h" #include "VADHider.h" #include "WinVerProvider.h" // boolean r...
LucianoRomero1/Sigtea
web/bundles/js/expendioCombustible/formulario6.js
<reponame>LucianoRomero1/Sigtea<filename>web/bundles/js/expendioCombustible/formulario6.js function agregarFilaAgua(tipo){ if(tipo == 'aguapublica'){ $("#filas"+tipo).append(` <tr> <td><input type="text" name="AguaPublica[nombre][]" /></td> <td><input type="text" name="AguaPu...
volcengine/VEVodDemo-android
app/src/main/java/com/bytedance/volc/voddemo/utils/WeakHandler.java
<reponame>volcengine/VEVodDemo-android<gh_stars>1-10 /* * Copyright 2021 bytedance * * 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 *...
glahiru/airavata-1
modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/resources/AppDeploymentResource.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"); y...
changkun/gio
widget/widget_test.go
// SPDX-License-Identifier: Unlicense OR MIT package widget_test import ( "image" "testing" "gioui.org/f32" "gioui.org/io/pointer" "gioui.org/io/router" "gioui.org/io/semantic" "gioui.org/io/system" "gioui.org/layout" "gioui.org/op" "gioui.org/widget" ) func TestBool(t *testing.T) { var ( ops op.Ops ...
dkubb/axiom
spec/unit/axiom/relation/empty/each_spec.rb
<reponame>dkubb/axiom # encoding: utf-8 require 'spec_helper' describe Relation::Empty, '#each' do subject { object.each { |tuple| yields << tuple } } let(:object) { described_class.new(header) } let(:header) { [[:id, Integer]] } let(:yields) { [] } it_should_behave_lik...
brunnot/camel
components/camel-consul/src/main/java/org/apache/camel/component/consul/AbstractConsulProducer.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 may...
manurajsingh/cas
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/profile/DefaultOAuth20ProfileScopeToAttributesFilterTests.java
package org.apereo.cas.support.oauth.profile; import org.apereo.cas.AbstractOAuth20Tests; import org.apereo.cas.services.RegisteredServiceTestUtils; import org.apereo.cas.ticket.accesstoken.OAuth20AccessToken; import lombok.val; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.springfra...
franklee26/appfolio-uber-for-vendors
app/models/landowner.rb
<reponame>franklee26/appfolio-uber-for-vendors class Landowner < ApplicationRecord has_many :tenants has_many :freebusies has_and_belongs_to_many :vendors validates :name, presence: true, length: {maximum: 50} VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i validates :email, presence: true...
jonrzhang/MegEngine
dnn/src/cuda/local_share/backward_filter/algo.cpp
<filename>dnn/src/cuda/local_share/backward_filter/algo.cpp /** * \file dnn/src/cuda/local_share/backward_filter/algo.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in...
hequan2017/raptor
server/model/autocode/service.go
// 自动生成模板Service package autocode import ( "raptor/server/global" ) // Service 结构体 // 如果含有time.Time 请自行import time包 type Service struct { global.GVA_MODEL Name string `json:"name" form:"name" gorm:"column:name;comment:项目名称;size:255;"` Type string `json:"type" form:"type" gorm:"column:type;comment...
PranavOnGit/JavaMasterClass
Exercises/NumberToWords.java
package Exercises; //please refer NumberToWords.txt for problem statement. public class NumberToWords { public static void main(String[]args){ numberToWords(10010); } public static void numberToWords(int number) { if (number < 0) { System.out.println("Invalid Value"); ...
boutainaLemrabet/jhipster-composite-key-server-blueprint
test/samples/composite-key-blueprint/src/main/java/com/mycompany/myapp/service/dto/TaskCommentCriteria.java
package com.mycompany.myapp.service.dto; import java.io.Serializable; import java.util.Objects; import io.github.jhipster.service.Criteria; import io.github.jhipster.service.filter.BooleanFilter; import io.github.jhipster.service.filter.DoubleFilter; import io.github.jhipster.service.filter.Filter; import io.github.jh...
GillisWerrebrouck/RalewayCompany
railway-app-timetable/src/main/java/com/railway/timetable_service/domain/TimetableItem.java
package com.railway.timetable_service.domain; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.UUID; import javax.persistence.Column; import javax.persistence.ElementCollection; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persist...
calvinchengx/baserow
backend/src/baserow/core/managers.py
from django.db import models class GroupQuerySet(models.QuerySet): def of_user(self, user): return self.filter( users__exact=user ).order_by('groupuser__order')
AliYildizoz909/photo-channel-spa
src/redux/actions/search/searchActionTypes.js
export const SEARCH_BY_TEXT = "SEARCH_BY_TEXT"; export const SEARCH_BY_CATEGORY = "SEARCH_BY_CATEGORYID";
rholang/archive-old
packages/editor/editor-confluence-transformer/dist/cjs/parse.js
<reponame>rholang/archive-old<gh_stars>1-10 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var adf_schema_1 = require("@atlaskit/adf-schema"); var editor_common_1 = require("@atlaskit/editor-common"); var prosemirror_model_1 = require("prosemirror-model"); v...
JustinTArthur/ROCm-OpenCL-Runtime
runtime/device/rocm/rocprogram.hpp
<reponame>JustinTArthur/ROCm-OpenCL-Runtime<gh_stars>1-10 // // Copyright (c) 2008 Advanced Micro Devices, Inc. All rights reserved. // #pragma once #ifndef WITHOUT_HSA_BACKEND #include "rocbinary.hpp" #if !defined(WITH_LIGHTNING_COMPILER) #include "roccompilerlib.hpp" #endif // !defined(WITH_LIGHTNING_COMPILER) #in...
gcherian/reladomo
reladomo/src/main/java/com/gs/fw/common/mithra/cache/offheap/OffHeapTimestampExtractorWithOffset.java
/* Copyright 2016 <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 in writing, sof...
iychoi/go-irodsclient
irods/message/auth_pam_response.go
<gh_stars>10-100 package message import ( "encoding/xml" "fmt" ) // IRODSMessagePamAuthResponse stores auth challenge type IRODSMessagePamAuthResponse struct { XMLName xml.Name `xml:"pamAuthRequestOut_PI"` GeneratedPassword string `xml:"irodsPamPassword"` } // GetBytes returns byte array func (msg *I...
swiftech/swiftboot
swiftboot-web/src/main/java/org/swiftboot/web/result/DefaultClassifiedCountResult.java
package org.swiftboot.web.result; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.HashMap; import java.util.Map; /** * 默认的按分类统计结果 * * @author swiftech **/ @ApiModel("Default classified counting result")...
picwoon/As_built_BIM
second/tests/test_iou.py
from second.core.non_max_suppression.nms_gpu import rotate_iou_gpu, rotate_iou_gpu_eval import numpy as np from utils3d.bbox3d_ops import Bbox3D def test_iou(): angle = 0.1 * np.pi/180.0 anchors_3d = [[0,0,0, 2, 6 ,4, angle],] #[1.3,0,0, 2,8,4,0], #[0,4,0, 2,8,4,0]] anchors_3d = ...
nicolas-costa/laravel-phonebook
resources/metronic/tools/node_modules/@uppy/companion-client/lib/Socket.js
<reponame>nicolas-costa/laravel-phonebook var ee = require('namespace-emitter'); module.exports = /*#__PURE__*/ function () { function UppySocket(opts) { this.opts = opts; this._queued = []; this.isOpen = false; this.emitter = ee(); this._handleMessage = this._handleMessage.bind(this); this.c...
juseongkr/BOJ
codeforces/Codeforces_Round_623_Div2/1315B.cpp
#include <iostream> #include <algorithm> using namespace std; string s; int T, a, b, x; int main() { ios_base::sync_with_stdio(0); cout.tie(0); cin.tie(0); cin >> T; while (T--) { cin >> a >> b >> x >> s; int ans = s.length(); for (int i=s.length()-2; i>=0; i--) { if (s[i] == 'A' && x < a) break; ...
HeyBanditoz/mchelper
src/main/java/io/banditoz/mchelper/serverstatus/StatusResponse.java
package io.banditoz.mchelper.serverstatus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.JsonNode; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Base64; @JsonIgnoreProperties(ignoreUnknown = true) p...