repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
saeedesm/UNMT_AH
model/mosesdecoder/moses/FF/RulePairUnlexicalizedSource.cpp
<reponame>saeedesm/UNMT_AH #include "RulePairUnlexicalizedSource.h" #include "moses/StaticData.h" #include "moses/InputFileStream.h" #include "moses/ScoreComponentCollection.h" #include "moses/FactorCollection.h" #include <sstream> #include "util/string_stream.hh" using namespace std; namespace Moses { RulePairUnlex...
wsaada19/CommunityQuests
src/main/java/me/wonka01/ServerQuests/questcomponents/players/PlayerData.java
package me.wonka01.ServerQuests.questcomponents.players; // Stores data for each player who has contributed to a quest. public class PlayerData { private int amountContributed; private String playerName; public PlayerData(String name) { amountContributed = 0; playerName = name; } ...
chyrony/WebProject10001
src/chapter03/LongEx1.java
<gh_stars>0 package chapter03; /* LongEx1.java */ /* Using long type Variable */ public class LongEx1{ public static void main(String args[]) { long Year = 10; long LightSpeed = 186000; long Distance; Distance = Year*365*24*60*60*LightSpeed; System.out.print("In " +Year + " years " ); System.out.print("light w...
ZYJJerry/ReadAndLife
ReadAndLife/ReadAndLife/View/CollectionTableViewCell.h
// // CollectionTableViewCell.h // ReadAndLife // // Created by Jerry on 16/3/4. // Copyright © 2016年 周玉举. All rights reserved. // #import <UIKit/UIKit.h> #import "ArticleDetailModel.h" @interface CollectionTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *collectionImage; @property...
kevin-411/SIUE-Projects
CS 425 & 499 Senior Project - Software Design & Implementation/LearnOBA/src/com/learnoba/classes/select/SelectClassView.java
<filename>CS 425 & 499 Senior Project - Software Design & Implementation/LearnOBA/src/com/learnoba/classes/select/SelectClassView.java package com.learnoba.classes.select; import javafx.scene.layout.AnchorPane; import com.learnoba.AbstractView; public class SelectClassView extends AbstractView<AnchorPane> { publ...
lowerrandom/DaBomb_dc27_badge
software/firmware/ChibiOS/os/hal/ports/STM32/LLD/QUADSPIv1/hal_qspi_lld.h
/* ChibiOS - Copyright (C) 2006..2018 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
mosceo/sarama
delete_offsets_request.go
<reponame>mosceo/sarama package sarama type DeleteOffsetsRequest struct { Group string partitions map[string][]int32 } func (r *DeleteOffsetsRequest) encode(pe packetEncoder) (err error) { err = pe.putString(r.Group) if err != nil { return err } if r.partitions == nil { pe.putInt32(0) } else { if e...
Yurzs/boto
boto/ec2/virtualswitch.py
<gh_stars>1-10 """Croc Cloud EC2 Virtual Switch.""" from boto.ec2.ec2object import TaggedEC2Object class VirtualSwitch(TaggedEC2Object): def __init__(self, connection=None, id=None, name=None): super(VirtualSwitch, self).__init__(connection) self.id = id self.name = name self.ava...
jamesjcai/scGEAtoolbox
+run/thirdparty/umapFileExchange/nndescent/C++/distances.h
// // Created by <NAME> on 7/17/20. // /* AUTHORS <NAME> <<EMAIL>> <NAME> <<EMAIL>> <NAME> <<EMAIL>> Provided by suh ( Stanford University's Herzenberg Lab) License: BSD 3 clause */ // Expect to evolve this file when we start adding other distance metrics // Also plan to deprecate preprocessor macros (e....
m7onov/pgjdbc-ng
documentation/src/docs/examples/copy/to_system_out.java
<filename>documentation/src/docs/examples/copy/to_system_out.java System.setOut(new FileOutputStream("table.txt")); // <1> try (Statement statement = connection.createStatement()) { statement.execute("COPY a_table TO STDOUT"); // <2> }
ThomasBDZ/JAVAFX-Application
src/test/java/eu/telecomnancy/model/ProfRDVTests.java
<reponame>ThomasBDZ/JAVAFX-Application package eu.telecomnancy.model; import eu.telecomnancy.javafx.model.Creneau; import eu.telecomnancy.javafx.model.Enseignant; import eu.telecomnancy.javafx.model.Etudiant; import eu.telecomnancy.javafx.model.GestionnaireDB.*; import eu.telecomnancy.javafx.model.RDV; import org.juni...
webb04/frontend
sport/app/football/controllers/MatchListController.scala
<filename>sport/app/football/controllers/MatchListController.scala package football.controllers import common.{Edition, JsonComponent} import feed.Competitions import football.model.MatchesList import implicits.Requests import model.Cached.RevalidatableResult import model.{ApplicationContext, Cached, Competition, Team...
jkuczynski1/os_jk
OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/ExternalSensorAppearance.java
<reponame>jkuczynski1/os_jk<filename>OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/ExternalSensorAppearance.java /* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
tsegall/fta
src/test/java/com/cobber/fta/TestTokens.java
<gh_stars>1-10 package com.cobber.fta; import java.io.IOException; import java.util.Map; import java.util.Random; import org.testng.Assert; import org.testng.annotations.Test; import com.cobber.fta.core.FTAException; import com.cobber.fta.token.CharClassToken; import com.cobber.fta.token.Token; import com.cobber.fta...
intrepidcs/OBD2PRO_WIFI_CC32XX
ti_simplelink_sdk/source/ti/net/mqtt/interface/mqtt_client.c
<reponame>intrepidcs/OBD2PRO_WIFI_CC32XX /* * Copyright (C) 2016 Texas Instruments Incorporated * * All rights reserved. Property of Texas Instruments Incorporated. * Restricted rights to use, duplicate or disclose this code are * granted through contract. * * The program may not be used without the wr...
FTC-9974-THOR/SkyStone
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/beuler/BeulerTeleOp.java
<reponame>FTC-9974-THOR/SkyStone package org.firstinspires.ftc.teamcode.beuler; import android.os.SystemClock; import com.qualcomm.hardware.lynx.LynxModule; import com.qualcomm.hardware.rev.RevBlinkinLedDriver; import com.qualcomm.robotcore.eventloop.opmode.OpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleO...
coderanant/Competitive-Programming
CodeForces/Codeforces Round 640/F.cpp
/*coderanant*/ #include <bits/stdc++.h> using namespace std; #define int long long #define ll long long #define f1(i,a,b) for(int i=a;i<b;i++) #define f2(i,a,b) for(int i=a;i>=b;i--) #define endl '\n' #define pb push_back #define gp " " #define ff first #define ss second #define mp make_pair const int mod=1000000007;...
u2ware/u2ware-data-rest
src/test/java/io/github/u2ware/data/test/example09/source2/Bar.java
<filename>src/test/java/io/github/u2ware/data/test/example09/source2/Bar.java package io.github.u2ware.data.test.example09.source2; import java.util.UUID; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import lombok.Data; @Ta...
vadimdemedes/treport
tap-snapshots/lib-reports-specy-log.test.jsx-TAP.test.js
<gh_stars>0 /* IMPORTANT * This snapshot file is auto-generated, but designed for humans. * It should be checked into source control and tracked carefully. * Re-generate by setting TAP_SNAPSHOT=1 and running tests. * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' exports[`lib/report...
Aleshkev/algoritmika
codeforces-519/c--smallest-word.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); string s; cin >> s; I n = s.size(); vector<bool> v(n); for (I i = 1; i < n; ++i) { if (s[i] == 'a') { v[i] = true; v[i - 1] = !v[i ...
tmertens/globalhack
db/migrate/20161022164156_add_owner_to_organization.rb
<reponame>tmertens/globalhack<gh_stars>0 class AddOwnerToOrganization < ActiveRecord::Migration[5.0] def change add_reference(:organizations, :owner, foreign_key: {to_table: :users}) end end
sumelms/microservice-classes
internal/subscription/domain/service.go
package domain import ( "context" "fmt" "github.com/go-kit/kit/log" ) type ServiceInterface interface { ListSubscription(context.Context, map[string]interface{}) ([]Subscription, error) CreateSubscription(context.Context, *Subscription) (Subscription, error) FindSubscription(context.Context, string) (Subscript...
uk-gov-mirror/DFE-Digital.register-trainee-teachers
spec/features/trainees/degrees/editing_degree_spec.rb
<filename>spec/features/trainees/degrees/editing_degree_spec.rb # frozen_string_literal: true require "rails_helper" feature "editing a degree" do background { given_i_am_authenticated } context "UK degree" do scenario "the user enters valid details" do given_a_trainee_with_a_uk_degree when_i_vis...
solosTec/cyng
lib/sql/src/constant.cpp
/* * The MIT License (MIT) * * Copyright (c) 2017 <NAME> * */ #include <cyng/sql/dsl/constant.hpp> #include <cyng/io/io_chrono.hpp> namespace cyng { namespace sql { /** * std::string */ constant < std::string >::constant (std::string const& c) : c_(c) {} void constant < std::string >:...
liumapp/compiling-jvm
openjdk/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
<gh_stars>0 /* * Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published ...
lacau/onebr-service
src/main/java/br/com/onebr/controller/response/ResistomeRes.java
<filename>src/main/java/br/com/onebr/controller/response/ResistomeRes.java<gh_stars>0 package br.com.onebr.controller.response; import br.com.onebr.model.resistome.Aminoglycoside; import br.com.onebr.model.resistome.BLactam; import br.com.onebr.model.resistome.Colistin; import br.com.onebr.model.resistome.Fosfomycin; ...
asad-awadia/yugabyte-db
src/yb/tserver/heartbeater.h
<reponame>asad-awadia/yugabyte-db // 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, Versi...
digital-ECMT/acuity-vahub
vahub-model/src/test/java/com/acuity/visualisations/rawdatamodel/service/filters/CerebrovascularFilterServiceTest.java
/* * Copyright 2021 The University of Manchester * * 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 ...
ProjectAsura/D3D11Samples
D3D11_USM/USM/asdx/include/asdxTextRenderer.h
//--------------------------------------------------------------------------------------------- // File : asdxTextRenderer.h // Desc : Text Renderer Module. // Copyright(c) Project Asura. All right reserved. //--------------------------------------------------------------------------------------------- #ifndef __ASDX...
pany-young/walle-rpc
walle-remoting/src/main/java/cn/pany/walle/remoting/api/Invoker.java
<filename>walle-remoting/src/main/java/cn/pany/walle/remoting/api/Invoker.java<gh_stars>1-10 package cn.pany.walle.remoting.api; /** * Created by pany on 17/12/11. */ public interface Invoker<T> { }
ScalablyTyped/SlinkyTyped
r/react-better-password/src/main/scala/typingsSlinky/reactBetterPassword/reactBetterPasswordStrings.scala
package typingsSlinky.reactBetterPassword import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object reactBetterPasswordStrings { @js.native sealed trait Bullet extends StOb...
momotofu/lms_graphql_api
lib/lms_graphql/types/canvas/grader_input.rb
require_relative "../canvas_base_input_type" module LMSGraphQL module Types module Canvas class CanvasGraderInput < BaseInputObject description "Gradebook History. API Docs: https://canvas.instructure.com/doc/api/gradebook_history.html" argument :id, ID, "the user_id of the user who graded t...
trekmedics/beacon
db/migrate/20150129190208_create_incident.rb
class CreateIncident < ActiveRecord::Migration def change create_table :incidents do |t| t.integer :state t.references :reporting_party, index: true t.references :incident_commander, index: true t.string :location t.integer :completion_status t.timestamps end add_foreig...
Skemba/alt-integration-cpp
test/entities/vbkpoptx_test.cpp
// Copyright (c) 2019-2020 <NAME> // https://www.veriblock.org // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. #include "veriblock/entities/vbkpoptx.hpp" #include <gtest/gtest.h> #include "veriblock/literals.hpp" using namesp...
kamleshbhalui/chapel
third-party/libfabric/libfabric-src/prov/rxm/src/rxm_atomic.c
<gh_stars>1-10 /* * Copyright (c) 2018 Cray Inc. All rights reserved. * Copyright (c) 2018 System Fabric Works, Inc. All rights reserved. * (C) Copyright 2020 Hewlett Packard Enterprise Development LP * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed und...
zjjzmw1/ZMWCustomView
ZMWCustomView/Utils/CustomLabel.h
<filename>ZMWCustomView/Utils/CustomLabel.h // // DJLabel.h // zhangmingwei // // Created by 张 on 14-3-18. // Copyright (c) 2014年 zhangmingwei. All rights reserved. // #import <UIKit/UIKit.h> @interface CustomLabel : UILabel @property (nonatomic, assign) UIEdgeInsets insets; - (id)initWithFrame:(CGRect)frame fo...
BeamMW/plugin-red-envelope
wallet/rpc-post.go
<reponame>BeamMW/plugin-red-envelope<filename>wallet/rpc-post.go<gh_stars>1-10 package wallet import ( "bytes" "encoding/json" "fmt" "github.com/BeamMW/plugin-red-envelope/jsonrpc" "io/ioutil" "net/http" ) type JsonParams map[string]interface{} func (api *API) rpcPost(method string, params interface{}) (res *j...
ioannis-mylonas/orange-talents-03-template-ecommerce
src/main/java/bootcamp/mercado/produto/compra/gateway/GatewayList.java
package bootcamp.mercado.produto.compra.gateway; import org.springframework.stereotype.Component; import java.util.Collection; import java.util.Optional; @Component public class GatewayList { private Collection<Gateway> gateways; public GatewayList(Collection<Gateway> gateways) { this.gateways = gat...
w181496/OJ
TIOJ/1023.cpp
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { int t; while(cin>>t) { vector<int> n1; vector<int> n2; long long int sum=0,e; for(int i=0;i<t;i++) { cin>>e; n1.push_back(e); } for(i...
sourcery-ai-bot/factom-core
p2p/parcel.py
<reponame>sourcery-ai-bot/factom-core from enum import IntEnum, unique @unique class ParcelType(IntEnum): HEART_BEAT = 0 # Deprecated PING = 1 # Sent if no other parcels have been sent in a while PONG = 2 # Response to a ping PEER_REQUEST = 3 # Indicates a peer wants to b...
RoubyTerenui/Casse-Brique
html/search/files_a.js
var searchData= [ ['ui_5fmainwindow_2eh',['ui_mainwindow.h',['../ui__mainwindow_8h.html',1,'']]] ];
ninaandrup/flix
main/src/ca/uwaterloo/flix/language/phase/unification/BoolTable.scala
<filename>main/src/ca/uwaterloo/flix/language/phase/unification/BoolTable.scala /* * Copyright 2022 <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/l...
BrendanLeber/adventofcode
2015/10-look_and_say/solver.py
<gh_stars>0 #!/usr/bin/env python # -*- coding: utf-8 -*- import pdb import sys import traceback from typing import Tuple def look_and_say(sequence: str) -> str: # create a run-length list of (char, count) from the input rle = [] old_ch = sequence[0] counter = 1 for ch in sequence[1:]: if...
alwell-kevin/gitlab
ee/spec/lib/ee/gitlab/usage_data_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Gitlab::UsageData do before do allow(ActiveRecord::Base.connection).to receive(:transaction_open?).and_return(false) end describe '#data' do # using Array.new to create a different creator User for each of the projects let_it_be(:projects...
threathunterX/offline
src/test/java/com/threathunter/bordercollie/slot/compute/cache/wrapper/array/SecondaryCountsArrayCacheWrapperTest.java
package com.threathunter.bordercollie.slot.compute.cache.wrapper.array; import com.threathunter.bordercollie.slot.compute.cache.CacheType; import com.threathunter.bordercollie.slot.compute.cache.StorageType; import com.threathunter.bordercollie.slot.compute.cache.storage.ByteArrayCacheStore; import com.threathunter.bo...
ckamtsikis/cmssw
TopQuarkAnalysis/TopJetCombination/python/TtFullHadHypKinFit_cff.py
import FWCore.ParameterSet.Config as cms # # produce kinFit hypothesis with all necessary # ingredients # ## std sequence to perform kinematic fit import TopQuarkAnalysis.TopKinFitter.TtFullHadKinFitProducer_cfi kinFitTtFullHadEventHypothesis = TopQuarkAnalysis.TopKinFitter.TtFullHadKinFitProducer_cfi.kinFitTtFullHa...
wcharczuk/reactor
vendor/github.com/blend/go-sdk/logger/write_helpers.go
<reponame>wcharczuk/reactor package logger import ( "fmt" "io" "net/http" "time" "github.com/blend/go-sdk/ansi" "github.com/blend/go-sdk/stringutil" "github.com/blend/go-sdk/webutil" ) // WriteHTTPRequest is a helper method to write request start events to a writer. func WriteHTTPRequest(tf TextFormatter, wr ...
razie/diesel-hydra
app/razie/diesel/engine/exec/EEFormatter.scala
/* ____ __ ____ ____ ____,,___ ____ __ __ ____ * ( _ \ /__\ (_ )(_ _)( ___)/ __) ( _ \( )( )( _ \ Read * ) / /(__)\ / /_ _)(_ )__) \__ \ )___/ )(__)( ) _ < README.txt * (_)\_)(__)(__)(____)(____)(____)(___/ (__) (______)(____/ LICENSE.txt */ package razie.di...
melven/pitts
src/pitts_common_pybind.hpp
/*! @file pitts_common_pybind.hpp * @brief header for python binding for PITTS common helper functionality * @author <NAME> <<EMAIL>> * @date 2020-06-26 * @copyright Deutsches Zentrum fuer Luft- und Raumfahrt e. V. (DLR), German Aerospace Center * **/ // include guard #ifndef PITTS_COMMON_PYBIND_HPP #define PITTS_COM...
vlmillet/phantom
projects/Phantom/phantom/utils/Flags.hxx
#pragma once // haunt { // clang-format off #include "Flags.h" #if defined(_MSC_VER) # pragma warning(push, 0) #elif defined(__clang__) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wall" # pragma clang diagnostic ignored "-Wextra" #endif #include <phantom/namespace> #include <phantom/...
gavin2lee/incubator-gl
mnis/core/src/main/java/com/lachesis/mnis/core/nursing/NurseShiftEntity.java
<reponame>gavin2lee/incubator-gl<gh_stars>1-10 package com.lachesis.mnis.core.nursing; import java.util.Date; import java.util.List; public class NurseShiftEntity { private String nurseShiftId;// 护士交班本id private String patientId; private String patientName; private String deptCode; private String deptName; priv...
Vanya112/BSUIR_Labs
4 term/Personal-Computer-Architecture/Lab 5/Source.cpp
#include <dos.h> #include <stdio.h> #include <conio.h> #include <io.h> #define PLAY_SOUND() _asm { _asm mov bx,0 _asm mov ax, 0E07h _asm int 10h } unsigned int globalCount = 0; void _interrupt _far(*oldVector)(); void _interrupt _far newVector(); void interrupt(*oldAlarm) (); void reset() { if (oldAlarm != ...
Indexyz/Sakura
app/middleware/coinhive.js
<reponame>Indexyz/Sakura 'use strict'; module.exports = options => { return function* (next) { if (this.request.method === 'POST') { if (options.site_key !== '') { const { token } = this.request.body; if (!(yield this.service.coinhive.verify(token))) { ...
Garlov/OpenJam.CatsOrDogs
src/components/events/canEmit.js
<reponame>Garlov/OpenJam.CatsOrDogs import store from 'root/store'; import Phaser from 'phaser'; import createListener from 'core/createListener'; const canEmit = function canEmitFunc(state) { const localEmitter = new Phaser.Events.EventEmitter(); const listeners = []; function emitGlobal(event, data) { ...
proglang/dts-generate-results
results/4_extract-code/code/irc/irc_1.js
<reponame>proglang/dts-generate-results<gh_stars>1-10 var irc = require('irc'); var client = new irc.Client('irc.yourserver.com', 'myNick', { channels: ['#channel'], });
matti/webdriver
lib/webdriver/cookie.rb
<reponame>matti/webdriver<filename>lib/webdriver/cookie.rb module Webdriver class Cookie attr_reader :name def initialize(name, connection) @name = name @session_connection = connection @connection = Webdriver::PrefixConnection.new "cookie/#{@name}", connection end def delete! ...
sir-maniac/Cobalt
src/main/java/org/squiddev/cobalt/OrphanedThreadException.java
/* * The MIT License (MIT) * * Original Source: Copyright (c) 2009-2011 Luaj.org. All rights reserved. * Modifications: Copyright (c) 2015-2020 SquidDev * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
egrosclaude/IC2016
plugin/function-plot/node_modules/interval-arithmetic-eval/index.js
<reponame>egrosclaude/IC2016 /* * interval-arithmetic-eval * * Copyright (c) 2015 <NAME> * Licensed under the MIT license. */ 'use strict' module.exports = require('./lib/eval')
bigmiguel/VIRMCorp
Resources/android/alloy/controllers/slideMenu.js
function Controller() { function _MenuIzquierdo() { true == $.btnMenu.toggle ? cierraMenuIzquierdo() : abreMenuIzquierdo(); } function _MenuDerecho() { true == $.btnMenuDer.toggle ? cierraMenuDerecho() : abreMenuDerecho(); } function abreMenuIzquierdo() { $.leftMenu.show(); ...
antarikshray/websiterudra
node_modules/react-icons/io/ios-location.js
<gh_stars>1-10 import React from 'react' import Icon from 'react-icon-base' const IoIosLocation = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.8 2.5c6.2 0 11.2 5 11.2 11.3 0 8.7-11.2 23.7-11.2 23.7s-11.3-15-11.3-23.7c0-6.3 5-11.3 11.3-11.3z m0 14.9c2 0 3.6-1.6 3.6-3.6s-1.6-3.7-3.6-3.7-...
iris-mobile-accessibility-repair/geohashdroid
app/src/main/java/net/exclaimindustries/geohashdroid/services/package-info.java
<reponame>iris-mobile-accessibility-repair/geohashdroid<filename>app/src/main/java/net/exclaimindustries/geohashdroid/services/package-info.java /** * Here be services. There be no escape. * * @author <NAME> */ package net.exclaimindustries.geohashdroid.services;
zburke/ui-inn-reach
src/settings/components/CentralServersConfiguration/CentralServersConfigurationForm/components/Footer/Footer.js
import React from 'react'; import PropTypes from 'prop-types'; import { Button, PaneFooter, } from '@folio/stripes-components'; import { FormattedMessage, } from 'react-intl'; const Footer = ({ pristine, invalid, onCancel, onHandleSubmit, }) => { const cancelButton = ( <Button data-testid="ca...
DevSabb/java-algorand-sdk
src/main/java/com/algorand/algosdk/v2/client/model/EvalDeltaKeyValue.java
package com.algorand.algosdk.v2.client.model; import java.util.Objects; import com.algorand.algosdk.v2.client.common.PathResponse; import com.fasterxml.jackson.annotation.JsonProperty; /** * Key-value pairs for StateDelta. */ public class EvalDeltaKeyValue extends PathResponse { @JsonProperty("key") publi...
kaustubhhiware/Java_lin
22/MSlist2.java
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MSlist2 extends JFrame{ private JList leftlist; private JList rightlist; private JButton button; private static String[] foods = {"dhokla","khandwa","fafda","jilebi","chiwda","more"}; //#hamare gujarat main aisa hi hota ha...
zhangkn/iOS14Header
usr/libexec/fmflocatord/FMDGainsboroughPairedDeviceSimulation.h
<reponame>zhangkn/iOS14Header // // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @interface FMDGainsboroughPairedDeviceSimulation : NSObject { } - (id)pairedDeviceInfo; // IMP=...
WuYifanX/leetcode
problems/leetcode1_TwoSum/Solution2.java
<reponame>WuYifanX/leetcode<gh_stars>0 package leetcode1_TwoSum; public class Solution2 { private int[] memo; public int getRabbit(int n) { if (n == 0) return 0; memo = new int[n + 1]; memo[1] = 1; memo[2] = 1; for (int i = 3; i <= n; i++) { memo[i] = memo[i - 1] + memo[i - 2]; } ...
XiaoBoya/pkg
apis/meta/v1alpha1/objectreference_test.go
<reponame>XiaoBoya/pkg<filename>apis/meta/v1alpha1/objectreference_test.go /* Copyright 2021 The Katanomi 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...
grische/OpenSPH
test/utils/Approx.cpp
#include "tests/Approx.h" #include "catch.hpp" using namespace Sph; TEST_CASE("Approx float", "[approx]") { // some sanity checks REQUIRE(0._f == approx(0._f)); REQUIRE(0._f == approx(0._f, 0._f)); REQUIRE(1._f == approx(1._f)); REQUIRE(1._f == approx(1._f + EPS)); REQUIRE_FALSE(1._f == approx...
huuuuusy/Programming-Practice-Everyday
LeetCode/python-R1/0027-移除元素/V2.py
""" @Author: huuuuusy @GitHub: https://github.com/huuuuusy 系统: Ubuntu 18.04 IDE: VS Code 1.36 工具: python == 3.7.3 """ """ 思路: 使用filter + lambda对数组进行筛选 结果: 本地运行可以,但是无法通过测试,猜测网站测试不允许对nums进行filter操作 本思路可以作为日常使用的参考 """ class Solution: def removeElement(self, nums, val): nums = filter(lambda num ...
PudgyPoppins/caps
cal/migrations/0022_auto_20200812_0019.py
<filename>cal/migrations/0022_auto_20200812_0019.py<gh_stars>0 # Generated by Django 3.0.8 on 2020-08-12 00:19 import datetime from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('cal', '0021_attendee_email'), ] operatio...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-braket/include/aws/braket/model/CreateQuantumTaskRequest.h
<filename>aws-cpp-sdk-braket/include/aws/braket/model/CreateQuantumTaskRequest.h<gh_stars>1-10 /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/braket/Braket_EXPORTS.h> #include <aws/braket/BraketRequest.h> #include <aws/c...
scottwedge/gd.py
gd/api/__init__.py
<reponame>scottwedge/gd.py from gd.api.enums import * from gd.api.loader import * from gd.api.editor import * from gd.api.struct import * from gd.api.hsv import * from gd.api.save import * from gd.api.utils import *
carefree0910/carefree-learn
setup.py
<filename>setup.py from setuptools import setup, find_packages VERSION = "0.2.0" DESCRIPTION = "Deep Learning with PyTorch made easy" with open("README.md", encoding="utf-8") as f: LONG_DESCRIPTION = f.read() setup( name="carefree-learn", version=VERSION, packages=find_packages(exclude=("tests",)), ...
antoineFrau/design-pattern-java
TD-PatternStrategy/src/com/td1/armes/Couteau.java
<filename>TD-PatternStrategy/src/com/td1/armes/Couteau.java package com.td1.armes; public class Couteau implements Arme { @Override public String seBattre() { return "utilise son couteau pour se battre"; } }
Nabila118/DBProject
demos/React/app/tabs/fluidsize/app.js
<gh_stars>0 import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; class App extends React.Component { render () { let tabsHTML = ` <ul> <li style="margin-left: 30px;">Node.js</li> <li>JavaSer...
sivashanek/litigait-web
app/blocks/records/constants.js
<filename>app/blocks/records/constants.js /* * * constants * */ export default function constants(name) { const url = `lg/${name}`; return { LOAD_RECORD: `${url}/LOAD_RECORD`, LOAD_RECORD_SUCCESS: `${url}/LOAD_RECORD_SUCCESS`, LOAD_RECORD_ERROR: `${url}/LOAD_RECORD_ERROR`, LOAD_RECORDS: `${ur...
SCSLaboratory/BearOS
usr/include/swint.h
<reponame>SCSLaboratory/BearOS #pragma once #include <sys/swint.h>
bellcliff/appium
test/functional/ios/uicatalog/find-by-xpath-specs.js
"use strict"; var setup = require("../../common/setup-base") , desired = require('././desired') , Q = require("q") , _ = require("underscore") , spinWait = require("../../../helpers/spin.js").spinWait; describe('uicatalog - find by xpath @skip-ios6', function () { var driver; setup(this, desired).then(fun...
aryan-gupta/ECGR4181
HW1/deprecated/DinReader.cpp
<filename>HW1/deprecated/DinReader.cpp #include <string> #include "DinReader.hpp" // Every impl I take a look at shows me that there is no way to convert a // byte buffer into a string stream to parse using op>> without copying. // So low lever stuff here I come... DinReader::DinReader(std::string file) : mFile{ f...
mixit-craftsmanship/mixit-craftsmanship
test/server/libs/cacheFactoryTest.js
<filename>test/server/libs/cacheFactoryTest.js var cacheFactory = require('../../../libs/cacheFactory'); var promise = require('promise'); describe('Cache module', function () { describe('Given empty cache', function () { it('When call getOrExecute then execute function and return result', function (done) ...
ExcitedBlob/simorgh
cypress/integration/pages/mostReadPage/tests.js
import path from 'ramda/src/path'; import config from '../../../support/config/services'; export default ({ service, pageType, variant }) => { describe(`No testsToAlwaysRun to run for ${service} ${pageType}`, () => { describe(`Tests for ${service} ${pageType}`, () => { describe('Most Read component', () =>...
nhl/link-move
link-move/src/main/java/com/nhl/link/move/annotation/AfterFksResolved.java
package com.nhl.link.move.annotation; import java.lang.annotation.*; /** * Annotation of a data segment transformation stage listener method that should be called after FK values * are resolved to objects. * * @since 2.12 */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited p...
aaliomer/exos
sys/dpf/output.c
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
WietseGielen/Pong-Node.js
node_modules/opnr/example.js
var http = require('http') require('getport')(function(err, port) { if (err) throw err var server = http.createServer(function(req, res) { res.end('hello') }) server.listen(port, function(err) { if (err) throw err console.log(JSON.stringify({ url: 'localhost:'+port, type: 'c...
dsalinux/open-imob
src/main/java/br/com/softop/imobiliaria/entity/Login.java
<filename>src/main/java/br/com/softop/imobiliaria/entity/Login.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package br.com.softop.imobiliaria.entity; import java.io.Serializable; import java.util.Date; import javax.persistence.Basic; import javax.persistence....
muxanick/scala-native-java-stubs
javax/naming/event/NamingExceptionEvent.scala
<filename>javax/naming/event/NamingExceptionEvent.scala<gh_stars>0 package javax.naming.event import java.lang.Object import java.util.EventObject import javax.naming.NamingException import scala.scalanative.annotation.stub /** This class represents an event fired when the procedures/processes * used to collect inf...
MrDML/LinKingSDKWLZG
LinKingSDK/Products/LinKingSDK.framework/Headers/LKUseAgreementView.h
// // LKUseAgreementView.h // LinKingSDK // // Created by leoan on 2020/7/31. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface LKUseAgreementView : UIView @property (weak, nonatomic) IBOutlet UIView *view_content; @property (weak, nonatomic) IBOutlet...
AlexeyKashintsev/PlatypusJS
web-client/src/platypus/src/com/eas/client/form/grid/columns/header/ModelHeaderNode.java
package com.eas.client.form.grid.columns.header; import com.bearsoft.gwt.ui.widgets.grid.DraggableHeader; import com.bearsoft.gwt.ui.widgets.grid.header.HeaderNode; import com.eas.client.form.grid.columns.ModelColumn; import com.eas.client.form.published.HasJsName; import com.eas.client.form.published.HasPublish...
femtoio/femtousb-blink-example
blinky/common/services/gfx/gfx.h
<reponame>femtoio/femtousb-blink-example<filename>blinky/common/services/gfx/gfx.h /** * \file * * \brief Graphical library API header file * * This files includes the correct header files for the graphics service * * Copyright (c) 2012-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * ...
omerlesh/go-archive-extractor
vendor/github.com/blakesmith/ar/writer_test.go
<reponame>omerlesh/go-archive-extractor<gh_stars>1-10 /* Copyright (c) 2013 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
Sedl/docsis-pnm
internal/types/cmstatus.go
package types import "github.com/sedl/docsis-pnm/internal/constants" type CmStatus int var cmStatusString = []string{ "Unknown", "Other", "Ranging", "RangingAborted", "RangingComplete", "IpComplete", "RegistrationComplete", "AccessDenied", "Operational", "RegisteredBPIInitializing", } func (status CmStatu...
kravitz/transims4
ArcProblem/ArcProblem.hpp
<reponame>kravitz/transims4<filename>ArcProblem/ArcProblem.hpp //********************************************************* // ArcProblem.hpp - ArcView Problem Files //********************************************************* #ifndef ARCPROBLEM_HPP #define ARCPROBLEM_HPP #include "Demand_Service.hpp" #include "Project...
beida101/PublicCMS
publiccms-admin-by-maven/src/main/java/com/publiccms/admin/views/controller/IndexAdminController.java
<gh_stars>0 package com.publiccms.admin.views.controller; import static com.publiccms.common.constants.FreeMakerConstants.CONTEXT_PATH; import static org.apache.commons.lang3.StringUtils.isNotBlank; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springfram...
DeepHealthyChain/dapp-backend
dist/server/services/jkbapp/score.service.js
<reponame>DeepHealthyChain/dapp-backend 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); // getContent // const getIpfsContent = async hash => await getContent(hash); /** * 根据用户id获取对应积分 * @param {*} req * @param {*} res */ var getScores = function () { var _ref = _asyncToGenerator...
webkinder/FlipClock
src/js/Languages/fi-fi.js
<reponame>webkinder/FlipClock /** * @classdesc Finnish Language Pack * @desc This class will used to translate tokens into the Finnish language. * @namespace Languages.Finnish */ /** * @constant dictionary * @type {object} * @memberof Languages.Finnish */ export const dictionary = { 'years' : 'Vuotta', 'mo...
mhenderson-so/go-blackbox
cmd/blackbox/edit.go
package main import ( "fmt" "io/ioutil" "os" blackbox "github.com/mhenderson-so/go-blackbox/cmd/go-blackbox" "github.com/urfave/cli" ) // editStart decrypts a list of files. They will need to be re-encrypted manually. func editStart(args cli.Args) error { if len(args) == 0 { //If there are no file...
WickhamWei/WickhamsPlugin
src/wickhamsPlugin/command/TpAll.java
<filename>src/wickhamsPlugin/command/TpAll.java package wickhamsPlugin.command; import java.util.Collection; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class TpAll implemen...
NoahChian/Devops
src/main/java/org/iii/ideas/catering_service/rest/api/UpdateSchoolSeasoningDetailResponse.java
package org.iii.ideas.catering_service.rest.api; public class UpdateSchoolSeasoningDetailResponse extends AbstractApiResponse { }
mpastern/datameer-gcs-connector
gcs/src/main/java/com/kenshoo/integrations/plugins/connectors/GCSFileProtocol.java
// // Copyright (c) 2014 Ken<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 la...
koordinates/react-redux-grid
dist/components/core/menu/MenuItem.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConnectedMenuItem = exports.MenuItem = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor....