repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
TheInterventionCentre/NorMIT-Plan-App
Libs/MRML/Core/vtkMRMLDiffusionImageVolumeNode.h
<reponame>TheInterventionCentre/NorMIT-Plan-App /*=auto========================================================================= Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Program: 3D Sl...
mtauer/rl-deep-learning
pandemic-web/src/index.js
<filename>pandemic-web/src/index.js /* eslint-disable import/first */ /* eslint-disable import/newline-after-import */ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider'; import { createMuiTheme } ...
tangr1/operator
client/misc/put_notifications_markasread_responses.go
package misc // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "github.com/go-swagger/go-swagger/client" "github.com/go-swagger/go-swagger/httpkit" "github.com/go-swagger/go-swagger/strfmt" ) type PutNotificationsM...
ulilicht/picture-importer
src/components/Error/Error.js
<filename>src/components/Error/Error.js import React, {PropTypes} from 'react'; import classes from './Error.scss'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; class Error extends React.Component { constructor(props) { super(props); this.state = { shouldS...
rxheem/tab-tracker
server/node_modules/joii/test/IssueReports/IssueReport21.js
/* Javascript Object Inheritance Implementation ______ ________ * (c) 2016 <<EMAIL>> __ / / __ \/ _/ _/ * Licensed under MIT. / // / /_/ // /_/ / * ------------------------------------------------------ \___/\____/___/__*/ var JOII = re...
ignaciocases/hermeneumatics
node_modules/scala-node/main/target/streams/compile/externalDependencyClasspath/$global/package-js/extracted-jars/scalajs-library_2.10-0.4.0.jar--29fb2f8b/scala/collection/mutable/IndexedSeqView$$anon$2.js
/** @constructor */ ScalaJS.c.scala_collection_mutable_IndexedSeqView$$anon$2 = (function() { ScalaJS.c.scala_collection_mutable_IndexedSeqView$AbstractTransformed.call(this); this.endpoints$3 = null; this.$$outer$3 = null }); ScalaJS.c.scala_collection_mutable_IndexedSeqView$$anon$2.prototype = new ScalaJS.inher...
LimeChain/hashport-validator
bootstrap/watchers.go
/* * Copyright 2022 LimeChain Ltd. * * 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 ...
TheSledgeHammer/2.11BSD
contrib/ingres/source/pipes.h
# /* ** pipes.h ** ** Interprocess pipe format and associated manifest constants */ # define PBUFSIZ 120 /* length of pipe buffer */ # define HDRSIZ 8 /* length of pipe header */ /* -- PIPE PARAMETERS -- */ # define NORM_STAT 0 /* HDRSTAT: data block */ # define LAST_STAT 1 /* HDRSTAT: last block of cmnd */ # defi...
rudylee/expo
packages/unimodules-permissions-interface/build/PermissionsInterface.js
export var PermissionStatus; (function (PermissionStatus) { PermissionStatus["GRANTED"] = "granted"; PermissionStatus["UNDETERMINED"] = "undetermined"; PermissionStatus["DENIED"] = "denied"; })(PermissionStatus || (PermissionStatus = {})); //# sourceMappingURL=PermissionsInterface.js.map
htfy96/leetcode-solutions
code/Group Anagrams.cpp
<filename>code/Group Anagrams.cpp class Solution { using CntT = array<int, 26>; static size_t h(const CntT& v) { size_t ans = 0; for (auto&& w: v) { ans = ans * 131 + w; } return ans; } public: vector<vector<string>> groupAnagrams(vector<string>& strs) { unordered_map<Cnt...
allanfra/k-9
mail/protocols/imap/src/main/java/com/fsck/k9/mail/store/imap/FetchPartCallback.java
<gh_stars>1000+ package com.fsck.k9.mail.store.imap; import java.io.IOException; import com.fsck.k9.mail.BodyFactory; import com.fsck.k9.mail.Part; import com.fsck.k9.mail.filter.FixedLengthInputStream; import com.fsck.k9.mail.internet.MimeHeader; class FetchPartCallback implements ImapResponseCallback { priva...
xiangcman/YCAudioPlayer
app/src/main/java/cn/ycbjie/ycaudioplayer/ui/advert/model/api/AdvertApi.java
<filename>app/src/main/java/cn/ycbjie/ycaudioplayer/ui/advert/model/api/AdvertApi.java<gh_stars>1-10 package cn.ycbjie.ycaudioplayer.ui.advert.model.api; import cn.ycbjie.ycaudioplayer.model.bean.MusicLrc; import cn.ycbjie.ycaudioplayer.model.bean.SearchMusic; import cn.ycbjie.ycaudioplayer.ui.advert.model.bean.Advert...
Arkania/ArkCORE
src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/trial_of_the_crusader.cpp
/* * Copyright (C) 2008 - 2013 ArkCORE <http://www.arkania.net/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Founda...
shuangwei-Ye/WeChat_tweak
Resources/WC_7_0_5_Headers/NewChatRoomMemberItemView.h
<filename>Resources/WC_7_0_5_Headers/NewChatRoomMemberItemView.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MMUIView.h" @class CContact, MMCPLabel, MMMaskHeadImageView, NSString, UIButton, UIColor, UIImageView; @interfa...
SystemNinja/MyPythonPrograms
DateTime.py
<filename>DateTime.py<gh_stars>0 r""" Lesson 7 Lecture 71 This program demonstrates usage of date and time functions as well as how to work with them. http://strftime.org/ On this page you can look info about formating strftime() function. """ import datetime import time #Create a file which is named after...
henh-algosipda/algo-manage-sys
backend/src/main/java/com/henh/testman/common/errors/InvalidMapperException.java
package com.henh.testman.common.errors; public class InvalidMapperException extends RuntimeException { public InvalidMapperException(String message) { super(message); } public InvalidMapperException(String message, Throwable cause) { super(message, cause); } }
sorah/aws-sdk-ruby
lib/aws/glacier/vault_collection.rb
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
stahnma/puppet
lib/puppet/util/rails/reference_serializer.rb
<gh_stars>1-10 module Puppet::Util::ReferenceSerializer def unserialize_value(val) case val when /^--- / YAML.load(val) when "true" true when "false" false else val end end def serialize_value(val) case val when Puppet::Resource YAML.dump(val) wh...
zeknox/gofalcon
falcon/models/patterndisposition_pattern_disposition.go
<filename>falcon/models/patterndisposition_pattern_disposition.go // Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "github.com/go-openapi/errors" "gi...
andrejadd/HBR-net-inf
GCGP/GPstuff-4.4/SuiteSparse/CHOLMOD/Include/cholmod_modify.h
/* ========================================================================== */ /* === Include/cholmod_modify.h ============================================= */ /* ========================================================================== */ /* -------------------------------------------------------------------------...
VD-15/ValkyrieEngineCommon
docs/html/search/all_b.js
var searchData= [ ['quaternion_60',['Quaternion',['../classvlk_1_1Quaternion.html',1,'vlk']]], ['quaternion_2ehpp_61',['Quaternion.hpp',['../Quaternion_8hpp.html',1,'']]] ];
jrbeverly/JCompiler
src/test/resources/assignment_testcases/a1/J1_1_Cast_MultipleReferenceArray.java
//PARSER_WEEDER public class J1_1_Cast_MultipleReferenceArray { public J1_1_Cast_MultipleReferenceArray() {} public static int test() { Object a = null; a = (Object)(int[])(Object)(Integer[])a; return 123; } }
lanshunfang/alg-hw
src/org/neu/alg/hw/hw6/Cstring.java
package org.neu.alg.hw.hw6; import org.neu.alg.hw.*; /** * File Name: Cstring.java * Implements C String * * @author <NAME> * @year 2019 */ /* * To compile you require: CharArray.java Cstring */ class Cstring { private CharArray d; //Infinite array of char public int charArrLen = 0; static IntUtil u = ...
albertz/music-player
mac/pyobjc-framework-Quartz/PyObjCTest/test_IKFilterBrowserPanel.py
from PyObjCTools.TestSupport import * from Quartz import * try: unicode except NameError: unicode = str class TestIKFilterBrowserPanel (TestCase): @min_os_level('10.5') def testMethods(self): self.assertArgIsSEL(IKFilterBrowserPanel.beginWithOptions_modelessDelegate_didEndSelector_contextInfo...
devcreation1222/im5
modules/rrhhs/tests/client/rrhhs.client.controller.tests.js
'use strict'; (function() { // Rrhhs Controller Spec describe('Rrhhs Controller Tests', function() { // Initialize global variables var RrhhsController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deleting the resour...
houlz0507/XRT-1
tests/xrt/03_loopback/main.cpp
/** * Copyright (C) 2016-2017 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
kubeform/provider-aws-api
vendor/kubeform.dev/apimachinery/api/v1alpha1/termination_policy.go
/* Copyright AppsCode Inc. and Contributors 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 writing...
k-kamalyesh/js-basex
module/operations/operationsOnArray/maximum.js
<gh_stars>0 const number = require('../../type/'); const { eBase } = require('../../type/base'); const ops = require('../../operations'); module.exports = { unsignedMaximum: (numbers) => { // returns maximum number's index from the array // does not considers sign of numbers let maxIndex = ...
f0xd3v/serposcope
scraper/src/test/java/com/serphacker/serposcope/scraper/captcha/solver/DecaptcherSolverIT.java
<gh_stars>100-1000 /* * Serposcope - SEO rank checker https://serposcope.serphacker.com/ * * Copyright (c) 2016 SERP Hacker * @author <NAME> <<EMAIL>> * @license https://opensource.org/licenses/MIT MIT License */ package com.serphacker.serposcope.scraper.captcha.solver; import org.junit.Before; import static o...
sungmen/Acmicpc_Solve
Acmicpc/C++/BOJ4358.cpp
<filename>Acmicpc/C++/BOJ4358.cpp<gh_stars>1-10 #include <bits/stdc++.h> using namespace std; int main() { // freopen("input.txt", "r", stdin); ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); string str; int cnt = 0; map <string, double> m; while(getline(cin, str)) { ...
cantbesure/hadoop-20
src/hdfs/org/apache/hadoop/hdfs/tools/offlineEditsViewer/BinaryEditsVisitor.java
<reponame>cantbesure/hadoop-20<gh_stars>100-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 Ap...
JhonatanSK/pretty-style
src/br/com/sprintters/prettystyle/model/ProductCategory.java
<filename>src/br/com/sprintters/prettystyle/model/ProductCategory.java package br.com.sprintters.prettystyle.model; import java.sql.Timestamp; public class ProductCategory { private int idProduct; private Product product; private int idCategory; private Category category; private Timestamp createdAt; publ...
TopRoupi/fec
app/channels/application_channel.rb
<gh_stars>0 # frozen_string_literal: true class ApplicationChannel < ApplicationCable::Channel def subscribed stream_from "application-stream" end end
mohdab98/cmps252_hw4.2
src/cmps252/HW4_2/UnitTesting/record_2677.java
<reponame>mohdab98/cmps252_hw4.2<filename>src/cmps252/HW4_2/UnitTesting/record_2677.java<gh_stars>1-10 package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.T...
apr-suite/APR
docs/static/non-versioned/js/jsdoc.js
<gh_stars>0 (function () { 'use strict'; var el = function (selector, container) { return (container || document).querySelectorAll(selector); }; /** * Versions below 1.1.0 generated documentation * in /{browser,server}/index.html. * * Starting from version 1.1.0, documentation is gener...
ldr7/schema-registry-1
contract/src/main/java/io/pravega/schemaregistry/contract/generated/rest/model/ListGroupsResponse.java
<filename>contract/src/main/java/io/pravega/schemaregistry/contract/generated/rest/model/ListGroupsResponse.java /* * Pravega Schema Registry APIs * REST APIs for Pravega Schema Registry. * * OpenAPI spec version: 0.0.1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://g...
codebycase/algorithms
src/main/java/a04_stacks_queues/RemoveDuplicates.java
package a04_stacks_queues; import java.util.Stack; /** * You are given a string s and an integer k, a k duplicate removal consists of choosing k adjacent * and equal letters from s and removing them, causing the left and the right side of the deleted * substring to concatenate together. * * We repeatedly make k...
dq922/PerfKitExplorer
client/components/widget/data_viz/gviz/chart-wrapper-service.js
<gh_stars>0 /** * @copyright Copyright 2014 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 * * Un...
inordeng/TASO
src/dnnl/ops_mkl.cc
/* Copyright 2020 Stanford, Tsinghua * * 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...
project-sunbird/groups
service/app/utils/ApplicationStart.java
package utils; import java.util.concurrent.CompletableFuture; import javax.inject.Inject; import javax.inject.Singleton; import org.sunbird.Application; import org.sunbird.auth.verifier.KeyManager; import org.sunbird.common.exception.BaseException; import org.sunbird.util.*; import play.api.Environment; import play.ap...
blackducksoftware/cerebros
go/pkg/polaris/api/metrics.go
<gh_stars>0 /* Copyright (C) 2020 Synopsys, Inc. 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, Versio...
rcogal/coinapi-exchange
client/src/app/exchange-data-table/duck/actions.js
import types from './types.js'; const fetchCurrentOrderbook = (orderbooks) => { return { type: types.GET_CURRENT_ORDERBOOK, payload: orderbooks }; }; export default { fetchCurrentOrderbook };
petr-muller/abductor
cil/test/small1/init16.c
//The Gnome calendar application uses initializers with arithmetic expressions: #include "testharness.h" int x = ! (3 && ! 3); int array[(3 && !3) ? 6 : 8]; int main() { return x - 1; }
HeRaNO/ChickenRibs
UESTC-Programming-Course/Grade 1/Chapter 4/Homework/F.c
#include <stdio.h> char a[15]; int main() { printf("Enter the first 12 digits of an EAN:\n\n"); scanf("%s",a); int x=a[1]+a[3]+a[5]+a[7]+a[9]+a[11]-288; int y=a[0]+a[2]+a[4]+a[6]+a[8]+a[10]-288; x*=3;x+=y;x=(x-1)%10;x=9-x; printf("Check digit: %d \n",x); return 0; }
smalljvm/SmallJ
VM/src/smallj/core/SmallByteArray.java
class SmallByteArray extends SmallObject { public byte[] values; public SmallByteArray( SmallObject aClass, int size ) { super( aClass, 0 ); values = new byte[ size ]; } public SmallByteArray( SmallObject aClass, String text ) { super( aClass, 0 ); int size = te...
nms-htc/eip-vnm
src/main/java/com/nms/vnm/eip/web/controller/admin/VideoBean.java
/** * Copyright (C) 2014 Next Generation Mobile Service JSC., (NMS). All rights * reserved. */ package com.nms.vnm.eip.web.controller.admin; import com.nms.vnm.eip.entity.Video; import com.nms.vnm.eip.service.entity.BaseService; import com.nms.vnm.eip.service.entity.VideoService; import javax.ejb.EJB; imp...
viktornikolov038/Javascript-Essentials-May-2019
Objects and DOM/Exercise/03. Number-Convertor/solution.js
<reponame>viktornikolov038/Javascript-Essentials-May-2019<gh_stars>0 function solve() { let selectToMenu = document.getElementById("selectMenuTo"); let selectMenuToBinaryOption = selectToMenu.children[0]; selectMenuToBinaryOption.value = "binary"; selectMenuToBinaryOption.textContent = "Binary";...
fapbatista/mindinsight
tests/ut/datavisual/data_transform/test_events_data.py
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
trkin/premesti.se
app/helpers/translate_helper.rb
module TranslateHelper # there are two ways of calling this helper: # t_crud 'are_you_sure_to_remove_item', item: @move # t_crud 'edit', User def t_crud(action, model_class) if model_class.class == Hash t(action, item: t("neo4j.models.#{model_class[:item].name.downcase}.accusative")) else "#...
slok/ragnarok
master/web/handler/api/v1/api.go
package v1 import ( "encoding/json" "fmt" "io/ioutil" "net/http" chaosv1 "github.com/slok/ragnarok/api/chaos/v1" "github.com/slok/ragnarok/apimachinery/serializer" clichaosv1 "github.com/slok/ragnarok/client/api/chaos/v1" "github.com/slok/ragnarok/log" ) // Handler is the handler that has all the required ha...
lolwhitaker/sbt-jupiter-interface
src/plugin/src/sbt-test/basic/tags/src/test/java/jupiter/TestTwo.java
package jupiter; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; @Tag("fast") public class TestTwo { @Test public void a() { Reporter.report("two-a"); } @Test public void b() { Reporter.report("two-b"); } }
renmeng8875/springboot
ch9_2/src/main/java/com/wisely/ch9_2/batch/CsvBeanValidator.java
package com.wisely.ch9_2.batch; import java.util.Set; import javax.validation.ConstraintViolation; import javax.validation.Validation; import javax.validation.ValidatorFactory; import org.springframework.batch.item.validator.ValidationException; import org.springframework.batch.item.validator.Validator; import org.s...
raulval/PetGree
src/main/java/br/edu/utfpr/carloseduardofreitas/petgree/model/Agendamento.java
<filename>src/main/java/br/edu/utfpr/carloseduardofreitas/petgree/model/Agendamento.java package br.edu.utfpr.carloseduardofreitas.petgree.model; import javax.persistence.*; import java.io.Serializable; import java.time.LocalDate; import java.time.LocalTime; @Entity @Table(name = "Agendamento") public class Agendamen...
matrixknight/KendoUI-Admin-Site
admin/views/dashboard/forms/form_elements.js
$(function () { // 月份 $('#monthNormal, #monthReadonly, #monthDisabled').kendoDatePicker({ start: 'year', depth: 'year', format: 'yyyy/MM' }); // 星期 $('#weekNormal, #weekReadonly, #weekDisabled').kendoDatePicker({ weekNumber: true }); // 日期 $('#dateNormal, ...
srafehi/riberry
riberry/app/backends/impl/pool/tasks/background.py
import logging import riberry from ..task_queue import TaskQueue log = logging.getLogger(__name__) def background(queue: TaskQueue): riberry.app.tasks.echo() with queue.lock: if not queue.limit_reached(): riberry.app.tasks.poll(track_executions=True, filter_func=lambda _: not queue.limit...
Haakenlid/tassen
django/apps/frontpage/__init__.py
<reponame>Haakenlid/tassen default_app_config = 'apps.frontpage.appconf.FrontpageAppConfig'
antonmedv/year
packages/1976/12/25/index.js
<reponame>antonmedv/year module.exports = new Date(1976, 11, 25)
GuillaumeCisco/react-json-prettify
src/themes/grayscale.js
export default { background: 'rgb(255, 255, 255)', brace: 'rgb(51, 51, 51)', keyQuotes: 'rgb(51, 51, 51)', valueQuotes: 'rgb(51, 51, 51)', colon: 'rgb(51, 51, 51)', comma: 'rgb(51, 51, 51)', key: 'rgb(51, 51, 51)', value: { string: 'rgb(51, 51, 51)', null: 'rgb(119, 119, ...
DhairyaDoc/TelegramApi
src/main/java/org/telegram/api/functions/messages/TLRequestMessagesGetPinnedDialogs.java
package org.telegram.api.functions.messages; import org.telegram.api.messages.TLMessagesPeerDialogs; import org.telegram.tl.StreamingUtils; import org.telegram.tl.TLContext; import org.telegram.tl.TLMethod; import org.telegram.tl.TLObject; import java.io.IOException; import java.io.InputStream; public class TLReques...
xavier-shui/hrm-parent
hrm-course-parent/hrm-course-common/src/main/java/cn/xavier/hrm/constant/CourseConstant.java
<filename>hrm-course-parent/hrm-course-common/src/main/java/cn/xavier/hrm/constant/CourseConstant.java package cn.xavier.hrm.constant; /** * @author <NAME> * @date 12/20/2021 */ public interface CourseConstant { String COURSE_TYPE = "course_type"; Integer OFFLINE = 0; Integer ONLINE = 1; }
alexpenev-s/service-manager
storage/postgres/service_offering.go
<reponame>alexpenev-s/service-manager /* * Copyright 2018 The Service Manager 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/licen...
goszjacek/scex
scex-core/src/main/scala/com/avsystem/scex/symboldsl/TypeInfo.scala
package com.avsystem.scex package symboldsl import scala.reflect.api.{TypeCreator, Universe} class TypeInfo(typeCreator: TypeCreator, val clazz: Option[Class[_]], val isJava: Boolean, typeRepr: String) { def typeIn(u: Universe): u.Type = u.TypeTag[Any](u.rootMirror, typeCreator).tpe override def toString = ...
lixiaobin-bjhl/vue-component
function/getDayOption.js
<reponame>lixiaobin-bjhl/vue-component<filename>function/getDayOption.js /** * @file 日期选择 * @author <NAME>(<EMAIL>) */ 'use strict' export default function getDayOption () { var length = 32 var result = [] while (length--) { if (length) { result.unshift(length) } } return result }
operativeF/Kvasir
Lib/Chip/ATSAM3U4C.hpp
<gh_stars>0 #pragma once #include <cstdint> #include <Chip/CM3/Atmel/ATSAM3U4C/HSMCI.hpp> #include <Chip/CM3/Atmel/ATSAM3U4C/SSC.hpp> #include <Chip/CM3/Atmel/ATSAM3U4C/SPI.hpp> #include <Chip/CM3/Atmel/ATSAM3U4C/TC0.hpp> #include <Chip/CM3/Atmel/ATSAM3U4C/TWI0.hpp> #include <Chip/CM3/Atmel/ATSAM3U4C/TWI1.hpp> #includ...
HoangNhat629/Android
btap1/app2/app/src/main/java/com/example/app2/ContactAdapter.java
<gh_stars>1-10 package com.example.app2; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx...
bioko/system
src/main/java/org/biokoframework/system/repository/sql/SqlRepository.java
<filename>src/main/java/org/biokoframework/system/repository/sql/SqlRepository.java<gh_stars>0 /* * Copyright (c) 2014 * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated...
zjyau/nutui
src/packages/grid/index.js
import Row from '../gridrow/gridrow.vue'; import Col from '../gridcol/gridcol.vue'; import './grid.scss'; Row.install = function(Vue) { Vue.component(Row.name, Row); }; Col.install = function(Vue) { Vue.component(Col.name, Col); }; export { Row, Col };
wangwenwang/CM_Driver
CMDriver/Supply/MySupplyListViewController.h
<gh_stars>0 // // MySupplyListViewController.h // CMDriver // // Created by 凯东源 on 17/6/21. // Copyright © 2017年 城马联盟. All rights reserved. // #import <UIKit/UIKit.h> @interface MySupplyListViewController : UIViewController @end
nonggia/mrshell
src/main/java/com/ss/dw/mrshell/log/MRIndexLog.java
package com.ss.dw.mrshell.log; import java.util.List; import com.ss.dw.mrshell.util.ReflectionUtil; public class MRIndexLog extends MRLog { private List<String> values; public MRIndexLog() { } public boolean load(List<String> values) { this.values = values; return true; } public...
cliveyao/waltz
waltz-ng/client/org-units/pages/list-view/list-view.js
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
Boom618/DigitalFarms
app/src/main/java/com/ty/digitalfarms/net/ProgressCancelListener.java
package com.ty.digitalfarms.net; /** * description:取消Progress提示框时取消Http请求 * author: XingZheng * date: 2016/11/22. */ public interface ProgressCancelListener { /** * 取消Progress提示框 */ void onCancelProgress(); }
JohnBearon/wecodekc-group-project
src/components/AdminComponents/AdminSubComponents/EventControl.js
<filename>src/components/AdminComponents/AdminSubComponents/EventControl.js import React, { Component } from 'react'; import { connect } from 'react-redux'; import Calendar from '../../../components/AdminComponents/Calendar/Calendar'; import mapStoreToProps from '../../../redux/mapStoreToProps'; //Material-UI imports ...
chanRoot/ruoyi-vue-pro
yudao-module-pay/yudao-module-pay-impl/src/main/java/cn/iocoder/yudao/module/pay/controller/admin/refund/PayRefundController.java
<gh_stars>1-10 package cn.iocoder.yudao.module.pay.controller.admin.refund; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.iocoder.yudao.module.pay.controller.admin.refund.vo.*; import cn.iocoder.yudao.module.pay.convert.refund.PayRefundConvert; import cn.iocoder.yuda...
legendmohe/LEHomeMobile_android
app/src/main/java/my/home/lehome/helper/NetworkHelper.java
<gh_stars>10-100 /* * 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 writin...
sboldur/harvest-client
src/test/java/ch/aaap/harvestclient/impl/estimateMessage/EstimateMessagesApiCreateTest.java
package ch.aaap.harvestclient.impl.estimateMessage; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.EnumSource; import static org.assertj.core.api.Assertions....
elukey/ores
ores/about.py
<reponame>elukey/ores __name__ = "ores" __version__ = "1.4.0" __author__ = "<NAME>" __author_email__ = "<EMAIL>" __description__ = "A webserver for hosting scorer models." __url__ = "https://github.com/wikimedia/ores" __license__ = "MIT"
jacadcaps/webkitty
Source/WebInspectorUI/UserInterface/Models/CSSRule.js
/* * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
tommmyy/ramda-extension
packages/ramda-extension/src/__tests__/splitByNonAlphaNumeric-test.js
import { splitByNonAlphaNumeric } from '../'; describe('splitByNonAlphaNumeric', () => { describe('should split string by non-alphanumeric characters', () => { const splitByNonAlphaNumericUtil = (str, result) => it(`${str} to be ${result}`, () => expect(splitByNonAlphaNumeric(str)).toEqual(result)); split...
onkore/open2ch_ngword
src/commands/abornCommand.js
<reponame>onkore/open2ch_ngword import getStatesFromChromeStorage from '../storage' import { nodeListToArray, getThreadComments } from '../util' const isNgComment = (comment, ngword) => { return !!comment.textContent.match(ngword) } const filterThreadComments = results => { const [states, comments] = results c...
qualitesys/openssl-1
docs/QcrReportFile01File574detailjsondata.js
console.log('leListeStr main01 start json de data maDataBlocs'); var maDataBlocs = { "data00" : { "fic1" : "./qc/crypto/ocsp/ocsp_http.c.html" , "texte" : "File crypto/ocsp/ocsp_http.c 30 rule violations " , "fic2" : "./qc/crypto/ocsp/ocsp_http.c.xml" , "fic3" : "" } , "data01" : [ ] , "data0...
waconley/ldaptive
beans/src/main/java/org/ldaptive/beans/reflect/AbstractAttributeValueMutator.java
<reponame>waconley/ldaptive<gh_stars>0 /* See LICENSE for licensing and NOTICE for copyright. */ package org.ldaptive.beans.reflect; import org.ldaptive.SortBehavior; import org.ldaptive.beans.AttributeValueMutator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Base implementation of a {@link Attrib...
fosterrath-mila/myia
debug/steps.py
from myia.pipeline.steps import ( step_cconv as cconv, step_compile as export, step_debug_opt as debug_opt, step_infer as infer, step_opt as opt, step_opt2 as opt2, step_parse as parse, step_resolve as resolve, step_simplify_types as simplify_types, step_specialize as specialize...
cschulc/JiraRestService
src/main/java/com/github/cschulc/jirarestservice/services/SystemRestService.java
<gh_stars>1-10 /* * Copyright (c) 2019. cschulc (https://github.com/cschulc) * * 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 u...
gridgentoo/PSTL
pstl/src/main/scala/com/microfocus/pstl/QueryDaemon.scala
/* * (c) Copyright [2018] Micro Focus or one of its affiliates. * * 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 ...
saqib364/hh
resource_server/src/main/java/com/commerce/backend/model/entity/ProductVariant.java
package com.commerce.backend.model.entity; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import javax.persistence.*; @Entity @Table(name = "product_variant") @Getter @Setter @NoArgsConstructor @ToString public class ProductVariant { @Id @GeneratedValue...
skyscooby/sahasrahbot
alttprbot/alttprgen/randomizer/__init__.py
from .aosr import roll_aosr from .ffr import roll_ffr from .smb3r import roll_smb3r from .z1r import roll_z1r from .smdash import roll_smdash from .ootr import roll_ootr from .bingosync import BingoSync
ShurtanMSC/ShurtanMSC
src/main/java/javafish/clients/opc/lang/Translate.java
package javafish.clients.opc.lang; import javafish.clients.opc.property.PropertyLoader; import java.util.Locale; import java.util.MissingResourceException; import java.util.Properties; import java.util.ResourceBundle; /** * Basic translator is based on ResourceBundle. */ public class Translate { private static ...
DYefremov/H2dbAdmin
src/main/java/by/post/data/ConditionRow.java
<filename>src/main/java/by/post/data/ConditionRow.java package by.post.data; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleStringProperty; /** *This class used in ViewCreationDialogController as data model * * @author <NAME> */ public class ConditionRow { private Simp...
bobmcwhirter/drools
drools-core/src/main/java/org/drools/common/InternalRuleBase.java
package org.drools.common; /* * Copyright 2005 JBoss 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...
andrewschmidt-a/azure-iot-platform-dotnet
src/webui/src/components/pages/devices/flyouts/createDeviceQuery/createDeviceQuery.container.js
<filename>src/webui/src/components/pages/devices/flyouts/createDeviceQuery/createDeviceQuery.container.js // Copyright (c) Microsoft. All rights reserved. import { connect } from 'react-redux'; import { withNamespaces } from 'react-i18next'; import { CreateDeviceQuery } from './createDeviceQuery'; import { epics as de...
edumi538/bopepo
src/main/java/com/github/braully/boleto/testeBradescoBoleto.java
/* * Copyright 2019 Projeto JRimum. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
AlexandreSuperCC/mysite_backend_public
src/main/java/com/ycao/mysite/utils/APIResponse.java
package com.ycao.mysite.utils; import lombok.Data; /** * api response after used * Created by ycao on 10/24 */ @Data public class APIResponse <T> { private String code; private T data; private String msg; private String token; private String userId; public APIResponse(String code) { ...
ZengineHQ/zengine-ui-react
src/api/atoms/Input/Input.test.js
import React from 'react'; import { fireEvent, render } from '@testing-library/react'; import { act } from 'react-dom/test-utils'; import Input from './Input'; test('Renders a input HTML tag', () => { const { container } = render(<Input/>); expect(container.getElementsByTagName('input')).toHaveProperty('length', ...
mengxy/swc
crates/swc_webpack_ast/tests/fixture/css-escape/1/output.js
if (exports) module.exports = null; else { define, define.amd; define([], factory.bind(root, root)); }
wearemolecule/date-range-picker
tests/integration/pods/components/year-display/component-test.js
<reponame>wearemolecule/date-range-picker import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import moment from 'moment'; moduleForComponent('year-display', 'Integration | Component | year display', { integration: true }); // year-display use the current year as th...
LaudateCorpus1/google-cloud-ruby
google-cloud-talent-v4/test/google/cloud/talent/v4/completion_test.rb
<filename>google-cloud-talent-v4/test/google/cloud/talent/v4/completion_test.rb # frozen_string_literal: true # Copyright 2020 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 # # ...
siweilxy/openjdkstudy
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/nodes/UnaryMathIntrinsicNode.java
/* * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
stefanwimmer128/core
packages/core-utils/src/extend.js
<gh_stars>1-10 /* @flow */ import { keys, transform, } from "lodash"; export default function (target: any, ...sources: any[]): any { return transform(sources, (target, source) => transform(keys(source), (target, key) => target[key] = source[key], target), target); }
psychobob666/safmq
SAFMQManagerSnapin/CUserEditor.cpp
/* Copyright 2005 <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 in wri...
juansgonzalez/famillyBank
src/main/java/com/juanseb/bank/backend/service/impl/TarjetaServiceImpl.java
package com.juanseb.bank.backend.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.juanseb.bank.backend.model.Tarjeta; import com.juanseb.bank.backend.repository.Tarjet...