repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
lask/esp-iot-solution
components/i2c_devices/sensor/apds9960/apds9960.c
<filename>components/i2c_devices/sensor/apds9960/apds9960.c // Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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....
fduminy/intellij-community
java/java-tests/testSrc/com/intellij/java/editor/JavaEditorTextAttributesTest.java
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.java.editor; import com.intellij.openapi.editor.colors.EditorColorsScheme; import com.intellij.openapi.editor.colors.ex.DefaultColorSchemesManager; import co...
jelly/zarafa-webapp
client/zarafa/common/rules/dialogs/RulesWordsEditPanel.js
<reponame>jelly/zarafa-webapp Ext.namespace('Zarafa.common.rules.dialogs'); /** * @class Zarafa.common.rules.dialogs.RulesWordsEditPanel * @extends Ext.form.FormPanel * @xtype zarafa.ruleswordseditpanel * * Panel to edit the {@link Zarafa.common.rules.data.ConditionFlags#SUBJECT_WORDS} condition * for a ...
weijizhu1000/mall_jzb
src/clients/admin/component/system/user.list.js
import React from 'react' import moment from 'moment' import {Pagination} from 'antd' import {getAllUser, delUser} from "../../../../actions/api/user"; class UserItem extends React.Component { constructor(...args) { super(...args) } handlerDelete(evt) { this.props.removeUserItem(this.props...
lybdtt123/7Buy
AndroidBase/src/main/java/self/androidbase/utils/ScannerUtils.java
<reponame>lybdtt123/7Buy package self.androidbase.utils; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.media.MediaScannerConnection; import android.net.Uri; import android.os.Environment; import android.util....
JoanAzpeitia/lp_sg
install/app_store/tk-nuke/v0.9.4/python/tk_nuke/__init__.py
<gh_stars>1-10 # Copyright (c) 2015 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your #...
svenskan/pronunciation
vendor/swftools/lib/log.c
/* log.c Logging facilities for displaying information on screen, as well as (optional) storing it to a file and transmitting it over the network. Part of the swftools package. Copyright (c) 2001 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the...
RockyLOMO/rxlib
src/main/java/org/rx/io/Serializer.java
package org.rx.io; import org.rx.bean.RxConfig; public interface Serializer { Serializer DEFAULT = new JdkAndJsonSerializer(); default <T> IOStream<?, ?> serialize(T obj) { return serialize(obj, RxConfig.MAX_HEAP_BUF_SIZE, null); } default <T> HybridStream serialize(T obj, int maxMemorySize,...
mixcore/mix.spa.portal
src/app/app-portal/pages/theme/components/theme-export-posts/script.js
<reponame>mixcore/mix.spa.portal app.component("themeExportPosts", { templateUrl: "/mix-app/views/app-portal/pages/theme/components/theme-export-posts/view.html", controller: [ "$rootScope", "$scope", "ngAppSettings", function ($rootScope, $scope) { var ctrl = this; ctrl.updatePostE...
zhoushiqiang222/base-service
react/src/app/iam/containers/market/SideBar/ApplyForRelease/Store/Step2/marketAppDataSet.js
<filename>react/src/app/iam/containers/market/SideBar/ApplyForRelease/Store/Step2/marketAppDataSet.js import { axios } from '@choerodon/boot'; import React from 'react'; import { Icon, Tooltip, DataSet } from 'choerodon-ui/pro'; import { message } from 'choerodon-ui'; export default function (projectId, organizationId...
NordicWayInterchange/interchange
onboard-server/src/main/java/no/vegvesen/ixn/serviceprovider/TypeTransformer.java
<reponame>NordicWayInterchange/interchange<filename>onboard-server/src/main/java/no/vegvesen/ixn/serviceprovider/TypeTransformer.java package no.vegvesen.ixn.serviceprovider; import no.vegvesen.ixn.federation.api.v1_0.CapabilityApi; import no.vegvesen.ixn.federation.model.*; import no.vegvesen.ixn.federation.transform...
capeanalytics/aws-sdk-cpp
aws-cpp-sdk-cloudtrail/include/aws/cloudtrail/model/PublicKey.h
/* * Copyright 2010-2017 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...
dacheng-mall/platform-client
src/pages/products/list.js
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Switch, Button, Divider, Modal } from 'antd'; import { jump } from '../../utils'; import { TableX } from '../../utils/ui'; import styles from './list.less'; const source = window.config.source; class List extends PureComponent { c...
manoelmenezes/gswgg
src/test/java/chapter04/MultimapExamplesTest.java
package chapter04; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.HashMultimap; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import org.hamcrest.core.Is; import org.junit.Assert; import org.junit.Test; import java.util.List; import java.util.Set;...
maslenitsa93/RocketJoe
apps/resource-hub/init_service.hpp
#pragma once #include <components/configuration/configuration.hpp> #include <components/log/log.hpp> #include <goblin-engineer/components/root_manager.hpp> #include <zmq.hpp> void init_service(goblin_engineer::components::root_manager&, components::configuration&, components::log_t&,zmq::context_t&);
6un9-h0-Dan/cobaul
deps/gnucobol-2.2/cobc/codegen.c
/* Copyright (C) 2003-2012, 2014-2017 Free Software Foundation, Inc. Written by <NAME>, <NAME>, <NAME>, <NAME>, <NAME> This file is part of GnuCOBOL. The GnuCOBOL compiler is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
rec/leds
bibliopixel/control/extractor.py
import collections class Extractor: """ Extractor is a class that extracts and normalizes values from incoming message dictionaries into ordered dictionaries based on the `type` key of each message. """ def __init__(self, omit=None, normalizers=None, keys_by_type=None, accept...
yangyu456/pc-chat
src/js/wfc/messages/notification/dismissGroupNotification.js
import wfc from '../../client/wfc' import MessageContentType from '../messageContentType'; import GroupNotificationContent from './groupNotification'; export default class DismissGroupNotification extends GroupNotificationContent { operator = ''; constructor(operator) { super(MessageContentType.Dismi...
thisisgopalmandal/opencv
modules/video/misc/java/test/KalmanFilterTest.java
<reponame>thisisgopalmandal/opencv package org.opencv.test.video; import org.opencv.test.OpenCVTestCase; import org.opencv.video.KalmanFilter; public class KalmanFilterTest extends OpenCVTestCase { public void testCorrect() { fail("Not yet implemented"); } public void testKalmanFilter() { ...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-sagemaker/source/model/UserSettings.cpp
<gh_stars>1-10 /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sagemaker/model/UserSettings.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespa...
visit-dav/vis
src/visit_vtk/full/vtkVertexFilter.h
<gh_stars>100-1000 // Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. // .NAME vtkVertexFilter -- Make a vertex at each point incident to a cell //...
glsdown/dash-bootstrap-components
docs/components_page/components/input/radio_check_standalone.py
import dash_bootstrap_components as dbc from dash import Input, Output, html standalone_radio_check = html.Div( [ html.Div( [ dbc.Checkbox( id="standalone-checkbox", label="This is a checkbox", value=False, ...
jodavis42/ZilchShaders
Libraries/ZilchShaders/ZilchShaderIRCore.cpp
<gh_stars>1-10 /////////////////////////////////////////////////////////////////////////////// /// /// Authors: <NAME> /// Copyright 2018, DigiPen Institute of Technology /// /////////////////////////////////////////////////////////////////////////////// #include "Precompiled.hpp" #include "ZilchShaderIRCore.hpp" #inc...
wrldwzrd89/older-java-games
MazeRunner2/src/com/puttysoftware/mazerunner2/maze/objects/IPort.java
<gh_stars>0 /* MazeRunnerII: A Maze-Solving Game Copyright (C) 2008 <NAME> Any questions should be directed to the author via email at: <EMAIL> */ package com.puttysoftware.mazerunner2.maze.objects; import com.puttysoftware.mazerunner2.maze.abc.AbstractPort; import com.puttysoftware.mazerunner2.resourcemanagers.Ob...
yashgolwala/Software_Measurement_Team_M
ProjectSourceCode/Apache Commons Math v3.5/src/main/java/org/apache/commons/math3/ode/ParameterizedWrapper.java
version https://git-lfs.github.com/spec/v1 oid sha256:2e99aa97ad170213b271b2d27e0cbdc564d275ca13a563251bd7fd2ffea29826 size 3029
IvanSolenkov/JS-Advanced
03. Lab Arrays/06. Smallest Two Numbers.js
<filename>03. Lab Arrays/06. Smallest Two Numbers.js function solve(arr) { let result = arr.sort((a,b) => a - b).slice(0, 2); console.log(result); } solve([30, 15, 50, 5]);
binary-star-near/near-wallet
packages/frontend/src/components/Swap/views/SwapPage.js
import React, { useCallback, useState } from 'react'; import { Translate } from 'react-localize-redux'; import { useDispatch } from 'react-redux'; import { useFetchByorSellUSN } from '../../../hooks/fetchByorSellUSN'; import { showCustomAlert } from '../../../redux/actions/status'; import { actions as ledgerActions } ...
GulajavaMinistudio/CSUDM20202
src/eventsp2/appjs_event2.js
<reponame>GulajavaMinistudio/CSUDM20202 // MULTIPLE LISTENER DI EVENT const colorArray = [ 'red', 'orange', 'yellow', 'green', 'blue', 'purple', 'indigo', 'violet', ]; // EVENTLISTENER akan menampilkan parameter yang bernama event atau e function cetakWarnaKotak(eventclick) { consol...
JackChan1999/boohee_v5.6
src/main/java/com/boohee/widgets/WaterMakerTextFactory.java
package com.boohee.widgets; import android.content.Context; import android.text.TextUtils; import android.view.View; import android.widget.TextView; import com.boohee.one.R; import java.util.Map; public class WaterMakerTextFactory { public static final String BOTTOM_TEXT = "BOTTOM_TEXT"; p...
dashevo/tendermint
internal/store/store.go
<filename>internal/store/store.go package store import ( "bytes" "fmt" "strconv" "github.com/gogo/protobuf/proto" "github.com/google/orderedcode" dbm "github.com/tendermint/tm-db" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" "github.com/tendermint/tendermint/types" ) /* BlockStore is a ...
shockazoid/HydroLanguage
src/assembly/nodes/TryNode.hpp
<reponame>shockazoid/HydroLanguage<filename>src/assembly/nodes/TryNode.hpp // // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_...
zdzaz/e-c-its
OpenC2X/common/asn1/WheelBaseVehicle.h
<reponame>zdzaz/e-c-its /* * Generated by asn1c-0.9.24 (http://lionet.info/asn1c) * From ASN.1 module "ITS-Container" * found in "its_facilities_pdu_all.asn" * `asn1c -fnative-types -gen-PER` */ #ifndef _WheelBaseVehicle_H_ #define _WheelBaseVehicle_H_ #include <asn_application.h> /* Including external depen...
rom1119/pacgame-fx
src/main/java/com/pacgame/provider/stage/PrimaryStage.java
package com.pacgame.provider.stage; import com.pacgame.provider.Stage; public class PrimaryStage extends Stage { public PrimaryStage() { super(); } void setProxyObject(javafx.stage.Stage stage) { this.getProxy().setProxyObject(stage); } }
xlvchao/spartacus
spartacus-common/spartacus-common-core/src/main/java/com/xlc/spartacus/common/core/exception/BaseException.java
<filename>spartacus-common/spartacus-common-core/src/main/java/com/xlc/spartacus/common/core/exception/BaseException.java package com.xlc.spartacus.common.core.exception; /** * 基础异常 * * @author xlc, since 2021 */ public class BaseException extends RuntimeException { private static final long serialVersionUID ...
zhengyi5541/driver
eladmin-system/src/main/java/me/zhengjie/modules/zhengyi/user/domain/ZyDriveUser.java
<gh_stars>0 /* * Copyright 2019-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 required by applicable law or agree...
algol60/constellation
CoreUtilities/test/unit/src/au/gov/asd/tac/constellation/utilities/genericjsonio/JsonIODialogNGTest.java
/* * Copyright 2010-2021 Australian Signals Directorate * * 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 a...
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_1626.java
<gh_stars>1-10 package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_1626 { }
todorkrastev/softuni-software-engineering
JavaScript/M02_JavaScriptFundamentals/L05_ArraysAdvanced/Exercises/P02_DistinctArray.js
<reponame>todorkrastev/softuni-software-engineering function foo(arr) { return arr.reduce((a, v) => { if (!a.includes(v)) a.push(v) return a }, []).join(' '); }
eshuo/bfly
p2p-app/src/main/java/info/bfly/app/protocol/model/response/ApiUser.java
package info.bfly.app.protocol.model.response; import info.bfly.archer.user.model.User; import javax.validation.constraints.NotNull; import static org.apache.commons.lang3.Validate.notNull; /** * Created by XXSun on 2016/12/13. */ public class ApiUser { @NotNull private String emailAddress; private...
MagnusTiberius/terra.simulacra
socketd/MasterSocket.cpp
<reponame>MagnusTiberius/terra.simulacra #include "stdafx.h" #include "MasterSocket.h" MasterSocket::MasterSocket(void) :SocketServer(DEFAULT_DOMAIN, (int)DEFAULT_PORT) { } MasterSocket::~MasterSocket(void) { } void MasterSocket::Start(void) { do { printf("Listening...\n"); SOCKET clientSoc...
Sahil1515/coding
002_YouTube/GeeksForGeeks/Queues/prog0006_Reversing_a_queue.cpp
//Initial Template for C++ #include<bits/stdc++.h> using namespace std; queue<long long int> rev(queue<long long int> q); int main() { long long int test; cin>>test; while(test--) { queue<long long int> q; long long int n, var; cin>>n; while(n--) { cin>>var; q...
bbodenmiller/onebusaway-android
onebusaway-android/src/main/java/com/joulespersecond/oba/elements/ObaReferencesElement.java
/* * Copyright (C) 2010 <NAME> (<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 applicable law or ...
kvtemadden/music-to-my-eyes
client/src/components/SpotifyComp/SpotifyDashboard.js
<filename>client/src/components/SpotifyComp/SpotifyDashboard.js import { useState, useEffect } from 'react' import { Container, Form } from 'react-bootstrap' import useAuth from "./spotifyUserAuth" import SpotifyWebApi from 'spotify-web-api-node' import TrackSearchResult from './TrackSearchResult' const spotifyApi = n...
ahmadertarizqi/layar-movie-app
src/views/home/HomeContainer.js
import React, { useEffect, useState } from 'react'; import API from 'services/movies'; import { Link } from 'react-router-dom'; import { BoxGenre, BoxGenreItem } from 'components/BoxGenre'; import TrendingMovieList from './TrendingMovieList'; import TrendingPeopleList from './TrendingPeopleList'; import Loading f...
WillyLu326/Angular2-MEAN
node_modules/tsickle/test_files/variables/variables.js
<filename>node_modules/tsickle/test_files/variables/variables.js goog.module('test_files.variables.variables');var module = module || {id: 'test_files/variables/variables.js'};var /** @type {string} */ v1; var /** @type {string} */ v2, /** @type {number} */ v3;
luc-tuyishime/authors-haven-backend
src/middlewares/checkArticlePermissions.js
<reponame>luc-tuyishime/authors-haven-backend<gh_stars>10-100 import status from '../config/status'; const checkArticlePermissions = role => (req, res, next) => ((role[req.user.role] === 'self' && req.user.id === req.article.userId) || role[req.user.role] === 'all' ? next() : res.status(status.UNAUTHORIZED).json...
jlynch2121/dpla-frontend
pages/pro/index.js
import React from "react"; import MainLayout from "components/MainLayout"; import HomePro from "components/HomePageComponents/HomePro"; import { NEWS_PRO_ENDPOINT, PAGES_ENDPOINT } from "constants/content-pages"; import { API_SETTINGS_ENDPOINT } from "constants/site"; const Home = ({ url, news, content }) => <Main...
Imranr2/tp
src/main/java/ay2122s1_cs2103t_w16_2/btbb/model/shared/Quantity.java
package ay2122s1_cs2103t_w16_2.btbb.model.shared; import static ay2122s1_cs2103t_w16_2.btbb.commons.util.AppUtil.checkArgument; import static java.util.Objects.requireNonNull; /** * Represents the quantity of an Ingredient in btbb. * Guarantees: details are present and not null, field values are validated, immutabl...
m5o/passenger
test/cxx/StaticStringTest.cpp
#include <TestSupport.h> #include <StaticString.h> using namespace Passenger; using namespace std; namespace tut { struct StaticStringTest: public TestBase { }; DEFINE_TEST_GROUP(StaticStringTest); TEST_METHOD(1) { // Test == operator. ensure(StaticString("") == ""); ensure(StaticString("foo") == "foo"); ...
Dandush03/FinalCapstone.FrontEnd
src/javascript/swipedEvent.js
<reponame>Dandush03/FinalCapstone.FrontEnd export default class Swipe { constructor(element) { this.xDown = null; this.yDown = null; this.element = typeof (element) === 'string' ? document.querySelector(element) : element; this.element.addEventListener('touchstart', (evt) => { this.xDown = evt....
solanolabs/cfoundry
lib/cfoundry/v2/app_instance.rb
<reponame>solanolabs/cfoundry module CFoundry::V2 class AppInstance attr_reader :id def self.for_app(name, guid, client) client.base.instances(guid).collect do |i, m| AppInstance.new(name, guid, i.to_s, client, m) end end def initialize(app_name, app_guid, id, client, manifest = ...
redchew-fork/BlueshiftEngine
Source/Runtime/Private/Math/Line.cpp
// Copyright(c) 2017 POLYGONTEK // // 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 i...
kazikikaziki/Kamilo
Kamilo/KEdgeFile.cpp
#include "KEdgeFile.h" #include "KChunkedFile.h" #include "KZlib.h" #include "KInternal.h" namespace Kamilo { #define EDGE2_STRING_ENCODING "JPN" // Edge2 は日本語環境で使う事を前提とする static int _Min(int a, int b) { return (a < b) ? a : b; } static KImage _MakeImage(int width, int height, int bitdepth) { if (bitdepth =...
DhirajWishal/Flint
Code/Graphics/Source/Tools/ImageLoader.cpp
// Copyright 2021 <NAME> // SPDX-License-Identifier: Apache-2.0 #include "Graphics/Tools/ImageLoader.hpp" #include "GraphicsCore/Device.hpp" #define STB_IMAGE_IMPLEMENTATION #include "Graphics/ThirdParty/stb_image.h" namespace Flint { ImageLoader::ImageLoader(const std::filesystem::path& assetFile) { int32 texWi...
showurl/Open-IM-SDK-Core
ws_wrapper/ws_local_server/ws_user.go
package ws_local_server import ( "open_im_sdk/open_im_sdk" ) func (wsRouter *WsFuncRouter) GetUsersInfo(userIDList string, operationID string) { userWorker := open_im_sdk.GetUserWorker(wsRouter.uId) if !wsRouter.checkResourceLoadingAndKeysIn(userWorker, userIDList, operationID, runFuncName(), nil) { return } u...
JetmirAv/flagpack-core
flags/AG.js
import l from '../svg/l/AG.svg' import m from '../svg/m/AG.svg' import s from '../svg/s/AG.svg' export default {l,m,s}
zp19890228/nacos
naming/src/main/java/com/alibaba/nacos/naming/remote/rpc/handler/ServiceListRequestHandler.java
/* * Copyright 1999-2018 Alibaba Group Holding 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 applica...
colinw7/CGameBoy
src/CZ80Assemble.h
<reponame>colinw7/CGameBoy #include <CZ80.h> #include <CZ80Op.h> #include <CStrUtil.h> #include <COStreamFile.h> #include <CFileParse.h> #ifdef CL_PARSER #include <CCeilP.h> #endif
10cy18/meite_shop_parent
meite_shop_service_impl/meite_shop_service_member/src/main/java/com/cy/member/service/impl/MemberLoginServiceImpl.java
<reponame>10cy18/meite_shop_parent package com.cy.member.service.impl; import com.alibaba.fastjson.JSONObject; import com.cy.base.BaseApiService; import com.cy.base.BaseResponse; import com.cy.constants.Constants; import com.cy.core.token.GenerateToken; import com.cy.core.utils.MD5Util; import com.cy.member.input.dto....
marcopollivier/java-tccinfnet-processboss
src/main/java/br/com/processboss/core/service/IExecutorService.java
package br.com.processboss.core.service; import java.util.List; import br.com.processboss.core.exception.ProcessExecutionException; import br.com.processboss.core.model.ProcessExecutionDetail; import br.com.processboss.core.model.ProcessInTask; import br.com.processboss.core.scheduling.executor.TaskExecutationManager...
georgekach/iomonitor
public/modules/useradministration/config/useradministration.client.routes.js
<reponame>georgekach/iomonitor<gh_stars>0 'use strict'; //Setting up route angular.module('useradministration').config(['$stateProvider', function($stateProvider) { // Useradministration state routing $stateProvider. state('useradministration', { url: '/useradministration', templateUrl: 'modules/useradmin...
lriki/Lumino
src/Transcoder/Parser/ParserIntermediates.cpp
 #include "ParserIntermediates.hpp" //============================================================================== // PIDocument ln::String PIDocument::formatComment(const ln::String& comment) { ln::String output = comment.trim(); // 先頭の : を取り除く (主に @param 用) if (output.indexOf(U":") == 0) { o...
majunbao/xue
electron/demo04/renderer/Layer.js
// 图层类 class Layer { constructor() { this._layers = [] } append() { } }
davidkpiano/azure-sdk-for-node
lib/services/batch/lib/models/taskInformation.js
<filename>lib/services/batch/lib/models/taskInformation.js /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect beha...
caninojories/erp_moe3
front-end/resources/js/routes/admin/quotationList/dataservice.js
(function() { 'use strict'; angular .module('app.quotationList') .factory('quotationListDataService', quotationListDataService); quotationListDataService.$inject = ['quotationServiceApi']; /*@ngInject*/ function quotationListDataService(quotationServiceApi) { var service = { http...
yxqzjj/renren-fast_wcs
src/main/java/io/renren/wcs/client/dto/MsgChangeStationModeAckDTO.java
<filename>src/main/java/io/renren/wcs/client/dto/MsgChangeStationModeAckDTO.java package io.renren.wcs.client.dto; import io.renren.wcs.client.Factory.FactoryConstant; import io.renren.wcs.client.Factory.FactoryProducer; import io.renren.wcs.service.MsgReceiveService; import java.util.Objects; /** * Console→WCS 站台模...
RockerHX/FishChat
WeChat-Headers/MMOOMCrashReport.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "MonoServiceLogicExt.h" @class NSString; @interface MMOOMCrashReport : NSObject <MonoServiceLogicExt> { } + (void)reportFoomScene; + (void)reportIDKEYByTy...
agancsos/hak5
USB-Rubber-Ducky/Firmware/Source/Composite_Duck/src/asf/common/services/storage/ctrl_access/ctrl_access.h
/***************************************************************************** * * \file * * \brief Abstraction layer for memory interfaces. * * This module contains the interfaces: * - MEM <-> USB; * - MEM <-> RAM; * - MEM <-> MEM. * * This module may be configured and expanded to support t...
Mu-L/flinkStreamSQL
core/src/test/java/com/dtstack/flink/sql/side/AbstractSideTableInfoTest.java
package com.dtstack.flink.sql.side; import org.junit.Test; public class AbstractSideTableInfoTest { @Test public void getRowTypeInfo(){ AbstractSideTableInfo sideTableInfo = new AbstractSideTableInfo() { @Override public boolean check() { return false; ...
atianxia/cas-study
support/cas-server-support-actions/src/test/java/org/apereo/cas/web/flow/InitialFlowSetupActionCookieTests.java
<reponame>atianxia/cas-study package org.apereo.cas.web.flow; import com.google.common.collect.Lists; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.authentication.principal.WebApplicationServiceFactory; import org.apereo.cas.config.CasCoreAuthenticationConfiguration; import org.apereo.c...
AngelAlvie/homeworld
platform/go/deps.bzl
<filename>platform/go/deps.bzl load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") def go_dependencies(): go_rules_dependencies() # TODO: stop usin...
TermuxArch/dom-distiller
java/org/chromium/distiller/webdocument/filters/images/AreaScorer.java
// Copyright 2014 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. package org.chromium.distiller.webdocument.filters.images; import com.google.gwt.dom.client.Element; /** * ImageScorer that uses image area (length*wid...
yearm/aliyun-log-go-sdk
errors.go
package sls import ( "encoding/json" ) // BadResponseError : special sls error, not valid json format type BadResponseError struct { RespBody string RespHeader map[string][]string HTTPCode int } func (e BadResponseError) String() string { b, err := json.MarshalIndent(e, "", " ") if err != nil { return...
alrs/acyl
vendor/github.com/hashicorp/vault/ui/app/controllers/vault/cluster/replication/mode/secondaries/index.js
import ReplicationController from '../../../replication'; export default ReplicationController.extend();
excel-academy/excel-academy-website
site-config.js
<gh_stars>0 module.exports = { siteTitle: 'Excel Academy', siteTitleShort: 'ExcelAcademy', siteDescription: 'Start a career in the growing healthcare industry.', siteUrl: 'https://www.excelacademyct.com/', themeColor: '#4bb2b6', backgroundColor: '#fff', // Prefixes all links. For cases when deployed to ex...
viktarshumik/ptusa_main
PAC/common/sys/console.h
/// @file console.h /// @brief Работа с консолью вне зависимости от аппаратной реализации. Также /// некоторые безопасные функции работы со строками. /// /// @author <NAME>. /// /// @par Описание директив препроцессора: /// /// @par Текущая версия: /// @$Rev: 220 $.\n /// @$Author: id $.\n /// @$Date:: 2011...
da0shi/replviz
src/javarepl/console/ConsoleLoggerPrintStream.java
<reponame>da0shi/replviz package javarepl.console; import com.googlecode.totallylazy.Predicate; import java.io.IOException; import java.io.OutputStream; import java.io.PrintStream; import java.util.Locale; import static com.googlecode.totallylazy.Predicates.not; import static javarepl.console.ConsoleLog.consoleLog; ...
Domiii/code-dbgs
dbux-babel-plugin/src/parse/ObjectExpression.js
<reponame>Domiii/code-dbgs<filename>dbux-babel-plugin/src/parse/ObjectExpression.js import TraceType from '@dbux/common/src/types/constants/TraceType'; import EmptyArray from '@dbux/common/src/util/EmptyArray'; import { buildObjectExpression } from '../instrumentation/builders/objects'; import BaseNode from './BaseNode...
noriHanda/study_matching
account/migrations/0003_auto_20190905_1212.py
# Generated by Django 2.2.4 on 2019-09-05 03:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20190905_0205'), ] operations = [ migrations.AddField( model_name='user', name='department', ...
doolse/Equella
Source/Plugins/Core/com.equella.core/src/com/tle/web/viewitem/viewer/GoogleDocViewerConfigDialog.java
<gh_stars>0 /* * Copyright 2017 Apereo * * 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 agr...
fr1tz/alux3d
Engine/source/sfx/sfxTypes.cpp
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "sfx/sfxTypes.h" #include "sfx/sfxDescription.h" #include "sfx/sfxTrack.h" #include "sfx/sfxEnvironment.h" #include "sfx/sfxState.h" #include "sfx/sfxAmbience.h" #include "sfx/sfxSource.h" #i...
maurizioabba/rose
projects/simulator/syscall_tests/syscall_sa.122.03.c
#include <errno.h> #include <sys/utsname.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <err.h> char *TCID = "syscall.122"; int TST_TOTAL = 1; int main(int ac, char **av) { struct utsname *buf; if ((buf = (struct utsname *)malloc((size_t) sizeof(struct utsname))) == NULL) err(1,"m...
larynx95/DART.IMT.C
2311_search.c
<filename>2311_search.c // https://codecast.france-ioi.org/v6/player?stepperControls=_undo,_redo,_expr,_out,_over&base=https%3A%2F%2Ffioi-recordings.s3.amazonaws.com%2Fdartmouth%2F1518608621712 #include <stdio.h> int main(void) { //! showArray(list, cursors=[i]) int list[] = {6, -2, 5, 12, 7, 3, 8, 18, -10,...
eschnett/kotekan
lib/stages/ReadGain.cpp
#include "ReadGain.hpp" #include "Config.hpp" // for Config #include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate #include "Telescope.hpp" // for Telescope, FREQ_ID_NOT_SET #include "buffer.h" // for mark_frame_full, register_producer, wait_for_empty_frame #include "con...
willemt/yabtorrent
deps/meanqueue/meanqueue.h
<gh_stars>10-100 #ifndef MEANQUEUE_H #define MEANQUEUE_H typedef struct { int *vals; int size; int idxCur; int valSum; float mean; } meanqueue_t; /** * Create of queue of size 0 */ void *meanqueue_new( const int size ); void meanqueue_free( meanqueue_t * qu ); /** * Add an int to the q...
nathanfaucett/ll-lang
src/Lexer.hpp
#ifndef __LL_LEXER_HPP__ #define __LL_LEXER_HPP__ namespace ll { class Token { public: String* value; uintsize row; uintsize column; Token(String* value, uintsize row, uintsize column); }; class Lexer { private: std::istream* _st...
smo921/sis-api
test/v1.1-api/test-api-upsert.js
describe('@API @V1.1API - Upsert', function() { "use strict"; var should = require('should'); var BPromise = require('bluebird'); var SIS = require("../../util/constants"); var TestUtil = require('../fixtures/util'); var ApiServer = new TestUtil.TestServer(); it("Should setup fixtures",...
pointphoton/AndroidMVPTemplate
app/src/main/java/com/photon/templatemvp/data/mapper/GalleryModelCarCollectionMapper.java
<filename>app/src/main/java/com/photon/templatemvp/data/mapper/GalleryModelCarCollectionMapper.java package com.photon.templatemvp.data.mapper; import com.photon.templatemvp.data.model.gallery.Person; import com.photon.templatemvp.data.model.gallery.Properties; import com.photon.templatemvp.di.PerActivity; import com....
jackhumbert/RED4ext.SDK
include/RED4ext/Scripting/Natives/Generated/physics/PhysicsJointLinearLimit.hpp
<reponame>jackhumbert/RED4ext.SDK<filename>include/RED4ext/Scripting/Natives/Generated/physics/PhysicsJointLinearLimit.hpp<gh_stars>10-100 #pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/physics/Physi...
amcp/janusgraph
janusgraph-cassandra/src/main/java/org/janusgraph/diskstorage/cassandra/thrift/thriftpool/CTConnection.java
<reponame>amcp/janusgraph // Copyright 2017 JanusGraph 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 ...
evgenii-m/AudioPlayer
src/main/java/ru/push/caudioplayer/core/facades/dto/ImageSize.java
<gh_stars>0 package ru.push.caudioplayer.core.facades.dto; import java.util.Arrays; public enum ImageSize { SMALL("small"), MEDIUM("medium"), LARGE("large"), EXTRALARGE("extralarge"), UNKNOWN("") ; private String value; ImageSize(String value) { this.value = value; } public String getValue() { return...
naeramarth7/joynr
java/messaging/messaging-common/src/main/java/io/joynr/messaging/util/MulticastWildcardRegexFactory.java
<reponame>naeramarth7/joynr<gh_stars>0 /* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * 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/lic...
yfpeng/pengyifan-commons
src/test/java/com/pengyifan/util/regex/RegExTest.java
<filename>src/test/java/com/pengyifan/util/regex/RegExTest.java package com.pengyifan.util.regex; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.*; public class RegExTest { @Test public void test() throws IOException { String patternStr = "a"; String str = "axa"; ...
laffer1/justjournal
src/main/java/com/justjournal/ctl/api/JournalController.java
/* * Copyright (c) 2003-2021 <NAME> * 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 conditio...
zipated/src
third_party/blink/renderer/platform/text/quoted_printable.cc
<reponame>zipated/src /* * Copyright (C) 2011 Google 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: * * * Redistributions of source code must retain the above copyright * notice,...
build-test-conflicts/dynjs
src/main/java/org/dynjs/compiler/bytecode/AbstractBytecodeCompiler.java
package org.dynjs.compiler.bytecode; import java.io.PrintWriter; import me.qmx.jitescript.JDKVersion; import me.qmx.jitescript.JiteClass; import org.dynjs.Config; import org.dynjs.codegen.CodeGeneratingVisitor; import org.dynjs.codegen.CodeGeneratingVisitorFactory; import org.dynjs.runtime.BlockManager; import org.d...
gaoht/house
java/classes2/com/ziroom/credit/main/CreditScoreAnalysisActivity.java
<gh_stars>1-10 package com.ziroom.credit.main; import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager.OnPageChangeListener; import android.view.View; import android.widget.ImageView; import com.ziroom.credit.R.drawable; import com.ziroom.credit.R.id; import com.ziroom.credit.R.layout; impor...
companionstudio/islay-shop
db/migrate/20130703024018_alter_skus_for_pricing_restructure.rb
class AlterSkusForPricingRestructure < ActiveRecord::Migration def up # Backup existing SKUs execute(%{ CREATE TABLE legacy_skus (LIKE skus INCLUDING INDEXES); INSERT INTO legacy_skus SELECT * FROM skus }) remove_column(:skus, :price) remove_column(:skus, :batch_size) remove_colum...
amolabs/amoabci
amo/tx/withdraw.go
package tx import ( "encoding/json" abci "github.com/tendermint/tendermint/abci/types" "github.com/amolabs/amoabci/amo/code" "github.com/amolabs/amoabci/amo/store" "github.com/amolabs/amoabci/amo/types" ) type WithdrawParam struct { Amount types.Currency `json:"amount"` } func parseWithdrawParam(raw []byte) ...
hellopanda128/main
src/main/java/seedu/address/ui/VehicleCard.java
package seedu.address.ui; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; import seedu.address.model.vehicle.Vehicle; /** * An UI component that displays information of a {@code Vehicle}. */ public class VehicleCard extends UiPart<Regio...