repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ashedwards/ILPO
models/vector_policy.py
<gh_stars>10-100 """Runs a trained ILPO policy in an online manner and concurrently fixes action inconsistencies.""" from utils import * from vector_ilpo import VectorILPO from collections import deque import gym import cv2 import os import random sess = tf.Session() class Policy(VectorILPO): def __init__(self, s...
KeltonHolsenTheDev/soundtrack
client/src/components/AddItem/AddItem.js
<reponame>KeltonHolsenTheDev/soundtrack import React, { useState } from "react"; import axios from "axios"; import ItemForm from "../ItemForm"; import { useAuth } from "../../auth/auth"; import { useHistory } from "react-router-dom"; const AddItem = function () { const [errors, setErrors] = useState([]); useAuth()...
Fimbure/icebox-1
third_party/virtualbox/src/VBox/Additions/x11/x11include/libXext-1.3.1/X11/extensions/sync.h
<gh_stars>100-1000 /* Copyright 1991, 1993, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this per...
Zoltan45/Mame-mkp119
src/mame/video/munchmo.c
#include "driver.h" UINT8 *mnchmobl_vreg; UINT8 *mnchmobl_status_vram; UINT8 *mnchmobl_sprite_xpos; UINT8 *mnchmobl_sprite_attr; UINT8 *mnchmobl_sprite_tile; static int mnchmobl_palette_bank; static int flipscreen; PALETTE_INIT( mnchmobl ) { int i; for (i = 0;i < machine->drv->total_colors;i++) { int bit0,bit...
parada3desu/logbunker
logbunker/contexts/shared/domain/CommandHandler.py
from abc import abstractmethod from typing import Any, NoReturn from logbunker.contexts.shared.domain.Command import Command from logbunker.contexts.shared.domain.Interface import Interface class CommandHandler(Interface): @abstractmethod def subscribed_to(self) -> str: raise NotImplementedError() ...
alexis-evelyn/nbt-crafting
src/main/java/de/siphalor/nbtcrafting/dollar/part/unary/NumberDollarPartDeserializer.java
<gh_stars>0 package de.siphalor.nbtcrafting.dollar.part.unary; import de.siphalor.nbtcrafting.dollar.DollarDeserializationException; import de.siphalor.nbtcrafting.dollar.DollarParser; import de.siphalor.nbtcrafting.dollar.part.DollarPart; import de.siphalor.nbtcrafting.dollar.part.ValueDollarPart; public class Numbe...
rjw57/tiw-computer
emulator/src/mame/drivers/usbilliards.cpp
// license:BSD-3-Clause // copyright-holders:Stiletto /*************************************************************************** US Billiards TTL Games Game Name DATA ------------------------------------- TV Tennis (1973/03,11?) NO TV Hockey? (1973) UNKNOWN Survival...
nicolaskruger/camel-in-action
chapter5/splitter/src/test/java/my/split_aggregate/SpliterWord.java
<filename>chapter5/splitter/src/test/java/my/split_aggregate/SpliterWord.java package my.split_aggregate; import java.util.Arrays; import java.util.List; public class SpliterWord { public List<String> split(String word){ return Arrays.asList(word.split(",")); } }
JelenaKar/-job4j
trainee/chapter_001/src/test/java/ru/job4j/array/ArrayDuplicateTest.java
<filename>trainee/chapter_001/src/test/java/ru/job4j/array/ArrayDuplicateTest.java<gh_stars>0 package ru.job4j.array; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test. * * @author <NAME> (<EMAIL>) * @version $Id$ * @since 0.1 */ public class Arr...
Dazzed/dental-front
app/containers/ActivationPage/sagas.js
<filename>app/containers/ActivationPage/sagas.js import { takeEvery } from 'redux-saga'; import { call, put } from 'redux-saga/effects'; import { push } from 'react-router-redux'; import request from 'utils/request'; import { getItem } from 'utils/localStorage'; import { activateSuccess, activateError } from 'c...
lulululululu/cpp_client_telemetry
lib/http/HttpClient_CAPI.hpp
<gh_stars>1-10 // // Copyright (c) 2015-2020 Microsoft Corporation and Contributors. // SPDX-License-Identifier: Apache-2.0 // #ifndef HTTPCLIENT_CAPI_HPP #define HTTPCLIENT_CAPI_HPP #include "IHttpClient.hpp" #include "pal/PAL.hpp" #include "mat.h" #include <string> namespace MAT_NS_BEGIN { class HttpClient_CA...
jofaval/tfcgs-daw
dist/client/scripts/js/Validator.js
<filename>dist/client/scripts/js/Validator.js class Validator { //Given input, rules pairs validates their content static validate(validationParams, inputs) { if (!Array.isArray(validationParams)) { return false; } validationParams.forEach(validationInfo => { var ...
soerenbe/py-ebrest
easybill_rest/resources/resource_documents.py
from __future__ import annotations from enum import Enum from typing import TYPE_CHECKING from easybill_rest.helper import Helper from easybill_rest.resources.resource_abstract import ResourceAbstract if TYPE_CHECKING: from easybill_rest import Client class SendMethod(Enum): EMAIL = "email" FAX = "fax"...
npocmaka/Windows-Server-2003
drivers/storage/ide/atapi/chanfdo.h
/*++ Copyright (C) 1993-99 Microsoft Corporation Module Name: chanfdo.h Abstract: --*/ #if !defined (___chanfdo_h___) #define ___chanfdo_h___ // // work item // typedef struct _IDE_WORK_ITEM_CONTEXT { PIO_WORKITEM WorkItem; PIRP Irp; } IDE_WORK_ITEM_CONTEXT, *P...
IvarJonsson/Project-Unknown
ItemView.cpp
// Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved. /************************************************************************* ------------------------------------------------------------------------- $Id$ $DateTime$ ------------------------------------------------------------------------- History...
liasica/Karabiner_CN
Tests/kext/FlagStatus/test.cpp
#include <ostream> #include <gtest/gtest.h> #include "Config.hpp" #include "FlagStatus.hpp" #include "KeyCode.hpp" #include "KeyCodeModifierFlagPairs.hpp" using namespace org_pqrs_Karabiner; Config config; std::ostream& operator<<(std::ostream& os, const EventType& v) { return os << v.get(); } std::ostream& operator<...
htczion/Zion-SKR-SDK
ZionSkrSdk/src/main/java/com/htc/wallet/skrsdk/action/BackupFullAction.java
package com.htc.wallet.skrsdk.action; import static com.htc.wallet.skrsdk.verification.VerificationConstants.ACTION_NOTIFY_BACKUP_FULL; import static com.htc.wallet.skrsdk.verification.VerificationConstants.ACTION_TRIGGER_BROADCAST; import android.content.Context; import android.content.Intent; import android.support...
datafibers/Leetcode_Practice
src/main/java/com/fishercoder/solutions/_216.java
<filename>src/main/java/com/fishercoder/solutions/_216.java package com.fishercoder.solutions; import java.util.ArrayList; import java.util.List; /** * 216. Combination Sum III * * Find all possible combinations of k numbers that add up to a number n, * given that only numbers from 1 to 9 can be used and each com...
allegro-actions/opbox-release-tools
compare-dependencies/new-dependencies-messages.js
<filename>compare-dependencies/new-dependencies-messages.js<gh_stars>0 const warningEmoji = ':warning:'; const npmLink = dependency => `[NPM](https://www.npmjs.com/package/${encodeURIComponent(dependency)})`; const bundlephobiaLink = dependency => `[Bundlephobia](https://bundlephobia.com/package/${encodeURIComponent(de...
rayrobdod/fxfightstage
demo/src/main/java/name/rayrobdod/fightStage/previewer/PlayBattleAnimationEventHandler.java
/* * Copyright 2018 <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 wr...
jercas/offer66-leetcode-newcode
toTheMoon/leetcode_217_ContainsDuplicate.py
# -*- coding: utf-8 -*- """ Created on Thu Apr 11 15:54:53 2019 @author: jercas """ """ leetcode-217: 存在重复元素 EASY '数组' '哈希表' 给定一个整数数组,判断是否存在重复元素。 如果任何值在数组中出现至少两次,函数返回 true。如果数组中每个元素都不相同,则返回 false。 PS: 不同于287寻找重复数,217中会出现负数,不可以用值匹配下标调换顺序的算法去解决,出现越界情况 """ class Solution: def containsDuplicate1(s...
fanruan/swift-http
swift-proxy/src/main/java/com/fr/swift/cloud/basics/base/handler/AbstractProcessHandler.java
<reponame>fanruan/swift-http package com.fr.swift.cloud.basics.base.handler; import com.fr.swift.cloud.basics.AsyncRpcCallback; import com.fr.swift.cloud.basics.Invoker; import com.fr.swift.cloud.basics.InvokerCreator; import com.fr.swift.cloud.basics.ProcessHandler; import com.fr.swift.cloud.basics.RpcFuture; import ...
AllaMaevskaya/AliRoot
test/vmctest/scripts/cluster/AliAnalysisTaskCluster.cxx
#include "TChain.h" #include "TTree.h" #include "TH1F.h" #include "TH2F.h" #include "TH3F.h" #include "TCanvas.h" #include "TList.h" #include "TParticle.h" #include "TParticlePDG.h" #include "TProfile.h" #include "TNtuple.h" #include "TFile.h" #include "AliAnalysisTask.h" #include "AliAnalysisManager.h" #include "Ali...
acanozturk/mbs-app
src/main/java/com/group5/mbs/controllers/DepartmentalBoardRepresentativeController.java
package com.group5.mbs.controllers; import com.group5.mbs.api.dtos.Advisor; import com.group5.mbs.api.dtos.DepartmentalBoardRepresentative; import com.group5.mbs.api.dtos.Student; import com.group5.mbs.api.model.request.DbrRecommendAdvisorRequest; import com.group5.mbs.api.model.response.*; import com.group5.mbs.servi...
ClockworkOrigins/m2etis
library/generated/GeneratedChannelConfiguration.h
/* Copyright (2016) <NAME>, <NAME>, 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 Unless required by applicable law or agree...
gopherpit/gopherpit
server/routers_feapi.go
// Copyright (c) 2017, <NAME> <<EMAIL>> // All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package server import ( "net/http" "resenje.org/web" "github.com/gorilla/mux" ) func newFrontendAPIRouter(s *Server) http.Handler { frontendAPI...
upsidedownio/behivejs
src/decorators/UntilFailure.js
<filename>src/decorators/UntilFailure.js<gh_stars>1-10 const BaseDecorator = require('../core/BaseDecorator'); const {SUCCESS, FAILURE, ERROR, RUNNING} = require('../constants'); /** * Class UntilFailure * UntilFailure is a decorator that repeats the run signal until the * node child returns `FAILURE`, `RUNNING` or...
ankurshukla1993/IOT-test
coeey/com/ihealth/communication/control/ae.java
package com.ihealth.communication.control; import com.ihealth.communication.p001a.C2026d; class ae implements C2026d { final /* synthetic */ C2067n f1242a; ae(C2067n c2067n) { this.f1242a = c2067n; } public void mo5513a() { Integer[] numArr = new Integer[6]; for (int i = 0; i...
robertvanloenhout/jwarc
src/org/netpreserve/jwarc/WarcFilterCompiler.java
<filename>src/org/netpreserve/jwarc/WarcFilterCompiler.java package org.netpreserve.jwarc; import java.util.Optional; import java.util.function.Predicate; import java.util.regex.Pattern; class WarcFilterCompiler { private final WarcFilterLexer lexer; WarcFilterCompiler(String expression) { lexer = ne...
copslock/broadcom_cpri
sdk-6.5.20/libs/sdklt/bcmltx/bcmmon/bcmltx_mon_gen_index.c
/*! \file bcmltx_mon_gen_index.c * * Egress drop mask profile LT key combination to * LTM track index transform handler. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights re...
shaojiankui/iOS10-Runtime-Headers
protocols/PUInterfaceTheme.h
<filename>protocols/PUInterfaceTheme.h /* Generated by RuntimeBrowser. */ @protocol PUInterfaceTheme <NSObject> @required - (UIColor *)airPlayControllerBackgroundColor; - (UIColor *)airPlayVideoPlaceholderBackgroundColor; - (UIImage *)airPlayVideoPlaceholderIcon; - (UIColor *)airPlayVideoPlaceholderIconTintColor; -...
asap2Go/calibrationReader
a2l/display_identifier.go
package a2l import ( "errors" "github.com/rs/zerolog/log" ) type DisplayIdentifier struct { displayName string displayNameSet bool } func parseDisplayIdentifier(tok *tokenGenerator) (DisplayIdentifier, error) { di := DisplayIdentifier{} var err error tok.next() if tok.current() == emptyToken { err = er...
AsdMonio/rr-external_skia
tests/Test.cpp
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Test.h" #include "SkCommandLineFlags.h" #include "SkError.h" #include "SkString.h" #include "SkTime.h" DEFINE_string2(tmpDir, t, nullptr, "Temp directory to use.")...
ricbartm/homebrew-core
Formula/libosinfo.rb
<gh_stars>1-10 class Libosinfo < Formula desc "The Operating System information database" homepage "https://libosinfo.org/" url "https://releases.pagure.org/libosinfo/libosinfo-1.2.0.tar.gz" sha256 "ee254fcf3f92447787a87b3f6df190c694a787de46348c45101e8dc7b29b5a78" bottle do sha256 "99c9327eb8634f81affaa4...
lsx888/Spring-Boot-Book
15/JD_Demo/src/main/java/com/example/demo/controller/shop/CancelOrderController.java
<filename>15/JD_Demo/src/main/java/com/example/demo/controller/shop/CancelOrderController.java<gh_stars>100-1000 package com.example.demo.controller.shop; import com.example.demo.module.mq.CancelOrderSender; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation....
erinloy/GraphEngine
src/Trinity.C/include/Trinity/Events.h
<filename>src/Trinity.C/include/Trinity/Events.h // Graph Engine // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #pragma once #include <TrinityCommon.h> #if defined(TRINITY_PLATFORM_WINDOWS) #include <winsock2.h...
yoav-steinberg/bazel
src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java
<reponame>yoav-steinberg/bazel // Copyright 2006 The Bazel Authors. 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....
simonzcx/quinn-service-framework
quinn-service-api/src/main/java/com/quinn/framework/api/EntityServiceInterceptor.java
package com.quinn.framework.api; import com.quinn.framework.api.methodflag.MethodFlag; import com.quinn.framework.component.EntityServiceInterceptorChain; import com.quinn.framework.model.methodinvorker.AbstractMethodInvoker; import com.quinn.util.base.model.BaseResult; /** * 实体操作拦截器 * * @author Qunhua.Liao * @si...
BrianApple/HXAPIGate
HXAPIGate/src/main/java/hx/apigate/util/RouteSelectUtil.java
package hx.apigate.util; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.ignite.IgniteSemaphore; import org.apache.ignite.binary.BinaryObjectException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import hx.apigate.databridge.NodeInfo; import hx.apigate.databrid...
WANdisco/j
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java
<filename>org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java /* * Copyright (C) 2011, <NAME> <<EMAIL>> * and other copyright owners as documented in the project's IP log. * * This program and the accompanying materials are made available * under the terms of the Eclipse Distribution License v1.0 ...
zzisun/stupid-week-2021
2021/07/04/kerochuu/가희와자원놀이.java
<gh_stars>10-100 package baekjoon; import java.io.*; import java.util.*; // @author : blog.naver.com/kerochuu // @date : 2021. 7. 3. public class 가희와자원놀이 { private static class Node { boolean isAcquire; int idx, target; Node(int idx, String type, int target) { this.idx = idx; this....
tlubitz/rba
simulator/static/python/rbatools/rba/core/metabolism.py
<reponame>tlubitz/rba<gh_stars>0 """Module defining Metabolism class.""" # python 2/3 compatibility from __future__ import division, print_function, absolute_import # global imports import numpy from scipy.sparse import lil_matrix, hstack from itertools import chain # local imports from .parameter_vector import Para...
mcleo-d/App-Integrations-Core
integration-pod-api-client/src/test/java/org/symphonyoss/integration/pod/api/client/RelayApiClientTest.java
/** * Copyright 2016-2017 Symphony Integrations - Symphony LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
toly1994328/DS4Android
app/src/main/java/com/toly1994/ds4android/view/LinkedView.java
<reponame>toly1994328/DS4Android<filename>app/src/main/java/com/toly1994/ds4android/view/LinkedView.java package com.toly1994.ds4android.view; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import and...
PhotoNomad0/tCore-Electronite
src/js/helpers/migrationHelpers.js
<filename>src/js/helpers/migrationHelpers.js import path from 'path-extra'; import fs from 'fs-extra'; export function migrateAppsToDotApps(projectPath) { let projectDir = fs.readdirSync(projectPath); if (projectDir.includes('apps') && projectDir.includes('.apps')) { fs.removeSync(path.join(projectPath, '.app...
arunkbharathan/EPI2
Chapter6_Arrays/primesUpToN.go
<reponame>arunkbharathan/EPI2 package main import "math" func primesUpto(num int) []int { if num < 2 { return []int{} } else if num < 3 { return []int{2} } else if num < 5 { return []int{2, 3} } primes := primesUpto(int(math.Sqrt(float64(num)))) retPrime := []int{} for i := 2; i <= num; i++ { retPrim...
mengxy/swc
crates/swc_webpack_ast/tests/fixture/react-dom/dev/output.js
exports, module, exports, require("react"), define, define.amd, define([ "exports", "react" ], factory);
pesto-students/n3-doccords-frontend-iota-iota
src/components/shared/upload/uploadAvatar.js
import React, { useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import axios from "axios"; import Spinner from "components/shared/spinner"; import { Typography, Button } from "@material-ui/core"; import { setUploadedImageURL } from "redux/actions/common"; import CameraAltIcon from "@mat...
FuyaoLi2017/leetcode
Array/leetcode_1157_OnlineMajorityElementInSubarray.java
<reponame>FuyaoLi2017/leetcode<gh_stars>1-10 /* Implementing the class MajorityChecker, which has the following API: MajorityChecker(int[] arr) constructs an instance of MajorityChecker with the given array arr; int query(int left, int right, int threshold) has arguments such that: 0 <= left <= right < arr.length repr...
Joshua-Anderson/fprime-sphinx-drivers
fprime-sphinx-drivers/ADC/test/ut/TesterBase.hpp
// ====================================================================== // \title ADC/test/ut/TesterBase.hpp // \author Auto-generated // \brief hpp file for ADC component test harness base class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United Stat...
DragonJoker/Ashes
source/ashes/renderer/GlRenderer/Core/GlAutoIdIcdObject.cpp
<reponame>DragonJoker/Ashes /** *\file * InlineUniformBlocks.cpp *\author * <NAME> */ #include "renderer/GlRenderer/Core/GlAutoIdIcdObject.hpp" namespace ashes::gl { }
eugeneilyin/mdi-norm
lib/Portrait.js
<reponame>eugeneilyin/mdi-norm<filename>lib/Portrait.js "use strict"; exports.__esModule = true; var _createThemedIcon = require("./utils/createThemedIcon"); var _FilledPortrait = require("./FilledPortrait"); var _OutlinePortrait = require("./OutlinePortrait"); var _RoundPortrait = require("./RoundPortrait"); var...
kiteco/kiteco-public
kite-python/kite_common/kite/clustering/kmeans.py
import numpy as np from sklearn.cluster import KMeans def top_down_cluster(data, ids, max_members): """ This function bisects the data set until the size of each cluster is smaller than max_members. It returns an array of clusters, and each cluster consists of the index of the data point. """ clu...
semmerson/hycast
main/p2p-old/ServerPool.cpp
<gh_stars>0 /** * A pool of remote servers for creating remote peers. * * File: ServerPool.cpp * Created on: Jun 29, 2019 * Author: <NAME> * * Copyright 2021 University Corporation for Atmospheric Research * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th...
StanfordGeometryLab/artemis
artemis/language/language_preprocessing.py
""" A set of functions that are useful for pre-processing textual data: uniformizing the words, spelling, etc. The MIT License (MIT) Copyright (c) 2021 <NAME> (<EMAIL>) & Stanford Geometric Computing Lab """ import re contractions_dict = { "ain't": "am not", "aren't": "are not", "can't": "cannot", "c...
soonhokong/ace
lib/ace/worker/worker_test.js
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of sou...
zhaomengxiao/MITK
Plugins/org.blueberry.ui.qt/src/internal/berryEvaluationReference.cpp
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
imxiangpeng/webrtc
base/fileutils_unittest.cc
<reponame>imxiangpeng/webrtc<filename>base/fileutils_unittest.cc /* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property righ...
smalls12/Discord.CPP
docs/search/variables_c.js
var searchData= [ ['member_5fcount',['member_count',['../class_discord_c_p_p_1_1_guild.html#ab10c1ad384ac012715e48ac0a56bde82',1,'DiscordCPP::Guild']]], ['members',['members',['../class_discord_c_p_p_1_1_guild.html#a7860e5065378f6b23b3e22004a55d253',1,'DiscordCPP::Guild']]], ['mention_5feveryone',['mention_everyo...
MrRaffo/raytracer
src/geometry/g_object.c
<reponame>MrRaffo/raytracer<filename>src/geometry/g_object.c #include <stdio.h> #include <geometry/g_object.h> #include <geometry/matrix.h> #include <scene/material.h> #include <util/mem.h> #include <util/log.h> /* OPERATIONS */ /* create a generic object for testing with no defined shape */ struct g_object *test_o...
nbv3/voogasalad_CS308
src/com/syntacticsugar/vooga/gameplayer/attribute/weapons/BasicAutoFireWeaponAttribute.java
package com.syntacticsugar.vooga.gameplayer.attribute.weapons; import com.syntacticsugar.vooga.authoring.parameters.EditableClass; import com.syntacticsugar.vooga.authoring.parameters.EditableField; import com.syntacticsugar.vooga.authoring.parameters.InputParser; import com.syntacticsugar.vooga.authoring.parameters.I...
Rain0193/zafira
sources/zafira-web/angular/client/app/app.module.js
(function () { 'use strict'; angular.module('app', [ // Core modules 'app.core' // Custom Feature modules ,'app.page' ,'app.services' ,'app.auth' ,'app.dashboard' ,'app.user' ,'app.scm' ,'app.testcase' ,'app.testruninfo' ...
kkrampa/commcare-hq
corehq/messaging/smsbackends/telerivet/admin.py
from __future__ import absolute_import from __future__ import unicode_literals from django.contrib import admin from corehq.messaging.smsbackends.telerivet.models import IncomingRequest class IncomingRequestAdmin(admin.ModelAdmin): list_display = [ 'event', 'message_id', 'message_type', ...
mamacmm/lemon
src/main/java/com/mossle/ext/store/StoreHelper.java
package com.mossle.ext.store; import java.io.InputStream; import javax.activation.DataSource; import org.springframework.core.io.Resource; public interface StoreHelper { StoreResult getStore(String model, String key) throws Exception; void removeStore(String model, String key) throws Exception; StoreR...
focusunsink/study_python
np/10_SciPy/3_4_stats.py
# -*- coding:utf-8 -*- """ Project : numpy File Name : 3_4_stats Author : Focus Date : 8/24/2021 10:39 PM Keywords : Abstract : Param : Usage : py 3_4_stats Reference : """ import numpy as np import matplotlib.pyplot as plt import sys from scipy import stats generated = stats.norm.rvs(size=900) pr...
turbot/steampipe-plugin-jira
jira/table_jira_project.go
package jira import ( "context" "fmt" "github.com/andygrunwald/go-jira" "github.com/turbot/steampipe-plugin-sdk/grpc/proto" "github.com/turbot/steampipe-plugin-sdk/plugin/transform" "github.com/turbot/steampipe-plugin-sdk/plugin" ) //// TABLE DEFINITION func tableProject(_ context.Context) *plugin.Table { r...
silhavyj/inode-based-file-system
doc/doxygen/html/search/all_9.js
var searchData= [ ['kb_88',['KB',['../class_disk.html#a8343bf2c626fc6076f0a4fefae42726d',1,'Disk']]] ];
SwerveRoboticsTeams/FtcRobotController
Team6220_2020/src/main/java/org/firstinspires/ftc/team6220_2020/TestClasses/OpenCVTest.java
package org.firstinspires.ftc.team6220_2020.TestClasses; import android.graphics.Rect; import android.graphics.YuvImage; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName; import org.firstinspires.ftc.team6220_2020.MasterTeleOp; import o...
shaojiankui/iOS10-Runtime-Headers
Frameworks/WebKit.framework/_WKWebsiteDataSize.h
<filename>Frameworks/WebKit.framework/_WKWebsiteDataSize.h /* Generated by RuntimeBrowser Image: /System/Library/Frameworks/WebKit.framework/WebKit */ @interface _WKWebsiteDataSize : NSObject { struct Size { unsigned long long totalSize; struct HashMap<unsigned int, unsigned long long, WTF::I...
vjmadrid/enmilocalfunciona-kafka
architecture/architecture-kafka-common/src/main/java/com/acme/architecture/kafka/common/consumer/enumeration/SeekToTypeEnumeration.java
<reponame>vjmadrid/enmilocalfunciona-kafka<filename>architecture/architecture-kafka-common/src/main/java/com/acme/architecture/kafka/common/consumer/enumeration/SeekToTypeEnumeration.java package com.acme.architecture.kafka.common.consumer.enumeration; public enum SeekToTypeEnumeration { NONE, START, END, LOCATION ...
CaliStyle/trailpack-proxy-generics
lib/schemas/geolocationProvider/index.js
exports.locate = require('./locate') exports.locateSuccess = require('./locateSuccess')
rgcl/dgrid
test/intern/core/createDestroy.js
define([ 'intern!tdd', 'intern/chai!assert', 'dojo/_base/declare', 'dojo/on', 'dgrid/List', 'dgrid/OnDemandList', 'dstore/Memory' ], function (test, assert, declare, on, List, OnDemandList, Memory) { test.suite('createDestroy', function () { test.test('no params list', function () { var list = new List(); ...
DianaAssistant/DIANA
redemption/src/utils/traits/static_array_desc.hpp
/* 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; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ...
Iowa-Sate-Senior-Design-Dec-2021-Team-7/BBGreenZigbeeCape
firmware/daughterboard/tests/zed_temperaturesensor_CC1352R1_LAUNCHXL_tirtos_ccs/Common/zcl/zcl_port.c
<reponame>Iowa-Sate-Senior-Design-Dec-2021-Team-7/BBGreenZigbeeCape /****************************************************************************** Filename: zcl_port.c Revised: $Date: 2015-02-12 12:55:11 -0800 (Thu, 12 Feb 2015) $ Revision: $Revision: 42532 $ Description: This file c...
FuzzyAshton/APCS
src/unit7/Day1.java
package unit7; public class Day1 { public static void main(String[] args) { int[][] arr1 = new int[3][4]; for (int i = 0; i < arr1.length; i++) { for (int j = 0; j < arr1[i].length; j++) { arr1[i][j] = i + j; System.out.print(arr1[i][j] + " "); } System.out.println(); } } }
ibadsiddiqui/FYP-Automation
client/src/views/Pages/Register/Register.js
<gh_stars>0 import React, { Component } from 'react'; import { Link } from 'react-router-dom' import { Button, Card, CardBody, CardFooter, Col, Container, Form, Input, InputGroup, InputGroupAddon, InputGroupText, Row } from 'reactstrap'; class Register extends Component { constructor(props) { super(props); t...
HarisAli-git/DinnerDashROR
db/migrate/20210828130151_change_status_of_orders.rb
# frozen_string_literal: true class ChangeStatusOfOrders < ActiveRecord::Migration[6.1] def change change_column :orders, :status, :integer end end
mwitkow/kfe
pkg/kedge/http/integration.go
package http_integration /** Go doesn't allow you to have a single package with a test without a test. */
gchure/phd
presentation/code/slide09_induction_plots.py
<reponame>gchure/phd #%% import numpy as np import pandas as pd import matplotlib.pyplot as plt import pickle import phd.viz import phd.thermo colors, palette = phd.viz.phd_style() constants = phd.thermo.load_constants() # Define the identifiers SLIDE = 9 FIT_DATA = True FIT_CURVE = True ALL_PREDICTIONS = True ALL_DAT...
alexgithubber/XLE-Another-Fork
ColladaConversion/OpenCollada/OCMisc.h
<filename>ColladaConversion/OpenCollada/OCMisc.h // Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #pragma once #include "../ConversionCore.h" #include "../../Math/Matrix.h" #include "../../M...
Rachel4858/Algorithm
leetcode/amazon/linkedList/2-MergeTwoSortedLists.js
// Input: 1->2->4, 1->3->4 // Output: 1->1->2->3->4->4 function solution(l1, l2) { let head = new ListNode(1); let dummy = head; while (l1 !== null && l2 !== null) { if (l1.val <= l2.val) { dummy.next = l1; l1 = l1.next; } else { dummy.next = l2; l2 = l2.next; } dummy =...
rlwhitcomb/utilities
java/info/rlwhitcomb/tester/Tester.java
/* * The MIT License (MIT) * * Copyright (c) 2012-2021 <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,...
jacobvv/android-samples
app/src/main/java/org/jacobvv/androidsamples/recycler/cursor/model/Camera.java
<reponame>jacobvv/android-samples package org.jacobvv.androidsamples.recycler.cursor.model; /** * @author jacob * @date 19-4-20 */ public class Camera { }
TrustedBSD/sebsd
tools/tools/net80211/wlandebug/wlandebug.c
<reponame>TrustedBSD/sebsd /*- * Copyright (c) 2002-2004 <NAME>, <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...
hackerlank/SourceCode
Game/OGRE/RenderSystems/GL/src/atifs/src/ATI_FS_GLGpuProgram.cpp
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.stevestreeting.com/ogre/ Copyright (c) 2000-2005 The OGRE Team Also see acknowledgements in Readme.html This program is ...
xtforgame/reduxtful
test/test-data/index.js
<reponame>xtforgame/reduxtful<gh_stars>1-10 /* eslint-disable import/prefer-default-export */ import testData01 from './testData01'; export { testData01, };
nextworks-it/slicer-catalogue
EVE_BLUEPRINTS_CATALOGUE/src/main/java/it/nextworks/nfvmano/catalogue/blueprint/services/TcBlueprintCatalogueService.java
<reponame>nextworks-it/slicer-catalogue /* * Copyright 2018 Nextworks s.r.l. * * 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 requ...
mastrayer/CSM
src/CSMGameProject/CSMGameProject/TypeA.h
<reponame>mastrayer/CSM #pragma once #include "Effect.h" #include "NNAnimation.h" #include "Player.h" class ATypeSkillEffect : public IEffect { public: ATypeSkillEffect(float angle, NNPoint startPosition); virtual ~ATypeSkillEffect(); void Render(); void Update(float dTime); private: NNAnimat...
venkatramanm/humbhionline
src/main/java/in/succinct/mandi/extensions/OnOrderLineDelivery.java
<gh_stars>1-10 package in.succinct.mandi.extensions; import com.venky.extension.Extension; import com.venky.extension.Registry; import com.venky.swf.db.model.Model; import in.succinct.mandi.db.model.Item; import in.succinct.mandi.db.model.Order; import in.succinct.mandi.db.model.User; import in.succinct.plugins.ecomme...
janstey/fuse-1
components/camel-sap/camel-sap-component/src/test/java/org/fusesource/camel/component/sap/integration/MeThrowUp.java
package org.fusesource.camel.component.sap.integration; import org.apache.camel.Exchange; public class MeThrowUp { public void throwUp(Exchange exchange) throws Exception { throw new Exception("I threw up!"); } }
doncat99/FinanceDataCenter
findy/database/plugins/eastmoney/__init__.py
# -*- coding: utf-8 -*- from findy.database.plugins.eastmoney.dividend_financing import * from findy.database.plugins.eastmoney.finance import * from findy.database.plugins.eastmoney.holder import * from findy.database.plugins.eastmoney.meta import * from findy.database.plugins.eastmoney.quotes import * from findy.data...
hissy/saelos
resources/assets/js/modules/roles/store/actions.js
<filename>resources/assets/js/modules/roles/store/actions.js import * as types from "./action-types"; export const fetchingRole = () => ({ type: types.FETCHING_SINGLE_ROLE }); export const fetchingRoleSuccess = payload => ({ type: types.FETCHING_SINGLE_ROLE_SUCCESS, data: payload }); export const fetchingRoleF...
PhilipsOnFhir/bulk-data-proxy
src/main/java/com/philips/research/philipsonfhir/fhirproxy/support/proxy/service/IFhirServer.java
<filename>src/main/java/com/philips/research/philipsonfhir/fhirproxy/support/proxy/service/IFhirServer.java<gh_stars>0 package com.philips.research.philipsonfhir.fhirproxy.support.proxy.service; import ca.uhn.fhir.context.FhirContext; import org.hl7.fhir.dstu3.model.Bundle; import org.hl7.fhir.dstu3.model.CapabilitySt...
GreenCubes-org/GreenCubesOldClient
src/minecraft/net/minecraft/src/StructureNetherBridgePieceWeight.java
<reponame>GreenCubes-org/GreenCubesOldClient<gh_stars>1-10 // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode fieldsfirst package net.minecraft.src; class StructureNetherBridgePieceWeight { public Class field_40...
willdunklin/kwiver
vital/algo/data_serializer.cxx
<reponame>willdunklin/kwiver // This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. /// \file /// \brief data_serializer algorithm definition instantiation #include <vital/al...
zachard/python-parent
hello_python/chapter04/python_code_format.py
<reponame>zachard/python-parent # PEP8建议每级缩进都使用四个空格, 这既可提高可读性, 又留下了足够的多级缩进空间. # 很多Python程序员都建议每行不超过80字符. # 最初制定这样的指南时, 在大多数计算机中, 终端窗口每行只能容纳79字符 # PEP8还建议注释的行长都不超过72字符 # 要将程序的不同部分分开, 可使用空行. 你应该使用空行来组织程序文件, 但也不能滥用.
oharasteve/eagle
src/com/eagle/programmar/CSharp/Directives/CSharp_RegionDirective.java
// Copyright Eagle Legacy Modernization LLC, 2010-date // Original author: <NAME>, Oct 5, 2014 package com.eagle.programmar.CSharp.Directives; import com.eagle.programmar.CSharp.CSharp_Class.CSharp_ClassElement; import com.eagle.programmar.CSharp.Terminals.CSharp_CommentToEndOfLine; import com.eagle.programmar.CSharp...
arvindkalra/CruxAug-01
Lecture8/RecursionCtd.java
package Lecture8; import java.util.ArrayList; public class RecursionCtd { public static void main(String[] args) { // TODO Auto-generated method stub // System.out.println(getSS("abcd")); // System.out.println(getSSWithAscii("ab")); System.out.println(getMazePathDiagonal(2, 2, 0, 0)); } public...
u-wave/web
src/components/PlaylistManager/Menu/PlaylistImportRow.js
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import CircularProgress from '@mui/material/CircularProgress'; import MenuItem from '@mui/material/MenuItem'; import ImportIcon from '@mui/icons-material/Input'; function Playl...
iDube/leetcode
JZ_Offer/ms_20/m5_test.go
<filename>JZ_Offer/ms_20/m5_test.go package ms_20 import ( "github.com/stretchr/testify/assert" "strings" "testing" ) // 面试题05. 替换空格 // 请实现一个函数,把字符串 s 中的每个空格替换成"%20"。 // 1. 暴力法? // 2. 用api嘛?这没意思吧,还能偷偷看api怎么做的,哈哈 // 3. 用数组做?在同一个数据数组上,不用额外空间? // 4. 用切片做?不同语言有各自特色的数据结构,貌似实现起来也有差异 // 5. 现在内存便宜,应该用更节省cpu的做法? // 6. cop...