repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Matthimatiker/risky
behaviour-detector/src/test/java/au/gov/amsa/geo/adhoc/PositionsInGbrMain.java
<reponame>Matthimatiker/risky package au.gov.amsa.geo.adhoc; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.text.DecimalFormat; import java.util.ArrayList; import java....
dragonli-outsource/zichanguanli
src/main/java/com/dt/core/cache/CacheableEntity.java
package com.dt.core.cache; /** * @author: jinjie * @date: 2018年4月3日 下午1:14:45 * @Description: TODO */ public class CacheableEntity { public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getKey() { return key; } public void setKey(Strin...
4everalone/nano
sample/webservice/eBayDemoApp/src/com/ebay/trading/api/SetUserNotesRequestType.java
// Generated by xsd compiler for android/java // DO NOT CHANGE! package com.ebay.trading.api; import java.io.Serializable; import com.leansoft.nano.annotation.*; /** * * Enables users to add, replace, and delete My eBay notes for * items that are being tracked in the My eBay All Selling and * All Buying areas. ...
MarcusTw/tp
src/test/java/atas/model/student/EmailTest.java
package atas.model.student; import static atas.testutil.Assert.assertThrows; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertTrue...
illia-v/UAWebChallenge-IX
Semifinal/speech_order/our_pizzeria/tests/test_models.py
<reponame>illia-v/UAWebChallenge-IX<gh_stars>0 from datetime import datetime from django.test import TestCase from our_pizzeria.models import Order class PizzaOrderModelTestCase(TestCase): def setUp(self): self.order = Order.objects.create( slug='test', orderer_name='Karl', ...
suomenriistakeskus/oma-riista-web
src/main/java/fi/riista/feature/permit/decision/derogation/PermitDecisionProtectedAreaTypeRepository.java
package fi.riista.feature.permit.decision.derogation; import fi.riista.feature.permit.decision.PermitDecision; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface PermitDecisionProtectedAreaTypeRepository extends JpaRepository<PermitDecisionProtectedAreaType, Long> {...
wjanczuk/grace-and-co
client/components/Cart.js
import React from 'react' import {connect} from 'react-redux' import { editQuantity, getOrder, removeItem, completeOrder, deleteCart } from '../store/order' import { editGuestQuantity, removeGuestItem, removeGuestCart, guestCheckout } from '../store/guestCart' import {Redirect} from 'react-router-dom'...
mjanes/client
app/src/main/java/org/projectbuendia/client/resolvables/Resolvable.java
<reponame>mjanes/client<gh_stars>10-100 // Copyright 2015 The Project Buendia 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 // // Un...
p12218319/Core
include/P12218319/core/Statistics.hpp
<reponame>p12218319/Core<filename>include/P12218319/core/Statistics.hpp /* Copyright 2016 <NAME> - P12218319 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...
white-shark/leetcode-cpp
solution071.cpp
/** * Simplify Path * * cpselvis(<EMAIL>) * Nov 28th, 2016 */ #include<iostream> #include<stack> using namespace std; class Solution { public: string simplifyPath(string path) { stack<string> st; string ret = ""; for (int i = 0; i < path.size(); ) { // Jump when meet character / ...
CBIIT/cadsr-cdecurate
src/gov/nih/nci/cadsr/common/DbmsOutput.java
<gh_stars>1-10 package gov.nih.nci.cadsr.common; /** * Source: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:45027262935845 */ import java.sql.*; import org.apache.log4j.Logger; public class DbmsOutput { private static final Logger logger = Logger.getLogger(DbmsOutput.class.getName()); /* ...
hzx157/hex
xiushouguzhu_ios/xiushouguzhu_ios/Controllers/Server/RecommendTableViewController.h
// // RecommendTableViewController.h // xiushouguzhu_ios // // Created by Interest on 15/3/16. // Copyright (c) 2015年 Interest. All rights reserved. // #import <UIKit/UIKit.h> @interface RecommendTableViewController : UITableViewController @property (nonatomic,strong) void (^NurseIDBlock)(NSString *NurseID,NSStr...
troth-llc/troth.mn
src/routes/user.js
<filename>src/routes/user.js const express = require("express"); const router = express.Router(); const user = require("../controllers/user"); const validate = require("../middleware/validator"); const token = require("../middleware/token"); /** * /api/user: * post: * description: * responses: * 2...
esell/ferret
pkg/runtime/collections/sort_test.go
package collections_test import ( "encoding/json" "github.com/MontFerret/ferret/pkg/runtime/collections" "github.com/MontFerret/ferret/pkg/runtime/core" "github.com/MontFerret/ferret/pkg/runtime/values" . "github.com/smartystreets/goconvey/convey" "testing" ) func TestSort(t *testing.T) { Convey("Should sort a...
mcgaerty/icarus2-modeling-framework
icarus2-model-defaults/src/main/java/de/ims/icarus2/model/standard/members/structure/ImmutableStructureEditVerifier.java
/* * ICARUS2 Corpus Modeling Framework * Copyright (C) 2014-2022 <NAME> <<EMAIL>> * * 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/LICENS...
nickman/heliosutils
src/main/java/com/heliosapm/utils/counters/alarm/AlarmState.java
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
wjtree/wechat-parent
wechat-sdk/src/main/java/com/app/wechat/request/WxCustomTypingRequest.java
<filename>wechat-sdk/src/main/java/com/app/wechat/request/WxCustomTypingRequest.java package com.app.wechat.request; import com.app.wechat.domain.WxCustomSendModel; import com.app.wechat.internal.code.HttpMethod; import com.app.wechat.internal.code.WxUrl; import com.app.wechat.response.WxCustomTypingResponse; /** * ...
wizzifactory/wizzi
packages/wizzi-tools/dist/examples/typescript/index.js
<gh_stars>0 /* artifact generator: C:\My\wizzi\wizzi\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: C:\My\wizzi\wizzi\packages\wizzi-tools\.wizzi\ittf\examples\typescript\index.js.ittf */ 'use strict'; var util = require('util'); var path = require('path'); var file = req...
Neradoc/circuitpython
tests/cpydiff/core_fstring_parser.py
""" categories: Core description: f-strings cannot support expressions that require parsing to resolve nested braces cause: MicroPython is optimised for code space. workaround: Only use simple expressions inside f-strings """ f'{"hello {} world"}' f"{repr({})}"
jeikabu/lumberyard
dev/Gems/EMotionFX/Code/EMotionFX/Pipeline/SceneAPIExt/Data/LodNodeSelectionList.h
#pragma once /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the lice...
ProgrammingLife2017/hygene
src/test/java/org/dnacronym/hygene/graph/SegmentAggregatorTest.java
package org.dnacronym.hygene.graph; import org.dnacronym.hygene.graph.edge.AggregateEdge; import org.dnacronym.hygene.graph.edge.Edge; import org.dnacronym.hygene.graph.edge.SimpleEdge; import org.dnacronym.hygene.graph.node.AggregateSegment; import org.dnacronym.hygene.graph.node.GfaNode; import org.dnacronym.hygene....
dawood-dev/nyCapital
node_modules/swagger-client/lib/interfaces.js
<filename>node_modules/swagger-client/lib/interfaces.js<gh_stars>1-10 "use strict"; exports.__esModule = true; exports.makeExecute = makeExecute; exports.makeApisTagOperationsOperationExecute = makeApisTagOperationsOperationExecute; exports.makeApisTagOperation = makeApisTagOperation; exports.mapTagOperations = mapTag...
prathamesh-sonpatki/jruby
spec/regression/GH-814_defined_basicobject_spec.rb
if RUBY_VERSION >= "1.9" describe "defined?(::BasicObject)" do it "returns \"constant\"" do defined?(::BasicObject).should == "constant" end end end
slafon51/esup-publisher-webcomponents
@gip-recia/esup-publisher-webcomponents-utils/src/localization.js
<filename>@gip-recia/esup-publisher-webcomponents-utils/src/localization.js /** * Classe permettant de récupérer un label selon la langue définie. */ export class Localization { /** * Constructeur avec arguments. * * @param {Object} labels Labels * @param {String} lang Langue */ constructor(labels...
varadchoudhari/UA-Frontend
app/components/Common/maps-vector.js
<reponame>varadchoudhari/UA-Frontend // VectorMap // ----------------------------------- var seriesData = { 'CA': 11100, // Canada 'DE': 2510, // Germany 'FR': 3710, // France 'AU': 5710, // Australia 'GB': 8310, // Great Britain 'RU': 9310, // Russia 'BR': 6610, // Braz...
SUNWU07/arm-trusted-firmware
plat/st/common/stm32mp_fconf_io.c
<gh_stars>1-10 /* * Copyright (c) 2021, STMicroelectronics - All Rights Reserved * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <common/debug.h> #include <common/fdt_wrappers.h> #include <drivers/io/io_storage.h> #include <drivers/mmc.h> #include <lib/fconf/fconf.h> #include <lib/object...
Valbod-I-am-a-Swiftie/jdi-light
jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/common/BasicButtonTests.java
package io.github.epam.angular.tests.elements.common; import com.epam.jdi.light.common.ElementArea; import io.github.epam.TestsInit; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import static io.github.com.StaticSite.angularPage; import static io.github.com.pages.AngularPage.basicButt...
mmarovich/UA-Frontend
app/containers/Dashboard/Roles/MilesZip/index.js
export { default } from './MilesZip';
lauracristinaes/aula-java
hibernate-release-5.3.7.Final/project/hibernate-core/src/test/java/org/hibernate/test/annotations/backquotes/Bug.java
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ //$Id$ package org.hibernate.test.annotations.backquotes; import java.util.List; i...
Maledictus/leechcraft
src/plugins/azoth/plugins/sarin/toxaccount.cpp
<filename>src/plugins/azoth/plugins/sarin/toxaccount.cpp /********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 <NAME> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying f...
maroozm/AliPhysics
PWGPP/EVCHAR/FlowVectorCorrections/QnCorrections/AliQnCorrectionsCutsSet.h
#ifndef ALIQNCORRECTIONS_CUTSSET_H #define ALIQNCORRECTIONS_CUTSSET_H /*************************************************************************** * Package: FlowVectorCorrections * * Authors: <NAME>, GSI, <EMAIL> * * <NAME>, GSI, <EMAIL> * *...
faddat/classic
crypto/mock/mock.go
package mock import ( "bytes" "fmt" "github.com/tendermint/classic/crypto" cmn "github.com/tendermint/classic/libs/common" amino "github.com/tendermint/go-amino-x" ) //------------------------------------- // These are fake crypto implementations, useful for testing. var _ crypto.PrivKey = PrivKeyMock{} // Pr...
rudylee/expo
ios/Pods/Headers/Public/ABI37_0_0ExpoKit/ABI37_0_0EXUpdates.h
<gh_stars>1-10 // Copyright 2016-present 650 Industries. All rights reserved. #import "ABI37_0_0EXResourceLoader.h" #import "ABI37_0_0EXScopedBridgeModule.h" #import "ABI37_0_0EXScopedModuleRegistry.h" NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT NSString * const ABI37_0_0EXUpdatesEventName; FOUNDATION_EXPORT NSString ...
ifleeyo180/VspriteMoodleWebsite
htdocs/moodle/h5p/h5plib/v124/joubel/editor/scripts/h5peditor-file.js
/* global ns */ /** * Adds a file upload field to the form. * * @param {mixed} parent * @param {object} field * @param {mixed} params * @param {function} setValue * @returns {ns.File} */ ns.File = function (parent, field, params, setValue) { var self = this; // Initialize inheritance ns.Fil...
npocmaka/Windows-Server-2003
windows/advcore/duser/engine/rockall/library/sharelock.cpp
// Ruler // 1 2 3 4 5 6 7 8 //345678901234567890123456789012345678901234567890123456789012345678901234567890 /********************************************************************/ ...
FrankKwok/Oreo
com/android/keyguard/KeyguardClockAccessibilityDelegate.java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
DVSR1966/par4all
packages/PIPS/validation/C_syntax/ndecl08.c
<reponame>DVSR1966/par4all<filename>packages/PIPS/validation/C_syntax/ndecl08.c /* Purpose: what's wrong with struct? */ void ndecl08(char *dir) { /* Well, this is a struct called m */ struct m { int a; float b; }; }
JimCallahan/Pipeline
src/java/us/temerity/pipeline/OpNotifiable.java
package us.temerity.pipeline; import us.temerity.pipeline.message.NotifyRsp; import us.temerity.pipeline.math.ExtraMath; import java.io.*; import java.net.*; import java.util.Locale; /*------------------------------------------------------------------------------------------*/ /* O P N O T I F I A B L E ...
diogocs1/comps
web/addons/account/wizard/account_automatic_reconcile.py
<filename>web/addons/account/wizard/account_automatic_reconcile.py # -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you c...
TheUntraceable/SentinelJS
Bot Files/commands/Fun/meme.js
<filename>Bot Files/commands/Fun/meme.js const axios = require("axios"); const { MessageEmbed } = require("discord.js"); const { SlashCommandBuilder } = require("@discordjs/builders") const randomInt = (min, max) => { return Math.floor(Math.random() * (max - min)) + min; } function getRandomPost(posts) { cons...
hoolatech/datarouter-1
datarouter-storage/src/main/java/io/datarouter/storage/file/Pathbean.java
/* * Copyright © 2009 HotPads (<EMAIL>) * * 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 ag...
VictorBG/Raco
app/src/main/java/com/victorbg/racofib/data/repository/base/Repository.java
<filename>app/src/main/java/com/victorbg/racofib/data/repository/base/Repository.java package com.victorbg.racofib.data.repository.base; public abstract class Repository { public abstract void clean(); }
eFaps/eFaps-Kernel
src/main/java/org/efaps/db/databases/information/ForeignKeyInformation.java
/* * Copyright 2003 - 2017 The eFaps Team * * 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 ...
MannPE/KawAnime
src/main/externals/kitsu.io/auth/retrieveToken.js
import setup from './setup' import { getCreds } from '../../vault' const properties = [ 'expiresAt', 'accessToken', 'tokenType', 'refreshToken', 'userId' ] export default async function () { let { expiresAt, accessToken, tokenType, refreshToken, userId } = await getCreds('kitsu', pro...
DavideAG/polycube
src/services/pcn-packetcapture/src/serializer/GlobalheaderJsonObject.h
<reponame>DavideAG/polycube /** * packetcapture API generated from packetcapture.yang * * NOTE: This file is auto generated by polycube-codegen * https://github.com/polycube-network/polycube-codegen */ /* Do not edit this file manually */ /* * GlobalheaderJsonObject.h * * */ #pragma once #include "JsonObjectBase....
ScalablyTyped/SlinkyTyped
o/office-ui-fabric-react/src/main/scala/typingsSlinky/officeUiFabricReact/panelStylesMod.scala
package typingsSlinky.officeUiFabricReact import typingsSlinky.officeUiFabricReact.panelTypesMod.IPanelStyleProps import typingsSlinky.officeUiFabricReact.panelTypesMod.IPanelStyles import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGloba...
akai10tsuki/mkvbatchmultiplex
MKVBatchMultiplex/delegates/delegates.py
""" deleage classes """ # pylint: disable=unused-argument from PySide2.QtWidgets import ( QStyledItemDelegate, QStyleOptionButton, QApplication, QStyle, QComboBox, ) from PySide2.QtCore import Qt, QRect, QPoint, QEvent, Slot from ..jobs import JobStatus class StatusComboBoxDelegate(QStyledIte...
Revan1985/SoACode-Public
SoA/GameplayRenderer.h
<reponame>Revan1985/SoACode-Public /// /// GameplayRenderer.h /// Seed of Andromeda /// /// Created by <NAME> on 1 Nov 2014 /// Copyright 2014 Regrowth Studios /// MIT License /// /// This file implements the render pipeline for the /// GamePlayScreen. /// #pragma once #ifndef GamePlayRenderer_h__ #define Ga...
diegopacheco/scala-playground
scala-playground/src/com/github/diegopacheco/sandbox/scripts/scala/basic/oo/SealedCaseClassFun.scala
package com.github.diegopacheco.sandbox.scripts.scala.basic.oo object SealedCaseClassFun extends App { sealed case class BadGuy sealed case class TheJoker(name:String,enemy:String) extends BadGuy{ override def toString():String = name + " :-> " + enemy } val coringa = new TheJoker("Curinga","Batima") print...
gracielundell/scienceBlog
tmp/babel-output_path-xb4GCqUW.tmp/modules/lodash/internal/assignWith.js
<reponame>gracielundell/scienceBlog<gh_stars>0 import keys from '../object/keys'; /** * A specialized version of `_.assign` for customizing assigned values without * support for argument juggling, multiple sources, and `this` binding `customizer` * functions. * * @private * @param {Object} object The destination...
DesZou/Eros
test/20171017/source/std/slope.cpp
#include <cstdio> #include <iostream> #include <cstdlib> #include <cstring> #include <algorithm> #include <cmath> #include <queue> using namespace std; typedef double db; const int N=500010; struct P{ int x,y; bool operator<(const P& a)const{ return x<a.x; } }a[N]; int main(){ #...
yashbhutwala/blackduck-docker-inspector
src/test/java/com/synopsys/integration/blackduck/dockerinspector/httpclient/IiClientContainersStartedAsNeededTest.java
<gh_stars>10-100 package com.synopsys.integration.blackduck.dockerinspector.httpclient; import static org.junit.Assert.assertEquals; import com.synopsys.integration.blackduck.dockerinspector.programversion.ProgramVersion; import com.synopsys.integration.rest.client.IntHttpClient; import java.io.IOException; import ja...
robdobsn/RdWebServer
src/RdWebDataFrame.h
///////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // RdWebServer // // <NAME> 2020 // ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// #pragma once #include <string.h> #include <stdint.h...
mobilise-xyz/mobilise-frontend
src/components/forms/RepeatingShiftForm/index.js
<filename>src/components/forms/RepeatingShiftForm/index.js<gh_stars>0 import RepeatingShiftForm from './RepeatingShiftForm'; export default RepeatingShiftForm;
AlexGilleran/IceSoap2
IceSoapTest/src/test/java/com/alexgilleran/icesoap/xpath/test/XPathRepositoryTest.java
package com.alexgilleran.icesoap.xpath.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import org.junit.Before; import org.junit.Test; import com.alexgilleran.icesoap.exception.XPathParsingException; import com.alexgilleran.icesoap.xpath.XPathFactory; import com.alexgill...
YukiMuraRindon/JavaTest
elms/src/elms/service/cgthservice.java
<filename>elms/src/elms/service/cgthservice.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 elms.service; import java.util.Date; /** * * @author YukiMuraRindon */ pu...
barbashovtd/kvant
backend/core/migrations/0006_auto_20210902_1529.py
# Generated by Django 3.2.4 on 2021-09-02 15:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0005_auto_20210902_0057'), ] operations = [ migrations.AlterField( model_name='student', name='qr', ...
Lzw2016/clever-canal
clever-canal-dbsync/src/main/java/org/clever/canal/parse/dbsync/binlog/event/ExecuteLoadLogEvent.java
<filename>clever-canal-dbsync/src/main/java/org/clever/canal/parse/dbsync/binlog/event/ExecuteLoadLogEvent.java package org.clever.canal.parse.dbsync.binlog.event; import org.clever.canal.parse.dbsync.binlog.LogBuffer; import org.clever.canal.parse.dbsync.binlog.LogEvent; /** * Execute_load_log_event. */ @SuppressW...
neroroxxx/BMC
src/BMC.timedEvents.cpp
/* See https://www.RoxXxtar.com/bmc for more details Copyright (c) 2020 RoxXxtar.com Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include <BMC.h> #if BMC_MAX_TIMED_EVENTS > 0 void BMC::readTimedEvent(){ if(timedEvents.available()==0){ return...
recursion/newsy-react-client
app/components/StoriesList/index.js
export { default } from './StoriesList';
itandrik/Hedbanz
app/src/main/java/com/transcendensoft/hedbanz/presentation/rooms/list/RoomItemContract.java
package com.transcendensoft.hedbanz.presentation.rooms.list; /** * Copyright 2017. <NAME> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LIC...
AnnMarieW/dash-app-gallery
pages/stopwatch.py
import dash from utils.code_and_show import example_app dash.register_page( __name__, description="Stopwatch timer application with 1 button and an input field.", layout_type="general", components_type=["leddisplay", "input", "interval", "powerbutton"], graph_type="none", callback_type="gener...
AndriiMysko/travis-api
spec/lib/services/find_log_spec.rb
describe Travis::Services::FindLog do let(:params) { {} } let(:service) { described_class.new(double('user'), params) } let(:job) { FactoryBot.create(:job) } describe 'run' do it 'finds the log with the given id' do params[:id] = 1 found_by_id = double('found-by-id', job_id: job.id) remot...
taeb3/anchor
app/shared/components/Welcome/Breadcrumb.js
// @flow import React, { Component } from 'react'; import { Icon, Step } from 'semantic-ui-react'; import { withTranslation } from 'react-i18next'; class WelcomeBreadcrumb extends Component<Props> { render() { const { onStageSelect, stage, t, walletMode } = this.props; return fals...
Playermet/gbmath
forward_decl.h
<reponame>Playermet/gbmath<filename>forward_decl.h /** \file \brief forward-declaration */ #pragma once #ifndef __GBMATH_H__ #error DO NOT INCLUDE THIS FILE. USE: #include <gbmath/_gbmath.h> #endif namespace gbmath { class aabb; struct color4_32; class point2; class point3...
ccrowley96/shareit.space
client/src/hooks/provideTheme.js
<filename>client/src/hooks/provideTheme.js import React, { useContext, useEffect, useState } from 'react'; import { themes } from '../constants/constants'; const Theme = React.createContext(); export const useTheme = () => useContext(Theme); export const ProvideTheme = ({ children }) => { const theme = useProvide...
lozanasc/restoms
src/components/layouts/Customer/CustomerLayout.js
<reponame>lozanasc/restoms import React from 'react'; import MainCustomer from '../../views/Customer/CustomerView'; import { CustomerProvider } from '../../contexts/CustomerContext'; import './style/CustomerLayout.scss'; export const CustomerOrder = () => { window.addEventListener('beforeunload', function (e) { ...
helloingob/Steamgifter
Steamgifter-GUI/src/main/java/com/helloingob/gifter/IndexController.java
<reponame>helloingob/Steamgifter<filename>Steamgifter-GUI/src/main/java/com/helloingob/gifter/IndexController.java package com.helloingob.gifter; import java.text.SimpleDateFormat; import java.util.Optional; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.event.Event; impor...
tehcoderer/GamestonkTerminal
tests/openbb_terminal/economy/test_econ_data_helper.py
<reponame>tehcoderer/GamestonkTerminal # IMPORTATION STANDARD # IMPORTATION THIRDPARTY import pandas as pd import pytest # IMPORTATION INTERNAL from openbb_terminal.economy import econ_data_helper STOCK_DF = pd.DataFrame( data={ "Open": { pd.Timestamp("2022-01-20 00:00:00"): 101.0599975585937...
liyong299/normal
java/src/main/java/com/ly/java/observer/ConcreteObserverA.java
<reponame>liyong299/normal package com.ly.java.observer; public class ConcreteObserverA implements AbstractObserver { @Override public void update(Object obj, Subject subject) { System.out.println("观察者A收到消息:" + obj); } }
webeyemob/WeSdkiOSPub
WeSdk/1.3.5/WeMobSdk.framework/Headers/WeMobILineItem.h
<gh_stars>0 // // WeMobILinItem.h // Created by Matthew on 2019/6/24. // #import <Foundation/Foundation.h> #import "WeMobBannerAdSize.h" #import "WeMobNetwork.h" @interface WeMobILineItem : NSObject -(NSString *)getName; -(WeMobNetwork *)getNetwork; -(int)getPriority; -(float)getEcpm; -(WeMobBannerAdSize)getBa...
vlumi/photo-diary
react-app/src/components/Gallery/Link.js
import React from "react"; import PropTypes from "prop-types"; import { Link as ReactLink } from "react-router-dom"; const Link = ({ children, className, gallery, year, month, photo, day, context, }) => { if (gallery && context === "stats") { return ( <ReactLink className={className} to={ga...
hakmesyo/OpenJazariLibrary
src/test/TestHSV.java
<reponame>hakmesyo/OpenJazariLibrary /* * 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; import jazari.matrix.CMatrix; import javax.swing.GrayFilter; /** * * @author BAP...
JavaScriptTesting/LJS
WebKit/Source/WebKit2/UIProcess/API/gtk/tests/WebViewTest.h
<filename>WebKit/Source/WebKit2/UIProcess/API/gtk/tests/WebViewTest.h<gh_stars>1-10 /* * Copyright (C) 2011 <NAME>. * Portions Copyright (c) 2011 Motorola Mobility, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Pu...
ssjlee93/infosys-kaggle-exercise
node/node_modules/npm/lib/ll.js
<filename>node/node_modules/npm/lib/ll.js const LS = require('./ls.js') class LL extends LS { /* istanbul ignore next - see test/lib/load-all-commands.js */ static get name () { return 'll' } /* istanbul ignore next - see test/lib/load-all-commands.js */ static get usage () { return ['[[<@...
NeuroRoboticTech/AnimatLabPublicSource
Libraries/AnimatCarlSimCUDA/CsSpikingCurrentSynapse.cpp
<reponame>NeuroRoboticTech/AnimatLabPublicSource<gh_stars>1-10 /** \file CsSpikingCurrentSynapse.cpp \brief Implements the synapse class. **/ #include "StdAfx.h" #include "CsNeuronGroup.h" #include "CsNeuralModule.h" #include "CsSpikingCurrentSynapse.h" namespace AnimatCarlSim { /** \brief Default constructor. \a...
miathedev/BoostForArduino
src/boost_numeric_odeint_stepper_symplectic_euler.hpp
<filename>src/boost_numeric_odeint_stepper_symplectic_euler.hpp<gh_stars>1-10 #include <boost/numeric/odeint/stepper/symplectic_euler.hpp>
voltek62/h2o-3
h2o-core/src/main/java/water/api/Route.java
package water.api; import com.google.code.regexp.Pattern; import java.lang.reflect.Method; import java.util.Arrays; import water.H2O; import water.Iced; import water.util.MarkdownBuilder; /** * Routing of an http request to a handler method, with path parameter parsing. */ final class Route extends Iced { static ...
fuldaros/paperplane_kernel_wileyfox-spark
sources/drivers/misc/mediatek/accelerometer/lsm6ds3/lsm6ds3.h
<reponame>fuldaros/paperplane_kernel_wileyfox-spark<filename>sources/drivers/misc/mediatek/accelerometer/lsm6ds3/lsm6ds3.h<gh_stars>1-10 /* lsm6ds3.h * 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 Found...
kuanfan99/zeva
frontend/src/app/components/Modal.js
import React from 'react'; import PropTypes from 'prop-types'; const Modal = (props) => { const { cancelLabel, children, confirmClass, confirmLabel, handleCancel, handleSubmit, modalClass, showModal, title, icon, } = props; return ([ <div className={`modal ${showModal...
Keneral/ae1
jetty/src/java/org/eclipse/jetty/http/HttpBuffers.java
// // ======================================================================== // Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
jeveleth/api
test/app/api/v1/domain/profile_test.js
const chai = require('chai') const sinon = require('sinon') const { ProfileDomain } = require('../../../../../app/api/v1/domain') const models = require('../../../../../app/models') const assert = chai.assert describe('Domain Profile', () => { let activityFindStub let notificationFindStub let sandbox before...
zarelaky/fuchsia
src/media/audio/audio_core/utils_unittest.cc
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/media/audio/audio_core/utils.h" #include <fuchsia/scheduler/cpp/fidl.h> #include <lib/fidl/cpp/binding_set.h> #include <lib/gtest/test_loop_...
kjthegod/chromium
remoting/webapp/browser_test/unauthenticated_browser_test.js
<reponame>kjthegod/chromium // Copyright 2015 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. /** * @fileoverview * @suppress {checkTypes} * * Browser test to verify that an unauthenticated state is handled correctly...
factset/enterprise-sdk
code/java/VirtualPortfolioAPIforDigitalPortals/v1/src/main/java/com/factset/sdk/VirtualPortfolioAPIforDigitalPortals/models/InlineResponse2008Data.java
<filename>code/java/VirtualPortfolioAPIforDigitalPortals/v1/src/main/java/com/factset/sdk/VirtualPortfolioAPIforDigitalPortals/models/InlineResponse2008Data.java /* * Prime Developer Trial * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of...
djvanhelmond/AdventofCode2017
Day 02: Corruption Checksum/Day 2: Corruption Checksum.py
<gh_stars>0 #!/usr/local/bin/python3 with open("./input.txt") as f: INPUT = f.readlines() star1_checksum = 0 star2_checksum = 0 for row in INPUT: star1_checksum += max(map(int, row.split('\t'))) - min(map(int, row.split('\t'))) for row in INPUT: all = sorted(list(map(int, row.split('\t')))) edFound ...
UniversalMinecraftAPI/UniversialMinecraftAPI
common/src/test/java/com/koenv/universalminecraftapi/parser/ExpressionParserTest.java
<reponame>UniversalMinecraftAPI/UniversialMinecraftAPI package com.koenv.universalminecraftapi.parser; import com.koenv.universalminecraftapi.parser.expressions.*; import org.junit.Test; import java.util.*; import static org.hamcrest.CoreMatchers.instanceOf; import static org.junit.Assert.assertEquals; import static...
paullewallencom/web-978-1-7858-8457-3
_/Chapter 3/app/store/Item.js
Ext.define('TodoApp.store.Item', { extend: 'Ext.data.Store', config: { model: 'TodoApp.model.Item', autoLoad: true } });
bedirhanbuyukoz/JavaBootCamp
9day/HRMS/src/main/java/bedirhan/hrms/entities/concretes/JobPosition.java
<filename>9day/HRMS/src/main/java/bedirhan/hrms/entities/concretes/JobPosition.java package burakimdat.hrms.entities.concretes; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persis...
chyroc/pylark
pylark/api_service_application_message_trend.py
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option from pylark import lark_type, lark_type_sheet, lark_type_approval import attr import typing import io @attr.s class GetApplicationMessageTrendReq(object): app_id: str = attr.ib( default="", me...
kifferltd/open-mika
tool/visualtest/java/com/acunia/wonka/test/awt/Choice/ChoiceTest.java
<filename>tool/visualtest/java/com/acunia/wonka/test/awt/Choice/ChoiceTest.java /************************************************************************** * Copyright (c) 2001 by Acunia N.V. All rights reserved. * * * * This softw...
yuichigoto/ccg2lambda
scripts/visualization_latex.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- import cgi import re from ccg2lambda_tools import build_ccg_tree from lxml import etree from semantic_index import find_node_by_id kUpwardsTree = True kDisplaySemantics = True kDisplayFeatures = True def get_fraction_latex(numerator, denominator, rule = '', upwards = kUpwa...
wuchunfu/crawlab-core
i18n/service.go
package i18n import "github.com/crawlab-team/crawlab-core/interfaces" var translations []interfaces.Translation var _svc interfaces.I18nService type Service struct { } func (svc *Service) AddTranslations(t []interfaces.Translation) { translations = append(translations, t...) } func (svc *Service) GetTranslations...
flystack/misty
lib/misty/http/method_builder.rb
module Misty module HTTP module MethodBuilder def method_missing(method_name, *args) if method = get_method(method_name) method_call(method, *args) else raise NoMethodError, "#{self.class}: #{method_name}" end end private def process_data(heade...
GinRex/phaser-blockly
dist-modules/client/actions/home.js
import axios from 'axios'; export const selectFile = selectedFile => ({ type: 'SELECT_FILE', selectedFile }); export const buildGame = gameObjects => ({ type: 'BUILD_GAME', gameObjects }); export const addObject = gameObject => ({ type: 'ADD_OBJECT', gameObject }); export const addScene = scene => dispa...
TheRakeshPurohit/CodingSpectator
plug-ins/helios/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/BaseTypeBinding.java
/******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution...
thlaegler/openbanking
openbanking-api-soap-transform/src/main/gen/com/laegler/openbanking/soap/service/POSTCreateDomesticStandingOrders500.java
<reponame>thlaegler/openbanking package com.laegler.openbanking.soap.service; import javax.xml.ws.WebFault; /** * Internal Server Error * * This class was generated by Apache CXF 3.3.3 * 2019-10-21T07:01:26.786+13:00 * Generated source version: 3.3.3 */ @WebFault(name = "POST_CreateDomesticStandingOrders_500...
hjholtz/PyExt
src/objects/PyLongObject.cpp
<reponame>hjholtz/PyExt #include "PyLongObject.h" #include "../ExtHelpers.h" #include <engextcpp.hpp> #include <string> #include <stdexcept> #include <vector> #include <algorithm> using namespace std; namespace PyExt::Remote { PyLongObject::PyLongObject(Offset objectAddress) : PyVarObject(objectAddress, "PyLong...
piotrjaniszewski1/Tourie-backend
services/google_maps.js
/* eslint-disable no-await-in-loop */ const googleMaps = require('@google/maps'); const debug = require('debug')('services:googleMaps'); const mSleep = require('../helpers/mSleep'); const GOOGLE_API_SLEEP_TIMEOUT = 600; const GOOGLE_DETAILS_FIELDS = ['price_level', 'rating', 'formatted_phone_number', 'review', 'websit...
bleack114/notify.moe
patches/delete-private-data/delete-private-data.go
<reponame>bleack114/notify.moe package main import ( "github.com/animenotifier/arn" "github.com/fatih/color" ) func main() { color.Yellow("Deleting private user data") defer arn.Node.Close() emailToUser := arn.DB.Collection("EmailToUser") testRecord, _ := emailToUser.Get("<EMAIL>") emailToUser.Clear() email...