repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
silsha/homebrew-cask
Casks/google-backup-and-sync.rb
<reponame>silsha/homebrew-cask<filename>Casks/google-backup-and-sync.rb cask "google-backup-and-sync" do version "3.53.3471.0626" sha256 :no_check url "https://dl.google.com/drive/InstallBackupAndSync.dmg" name "Google Backup and Sync" homepage "https://www.google.com/drive/download/" auto_updates true ...
jvarsoke/ictk
src/test/java/ictk/boardgame/chess/ChessBoardTest.java
/* * ictk - Internet Chess ToolKit * More information is available at http://jvarsoke.github.io/ictk * Copyright (c) 1997-2014 <NAME> <ictk.jvarsoke [at] neverbox.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
KraemerDEM/fleece
Fleece/Support/Endian.hh
<reponame>KraemerDEM/fleece<gh_stars>0 // // Endian.hh // // Copyright (c) 2015 Couchbase, Inc All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache...
Scottx86-64/dotfiles-1
source/pkgsrc/games/love07/patches/patch-src_modules_graphics_opengl_Graphics.h
<reponame>Scottx86-64/dotfiles-1 $NetBSD: patch-src_modules_graphics_opengl_Graphics.h,v 1.1 2018/09/30 19:10:11 maya Exp $ Match SDL1 include paths --- src/modules/graphics/opengl/Graphics.h.orig 2011-05-04 16:00:10.000000000 +0000 +++ src/modules/graphics/opengl/Graphics.h @@ -26,9 +26,9 @@ #include <cmath> // ...
cloudawan/cloudone
restapi/restapi.go
<gh_stars>1-10 // Copyright 2015 CloudAwan 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 applicable law...
Dario213/My-Python-Scripts
PyScripts(elseIsTkinter)/ex2.py
<reponame>Dario213/My-Python-Scripts<gh_stars>0 #print(this wount run) print("This will run.") print("I could have coded li this before")#Comment is still ignored
tusharchoudhary0003/Custom-Football-Game
sources/com/google/android/gms/internal/ads/zzku.java
<reponame>tusharchoudhary0003/Custom-Football-Game<filename>sources/com/google/android/gms/internal/ads/zzku.java<gh_stars>1-10 package com.google.android.gms.internal.ads; import java.io.IOException; public final class zzku extends Exception { /* renamed from: a */ private final int f28763a; /* renamed...
MinterTeam/mhub2
module/x/oracle/types/msgs.go
<filename>module/x/oracle/types/msgs.go<gh_stars>1-10 package types import ( "encoding/json" "fmt" "sort" "strings" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/tendermint/tendermint/crypto/tmhash" ) // Claim represents a claim type Claim interface...
S-Freedom/WCRAliPlayerDemo
demo/Pods/Headers/Public/AlivcBasicVideo/AVCFreeTrialView.h
// // AVCFreeTrialView.h // AliyunVideoClient_Entrance // // Created by 汪宁 on 2019/3/6. // Copyright © 2019年 Alibaba. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef enum : NSUInteger { FreeTrialStart, //开始试看 FreeTrialEnd, // 结束试看 } VideoFreeTrialType; @interface AVCFreeTr...
christinefeng/phoenix
phoenix-core/src/it/java/org/apache/phoenix/end2end/RowTimestampIT.java
<reponame>christinefeng/phoenix /* * 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, Vers...
ElatedEatrs/Pikifen
Source/source/editors/animation_editor/gui_functions.cpp
<gh_stars>0 /* * Copyright (c) <NAME> 2013. * The following source file belongs to the open-source project Pikifen. * Please read the included README and LICENSE files for more information. * Pikmin is copyright (c) Nintendo. * * === FILE DESCRIPTION === * Functions about the animation editor's GUI. */ #includ...
yhyu13/Engine2021
engine/source/engine/events/Event.h
<gh_stars>0 #pragma once namespace longmarch { struct BaseEvent { BaseEvent() = default; virtual ~BaseEvent() = default; }; template <typename EventType> struct Event : BaseEvent { Event() = default; explicit Event(EventType type) : m_type(type) {} virtual ~Event() = default;...
QAlexBall/Learning_Py
Three_Part_Moudule/Selenium/test2.py
from selenium import webdriver import time options = webdriver.ChromeOptions() options.add_argument('--ignore-certificate-errors') options.add_argument("--test-type") options.binary_location = "/usr/bin/google-chrome" driver = webdriver.Chrome(chrome_options=options) driver.get('http://codepad.org') text_area = dri...
othmaan/codesandbox-clien
src/app/pages/Sandbox/Editor/index.js
<reponame>othmaan/codesandbox-clien<gh_stars>0 /* @flow */ import * as React from 'react'; import SplitPane from 'react-split-pane'; import type { Sandbox } from 'common/types'; import Fullscreen from 'app/components/flex/Fullscreen'; import Workspace from './Workspace'; import Content from './Content'; type Props ...
piotrszyma/web-chat-app
src/containers/chat/list/ChatListElement.js
import React, {Component} from 'react'; import {List} from 'semantic-ui-react'; import {withRouter} from "react-router-dom"; import classnames from 'classnames'; import {timeStampToDateStr} from "../../../utils/time"; import {connect} from "react-redux"; import SocketService from "./../../../services/socket/socket-serv...
tomerfiliba/agnos
libagnos/java/src/agnos/packers/MapOf.java
<reponame>tomerfiliba/agnos<filename>libagnos/java/src/agnos/packers/MapOf.java package agnos.packers; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Set; import agnos.transports.ITransport; public final class MapOf<K, V> extends AbstractPacker { protected AbstractPacker...
followtherider/mapbox-gl-native
src/mbgl/gl/uniform.cpp
#include <mbgl/gl/uniform.hpp> #include <mbgl/gl/gl.hpp> #include <mbgl/util/color.hpp> namespace mbgl { namespace gl { template <> void Uniform<float>::bind(const float& t) { MBGL_CHECK_ERROR(glUniform1f(location, t)); } template <> void Uniform<int32_t>::bind(const int32_t& t) { MBGL_CHECK_ERROR(glUniform1...
lino-network/lino
x/global/model/ir.go
<reponame>lino-network/lino<filename>x/global/model/ir.go<gh_stars>100-1000 package model import ( // sdk "github.com/cosmos/cosmos-sdk/types" "github.com/lino-network/lino/types" ) // GlobalTimeIR - global time type GlobalTimeIR struct { ChainStartTime int64 `json:"chain_start_time"` LastBlockTime int64 `json:...
ximing/mpbuild
packages/mpbuild/src/plugin/handleWXMLDep.js
/** * Created by ximing on 2019-03-15. */ const htmlparser = require('htmlparser2'); const path = require('path'); const generateCode = function (ast, code = '', distDeps, asset, relative) { const { length } = ast; for (let i = 0; i < length; i++) { const node = ast[i]; const { type, name, da...
timfel/netbeans
webcommon/javascript2.editor/src/org/netbeans/modules/javascript2/editor/JsInstantRenamer.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 ...
DemonRem/redalert-android
app/src/main/java/com/red/alert/config/Safety.java
package com.red.alert.config; public class Safety { // The number of minutes to count to after the rocket impact countdown is over public static int POST_IMPACT_WAIT_MINUTES = 10; }
jladd-mlnx/ompi
ompi/mca/sbgp/ibnet/sbgp_ibnet.h
/* * Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved. * Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #ifndef MCA_BCOL_ibnet_EXPORT_H #define MCA_BCOL_ibnet_EXPORT_H #include "ompi_config.h" ...
meisenla/liquibase
liquibase-core/src/main/java/liquibase/exception/CommandValidationException.java
<reponame>meisenla/liquibase package liquibase.exception; /** * Exception thrown when any pre-execution validation fails. */ public class CommandValidationException extends CommandExecutionException { public CommandValidationException(String argument, String message) { super("Invalid argument '" + argum...
acdh-oeaw/diauma
maps/forms/widgets/geonames.py
from django.forms import widgets from django.utils.safestring import mark_safe from django.conf import settings class GeonamesWidget(widgets.NumberInput): """ A widget for a GeoNames Id form field. It searches for the value from an #id_name field. Fuzzy search can be toggled and search categories selected...
wanyaoqi/onecloud
pkg/compute/tasks/elasticcache_backup_create_task.go
<reponame>wanyaoqi/onecloud // Copyright 2019 Yunion // // 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...
Qi-Yang0914/ST17H66_RGBLight
ST17H66_SDK_3.0.9.2_RGBLight_Common/components/ethermind/utils/include/ecdh.h
<reponame>Qi-Yang0914/ST17H66_RGBLight<gh_stars>0 /*************************************************************************** Copyright (C) Mindtree Consulting Ltd. This module is a confidential and proprietary property of Mindtree and a possession or use of this module requires written permission of Mindt...
marcocappolimases/JCOReflector
netreflected/src/net461/system.web_version_4.0.0.0_culture_neutral_publickeytoken_b03f5f7f11d50a3a/system/web/ui/webcontrols/Login.java
<reponame>marcocappolimases/JCOReflector<filename>netreflected/src/net461/system.web_version_4.0.0.0_culture_neutral_publickeytoken_b03f5f7f11d50a3a/system/web/ui/webcontrols/Login.java /* * MIT License * * Copyright (c) 2021 MASES s.r.l. * * Permission is hereby granted, free of charge, to any person obtaining...
HydrologicEngineeringCenter/heclib
heclib/heclib_c/src/Utilities/floatsToDoubles.c
#include <stdio.h> // Convert an array of floats into doubles, in place // This works from the end of the array so that the same array // is used without writing over any values // // Data types are mixed, so we avoid header declarition to avoid // a compiler error // // BE SURE your array is dimension to hold a...
ubercomrade/MultiDeNA
tools/write_model.py
import math import itertools from collections import Counter def read_sites(path): with open(path, 'r') as file: sequences = [i.strip().upper() for i in file if i.strip()[0] != '>'] sequences = [i for i in sequences if check_nucleotides(i)] return(sequences) def check_nucleotides(site): ...
jonas-lj/JCompAlgebra
src/main/java/dk/jonaslindstrom/math/algebra/concretisations/big/BigPrimeField.java
package dk.jonaslindstrom.math.algebra.concretisations.big; import dk.jonaslindstrom.math.algebra.abstractions.Field; import dk.jonaslindstrom.math.algebra.algorithms.EuclideanAlgorithm; import dk.jonaslindstrom.math.algebra.exceptions.NotInvertibleException; import dk.jonaslindstrom.math.util.StringUtils; import dk.j...
tjroamer/any23
core/src/test/java/org/apache/any23/Any23OnlineTestBase.java
<filename>core/src/test/java/org/apache/any23/Any23OnlineTestBase.java<gh_stars>10-100 /* * 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 licen...
ebanfa/logix
src/main/java/com/cloderia/helion/server/endpoint/BaseEntityEndPointImpl.java
<filename>src/main/java/com/cloderia/helion/server/endpoint/BaseEntityEndPointImpl.java /** * */ package com.cloderia.helion.server.endpoint; import java.util.List; import javax.inject.Inject; import javax.ws.rs.core.Response; import javax.ws.rs.core.UriBuilder; import com.cloderia.helion.client.shared.endpoint.B...
trendmicro-frontend/styled-ui
packages/styled-system/src/config/margin.js
import system from '../core/system'; import { positiveOrNegative as positiveOrNegativeTransform } from '../utils/transforms'; const config = { margin: { property: 'margin', scale: 'space', transform: positiveOrNegativeTransform, // multi-value }, marginTop: { property: 'marginTop', scale: 'sp...
SamTolmay/lowdefy_
packages/utils/block-utils/src/createIcon.test.js
<gh_stars>1-10 /* Copyright 2020-2021 Lowdefy, Inc 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 a...
DeadZoneLuna/csso-src
src/tools/toolutils/basepropertiescontainer.cpp
<filename>src/tools/toolutils/basepropertiescontainer.cpp //========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //============================================================================= #include "toolutils/basepropertiescontainer.h" #include "tier1/KeyValues.h" CBasePro...
DanyBin/code_diary
algo/src/main/java/sorted/BubbleSorted.java
package sorted; import org.junit.Test; import until.ArrayUntil; import java.util.Arrays; /** * @ClassName BubbleSorted * @Author bin * @Date 2019/9/19 下午7:47 * @Decr TODO * 冒泡排序 * 思路-相邻位置的数据对比,如果满足条件,交换。否则不变. * * 伪代码 * for(i to index){ * for(j to index){...
Alachisoft/TayzGrid
src/tgcommon/src/com/alachisoft/tayzgrid/common/protobuf/DSUpdatedCallbackResponseProtocol.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: DSUpdatedCallbackResponse.proto package com.alachisoft.tayzgrid.common.protobuf; public final class DSUpdatedCallbackResponseProtocol { private DSUpdatedCallbackResponseProtocol() {} public static void registerAllExtensions( com.google.p...
mathieu-chauvet/globs
src/main/java/org/globsframework/sqlstreams/CreateBuilder.java
<gh_stars>0 package org.globsframework.sqlstreams; import org.globsframework.metamodel.Field; import org.globsframework.metamodel.fields.*; import org.globsframework.streams.accessors.*; import java.util.Date; public interface CreateBuilder { CreateBuilder set(IntegerField field, Integer value); CreateBuilder s...
kravitz/transims4
ActGen/Write_Pattern.cpp
//********************************************************* // Write_Pattern.cpp - write the person activity pattern //********************************************************* #include "ActGen.hpp" //--------------------------------------------------------- // Write_Activity //---------------------------------------...
acidicMercury8/xray-1.0
sdk/boost_1_30_0/libs/numeric/ublas/bench2/bench2.cpp
// // Copyright (c) 2000-2002 // <NAME>, <NAME> // // Permission to use, copy, modify, distribute and sell this software // and its documentation for any purpose is hereby granted without fee, // provided that the above copyright notice appear in all copies and // that both that copyright notice and this p...
genesis-2/trunk
toolkit/tests/EMS_Tests/directoryStagingTest/vi-source/ex_data.c
<reponame>genesis-2/trunk /* * This code contains changes by * <NAME>, Freiburg i. Br., Germany, 2002. All rights reserved. * * Conditions 1, 2, and 4 and the no-warranty notice below apply * to these changes. * * * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reser...
mygoldxp/mygoldxp.github.io
Abogados/src/UBD/CasosJpaController.java
<gh_stars>0 /* * 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 UBD; import UBD.exceptions.NonexistentEntityException; import UBD.exceptions.PreexistingEntityException; ...
pkorenev/ruby-gnome2
goocanvas/extconf.rb
=begin extconf.rb for Ruby/GooCanvas extension library =end PACKAGE_NAME = "goocanvas" base_dir = File.expand_path(File.dirname(__FILE__)) TOPDIR = File.expand_path(base_dir + '/..') MKMF_GNOME2_DIR = TOPDIR + '/glib/src/lib' SRCDIR = base_dir + '/src' $LOAD_PATH.unshift(MKMF_GNOME2_DIR) require 'mkmf-gnome2' PKGC...
ThiagoAI/githubreader
src/main/java/com/thiago/githubreader/domain/LineCount.java
package com.thiago.githubreader.domain; public final class LineCount { private final long numberOfLines; public LineCount(long numberOfLines) { this.numberOfLines = numberOfLines; } public long getNumberOfLines() { return numberOfLines; } }
aoibird/pc
cpc/example67_dualcorecpu.cpp
<reponame>aoibird/pc // POJ 3469 Dual Core CPU #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <algorithm> #include <vector> #include <queue> using namespace std; typedef long long ll; typedef pair<int,int> PII; const int MAXN = 20000+5; const int...
wordsworthgroup/libode
src/ode_geng_5.h
#ifndef ODE_GENG_5_H_ #define ODE_GENG_5_H_ //! \file ode_geng_5.h #include "ode_adaptive.h" #include "ode_irk.h" #include "ode_newton_bridge.h" //forward declaration to set up Newton class class OdeGeng5; //!Nonlinear system solver for OdeGeng5 class NewtonGeng5 : public OdeNewtonIRK<OdeGeng5> { public: ...
syngenta-aleksei-zolotykh/package-node-alc
test/apigateway/mock-data.js
exports.getData = () => { return { headers: { 'x-api-key': 'SOME-KEY', 'content-type': 'application/json' }, requestContext: { resourceId: 't89kib', authorizer: { apiKey: 'SOME KEY', userId: 'x-1-3-4', ...
EazyCollectServices/EazyCollectSDK-Java
src/test/java/uk/co/eazycollect/eazysdk/utilities/customerChecks/AccountHolderNameCheck.java
<reponame>EazyCollectServices/EazyCollectSDK-Java package uk.co.eazycollect.eazysdk.utilities.customerChecks; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import uk.co.eazycollect.eazysdk.exceptions.InvalidP...
fakeNetflix/facebook-repo-fbthrift
thrift/compiler/test/t_program_test.cc
/* * Copyright 2016 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
DCorredorM/MarkovDecisionProcess
src/discrete_world/space.py
<reponame>DCorredorM/MarkovDecisionProcess<filename>src/discrete_world/space.py from abc import abstractmethod, ABC class Space: """ Abstract class for the space of an discrete MDP. Attributes _________ A: set Set of accions S: set Set of states T: int Time Horizon...
titer18/Jasonette
Example/Pods/Headers/Public/Jasonette/JasonPushAction.h
// // JasonPushAction.h // Jasonette // // Created by e on 8/21/17. // Copyright © 2017 Jasonette. All rights reserved. // #import "JasonAction.h" #import "JasonHelper.h" #import "JasonPushService.h" #import <UserNotifications/UserNotifications.h> @interface JasonPushAction : JasonAction @end
Gouada/myShoppingApp
app/src/main/java/com/example/gouadadopavogui/myshoppingapp/helpers/FocusChangedListener.java
<filename>app/src/main/java/com/example/gouadadopavogui/myshoppingapp/helpers/FocusChangedListener.java package com.example.gouadadopavogui.myshoppingapp.helpers; import android.content.Context; import android.os.IBinder; import android.text.Editable; import android.text.TextWatcher; import android.view.View; i...
armindojr/pure-gen
src/modules/electrical_components.js
class ElectricalComponents { constructor(pure) { this.active = () => pure.random.arrayElement(pure.registeredModules.electricalComponents.active); this.passive = () => pure.random.arrayElement(pure.registeredModules.electricalComponents.passive); this.electromechanical = () => { ...
pip-services-integration/pip-libs-processes-node
obj/src/data/EntityNotFoundException.js
<filename>obj/src/data/EntityNotFoundException.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EntityNotFoundException = void 0; const pip_services3_commons_node_1 = require("pip-services3-commons-node"); class EntityNotFoundException extends pip_services3_commons_node_1.NotFound...
mathCodingClub/js-mcc
directives/editorData.js
<filename>directives/editorData.js angular.module('mcc').directive("mccEditorData", [ '$rootScope', '$window', 'mcc.toasterTranslate', 'mcc.code', function ($rootScope,$window,toasterTranslate, code) { return { restrict: 'A', transclude: true, scope: { data: '=overlayData' ...
HongyuHe/lsolver
lib/seldon/matrix_sparse/Relaxation_MatVect.cxx
// Copyright (C) 2003-2011 <NAME> // Copyright (C) 2001-2011 <NAME> // // This file is part of the linear-algebra library Seldon, // http://seldon.sourceforge.net/. // // Seldon is free software; you can redistribute it and/or modify it under the // terms of the GNU Lesser General Public License as published by the Fre...
zzhmark/vaa3d_tools
hackathon/hanchuan/sscope/FlyCapture2/gtk64/include/pangomm-1.4/pangomm/fontdescription.h
<reponame>zzhmark/vaa3d_tools // -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _PANGOMM_FONTDESCRIPTION_H #define _PANGOMM_FONTDESCRIPTION_H #include <glibmm.h> /* $Id: fontdescription.hg,v 1.2 2006/06/08 20:39:39 murrayc Exp $ */ /* fontdescription.h * * Copyright (C) 1998-2002 The gtkmm Develo...
dklee0501/PLDI_20_242_artifact_publication
homomorphic_evaluation/ntl-11.3.2/src/quad_float.cpp
// The quad_float module is derived from the doubledouble // library originally developed by <NAME>: // http://keithbriggs.info/doubledouble.html // I attach the original copyright notice. /* Copyright (C) 1997 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the...
smackem/jobotwar
jobotwar-web/src/test/java/net/smackem/jobotwar/web/RobotControllerTest.java
package net.smackem.jobotwar.web; import io.javalin.plugin.json.JavalinJson; import net.smackem.jobotwar.lang.Compiler; import net.smackem.jobotwar.web.beans.RobotBean; import org.eclipse.jetty.http.HttpHeader; import org.eclipse.jetty.http.HttpStatus; import org.junit.Test; import java.io.IOException; import java.ne...
atcult/mod-marccat
src/main/java/org/folio/marccat/business/common/PersistenceState.java
<gh_stars>1-10 package org.folio.marccat.business.common; import net.sf.hibernate.CallbackException; import net.sf.hibernate.Lifecycle; import net.sf.hibernate.Session; import org.folio.marccat.dao.AbstractDAO; import org.folio.marccat.dao.common.TransactionalHibernateOperation; import org.folio.marccat.exception.Data...
rafasantos/matchandtrade-api
src/test/java/com/matchandtrade/test/helper/SearchHelper.java
package com.matchandtrade.test.helper; import com.matchandtrade.persistence.common.Pagination; import com.matchandtrade.persistence.common.SearchResult; import com.matchandtrade.persistence.entity.MembershipEntity; import com.matchandtrade.persistence.entity.TradeEntity; import com.matchandtrade.persistence.entity.Use...
sagrudd/amos
src/Staden/read/scf_extras.c
/* * Copyright (c) Medical Research Council 1994. All rights reserved. * * Permission to use, copy, modify and distribute this software and its * documentation for any purpose is hereby granted without fee, provided that * this copyright and notice appears in all copies. * * This file was written by <NAME>, <NAM...
simaishi/manageiq-v2v
app/javascript/react/screens/App/Settings/screens/ConversionHostsSettings/components/ConversionHostWizard/ConversionHostWizardHostsStep/ConversionHostWizardHostsStep.js
import React from 'react'; import PropTypes from 'prop-types'; import { reduxForm, Field } from 'redux-form'; import { length } from 'redux-form-validators'; import { Form } from 'patternfly-react'; import { RHV, OPENSTACK } from '../../../../../../../../../common/constants'; import TypeAheadSelectField from '../../../...
tangxiaonian/mall-cli
mall-auth/src/main/java/com/tang/mall/auth/config/WebMvcConfig.java
package com.tang.mall.auth.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework....
cleber-engineer/rex
elements/card/src/marca/marca.js
<gh_stars>1-10 import { paint } from '@kuba/h' import component from './component' @paint(component) class Marca { #nome #slug get nome () { return this.#nome ??= '' } get slug () { return this.#slug ??= '' } constructor (nome, slug) { this.#nome = nome this.#slug = slug } static ...
sierra-moxon/biolink-model
org/biolink/model/LifeStage.java
package org.biolink.model; import java.util.List; import lombok.*; /* version: 2.2.16 */ /** A stage of development or growth of an organism, including post-natal adult stages **/ @Data @EqualsAndHashCode(callSuper=false) public class LifeStage extends OrganismalEntity { private List<OrganismTaxon> inTaxon; ...
Sonoscopia/KidModular
Oscillator_revB/OscillatorSynth/OscillatorSynth/OscillatorSynth/include/libraries/Mozzi/tables/waveshape_chebyshev_5th_256_int8.h
#ifndef CHEBYSHEV_5TH_256_H_ #define CHEBYSHEV_5TH_256_H_ #if ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif #include <avr/pgmspace.h> /* table for waveshaper using chebyshev polynomials */ #define CHEBYSHEV_5TH_256_NUM_CELLS 256 const int8_t __attribute__((section(".progmem.data"))) CHEBYS...
askmohanty/metasfresh
backend/de.metas.contracts/src/main/java-gen/de/metas/contracts/model/X_C_SubscrDiscount_Line.java
<gh_stars>1000+ // Generated Model - DO NOT CHANGE package de.metas.contracts.model; import javax.annotation.Nullable; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; /** Generated Model for C_SubscrDiscount_Line * @author metasfresh (generated) */ @SuppressWarnings("unused") ...
zinevy/pos
src/components/Image/Lazy.js
import React, { useEffect, useState, useMemo, useRef } from "react" import { Image, View, Text } from "react-native" import * as FileSystem from "expo-file-system" import * as Crypto from "expo-crypto" const LazyImage = ({ source, ...rest }) => { const [imgURI, setImageURI] = useState() const timer = useRef() ...
lihanxiang/msims
src/main/java/com/lee/msims/shiro/ShiroConfig.java
<filename>src/main/java/com/lee/msims/shiro/ShiroConfig.java package com.lee.msims.shiro; import com.lee.msims.util.Encryption; import org.apache.shiro.authc.credential.HashedCredentialsMatcher; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourc...
AriCheng/flare
flare/rpc/internal/error_stream_provider.h
<gh_stars>100-1000 // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/licenses/BSD-3-Clau...
jorgeejgonzalez/fermat
CSH/library/core/fermat-csh-core/src/main/java/com/bitdubai/fermat_csh_core/layer/wallet/cash_money/CashMoneyPluginSubsystem.java
package com.bitdubai.fermat_csh_core.layer.wallet.cash_money; import com.bitdubai.fermat_core_api.layer.all_definition.system.abstract_classes.AbstractPluginSubsystem; import com.bitdubai.fermat_core_api.layer.all_definition.system.exceptions.CantStartSubsystemException; import com.bitdubai.fermat_api.layer.all_defini...
cebartling/gummi-bears-web
src/views/orders/new/NewOrderForm.js
import React from 'react'; import PropTypes from "prop-types"; import {useDispatch} from "react-redux"; import {useForm} from "react-hook-form"; import PricePerShareField from "./PricePerShareField"; import NumberOfSharesField from "./NumberOfSharesField"; import StockSelectField from "./StockSelectField"; import FormB...
Alipashaimani/Competitive-programming
Codeforces/266B.cpp
// In the name of God //code forces 266-B #include <bits/stdc++.h> using namespace std; int main(){ int a,b; string s; cin>>a>>b>>s; for ( int i = 0 ; b > i ; i++){ for ( int j = 0 ; a > j ; j++){ if ( s[j]=='B'&& s[j+1]=='G'){ swap ( s[j],s[j+1]); j++...
psiha/nt2
modules/core/sdk/include/nt2/sdk/meta/policy.hpp
<reponame>psiha/nt2 //============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1....
ryuken73/HLS-Ingest
app/lib/getConfig.js
<gh_stars>1-10 // const {remote} = require('electron'); const electronUtil = require('./electronUtil'); const Store = require('electron-store'); const path = require('path'); // const {app} = require('electron'); // console.log('isRenderer', electronUtil.isRenderer, getPath) const valuesToInt = obj => { const valu...
nuwehq/nuwe-platform
spec/factories/ingredients.rb
FactoryGirl.define do factory :ingredient do name { Faker::Lorem.word } protein { 0.010900 } carbs { 0.080100 } kcal { 0.890000 } fibre { 0.026000 } fat_s { 0.001120 } fat_u { 0.001050 } salt { 0.000025 } ...
emersion/chromiumos-platform2
vm_tools/cicerone/virtual_machine.h
<gh_stars>1-10 // Copyright 2018 The Chromium OS 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 VM_TOOLS_CICERONE_VIRTUAL_MACHINE_H_ #define VM_TOOLS_CICERONE_VIRTUAL_MACHINE_H_ #include <stdint.h> #include <map> #include ...
lxdlam/ACM
Codeforces/Archives/Educational Round32/C.cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; int last[26]; int ans[26] = {0}; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); string t; int res = 1e5 + 10; cin >> t; int len = t.size(); for (int i = 0; i < 26; i++) last[i] = -1; for (int i = 0; i < len; i+...
jpersson/suite-js-sdk
api/endpoints/settings/index.spec.js
'use strict'; var SettingsAPI = require('./'); var testApiMethod = require('../_test'); describe('SuiteAPI Settings endpoint', function() { describe('#getSettings', function() { testApiMethod(SettingsAPI, 'getSettings').shouldGetResultFromEndpoint('/settings'); }); describe('#getCorporateDomains', functi...
oramics/dsp-kit
packages/fft-asm/test/profile.js
<filename>packages/fft-asm/test/profile.js /* global performance */ var dspjs = require('dspjs') var asm = require('..') var arr = require('dsp-array') var TIMES = 10000 var SIZE = 1024 var signal = arr.fill(SIZE, () => Math.random() * 2 - 0.5) var fft = new dspjs.FFT(signal.length, 44100) var asmfft = asm.fft(SIZE) v...
pigmon93/language-detection
langdetect-profiles/src/main/java/com/rmtheis/langdetect/profile/PT.java
<filename>langdetect-profiles/src/main/java/com/rmtheis/langdetect/profile/PT.java package com.rmtheis.langdetect.profile; import java.util.HashMap; import com.cybozu.labs.langdetect.util.LangProfile; import com.cybozu.labs.langdetect.util.NGram; public class PT { private static final String name = "pt"; private...
DaveThePianoDude/remotepiano
analytics/plugins/CoreHome/templates/date.js
/*! * Piwik - Web Analytics * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ $(document).ready(function () { //period widget handler var periodWidget = { show: function () { this.isOpen = 1; $("#periodMore").show(); ...
tzpBingo/github-trending
codespace/python/tencentcloud/rum/v20210622/rum_client.py
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
rsn8887/mame2003-plus-libretro
src/drivers/dogfgt.c
/*************************************************************************** Acrobatic Dog-Fight / Batten O'hara no Sucha-Raka Kuuchuu Sen (c) 1984 Technos Japan driver by <NAME> ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" ...
beneslami/MGPUSim
insts/reg_test.go
package insts_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "gitlab.com/akita/mgpusim/insts" ) var _ = Describe("Register", func() { It("should get correct v register", func() { Expect(insts.VReg(0)).To(BeIdenticalTo(insts.Regs[insts.V0])) Expect(insts.VReg(5)).To(BeIdenticalTo(insts.Reg...
Blu-Fantasy-Online/EmberCore
src/main/java/dev/blufantasyonline/embercore/storage/sql/DbConnection.java
<reponame>Blu-Fantasy-Online/EmberCore<gh_stars>1-10 package dev.blufantasyonline.embercore.storage.sql; import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; import dev.blufantasyonline.embercore.EmberCore; import org.bukkit.plugin.java.JavaPlugin; import java.sql.Connection; import java....
BSeppke/vigra
vigranumpy/src/core/accumulator-region-singleband.cxx
<reponame>BSeppke/vigra<filename>vigranumpy/src/core/accumulator-region-singleband.cxx /************************************************************************/ /* */ /* Copyright 2011-2012 by <NAME> */ /* ...
parambirs/aui-demos
node_modules/@atlassian/aui/src/js/aui/expander.js
<gh_stars>1-10 'use strict'; import $ from './jquery'; var $document = $(document), //convenience function because this needs to be run for all the events. getExpanderProperties = function (event) { var properties = {}; properties.$trigger = $(event.currentTarget); properties.$content = $document.find('...
jin/NUSMods
v3/src/js/main.js
<reponame>jin/NUSMods import ReactDOM from 'react-dom'; import _ from 'lodash'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { createHistory } from 'history'; // eslint-disable-line import/no-extraneous-dependencies import configureStore from 'store...
dharmeshkakadia/mesos
3rdparty/libprocess/src/timeseries.cpp
#include <stddef.h> // For size_t. #include <process/timeseries.hpp> #include <stout/duration.hpp> namespace process { // TODO(bmahler): Move these into timeseries.hpp header once we // can require gcc >= 4.2.1. const Duration TIME_SERIES_WINDOW = Weeks(2); const size_t TIME_SERIES_CAPACITY = 1000; } // namespace...
dennisjlee/adventofcode-2020
2020/day11/optimized.py
import sys FORWARD_DIRECTIONS = [ (0, 1), (1, -1), (1, 0), (1, 1) ] class Seat: def __init__(self, occupied): self.occupied_now = occupied self.occupied_next = occupied self.neighbors = [] def is_changed(self): return self.occupied_next == self.occupied_now ...
AILab-FOI/APi
baseagent.py
<filename>baseagent.py #!/usr/bin/env python3 from helpers import * from debug import * import spade from spade.agent import Agent from spade.behaviour import OneShotBehaviour, CyclicBehaviour from spade.template import Template from spade.message import Message import requests # When using HTTPS with insecure serve...
nukui-s/mlens
mlens/model_selection/__init__.py
"""ML-Ensemble :author: <NAME> :copyright: 2017-2018 :license: MIT Model selection suite for ensemble learning. Implements computational graph framework for maximally parallelized cross-validation of an arbitrary set of estimators over an arbitrary set of preprocessing pipelines. Model selection suite features batch...
kn25ha01/kaggle-competitions
2020/alaska2-image-steganalysis/utils/metrics.py
<reponame>kn25ha01/kaggle-competitions import numpy as np from sklearn import metrics # reference # https://www.kaggle.com/anokas/weighted-auc-metric-updated def weighted_acu(y_true, y_valid, threshold=0.4): y_true = y_true.flatten() y_valid = y_valid.flatten() tpr_thresholds = [0.0, threshold, 1.0] ...
phausamann/rigid-body-motion
rigid_body_motion/estimators.py
<reponame>phausamann/rigid-body-motion """""" import numpy as np from quaternion import as_float_array, from_rotation_matrix from scipy.spatial import cKDTree from rigid_body_motion.core import ( _estimate_angular_velocity, _estimate_linear_velocity, _make_dataarray, _maybe_unpack_dataarray, _repla...
APS-XSD-OPT-Group/wavepytools
wavepytools/imaging/speckle_tracking/speckleAnalyses.py
<reponame>APS-XSD-OPT-Group/wavepytools<filename>wavepytools/imaging/speckle_tracking/speckleAnalyses.py #!/usr/bin/env python # -*- coding: utf-8 -*- # # ######################################################################### # Copyright (c) 2015, UChicago Argonne, LLC. All rights reserved. # # ...
mucyildiz/rysolv
server/graphql/resolvers/users/verifyUserAccount.js
/* eslint-disable camelcase */ const { CustomError, errorLogger } = require('../../../helpers'); const { assignOwnerToRepo, getUserSettings, transformUser, } = require('../../../db'); const { requestGithubUser } = require('../../../integrations/github'); const { verifyUserAccountError, verifyUserAccountSucces...
goodarzysepideh/grpc
src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h
/* * * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/SAObjects.framework/SAPerson.h
<reponame>shaojiankui/iOS10-Runtime-Headers /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/SAObjects.framework/SAObjects */ @interface SAPerson : SADomainObject <SAAceComparable> @property (nonatomic, copy) NSArray *addresses; @property (nonatomic, copy) NSDate *birthday; @property (nonat...