repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
agarun/algorithms
games/mastermind/mastermind.rb
<gh_stars>0 class Code PEGS = { RED: "R", GREEN: "G", BLUE: "B", YELLOW: "Y", ORANGE: "O", PURPLE: "P" } attr_reader :pegs def self.parse(code) code = code.upcase.chars if valid_code?(code) Code.new(code) else raise "The code had invalid characters. Cho...
johannah/balloon-learning-environment
balloon_learning_environment/utils/sampling_test.py
# coding=utf-8 # Copyright 2022 The Balloon Learning Environment Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
LimHanGyeol/study
java-vendingmachine/src/test/java/Junit5Test.java
<reponame>LimHanGyeol/study<filename>java-vendingmachine/src/test/java/Junit5Test.java import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import static org.assertj.core.api.Assertions.assertThat; public class Junit5Test { @T...
uk-gov-mirror/hmcts.blob-router-service
src/main/java/uk/gov/hmcts/reform/blobrouter/data/rejectedenvelope/RejectedEnvelope.java
package uk.gov.hmcts.reform.blobrouter.data.rejectedenvelope; import uk.gov.hmcts.reform.blobrouter.data.events.ErrorCode; import java.util.UUID; public class RejectedEnvelope { public final UUID envelopeId; public final String container; public final String fileName; public final ErrorCode errorCod...
c3sr/tensorflow
master_service.pb.go
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: master_service.proto package tensorflow import ( context "context" fmt "fmt" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Mars...
yanbutan/lit-test-repo-ts
node_modules/playwright/lib/client/android.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AndroidWebView = exports.AndroidInput = exports.AndroidSocket = exports.AndroidDevice = exports.Android = void 0; var _fs = _interopRequireDefault(require("fs")); var _utils = require("../utils/utils"); var _events = require("./e...
alonmm/VCSamples
VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/DirectWrite vertical text sample (Windows 8)/C++/FlowSink.h
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved // // Contents: Source in...
ciprian-radu/rent-a-car
application/entities/src/test/java/ro/ciprianradu/rentacar/entity/EntityTest.java
<gh_stars>1-10 package ro.ciprianradu.rentacar.entity; import java.util.Objects; import java.util.UUID; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** * Unit tests for {@link Entity} */ class EntityTest { @Test void test_Entity_nullEntity_throwsException() { Asserti...
LeviOfficalDriftingRealmsDev/DriftingRealmsWorldEditor
Include/ToolBar.hpp
<gh_stars>0 #pragma once #include "Precomp.hpp" #include "ElementBrowser.hpp" #include "TabHeader.hpp" #include "TriggerTool.hpp" #include "GameElementsTool.hpp" #include "NavigationMeshTool.hpp" class ToolBar : public clan::GUIComponent{ public: ToolBar(GUIComponent *owner, Rect f, clan::Callback_1<bool, const c...
imdairies/imd-farm-solutions
src/main/java/com/imd/util/ConfigurationManager.java
package com.imd.util; import java.util.HashMap; import org.joda.time.LocalTime; public class ConfigurationManager { private static HashMap<String, Object> orgConfigurations = null; private static HashMap<String, Object> globalConfigurations = null; private static HashMap<String, Object> sessionConfigurations = ...
RuedigerLudwig/advent2018
src/main/scala/savinien/aoc18/day22/CaveService.scala
<reponame>RuedigerLudwig/advent2018 package savinien.aoc18 package day22 import common.* import zio.* case class CaveService(input: AdventInput.Service) extends SingleDay.Service: override def part1 = for data <- input.getData map <- CaveService.fromString(data) yield AdventNumResult(map.riskF...
FAD95/NEXT.JS-Course
node_modules/@iconify/icons-mdi/src/bottle-soda.js
let data = { "body": "<path d=\"M15 11v9a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-9a2 2 0 0 1 .6-1.42C11.1 7.89 11 4 11 4h-1V2h4v2h-1s-.1 3.89 1.4 5.58A2 2 0 0 1 15 11z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; export default data;
PacktPublishing/Mastering-IPython-4
Chapter 7/code9.py
<reponame>PacktPublishing/Mastering-IPython-4<filename>Chapter 7/code9.py from nvd3 import scatterChart %load_ext rpy2.ipython from rpy2.robjects import pandas2ri pandas2ri.activate() from rpy2.robjects import r import pandas df_cars = pandas2ri.ri2py(r['mtcars']) wt = df_cars['wt'] mpg = df_cars['mpg'] kwargs = {'shap...
rsn8887/mame2003-plus-libretro
src/machine/8254pit.c
#include "driver.h" /*#include <stdio.h>*/ #include "machine/8254pit.h" void pit8254_init (pit8254_interface *intf) { } void pit8254_w (int which, int offset, int data) { switch (offset) { case 0: log_cb(RETRO_LOG_DEBUG, LOGPRE "PIT8254#%d write %d to timer1\n",which, data); break; ...
ph-jo/runelite
runescape-client/src/main/java/class324.java
<reponame>ph-jo/runelite import net.runelite.mapping.Export; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("le") public class class324 { @ObfuscatedName("o") @ObfuscatedSignature( signature = "Lfe;" ) @Export("timer") static Timer time...
benoit-dubreuil/template-repo-cpp-full-ecosystem
conf/script/src/build_system/cmd/setup/_priv/cli/colorize.py
__all__ = ['colorize_header_label', 'colorize_label', 'colorize_path'] import colorama from ext.utils.path import * def colorize_header_label(header: str) -> str: return colorama.Fore.LIGHTCYAN_EX + header + colorama.Style.RESET_ALL def colorize_label(label: str) -> str: return color...
kmamal/node-sdl
tests/keyboard.test.js
<gh_stars>10-100 const sdl = require('..') const window = sdl.video.createWindow() window.on('keyDown', ({ scancode, key }) => { console.log({ scancode, key, _scancode: key && sdl.keyboard.getScancode(key), _key: sdl.keyboard.getKey(scancode), }) })
LiorKogan/RedisGraph
src/execution_plan/ops/op.c
/* * Copyright 2018-2020 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "op.h" #include "RG.h" #include "../../util/rmalloc.h" #include "../../util/simple_timer.h" /* Forward declarations */ Record ExecutionPlan_BorrowRecord(struct Execu...
zhangxinngang/pmd
pmd-core/src/main/java/net/sourceforge/pmd/cache/ChecksumAware.java
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.cache; import net.sourceforge.pmd.annotation.InternalApi; /** * Interface defining an object that has a checksum The checksum is a * fingerprint of the object's configuration, and *MUST* change if an...
d-kahara/store_manager_api
app/tests/v1/base_test.py
"""This class will contain test configurations""" import json import unittest from run import app from ...data import Data from instance.config import app_config reg_endpoint = "api/v1/auth/register" #Login endpoint login_endpoint = "api/v1/auth/login" class BaseTestCase(unittest.TestCase): """Base Tests""" ...
tails5555/Our_Title_Academy_2018_Server
UserAPI/src/main/java/io/kang/service/domain_service/implement_object/UserServiceImpl.java
package io.kang.service.domain_service.implement_object; import io.kang.domain.User; import io.kang.dto.UserDTO; import io.kang.enumeration.Type; import io.kang.repository.UserRepository; import io.kang.service.domain_service.interfaces.UserService; import io.kang.util.Encryption; import org.springframework.beans.fact...
BloomTech-Labs/labs9-employee-scheduler
client/src/components/EmployeeCard/Availability.js
<reponame>BloomTech-Labs/labs9-employee-scheduler import React, { Component } from 'react' import PropTypes from 'prop-types' import styled from '@emotion/styled' import system from '../../design/theme' import CardContainer from '../common/CardContainer' import { formatHours, utcDayToLocal } from '../../utils' const w...
hao-wang/Montage
js-test-suite/testsuite/2cca943741787722c4019614a9cb4f39.js
load("201224b0d1c296b45befd2285e95dd42.js"); // |jit-test| error: log is not defined if (!this.Promise) throw new Error('log is not defined'); var g = newGlobal(); var dbg = new Debugger(g); dbg.onPromiseSettled = function (g) { log += 's'; throw "foopy"; }; g.settlePromiseNow(new g.Promise(function (){}));
samphin/finish-projects
PomeloOrder/wallet-user-server/src/main/java/com/ryit/walletuserserver/service/WalletMenuService.java
<gh_stars>1-10 package com.ryit.walletuserserver.service; import com.ryit.commons.entity.pojo.WalletMenu; import com.ryit.commons.entity.vo.WalletMenuVo; import java.util.List; /** * @author: zhangweixun * @Date: 2019/9/21 0021下午 3:13 */ public interface WalletMenuService { /** * 添加菜单 * * @par...
moqmar/wekan
server/publications/swimlanes.js
<reponame>moqmar/wekan<gh_stars>1-10 Meteor.methods({ moveSwimlane(swimlaneId, toBoardId) { check(swimlaneId, String); check(toBoardId, String); const swimlane = Swimlanes.findOne(swimlaneId); const fromBoard = Boards.findOne(swimlane.boardId); const toBoard = Boards.findOne(toBoardId); if (...
colohr/wwi
components/struct/logic/load.es6
<reponame>colohr/wwi window.fxy.exports('struct',(struct,fxy)=>{ struct.library = {folder:window.components.struct.path} //load load() //exports struct.load = { get actions(){ return load_actions }, get index(){ return get_index }, get ui(){ return load_ui }, get url(){ return get_url } } //shared acti...
olevitt/sugoi-api
sugoi-api-services/src/main/java/fr/insee/sugoi/services/controller/v2/ConfigController.java
package fr.insee.sugoi.services.controller.v2; import java.util.List; import java.util.stream.Collectors; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation....
anmolnar/cloudbreak
core/src/main/java/com/sequenceiq/cloudbreak/core/flow2/cluster/reset/ClusterResetState.java
package com.sequenceiq.cloudbreak.core.flow2.cluster.reset; import com.sequenceiq.flow.core.FlowState; import com.sequenceiq.flow.core.RestartAction; import com.sequenceiq.cloudbreak.core.flow2.restart.FillInMemoryStateStoreRestartAction; public enum ClusterResetState implements FlowState { INIT_STATE, CLUSTE...
katarineaid/admin-BGS-E
back-server/services/auth/isAuthenticated.js
module.exports = function isAuthenticated(model, config) { return async function(params) { return await firstFunction(params, model, config); }; }; async function firstFunction(params, model, config) { let isAuth = await model.auth.isAuthenticated(params); return isAuth; }
ulisse1996/JAORM
jaorm-processor/src/test/resources/queries/QueryWithStream.java
<reponame>ulisse1996/JAORM package io.test; import io.github.ulisse1996.jaorm.annotation.Query; import io.test.SimpleEntity; import java.util.stream.Stream; public interface QueryWithStream { @Query(sql = "SELECT * FROM E WHERE ONE = ?") Stream<SimpleEntity> selectAll(String one); }
WhitmoreLakeTroBots/2019-DeepSpace
src/main/java/org/usfirst/frc3668/DeepSpace/commands/cmdGraspHatch.java
<filename>src/main/java/org/usfirst/frc3668/DeepSpace/commands/cmdGraspHatch.java<gh_stars>0 package org.usfirst.frc3668.DeepSpace.commands; import org.usfirst.frc3668.DeepSpace.Robot; import org.usfirst.frc3668.DeepSpace.Settings; import edu.wpi.first.wpilibj.command.Command; public class cmdGraspHatch extends Comm...
sachinshrestha483/AlgoDS
src/problems/medium/Combination.java
package problems.medium; import java.util.ArrayList; import java.util.List; /** * Created by sherxon on 6/3/17. */ public class Combination { private static void exec(List<List<Integer>> list, boolean[] b, int k, int i) { if (k < 0) { return; } if (k == 0) { List<Integer> l = new ArrayLis...
rapydo/do
controller/commands/tuning_modules/backend.py
<reponame>rapydo/do def tuning(ram: int, cpu: int) -> None: print(f"GUNICORN_MAX_NUM_WORKERS: {1 + 2 * cpu}")
ShnitzelKiller/polyfit
include/polyvec/regularity/collapse_opposite_short_segments.hpp
#pragma once #include <polyvec/core/macros.hpp> #include <polyvec/core/types.hpp> #include <polyvec/regularity/construct_regularity_graph.hpp> NAMESPACE_BEGIN(polyvec) NAMESPACE_BEGIN(Regularity) void collapse_opposite_short_segments( const polyfit::mat2x& B, polyfit::vecXi& P, const polyfit::Regularity::Regulari...
clayne/CyberpunkSaveEditor
source/tools/rtti_dumper_dll/mem.hpp
<reponame>clayne/CyberpunkSaveEditor #pragma once #include <inttypes.h> #include <vector> #include <algorithm> #include <redx/core/utils.hpp> // maybe these utils could go in a mini lib.. namespace dumper { struct address_range { uintptr_t start = 0; uintptr_t end = 0; size_t size() const { ...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/CoreRC.framework/CoreCECDeviceProvider.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CoreRC.framework/CoreRC */ @interface CoreCECDeviceProvider : CoreCECDevice { unsigned short _deckStatusRequestMask; unsigned char _sendFromAddress; unsigned int _userControlFollowerSafetyTimeoutGeneration; struct { ...
zhangshixu209/qiaoyang
src/main/java/com/chmei/nzbcommon/cmutil/BeanUtil.java
package com.chmei.nzbcommon.cmutil; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; ...
philuu12/PYTHON_4_NTWK_ENGRS
wk7_hw/library/ex3_add_vlan_arista.py
#!/usr/bin/env python # Symbolically linked to this real file: /home/pluu/ANSIBLE/library/ex3_add_vlan_arista.py import pyeapi from ansible.module_utils.basic import * def check_vlan_exists(eapi_conn, vlan_id): ''' Check if the given VLAN exists Return either vlan_name or False ''' vlan_id = str(vl...
tavaresdong/courses-notes
uw_cse333/exs/ex4/ex4.c
#include "GetPrime.h" #include <stdio.h> #include <inttypes.h> #include <stdlib.h> int main(int argc, char **argv) { for(int ind = 1; ind <= 10; ++ind) printf("%llu ", GetPrime(ind)); return EXIT_SUCCESS; }
hYdos/Create
src/main/java/com/simibubi/create/content/curiosities/tools/ExtendoGripRenderHandler.java
package com.simibubi.create.content.curiosities.tools; import com.jozufozu.flywheel.core.PartialModel; import com.jozufozu.flywheel.util.transform.MatrixTransformStack; import com.mojang.blaze3d.systems.RenderSystem; import com.mojang.blaze3d.vertex.PoseStack; import com.simibubi.create.AllBlockPartials; import com.si...
Nasdan/phone-catalog
frontend/src/pages/phones/list/components/index.js
export * from './header'; export * from './list';
lsytj0413/fyllo
pkg/segment/builder/builder.go
// Copyright (c) 2018 <NAME> // // Licensed under the MIT License // you may not use this file except in complicance with the License. // You may obtain a copy of the License at // // https://opensource.org/licenses/MIT // // Unless required by applicable law or agreed to in writing, software // distributed under t...
vitimachado/bexsit
src/components/card/vote-buttons.js
<filename>src/components/card/vote-buttons.js import React, { useEffect, useState } from 'react'; import './card.css'; import Tooltip from '@material-ui/core/Tooltip'; import Button from '@material-ui/core/Button'; import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp'; import KeyboardArrowDownIcon f...
nolbuzanis/Impressions
client/src/components/Player.js
import React from 'react'; import './Player.css'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom'; import { playSong } from '../actions'; //Tippy.js import tippy from 'tippy.js'; import 'tippy.js/dist/tippy.css'; class Player extends React.Component { state = { paused: true, ...
NatickYT/CraftTweaker
Common/src/gametest/java/com/blamejared/crafttweaker/gametest/test/api/util/InstantiationUtilTest.java
<gh_stars>1-10 package com.blamejared.crafttweaker.gametest.test.api.util; import com.blamejared.crafttweaker.api.util.InstantiationUtil; import com.blamejared.crafttweaker.gametest.CraftTweakerGameTest; import com.blamejared.crafttweaker.gametest.CraftTweakerGameTestHolder; import com.blamejared.crafttweaker.gametest...
friskit-china/leetcode-cn-repo
leetcode/leetcode_0167_easy_two_sum_ii_input_array_is_sorted/v01.java
package leetcode.leetcode_0167_easy_two_sum_ii_input_array_is_sorted; public class v01 { static class Solution { public int[] twoSum(int[] numbers, int target) { int i = 0; int j = numbers.length - 1; while (true){ if (numbers[i] + numbers[j] < target...
AlbertHello/CommonDataStructure
LeetCode/LeetCode/算法/_190_Reverse_Bits.h
// // _190_Reverse_Bits.h // LeetCode // // Created by 58 on 2020/12/28. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface _190_Reverse_Bits : NSObject @end NS_ASSUME_NONNULL_END
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
Chapter05/gen_comprehension_loop.py
<reponame>PacktPublishing/Secret-Recipes-of-the-Python-Ninja<filename>Chapter05/gen_comprehension_loop.py for i in g:
threepointone/built-devtools
front_end/panels/elements/ImagePreviewPopover.js
// Copyright 2020 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. import * as Components from '../../ui/legacy/components/utils/utils.js'; import * as UI from '../../ui/legacy/legacy.js'; /** * ImagePreviewPopover sets l...
LeonardoFerraz25/Trybe-exercicios
Fundamentos/bloco-4/dia4.3/ex002.js
let word = 'Trybe'; let reverse =[]; for(let i = word.length-1; i >= 0; i--){ reverse += word[i]; } console.log(reverse);
brushknight/homebrew-core
Formula/vlang.rb
class Vlang < Formula desc "V programming language" homepage "https://vlang.io" # NOTE: Keep this in sync with V compiler below when updating url "https://github.com/vlang/v/archive/0.2.2.tar.gz" sha256 "9152eec96d2eeb575782cf138cb837f315e48c173878857441d98ba679e3a9bf" license "MIT" livecheck do url ...
DACH-NY/dazl-client
python/tests/unit/test_simple_client_api.py
# Copyright (c) 2017-2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 import logging from dazl import simple_client from .blocking_setup import blocking_setup from .dars import PostOffice def test_simple_client_api(sandbox): party = blockin...
jalenng/icare-mini
src/preferences/tabs/Appearance.js
<reponame>jalenng/icare-mini /** * @file The "Appearance" tab in Preferences * @author jalenng */ /* eslint-disable no-undef */ import React from 'react' import { Stack, Text, Toggle, ChoiceGroup } from '@fluentui/react' import { StackProps } from '../../SharedProps' const themeOptions = [ { key: ...
raceup/yolo
app/src/it/raceup/yolo/models/data/Parser.java
<reponame>raceup/yolo<filename>app/src/it/raceup/yolo/models/data/Parser.java package it.raceup.yolo.models.data; import it.raceup.yolo.error.ExceptionType; import it.raceup.yolo.error.YoloException; import it.raceup.yolo.utils.Misc; import java.util.ArrayList; import java.util.Arrays; public class Parser { pri...
isonbpo/iSONHelpDesk
dist/out-tsc/src/app/sidebar/sidebar.component.js
<gh_stars>0 import * as tslib_1 from "tslib"; import { Component, ViewChild } from '@angular/core'; import { MatSidenav } from '@angular/material'; let SidebarComponent = class SidebarComponent { constructor() { this.isExpanded = true; this.showSubmenu = false; this.isShowing = false; ...
JackieMa000/problems
DSA/Cpp/test/dsa/lib/utils/algorithms/none_of_test.cpp
#include <list> #include <dsa/lib/libdef.h> #include <dsa/lib/utils/algorithm.hpp> #include <dsa/lib/utils/math.hpp> namespace dsa { namespace { TEST(NoneOfTest, case1) { int nums[] = {2, 4, 6, 8}; EXPECT_FALSE(dsa::none_of(nums, nums + arylen(nums), isEven)); EXPECT_TRUE(dsa::none_of(nums, nums, isEven)...
Tom-TBT/QDSpy
QDSpy_stim_draw.py
<gh_stars>0 #!/usr/bin/env python # -*- coding: utf-8 -*- """ QDSpy module - routines to generate graphical objects as vertex lists This module is a graphics API independent. Copyright (c) 2013-2016 <NAME> All rights reserved. """ # --------------------------------------------------------------------- __author__ =...
mayronceccon/work-at-olist-library
utils/file_read.py
<gh_stars>0 import csv import contextlib class FileRead: def __init__(self, file): self.__data = [] self.__file = file def execute(self): self.__open_file(self.__file) def get_data(self): return self.__data def __open_file(self, file_import): with open(file_i...
7dudtj/BOJ_myCode
DFS/16946_벽 부수고 이동하기 4/16946_벽 부수고 이동하기 4.java
<reponame>7dudtj/BOJ_myCode import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; import java.util.Arrays; public class Main { // set static variables static int N, M; static int[][] map; static boolean[][] wall; static boole...
JuhoL/ASch
Utils/include/Utils_Types.hpp
<filename>Utils/include/Utils_Types.hpp //----------------------------------------------------------------------------------------------------------------------------- // Copyright (c) 2018 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // docu...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/PhotoLibraryServices/PLSimpleDCIMDirectory.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSFileManager, NSMutableIndexSet, NSObject<OS_dispatch_queue>, NSString, NSURL; @interface PLSimpleDCIMDirectory : NSObject { NSURL *_baseURL; NSStri...
mauvealerts/Spelunky2X64DbgPlugin
include/QtHelpers/TreeViewMemoryFields.h
<filename>include/QtHelpers/TreeViewMemoryFields.h #pragma once #include "Data/EntityDB.h" #include "Data/MemoryMappedData.h" #include "QtHelpers/StyledItemDelegateHTML.h" #include "Spelunky2.h" #include "Views/ViewToolbar.h" #include <QDragEnterEvent> #include <QDropEvent> #include <QStandardItem> #include <QTreeView...
kkoskelin/ef-cms
shared/src/proxies/trialSessions/getTrialSessionDetailsProxy.js
const { get } = require('../requests'); /** * getTrialSessionDetailsInteractor * * @param {object} providers the providers object * @param {object} providers.applicationContext the application context * @param {string} providers.trialSessionId the id of the trial session to get the details * @returns {Promise<*>...
sailzeng/zcelib
src/commlib/zcelib/zce_lock_process_mutex.cpp
<filename>src/commlib/zcelib/zce_lock_process_mutex.cpp #include "zce_predefine.h" #include "zce_os_adapt_mutex.h" #include "zce_os_adapt_time.h" #include "zce_os_adapt_rwlock.h" #include "zce_os_adapt_semaphore.h" #include "zce_os_adapt_error.h" #include "zce_log_logging.h" #include "zce_time_value.h" #include "zce_lo...
matheus-stabile/orange-talents-02-template-ecommerce
ecommerce/src/main/java/br/com/zup/ecommerce/shared/services/MailerService.java
package br.com.zup.ecommerce.shared.services; public interface MailerService { void send(EmailMessage message); }
kostmetallist/prom-extended
src-Models/org/processmining/models/graphbased/directed/analysis/ShortestPathFactory.java
/** * */ package org.processmining.models.graphbased.directed.analysis; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.processmining.models.graphbased.directed.DirectedGraph; import org.processmining.models.graphbased.directed.DirectedGra...
Arvenwood/Bending
bending-api/src/main/java/pw/dotdash/bending/api/temp/TempBlock.java
<filename>bending-api/src/main/java/pw/dotdash/bending/api/temp/TempBlock.java package pw.dotdash.bending.api.temp; import org.spongepowered.api.Sponge; import org.spongepowered.api.block.BlockState; import org.spongepowered.api.block.BlockType; import org.spongepowered.api.util.ResettableBuilder; import org.spongepow...
Strabox/vehicle-manager
src/test/java/com/pt/pires/service/integration/VehicleIntegratorServiceTest.java
package com.pt.pires.service.integration; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import javax.inject.Inject; import javax.inject.Named; import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; ...
EffieChantzi/UCSC-Genome-Browser
kent/src/hg/cirm/cdw/lib/cdwTagStorm.c
/* cdwTagStorm - create a tag storm out of database contents. */ #include "common.h" #include "hash.h" #include "dystring.h" #include "cheapcgi.h" #include "jksql.h" #include "tagStorm.h" #include "intValTree.h" #include "cdw.h" #include "cdwLib.h" static void addPairedEndTags(struct tagStorm *tagStorm, struct tagSta...
HydrologicEngineeringCenter/go-coastal
geometry/triangle.go
<filename>geometry/triangle.go package geometry import "errors" type Triangle struct { p1 *PointZ p2 *PointZ p3 *PointZ extent Extent } func CreateTriangle(a *PointZ, b *PointZ, c *PointZ) Triangle { var minx, miny, maxx, maxy float64 minx = 180 miny = 180 maxx = -180 maxy = -180 if maxx < a.X ...
hanxiaobott/normal
src/main/java/com/example/self/normalpractice/proxy/jdk/SelfInvocationHandler.java
<reponame>hanxiaobott/normal package com.example.self.normalpractice.proxy.jdk; import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** * @description: * @author: hanxiaobo * @create: 2021-01-25 10:10 */ public class SelfInvocationHandl...
osgirl/Adept
adept-api/src/main/java/adept/common/SyntacticTagFactory.java
package adept.common; /*- * #%L * adept-api * %% * Copyright (C) 2012 - 2017 <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/LICE...
KLumy/pacemaker-spa-client
src/common/utility/string.js
<gh_stars>1-10 export const startUpperCase = (string) => string.charAt(0).toUpperCase() + string.slice(1); export const removeTag = (string) => string.replace(/<(.|\n)*\/.*>/g, ''); export const excludeNonASCII = (string, extended = false) => string.replace(extended ? /[^\x00-\xFF]/g : /[^\x00-\x7F]/g, ''); expo...
ksoderbl/thinmatrix-opengl-3d-game-tutorial-cpp-sdl2
src/particles/ParticleSystem.h
#ifndef PARTICLESYSTEM_H #define PARTICLESYSTEM_H #include "../Headers.h" #include "ParticleTexture.h" class ParticleSystem { public: ParticleSystem(ParticleTexture& texture, GLfloat pps, GLfloat speed, GLfloat gravityCompliant, GLfloat lifeLength, GLfloat scale); void setDirection(glm::vec3 direction, GLfloat devi...
jeffbrown/Building-Microservices-with-Micronaut
Chapter02/micronaut-petclinic/pet-owner/src/main/java/com/packtpub/micronaut/service/PetTypeService.java
package com.packtpub.micronaut.service; import com.packtpub.micronaut.domain.PetType; import io.micronaut.data.model.Page; import io.micronaut.data.model.Pageable; import java.util.Optional; /** * Service Interface for managing {@link com.packtpub.micronaut.domain.PetType}. */ public interface PetTypeService { ...
lonord/reeasy.js
bin/reeasy.js
<reponame>lonord/reeasy.js<filename>bin/reeasy.js #!/usr/bin/env node /* * Created on Fri Jun 30 2017 * * Copyright (c) 2017 <NAME>. <<EMAIL>> */ const program = require('commander') const path = require('path') const package = require('../package.json') const builder = require('../lib/builder') const server = re...
fzf/qmk_toolbox
users/mguterl/mguterl.c
#include "mguterl.h"
yoolk/aop-client
lib/aop-client/config.rb
module AopClient class Config include ActiveModel::Validations ## Attributes attr_accessor :app_key attr_accessor :app_secret attr_accessor :api_entry attr_accessor :oauth_entry attr_accessor :access_token attr_accessor :sign_method attr_accessor :format attr_accessor :version...
wokalski/Distraction-Free-Xcode-plugin
Archived/v1/WCDistractionFreeXcodePlugin/Headers/PlugIns/DebuggerUI/DBGLabelExpressionEntry.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSString; @interface DBGLabelExpressionEntry : NSObject { BOOL _forceLanguageToObjectiveCPlusPlus; NSString *_label; NSString *_expressionFormat;...
LoongPenguin/Linux_210
xboot/src/arch/arm32/mach-x210ii/include/s5pv210/reg-nand.h
#ifndef __S5PV210_REG_NAND_H__ #define __S5PV210_REG_NAND_H__ #define S5PV210_NFCONF (0xb0e00000) #define S5PV210_NFCONT (0xb0e00004) #define S5PV210_NFCMD (0xb0e00008) #define S5PV210_NFADDR (0xb0e0000c) #define S5PV210_NFDATA (0xb0e00010) #define S5PV210_NFMECCD0 (0xb0e00014) #define S5PV210_NFMECC...
18702524730/servicerCenter
src/router/fillData/companyAuth.js
<reponame>18702524730/servicerCenter import {FillData} from 'views/'; export default { path: 'companyAuth', name: 'companyAuth', meta:{ name: '机构实名认证', permission: 'true' }, icon: 'inbox', component: FillData.companyAuth };
ac111897/AS91892
docs/search/functions_f.js
<reponame>ac111897/AS91892 var searchData= [ ['write_0',['Write',['../class_time_span_converter.html#ab672e779c15544cf88e4a927d73229e2',1,'TimeSpanConverter']]] ];
ethansaxenian/RosettaDecode
lang/C/sierpinski-triangle-4.c
int main() { sierpinski_triangle(4); return EXIT_SUCCESS; }
Akirix/akirix-suite
uber-app/app/routes/dashboard.js
<reponame>Akirix/akirix-suite import Ember from 'ember'; import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend( AuthenticatedRouteMixin, { model: function(){ return null; }, activate: function(){ document.title = "Dashboard";...
gyyang/olfaction_evolution
analytical/peter.py
import numpy as np import matplotlib.pyplot as plt from itertools import combinations from mpl_toolkits.mplot3d import Axes3D from sklearn.metrics.pairwise import euclidean_distances def get_labels(prototypes, odors): dist = euclidean_distances(prototypes, odors) label = np.argmin(dist, axis=0) return lab...
marcelosalles/pyidf
tests/test_airloophvacoutdoorairsystemequipmentlist.py
import os import tempfile import unittest import logging from pyidf import ValidationLevel import pyidf from pyidf.idf import IDF from pyidf.air_distribution import AirLoopHvacOutdoorAirSystemEquipmentList log = logging.getLogger(__name__) class TestAirLoopHvacOutdoorAirSystemEquipmentList(unittest.TestCase): de...
Boriscx/-
src/main/java/com/cy/pj/sys/aspect/SysExceptionAspect.java
<reponame>Boriscx/-<gh_stars>0 package com.cy.pj.sys.aspect; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.reflect.MethodSignature; import org.springframework.core.annotation.Orde...
creazydev/epidemic-simulator
src/main/java/com/github/epidemicsimulator/EpidemicSimulatorApplication.java
package com.github.epidemicsimulator; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class EpidemicSimulatorApplication { public static void main(String[] args) { SpringApplication.run(EpidemicSimulatorApplicati...
RUAN0007/Hybrid-Blockchain-Database-Systems
tso/examples/benchmark.go
<reponame>RUAN0007/Hybrid-Blockchain-Database-Systems package main import ( "fmt" "hybrid/tso" "sync" "time" "gopkg.in/alecthomas/kingpin.v2" ) var ( tsoAddr = kingpin.Flag("addr", "tso server address").Default(":7070").String() concurrency = kingpin.Flag("concurrency", "client num").Default("20").Int() ...
nkedel/jetty.project
jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/endpoints/JsrEndpointImpl.java
<filename>jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/endpoints/JsrEndpointImpl.java // // ======================================================================== // Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others. // ----------------------------------...
importlib/klib
master/core/third/cxxtools/src/mime.cpp
/* * Copyright (C) 2007 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * As a special exc...
s-aska/Justaway-for-Android-Original
Justaway/src/main/java/info/justaway/listener/RemoveAccountListener.java
<gh_stars>10-100 package info.justaway.listener; import twitter4j.auth.AccessToken; public interface RemoveAccountListener { void removeAccount(AccessToken accessToken); }
lucas-barros/cadhub
docs/src/pages/index.js
<reponame>lucas-barros/cadhub import React from 'react' import clsx from 'clsx' import Layout from '@theme/Layout' import Link from '@docusaurus/Link' import useDocusaurusContext from '@docusaurus/useDocusaurusContext' import useBaseUrl from '@docusaurus/useBaseUrl' import styles from './styles.module.css' export defa...
jokokoloko/ghost
src/style.js
// Hero export const HERO_OPACITY = 'opacity-30'; export const HERO_TINT = 'dark-50'; export const HERO_COLOR = 4;
JuzamDjinn91/NES-Snake
gfx/level4_nam.h
/** * @file level4_nam.h * @brief This header file contains the nametable (background) of level map 4. * Created with NES Screen Tool 2.04 (Option Nametable -> Save nametable and attributes -> RLE packed as C header (.h). * * @author <NAME> * */ const unsigned char level4_nam[383]={ 0x01,0x00,0x01,0x20,0x33,0x23...
jrfaller/maracas
test-data/comp-changes/client/src/mainclient/methodNowAbstract/MethodNowAbstractExt.java
package mainclient.methodNowAbstract; import main.methodNowAbstract.MethodNowAbstract; public class MethodNowAbstractExt extends MethodNowAbstract { @Override public int methodStayAbstract() { return 0; } public int methodNowAbstractClientSuperKey() { return super.methodNowAbstract(); } public int metho...
braymar/afl
qemu_mode/qemu-2.10.0/roms/u-boot/board/sbc8641d/sbc8641d.c
<reponame>braymar/afl<gh_stars>1-10 /* * Copyright 2007 Wind River Systemes, Inc. <www.windriver.com> * Copyright 2007 Embedded Specialties, Inc. * <NAME> <EMAIL> * * Copyright 2004 Freescale Semiconductor. * <NAME> * <NAME> (<EMAIL>) * * (C) Copyright 2002 <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2...
RicardoAugusto-RCD/exercicios_python
exercicios/ex084a.py
# Faça um programa que leia nome e peso de várias pessoa, guardando tudo em uma lista. No final, mostre: # a) Quantas pessoa foram cadastradas. # b) Uma listagem com as pessoa mais pesadas. # c) Uma listagem com as pessoa mais leves. temp = [] princ = [] mai = men = 0 while True: temp.append(str(input('Nome: '))...
Horizon-Blue/playground
Solutions-to-Books/C++Primer/Chapter09/9.49.cpp
// A letter has an ascender if, as with d or f, // part of the letter extends above the middle of // the line. A letter has a descender if, as with p // or g, part of the letter extends below the line. // Write a program that reads a file containing words // and reports the longest word that contains neither // ascende...
SachiSakurane/libmk2
include/mk2/debug.hpp
// // Created by SachiSakurane on 2019-03-27. // #pragma once #include <mk2/debug/build_type.hpp> #include <mk2/debug/debug_log.hpp>