repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
JartC0ding/libc
sys/send.c
<gh_stars>0 #include <sys/net.h> #include <sys/get_syscall_id.h> #include <string.h> int sys_socket_send_id = -1; int send(int socket, const void* data, size_t size) { if (sys_socket_send_id == -1) { sys_socket_send_id = get_syscall_id("sys_socket_send"); } int success = 0; __asm__ __volatile__ ("int $0x30" ...
roy-zz/algorithm
src/test/java/com/roy/algorithm/inflearn/retry1/array/FlipPrimeNumber.java
<gh_stars>0 package com.roy.algorithm.inflearn.retry1.array; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.List; import static org.junit.jupiter.api.Assertions.assertArrayEquals; // ๋’ค์ง‘์€ ์†Œ์ˆ˜ // // N๊ฐœ์˜ ์ž์—ฐ์ˆ˜๊ฐ€ ์ž…๋ ฅ๋˜๋ฉด ๊ฐ ์ž์—ฐ์ˆ˜๋ฅผ ๋’ค์ง‘์€ ํ›„ ๊ทธ ๋’ค์ง‘์€ ์ˆ˜๊ฐ€ ์†Œ์ˆ˜์ด๋ฉด ๊ทธ ์†Œ์ˆ˜...
ForeverZer0/fmod
lib/fmod/channel_control.rb
<reponame>ForeverZer0/fmod module FMOD ## # @abstract # The base class for both {Channel} and {ChannelGroup} objects. class ChannelControl < Handle ## # Describes a volume point to fade from or towards, using a clock offset and # 0.0 to 1.0 volume level. # # @attr clock [Integer] DSP cloc...
1980s-housewife/TFM-4.3-Reloaded
src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_permban.java
package me.StevenLawson.TotalFreedomMod.commands; import me.StevenLawson.TotalFreedomMod.ban.PermbanList; import org.apache.commons.lang3.StringUtils; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; @CommandPermissions(level = AdminLevel.SUPER, source = SourceT...
isabella232/openui5-fhir
test/sap-fhir-test-app/webapp/controller/structureDefinition/StructureDefinition.controller.js
sap.ui.define([ "sap/ui/core/mvc/Controller", "../../utils/Utils", "sap/m/MessageBox", "../../utils/Formatter", "sap/base/Log" ], function(Controller, Utils, MessageBox, Formatter, Log) { "use strict"; return Controller.extend("sap-fhir-test-app.controller.structureDefinition.StructureDefinition", { formatte...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/CDPObserver.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @protocol PromotionCenterDelegate; @interface CDPObserver : NSObject { int _type; id <PromotionCenterDele...
iridium-browser/iridium-browser
chrome/browser/vr/elements/text_button.h
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_VR_ELEMENTS_TEXT_BUTTON_H_ #define CHROME_BROWSER_VR_ELEMENTS_TEXT_BUTTON_H_ #include <memory> #include "base/macros.h" #include ...
Mu-L/arangodb
3rdParty/rocksdb/6.27/db_stress_tool/db_stress_common.cc
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // Copyright (c) 2011 The LevelDB Authors. All rights r...
bugsbunnyshah/braineous_dataplatform
src/main/java/com/appgallabs/dataplatform/query/ObjectGraphQueryService.java
package com.appgallabs.dataplatform.query; import com.appgallabs.dataplatform.ingestion.service.MapperService; import com.appgallabs.dataplatform.util.JsonUtil; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import org.apache.tinkerpop.gremlin.process.traversal....
cmsxbc/oneDAL
cpp/daal/src/algorithms/dbscan/oneapi/dbscan_kernel_ucapi.h
/* file: dbscan_kernel_ucapi.h */ /******************************************************************************* * Copyright 2020-2021 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the...
spacether/keyboardplotter
setup.py
<filename>setup.py from setuptools import setup, find_packages import pathlib this_directory = pathlib.Path(__file__).parent with open(this_directory / 'README.md', encoding='utf-8') as f: long_description = f.read() version = {} with open(this_directory.joinpath('keyboardlayout', 'version.py')) as f: exec(f....
WorkPlusFE/js-sdk
dist/contact/getContacts.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core = require("../core"); var constants_1 = require("../constants"); /** * ๆ‰“ๅผ€ๅฝ“ๅ‰็ป„็ป‡็š„่”็ณปไบบๅˆ—่กจ๏ผŒ้€‰ๆ‹ฉๅคšไธช่”็ณปไบบ * * @export * @param {ContactsOptions} [options] * @returns {Promise<ContactsRes>} */ function getContacts(options) { var args = { ...
Bloodknight/NeuTorsion
code/wxWidgets/src/mgl/dirmgl.cpp
///////////////////////////////////////////////////////////////////////////// // Name: mgl/dir.cpp // Purpose: wxDir implementation for MGL // Author: <NAME>, <NAME> // Modified by: // Created: 2001/12/09 // RCS-ID: $Id: dirmgl.cpp,v 1.8 2005/04/05 16:10:15 ABX Exp $ // Copyright: (c) 1999 <N...
vanrez-nez/glory-box-game
src/game/enemy/enemy-rays.js
<filename>src/game/enemy/enemy-rays.js import { EVENTS } from '@/game/const'; import JobScheduler from '@/game/job-scheduler'; import GameEnemyRaySfx from '@/game/sfx/enemy-ray-sfx'; const DEFAULT = { parent: null, maxRays: 3, }; export default class GameEnemyRays { constructor(opts) { this.opts = { ...DEFA...
AlexChartrand440/advanced-java
04.040 Creating Tables/src/main/java/application/App.java
<reponame>AlexChartrand440/advanced-java package application; import java.sql.DriverManager; import java.sql.SQLException; public class App { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("org.sqlite.JDBC"); String dbUrl = "jdbc:sqlite:people.db"; var...
BeYkeRYkt/CyanWool
src/main/java/net/CyanWool/block/entity/CyanTileEntity.java
<reponame>BeYkeRYkt/CyanWool package net.CyanWool.block.entity; import net.CyanWool.api.block.Block; import net.CyanWool.api.block.BlockState; import net.CyanWool.api.block.entity.TileEntity; import org.spacehq.opennbt.tag.builtin.CompoundTag; public abstract class CyanTileEntity implements TileEntity { private...
punkieL/proCon
leetcode/1-100/13-roman-to-integer/13.cc
#include "iostream" #include "unordered_map" #include "string" #include "vector" #include "climits" using namespace std; class Solution { //I, V, X, L, C, D, M //1, 5, 10, 50, 100, 500, 1000 /*const vector<int> nums = { 1,5,10,50,100,500,1000 }; const vector<char> alphabet = { 'I', 'V', 'X', 'L', 'C...
Arodev76/L2Advanced
src/main/java/l2f/gameserver/network/serverpackets/ExMoveToLocationAirShip.java
<reponame>Arodev76/L2Advanced package l2f.gameserver.network.serverpackets; import l2f.gameserver.model.entity.boat.Boat; import l2f.gameserver.utils.Location; public class ExMoveToLocationAirShip extends L2GameServerPacket { private int _objectId; private Location _origin, _destination; public ExMoveToLocationAi...
swthomas55/QuickTheories
src/main/java/org/quicktheories/quicktheories/generators/ArbitraryDSL.java
package org.quicktheories.quicktheories.generators; import java.util.List; import org.quicktheories.quicktheories.core.Source; /** * Class for creating Sources of constant values, enum values, sequences and * specified items of the same type */ public class ArbitraryDSL { /** * Generates the same constant v...
Arquisoft/Voting_2b
VotingSystem_2b/src/main/java/es/uniovi/asw/electionday/parser/RCandidatureExcel.java
<filename>VotingSystem_2b/src/main/java/es/uniovi/asw/electionday/parser/RCandidatureExcel.java package es.uniovi.asw.electionday.parser; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apa...
reTHINK-project/dev-slack-interworking
server/ephemeral-auth/api/controllers/CredentialController.js
/** * CredentialController * * @description :: Server-side logic for managing credentials * @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers */ var fetch = require('node-fetch'); var crypto = require('crypto'); var secret = sails.config.ephemeral.secret_key; var uri = sails.config.ephem...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/BookLibrary.framework/BookLibrary.h
<filename>System/Library/PrivateFrameworks/BookLibrary.framework/BookLibrary.h<gh_stars>1-10 #import <BookLibrary/BLSSDownloadManifestRequestAdapter.h> #import <BookLibrary/BLStoreItemMetadataRequest.h> #import <BookLibrary/BLSecureOfflineKeyDeliveryRequest.h> #import <BookLibrary/BLStreamingKeyRequest.h> #import <Book...
qtlmovie/qtlmovie
src/TestUnit/QtlVariableTest.cpp
<reponame>qtlmovie/qtlmovie //---------------------------------------------------------------------------- // // Copyright (c) 2013-2017, <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:...
henrikfroehling/polyglot
lib/src/Delphi/Syntax/Expressions/DelphiSetConstructorSyntax.hpp
#ifndef INTERLINCK_DELPHI_SYNTAX_DELPHISETCONSTRUCTORSYNTAX_H #define INTERLINCK_DELPHI_SYNTAX_DELPHISETCONSTRUCTORSYNTAX_H #include "interlinck/Core/Syntax/SyntaxKinds.hpp" #include "interlinck/Core/Syntax/SyntaxVariant.hpp" #include "interlinck/Core/Types.hpp" #include "Core/Basic/Macros.hpp" #include "Delphi/Syntax...
aohanhongzhi/SpringCloud-multiple-gradle
common/src/main/java/hxy/dream/common/filter/TokenFilter.java
<filename>common/src/main/java/hxy/dream/common/filter/TokenFilter.java package hxy.dream.common.filter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.annotation.Order; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import j...
cys3c/viper-shell
application/scripts/vulnserver/vs-badchar-eip3.py
#!/usr/bin/python import time, struct, sys import socket as so try: server = sys.argv[1] port = 5555 except IndexError: print "[+] Usage %s host" % sys.argv[0] sys.exit() badchars = ( "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" "\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x...
instagram4j/instagram4j-realtime
src/main/java/com/github/instagram4j/realtime/utils/ZipUtil.java
package com.github.instagram4j.realtime.utils; import java.io.ByteArrayOutputStream; import java.util.zip.DataFormatException; import java.util.zip.Deflater; import java.util.zip.Inflater; public class ZipUtil { public static byte[] zip(byte[] in) { ByteArrayOutputStream baos = new ByteArrayOutpu...
KEVINYZY/plume
tests/test_perceptron.py
from plume.perceptron import PerceptronClassifier import numpy as np x_train = np.array([[3, 3], [4, 3], [1, 1]]) y_train = np.array([1, 1, -1]) clf = PerceptronClassifier(dual=False) clf.fit(x_train, y_train) print(clf.get_model()) print(clf.predict(x_train)) clf1 = PerceptronClassifier() clf1.fit(x_train, y_trai...
bigmadkev/poinz
client/test/unit/clientActionReducerTest.js
<filename>client/test/unit/clientActionReducerTest.js<gh_stars>0 import {v4 as uuid} from 'uuid'; import { CANCEL_EDIT_STORY, COMMAND_SENT, EDIT_STORY, EVENT_RECEIVED, HIDE_NEW_USER_HINTS, LOCATION_CHANGED, SET_LANGUAGE, STATUS_FETCHED, TOGGLE_BACKLOG, TOGGLE_LOG, TOGGLE_USER_MENU, SHOW_TRASH, ...
harper-carroll/kibana
src/ui/public/utils/diff_time_picker_vals.js
<reponame>harper-carroll/kibana import _ from 'lodash'; import angular from 'angular'; export default function DiffTimePickerValuesFn() { var valueOf = function (o) { if (o) return o.valueOf(); }; return function (rangeA, rangeB) { if (_.isObject(rangeA) && _.isObject(rangeB)) { if ( value...
nixsolutions/icalendar-bot
app/commands/unknown.rb
# frozen_string_literal: true module Commands class Unknown < Base private def handle_call(message, _user) send_message( chat_id: message.chat.id, text: message_text ) end def handle_callback(callback, _user, _args) answer_callback_query( callback_query_id:...
davidlamyc/ui-testing-infra-copy
src/step_definitions/support/interaction/fillInput.js
export default (elementLocator, text) => { $(currentPage[elementLocator]).waitForDisplayed(); $(currentPage[elementLocator]).setValue(text); }
bsulkowski/game-theory
src/gui/SpatialPayoffChoice.java
<gh_stars>0 package gametheory.gui; import gametheory.SymmetricDualGame; import gametheory.spatial.AveragePayoff; import gametheory.spatial.SpatialPayoff; import gametheory.spatial.SumPayoff; public class SpatialPayoffChoice extends ParametrizedChoice { public SpatialPayoffChoice() { choiceList = new String[] { ...
ekmixon/mbed-tools
src/mbed_tools/targets/get_board.py
<reponame>ekmixon/mbed-tools # # Copyright (c) 2020-2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # """Interface for accessing Mbed-Enabled Development Board data. An instance of `mbed_tools.targets.board.Board` can be retrieved by calling one of the public functions. ""...
yvenshane/CiLuNetwork
CiLuNetwork/CiLuNetwork/Classes/FaceRecognition/WindVaneBridge.framework/Headers/WVWebViewBasicProtocol.h
/* * WVWebViewBasicProtocol.h * * Created by WindVane. * Copyright (c) 2017ๅนด ้˜ฟ้‡Œๅทดๅทด-ๆท˜ๅฎๆŠ€ๆœฏ้ƒจ. All rights reserved. */ #import "WVBridgeProtocol.h" #import "WVJavaScriptExecutor.h" #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> /** * ๅŒ…ๅซไบ† WebView ๅŸบๆœฌๅŠŸ่ƒฝ็š„ๅ่ฎฎใ€‚ */ @protocol WVWebViewBasicProtocol <WVJavaScriptE...
black-vision-engine/bv-engine
BlackVision/LibBlackVision/Source/Engine/Models/Plugins/HelperUVGenerator.h
<reponame>black-vision-engine/bv-engine #pragma once #include "Mathematics/glm_inc.h" #include "Engine/Models/Plugins/Channels/Geometry/Simple/DefaultGeometryVertexAttributeChannel.h" namespace bv{ namespace model{ namespace Helper { class UVGenerator { private: static void ScaleVec2 ( ...
andrewyang96/AdventOfCode2017
day13/solution.py
<gh_stars>0 from typing import Dict def get_packet_scan_severity(firewall: Dict[int, int]) -> int: severity = 0 curr_pos = {idx: 0 for idx in firewall} dirs = {idx: 1 for idx in firewall} for idx in range(max(firewall.keys())+1): if curr_pos.get(idx) == 0: severity += idx * firewall...
PRIDE-Utilities/ms-data-core-api
src/test/java/uk/ac/ebi/pride/utilities/data/exporters/MzTabMzIdentMLConverterTest.java
package uk.ac.ebi.pride.utilities.data.exporters; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import uk.ac.ebi.pride.jmztab.model.MZTabFile; import uk.ac.ebi.pride.jmztab.utils.MZTabFileConverter; import uk.ac.ebi.pride.utilities.data.controller.impl.ControllerImpl....
christhekeele/ex_venture
assets/js/redux/loginReducer.js
import { createReducer } from "../kalevala"; import { Types } from "./actions"; const INITIAL_STATE = { active: false, loggedIn: false, }; const loginActive = (state) => { return { ...state, active: true }; }; const loggedIn = (state) => { return { ...state, loggedIn: true }; }; const HANDLERS = { [Types...
PkayJava/overlap2d-dev
src/main/java/com/o2d/pkayjava/editor/controller/commands/CutItemsCommand.java
/* * ****************************************************************************** * * Copyright 2015 See AUTHORS file. * * * * 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 * ...
qingshui5555/azrwebi
src/main/java/com/movit/rwe/modules/bi/base/entity/hive/Patient.java
package com.movit.rwe.modules.bi.base.entity.hive; import java.util.Date; /** * * @Project : az-rwe-bi-web * @Title : Patient.java * @Package com.movit.rwe.common.entity * @Description : ๆ‚ฃ่€… * @author Yuri.Zheng * @email <EMAIL> * @date 2016ๅนด3ๆœˆ1ๆ—ฅ ไธŠๅˆ10:57:20 * */ public class Patient { /** * ไธป้”ฎ */ pri...
open-repos/apache-ant
src/main/org/apache/tools/ant/types/resources/Resources.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
luxe/unilang
source/bazel/deps/xorg_libXt/get.bzl
<gh_stars>10-100 # Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def xorgLibXt(): http_archive( name="xorg_libXt" , build_file="//bazel/deps/xorg_libXt:build.BUILD" , ...
mariogeiger/jax
jax/scipy/special.py
<reponame>mariogeiger/jax<gh_stars>1-10 # Copyright 2020 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
tcd/eddy
lib/definitions/elements/manual/i/I07.interchange_receiver_id.rb
module Eddy module Elements # ### Element Summary: # # - Id: I07 # - Name: Interchange Receiver ID # - Type: AN # - Min/Max: 15/15 # - Description: Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties send...
uk-gov-mirror/hmrc.professional-subscriptions-frontend
test/views/CannotClaimEmployerContributionViewSpec.scala
<filename>test/views/CannotClaimEmployerContributionViewSpec.scala /* * Copyright 2021 HM Revenue & Customs * * 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.or...
himanshuMaheshwari2311/Design-Patterns-In-Java
src/main/java/com/stark/patterns/behavioral/template/WebOrder.java
<filename>src/main/java/com/stark/patterns/behavioral/template/WebOrder.java package com.stark.patterns.behavioral.template; public class WebOrder extends OrderTemplate { @Override public void doCheckout() { System.out.println("Web checkout"); } @Override public void doPayment() { ...
jonas333/minimal-j
ext/rest/src/main/java/org/minimalj/rest/RestHTTPD.java
package org.minimalj.rest; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.URI; import ...
jerrybowman/tlc.open.java
tlc-commons-project/tlc-io-x937/src/main/java/com/thelastcheck/io/x9/copy/dstu/X937ReturnAddendumDRecordCopier.java
<reponame>jerrybowman/tlc.open.java package com.thelastcheck.io.x9.copy.dstu; import com.thelastcheck.commons.base.exception.InvalidDataException; import com.thelastcheck.io.base.Record; import com.thelastcheck.io.x9.X9Record; import com.thelastcheck.io.x9.copy.X937RecordCopier; import com.thelastcheck.io.x9.factory.X...
carmenlau/authgear-server
pkg/portal/task/deps.go
package task import ( "github.com/google/wire" "github.com/authgear/authgear-server/pkg/portal/task/tasks" ) var DependencySet = wire.NewSet( NewInProcessExecutorLogger, NewExecutor, wire.Bind(new(Executor), new(*InProcessExecutor)), wire.Struct(new(InProcessQueue), "*"), ) func NewExecutor( logger InProces...
lhr-solar/BPS
Tests/Test_BSP_I2C.c
/* Copyright (c) 2020 <NAME> Racing Solar */ #include "common.h" #include "config.h" #include "BSP_I2C.h" #include "EEPROM.h" #define ADDRESS 0x0005 int main() { BSP_I2C_Init(); printf("EEPROM initialized\n"); uint8_t buffer[4] = {0xfe, 0xed, 0xbe, 0xef}; EEPROM_WriteMultipleBytes(ADDRESS, 4, buffer); uint8_t r...
hmrc/safety-and-security-entry-declaration-frontend
app/pages/Waypoint.scala
<gh_stars>0 /* * Copyright 2022 HM Revenue & Customs * * 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 applica...
Aleshkev/algoritmika
preoi-2019/dzien-5/drzewa--brut.cpp
#include <bits/stdc++.h> using namespace std; typedef intmax_t I; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr), cout.tie(nullptr); I w, h; cin >> w >> h; I best_c = -1, n_best = 0; for (I x = 0; x < w; ++x) { for (I y = 0; y < h; ++y) { vector<vector<bool>> visible(w, vecto...
codavide/swarmros
libswarmio/include/swarmio/Endpoint.h
#pragma once #include <swarmio/Node.h> #include <swarmio/data/Message.pb.h> namespace swarmio { /** * @brief Forward declare Mailbox * */ class Mailbox; /** * @brief Abstract base class for Endpoint implementations. * * When an Endpoint is created and started, it announce...
bigjunnn/addressbook-level3
src/test/java/dukecooks/model/dashboard/DashboardNameTest.java
<reponame>bigjunnn/addressbook-level3 package dukecooks.model.dashboard; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; import dukecooks.model.dashboard.components.DashboardName; import dukecooks.testutil.Asser...
usergeek/canistergeek-ic-js
lib/es5/ui/SummaryHelpPopoverWithData.js
<gh_stars>1-10 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o...
dandeezy/liftweb
lift/src/main/scala/net/liftweb/http/RequestType.scala
/* * Copyright 2007-2008 WorldWide Conferencing, 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 applicab...
vismaya-Kalaiselvan/cape-python
cape_privacy/pandas/transformations/__init__.py
<gh_stars>100-1000 from cape_privacy.pandas.transformations.column_redact import ColumnRedact from cape_privacy.pandas.transformations.perturbation import DatePerturbation from cape_privacy.pandas.transformations.perturbation import NumericPerturbation from cape_privacy.pandas.transformations.rounding import DateTrunca...
strickyak/c2go
types/dereference.go
package types import ( "errors" "regexp" "strings" ) func GetDereferenceType(cType string) (string, error) { // In the form of: "char [8]" -> "char" search := regexp.MustCompile(`([\w ]+)\s*\[\d+\]`).FindStringSubmatch(cType) if len(search) > 0 { return strings.TrimSpace(search[1]), nil } // In the form of...
kireevaa85/2019-09-otus-java-Kireev
hw13-DI/src/main/java/ru/otus/api/service/DBServiceUser.java
package ru.otus.api.service; import ru.otus.api.model.User; import java.util.List; import java.util.Optional; public interface DBServiceUser { long saveUser(User user); Optional<User> getUser(long id); Optional<User> getUserFullInfo(long id); List<User> getAllUsers(); void updateUser(User us...
ruan3/OpenLive_Android_text
app/src/main/java/io/agora/model/IModelImpl.java
package io.agora.model; import io.agora.contract.IContract; /** * Created by MVPHelper on 2017/07/04 */ public class IModelImpl implements IContract.Model{ }
Ametys/runtime
main/plugin-admin/src/org/ametys/runtime/plugins/admin/jvmstatus/monitoring/alerts/AbstractAlertSampleManager.java
/* * Copyright 2016 Anyware Services * * 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...
cordelster/harvest
pkg/tree/node/node_test.go
package node import ( "testing" ) func Test_simpleName(t *testing.T) { tests := []struct { name string s string want string }{ {name: "empty", s: "", want: ""}, {name: "simple", s: "abc", want: "abc"}, {name: "simple 1 space", s: "abc ", want: "abc"}, {name: "simple more space", s: "abc ", wa...
1432junaid/cpp
container/adaptor/queue.cpp
<reponame>1432junaid/cpp #include<queue> #include<iostream> using namespace std; int main(){ queue<int>q; /* cout<<q.empty()<<endl; for(int i=0; i<q.size();i++){ q.push(i+12); } for(int i=0; i<q.size(); i++){ // cout<<q.front(); cout<<q.back(); }*/ q.push(12); q.push(43); q.push(44); // cout<<q.back(); // ...
arganeenterprise/k2-connect-node
lib/tokens.js
'use strict' // light-weight server const unirest = require('unirest') const dispatch = require('./helpers/dispatch') const tokenValidate = require('./validate/token').tokenValidate /** * Handles oauth2 operations * @module TokenService * @constructor * @param {object} options * @param {string} options.clientId ...
tmitsuoka0423/obniz
dist/src/obniz/libs/wscommand/WSCommandDisplay.js
<reponame>tmitsuoka0423/obniz "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); /** * @packageDocumentation * @ignore */ const qr_1 = __importDefault(r...
hmc-room-draw/room-draw
test/controllers/draw_period_controller_test.rb
<gh_stars>1-10 require 'test_helper' include Warden::Test::Helpers Warden.test_mode! ## TODO: write test setup with current_user set class DrawPeriodControllerTest < ActionDispatch::IntegrationTest setup do @draw_period = draw_periods(:one) @user = User.create( :first_name => "Bob", ...
ScalablyTyped/SlinkyTyped
o/office-ui-fabric-react/src/main/scala/typingsSlinky/officeUiFabricReact/shimmerLineBaseMod.scala
<gh_stars>10-100 package typingsSlinky.officeUiFabricReact import slinky.core.ReactComponentClass import typingsSlinky.officeUiFabricReact.shimmerLineTypesMod.IShimmerLineProps import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScop...
ianmcdaniel/nova-www
src/components/common/ValuesList/index.js
export { default } from './ValuesList';
lehjr/MPA-Lib
src/main/java/com/github/lehjr/mpalib/client/render/MPALibRenderState.java
<gh_stars>0 /* * Copyright (c) 2019 MachineMuse, Lehjr * 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 source code must retain the above copyright notice, this * ...
LJW123/YiLianMall
YiLian/src/main/java/com/yilian/mall/ctrip/bean/PriceAndLevelSelectBean.java
package com.yilian.mall.ctrip.bean; import java.util.List; /** * ไฝœ่€…๏ผš้ฉฌ้“่ถ… on 2018/11/2 12:03 */ public class PriceAndLevelSelectBean { public String MinPrice; public String MaxPrice; public List<String> levelId ; public String minRange; public String maxRange; public String getMinPrice() { ...
andrei-punko/java-interview
src/test/java/by/andd3dfx/cache/LFUCacheTest.java
package by.andd3dfx.cache; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import by.andd3dfx.cache.LFUCache; import org.junit.Test; public class LFUCacheTest { @Test public void testCache() { LFUCache cache = new LFUCache(2); c...
mehmetalikir/Programlamaya-Giris
Y. Daniel Liang-Java/src/chapter09/Exercise09_04.java
package chapter09; import java.util.Random; /** * # Author: <NAME> * # Email : <EMAIL> * # https://github.com/mehmetalikir * *********************************** (Use the Random class) Write a program that creates a Random object with seed 1000 and displays the first 50 random integers between 0 and 100 using th...
Darinth/NaturalFury
Code/Source/LocalPlayerView.cpp
// Name: // LocalPlayerView.cpp // Description: // Implementation file for LocalPlayerView class // Notes: // OS-Unaware #include "CustomMemory.h" #include "LocalPlayerView.h" #include "GameEngine.h" #include "EngineMsg.h" extern GameEngine *gameEngine; LocalPlayerView::LocalPlayerView() : PlayerView()//("Game Eng...
confitarlaburra/pteros2.0
html/dir_ae2d53ebb4ae191eb5a981cea757ef7a.js
<reponame>confitarlaburra/pteros2.0<gh_stars>0 var dir_ae2d53ebb4ae191eb5a981cea757ef7a = [ [ "ColPivHouseholderQR.h", "ColPivHouseholderQR_8h_source.html", null ], [ "ColPivHouseholderQR_LAPACKE.h", "ColPivHouseholderQR__LAPACKE_8h_source.html", null ], [ "CompleteOrthogonalDecomposition.h", "CompleteOrtho...
mrodgers25/sap3-
db/migrate/20210314182416_add_queue_position_to_published_items.rb
class AddQueuePositionToPublishedItems < ActiveRecord::Migration[6.1] def change add_column :published_items, :queue_position, :integer add_index :published_items, :queue_position end end
jsheridanwells/LivePollingInterface
app/controllers/index.js
<filename>app/controllers/index.js 'use strict'; let app = require('../../lib/node_modules/angular').module('LivePolling'); app.controller('navCtrl', require('./navCtrl')); app.controller('pollCtrl', require('./pollCtrl')); app.controller('newPresentationCtrl', require('./newPresentationCtrl')); app.controller('parti...
spivachuk/distributed-compliance-ledger
x/dclgenutil/utils_test.go
package dclgenutil /* import ( "encoding/json" "os" "path/filepath" "testing" "time" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/config" tmed25519 "github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/privval" ) func TestExportGenesisFileWithTime(t ...
GianpieroSportelli/ConversationalAgent
src/test/java/test/Tint/TintTest.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package test.Tint; import configuration.Config; import edu.stanford.nlp.pipeline.Annotation; import eu.fbk.dh.tint.runner.Tin...
rjknight123/p9-skminer
cuda_helper.h
#ifndef CUDA_HELPER_H #define CUDA_HELPER_H #ifdef __INTELLISENSE__ #define __launch_bounds__(x) #endif #define v32(x,y) ((uint32_t*)(x))[((y) & 1)+2*(((y)/2)*threads+thread)] //hugly but needed to deal with the hash packing static __device__ uint64_t MAKE_ULONGLONG(uint32_t LO, uint32_t HI) { return __double_a...
sky-bro/AC
leetcode.com/Weekly Contest 223/4/main.cpp
<filename>leetcode.com/Weekly Contest 223/4/main.cpp #include <bits/stdc++.h> using namespace std; static int x = []() { std::ios::sync_with_stdio(false); cin.tie(0); return 0; }(); typedef long long ll; int sums[1 << 12], dp[1 << 12]; class Solution { public: int minimumTimeRequired(vector<int>& jobs, int ...
ariefzuhri/Amigo19
app/src/main/java/com/ariefzuhri/amigo19/response/WCUCountry.java
<filename>app/src/main/java/com/ariefzuhri/amigo19/response/WCUCountry.java package com.ariefzuhri.amigo19.response; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class WCUCountry { @SerializedName("name") @Expose private String name; @Serialized...
ECOA-developer/Open_Source_ECOA_Toolset_AS5
osets-eclipse-plugin/src/com/iawg/ecoa/platformgen/pd/servicemanager/ServiceManagerGenerator.java
<gh_stars>1-10 /* * Copyright 2017, BAE Systems Limited and GE Aviation Limited. * * This software and its outputs are not claimed to be fit or safe for any purpose. Any user should * satisfy themselves that this software or its outputs are appropriate for its intended purpose. */ package com.iawg.ecoa.platformge...
holger-bauer/basex
basex-core/src/main/java/org/basex/query/value/item/Dat.java
package org.basex.query.value.item; import static org.basex.query.QueryError.*; import static org.basex.query.QueryText.*; import org.basex.query.*; import org.basex.query.value.type.*; import org.basex.util.*; /** * Date item ({@code xs:date}). * * @author BaseX Team 2005-20, BSD License * @author <NAME> */ pu...
SilinPavel/grid-engine-api
src/main/java/com/epam/grid/engine/controller/usage/UsageOperationController.java
/* * * * Copyright 2022 EPAM Systems, Inc. (https://www.epam.com/) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2....
wujifengcn/binary-proto
binary-proto-java/src/test/java/test/com/jd/binaryproto/contract/PrivilegeModelSetting.java
package test.com.jd.binaryproto.contract; import com.jd.binaryproto.DataContract; import com.jd.binaryproto.DataField; import com.jd.binaryproto.PrimitiveType; /** * Created by zhangshuang3 on 2018/7/30. */ @DataContract(code=0x0f, name="PrivilegeModelSetting", description ="Privilege Model setting") public interfa...
gmwang18/pyscf
pbc/tests/untested/test_diamond_He.py
<filename>pbc/tests/untested/test_diamond_He.py import scipy import numpy as np import ase import pyscf.pbc.tools import pyscf.pbc.tools.pyscf_ase as pyscf_ase import pyscf.pbc.gto as pbcgto import pyscf.pbc.dft as pbcdft import pyscf.pbc.scf.kscf import ase.lattice from ase.lattice.cubic import Diamond import ase.dft...
RichardBlazek/objsdl
event.h
<reponame>RichardBlazek/objsdl #pragma once #include "events/type.h" #include "events/structures.h" namespace events { class Event { private: SDL_Event event; Event(const SDL_Event& evt):event(evt){} public: friend class Iterator; enum class Action: uint8 { Add=SDL_ADDEVENT, Peek=SDL_PEEKEVENT, Get=SDL_GET...
NUC-Liu/thesis
thesis-thesis/src/main/java/cn/nuc/thesis/thesis/service/WeeklyService.java
package cn.nuc.thesis.thesis.service; import com.baomidou.mybatisplus.extension.service.IService; import cn.nuc.common.utils.PageUtils; import cn.nuc.thesis.thesis.entity.WeeklyEntity; import java.util.Map; /** * * * @author Liu * @email <EMAIL> * @date 2020-05-03 02:54:41 */ public interface WeeklyService ex...
Kapersyx/sync-endpoint
src/main/java/org/opendatakit/aggregate/odktables/rest/entity/PropertyEntryJsonList.java
<filename>src/main/java/org/opendatakit/aggregate/odktables/rest/entity/PropertyEntryJsonList.java<gh_stars>1-10 /* * Copyright (C) 2014 University of Washington * * 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 co...
nordnet/dev-blog
src/utils/constants.js
<reponame>nordnet/dev-blog<filename>src/utils/constants.js<gh_stars>1-10 export const FILE_TYPE = '.mdx'; export const PREFIX = 'posts'; export const PATH_DIVIDER = '/'; export const FILE_TYPE_REGEX = new RegExp(`\\${FILE_TYPE}?`); export const IMAGES_PREFIX = '/public';
Amirsorouri00/neolej
file_app/models.py
<filename>file_app/models.py from django.db import models # def file_directory_path(instance, filename): # # file will be uploaded to MEDIA_ROOT/user_<id>/<filename> # return 'user_{0}/{1}'.format(instance.remark, filename) class File(models.Model): # file = models.FileField(upload_to=file_directory_path,...
prafullkotecha/waltz
waltz-ng/client/person/index.js
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
armoredsoftware/protocol
measurer/hotspot-measurer/hotspot/src/share/vm/utilities/decoder.hpp
<filename>measurer/hotspot-measurer/hotspot/src/share/vm/utilities/decoder.hpp<gh_stars>0 /* * Copyright (c) 1997, 2010, 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 * unde...
hvpaiva/java-padroes-projeto
singleton/src/main/java/com/hvpaiva/singleton/EnumVencedor.java
<filename>singleton/src/main/java/com/hvpaiva/singleton/EnumVencedor.java package com.hvpaiva.singleton; /** * Implementaรงรฃo Singleton baseado em Enum. Effective Java 2nd Edition (<NAME>) p. 18 * * Esta implementaรงรฃo รฉ thread-safe, no entanto, ao adicionar qualquer outro mรฉtodo * seguranรงa por threads รฉ de respons...
Eliav2rll2v/suryadev967
src/main/java/org/wlld/nerveEntity/SoftMax.java
<reponame>Eliav2rll2v/suryadev967 package org.wlld.nerveEntity; import org.wlld.config.RZ; import org.wlld.i.OutBack; import org.wlld.tools.ArithUtil; import java.util.List; import java.util.Map; public class SoftMax extends Nerve { private OutNerve outNerve; private boolean isShowLog; public SoftMax(in...
marklogic-community/corb2
src/main/java/com/marklogic/developer/corb/PreBatchUpdateFileTask.java
/* * Copyright (c) 2004-2021 MarkLogic Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
xstefank/eap-microprofile-test-suite
microprofile-metrics/src/test/java/org/jboss/eap/qe/microprofile/metrics/ConnectionStressMetricsTest.java
<filename>microprofile-metrics/src/test/java/org/jboss/eap/qe/microprofile/metrics/ConnectionStressMetricsTest.java package org.jboss.eap.qe.microprofile.metrics; import static io.restassured.RestAssured.get; import static io.restassured.RestAssured.given; import static org.hamcrest.Matchers.containsString; import sta...
zhanghai/Douya
app/src/main/java/me/zhanghai/android/douya/broadcast/ui/BroadcastActivity.java
<reponame>zhanghai/Douya<filename>app/src/main/java/me/zhanghai/android/douya/broadcast/ui/BroadcastActivity.java /* * Copyright (c) 2015 <NAME> <<EMAIL>> * All Rights Reserved. */ package me.zhanghai.android.douya.broadcast.ui; import android.content.Context; import android.content.Intent; import android.os.Bundl...
lucaswilliamgomes/QuestionsCompetitiveProgramming
Neps/Problems/Fase - 34.cpp
<filename>Neps/Problems/Fase - 34.cpp #include <bits/stdc++.h> using namespace std; int main () { int n, m, aux; cin >> n >> m; vector <int> arr; for (int i = 0; i < 1005; i++){ arr.push_back(0); } for (int i = 0; i < n; i++){ cin >> arr[i]; } sort (arr.begin(), arr.end...