repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ReachVignesh/PopDeemTest
photoprint_v1_1/src/main/java/jsoft/projects/photoclick/FbPhotos.java
package jsoft.projects.photoclick; import android.app.ActionBar; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.database.MatrixCursor; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; i...
odalabasmaz/awsgenie
resource-terminator/src/test/java/io/github/odalabasmaz/awsgenie/terminator/TerminatorHelper.java
<reponame>odalabasmaz/awsgenie package io.github.odalabasmaz.awsgenie.terminator; import io.github.odalabasmaz.awsgenie.fetcher.credentials.AWSClientConfiguration; public class TerminatorHelper { public static AWSClientConfiguration getRegion1Account1Configuration() { return new AWSClientConfiguration() ...
djmott/xtl
docs/html/classxtd_1_1var_1_1inner__base.js
var classxtd_1_1var_1_1inner__base = [ [ "ptr", "classxtd_1_1var_1_1inner__base.html#ace126bd1d08b32c204ab02995ce6b27d", null ], [ "~inner_base", "classxtd_1_1var_1_1inner__base.html#a3bb02ede86122fc9f5cd3d190849d7fe", null ], [ "inner_base", "classxtd_1_1var_1_1inner__base.html#a412a8af2e167d7acca976bb7bfd...
galahq/gala
spec/policies/forum_policy_spec.rb
<reponame>galahq/gala # frozen_string_literal: true require 'rails_helper' RSpec.describe ForumPolicy, type: :policy do subject { described_class } describe 'Scope' do it 'includes the forums the reader can participate in' do reader = create :reader kase = create :case global_forum = kase.f...
vu-luong/ezyhttp
ezyhttp-server-graphql/src/test/java/com/tvd12/ezyhttp/server/graphql/test/datafetcher/GraphQLWelcomeDataFetcher.java
package com.tvd12.ezyhttp.server.graphql.test.datafetcher; import com.tvd12.ezyfox.bean.annotation.EzySingleton; import com.tvd12.ezyhttp.server.graphql.GraphQLDataFetcher; import com.tvd12.ezyhttp.server.graphql.test.datafetcher.GraphQLWelcomeDataFetcher.WelcomeRequest; import lombok.Data; @EzySingleton public clas...
Taeir/aidm-optimal-groups
src/main/java/nl/tudelft/aidm/optimalgroups/metric/matching/gini/GiniCoefficientStudentRank.java
package nl.tudelft.aidm.optimalgroups.metric.matching.gini; import nl.tudelft.aidm.optimalgroups.metric.rank.AssignedRank; import nl.tudelft.aidm.optimalgroups.metric.rank.WorstAssignedRank; import nl.tudelft.aidm.optimalgroups.model.agent.Agent; import nl.tudelft.aidm.optimalgroups.model.group.Group; import nl.tudelf...
dbonino/diozero
diozero-core/src/test/java/com/diozero/util/SchedulerTest.java
package com.diozero.util; /* * #%L * Organisation: diozero * Project: Device I/O Zero - Core * Filename: SchedulerTest.java * * This file is part of the diozero project. More information about this project * can be found at http://www.diozero.com/ * %% * Copyright (C) 2016 - 2021 diozero * %% * ...
impira/yugabyte-db
managed/src/main/java/com/yugabyte/yw/forms/PagedRequestFormData.java
<gh_stars>1000+ // Copyright (c) YugaByte, Inc. package com.yugabyte.yw.forms; import play.data.validation.Constraints; public class PagedRequestFormData<F, S> { @Constraints.Required() public F filter; @Constraints.Required() public S sortBy; @Constraints.Required() public int offset; @Constraints.Requir...
sindaZeng/XHuiCloud
XHuiCloud-upms/XHuiCloud-upms-service/src/main/java/com/xhuicloud/upms/controller/SysMenuController.java
/* * MIT License * Copyright <2021-2022> * * 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 rights * to use, copy, modify, merge, p...
VirusTrack/COVIDvu
work/test/covidvu/pipeline/test_vuregions.py
#!/usr/bin/env python3 # See: https://github.com/VirusTrack/COVIDvu/blob/master/LICENSE # vim: set fileencoding=utf-8: from covidvu.pipeline.vuregions import main import json import os # --- constants --- TEST_BUNDLE_OUTPUT_FILE_NAME = 'bundle-test-regions.json' TEST_MASTER_DATABASE = os.path.join('./res...
GammaCodeX/Advent2018
5/parser.rb
<filename>5/parser.rb class Parser def self.parse text text.each_char.reduce([]) do |acc, char| if(acc.last == char.swapcase) acc.pop else acc.push char end acc end.join end end
tizzen33/core
homeassistant/components/notion/binary_sensor.py
"""Support for Notion binary sensors.""" from __future__ import annotations from dataclasses import dataclass from typing import Literal from homeassistant.components.binary_sensor import ( DEVICE_CLASS_BATTERY, DEVICE_CLASS_CONNECTIVITY, DEVICE_CLASS_DOOR, DEVICE_CLASS_GARAGE_DOOR, DEVICE_CLASS_M...
Canglangweiwei/CatEye
app/src/main/java/com/cicinnus/cateye/module/cinema/cinema_detail/adapter/MovieDateAdapter.java
<filename>app/src/main/java/com/cicinnus/cateye/module/cinema/cinema_detail/adapter/MovieDateAdapter.java package com.cicinnus.cateye.module.cinema.cinema_detail.adapter; import android.graphics.drawable.Drawable; import android.support.annotation.Nullable; import android.view.View; import android.widget.TextView; im...
Donders-Institute/hpc-qaas
internal/server/connector.go
<filename>internal/server/connector.go package server import ( "golang.org/x/crypto/ssh" ) // Connector is an interface to be able to mock SSH connections type Connector interface { NewClient(remoteServer string, clientConfig *ssh.ClientConfig) (*ssh.Client, error) NewSession(client *ssh.Client) (*ssh.Session, err...
Richard-Ballard/arbee-utils
src/main/java/com/github/richardballard/arbeeutils/id/AllBasedByIdSpecifier.java
/* * (C) Copyright 2016 <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 agreed to...
rimmartin/cctbx_project
scitbx/stl/vector_io.h
<filename>scitbx/stl/vector_io.h<gh_stars>100-1000 #ifndef SCITBX_STD_VECTOR_IO_H #define SCITBX_STD_VECTOR_IO_H #include <ostream> #include <vector> namespace scitbx { template <typename ElementType> std::ostream& operator << (std::ostream& o, std::vector<ElementType> const& a) { return o << af::const_ref<Element...
mzeitler/openstrom
firmware/prototype - final/firmware/src/system_config/default/framework/peripheral/pmp/templates/pmp_AddressControl_Default.h
/******************************************************************************* PMP Peripheral Library Template Implementation File Name: pmp_AddressControl_Default.h Summary: PMP PLIB Template Implementation Description: This header file contains template implementations For Feature : Addre...
cojen/Maker
src/main/java/org/cojen/maker/Candidate.java
/* * Copyright (C) 2019 Cojen.org * * 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...
daejunpark/jsaf
tests/html_tests/websitesource/4,yahoo.com/test_files/pretty.js
<reponame>daejunpark/jsaf<gh_stars>1-10 (function () { if(! window.YFPAD) { window.YFPAD = { }; } var a = []; YFPAD.debug = (function () { }); YFPAD.ff_debug = (function () { if(window.chocsickle) { chocsickle.add.apply(window, a...
zer0infinity/CuteForCoast
coast/foundation/base/cuteTest/AnythingSTLTest.h
/* * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * Copyright (c) 2015, <NAME>, Faculty of Computer Science, * University of Applied Sciences Rapperswil (HSR), * 8640 Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can ...
synergycp/express-elect-seed
api/src/config.example.js
<gh_stars>0 var config = module.exports; module.exports['@literal'] = true; var PRODUCTION = process.env.NODE_ENV !== 'develop'; config.express = { port: process.env.API_PORT || 3000, // Bind only to localhost. // Overridden in production. ip: '127.0.0.1' }; if (PRODUCTION) { config.express.ip = '0.0.0.0';...
jgroups-extras/manet
src/main/java/urv/olsr/core/OLSRThread.java
<gh_stars>1-10 package urv.olsr.core; import urv.olsr.data.OLSRNode; import urv.olsr.data.duplicate.DuplicateTable; import urv.olsr.data.mpr.MprSelectorSet; import urv.olsr.data.mpr.MprSet; import urv.olsr.data.neighbour.NeighborTable; import urv.olsr.data.topology.TopologyInformationBaseTable; import urv.olsr.mcast.T...
mistraltechnologies/bog-javassist
src/test/java/com/mistraltech/bog/examples/model/Person.java
<reponame>mistraltechnologies/bog-javassist package com.mistraltech.bog.examples.model; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Person extends Addressee { private int age; private List<Phone> phones; public Person(String name, int age, Address address) { ...
loongson-zn/Bitbucket-papi
src/papi_preset.c
/* * File: papi_preset.c * CVS: * Author: <NAME> * <EMAIL> * Mods: <your name here> * <your email address> */ #include "papi.h" #include "papi_internal.h" #include "papi_memory.h" /* Defined in papi_data.c */ extern hwi_presets_t _papi_hwi_presets; /* This routine copies values from a ...
Strilanc/PaperImpl-PeriodFindCutQubits
src/dirty_period_finding/decompositions/modular_bimultiplication_rules.py
# -*- coding: utf-8 -*- # Copyright 2017 Google 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 ...
sheldhur/Vector
app/lib/consoleLogSQL.js
// import highliteSQl from 'sequelize-log-syntax-colors'; import sqlformatter from 'sqlformatter'; function highliteSQl(text, outputType = 'bash') { let keyWords = [ 'PRAGMA', 'CREATE', 'EXISTS', 'INTEGER', 'PRIMARY', 'VARCHAR', 'DATETIME', 'NULL', 'REFERENCES', 'AND', 'AS', 'ASC', 'INDEX_LIST', 'B...
STRIDES-Codes/Exploring-the-Microbiome-
src/metaspades/src/common/paired_info/histptr.hpp
//*************************************************************************** //* Copyright (c) 2015-2016 Saint Petersburg State University //* All Rights Reserved //* See file LICENSE for details. //*************************************************************************** #pragma once namespace omnigraph { namespa...
rutsatz/echo3ext20
src/java/org/sgodden/echo/ext20/testapp/WindowTest.java
<filename>src/java/org/sgodden/echo/ext20/testapp/WindowTest.java /* ================================================================= # This library 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 Free Software Foundation; eith...
janbodnar/Java-Advanced
datetime/IslamicDateEx.java
<reponame>janbodnar/Java-Advanced<filename>datetime/IslamicDateEx.java<gh_stars>10-100 package com.zetcode; import java.time.LocalDate; import java.time.chrono.HijrahDate; public class IslamicDateEx { public static void main(String[] args) { var nowIslamic = HijrahDate.now(); System.out.println(...
fochoao/cpython
Lib/site-packages/argparseqt/typeHelpers.py
import argparse class Serial(str): pass def rgb(val): if len(val) != 6: raise argparse.ArgumentTypeError('Expected 6 characters but received "%s"' % val) try: return tuple(int(val[i:i+2], 16) for i in (0, 2, 4)) except: raise argparse.ArgumentTypeError('Invalid hex string: %s' % val) def rgba(val): if le...
hsiafan/cocoa
webkit/preferences.h
#import <Foundation/NSGeometry.h> #import <Foundation/NSRange.h> #import <stdbool.h> #import <stdint.h> #import <stdlib.h> #import <utils.h> void* C_Preferences_Alloc(); void* C_WKPreferences_AllocPreferences(); void* C_WKPreferences_Init(void* ptr); void* C_WKPreferences_NewPreferences(); void* C_WKPreferences_Autor...
JianpingZeng/xcc
xcc/java/backend/pass/PassRegisterationUtility.java
/* * Extremely Compiler Collection * Copyright (c) 2015-2020, <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 requ...
FujishigeTemma/Emoine
services/streamer/streamer.go
package streamer import ( "context" "errors" "log" "sync" "github.com/google/uuid" "github.com/traPtitech/Emoine/repository" "github.com/gorilla/websocket" "google.golang.org/protobuf/proto" "github.com/traPtitech/Emoine/pb" "github.com/traPtitech/Emoine/utils" ) var ( // ErrAlreadyClosed 既に閉じられています Er...
nathanmentley/attollo
src/Server/Tools/DatabaseManager/CodeVersions/3.js
<reponame>nathanmentley/attollo<gh_stars>0 //Seed BlockContainerDefs //Seed AddBlockContainerAreaDef import constitute from 'constitute'; import Attollo from '../../../Common/Attollo'; var attollo = constitute(Attollo); (function () { var classDef = function () {}; classDef.prototype.Logic = function(dbContext...
0xlay/Distance
Client/Module/src/ModulesManager.cpp
#include "ModulesManager.hpp" namespace Distance { namespace _internal { void ModulesManagerDestructor::init(Distance::ModulesManager* manager) { manager_ = manager; } ModulesManagerDestructor::~ModulesManagerDestructor() { delete manager_; ...
sooftware/nlp-tasks
machine_translation/train.py
<gh_stars>10-100 # MIT License # code by <NAME> @sooftware import argparse import torch import torch.nn as nn import numpy as np import random import wandb from functools import partial from torch.utils.data import DataLoader from dataset import load_datas, TranslationDataset, collate_fn from utils import train_token...
lijek/StationAPI
station-level-events-v0/src/main/java/net/modificationstation/stationapi/mixin/level/client/MixinChunkCache.java
<reponame>lijek/StationAPI package net.modificationstation.stationapi.mixin.level.client; import net.minecraft.level.Level; import net.minecraft.level.chunk.ChunkCache; import net.minecraft.level.source.LevelSource; import net.modificationstation.stationapi.api.StationAPI; import net.modificationstation.stationapi.api...
iwyg/jmg-example
public/src/playground/index.js
<filename>public/src/playground/index.js import 'styles/playground'; import 'babel-polyfill'; import 'modernizr'; import ObjectFit from 'object-fit'; import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import App from 'playground/components/App'; import configureStore from...
ThorntonMatthewD/caseflow
app/models/etl/decision_review/appeal.rb
<filename>app/models/etl/decision_review/appeal.rb<gh_stars>100-1000 # frozen_string_literal: true class ETL::DecisionReview::Appeal < ETL::DecisionReview class << self def unique_attributes [ :closest_regional_office, :docket_range_date, :docket_type, :established_at, ...
valiro21/FastTrainService
Utils/src/Calendar.cpp
// // Created by vrosca on 1/10/17. // #include <ctime> #include "Calendar.hpp" int Calendar::days_in_month[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; Calendar::Calendar() { time_t t = time(0); // get time now struct tm * now = localtime( & t ); year = (unsigned int) (now->tm_year + 19...
p-g-krish/deepmac-tracker
data/js/9a/56/4b/00/00/00.24.js
<reponame>p-g-krish/deepmac-tracker deepmacDetailCallback("9a564b000000/24",[{"a":"2800 Lockheed Way Carson City Nevada US 89706","o":"Cubix Corporation","d":"2017-05-28","t":"add","s":"ieee","c":"US"}]);
andtorg/pentaho-kettle
test/org/pentaho/di/trans/steps/dimensionlookup/DimensionLookupTest.java
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
commerceboard/geecommerce
core/src/main/java/com/geecommerce/core/json/genson/AttributeConverter.java
package com.geecommerce.core.json.genson; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import com.geecommerce.core.App; import com.geecommerce.core.enums.AttributeType; import com.geecommerce.core.enums.BackendType; import com.geecommer...
yuyu2172/ilv
ilv/collect_results/__init__.py
from collect_results_chainer import collect_results_chainer, collect_results_chainer_interactive
123844114/react-master
day2/a/src/music/mock/data.js
export default [ { keyCode: 81, title:'Heater 1', name:'Q', open:false }, { keyCode: 87, title:'Heater 2', name:'W', open:false }, { keyCode: 69, title:'Heater 3', name:'E', open:false }, { ...
pacoolin/octopus
1.utils/core/src/main/java/com/octopus/utils/xml/auto/defpro/impl/utils/ConcurrenceWaitTask.java
package com.octopus.utils.xml.auto.defpro.impl.utils; import com.octopus.utils.thread.ThreadPool; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; ...
cmarincia/enso
lib/scala/akka-native/src/main/java/org/enso/nativeimage/workarounds/ReplacementStatics.java
<reponame>cmarincia/enso package org.enso.nativeimage.workarounds; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; /** * Uses Native Image substitution capability to substitute the {@link * scala.runtime.Statics#releaseFence()} function which causes problems when bui...
trolldbois/metasploit-framework
lib/gemcache/ruby/1.9.1/arch/linux64/eventmachine-0.12.10/lib/em/protocols.rb
<filename>lib/gemcache/ruby/1.9.1/arch/linux64/eventmachine-0.12.10/lib/em/protocols.rb module EventMachine # This module contains various protocol implementations, including: # - HttpClient and HttpClient2 # - Stomp # - Memcache # - SmtpClient and SmtpServer # - SASLauth and SASLauthclient # - LineAndTex...
Shtekata/14.Softuni-ReactJS
06.Workshop-Components/origami-project/src/components/Footer/Footer.js
<reponame>Shtekata/14.Softuni-ReactJS import x from './Footer.module.css'; import NavigationItem from '../NavigationItem/NavigationItem'; const Footer = () => ( <footer className={x.footer}> <ul> <NavigationItem>Going to 1</NavigationItem> <NavigationItem>Going to 2</NavigationItem>...
jd-oss/mutator_rails
spec/spec_helper.rb
<reponame>jd-oss/mutator_rails # frozen_string_literal: true ENV['RACK_ENV'] = 'test' require 'simplecov' SimpleCov.add_filter '/spec/' SimpleCov.start 'rails' unless File.basename($0).eql?('mutant') require 'bundler/setup' require 'mutator_rails' require 'rspec/collection_matchers' RSpec.configure do |config| #...
nistefan/cmssw
EventFilter/L1TRawToDigi/plugins/implementations_stage2/GlobalExtBlkUnpacker.cc
<filename>EventFilter/L1TRawToDigi/plugins/implementations_stage2/GlobalExtBlkUnpacker.cc #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "EventFilter/L1TRawToDigi/plugins/UnpackerFactory.h" #include "GTCollections.h" #include "GlobalExtBlkUnpacker.h" namespace l1t { namespace stage2 { bool G...
ucdavis/ipa-web
src/main/java/edu/ucdavis/dss/ipa/entities/ScheduleInstructorNote.java
package edu.ucdavis.dss.ipa.entities; import javax.persistence.*; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** * Holds meta data set by the AC about instructors for a certain schedule */ @Entity @Table(name = "ScheduleInstructorNotes") public class S...
plamere/PlaylistBuilder
pbl/echonest_plugs.py
<reponame>plamere/PlaylistBuilder ''' A set of sources and annotators for Echo Nest API. An Echo Nest track has the following attributes:: { "src": "Echo Nest Playlist Artist radio for weezer", "artist": "Weezer", "title": "Perfect Situation", "id": "3oM0...
nnoco/playground
design-patterns/HeadFirst Design Patterns/src/day13/Knowledge.java
<filename>design-patterns/HeadFirst Design Patterns/src/day13/Knowledge.java<gh_stars>0 package day13; public class Knowledge { }
italankin/lnch
launcher/src/main/java/com/italankin/lnch/model/repository/search/match/Match.java
package com.italankin.lnch.model.repository.search.match; import android.content.Context; import android.content.Intent; import android.net.Uri; import java.util.Set; import androidx.annotation.ColorInt; import androidx.annotation.DrawableRes; public interface Match { /** * @return uri of match icon ...
ValtoFrameworks/ClanLib
Sources/Core/Zip/zip_archive.cpp
/* ** ClanLib SDK ** Copyright (c) 1997-2016 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for a...
enixdark/featurehub
backend/mr-db-sql/src/main/java/io/featurehub/db/utils/DatabaseBinder.java
package io.featurehub.db.utils; import cd.connect.app.config.ConfigKey; import cd.connect.app.config.DeclaredConfigResolver; import io.ebean.Database; import io.ebeaninternal.server.core.DefaultServer; import org.glassfish.jersey.internal.inject.AbstractBinder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; ...
pdpdds/sdldualsystem
sdl1/SGL4/SGLVertexIndexList.h
#ifndef SGLVERTEXINDEXLIST_H #define SGLVERTEXINDEXLIST_H #include <vector> class SGLVertexIndexList { public: std::vector<int> vilist; public: SGLVertexIndexList(void); ~SGLVertexIndexList(void); void clear(void); void addIndex(int index); void addIndex(const int* indexBuffer, int count); int& getLastIndex(voi...
maxhgerlach/mpi4py
test/test_op.py
from mpi4py import MPI import mpiunittest as unittest import sys try: import array except ImportError: array = None def asarray(typecode, data): try: memoryview _tobytes = lambda s: memoryview(s).tobytes() except NameError: _tobytes = lambda s: buffer(s)[:] try: _fr...
kernt/infrakit
vendor/github.com/juju/schema/time_duration.go
// Copyright 2016 Canonical Ltd. // Licensed under the LGPLv3, see LICENCE file for details. package schema import ( "reflect" "time" ) // TimeDuration returns a Checker that accepts a string value, and returns // the parsed time.Duration value. Emtpy strings are considered empty time.Duration func TimeDuration() ...
mscheltienne/neurotin-analysis
neurotin/model/viz.py
<gh_stars>0 from typing import Optional import mne import numpy as np import pandas as pd from mne.io import Info from ..utils._checks import _check_type def plot_topomap(weights, info: Optional[Info] = None, **kwargs) -> None: """Plot the weights as a topographic map. Parameters ---------- weights...
borisskert/aram-all-time-table
backend-services/src/main/java/com/github/borisskert/aramalltimetable/profileicon/ProfileIconStore.java
package com.github.borisskert.aramalltimetable.profileicon; import com.github.borisskert.aramalltimetable.riot.model.ProfileIcon; import com.github.borisskert.aramalltimetable.store.StreamStore; import org.apache.commons.io.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframew...
MetaPhase-Consulting/State-TalentMAP
src/reducers/synchronizations/index.js
<filename>src/reducers/synchronizations/index.js import { patchSyncHasErrored, patchSyncIsLoading, putAllSyncsHasErrored, putAllSyncsIsLoading, putAllSyncsSuccess, syncs, syncsHasErrored, syncsIsLoading } from './synchronizations'; export default { syncs, syncsHasErrored, syncsIsLoading, putAllSyncsSuccess, ...
HeavenWu/slimdx
source/direct3d10/ShaderResourceView.h
<reponame>HeavenWu/slimdx<gh_stars>10-100 /* * Copyright (c) 2007-2012 SlimDX Group * * 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 t...
dym270307872/outman-boot
boot-redis/boot-jedisCluster/src/main/java/cn/dyaoming/outman/service/RandomService.java
<filename>boot-redis/boot-jedisCluster/src/main/java/cn/dyaoming/outman/service/RandomService.java package cn.dyaoming.outman.service; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CachePut; import org.springframework.cache.annotation.Cacheable; import org.springfr...
754340156/NQ_quanfu
allrichstore/UI/GoodsClass/Main/V/MenuHeaderView.h
<filename>allrichstore/UI/GoodsClass/Main/V/MenuHeaderView.h // // MenuHeaderView.h // allrichstore // // Created by 任强宾 on 16/11/28. // Copyright © 2016年 allrich88. All rights reserved. // #import <UIKit/UIKit.h> #import "GoodsClassVC.h" @interface MenuHeaderView : UICollectionReusableView @property (nonatomic,...
CarnationWang23/hyracks
hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/LineFileWriteOperatorDescriptor.java
/* * Copyright 2009-2013 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
BenKoehler/bk
examples/bkTools/progress.cpp
<reponame>BenKoehler/bk /* * MIT License * * Copyright (c) 2018-2019 <NAME> * * 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 righ...
m-nakagawa/sample
jena-3.0.1/jena-sdb/src/test/java/sdb/DBTest.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 ...
smoorpal/conjure-go
vendor/github.com/palantir/witchcraft-go-tracing/wtracing/context.go
// Copyright (c) 2018 Palantir Technologies. 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/LICENSE-2.0 // // Unless require...
yesheng86/play-metronome
Play Metronome/XYSHintLineView.h
<filename>Play Metronome/XYSHintLineView.h // // XYSHintLineView.h // Play Metronome // // Created by <NAME> on 8/13/14. // Copyright (c) 2014 yesheng. All rights reserved. // #import <UIKit/UIKit.h> @interface XYSHintLineView : UIView @property CGPoint rotationAxis; - (void)appear; - (void)disappear; @end
arturluis/spatial
test/spatial/tests/feature/math/LowPrecisionRep.scala
package spatial.tests.feature.math import spatial.dsl._ import spatial.lib._ @spatial class LowPrecisionRep extends SpatialTest { // Args N in multiple of 64 type T = Float type B = Byte def main(args: Array[String]): Unit = { val data = Array.tabulate(1000){i => random[Float]( 256) - 128 } val N = dat...
liangchaoboy/qiniu-suits-java
src/main/java/com/qiniu/model/media/Item.java
<gh_stars>1-10 package com.qiniu.model.media; public class Item { public String cmd; public Integer code; public String desc; public String error; public String hash; public String key; public Integer returnOld; }
jsoref/cf-ui
packages/cf-style-provider/src/felaTestContext.js
// this is a wrapper for testing, it passes fela based // components fela's renderer and global theme import React from 'react'; import StyleProvider from './StyleProvider'; export default (component, renderer) => ( <StyleProvider renderer={renderer} dev> {component} </StyleProvider> );
Intel-EPID-SDK/epid-sdk
epid/verifier/unittests/nrverify-test.cc
/*############################################################################ # Copyright 2016-2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ht...
hernad/zimbra9
zm-web-client/tiny_mce/custom/langs/sv.js
<gh_stars>0 /* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2014, 2016 Synacor, Inc. * * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
CyberFlameGO/cloud-security-xsuaa-integration
java-security/src/main/java/com/sap/cloud/security/token/validation/validators/JwtSignatureAlgorithm.java
/** * SPDX-FileCopyrightText: 2018-2021 SAP SE or an SAP affiliate company and Cloud Security Client Java contributors * * SPDX-License-Identifier: Apache-2.0 */ package com.sap.cloud.security.token.validation.validators; /** * This is represented by "kty" (Key Type) Parameter. * https://www.rfc-editor.org/rfc/r...
parlaylabs/botbuilder-java
libraries/bot-builder/src/main/java/com/microsoft/bot/builder/Middleware.java
<reponame>parlaylabs/botbuilder-java<gh_stars>0 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.bot.builder; /** * Represents middleware that can operate on incoming activities. * A {@link BotAdapter} passes incoming activities from the user...
JanStureNielsen/Chronicle-Websocket-Jetty
src/main/java/net/openhft/chronicle/websocket/jetty/JettyServletFactory.java
/* * Copyright 2016 <EMAIL>frequencytrading.<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 appl...
Nannf/LeetCode
SomeInterestingAlgorithms/src/TreeTraversal.java
import java.sql.SQLOutput; import java.util.*; /** * @auth Nannf * @date 2020/6/27 10:33 * @description: 二叉树遍历 */ public class TreeTraversal { public static void main(String[] args) { TreeNode tree = new TreeNode(1); TreeNode t1 = new TreeNode(2); TreeNode t2 = new TreeNode(3); ...
shahedex/tfjson
vendor/github.com/hashicorp/terraform/builtin/providers/mysql/resource_grant_test.go
<filename>vendor/github.com/hashicorp/terraform/builtin/providers/mysql/resource_grant_test.go<gh_stars>1-10 package mysql import ( "fmt" "log" "strings" "testing" mysqlc "github.com/ziutek/mymysql/mysql" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) func TestA...
BearerPipelineTest/Waves
node/src/test/scala/com/wavesplatform/state/diffs/smart/predef/PowNewPrecisionTest.scala
<filename>node/src/test/scala/com/wavesplatform/state/diffs/smart/predef/PowNewPrecisionTest.scala package com.wavesplatform.state.diffs.smart.predef import com.wavesplatform.db.WithDomain import com.wavesplatform.db.WithState.AddrWithBalance import com.wavesplatform.features.BlockchainFeatures._ import com.wavesplatf...
wrhb123/cloudpods
pkg/keystone/driver/cas/class.go
// 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 applicable law or agreed to in writi...
jeap-rs/code-examples
spring-boot/static/src/main/java/io/reflectoring/staticdata/RandomQuotePrinter.java
package io.reflectoring.staticdata; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import java.util.Random; @Configurat...
mayonghui9182/helloWorld
sourceCode/javase/onJava8/src/main/java/strings/JGrep.java
package strings;// strings/JGrep.java // (c)2017 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // A very simple version of the "grep" program // {java JGrep // WhitherStringBuilder.java 'return|for|String'} import j...
elsys/po-2015
A/02/22/task1.c
#include <stdio.h> void minmax(int *, int , int *, int *); int main() { int arr[500]; int size; int min, max; int n, i=0; scanf("%d",&n); size=n; while(i!=n) { scanf("%d",&arr[i]); i++; } minmax(arr, size, &min, &max); printf("%d", min+max); return 0; } void minmax(int *arr, int size, int *min, int *...
Yannic/chromium
chrome/browser/extensions/chrome_extension_chooser_dialog.h
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_CHOOSER_DIALOG_H_ #include "base/...
mochixuan/ReactNode
React202006/r020606/src/App.js
<reponame>mochixuan/ReactNode // import TestHook from './TestHook' // export default TestHook; // import ReduxApp from './redux-container/ReduxApp' // export default ReduxApp; // import ReduxHookApp from './redux-hook-container' // export default ReduxHookApp // import ContextTest from './contextTest' // export defa...
nmehrle/athena-public-version
src/diagnostics/diagnostics.hpp
#ifndef DIAGNOSTICS_HPP_ #define DIAGNOSTICS_HPP_ // C++ header #include <string> // Athena++ headers #include "../mesh/mesh.hpp" #include "../athena_arrays.hpp" class ParameterInput; class Diagnostics { public: // data std::string myname, type, grid; Diagnostics *prev, *next; AthenaArray<Real> data; int ...
alancnet/fantasy-names
generators/game_of_thrones/free_citys.js
var generatorOf = require('../../generator-of'); module.exports = generatorOf(function generator$game_of_thrones$free_citys(type) { var names1 = ["Adar", "Aer", "Ar", "Ball", "Bel", "Brach", "Daar", "Don", "Draq", "Garr", "Goran", "Gyll", "Har", "Harl", "Hor", "Ill", "Inn", "Irr", "Jaer", "Jaq", "Jor", "Laraz", "Laz"...
gregory-chekler/api
src/database/utils/constants.py
<reponame>gregory-chekler/api """ This file contains constants used throughout the codebase. """ SHORT_STR_LEN = 100 LONG_STR_LEN = 10000 TINY_STR_LEN = 15
steadylearner/code
src/__tests__/isReserved.test..js
const { isReserved } = require(".."); describe('Test simple cases', () => { const reserved = ["title", "href"]; const withValid = "title"; const withInvalid = "will be false"; test("Simply verfiy it works with reserved words", () => { expect(isReserved(reserved)(withValid)) .toBe(true); }); tes...
rsingh-flx/jfixture
jfixture/src/test/java/com/flextrade/jfixture/behaviours/tracing/TestDebugTracingStrategy.java
<reponame>rsingh-flx/jfixture package com.flextrade.jfixture.behaviours.tracing; import com.flextrade.jfixture.exceptions.ObjectCreationException; import org.junit.Before; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; publi...
FDA/Healthy-Citizen-Code
adp-frontend-web-v3/app/app.constants.js
<filename>adp-frontend-web-v3/app/app.constants.js ;(function () { 'use strict'; angular .module('app') .constant('APP_CONFIG', window.appConfig); })();
FMSoftCN/iphone-like-demo
src/calculator/calc_size.h
/* ** $Id: calc_size.h 224 2007-07-03 09:38:24Z xwyan $ ** ** calc_size.h: define the buttons layout of calc ** ** Copyright (C) 2006 Feynman Software. ** ** All right reserved by Feynman Software. ** ** Current maintainer: <NAME>. ** ** Create date: 2006/11/17 */ #ifndef CALC_SIZE_H #define CALC_SIZE_H #ifdef __cpl...
veler/clipboardzanager
Android/app/src/test/java/com/etiennebaudoux/clipboardzanager/componentmodel/io/IoUtilsTest.java
package com.etiennebaudoux.clipboardzanager.componentmodel.io; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import static org.junit.Assert.assertArrayEquals; public class IoUtilsTest { @Test public void copy() throws Exception { byte[] data = new ...
marcosppastor/MSV146
scripts/npc/9270026.js
/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 <NAME> <<EMAIL>> <NAME> <<EMAIL>> <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Softwa...
RyanTruran/EmbeddedSystems.Playground
01 - Independent Study/UTAustinX_610/Labware/CC3100_docs/simplelink_api/html/search/all_3.js
<filename>01 - Independent Study/UTAustinX_610/Labware/CC3100_docs/simplelink_api/html/search/all_3.js var searchData= [ ['event_5fdropped_5fdevice_5fasync_5fgeneral_5ferror',['EVENT_DROPPED_DEVICE_ASYNC_GENERAL_ERROR',['../group__device.html#ga3186925e3acec312e7d74733b8b64a87',1,'device.h']]] ];
erasme/kjing
share/www/admin/kjing/device/deviceproperties.js
<filename>share/www/admin/kjing/device/deviceproperties.js  KJing.ResourceProperties.extend('KJing.DeviceProperties', { deviceUrlField: undefined }, { build: function() { KJing.DeviceProperties.base.build.apply(this, arguments); this.deviceUrlField = new KJing.TextField({ title: 'URL du client Web', width: ...
bhm/Cthulhator
cthulhator/src/main/java/com/bustiblelemons/cthulhator/character/creation/ui/PreviewCardFragment.java
<gh_stars>1-10 package com.bustiblelemons.cthulhator.character.creation.ui; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.bustiblelemons.cthulhator.R; import com.bustiblelemons.cthulhator.character.persistance.SavedCharacter; import c...