repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
skubit/skubit-comics
app/src/main/java/com/skubit/comics/activities/DeleteFromCollectionActivity.java
<reponame>skubit/skubit-comics package com.skubit.comics.activities; import com.skubit.comics.BuildConfig; import com.skubit.comics.fragments.DeleteFromCollectionFragment; import com.skubit.comics.provider.collectionmapping.CollectionMappingSelection; import com.skubit.dialog.ProgressActivity; import android.app.Frag...
ByBrainmix/CustomItemAPI
api/src/main/java/me/brainmix/itemapi/api/delay/ItemDelayAmount.java
package me.brainmix.itemapi.api.delay; import me.brainmix.itemapi.api.CustomItem; import me.brainmix.itemapi.api.utils.ItemUtils; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; public class ItemDelayAmount extends ItemDelay implements DelayDisplay { private CustomItem customItem; pri...
peterkrenn/ruby-processing
samples/processing_app/3D/form/icosahedra/icosahedron.rb
<reponame>peterkrenn/ruby-processing # fjenett, 2010-03-11: # Mixing in Processing::Proxy makes classes behave like inner classes(*) of # a Processing sketch (any class that's defined in a sketch and that is # inside a .pde file). This is needed for a class to be able to call any # drawing commands etc. # (*) Ruby doe...
Ginkgo-Biloba/Cpp-Repo1-VS
LeetCode/ThousandOne/0748-short_completing_word.cpp
#include "leetcode.hpp" /* 748. 最短完整词 如果单词列表(words)中的一个单词包含牌照(licensePlate)中所有的字母,那么我们称之为完整词。在所有完整词中,最短的单词我们称之为最短完整词。 单词在匹配牌照中的字母时不区分大小写,比如牌照中的 "P" 依然可以匹配单词中的 "p" 字母。 我们保证一定存在一个最短完整词。 当有多个单词都符合最短完整词的匹配条件时取单词列表中最靠前的一个。 牌照中可能包含多个相同的字符,比如说:对于牌照 "PP",单词 "pair" 无法匹配,但是 "supper" 可以匹配。 示例 1: 输入:licensePlate = "1s3PSt", ...
titanium-forks/appcelerator.titanium_mobile_tizen
modules/tizen/src/Tizen/_/Messaging/Message.js
// Wraps Tizen interface "Message" that resides in Tizen module "Messaging". define(['Ti/_/declare', 'Tizen/_/Messaging/MessageBody', 'Ti/_/Evented'], function(declare, MessageBody, Evented) { var message = declare(Evented, { constructor: function(args, nativeObj) { if (nativeObj) { // nativeObj is a nativ...
xxpasixx/BangleApps
apps/openwind/app.js
OW_CHAR_UUID = '0000cc91-0000-1000-8000-00805f9b34fb'; require("Font7x11Numeric7Seg").add(Graphics); var gatt = {}; var cx = g.getWidth()/2; var cy = 24+(g.getHeight()-24)/2; var w = (g.getWidth()-24)/2; var y1 = 24; var y2 = g.getHeight()-1; var gps_course = { spd: 0 }; var course_marker_len = g.getWidth()/4; var set...
hillyuan/Panzer
disc-fe/src/responses/Panzer_ResponseMESupport_Default.hpp
// @HEADER // *********************************************************************** // // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85...
joejulian/kudo
pkg/kudoctl/cmd/init_integration_test.go
// +build integration package cmd import ( "bytes" "context" "fmt" "io/ioutil" "log" "os" "path/filepath" "strings" "testing" "github.com/spf13/afero" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clien...
raindigi/Merchello
src/Merchello.Web.UI.Client/src/views/collections/dialogs/delete.staticcollection.controller.js
angular.module('merchello').controller('Merchello.EntityCollections.Dialogs.DeleteEntityCollectionController', [ '$scope', '$location', 'treeService', 'navigationService', 'notificationsService', 'entityCollectionResource', 'entityCollectionDisplayBuilder', function($scope, $location, treeService, navigationSer...
nithinkumar030/bigmuddy-network-telemetry-pipeline
vendor/github.com/cisco/bigmuddy-network-telemetry-proto/proto_go/cisco_ios_xr_ipv6_acl_oper/ipv6_acl_and_prefix_list/oor/details/a.go
//go:generate protoc --go_out=plugins=grpc:. ipv6_acl_edm_oor_detail.proto // Cisco-IOS-XR-ipv6-acl-oper:ipv6-acl-and-prefix-list/oor/details package cisco_ios_xr_ipv6_acl_oper_ipv6_acl_and_prefix_list_oor_details
TigerBSD/FreeBSD-Custom-ThinkPad
FreeBSD/contrib/llvm/tools/lldb/include/lldb/Host/common/NativeBreakpointList.h
//===-- NativeBreakpointList.h ----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
YorickColeu/cloud
authorization/pb/service.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/plgd-dev/cloud/authorization/pb/service.proto package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ...
jcgertig/react-native
Examples/UIExplorer/MapViewExample.js
<gh_stars>1-10 /** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ME...
tekktonic/programming
C/lisp/num.h
#ifndef STAS_NUM_H #define STAS_NUM_H #include <glib.h> #include <stdlib.h> #include <stdio.h> #include <gmp.h> #include "object.h" #include "types.h" #include "parsehelp.h" Object *new_Num(gchar *str); void del_Num(Object *num); Object *ReadNum(FILE *fp); void WriteNum(Object *num); #endif
ma16/hantek_dso_2090
src/usbExt.h
/* BSD 2-Clause License, see github.com/ma16/hantek_dso_2090 */ #ifndef INCLUDE_usbExt_h #define INCLUDE_usbExt_h /* some useful extensions of libusb for this project (e.g. do-or-die) */ #include <libusb.h> #include <stdbool.h> /* do-or-die */ libusb_context* usbExt_init(void) ; /* browse thru all usb devices and ...
neurodebian/htcondor
src/condor_soapshell/gsoap_soapshell.h
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
lpea/cppinclude
src/model_includes/test/suits/mi_test_analyzer_suits.cpp
#include "model_includes/test/fixtures/mi_test_model_includes_fixture.hpp" #include "model_includes/test/fixtures/wrappers/mi_test_file_wrapper.hpp" #include "model_includes/test/fixtures/wrappers/mi_test_include_wrapper.hpp" #include "model_includes/test/fixtures/wrappers/mi_test_model_wrapper.hpp" #include "model_i...
dispyfree/xhstt
base/file/Archive.h
/* * File: Archive.h * * This class represents one archive, that is, a collection of instances plus a collection * of solution groups. */ #ifndef ARCHIVE_H #define ARCHIVE_H extern "C"{ #include "khe.h" } #include "ArchiveMetaData.h" #include "Instance.h" #include <fstream> namespace khe{ class...
THE-STUDNET/front
src/app/shared/api/models/items_childs_model.js
<reponame>THE-STUDNET/front angular.module('API') .factory('items_childs_model',['abstract_model_service',function(abstract_model_service){ var service = new abstract_model_service({ outdated_timeout: 1000*60*60*2, // 2 hours. cache_size: 40, ...
tgpethan/mc-beta-server
server/Packets/Packet50PreChunk.js
/* ========- Packet50PreChunk.js -========= Created by Holly (tgpethan) (c) 2021 Licenced under MIT ======================================== */ const Packet = require("./Packet.js"); class Packet50PreChunk extends Packet { constructor(x = 0, z = 0, mode = true) { super(0x32); this.x = x; this.z = z; ...
juanse1080/Project-front
src/views/Module/Show/components/index.js
export { default as Build } from './Build' export { default as Detail } from './Detail'
the-nerbs/HexEdit
Tests/utils/AssertHelpers.h
#pragma once #include <cstddef> #include <sstream> #include <string> #include "catch.hpp" namespace test { /// \brief Encapsulates the result of a test assertion and any message it may produce. struct assert_result { bool passed; //!< True if the assertion passed, or false if not. ...
rostockahoi/nitro
command/queue/queue.go
<reponame>rostockahoi/nitro package queue import ( "fmt" "os" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/client" "github.com/docker/docker/pkg/stdcopy" "github.com/spf13/cobra" "github.com/craftcms/nitro/pkg/config" "github.com/craftcms/nitro/...
crud2/crud2
src/main/java/org/crud2/util/ClassNames.java
<filename>src/main/java/org/crud2/util/ClassNames.java package org.crud2.util; import java.math.BigDecimal; import java.util.Date; import java.util.HashMap; import java.util.Map; public class ClassNames { private static Map<String, String> nameMap = new HashMap<>(); static { nameMap.put(In...
zealoussnow/chromium
third_party/blink/renderer/platform/loader/fetch/url_loader/web_url_loader_factory.cc
<reponame>zealoussnow/chromium // Copyright 2021 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 "third_party/blink/public/platform/web_url_loader_factory.h" #include "base/check.h" #include "services/network/p...
xu5343/ffmpegtoolkit_CentOS7
gpac-0.7.1/modules/aac_in/faad_dec.c
<filename>gpac-0.7.1/modules/aac_in/faad_dec.c /* * GPAC - Multimedia Framework C SDK * * Authors: <NAME> * Copyright (c) Telecom ParisTech 2000-2012 * All rights reserved * * This file is part of GPAC / AAC reader module * * GPAC is free software; you can redistribute it and/or modify * it under...
rgcl/dgrid
test/data/createOrderedStore.js
define([ 'dojo/_base/lang', './createSyncStore' ], function (lang, createSyncStore) { return function createOrderedStore(kwArgs) { // dstore already supports ordering w/ beforeId, // but add a copy method to test optional feature supported by DnD return createSyncStore(lang.mixin({ copy: function (object, o...
BerniWittmann/beachanmeldung
web/vueapp/src/utils/helpers.js
<filename>web/vueapp/src/utils/helpers.js import moment from 'moment'; export function parseDate(dateString) { return dateString ? moment(dateString, [moment.ISO_8601, 'DD.MM.YYYY']) : undefined; } export function parseDateToISOString(date) { return date ? date.toISOString() : undefined; } export function getDat...
StanPlatinum/VMI-as-a-Service
xen-4.6.0/xen/arch/x86/cpu/vpmu.c
<filename>xen-4.6.0/xen/arch/x86/cpu/vpmu.c /* * vpmu.c: PMU virtualization for HVM domain. * * Copyright (c) 2007, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the F...
gecko10000/RedLib
src/redempt/redlib/worldgen/NoiseOctave.java
package redempt.redlib.worldgen; import java.util.Random; /** * Used to generate noise values for octaves of Perlin Noise * @author Redempt */ public class NoiseOctave { private NoiseGenerator[] noise; private double weight = 0; /** * Creates a noise octave with the given seed and size. All noise generato...
domin1101/ANNHelper
include/LightBulb/Learning/Evolution/BestSelectionCommand.hpp
#pragma once #ifndef _BESTSELECTIONCOMMAND_H_ #define _BESTSELECTIONCOMMAND_H_ // Library Includes // Includes #include "LightBulb/Learning/Evolution/AbstractSelectionCommand.hpp" namespace LightBulb { /** * \brief A command which selects the best N individuals for mutation/recombination */ class BestSelectio...
punchkub147/Thesis
src/model/needWork.js
<reponame>punchkub147/Thesis db.collection('needWork').add({ employer_id: employer.employer_id, work_id: work.work_id, employee_id: user.uid, name: `${user.data.fname} ${user.data.lname}`, phone: user.data.phone, pack: 1, //user ต้องการจำนวนกี่ชิ้น deviceToken: user.data.deviceToken, })
darthmaim/gw2builds
src/actions/import.js
import { createAction } from 'redux-actions'; export const SET_IMPORT_DIALOG_VISIBLE = 'SET_IMPORT_DIALOG_VISIBLE'; export const ADD_IMPORT_API_KEY = 'ADD_IMPORT_API_KEY'; export const REMOVE_IMPORT_API_KEY = 'REMOVE_IMPORT_API_KEY'; /** Action to set the visibility of the import dialog. Params: { visible } */ export...
zerohope/OJcodes
src/leetcode/CourseSchedule207.java
package leetcode; import java.util.*; public class CourseSchedule207 { public boolean canFinish(int numCourses, int[][] prerequisites) { //List<Integer> sort=new ArrayList<>(); int canFin=0; if(numCourses<=0) return false; //记录每个节点的入度 Map<Integer,Integer> inDegr...
r00ster91/serenity
Userland/Libraries/LibJS/Bytecode/Pass/PlaceBlocks.cpp
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibJS/Bytecode/PassManager.h> namespace JS::Bytecode::Passes { void PlaceBlocks::perform(PassPipelineExecutable& executable) { started(); VERIFY(executable.cfg.has_value()); auto cfg = executable.cfg.rel...
OreCruncher/OreLib
src/main/java/org/orecruncher/lib/expression/Function.java
/* * Copyright 2012 <NAME> * Copyright 2016 OreCruncher * * http://UdoJava.com/ * http://about.me/udo.klimaschewski * * 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 restrict...
eugeneilyin/mdi-norm
src/RoundHistory.js
<gh_stars>1-10 import React from 'react' import { Icon } from './Icon' import { lf, oj, ok } from './fragments' export const RoundHistory = /*#__PURE__*/ props => <Icon {...props}> <path d={"M13.26 3C8.17 2.86 4 6.95 4 12H2.21" + oj + "l2.79 2.8" + lf + "l2.79-2.8" + ok + "H6c0-3.9 3.18-7.05 7.1-7 3.72.05 6.85 3.18 ...
TiagoPedroByterev/openvpnclient-ios
Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/asio/asiosignal.hpp
// OpenVPN -- An application to securely tunnel IP networks // over a single port, with support for SSL/TLS-based // session authentication and key exchange, // packet encryption, packet authentication, and // packet compression. // // Copyright (C) 2012-201...
Ilmosal/StationTool
stationtool/dataEdit/dataEditField.py
""" Module that contains all dataEditFields. """ from datetime import datetime from PyQt5.QtWidgets import (QWidget, QHBoxLayout, QLabel, QDateTimeEdit, QDoubleSpinBox, QSpinBox, QLineEdit, QComboBox, QFileDialog, QPushButton, QCheckBox, ...
VU-libtech/OLE-INST
ole-app/olefs/src/main/java/org/kuali/ole/module/purap/document/validation/impl/InvoiceGrandTotalOverZeroValidation.java
/* * Copyright 2008-2009 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless re...
gardenhq/o
bin/o/main.js
<filename>bin/o/main.js module.exports = function(services, combine, inject, register_o) { return function() { return Promise.all( Object.values(services) ).then( combine ).then( inject ).then( register_o ); } }
BadlionNetwork/BadlionClientModAPI
bungee/src/main/java/net/badlion/bungeeapi/BungeePluginMessageSender.java
<reponame>BadlionNetwork/BadlionClientModAPI package net.badlion.bungeeapi; import net.badlion.modapicommon.AbstractPluginMessageSender; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.protocol.packet.PluginMessage; import java.util.UUID; public cla...
world-bit/knowledge
backend/src/main/java/org/support/project/knowledge/control/api/internal/articles/AbstractArticleApi.java
<filename>backend/src/main/java/org/support/project/knowledge/control/api/internal/articles/AbstractArticleApi.java package org.support.project.knowledge.control.api.internal.articles; import java.lang.invoke.MethodHandles; import org.support.project.common.log.Log; import org.support.project.common.log.LogFactory; i...
Mobile-APPs-Android/Dream-Team
Beergram/app/src/main/java/com/example/dreamteam/beergram/auth/login/LoginContract.java
package com.example.dreamteam.beergram.auth.login; import com.example.dreamteam.beergram.BasePresenter; import com.example.dreamteam.beergram.BaseView; import com.example.dreamteam.beergram.utils.BeergramProgressDialog; public interface LoginContract { interface View extends BaseView<Presenter> { void se...
guicamest/bsoneer
examples/complex/src/main/java/com/sleepcamel/bsoneer/example/Dog.java
<filename>examples/complex/src/main/java/com/sleepcamel/bsoneer/example/Dog.java package com.sleepcamel.bsoneer.example; import java.util.List; import com.sleepcamel.bsoneer.Bsonee; @Bsonee public class Dog<Q,U> { Q q; U u; // TODO Do some magic to handle this case in BullDog List<U> us; }
mudechs/cotrack
start/kernel.js
<filename>start/kernel.js 'use strict'; /** @type {import('@adonisjs/framework/src/Server')} */ const Server = use('Server'); /* |-------------------------------------------------------------------------- | Global Middleware |-------------------------------------------------------------------------- | | Global middle...
Lauvak/ray
sample/06.CubeWorld/terrain_items.cpp
<reponame>Lauvak/ray // +---------------------------------------------------------------------- // | Project : ray. // | All rights reserved. // +---------------------------------------------------------------------- // | Copyright (c) 2013-2015. // +---------------------------------------------------------------------...
danglephuc/jp-postalcode-lookup
zipdata/zip-958.js
zipdata({ "9580000":[[15,15212,"村上市","ムラカミシ",152120000,""," ",""]], "9580001":[[15,15212,"村上市","ムラカミシ",152120224,"馬下","マオロシ",""]], "9580002":[[15,15212,"村上市","ムラカミシ",152120210,"早川","ハヤカワ",""]], "9580003":[[15,15212,"村上市","ムラカミシ",152120250,"吉浦","ヨシウラ",""]], "9580004":[[15,15212,"村上市","ムラカミシ",152120076,"柏尾","カシオ",""...
cenodis/InfinityLib
src/main/java/com/infinityraider/infinitylib/block/multiblock/IMultiBlockPartData.java
package com.infinityraider.infinitylib.block.multiblock; import net.minecraft.nbt.NBTTagCompound; public interface IMultiBlockPartData { /** * @return the relative x-position in the multi-block structure */ int posX(); /** * @return the relative y-position in the multi-block structure ...
annagitel/ocs-ci
ocs_ci/utility/tests/test_version.py
from semantic_version import Version import pytest from ocs_ci.utility import version @pytest.mark.parametrize( "product_version, only_major_minor, ignore_pre_release, expected", [ ("4.4", False, False, Version.coerce("4.4")), ("4.4.5", True, False, version.VERSION_4_4), ("4.4.5", Tr...
Aelphaeis/tools_stash
src/test/java/stash/transformer/PropertyTransformerTest.java
package stash.transformer; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.uti...
dstructs/ndarray
lib/btypes.js
'use strict'; // BASE TYPES // var BTYPES = { 'int8': 'Int8Array', 'uint8': 'Uint8Array', 'uint8_clamped': 'Uint8ClampedArray', 'int16': 'Int16Array', 'uint16': 'Uint16Array', 'int32': 'Int32Array', 'uint32': 'Uint32Array', 'float32': 'Float32Array', 'float64': 'Float64Array', 'binary': 'Buffer', 'string':...
transmute-industries/transmute-vanilla
src/components/Pages/Home/TransmuteTerminal/commands/eventStore.js
<reponame>transmute-industries/transmute-vanilla export const handleEventStore = ( command, mercury, actions ) => { let newHistory = [] console.log('command: ', command) console.log('mercury: ', mercury) if (command.args[1] === 'create') { let { from } = command.args let b...
rjw57/tiw-computer
emulator/src/devices/bus/dmv/k806.cpp
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** K806 Mouse module ***************************************************************************/ #include "emu.h" #include "k806.h" /***************************************************...
iootclab/openjdk
openjdk11/test/jdk/java/awt/image/DrawImage/IncorrectUnmanagedImageRotatedClip.java
/* * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
imtubedev/wallet
app/models/vote.js
import Request from '../utils/RequestUtil'; import {listProducers, getAccountInfo, getUndelegatebwInfo, listAgent, getGlobalInfo, queryRamPrice, listDelegateLoglist} from '../utils/Api'; import store from 'react-native-simple-store'; import { EasyToast } from '../components/Toast'; let newarr = new Array(); export def...
HelixOS/cts
suite/audio_quality/lib/src/FileUtil.cpp
<filename>suite/audio_quality/lib/src/FileUtil.cpp /* * Copyright (C) 2012 The Android Open Source Project * * 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...
paullewallencom/react-978-1-8386-4385-0
_/Section 6/6.3/SignUpScreen.js
<filename>_/Section 6/6.3/SignUpScreen.js<gh_stars>0 import React, { Component } from "react"; import { View } from "react-native"; import styles from "../Components/Styles/AppStyle"; import { FancyButton } from "../Components/FancyButton"; import CommonForm from '../Components/CommonForm'; export default class SignUp...
lavalamp/scat
procs/writerto.go
package procs import ( "io" "github.com/Roman2K/scat" ) type WriterTo struct { W io.Writer } func (wt WriterTo) Process(c *scat.Chunk) <-chan Res { _, err := io.Copy(wt.W, c.Data().Reader()) return SingleRes(c, err) } func (wt WriterTo) Finish() error { return nil }
rieckpil/learning-samples
spring-boot-stackoverflow/src/main/java/de/rieckpil/learning/NullController.java
package de.rieckpil.learning; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/null") public class NullController { @GetMapping public String d...
cyenyxe/ledger
libs/ml/include/ml/layers/multihead_attention.hpp
<reponame>cyenyxe/ledger<filename>libs/ml/include/ml/layers/multihead_attention.hpp #pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this...
Ybalrid/orbiter
Src/Vessel/DeltaGlider/RcsSubsys.h
<gh_stars>1000+ // Copyright (c) <NAME> // Licensed under the MIT License // ============================================================== // ORBITER MODULE: DeltaGlider // Part of the ORBITER SDK // // RcsSubsys.h // Reaction control subsystem: lin/rot selection, attitude programs // ...
ShubhamThakre/datahub
datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/policy/mappers/PolicyUpdateInputInfoMapper.java
package com.linkedin.datahub.graphql.resolvers.policy.mappers; import com.linkedin.common.UrnArray; import com.linkedin.common.urn.Urn; import com.linkedin.data.template.StringArray; import com.linkedin.datahub.graphql.generated.ActorFilterInput; import com.linkedin.datahub.graphql.generated.PolicyMatchFilterInput; im...
ChosenMedInfo/oncopubminer-app
xiaonuo-main/src/main/java/com/cn/xiaonuo/utils/CommonCharacters.java
package com.cn.xiaonuo.utils; public class CommonCharacters { public final static String QX_SPLITER1 = " | "; public final static String QX_SPLITER1_FOR_SPLIT = " \\| "; public final static String QX_SPLITER2 = ","; // quanxu, 2021-01-08: 主要针对xmSelect多选值! public final static String QX_MSG_CANNOT_GET_INSERTED_...
maxim4to/Mixbox
Frameworks/TestsFoundation/PrivateHeaders/Classdump/XCTAutomationSupport/Xcode_11_0/Xcode_11_0_XCTElementIndexingTransformer.h
<filename>Frameworks/TestsFoundation/PrivateHeaders/Classdump/XCTAutomationSupport/Xcode_11_0/Xcode_11_0_XCTElementIndexingTransformer.h #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 140000 #import "Xcode_11_0_XCTAutomationSupport_CDStructures.h" #import "Xcode_11_0_SharedHeader.h"...
codejsha/infrastructure
weblogic/status/get_server_status.py
#!/usr/bin/env python class ansiformat(object): reset = '\033[0m' bold = '\033[1m' underline = '\033[4m' blink = '\033[5m' class ansifgcolor(object): light_red = '\033[91m' light_green = '\033[92m' light_yellow = '\033[93m' light_blue = '\033[94m' light_magenta = '\033[95m' li...
sagarchaurasia260395/Proxima-DEX
app/src/components/Swap/index.js
import React, { useState, useEffect } from "react"; import { Card, Table } from "react-bootstrap"; import { useSelector, useDispatch } from "react-redux"; import { SWAP } from "../../actions"; import "../PairGovernance/style.css"; import Web3 from "web3"; import { contract } from "../../common/contractconfig"; import P...
sharplook/tencentcloud-sdk-java-test
src/main/java/com/tencentcloudapi/cpdp/v20190820/models/QueryTransferBatchResponse.java
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 ...
jransijn/picom
src/module/dbus/module.c
<filename>src/module/dbus/module.c #include "module.h" #include "common.h" #ifdef CONFIG_DBUS #include "dbus.h" #endif struct module_options { #define OPTION MODULE_DECLARE_OPTION #include "cfg_mod.h" #undef OPTION } options; struct module_properties { #define OPTION MODULE_DECLARE_PROPERTY #include "cfg_mod.h" #undef...
SleepyRae/IntelligenceCoding
hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/pojo/vo/CaptchaVo.java
<filename>hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/pojo/vo/CaptchaVo.java package top.hcode.hoj.pojo.vo; import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * @Author: Himit_ZH * @Date: 2022/3/11 16:37 * @Description: */ @Data public class CaptchaVo { @ApiModelProperty(value ...
allexjs/sdk
src/ws/websuites/relink.js
<reponame>allexjs/sdk<gh_stars>1-10 'use strict'; function createRelink (Lib, Node) { 'use strict'; var Fs = Node.Fs, Path = Node.Path, recognize = Lib.moduleRecognition, AllexJS = require('allex_allexjshelperssdklib')(Lib), ALLEX_WORKSPACE_DIR = AllexJS.ALLEX_WORKSPACE_DIR, BaseWSWorkerClass ...
Abdullah108/hugeheart
hugeheart/super-admin/src/config/Constant.js
export const AcceptedImageFormat = [ 'image/jpg', 'image/png', 'image/jpeg', 'image/tiff', 'image/gif', ]; export const AcceptedDocFormat = [ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/msword', 'text/plain', 'application/vnd.openxml...
clfs/relic
lib/assuan/assuan.go
<reponame>clfs/relic // // Copyright (c) SAS Institute 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/LICENSE-2.0 // // Unless required by a...
jiben071/DLMyTechBuildUp
DLGenTechBuildup/DLGenTechBuildup/Expand/Helper/YMPulsingHaloLayer.h
<reponame>jiben071/DLMyTechBuildUp<filename>DLGenTechBuildup/DLGenTechBuildup/Expand/Helper/YMPulsingHaloLayer.h<gh_stars>0 // // YMPulsingHaloLayer.h // YM // 脉冲动画层 // Created by QinMingChuan on 14-5-5. // Copyright (c) 2014年 QinMingChuan. All rights reserved. // #import <UIKit/UIKit.h> #import <QuartzCore/Quart...
serval-uni-lu/ikora-smells
src/main/java/lu/uni/serval/ikora/smells/checks/ComplicatedSetupCheck.java
<gh_stars>0 package lu.uni.serval.ikora.smells.checks; /*- * #%L * Ikora Smells * %% * Copyright (C) 2020 - 2021 University of Luxembourg * %% * 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 Licen...
dommonty/eligauqa
modules/projects/client/controllers/projects.client.controller.js
<filename>modules/projects/client/controllers/projects.client.controller.js (function () { 'use strict'; // Projects controller angular .module('projects') .controller('ProjectsController', ProjectsController); ProjectsController.$inject = [ '$scope', '$state', 'Authentication', 'projectResolve', 'Cus...
spookandpuff/spooky-core
.bundle/gems/webmock-1.8.4/lib/webmock/util/json.rb
# This is a copy of https://github.com/jnunemaker/crack/blob/master/lib/crack/json.rb # with date parsing removed module WebMock module Util class JSON def self.parse(json) YAML.load(unescape(convert_json_to_yaml(json))) rescue ArgumentError raise ParseError, "Invalid JSON string" ...
TreeBASE/treebasetest
treebase-core/src/main/java/org/cipres/treebase/framework/ExecutionResult.java
package org.cipres.treebase.framework; /** * Indicates the execution result status. It can has an error message if the execution action fails. * * Created on Nov 20, 2006 * * @author <NAME> */ public class ExecutionResult { private String mErrorMessage; private int mSuccessfulCount; private ...
jddixon/xlTransport_java
src/java/org/xlattice/transport/Attachment.java
<gh_stars>0 /* Attachment.java */ package org.xlattice.transport; /** * @author <NAME> */ class Attachment { // DEBUG // STATICS ////////////////////////////////////////////////////// static int nextIndex = 0; static Object indexLock = new Object(); // END // CONSTANTS /////////////...
AndEditor7/MCPE-Clone
Base.java
package com.andedit.arcubit; import com.andedit.arcubit.handles.Inputs; import com.andedit.arcubit.ui.utils.StageUtils; import com.andedit.arcubit.utils.BlockPos; import com.andedit.arcubit.utils.Util; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.InputMultiplexer; import com.badlo...
sethlu/vox
src/utils/logging.cpp
#include "logging.h" #define MIN_LOG_LEVEL_UNSET INT_MAX namespace { int minLogLevel = MIN_LOG_LEVEL_UNSET; } namespace renderbox { int getMinLogLevel() { if (minLogLevel == MIN_LOG_LEVEL_UNSET) { if (const char *envRenderBoxLogLevel = std::getenv("RENDERBOX_LOG_LEVEL")) { ...
Wallace4ever/Algorithms
src/edu/LeetCode/DP/No188_BestTimeBuySellStockIV.java
<reponame>Wallace4ever/Algorithms<gh_stars>0 package edu.LeetCode.DP; import org.junit.Test; import java.util.Arrays; public class No188_BestTimeBuySellStockIV { public int maxProfit(int k,int[] prices) { if (k <= 0 || prices == null || prices.length <= 1) return 0; int n = prices.length; ...
touxiong88/92_mediatek
custom/common/kernel/imgsensor/gc2235_raw/gc2235_Sensor.c
/***************************************************************************** * * Filename: * --------- * sensor.c * * Project: * -------- * RAW * * Description: * ------------ * Source code of Sensor driver * * * Author: * ------- * <NAME> * *================================================...
mishrakeshav/Competitive-Programming
CodeChef/Practice/STFOOD.py
from sys import stdin input = stdin.readline for t in range(int(input())): N = int(input()) S = [] P = [] V = [] max_p = 0 for i in range(int(N)): s,p,v = map(int,input().split()) profit = (p//(s+1))*v if profit > max_p: max_p = profit print(ma...
zababurinsv/waves-node
lang/shared/src/main/scala/com/wavesplatform/lang/directives/DirectiveParser.scala
<filename>lang/shared/src/main/scala/com/wavesplatform/lang/directives/DirectiveParser.scala package com.wavesplatform.lang.directives import com.wavesplatform.lang.ExecutionError import fastparse._ import fastparse.Parsed.{Failure, Success} import fastparse.MultiLineWhitespace._ import cats.implicits._ object Direct...
glowroot/glowroot-instrumentation
instrumentation-api/src/main/java/org/glowroot/instrumentation/api/config/ConfigService.java
<filename>instrumentation-api/src/main/java/org/glowroot/instrumentation/api/config/ConfigService.java /* * Copyright 2011-2019 the original author or 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 c...
govindrgaikwad/java_repo
JAVA/equinox-data-access/src/main/java/com/tmg/uifwk/impexp/process/CalendarUIElementProcess.java
package com.tmg.uifwk.impexp.process; import java.sql.Timestamp; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; imp...
aaoferreira/hackerrank
src/main/java/hackerrank/algorithms/strings/Anagram.java
<reponame>aaoferreira/hackerrank<filename>src/main/java/hackerrank/algorithms/strings/Anagram.java /** * * Created-By: <NAME> * Created-Date: 13 Apr 2016 * */ package hackerrank.algorithms.strings; import java.util.Scanner; /** * * @author <NAME> * */ public class Anagram { // https://w...
timwindsor/cordova-blackberry-plugins
test/unit/com.blackberry.io.filetransfer/index.js
<gh_stars>1-10 /* * Copyright 2012 Research In Motion Limited. * * 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 a...
gu-bin/bosh-agent
agent/action/update_settings.go
<gh_stars>1-10 package action import ( "errors" "encoding/json" "github.com/cloudfoundry/bosh-agent/platform" "github.com/cloudfoundry/bosh-agent/platform/cert" boshsettings "github.com/cloudfoundry/bosh-agent/settings" bosherr "github.com/cloudfoundry/bosh-utils/errors" "github.com/cloudfoundry/bosh-utils/log...
ssin122/test-h
tests/h/celery_test.py
<gh_stars>0 # -*- coding: utf-8 -*- import logging import mock import pytest from h import celery class TestCelery(object): @pytest.fixture(autouse=True) def register_signal(self, request): return _patch('h.celery.register_signal', request) @pytest.fixture(autouse=True) def register_logge...
m00g3n/kyma
components/application-gateway/internal/proxy/cache.go
<filename>components/application-gateway/internal/proxy/cache.go package proxy import ( "net/http/httputil" "time" "github.com/kyma-project/kyma/components/application-gateway/internal/authorization" gocache "github.com/patrickmn/go-cache" ) const cleanupInterval = 60 type CacheEntry struct { Proxy ...
tsallinen/oskari-frontend
bundles/framework/coordinatetool/instance.js
<filename>bundles/framework/coordinatetool/instance.js /** * @class Oskari.mapframework.bundle.coordinatetool.CoordinateToolBundleInstance * * Registers and starts the * Oskari.mapframework.bundle.coordinatetool.plugin.CoordinatesPlugin plugin for main map. */ Oskari.clazz.define('Oskari.mapframework.bundle.coordi...
xiaosean/leetcode_python
Q169_Majority-Element.py
from collections import Counter class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: int """ nums_counter = Counter(nums) n = len(nums) for key, count in nums_counter.most_common(): if count > n/2: ...
FELDSAM-INC/ve-vertice-v1
carton/quota.go
<gh_stars>1-10 package carton import ( "encoding/json" "github.com/virtengine/libgo/api" "github.com/virtengine/libgo/pairs" ) type Quota struct { Id string `json:"id" cql:"id"` AccountId string `json:"account_id" cql:"account_id"` Name string `json:"name" cql:"name...
paullewallencom/java-978-1-7821-7198-0
_/1980EN_06_Code/ticket-agency-jms/src/main/java/com/packtpub/wflydevelopment/chapter6/entity/SeatPositionConverter.java
<reponame>paullewallencom/java-978-1-7821-7198-0 package com.packtpub.wflydevelopment.chapter6.entity; import javax.persistence.AttributeConverter; import javax.persistence.Converter; @Converter(autoApply = true) public class SeatPositionConverter implements AttributeConverter<SeatPosition, String> { @Ov...
bradbeam/redskyops-controller
internal/controller/errors.go
/* Copyright 2020 GramLabs, 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/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
rahulchaudhary2244/encog-java-core
src/main/java/org/encog/mathutil/Convert.java
<filename>src/main/java/org/encog/mathutil/Convert.java /* * Encog(tm) Core v3.4 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2017 Heaton Research, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use thi...
furiousOyster/interbit
packages/interbit-cli/scripts/deploy.js
// © 2018 BTL GROUP LTD - This package is licensed under the MIT license https://opensource.org/licenses/MIT const path = require('path') const { argOptions: { KEY_PAIR }, getArtifactsLocation, getConnect, getKeyPair, getManifest, getPort, deploy, manifestSelectors: { getChains } } = require('interbit'...
EstherWaweru/30DaysOfCode
Day10_Binary Numbers/test/task3.py
<gh_stars>1-10 array=[-6,-91,1011,-100,84,-22,0,1,473] mini=array[0] for i in range(len(array)): if array[i]<mini: if array[i]%11==0: mini=array[i] print(mini)