repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ndretn/RSBASPM
src/main/java/ca/pfv/spmf/algorithms/sequenceprediction/ipredict/database/Item.java
package ca.pfv.spmf.algorithms.sequenceprediction.ipredict.database; /* * This file is copyright (c) <NAME> * <<EMAIL>> * * This file is part of the IPredict project * (https://github.com/tedgueniche/IPredict). * * IPredict is distributed under The MIT License (MIT). * You may obtain a copy of the License at ...
ivan2hdez/icons-pack
packages/react-simple-icons/src/Beats.js
<reponame>ivan2hdez/icons-pack import React from 'react'; import PropTypes from 'prop-types'; const Beats = props => { const { color, size, ...others } = props; return ( <svg width={size} height={size} fill={color} viewBox="0 0 24 24" {...others}> <path d="M21.55 16.77a7.14 7.14 0 0 1-7.16 7.16H2.45v-7.1...
composition-project/data-processing-agent
AgentAPIs/src/main/java/eu/linksmart/api/event/types/JsonSerializable.java
<filename>AgentAPIs/src/main/java/eu/linksmart/api/event/types/JsonSerializable.java package eu.linksmart.api.event.types; import eu.linksmart.api.event.exceptions.TraceableException; import eu.linksmart.api.event.exceptions.UntraceableException; import java.io.Serializable; /** * Copyright [2013] [Fraunhofer-Gesel...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/ecf/1924.java
<reponame>masud-technope/ACER-Replication-Package-ASE2017 /******************************************************************************* * Copyright (c) 2005, 2007 <NAME> * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * wh...
Heikkips/oxCore
persistence-core/src/main/java/org/gluu/persist/service/BaseFactoryService.java
<reponame>Heikkips/oxCore<filename>persistence-core/src/main/java/org/gluu/persist/service/BaseFactoryService.java package org.gluu.persist.service; import org.gluu.persist.PersistenceEntryManagerFactory; import org.gluu.persist.model.PersistenceConfiguration; import org.slf4j.Logger; public interface BaseFactoryServ...
saksham-jain01/data-structures-algorithms
recursion-and-algos/factorial.cpp
<reponame>saksham-jain01/data-structures-algorithms<filename>recursion-and-algos/factorial.cpp #include<iostream> using namespace std; int fact(int n){ if(n==0){ return 1; } int ans = n*fact(n-1); return ans; } int fib(int n){ if(n==0||n==1){ return n; } in...
manuelsousa7/po-labs
aula9/exemplo/Dates.java
<gh_stars>0 package exemplo; import java.io.*; public class Dates { /** * Computes the number of number of days of the given month. Does not take into account leap years. * * @param month the concerned month. This parameter is between 1 and 12, inclusive. * * @returns the number of days in the given ...
yidao2000/crm
src/main/java/com/yunchuang/crm/console/user/domain/User.java
<gh_stars>1-10 package com.yunchuang.crm.console.user.domain; import java.io.Serializable; /** * Created by 尹冬飞 on 2017/12/27 16:46 */ public class User implements Serializable { private static final long serialVersionUID = 3580277389227482834L; /** * 1.主键 */ private int id; /** * 2.用户名 */ private Str...
IntRepair/IntRepair
smtcodan/src/smtcodan/tests/CWE190_Integer_Overflow__int64_t_max_square_45_int64_t_rand_multiply_53d.java
package smtcodan.tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import java.util.Map; import org.eclipse.cdt.codan.core.CodanRuntime; import org.eclipse.cdt.codan.core.model.CheckerLaunchMode; import org.eclipse.cdt.codan.core.model.IProblemReporter; import org.eclipse.core....
rnetuka/fabric8-1
runtime/container/karaf/managed/src/main/java/io/fabric8/runtime/container/karaf/KarafManagedContainer.java
<reponame>rnetuka/fabric8-1<filename>runtime/container/karaf/managed/src/main/java/io/fabric8/runtime/container/karaf/KarafManagedContainer.java /** * Copyright 2005-2016 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version * 2.0 (the "License"); you may not use this file except ...
Git-liuxiaoyu/cloud-hospital-parent
cloud-hospital-parent/cloud-hospital-nacos-parent/drug-service/src/main/java/com/example/drugservice/util/DistributedLock.java
<gh_stars>0 package com.example.drugservice.util; import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.ValueOperations; import org.springframework.util.StringUtils; import java.util.concurrent.TimeUnit; /** *...
egranata/puppy
newlib/include/sys/dlfcn.h
<filename>newlib/include/sys/dlfcn.h // Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requir...
openlastchaos/lastchaos-source-client
EntitiesMP/FogMarker.cpp
<reponame>openlastchaos/lastchaos-source-client<filename>EntitiesMP/FogMarker.cpp /* * This file is generated by Entity Class Compiler, (c) CroTeam 1997-98 */ #line 2 "C:/Users/pwesty/Desktop/SD-Source/nov-source/Reco_Csrc/EntitiesMP/FogMarker.es" #include "StdH.h" ENGINE_API extern FLOAT ter_fLODMul; #include <Fo...
jpanikulam/experiments
geometry/types/unit_vector.hh
#pragma once #include "logging/assert.hh" #include "eigen.hh" #include "sophus.hh" namespace geometry { template <int N> class UnitVector { public: using Vec = VecNd<N>; // We are using dependent types *partly* to be performant // So this is default uninitialized UnitVector() = default; explicit UnitVec...
sthagen/Nuitka-Nuitka
tests/basics/ListContractions.py
<filename>tests/basics/ListContractions.py # Copyright 2022, <NAME>, mailto:<EMAIL> # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file ex...
hovedstyret/indok-web
backend/apps/organizations/schema.py
<gh_stars>1-10 import graphene from .mutations import ( AssignMembership, CreateOrganization, DeleteOrganization, UpdateOrganization, ) from .resolvers import MembershipResolvers, OrganizationResolvers from .types import MembershipType, OrganizationType class OrganizationMutations(graphene.ObjectType...
yearliny/yogo
src/main/java/ga/yuan/yogo/repository/UserRepository.java
<filename>src/main/java/ga/yuan/yogo/repository/UserRepository.java package ga.yuan.yogo.repository; import ga.yuan.yogo.model.entity.UserDO; import org.springframework.data.jpa.repository.JpaRepository; public interface UserRepository extends JpaRepository<UserDO, Long> { /** * 通过 Email 地址查询用户 * @para...
opengauss-mirror/openGauss-graph
src/include/securectype.h
<reponame>opengauss-mirror/openGauss-graph<filename>src/include/securectype.h /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: ...
hawesy/qlcplus
plugins/hid/win32/hidwindowsjoystick.h
<filename>plugins/hid/win32/hidwindowsjoystick.h /* Q Light Controller Plus hidwindowsjoystick.h Copyright (c) <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.a...
daredevil999/Whiz
src/main/java/seedu/task/logic/parser/SaveParser.java
<filename>src/main/java/seedu/task/logic/parser/SaveParser.java package seedu.task.logic.parser; import static seedu.task.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import java.util.regex.Matcher; import java.util.regex.Pattern; import seedu.task.logic.commands.Command; import seedu.task.logic.commands.In...
gaomengzhou/enforcement
src/pages/Intelligentize/Timing/List.js
/* eslint-disable no-shadow */ /* eslint-disable react/jsx-no-bind */ /* eslint-disable consistent-return */ /* eslint-disable react/no-unused-state */ /* eslint-disable no-undef */ /* eslint-disable eqeqeq */ /* eslint-disable no-param-reassign */ /* eslint-disable radix */ /* eslint-disable no-plusplus */ /* eslint-d...
JuntingLiu/karang
src/components/Icon/icons/status/cancelled.js
import React from 'react'; import createSVGIcon from '../utils/createSVGIcon'; const cancelled = createSVGIcon( <g> <rect fill="none" width="217" height="217" /> <g> <path fill="none" d="M150.3,162.62l-.5-.42A5,5,0,0,0,150.3,162.62Z" /> <path d="M150.35,162.67l0,0,0,0Z" /> <path d="M155.84,...
kikislater/micmac
src/uti_image/Digeo/Times.inline.h
// this file should be included by Times.h solely //---------------------------------------------------------------------- // methods of class Times //---------------------------------------------------------------------- inline Times::~Times(){} //-------------------------------------------------------------------...
ezLeaks/backdoored
com/fasterxml/jackson/core/JsonPointer.java
package com.fasterxml.jackson.core; import com.fasterxml.jackson.core.io.*; public class JsonPointer { public static final char SEPARATOR = '/'; protected static final JsonPointer EMPTY; protected final JsonPointer _nextSegment; protected volatile JsonPointer _head; protected final String _asStrin...
EveningMoon/Balance
app/src/main/java/com/emoon/balance/Fragment/BaseFragment.java
package com.emoon.balance.Fragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * Base fragment created to be extended by every fragment that uses Realm in this application....
kcwiakala/algo
src/graphs/Johnson.cpp
<reponame>kcwiakala/algo #include <list> #include <gtest/gtest.h> #include <gmock/gmock.h> #include <Graph.hpp> #include <Matrix.hpp> namespace algo { namespace johnson { constexpr int MAX_INT = std::numeric_limits<int>::max(); struct Graph: public GenericGraph<WeightedEdge> { Graph(size_t s): GenericGraph(s) {}...
pulsar-chem/BPModule
lib/systems/alpha-d-talopyranose.py
import pulsar as psr def load_ref_system(): """ Returns alpha-d-talopyranose as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" C 1.4128 0.6971 0.9470 C 1.7413 0.1005 -0.4384 O ...
ahenaobuild/redluv
utils/metric/metric.go
// (c) 2021, <NAME>, Inc. All rights reserved. // See the file LICENSE for licensing terms. package metric import ( "fmt" "github.com/prometheus/client_golang/prometheus" ) func NewNanosecondsLatencyMetric(namespace, name string) prometheus.Histogram { return prometheus.NewHistogram(prometheus.HistogramOpts{ N...
preranaandure/wildlifecompliance
wildlifecompliance/migrations/0188_auto_20190508_0853.py
<filename>wildlifecompliance/migrations/0188_auto_20190508_0853.py # -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-05-08 00:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ...
hextor/astrofox
src/view/components/controls/PixelateControl.js
import React from 'react'; import { Control, Option } from 'components/editing'; import useEntity from 'components/hooks/useEntity'; const renderOptions = ['Square', 'Hexagon']; const minPixelSize = 2; const maxPixelSize = 240; export default function PixelateControl({ display, active }) { const { type, size } = di...
GenSolutionRep/Note
src/main/java/com/gensolution/activity/vo/ActivityEvnMobileVo.java
<filename>src/main/java/com/gensolution/activity/vo/ActivityEvnMobileVo.java package com.gensolution.activity.vo; import java.util.List; import java.util.Map; public class ActivityEvnMobileVo { private String main_innb; private String updt_de; private List<Map<String, Object>> evn_list; public Stri...
BURAI-team/burai
src/burai/atoms/design/AtomsStyle.java
/* * Copyright (C) 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 law or ag...
jkuharev/ISOQuant
src/isoquant/kernel/plugin/gui/PluginList.java
<reponame>jkuharev/ISOQuant<gh_stars>0 package isoquant.kernel.plugin.gui; import isoquant.kernel.plugin.Plugin; import java.util.List; import javax.swing.JList; public class PluginList extends JList { private static final long serialVersionUID = 20110220L; public PluginList() { setCellRendere...
polar/busme-iphone-rubylib
lib/busme/api/marker_info.rb
module Api class MarkerInfo < MessageSpec attr_accessor :point attr_accessor :radius # feet attr_accessor :title attr_accessor :description attr_accessor :goUrl attr_accessor :goLabel attr_accessor :content attr_accessor :iconUrl attr_accessor :loaded attr_accessor :priority ...
jiangzy1992/task
task11_bus-css/js/app.js
function lineHeight() { var height; var num; $('.con-nav ul li').each(function (index, value) { num = $(this).text().length; height = 160/num + "px"; $(this).css("line-height",height); }); } lineHeight();
552301/wotrd-cloud
wotrd-dynamic-datasource/src/main/java/com/wotrd/dydatasource/four/mapper/TUserMapper.java
<gh_stars>100-1000 package com.wotrd.dydatasource.four.mapper; import com.wotrd.dydatasource.four.domain.TUser; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; @Mapper @Repository public interface TUserMapper { /** * ...
ToQuery/clever-framework
clever-framework-system/src/main/java/io/github/toquery/framework/system/service/ISysDictItemService.java
package io.github.toquery.framework.system.service; import io.github.toquery.framework.crud.service.AppBaseService; import io.github.toquery.framework.system.entity.SysDict; import io.github.toquery.framework.system.entity.SysDictItem; import java.util.List; /** * @author toquery * @version 1 */ public interface ...
sparkoss/ccm
src/runtime/rpc/dbus/threadpoolexecutor.cpp
//========================================================================= // Copyright (C) 2018 The C++ Component Model(CCM) 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 Lic...
josephhyatt/learn_co
rails-amusement-park-v-000/app/controllers/application_controller.rb
<filename>rails-amusement-park-v-000/app/controllers/application_controller.rb class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception helper_method :current_user before_ac...
damongreen123/fpl-ccd-configuration
service/src/main/java/uk/gov/hmcts/reform/fpl/model/docmosis/DocmosisChild.java
package uk.gov.hmcts.reform.fpl.model.docmosis; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Data; @Data @Builder @JsonInclude(JsonInclude.Include.NON_NULL) public class DocmosisChild { private final String name; private final String age; private final String g...
Huawei-Ascend/modelzoo
built-in/TensorFlow/Official/nlp/Transformer_for_TensorFlow/noahnmt/utils/fp16_utils.py
# coding=utf-8 # Copyright <NAME>'s Ark Lab. import tensorflow as tf class DynamicLossScaler: def __init__(self, init_scale=2.**15, scale_factor=2., scale_window=2000): self.loss_scale = tf.get_variable( initializer=tf.constant_initializer(init_scale), trainable=False, shape=(), ...
Koheron/koheron-sdk
server/templates/drivers_table.hpp
<reponame>Koheron/koheron-sdk<filename>server/templates/drivers_table.hpp<gh_stars>10-100 /// Autogenerated DO NOT EDIT /// /// (c) Koheron #ifndef __DRIVERS_TABLE_HPP__ #define __DRIVERS_TABLE_HPP__ #include <array> #include <tuple> #include <memory> #include <string_utils.hpp> #include <meta_utils.hpp> using driv...
arbarlow/account_service
account_service.pb.go
// Code generated by protoc-gen-go. // source: account_service.proto // DO NOT EDIT! /* Package account_service is a generated protocol buffer package. It is generated from these files: account_service.proto It has these top-level messages: Account ListAccountsRequest ListAccountsResponse GetByIdRequest GetByE...
laurentd75/CLK
Storage/Disk/DiskImage/Formats/FAT12.hpp
// // FAT12.hpp // Clock Signal // // Created by <NAME> on 07/01/2018. // Copyright 2018 <NAME>. All rights reserved. // #ifndef MSXDSK_hpp #define MSXDSK_hpp #include "MFMSectorDump.hpp" #include <string> namespace Storage { namespace Disk { /*! Provides a @c DiskImage holding an MSDOS-style FAT12 disk image...
daughtryz/JavaScriptSoftwareUniversity
JS Advanced/ObjectsAndClasses-Exer/tickets.js
function solve(tickets,criteria) { class Ticket { constructor(descriptor) { const [destination,price,status] = descriptor.split('|'); this.destination = destination; this.price = Number(price); this.status = status; } } ...
activequant/aq2o
model/src/main/java/com/activequant/interfaces/archive/IArchiveReader.java
<filename>model/src/main/java/com/activequant/interfaces/archive/IArchiveReader.java package com.activequant.interfaces.archive; import java.io.IOException; import com.activequant.archive.MultiValueTimeSeriesIterator; import com.activequant.archive.TSContainer; import com.activequant.archive.TimeSeriesIterator; impor...
cogitoergoread/muszi-macrohard.hu
examples/leduc_holdem_nfsp_pytorch_load_model.py
<gh_stars>1-10 ''' An example of loading pre-trained NFSP model on Leduc Holdem ''' import os import torch import rlcard3 from rlcard3.agents.nfsp_agent_pytorch import NFSPAgent from rlcard3.agents.random_agent import RandomAgent from rlcard3.utils.utils import set_global_seed, tournament # Make environment env = rlc...
pbohman/istio
mixer/pkg/lang/externs_test.go
<reponame>pbohman/istio // Copyright 2017 Istio 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 appli...
okanon/tbd.linux
include/arch_info.h
<filename>include/arch_info.h // // include/arch_info.h // tbd // // Created by inoahdev on 11/19/18. // Copyright © 2018 - 2019 inoahdev. All rights reserved. // #ifndef ARCH_INFO_H #define ARCH_INFO_H #include "mach-o/loader.h" #include "notnull.h" struct arch_info { cpu_type_t cputype; cpu_subtype_t c...
JCCDex/jccWalletExtension
app/scripts/constants/walletType-constants.js
<gh_stars>1-10 export const NETWORK_TYPE_RPC = 'rpc'; export const SWTC = 'swt' //井通链 export const RIPPLE = 'ripple' //瑞波链 export const CALL = 'call' //CALL 链 export const STM = 'stm' //stm 链 export const JINGTUM = 'jingtum' export const MOAC = 'moac' export const ETH = 'eth' export const WALLET_TYPES = [SWTC, RIPPLE, ...
rochaporto/gophernotes
vendor/github.com/cosmos72/gomacro/jit/_arith_arm64.go
<reponame>rochaporto/gophernotes<filename>vendor/github.com/cosmos72/gomacro/jit/_arith_arm64.go // +build arm64 /* * gomacro - A Go interpreter with Lisp-like macros * * Copyright (C) 2018-2019 <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of...
Amuxix/ItemFilter
src/main/scala/me/amuxix/FilterLevel.scala
<gh_stars>0 package me.amuxix sealed abstract case class FilterLevel(suffix: String, cutoffRarity: FilterRarity, id: String) object Racing extends FilterLevel(" Leveling", Leveling, ItemFilter.settings.ggg.racingId) object Normal extends FilterLevel("", Common, ItemFilter.settings.ggg.normalId) object Diminished ext...
eugene-matvejev/battleship-game-gui-react-js
src/to-be-reviewed/service/generator/battlefield_generator.test.js
import { generateBattlefield } from './battlefield_generator'; describe(`generator:: Battlefield`, () => { [1, 2, 3, 10, 15].forEach((size) => { const expected = size ** 2; it(`expected ${expected} cells in generated battlefield with size: ${size}`, () => { const battlefield = g...
eddieyang97/VoogaSalad_RTS
src/server/LobbyManager.java
package server; /** * This entity stores all GameLobbies currently active. * @author andrew */ import java.io.Serializable; import java.net.Socket; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; public class LobbyManager implements Se...
antholuo/Blob_Traffic
Blob_Lib/glfw-3.3.7/glfw/tests/msaa.c
<reponame>antholuo/Blob_Traffic version https://git-lfs.github.com/spec/v1 oid sha256:c9082c6059173c6a33ca4689fc3adef095c2920cd00a1bd62b3c8a0a98ae6389 size 6134
vizicist/palette
ffgl/source/lib/ffglex/FFGLFBO.cpp
<reponame>vizicist/palette<gh_stars>1-10 #include "FFGLFBO.h" #include "FFGLScopedFBOBinding.h" #include "FFGLScopedRenderBufferBinding.h" #include "FFGLScopedTextureBinding.h" namespace ffglex { FFGLFBO::FFGLFBO() : width( 0 ), height( 0 ), internalColorFormat( 0 ), fboID( 0 ), depthBufferID( 0 ), colorTextureI...
brianneisler/moltres-template
src/app/components/HeaderTopRightNav/HeaderTopRightNav.js
<gh_stars>1-10 import React from 'react' import { StyleSheet } from 'react-native' import { AuthState } from '../../../constants' import { compose } from '../../../utils/lang' import { connect, defaultProps, setDisplayName, setPropTypes, styleShape, withPropsOnChange } from '../../../utils/react' import { ...
mickael-menu/client
src/sidebar/components/Tutorial.js
<reponame>mickael-menu/client<gh_stars>0 import { SvgIcon } from '@hypothesis/frontend-shared'; import { isThirdPartyService } from '../helpers/is-third-party-service'; import { withServices } from '../service-context'; /** * Subcomponent: an "instruction" within the tutorial step that includes an * icon and a "com...
nao2b/jiji2
src/jiji/model/trading/back_test_repository.rb
# frozen_string_literal: true require 'encase' require 'thread/pool' module Jiji::Model::Trading class BackTestRepository include Encase include Jiji::Errors needs :backtest_thread_pool attr_accessor :container def initialize @backtests = {} end def all @backtests.values...
NIRALUser/AtlasWerks
Utilities/planio/read_objects.cxx
<reponame>NIRALUser/AtlasWerks #include <stdio.h> #include <stdlib.h> #include "plan_file_io.h" #include "plan_xdr.h" #include "gen.h" #include "brachy.h" #include "libplanio.h" int XDR_ReadObjects(int fdes, BRACHY_OBJECTS *o); /* --------------------------------------------------------------------------- NAME...
alexsoft037/springboot
src/main/java/xin/xiaoer/common/utils/Const.java
package xin.xiaoer.common.utils; import java.util.HashMap; import java.util.Map; import org.springframework.context.ApplicationContext; /** * 项目名称: * * @author:fh qq313596790[青苔] * 修改日期:2015/11/2 */ public class Const { public static final String APPLICATION_BASE_PATH = "basepath"; public static final String ...
a506131222/ILIFE
llifeRobot/Setting/Controller/ZJMAddReserVC.h
// // ZJMTimedReserVC.h // llifeRobot // // Created by 张佳满 on 2017/10/9. // Copyright © 2017年 ZJM. All rights reserved. // #import "ZJMBaseVC.h" @interface ZJMAddReserVC : ZJMBaseVC @property (strong,nonatomic)NSMutableArray *saveTimeList; @property (copy,nonatomic)NSString *subDomain; @end
rit-bikeshare/mobile-app
src/js/lock/actions/connectToSocket.js
<reponame>rit-bikeshare/mobile-app import { createAction } from 'redux-actions'; import { bikeUnlocked } from './unlockBike'; import { bikeLocked } from './lockBike'; import { CONNECTED_TO_SOCKET, BIKE_LOCK_LOCKING, BIKE_LOCK_UNLOCKING, } from '../constants/LockActionTypes'; const socketConnected = createAction(...
keera-studios/hsQt
Qtc/include/gui/qtc_hs_QProgressBar_h.h
///////////////////////////////////////////////////////////////////////////// // // File : qtc_hs_QProgressBar_h.h // Copyright : (c) <NAME> 2010 // Project : qtHaskell // Version : 1.1.4 // Modified : 2010-09-02 17:02:41 // // Warning : this file is machine generat...
akuhnregnier/empirical-fire-modelling
analysis/calculate_loco_values.py
<filename>analysis/calculate_loco_values.py<gh_stars>0 # -*- coding: utf-8 -*- """LOCO value calculation.""" import logging import sys import warnings from pathlib import Path from pprint import pprint import matplotlib as mpl import pandas as pd from loguru import logger as loguru_logger from wildfires.dask_cx1 impor...
akrherz/pyIEM
src/pyiem/plot/geoplot.py
<reponame>akrherz/pyIEM # -*- coding: utf-8 -*- # pylint: disable=import-outside-toplevel,too-many-lines """Plotting utility for generating maps, windroses and everything else under the sun. This module provides a wrapper around `Basemap` and `windrose` packages. It tries to be general so to work for others, but may ...
goodmind/FlowDefinitelyTyped
flow-types/types/gulp-size_vx.x.x/flow_v0.25.x-/gulp-size.js
<gh_stars>10-100 declare module "gulp-size" { declare interface size$Options { showFiles?: boolean; gzip?: boolean; title?: string; pretty?: boolean; showTotal?: boolean; } declare type size$SizeStream = { size: number, prettySize: string } & NodeJS.ReadWriteStream; declare funct...
Berstanio/moe-core
moe.apple/moe.platform.ios/src/main/java/apple/photosui/PHPickerConfiguration.java
package apple.photosui; import apple.NSObject; import apple.foundation.NSArray; import apple.foundation.NSMethodSignature; import apple.foundation.NSSet; import apple.foundation.protocol.NSCopying; import apple.photos.PHPhotoLibrary; import org.moe.natj.c.ann.FunctionPtr; import org.moe.natj.general.NatJ; import org.m...
code-signal/code-signal-arcade-bloomtech
S1M2_Task_13/solution.js
<filename>S1M2_Task_13/solution.js function solution(n) { if ( n === 0 ) return "none"; if ( n === 1 ) return "one"; if ( n === 2 ) return "two"; return "some"; }
kenshirokk/springboot_demo
concurrent/src/main/java/com/kenshiro/concurrent/test/Test8.java
package com.kenshiro.concurrent.test; import java.util.concurrent.locks.ReentrantLock; public class Test8 { private static ReentrantLock lock = new ReentrantLock(); public static void main(String[] args) { lock.lock(); try { System.out.println("main"); m1(); } ...
China2B2T/FrostCord
api/src/main/java/net/md_5/bungee/api/Title.java
package net.md_5.bungee.api; import net.md_5.bungee.api.chat.BaseComponent; import net.md_5.bungee.api.connection.ProxiedPlayer; /** * Represents a configuration of a title. A title in Minecraft consists of a * main title and a sub title. It will {@link #fadeIn(int)}, {@link #stay(int)}, * and {@link #fadeOut(int)...
frantchico/igrp-catalogo
IGRP-Template/src/main/webapp/images/IGRP/IGRP2.3/core/fileeditor/classes/templates.clss.js
(function(){ var templates = { newItem : function(type){ return '<li class="'+type+' brand-new"><span><input class="adder-input" type="text"/></span></li>'; }, folderOptions : function(){ var r = $('.add-new-options').html(); return r; }, folderFiles : function(files, ulID...
serulian/compiler
generator/es5/tests/serialization/tagged.js
$module('tagged', function () { var $static = this; this.$struct('bad44f92', 'SomeStruct', false, '', function () { var $static = this; var $instance = this.prototype; $static.new = function (SomeField) { var instance = new $static(); instance[BOXED_DATA_PROPERTY] = { somefield: Some...
Marxlp/RLFrame
core/model/nets/mlp_critic.py
import torch.nn as nn from core.model.nets.nn_base import NN import numpy as np class ValueNet(NN): def __init__(self, input_shape, output_shape=(1,), hidden_size=(256, 256), activation='tanh'): super(ValueNet, self).__init__(input_shape, output_shape) hl = [] last_dim = int(np.prod(self....
xXJLMXx/3dmap
untitled folder/src/webgl.js
<filename>untitled folder/src/webgl.js /** * Copyright 2020 (c) <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import gl from '/gl'; import utils fro...
CanadaHealthInfoway/message-builder
message-builder-mif-comparer/src/test/java/ca/infoway/messagebuilder/mifcomparer/XmlResequenceFilterTest.java
/** * Copyright 2013 Canada Health Infoway, 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...
haiyiyun/plugins
urlmanager/service/serve/urlmanager.go
package serve import ( "net/http" "regexp" "strconv" "strings" "sync" "github.com/haiyiyun/log" ) func parse(r string) (string, string, []flag) { var expr, replace string var flags []flag r = regexp.MustCompile(`[[:blank:]]+`).ReplaceAllString(r, "`") rs := strings.Split(r, "`") lrs := len(rs) if lrs >= ...
wavemotion-dave/StellaDS
arm9/source/instructions.cpp
#include <nds.h> #include <stdio.h> #include <fat.h> #include <dirent.h> #include <unistd.h> #include "ds_tools.h" #include "highscore.h" #include "Console.hxx" #include "Cart.hxx" #include "bgInstructions.h" #include "bgBottom.h" extern int bg0, bg0b,bg1b; struct instructions_t { string gameID; const char *...
huidong-chen/directx-sdk-samples
InstallHelpers/GameuxInstallHelper/GameuxInstallHelper.cpp
//-------------------------------------------------------------------------------------- // File: GameuxInstallHelper.cpp // // Copyright (c) Microsoft Corporation. // Licensed under the MIT License (MIT). //-------------------------------------------------------------------------------------- #define _WIN32_DCOM...
nonkr/cat
ipc/semaphore/c/system_v_sem.c
<gh_stars>0 /* * Copy from Linux高性能服务器编程 * Datetime: 2018/2/2 10:18 * */ #include <sys/sem.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> union semun { int val; struct semid_ds *buf; unsigned short int *array; struct seminfo *__buf; }; void pv(int sem_i...
maxtomCMU/hfnet
hfnet/models/netvlad_original.py
""" Based on the TensorFlow re-implementation of NetVLAD by <NAME>. Paper: https://arxiv.org/abs/1511.07247 TensorFlow: github.com/uzh-rpg/netvlad_tf_open Matlab: github.com/Relja/netvlad """ import tensorflow as tf import numpy as np from .base_model import BaseModel def vlad_legacy(inputs, num_cluster...
iconben/gitlabhq
app/services/jira_import/users_importer.rb
# frozen_string_literal: true module JiraImport class UsersImporter def initialize(user, project, start_at) @project = project @start_at = start_at @user = user end def execute Gitlab::JiraImport.validate_project_settings!(project, user: user) ServiceResponse.success(paylo...
ranguli/canonical-ubuntu-18.04-lts-stig-baseline
controls/V-219158.rb
# encoding: UTF-8 control 'V-219158' do title "The Ubuntu operating system must not have the rsh-server package installed." desc "It is detrimental for Ubuntu operating systems to provide, or install by default, functionality exceeding requirements or mission objectives. These unnecessary capabilities or services...
saai/LeetcodePythonSolutions
restoreIpAddresses.py
class Solution: # @param {string} s # @return {string[]} def restoreIpAddresses(self, s): res =[] def addPoint(frontStr,restStr,pointNum): if pointNum==0: if self.isValidSection(restStr): r = frontStr[1::] + restStr res.appe...
kevin-DL/m3o-go
examples/user/readSession/readASessionByTheSessionId.go
<filename>examples/user/readSession/readASessionByTheSessionId.go package example import ( "fmt" "os" "go.m3o.com/user" ) // Read a session by the session id. In the event it has expired or is not found and error is returned. func ReadAsessionByTheSessionId() { userService := user.NewUserService(os.Getenv("M3O_A...
Zhongger/zmail
zmail-product/src/main/java/com/zhongger/zmail/product/dao/SpuInfoDao.java
package com.zhongger.zmail.product.dao; import com.zhongger.zmail.product.entity.SpuInfoEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * spu信息 * * @author zhongmingyi * @email <EMAIL> * @date 2019-10-01 ...
factorion/graytracer
pkg/patterns/stripe.go
package patterns import ( "math" "github.com/factorion/graytracer/pkg/primitives" ) // Stripe Basic stripe pattern based on x-axis value type Stripe struct { PatternBase pattern1, pattern2 Pattern } // MakeStripe Make a stripe pattern from two patterns func MakeStripe(p1, p2 Pattern) *Stripe { return &Stripe{Pa...
myronZhouJ/AdxLibrary_iOS
ADXLibrary/Dependencies/FBAudienceNetwork.framework/Headers/FBRewardedVideoAd.h
version https://git-lfs.github.com/spec/v1 oid sha256:a86a86957d5e1f4452a88f14dbdfe36c9c482260c3fd53a0621cc8e535a78000 size 7307
xzxie/nuls
consensus-impl/poc/poc-consensus-protocol-impl/src/main/java/io/nuls/consensus/poc/block/validator/SmallBlockValidator.java
<filename>consensus-impl/poc/poc-consensus-protocol-impl/src/main/java/io/nuls/consensus/poc/block/validator/SmallBlockValidator.java package io.nuls.consensus.poc.block.validator; import io.nuls.core.constant.ErrorCode; import io.nuls.core.validate.NulsDataValidator; import io.nuls.core.validate.ValidateResult; impor...
DragonStuff/actor-platform
actor-server/actor-peer-managers/src/main/scala/im/actor/server/peermanagers/GroupsImplicits.scala
package im.actor.server.peermanagers import im.actor.api.rpc.groups.Member import im.actor.server.models trait GroupsImplicits { implicit class ExtGroupUser(gu: models.GroupUser) { def toMember: Member = Member(gu.userId, gu.inviterUserId, gu.invitedAt.getMillis) } }
Keneral/asystem
update_engine/payload_generator/fake_filesystem.h
<reponame>Keneral/asystem // // Copyright (C) 2015 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 //...
SAP-samples/sap-iot-hyperscaler-azure-integration-ref
integration-commons/src/main/java/com/sap/iot/azure/ref/integration/commons/cache/CacheKeyBuilder.java
package com.sap.iot.azure.ref.integration.commons.cache; import com.sap.iot.azure.ref.integration.commons.mapping.MappingServiceConstants; import java.nio.charset.StandardCharsets; public class CacheKeyBuilder { /** * Generate key for sensor info cache entry from sensor and capability id. * * @pa...
mantanquzzmo/footballsimulator_rails_api
spec/factories/players.rb
<gh_stars>0 FactoryBot.define do factory :player do name { 'Marquinhos' } age { 21 } position { 'A' } skill { 5 } form { 11 } form_tendency { 4 } starting_11 { 0 } association :team end end
azeemba/everyoneisjohn
client/reducers/app.js
// @flow import {SOUND, ON} from '../constants/settings'; import {CONNECTING} from '../constants/connection-status'; import {get} from '../utils/local-storage'; import {AppStateType, ActionType} from './types'; export const defaultState = { error: null, sound: get(SOUND) === ON, connection: { status: CONNEC...
rafi-kamal/Residential-Building-Management-System
app/models/ApartmentBuilding.java
<gh_stars>1-10 package models; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.va...
adevress/gfal2
test/unit/transfer/tests_params.h
<reponame>adevress/gfal2<gh_stars>0 /* * Copyright @ Members of the EMI Collaboration, 2010. * See www.eu-emi.eu for details on the copyright holders. * * 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...
Alexey-N-Chernyshov/cpp-libp2p
src/multi/multibase_codec/codecs/base32.cpp
<gh_stars>100-1000 /** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ /** * base32 (de)coder implementation as specified by RFC4648. * * Copyright (c) 2010 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software ...
KirilChuchev/BgPropertiesSpa
BgPropertiesClient/bg-properties-client/src/components/BgProperties/BgProperty/BgProperty.js
<filename>BgPropertiesClient/bg-properties-client/src/components/BgProperties/BgProperty/BgProperty.js import { useContext, useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import ThemeContext from "../../../contexts/ThemeContext"; import authService from "../../../services/authService"...
Kajabi/sage-lib
docs/lib/sage_rails/app/sage_components/sage_modal.rb
<filename>docs/lib/sage_rails/app/sage_components/sage_modal.rb class SageModal < SageComponent set_attribute_schema({ active: [:optional, TrueClass], disable_close: [:optional, TrueClass], id: [:optional, String], large: [:optional, TrueClass], remove_content_on_close: [:optional, TrueClass], ...
mingca/deep_unrest
lib/deep_unrest/paginators/basic.rb
module DeepUnrest module Paginators module Basic def self.get_page(item, results) page = [item[:query][:page] || 1].max page_size = item[:query][:pageSize] || DeepUnrest.page_size results.limit(page_size).offset(page - 1) end end end end