repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
BrightspaceHypermediaComponents/foundation-components
components/activity/list/custom/quiz/lang/de.js
<gh_stars>1-10 /* eslint quotes: 0 */ export default { "points": "{count, plural, one {1 Punkt} other {{count} Punkte}}", "question_selection": "Auswählen von {numQuestions} {numQuestions, plural, =0 {Frage} =1 {Frage} andere {Fragen} von {numChoices} im Wert von jeweils {questionPoints} {questionPoints, plural, =0 ...
AllBestBets/async-http-client
client/src/main/java/org/asynchttpclient/netty/channel/ConnectionSemaphore.java
/* * Copyright (c) 2017 AsyncHttpClient Project. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at * http://www.ap...
terrameijar/bluebottle
bluebottle/time_based/migrations/0043_auto_20201217_0743.py
<reponame>terrameijar/bluebottle<filename>bluebottle/time_based/migrations/0043_auto_20201217_0743.py<gh_stars>1-10 # -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2020-12-17 06:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): de...
dreamsxin/ultimatepp
uppdev/LangInfo/main.cpp
<reponame>dreamsxin/ultimatepp<filename>uppdev/LangInfo/main.cpp #include <Core/Core.h> #include <winnls.h> using namespace Upp; /* Vector<int> lang; static BOOL CALLBACK sEnumLocale(char *locale_string) { LCID lcid = stou(locale_string, NULL, 16); char buffer1[10], buffer2[10]; ::GetLocaleInfo(lcid...
fdgo/utils
configex/configex.go
<reponame>fdgo/utils<filename>configex/configex.go package configex import ( "fmt" "github.com/fsnotify/fsnotify" "github.com/spf13/viper" "log" "os" ) const ( _key = "<KEY>" _iv = "iqK4ey75+IV2Sg!L" ) // InitConfig 读取并解析配置到Config对象 // 没有检查配置是否完整 func InitConfig() { viper.SetConfigFile("config.yaml") viper...
Matt-Crow/GEARSJava
GearsSidescroller/src/main/java/gears/sidescroller/world/tiles/package-info.java
<reponame>Matt-Crow/GEARSJava /** * Tiles serves as part of the static environment of the game world. A TileMap * uses the Flyweight design pattern to render tiles and manage their collisions. * * Future versions will add support for rendering sprites for tiles. * * @see gears.sidescroller.world.tileMaps */ pa...
makiam/importer-exporter
impexp-vis-plugin/src-gen/main/java/org/collada/_2005/_11/colladaschema/GlslSetparam.java
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1 generiert // Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2018.1...
frc5024/BaseBot
docs/html/navtreeindex0.js
<gh_stars>0 var NAVTREEINDEX0 = { "DriveTrain_8cpp.html":[2,0,0,0,0,1,0], "DriveTrain_8cpp_source.html":[2,0,0,0,0,1,0], "DriveTrain_8h.html":[2,0,0,0,1,1,0], "DriveTrain_8h_source.html":[2,0,0,0,1,1,0], "DriveWithJoystick_8cpp.html":[2,0,0,0,0,0,0], "DriveWithJoystick_8cpp_source.html":[2,0,0,0,0,0,0], "DriveWithJoyst...
RomaKoks/druid
processing/src/test/java/org/apache/druid/query/groupby/having/DimFilterHavingSpecTest.java
<gh_stars>1000+ /* * 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 * ...
greck2908/libflame
src/base/flamec/supermatrix/gpu/main/FLASH_Queue_gpu.c
<reponame>greck2908/libflame /* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME...
kokizzu/bebop
gen_struct.go
<gh_stars>10-100 package bebop import ( "io" "strconv" "strings" ) func (st Struct) generateTypeDefinition(w io.Writer, settings GenerateSettings) { writeOpCode(w, st.Name, st.OpCode) writeRecordAssertion(w, st.Name) writeComment(w, 0, st.Comment, settings) writeGoStructDef(w, st.Name) for _, fd := range st.F...
dedsec-9/swarmkit
cmd/swarmctl/cluster/cmd.go
package cluster import "github.com/spf13/cobra" var ( // Cmd exposes the top-level cluster command. Cmd = &cobra.Command{ Use: "cluster", Short: "Cluster management", } ) func init() { Cmd.AddCommand( inspectCmd, listCmd, updateCmd, unlockKeyCmd, ) }
omertuc/DCGM
dcgmproftester/DcgmProfTester.cpp
/* * Copyright (c) 2021, NVIDIA CORPORATION. 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 requi...
chunkyboy068/archive
C_C++/Chat Client/SnoopsServer/SSLServer.h
<gh_stars>0 /* Names: <NAME> & <NAME> Emails: <EMAIL> & <EMAIL> Class: ECE 3574 Title: Homework 7 (SnoopsServer) Date of Submision: 12/9/2012 Description: SSLServer.h defines the functions implemented in SSLServer.cpp. See SSLServer.cpp for more info. */ #ifndef SSLSERVER_H #define SSLSERVER_H #include <QTcpServ...
amoshydra/cypress
packages/driver/cypress/integration/commands/clock_spec.js
<filename>packages/driver/cypress/integration/commands/clock_spec.js describe('src/cy/commands/clock', () => { beforeEach(function () { this.window = cy.state('window') this.setTimeoutSpy = cy.spy(this.window, 'setTimeout') this.setIntervalSpy = cy.spy(this.window, 'setInterval') }) describe('#clock...
smackfu/one-app-ducks
scripts/build-node-imports.js
<gh_stars>1-10 #!/usr/bin/env node /* * Copyright 2019 American Express Travel Related Services Company, 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/li...
JamesCao2048/BlizzardData
Corpus/aspectj/3388.java
import org.aspectj.testing.Tester; import org.aspectj.testing.Tester; public class CflowAlone { public static void main(String[] args){ new testclass1(); Tester.check(0 < Filteraspect.i, "0 < Filteraspect.i: " + Filteraspect.i); } } class testclass1 {} class testclass2 ...
StyvenSoft/Learn-Ruby
5-MethodsBlocksAndSorting/Greeter.rb
def greeter(name) return "Hello, #{name}!" end def by_three?(num) if num % 3 == 0 return true else return false end end puts greeter("Steveen")
wilsonpage/gaia
apps/communications/dialer/test/unit/mock_mozVoicemail.js
<reponame>wilsonpage/gaia 'use strict'; var MockMozVoicemail = { _number: null, getNumber: function() { return this._number; } };
qianfei11/zstack
header/src/main/java/org/zstack/header/identity/role/api/APICreateRoleEvent.java
package org.zstack.header.identity.role.api; import org.zstack.header.identity.PolicyStatement; import org.zstack.header.identity.StatementEffect; import org.zstack.header.identity.role.RoleInventory; import org.zstack.header.identity.role.RolePolicyStatementInventory; import org.zstack.header.identity.role.RoleState;...
autioch/movie-collector
app/utils/getTicker/getTemplate.js
<gh_stars>1-10 /* eslint no-magic-numbers: 0 */ /* eslint no-param-reassign: 0 */ const padRight = require('./padRight'); const { maxLabelWidth } = require('./settings'); /** * Prepares template for ProgressBar package. * @param {String} title Title od the progress bar * @param {Number} total Number of actions to...
zeisler/active_mocker
lib/active_mocker/inspectable/time.rb
<filename>lib/active_mocker/inspectable/time.rb # frozen_string_literal: true module ActiveMocker module Inspectable refine Time do def inspect strftime("Time.new(%Y, %-m, %-d, %-H, %-M, %-S, \"%:z\")") end end end end
sciage/NewProject
app/src/main/java/in/voiceme/app/voiceme/PostsDetails/PostsDetailsActivity.java
<filename>app/src/main/java/in/voiceme/app/voiceme/PostsDetails/PostsDetailsActivity.java package in.voiceme.app.voiceme.PostsDetails; import android.content.Intent; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; impo...
mauriciord/expo
packages/expo-google-sign-in/src/GoogleSignIn.js
// @flow import AuthData from './AuthData'; import Authentication from './Authentication'; import Identity from './Identity'; import User from './User'; import ExpoGoogleSignIn from './ExpoGoogleSignIn'; const { ERRORS, SCOPES, TYPES } = ExpoGoogleSignIn; export type GoogleSignInType = 'default' | 'games'; export t...
DioSpace/MyAndroid
service1/src/main/java/com/myself/learnservice/MainActivity.java
<reponame>DioSpace/MyAndroid package com.myself.learnservice; import androidx.appcompat.app.AppCompatActivity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import andr...
abelard2008/overlog
debugger/tableTracer.h
/* * @(#)$Id$ * * Copyright (c) 2005 Intel Corporation. All rights reserved. * * This file is distributed under the terms in the attached INTEL-LICENSE file. * If you do not find these files, copies can be found by writing to: * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, * Berkeley, CA, 94704. ...
vcabbage/todd
agent/responses/responses.go
<filename>agent/responses/responses.go<gh_stars>0 /* ToDD agent responses These are asynchronous responses sent back to the server, usually as a response to a task. Not all tasks result in an agent sending a response to the server. Responses are for highly sensitive operations like test distribution and execu...
jelc/JAK
widgets/easy_tooltip/easy_tooltip.js
/** * @overview Universal tooltip */ /** * @class Widget Tooltip zobrazuje bublinu u prvku v závislosti definovaných na akcích (hover/click atd). * @group jak-widgets */ JAK.Easy_Tooltip = JAK.ClassMaker.makeClass({ NAME: "JAK.Easy_Tooltip", VERSION: "1.0" }); /** * Konstruktor tooltipu. * Alespoň jeden z par...
Miridescen/BWT
Pods/Meiqia/Meiqia-SDK-files/MQChatViewController/TableCells/CellModel/MQImageCellModel.h
<gh_stars>100-1000 // // MQImageCellModel.h // MeiQiaSDK // // Created by ijinmao on 15/10/29. // Copyright © 2015年 MeiQia Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "MQCellModelProtocol.h" #import "MQImageMessage.h" /** * 聊天气泡和其中的图片较大一边的水平间距 */ static CGFloat const kMQCellBubbleToIm...
naustudio/date-fns
src/isValid/test.js
<reponame>naustudio/date-fns<gh_stars>0 // @flow /* eslint-env mocha */ import assert from 'power-assert' import isValid from '.' describe('isValid', function () { it('returns true if the given date is valid', function () { var result = isValid(new Date()) assert(result === true) }) it('returns false i...
NifTK/NifTK
Libraries/ITK/Testing/Segmentation/MIDASIrregularVolumeEditor/itkMIDASRegionOfInterestCalculatorTest.cxx
<reponame>NifTK/NifTK /*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warrant...
wheatandcat/dotstamp_client
src/js/redux/message/actions/show.js
<reponame>wheatandcat/dotstamp_client // @flow import * as types from "../../../constants/ActionTypes" /** * 初期化する */ export function init() { return { type: types.INIT_MESSAGE_SHOW } } /** * 文言を表示する */ export function message(message: string, style: number) { return { type: types.OPEN_MESSAGE_SHOW, message, ...
shannliu/nju-judge
judge-core/src/main/java/cn/edu/nju/software/judge/aspect/SubmissionAspect.java
package cn.edu.nju.software.judge.aspect; import cn.edu.nju.software.judge.constant.RedisConstants; import cn.edu.nju.software.judge.model.SubmissionModel; import cn.edu.nju.software.judge.submission.RedisSubmission; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.asp...
chronos-tachyon/mojo
net/unix.cc
// Copyright © 2016 by <NAME> <<EMAIL>> // Available under the MIT License. See LICENSE for details. #include "net/unix.h" #include <arpa/inet.h> #include <netdb.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/un.h> #include <unistd.h> #include <cerrno> #include <cstring> #include <map> #include <mut...
lechium/iOS1351Headers
System/Library/PrivateFrameworks/OnBoardingKit.framework/OBTextBulletedListItem.h
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:35:53 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/OnBoardingK...
reenhanced/usps
spec/address_spec.rb
require 'spec_helper' describe USPS::Address do it "should have the expected fields" do address = USPS::Address.new address.should respond_to( :name, :name=, :address1, :address1=, :address2, :address2=, :city, :city=, :state, :state=, :zip5, :zip5=, :zip4, :zip4= ...
wishl/brcc
brcc-cache/src/main/java/com/baidu/brcc/retry/RetryActionWithThrParam.java
<reponame>wishl/brcc /* * Copyright (C) 2021 Baidu, Inc. All Rights Reserved. */ package com.baidu.brcc.retry; import org.springframework.dao.DataAccessException; import com.baidu.brcc.utils.gson.GsonUtils; import lombok.extern.slf4j.Slf4j; /** * 三参数重试类 * * @param <P1> 第一参数类型 * @param <P2> 第二参数类型 * @param <P...
JackChan1999/boohee_v5.6
src/main/java/com/meiqia/core/bw.java
<gh_stars>1-10 package com.meiqia.core; import com.meiqia.core.b.c; import com.meiqia.core.bean.MQAgent; import com.meiqia.core.bean.MQConversation; import com.squareup.okhttp.Response; import org.json.JSONObject; class bw implements cw { final /* synthetic */ cv a; final /* synthetic */ bu b; bw(bu buV...
gemenerik/gap_sdk
tools/nntool/graph/types/others.py
# Copyright (C) 2020 GreenWaves Technologies, SAS # 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 Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
skyplaying/ant-simple-pro
vue+typescript/.eslintrc.js
const { defineConfig } = require('eslint-define-config') module.exports = defineConfig({ root: true, env: { node: true, browser: true, es6: true }, parser: 'vue-eslint-parser', extends: [ // 'plugin:vue/vue3-essential', 'plugin:vue/vue3-recommended', 'eslint:recommended', 'plugin:...
euhat/EuhatExpert
euhat/os/win32/EuhatIcon.cpp
<gh_stars>0 #include <EuhatPreDef.h> #include <Windows.h> #include <common/OpCommon.h> #include "EuhatIcon.h" #include <OpCommonOs.h> #include <EuhatPostDef.h> EuhatIcon::EuhatIcon() { icon_ = NULL; } EuhatIcon::EuhatIcon(int id) { HINSTANCE hInst = GetModuleHandle(0); //icon_ = (HICON)LoadIcon(hInst, MAKEINTRESOU...
conholo/OpenGLSandbox
Sandbox/src/Layers/410/CloudsUtility/CloudsUI.h
#pragma once #include "Engine.h" #include "Layers/410/CloudsUtility/CloudDataStructures.h" #include "Layers/410/CloudsUtility/CloudsSceneRenderPass.h" struct CloudsUIData { Engine::Ref<BaseShapeWorleySettings> BaseShapeSettings; Engine::Ref<DetailShapeWorleySettings> DetailShapeSettings; Engine::Ref<WorleyPerlinSe...
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
ace/tao/tao_idl/be/be_visitor_interface/interface_ss.cpp
<filename>ace/tao/tao_idl/be/be_visitor_interface/interface_ss.cpp<gh_stars>10-100 // // interface_ss.cpp,v 1.70 2001/05/31 04:48:55 othman Exp // // ============================================================================ // // = LIBRARY // TAO IDL // // = FILENAME // interface_ss.cpp // // = DE...
grusso14/eprot
src/it/finsiel/siged/mvc/presentation/actionform/amministrazione/org/aoo/AreaOrganizzativaForm.java
<filename>src/it/finsiel/siged/mvc/presentation/actionform/amministrazione/org/aoo/AreaOrganizzativaForm.java package it.finsiel.siged.mvc.presentation.actionform.amministrazione.org.aoo; import it.finsiel.siged.model.organizzazione.AreaOrganizzativa; import it.finsiel.siged.mvc.business.LookupDelegate; import it.fins...
peroxy/starsky
src/main/java/com/starsky/backend/api/team/CreateTeamRequest.java
<gh_stars>1-10 package com.starsky.backend.api.team; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.v3.oas.annotations.media.Schema; import javax.validation.constraints.NotBlank; public class CreateTeamRequest { @NotBlank @Schema(example = "My Police Squad", title = "Team name") ...
ekanayake95/agora
src/main/java/com/example/domain/Payment.java
package com.example.domain; import io.swagger.annotations.ApiModelProperty; import java.time.LocalDate; import java.util.Date; public class Payment { private static final long serialVersionUID = 1L; @ApiModelProperty(notes = "vehicleID of the vehicle") private String id; @ApiModelProperty(notes = "...
znerd/logdoc
logdoc-core/src/main/java/org/znerd/logdoc/JulLogBridge.java
<gh_stars>1-10 // See the COPYRIGHT file for copyright and license information package org.znerd.logdoc; import java.util.logging.Level; import java.util.logging.Logger; import org.znerd.logdoc.internal.ContextIdSupport; import org.znerd.util.log.LogLevel; public class JulLogBridge extends AbstractLogBridge { p...
mambaru/wfc
wfc/statistics/api/del_json.hpp
<gh_stars>1-10 // // Author: <NAME> <<EMAIL>>, (C) 2013-2018 // // Copyright: See COPYING file that comes with this distribution // #pragma once #include <wfc/json.hpp> #include <wfc/statistics/api/del.hpp> #include "aggregated_json.hpp" namespace wfc { namespace statistics { namespace request { struct del_jso...
wsu-cb/cbwindows
GM/DlgPEditMulti.cpp
// DlgPEditMulti.cpp : implementation file // // Copyright (c) 1994-2020 By <NAME>, All Rights Reserved. // // 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 /...
neal2018/library
test/verify/yukicoder-430.test.cpp
<reponame>neal2018/library<filename>test/verify/yukicoder-430.test.cpp<gh_stars>100-1000 #define PROBLEM "https://yukicoder.me/problems/no/430" #include "../../template/template.cpp" #include "../../structure/trie/trie.cpp" #include "../../string/aho-corasick.cpp" int main() { string S; int M; cin >> S; cin...
bububa/openvision
src/face/tracker/tracker.cpp
<filename>src/face/tracker/tracker.cpp<gh_stars>1-10 #include "../tracker.h" #include <queue> IFaceTracker new_face_tracker() { return new ovface::Tracker(); } void destroy_face_tracker(IFaceTracker t) { delete static_cast<ovface::Tracker*>(t); } int track_face(IFaceTracker t, const FaceInfoVector* curr_face...
christianwgd/photos
usersettings/migrations/0012_auto_20200310_1735.py
<reponame>christianwgd/photos # Generated by Django 3.0.3 on 2020-03-10 16:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('usersettings', '0011_auto_20200303_1937'), ] operations = [ migrations.AlterField( model_name='use...
mpal9000/amaze
lib/controls/index.js
/** * Module dependencies */ 'use strict'; var _Object$assign = require('babel-runtime/core-js/object/assign')['default']; var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default']; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = Control...
ibm5155/MT2D
MT2D/_WINDOWS/IO/MT2D_Win_Keyboard.h
#include "../../MT2D_Terminal_Define.h" #if defined(WINDOWS_TARGET) && !defined(SDL_USE) bool MT2D_Win_Keyboard_touched(); int MT2D_Win_Keyboard_keytouched(); #endif
sirinath/Harmony
classlib/modules/auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/KerberosApplicationRequest.java
<filename>classlib/modules/auth/src/main/java/common/org/apache/harmony/auth/jgss/kerberos/toolbox/KerberosApplicationRequest.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 ...
cstroe/agreementmaker
AgreementMaker-OSGi/Matcher-LinkedOpenData/src/main/java/am/matcher/lod/hierarchy/package-info.java
/** * This package holds the {@link am.app.mappingEngine.hierarchy.HierarchyMatcher} * and all its variations. The HierarchyMatcher is used for matching LOD schemas. */ package am.matcher.lod.hierarchy;
M9k/Progetto-P2
GUI/header/view_file_multimedia.h
<gh_stars>1-10 #ifndef VIEW_FILE_MULTIMEDIA_H #define VIEW_FILE_MULTIMEDIA_H #include "view_file_base.h" #include "../../MODEL/header/file_multimedia.h" #include <QDoubleSpinBox> #include <QLineEdit> class view_file_multimedia : public view_file_base { public: view_file_multimedia(file_base* file, QW...
chriskim06/go-sdk
cmd/semver/main.go
<gh_stars>100-1000 /* Copyright (c) 2021 - Present. Blend Labs, Inc. All rights reserved Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ package main import ( "fmt" "io/ioutil" "os" "strings" "github.com/blend/go-sdk/semver" ) func usage() { fmt.Fprint(os.Stdou...
ivarsrb/landscape-sim
include/lsim/vulkan/object/semaphore.h
// // Created by <NAME> in 2021 // // Abstraction of a Vulkan semaphore object. // Semaphores are used to synchronize operations within or across command // queues. #ifndef LSIM_VULKAN_OBJECT_SEMAPHORE_H_ #define LSIM_VULKAN_OBJECT_SEMAPHORE_H_ #include <vulkan/vulkan.h> namespace lsim::vulkan::object { class Semaphor...
vsosrc/jruby
src/org/jruby/ast/java_signature/ReferenceTypeNode.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.jruby.ast.java_signature; /** * * @author enebo */ public class ReferenceTypeNode extends TypeNode { private String genericString = ""; public ReferenceTypeNode(String name) { super(name...
clejacquet/LOD
QueryLauncher/src/main/java/jp/kde/lod/jacquet/querylauncher/model/QueryStorage.java
package jp.kde.lod.jacquet.querylauncher.model; import com.hp.hpl.jena.query.Query; import java.util.HashMap; import java.util.Map; import java.util.Observable; /** * Created by Clement on 16/04/2015. * Storage class which simply contains some queries */ public class QueryStorage extends Observable { /** ...
dhis2/maps-app
src/actions/dataElements.js
<gh_stars>10-100 import * as types from '../constants/actionTypes'; // Load all data element groups export const loadDataElementGroups = () => ({ type: types.DATA_ELEMENT_GROUPS_LOAD, }); // Set all data element groups export const setDataElementGroups = data => ({ type: types.DATA_ELEMENT_GROUPS_SET, pay...
olgam4/design3
rpiRobot/src/vision/domain/iCameraCalibrationFactory.py
from abc import ABC, abstractmethod from os import path from vision.domain.iCameraCalibration import ICameraCalibration class ICameraCalibrationFactory(ABC): @abstractmethod def load_calibration_from_file(self, calibration_file_path: path, image_width: int, image_height: in...
X018/CCTOOL
Android/NDK/android-ndk-r16b-mac/toolchains/llvm/prebuilt/darwin-x86_64/prebuilt_include/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
<reponame>X018/CCTOOL //===- llvm/Analysis/ScalarEvolutionExpressions.h - SCEV Exprs --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------...
yxyuhz/dev
basic/java-example/src/test/java/com/sciatta/java/example/object/method/MethodTests.java
<reponame>yxyuhz/dev<filename>basic/java-example/src/test/java/com/sciatta/java/example/object/method/MethodTests.java package com.sciatta.java.example.object.method; import com.sciatta.java.example.object.method.cls.Animal; import com.sciatta.java.example.object.method.cls.Cat; import com.sciatta.java.example.object....
jia57196/code41
project/c++/mri/src/dataservice/include/xtreme/dataservice/test_misch.h
/**************************************************************** * test_misch.h * * Created on: June 25, 2013 * * Author: lim55392 * * Copyright (2013) JDS Uniphase. All rights reserved ...
emersion/chromiumos-platform2
shill/mock_dbus_properties_proxy.h
<reponame>emersion/chromiumos-platform2 // 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 SHILL_MOCK_DBUS_PROPERTIES_PROXY_H_ #define SHILL_MOCK_DBUS_PROPERTIES_PROXY_H_ #include <string> #in...
Oyiersan/p3c
p3c-pmd/src/main/java/com/xenoamess/p3c/pmd/lang/java/util/PojoUtils.java
/* * Copyright 1999-2017 Alibaba Group. * * 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...
alcyada/mintscan-binance-dex-frontend
src/containers/Asset/index.js
export {default} from "./Asset";
yohcop/google-depan
DepanViewDoc/prod/src/com/google/devtools/depan/eclipse/cm/ColorMapDefGistNcar.java
<reponame>yohcop/google-depan // This file is automatically generated by a script (generateColorMaps.py). // Do not modify it, or changes will be lost when the script is run again. /* * This file was generated using data provided by the python library matplotlib * which is Copyright (c) 2002-2004 <NAME>; All Rights R...
j-dags/Algos
AlgoExpert/Medium/reconstructBST.js
<filename>AlgoExpert/Medium/reconstructBST.js // This is an input class. Do not edit. class BST { constructor(value, left = null, right = null) { this.value = value this.left = left this.right = right } } function reconstructBst(values) { if (values.length < 1) return null // Split up node values array into...
sitien173/cnpm-SpringMVC-SpringSecurity
src/main/java/com/vegetarian/api/admin/AdminProductManager.java
<filename>src/main/java/com/vegetarian/api/admin/AdminProductManager.java package com.vegetarian.api.admin; import com.google.gson.Gson; import com.vegetarian.service.ProductService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframewor...
FinnStutzenstein/openslides-backend
tests/system/action/motion_block/test_delete.py
<reponame>FinnStutzenstein/openslides-backend<filename>tests/system/action/motion_block/test_delete.py from openslides_backend.permissions.permissions import Permissions from tests.system.action.base import BaseActionTestCase class MotionBlockActionTest(BaseActionTestCase): def test_delete_correct(self) -> None: ...
ScalablyTyped/SlinkyTyped
a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/route53Mod/GetHealthCheckRequest.scala
<filename>a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/route53Mod/GetHealthCheckRequest.scala package typingsSlinky.awsSdk.route53Mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAc...
hunshikan/universe_push
demo/AndroidPushDemo/PushdemoInternal/src/main/java/com/comsince/github/utils/PreferenceUtil.java
package com.comsince.github.utils; import android.content.Context; import android.content.SharedPreferences; public class PreferenceUtil { private static SharedPreferences getSharePerferenceByName(Context context, String name){ //http://zmywly8866.github.io/2015/09/09/sharedpreferences-in-multiprocess.ht...
cossbow/jackal
event/roster.go
<gh_stars>0 // Copyright 2020 The jackal 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 l...
skullbaselab/aa-afterdark
TrelloClone-master/skeleton/app/models/item.rb
# == Schema Information # # Table name: items # # id :integer not null, primary key # title :string(255) not null # card_id :integer not null # done :boolean default(FALSE) # created_at :datetime # updated_at :datetime # class Item < ActiveRecord::Base vali...
bitmovin/bitmovin-api-sdk-go
model/filter.go
package model import ( "bytes" "encoding/json" "github.com/bitmovin/bitmovin-api-sdk-go/bitutils" "io" "io/ioutil" ) // Filter model type Filter interface { // FilterType returns the discriminator type of the polymorphic model FilterType() FilterType } // BaseFilter is the fallback type for the polymorphic mo...
pedropbazzo/bootcamp
gonative/modulo1/src/config/ReactotronConfig.js
<reponame>pedropbazzo/bootcamp<filename>gonative/modulo1/src/config/ReactotronConfig.js import Reactotron from 'reactotron-react-native'; // Reactotron.configure({ host: '192.168.1.14'}) quando estiver debbungando pelo dispositivo fisico if (__DEV__) { const tron = Reactotron.configure() // controls connection & co...
willfrey/ray
python/ray/tests/kuberay/utils.py
"""Utilities for e2e tests of KubeRay/Ray integration. For consistency, all K8s interactions use kubectl through subprocess calls. """ import atexit import contextlib import logging import pathlib import subprocess import tempfile import time from typing import Any, Dict, Generator, List, Optional import yaml import r...
hjarvard/DragonFlyBSD
sys/vfs/hammer2/hammer2_vfsops.c
<reponame>hjarvard/DragonFlyBSD /* * Copyright (c) 2011-2018 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * by <NAME> (GSOC 2013 - mentored by <NAME>, compression) * * Redistribution and use in source and binary for...
allogic/Redshift
Redshift/Include/Delegates.h
#pragma once #include <Core.h> #include <Types.h> class Actor; class Delegates { public: //////////////////////////////////////////////////////// // Primitives //////////////////////////////////////////////////////// using AxisDelegate = void (Actor::*)(float); using ActionDelegate = void (Actor::*)(); ...
yaohb/J2ObjCAuto
2.4/include/javax/crypto/spec/DHPublicKeySpec.h
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/platform/libcore/ojluni/src/main/java/javax/crypto/spec/DHPublicKeySpec.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_JavaxCryptoSpecDHPublicKeySpec") #ifdef RESTRICT_JavaxCryptoSpecDHPublicKeySpec #define INCLUDE_ALL_Ja...
monu9401/Data-Structures-and-Algorithms
sqrtx/sqrtx.java
<filename>sqrtx/sqrtx.java class Solution { public int mySqrt(int x) { long low = 0,high = x; while(low<=high) { long mid = (low+high)/2; if(mid*mid<x) { low=mid+1; } else if(mid*mid>x) { ...
mgpavlov/SoftUni
Java/Java Web/02.Java MVC Frameworks - Spring - February 2019/Individual Project/onlinegrocery/src/main/java/org/softuni/onlinegrocery/service/ReceiptServiceImpl.java
<filename>Java/Java Web/02.Java MVC Frameworks - Spring - February 2019/Individual Project/onlinegrocery/src/main/java/org/softuni/onlinegrocery/service/ReceiptServiceImpl.java<gh_stars>1-10 package org.softuni.onlinegrocery.service; import org.modelmapper.ModelMapper; import org.softuni.onlinegrocery.domain.entities....
Imfdj/egg-beehive
app/controller/v1/configurations.js
'use strict'; const Controller = require('egg').Controller; const NodeRSA = require('node-rsa'); /** * @controller 配置 configuration */ class RoleController extends Controller { /** * @apikey * @summary 获取公钥 配置 * @description 获取公钥 配置 * @router get /api/v1/configurations/public_key */ async findRs...
xinwuyun/cattery
node_modules/mathjax/unpacked/localization/zh-hans/FontWarnings.js
<reponame>xinwuyun/cattery /************************************************************* * * MathJax/localization/zh-hans/FontWarnings.js * * Copyright (c) 2009-2019 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance wi...
youngmonkeys/ezyfox
ezyfox-bean/src/test/java/com/tvd12/ezyfox/bean/testing/combine3/pack1/C.java
package com.tvd12.ezyfox.bean.testing.combine3.pack1; public interface C { }
3c1u/krkrz
sound/android/OpenSLESAudioDevice.cpp
#ifdef ANDROID #include "tjsCommHead.h" #include <assert.h> #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> #include <algorithm> #include "AudioDevice.h" #include "MsgIntf.h" #include "DebugIntf.h" #include "QueueSoundBufferImpl.h" // サウンドHW/ドライバが最終出力するサンプリングレートとバッファサイズ // この値に基づき最適なパラメータを設定する static ...
jarocho105/pre2
erp_desktop_all/src_cartera/com/bydan/erp/cartera/presentation/swing/jinternalframes/SubPreguntaEvaluacionBeanSwingJInternalFrame.java
<gh_stars>1-10 /* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que corre...
bhoopal10/opengse
engines/minigse/java/com/google/opengse/io/FileCollection.java
// Copyright 2007 Google 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.org/licenses/LICENSE-2.0 // // Unless required by applicable...
Plan9-Archive/plan9-2e
sys/src/9/pc/ether8003.c
<reponame>Plan9-Archive/plan9-2e #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" #include "io.h" #include "devtab.h" #include "ether.h" /* * Western Digital/Standard Microsystems Corporation cards (WD80[01]3). * Configuration code based on that p...
philipjameson/buckit
infra_macros/fbcode_macros/build_defs/lib/thrift/python.bzl
<gh_stars>0 """ """ load("@bazel_skylib//lib:collections.bzl", "collections") load("@bazel_skylib//lib:paths.bzl", "paths") load("@fbcode_macros//build_defs/lib/thrift:thrift_interface.bzl", "thrift_interface") load( "@fbcode_macros//build_defs/lib:python_typing.bzl", "gen_typing_config", "get_typing_confi...
leops/rasen-editor
app/components/Node.js
<filename>app/components/Node.js<gh_stars>1-10 // @flow import React from 'react'; // eslint-disable-next-line no-duplicate-imports import type { Element } from 'react'; import type { List } from 'immutable'; import type { Node as NodeData } from 'react-graph-editor'; import styles from './Node.css'; typ...
ilastik/hytra
scripts/compare_tracking.py
# pythonpath modification to make hytra available # for import without requiring it to be installed import os import sys sys.path.insert(0, os.path.abspath('..')) # standard imports import numpy as np import cPickle import collections import multiprocessing import os import os.path as path import optparse import sys f...
MuhammadIsmailShahzad/ckan-cloud-operator
ckan_cloud_operator/config/manager.py
<gh_stars>10-100 import base64 import os import yaml from sys import stdout from ckan_cloud_operator import kubectl from ckan_cloud_operator import logs from ckan_cloud_operator.providers.cluster import manager as cluster_manager from ckan_cloud_operator.labels import manager as labels_manager __CACHED_VALUES = {} ...
acidicMercury8/xray-1.6
src/xrGame/xrServer_svclient_validation.cpp
#include "stdafx.h" #include "xrServer_svclient_validation.h" #include "GameObject.h" #include "Level.h" bool is_object_valid_on_svclient(u16 id_entity) { CObject* tmp_obj = Level().Objects.net_Find(id_entity); if (!tmp_obj) return false; CGameObject* tmp_gobj = smart_cast<CGameObject*>(tmp_obj); ...
badu/http
tests/testenv_cgo.go
// +build cgo package tests /* * Copyright (c) 2018 The Go Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ func init() { haveCGO = true }
sourcepit/common-manifest
src/gen/emf/org/sourcepit/common/manifest/util/ManifestAdapterFactory.java
/* * Copyright 2014 <NAME> and others. * * 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 agre...
zhaohui90-lee/springMVCdemo
src/test/java/myscope/ThreadScopeTest.java
package myscope; import com.melody.pojo.myscope.ThreadScope; import org.junit.Test; import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.beans.factory.config.Scope; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import static org.junit.Asser...