repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Becavalier/TWVM
lib/include/opcodes.hh
<reponame>Becavalier/TWVM<filename>lib/include/opcodes.hh // Copyright 2021 YHSPY. All rights reserved. #ifndef LIB_INCLUDE_OPCODES_HH_ #define LIB_INCLUDE_OPCODES_HH_ #define ITERATE_ALL_OPCODE(V) \ V(Unreachable, 0x0, VALID) \ V(Nop, 0x1, VALID) \ V(Block, 0x2, VALID) \ V(Loop, 0x3, VALID) \ V(If, 0x4, VAL...
Amaranese/mario-bros-cplusplus
source/Block.cpp
#include "Block.hpp" #include "Coin.hpp" #include "Flower.hpp" #include "Globals.hpp" #include "Item.hpp" #include "Leaf.hpp" #include "Mushroom.hpp" #include "Player.hpp" #include "Random.hpp" #include "Shell.hpp" #include "Sound.hpp" #include "World.hpp" /** * For spawning multiple coins that scatter. * * @todo c...
astrapi69/greekchareditor
src/main/java/gr/frame/actions/ShowInfoDialogAction.java
<gh_stars>0 package gr.frame.actions; import gr.frame.MainFrame; import gr.frame.help.info.InfoJDialog; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; @SuppressWarnings("serial") public class ShowInfoDialogAction extends AbstractAction { private static final String INFO_TITLE = "Info"; ...
zipated/src
third_party/android_tools/sdk/sources/android-25/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
<filename>third_party/android_tools/sdk/sources/android-25/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
cable5881/pmq
mq-ui/src/main/java/com/ppdai/infrastructure/ui/controller/CatDataController.java
package com.ppdai.infrastructure.ui.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.ppdai.infrastructure.m...
meldsza/online-examination-system
src/axios.js
<gh_stars>1-10 import axios from 'axios' export default axios.create({ baseURL: process.env.VUE_AUTH_BASE_URL || 'http://localhost:4000/auth', timeout: 1000, });
PicturElements/lib
pkg/vue-admin/src/plugins/routing.js
import { get, hasOwn, isObject, resolveVal } from "@qtxr/utils"; export default { use(admin) { admin.ui.routing = { // Route URL currentRoute: null, // VueAdmin route proxies proxies: { current: null, previous: null }, // Vue route objects currentRouteObject: null, prevRouteObjec...
jjzhang166/telegram-app
telegram/scope/templates.h
<filename>telegram/scope/templates.h #pragma once // TODO Add Telegram mascot / icon const static std::string ERROR_TEMPLATE = R"({ "schema-version": 1, "template": { "category-layout": "grid", "card-layout": "horizontal", "card-size": "small" }, "components": { "title":...
CBD-Forum/Genesis-crowd-funding
letv-crowdfund-core/src/main/java/com/fbd/core/app/crowdfunding/model/CrowdfundingOperateDataModel.java
package com.fbd.core.app.crowdfunding.model; import java.util.Date; import com.fbd.core.base.BaseModel; public class CrowdfundingOperateDataModel extends BaseModel { /** * */ private static final long serialVersionUID = 1L; private String id; private String loanNo; pri...
ScalablyTyped/SlinkyTyped
a/arcgis-js-api/src/main/scala/typingsSlinky/arcgisJsApi/buildingGroupSublayerMod.scala
<filename>a/arcgis-js-api/src/main/scala/typingsSlinky/arcgisJsApi/buildingGroupSublayerMod.scala package typingsSlinky.arcgisJsApi import org.scalablytyped.runtime.Shortcut import typingsSlinky.arcgisJsApi.esri.BuildingGroupSublayer import typingsSlinky.arcgisJsApi.esri.BuildingGroupSublayerConstructor import typings...
thanos/phonescript
phonescript/me4se/src/org/me4se/impl/gcf/ConnectionImpl_http.java
// ME4SE - A MicroEdition Emulation for J2SE // // Copyright (C) 2001 <NAME>, Oberhausen (Rhld.), Germany // // Contributors: // // STATUS: API Complete // // 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 Softwar...
tcaram/astroquery
astroquery/cadc/tests/DummyJob.py
<filename>astroquery/cadc/tests/DummyJob.py # Licensed under a 3-clause BSD style license - see LICENSE.rst """ ============= Cadc TAP plus ============= """ class DummyJob(object): def __init__(self): self.parameters = {} self.jobid = '123' self.outputFile = 'file.txt' self._pha...
PremierLangage/platon_assets
apps/pl_notifications/migrations/0001_initial.py
<filename>apps/pl_notifications/migrations/0001_initial.py<gh_stars>0 # Generated by Django 3.2.3 on 2021-06-02 12:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ mig...
npocmaka/Windows-Server-2003
base/wow64/wow64/debug.c
/*++ Copyright (c) 1998 Microsoft Corporation Module Name: debug.c Abstract: Debugging/Logging helpers Author: 11-May-1998 BarryBo Revision History: 05-Oct-1999 SamerA <NAME> Move logging code to wow64ext.dll 05-Dec-2001 Sam...
Saikou-Bot/SaikouBotV2
models/userItems.js
<reponame>Saikou-Bot/SaikouBotV2<filename>models/userItems.js if (!mongoose) var mongoose = require('mongoose'); const useritemsSchema = mongoose.Schema({ username: String, userID: String, itemName: String, itemQuantity: Number, itemSell: Number, itemEmoji: String, itemType: String, multipurchase: Boolean, }...
naojiangzhalie666/morebit-android-app
app/src/main/java/com/zjzy/morebit/pojo/request/base/RequestBaseTypeBean.java
<filename>app/src/main/java/com/zjzy/morebit/pojo/request/base/RequestBaseTypeBean.java<gh_stars>1-10 package com.zjzy.morebit.pojo.request.base; import com.zjzy.morebit.pojo.request.RequestBaseBean; /** * Created by fengrs on 2019/1/9. * 备注: */ public class RequestBaseTypeBean extends RequestBaseBean { priv...
joewang96/joewang.dev
src/components/menu/MenuLink.js
import React from 'react'; import styled, { css } from 'styled-components'; import { Link } from 'gatsby'; import { COLORS, FONTS } from '../../tokens'; import A from '../../elements/A'; import MenuContext from './MenuContext'; const LinkComponent = styled(props => { const { active: __active, external, href, ...res...
reffs123/PyQtDarkTheme
tools/test_freezing_lib/__main__.py
"""Module allowing for `python -m tools.test_freezing_lib`.""" import sys from tools.test_freezing_lib.main import main if __name__ == "__main__": sys.exit(main())
aayushkapoor206/whatshot
node_modules/angular2/es6/prod/tools.js
<filename>node_modules/angular2/es6/prod/tools.js /* * Debugging and profiling tools for Angular 2 */ export { enableDebugTools, disableDebugTools } from 'angular2/src/tools/tools'; //# sourceMappingURL=tools.js.map
tjquinno/helidon-build-tools
archetype/engine-v2/src/main/java/io/helidon/build/archetype/engine/v2/interpreter/ContextNodeFromDefaultValueCreator.java
/* * Copyright (c) 2021 Oracle and/or 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 applic...
vadkasevas/BAS
Engine/addavexclusion.h
<gh_stars>100-1000 #ifndef ADDAVEXCLUSION_H #define ADDAVEXCLUSION_H #include "engine_global.h" #include <QObject> namespace BrowserAutomationStudioFramework { class ENGINESHARED_EXPORT AddAVExclusion : public QObject { Q_OBJECT public: explicit AddAVExclusion(QObject *parent = 0); ...
jarnoln/mitasny
mitasny/settings.py
""" Django settings for mitasny project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os...
Osallek/Eu4SaveEditor
src/main/java/fr/osallek/eu4saveeditor/controller/converter/ProvinceStringCallBack.java
<gh_stars>1-10 package fr.osallek.eu4saveeditor.controller.converter; import fr.osallek.clausewitzparser.common.ClausewitzUtils; import fr.osallek.eu4parser.model.save.province.SaveProvince; import javafx.util.Callback; public class ProvinceStringCallBack implements Callback<SaveProvince, String> { @Override ...
Tusky/cache-dependencies
cache_dependencies/transaction.py
<filename>cache_dependencies/transaction.py<gh_stars>1-10 import time from functools import wraps from cache_dependencies import dependencies, interfaces, mixins, utils from cache_dependencies.utils import Undef class AbstractTransaction(interfaces.ITransaction): def __init__(self, lock): """ :ty...
ello/webapp
test/unit/selectors/post_test.js
import Immutable from 'immutable' import * as selector from '../../../src/selectors/post' import { clearJSON, json, stub, stubCategories, stubPost, stubTextRegion, stubImageRegion, stubEmbedRegion, } from '../../support/stubs' describe('post selectors', () => { let propsPost let state beforeEach(...
moutainhigh/stuck-link
stuck-link-redirect/src/main/java/top/stuck/link/redirect/config/AsyncConfig.java
<filename>stuck-link-redirect/src/main/java/top/stuck/link/redirect/config/AsyncConfig.java<gh_stars>1-10 package top.stuck.link.redirect.config; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconf...
loicgasser/ngeo
src/olcs/constants.js
<filename>src/olcs/constants.js<gh_stars>10-100 /** * @module ngeo.olcs.constants */ const exports = {}; /** * @enum {string} * @export */ exports.Permalink3dParam = { /** * @type {string} * @export */ ENABLED: '3d_enabled', /** * @type {string} * @export */ LON: '3d_lon', /** * @ty...
zealoussnow/chromium
chrome/browser/resources/internals/lens/lens_internals_browser_proxy.js
// Copyright 2021 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. import {addSingletonGetter, sendWithPromise} from 'chrome://resources/js/cr.m.js'; /** @interface */ export class LensInternalsBrowserProxy { /** * ...
marinaoliveira96/python-exercises
100-programming-exercises/003.py
<reponame>marinaoliveira96/python-exercises # convert bytes to a string bytes_to_convert = b"Python" converted_str = bytes_to_convert.decode('utf-8')
RedBrumbler/virtuoso-codegen
include/OVR/OpenVR/IVRInput__GetSkeletalBoneDataCompressed.hpp
<reponame>RedBrumbler/virtuoso-codegen // Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including ty...
amitznati/template-editor
src/widgets/Gradients/widget/components/Gradients.mainView.js
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import SelectGradient from './Gradients.SelectGradient'; import EditGradient from './Gradients.EditGradient'; const useStyles = makeStyles((theme) => ({ root: { padding: theme.spacing(2, 0) } })); export default function Gradien...
trusted-ws/qira
tracers/qemu/qemu/target-ppc/mmu_helper.c
/* * PowerPC MMU, TLB, SLB and BAT emulation helpers for QEMU. * * Copyright (c) 2003-2007 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the Lic...
rla/old-code
2011/infdot-serializer/src/main/java/com/infdot/serialize/binary/serializer/ArraySerializer.java
package com.infdot.serialize.binary.serializer; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; /** * {@link Serializer} implementation for arrays. * * @author <NAME> * * @param <T> type of array element. */ public class ArraySerializer<T> extends Serializer<T[]> { private Ser...
SaadMeftah/c-example-code
infinite_buffer.c
/******************************************************************************* * * Program: Infinite buffer * * Description: An example of an "infinite input buffer" in C. * * YouTube Lesson: https://www.youtube.com/watch?v=qwM_c3gF2lw * * Author: <NAME> @ https://portfoliocourses.com * ****************************...
Brightspace/d2l-outcomes-overall-achievement
lang/es.js
<reponame>Brightspace/d2l-outcomes-overall-achievement export default { "anonymousUser": "Usuario anónimo", "ascending": "Ascendente", "bigTrendAttemptsScreenReaderString": "{numAttempts, plural, =1 {Intento {attemptNames}} other {Intentos {attemptNames} y {lastAttemptName}}}", "cancelBtn": "Cancelar", "close": "C...
RocMarshal/fevernova
src/main/java/com/github/fevernova/task/rdb/JobParser.java
package com.github.fevernova.task.rdb; import com.alibaba.fastjson.JSON; import com.github.fevernova.framework.common.context.GlobalContext; import com.github.fevernova.framework.common.context.TaskContext; import com.github.fevernova.framework.common.data.Data; import com.github.fevernova.framework.component.channel...
Waginator/mycv
src/main/java/com/wagner/mycv/web/dto/request/TechnologySkillRequestDto.java
package com.wagner.mycv.web.dto.request; import lombok.Builder; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import java.util.HashMap; import java.util.List; import java.util.Map; @Getter @Setter @Builder public class Technolog...
ShawnZhong/SplitFS
kernel/linux-4.13/include/trace/events/alarmtimer.h
#undef TRACE_SYSTEM #define TRACE_SYSTEM alarmtimer #if !defined(_TRACE_ALARMTIMER_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_ALARMTIMER_H #include <linux/alarmtimer.h> #include <linux/rtc.h> #include <linux/tracepoint.h> TRACE_DEFINE_ENUM(ALARM_REALTIME); TRACE_DEFINE_ENUM(ALARM_BOOTTIME); TRACE_DEFINE_E...
erhard-lab/gedi
GediCenteredDiskIntervalTreeStorage/src/executables/BedIndex.java
<gh_stars>10-100 /** * * Copyright 2017 <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 b...
LigthWarrior/frontend-course-2020
homeworks/nataliia.koval_NataliyaKoval/2-DOM/chat.js
const input = document.querySelector('[data-text]'); const button = document.querySelector('[data-send-message]'); const dialogWindow = document.querySelector('.dialog-window'); function createMessage(event) { event.preventDefault(); if (input.value.trim().length > 0) { const message = document.create...
xu753x/free5GRAN
lib/asn1c/nr_rrc/PDCCH-ConfigSIB1.c
/* * Copyright 2020-2021 <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 writin...
bragabriel/Beecrowd
Javascript/Uri1144_SequenciaLogica.js
<reponame>bragabriel/Beecrowd var input = require("fs").readFileSync("stdin", "utf8"); var lines = input.split(' '); var a = parseInt(lines.shift()); for(var b=1; b<=a; b++){ c = b * b; var d = b * b * b; console.log(b, c, d); var e = c + 1; var f = d + 1; console.log(b, e, f); }
rbieniek/BGP4J
lib/common-config/src/main/java/org/bgp4j/config/nodes/impl/RouteConfigurationImpl.java
<gh_stars>1-10 /** * */ package org.bgp4j.config.nodes.impl; import org.apache.commons.lang3.builder.CompareToBuilder; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.bgp4j.config.nodes.PathAttributeConfiguration; import org.bgp4j.config.nod...
fhwang/sync_machine
lib/rails/generators/templates/sync.rb
<filename>lib/rails/generators/templates/sync.rb module <%= class_name %> extend SyncMachine subject :<%= subject %> end
sdmg15/GoodDAPP
src/components/common/view/JaggedEdge.js
<gh_stars>10-100 // @flow import React, { useMemo, useState } from 'react' import { View } from 'react-native' import { withStyles } from '../../../lib/styles' // To match web version const TILES = 27 const useJaggedEdge = (width, tileSize, styles) => useMemo(() => { const tileDiagonal = Math.sqrt(2) * tileSize...
pierotofy/rosettadrone
app/src/main/cpp/gstreamer-1.0/armv7/include/gstreamer-1.0/gst/gstpromise.h
<reponame>pierotofy/rosettadrone /* GStreamer * Copyright (C) 2017 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your...
FranicevicNikola/OOP
FER/Lectures-master/Exercises/Homework-03/src/main/java/hr/fer/oop/homework_03/e03/Main.java
<reponame>FranicevicNikola/OOP package hr.fer.oop.homework_03.e03; public class Main { public static void main(String[] args) { FoodType foodType = new FoodType("banana", 4, 93, 3); System.out.println(foodType.toString()); } }
1st/jenkins
test/src/test/java/hudson/views/ListViewColumnTest.java
<filename>test/src/test/java/hudson/views/ListViewColumnTest.java package hudson.views; import hudson.model.ListView; import org.junit.Rule; import org.junit.Test; import org.jvnet.hudson.test.JenkinsRule; /** * @author <NAME> */ public class ListViewColumnTest { @Rule public JenkinsRule j = new JenkinsRul...
onezens/QQTweak
qqtw/qqheaders7.2/NearbyInterestTagViewDelegate-Protocol.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" @class ITTagInfo, NearbyInterestTagView; @protocol NearbyInterestTagViewDelegate <NSObject> - (void)didSelectedInterestTagView:(NearbyInterestTagView *)arg1 tagInfo...
bmampaey/SDA
metadata/resources/gaia_dem.py
<reponame>bmampaey/SDA<filename>metadata/resources/gaia_dem.py # Generated by command write_metadata_files version 1 from metadata.models import GaiaDem from .base_metadata import BaseMetadataResource __all__ = ['GaiaDemResource'] class GaiaDemResource(BaseMetadataResource): '''RESTful resource for model GaiaDem'''...
DeedleFake/p9
proto/client.go
package proto import ( "context" "io" "log" "net" "sync/atomic" "time" "github.com/DeedleFake/p9/internal/debug" ) // Client provides functionality for sending requests to and receiving // responses from a server for a given protocol. It automatically // handles message tags, properly blocking until a matchin...
Neology92/dobrybruk-website
src/components/PopUp/PopUp.js
<reponame>Neology92/dobrybruk-website<gh_stars>0 import styled from 'styled-components'; const Modal = styled.div` display: none; ${({ theme }) => theme.media.above.xl} { display: ${({ isOpen }) => (isOpen ? 'block' : 'none')}; height: 80vh; width: calc(80vh * 1.7); background: ${({ theme, isGre...
bvarner/javashare
src/main/java/org/beShare/event/ChatMessageListener.java
<filename>src/main/java/org/beShare/event/ChatMessageListener.java package org.beShare.event; import org.beShare.data.ChatMessage; import org.beShare.gui.ChatPoster; /** ChatMessageListener - Defines the interface for classes wishing to listen for new ChatMessage events. Last Update: 2-28-2002 @autho...
magneticchen/NRSF
NoService/services/NoCluster/plugin/virtualization/index.js
<reponame>magneticchen/NRSF // NoService/NoService/rumtime/plugins/virtualization/index.js // Description: // "virtualization" use cluster API to virtualize model, filesystem etc. // Copyright 2018-2019 NOOXY. All Rights Reserved. module.exports.Filesystem = require('./filesystem'); module.exports.Model = require('./m...
Mohammad-Elsharkawy/CompetitiveProgramming
codeforces/1433/D.cpp
<reponame>Mohammad-Elsharkawy/CompetitiveProgramming #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=200005; int arr[300005]; bool done[300005]; set<int>s1; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int t;cin>>t; while(t--){ s1.clear(); ...
psryland/rylogic_code
projects/lost_at_sea/src/world/skybox.h
//************************************ // Lost at Sea // Copyright (c) Rylogic Ltd 2011 //************************************ #pragma once #include "lost_at_sea/src/forward.h" #include "lost_at_sea/src/event.h" namespace las { struct Skybox :pr::events::IRecv<Evt_AddToViewport> { #define PR_RDR_...
iuskye/SREWorks
paas/appmanager/tesla-appmanager-spring/src/main/java/com/alibaba/tesla/appmanager/spring/config/SchedulingConfigurerConfiguration.java
<filename>paas/appmanager/tesla-appmanager-spring/src/main/java/com/alibaba/tesla/appmanager/spring/config/SchedulingConfigurerConfiguration.java package com.alibaba.tesla.appmanager.spring.config; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.SchedulingC...
Tagar/dremio-oss
dac/ui/src/pages/ExplorePage/components/ExploreDragArea-spec.js
<gh_stars>0 /* * Copyright (C) 2017-2018 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
amur-host/node
it/src/test/scala/com/amurplatform/it/sync/matcher/OrderExclusionTestSuite.scala
<filename>it/src/test/scala/com/amurplatform/it/sync/matcher/OrderExclusionTestSuite.scala package com.amurplatform.it.sync.matcher import com.typesafe.config.{Config, ConfigFactory} import com.amurplatform.it._ import com.amurplatform.it.api.SyncHttpApi._ import com.amurplatform.it.api.SyncMatcherHttpApi._ import com...
jxg01713/zstack
header/src/main/java/org/zstack/header/vm/VmInstantiateResourceException.java
<filename>header/src/main/java/org/zstack/header/vm/VmInstantiateResourceException.java package org.zstack.header.vm; import org.zstack.header.errorcode.ErrorCode; public class VmInstantiateResourceException extends Exception { private ErrorCode errorCode; public ErrorCode getErrorCode() { re...
nydevel/qirk
qirk-parent/qirk-main-parent/qirk-services-api/src/main/java/org/wrkr/clb/services/dto/project/task/TaskLinkDTO.java
<reponame>nydevel/qirk package org.wrkr.clb.services.dto.project.task; import javax.validation.constraints.NotNull; import com.fasterxml.jackson.annotation.JsonProperty; public class TaskLinkDTO { @JsonProperty(value = "task1") @NotNull(message = "task1 in TaskLinkDTO must not be null") public Long task...
cbbathaglini/orange-talents-05-template-mercado-livre
src/main/java/br/com/mercadolivre/dto/request/ProdutoDTORequest.java
<gh_stars>0 package br.com.mercadolivre.dto.request; import br.com.mercadolivre.model.*; import br.com.mercadolivre.repository.CategoriaRepository; import br.com.mercadolivre.repository.ProdutoRepository; import br.com.mercadolivre.repository.UsuarioRepository; import br.com.mercadolivre.validates.ExistsId; import io....
mengkeer/xbsz-iOS
xbsz/xbsz/Common/Utils/FMDBUtil.h
// // FMDBUtil.h // xbsz // // Created by lotus on 2017/4/25. // Copyright © 2017年 lotus. All rights reserved. // #import <Foundation/Foundation.h> #import "ExerciseMode.h" @interface FMDBUtil : NSObject + (instancetype)instance; #pragma mark - 所有模式公共接口 + (ExerciseType)indexToExerciseType:(NSInteger)index; //根据...
gkumar111/elasticsearch
modules/mapper-extras/src/main/java/org/elasticsearch/index/query/VectorDVAtomicFieldData.java
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
fangjiaxiaobai/learn
13-design-pattern/chapter03-proxy/src/demo1_staticProxy/IUserDao.java
<reponame>fangjiaxiaobai/learn package demo1_staticProxy; /** * @author <EMAIL> * @date 2018/3/5 */ public interface IUserDao { default void save(){ System.out.println("this is save method in demo1_staticProxy.IUserDao"); } }
xutao6936/archYBT
src/main/java/com/topcheer/ybt/filter/LoginFilter.java
package com.topcheer.ybt.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServl...
thirtyfiveparts/live
repos/live/packages/app-templates/full-stack-graphql-react-2/web/test/e2e/cypress/support/index.js
import './commands' // Run before all tests. before(() => { setupFromGetRequest() //setupFromScripts() }) // Runs a script to reset the database. function setupFromScripts() { //const backendPath = Cypress.env('BACKEND_PATH') console.log(__dirname) // TODO(vjpr): Fix! const backendPath = '/Users/Vaug...
slilichenko/dataflow-sample-applications
retail/retail-java-applications/data-engineering-dept/business-logic/src/test/java/com/google/dataflow/sample/retail/businesslogic/core/utils/test/clickstream/ValidateAndCorrectClickStreamEventsTests.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
aerinkayne/website
Tutorials/Processing/11_video/sketch_11_9_BlobTrackingIDs_js/blob.js
// <NAME> // http://codingtra.in // http://patreon.com/codingtrain // Code for: https://youtu.be/r0lvsMPGEoY class Blob { constructor(x, y) { this.minx = x; this.miny = y; this.maxx = x; this.maxy = y; this.taken = false; this.id = 0; } show() { stroke(0); fill(255, 100); str...
Hearthstonepp/Hearthstonepp
Sources/Rosetta/PlayMode/Tasks/PlayerTasks/EndTurnTask.cpp
<filename>Sources/Rosetta/PlayMode/Tasks/PlayerTasks/EndTurnTask.cpp // This code is based on Sabberstone project. // Copyright (c) 2017-2021 SabberStone Team, darkfriend77 & rnilva // RosettaStone is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2017-2021 <NAME> #include <Rosetta/PlayM...
sshockwave/Online-Judge-Solutions
EZOJ/Contests/1317/A.cpp
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <vector> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) #define nl (next_num<lint>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!=...
wm-c/ICS4U1
Graphic/src/main/java/graphics/RenderHell/objects/terrain/TerrainMaster.java
<filename>Graphic/src/main/java/graphics/RenderHell/objects/terrain/TerrainMaster.java package graphics.RenderHell.objects.terrain; import java.awt.Color; import java.awt.Graphics2D; import java.util.ArrayList; import graphics.RenderHell.collision.CollisionController; import graphics.RenderHell.interfaces.Drawable; i...
JustPretender/botan
src/lib/prov/pkcs11/p11_x509.cpp
<gh_stars>1-10 /* * PKCS#11 X.509 * (C) 2016 <NAME>, Sirrix AG * (C) 2016 <NAME>, Sirrix AG * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/p11_x509.h> #if defined(BOTAN_HAS_X509_CERTIFICATES) namespace Botan::PKCS11 { X509_CertificateProperties::X509_CertificatePropertie...
soulgoast/blog-repository
source_code/src/goodman/javax/naming/ldap/SortKey.java
/* * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package goodman.javax.naming.ldap; import goodman.javax.naming.ldap.SortControl; /** * A sort key an...
lathroplabs/CodeLaboratoryAddin
node_modules/office-ui-fabric-react/lib/components/pickers/TagPicker/TagPicker.js
import { __assign, __extends } from "tslib"; import * as React from 'react'; import { styled, initializeComponentRef } from '../../../Utilities'; import { BasePicker } from '../BasePicker'; import { getStyles } from '../BasePicker.styles'; import { TagItem } from './TagItem'; import { TagItemSuggestion } from './TagIte...
SINTEF/Thermopack
addon/pycThermopack/pyctp/ljs_bh.py
# Support for python2 from __future__ import print_function # Import ctypes from ctypes import * # Importing Numpy (math, arrays, etc...) import numpy as np # Import platform to detect OS from sys import platform, exit # Import os utils from os import path # Import thermo from . import thermo c_len_type = thermo.c_len...
zz860926/sejs
example/designPattern/00-callback/02-promise/mainAwait.js
const web = require('./web') async function main (url) { try { let text = await web.get(url) console.log(text) } catch (error) { console.log('error:' + error) } } main(process.argv[2])
7ossamamahmoud/Problem-Solving-Answers
Answers of Sheet#1 of Assuit University/L - The Brothers.cpp
#include <iostream> #include <iomanip> using namespace std; int main() { string F1, S1, F2, S2; cin >> F1 >> S1 >> F2 >> S2; if (S1 == S2) cout << "ARE Brothers"; else cout << "NOT"; return 0; }
frankgh/cassandra
test/distributed/org/apache/cassandra/distributed/test/DataResurrectionCheckTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
ehabhelmy/jedaah_attractions
app/src/main/java/com/spade/ja/ui/Home/profile/liked_events/LikedEventsContract.java
<filename>app/src/main/java/com/spade/ja/ui/Home/profile/liked_events/LikedEventsContract.java package com.spade.ja.ui.Home.profile.liked_events; import com.spade.ja.ui.Base.listener.BaseView; import com.spade.ja.ui.Base.listener.ErrorView; import com.spade.ja.ui.Base.listener.ProgressView; import com.spade.ja.ui.Home...
bcs4313/WebCheckers-Project-Archived
src/main/java/com/webcheckers/model/RuleSystem/InitJumpRule.java
<filename>src/main/java/com/webcheckers/model/RuleSystem/InitJumpRule.java package com.webcheckers.model.RuleSystem; import com.webcheckers.model.GameBoard; public class InitJumpRule extends Rule { // handler for all basic rules private final RuleMaster master; // if not null, force ONLY a check at this...
richarddd/ably-js
spec/browser/connection.test.js
'use strict'; define(['ably', 'shared_helper'], function(Ably, helper) { var exports = {}, _exports = {}, closeAndFinish = helper.closeAndFinish, monitorConnection = helper.monitorConnection, simulateDroppedConnection = helper.simulateDroppedConnection, transportPreferenceName = 'ably-transport-preference'; ...
priyankamalviya/reactmaterialuisample
src/components/BasicExamples/PropsExample.js
import React, { Component, PropTypes } from 'react'; export default class PropsExample extends Component{ constructor(props) { super(props) }; render(){ const {intl} = this.props; return ( <div> <h3>Props Example</h3> <p>This example demonstartes how to use a react component with ...
siebenfarben/webdriverio
test/spec/functional/endAll.js
const WebdriverIO = require('../../../') describe('endAll', () => { it('should delete multiple sessions', async function () { // at the beginning there is only one session (await this.client.sessions()).value.should.have.length(1) // create two new session const testDriverA = Webdr...
alexavila150/luciddb
fennel/calculator/RegisterReference.cpp
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
httplab/roadie
spec/lib/roadie/test_provider_spec.rb
<filename>spec/lib/roadie/test_provider_spec.rb # frozen_string_literal: true require 'spec_helper' require 'roadie/rspec' describe TestProvider do subject(:provider) { TestProvider.new } it_behaves_like "roadie asset provider", valid_name: "existing.css", invalid_name: "invalid.css" do subject { TestProvide...
iopsthecloud/aspiratv
matcher/matcher.go
package matcher import ( "encoding/json" "errors" "os" "path/filepath" "regexp" "strings" "text/template" "github.com/simulot/aspiratv/metadata/nfo" ) // MatchRequest holds criterions for selecting show type MatchRequest struct { Provider string // Fields for matching Show string Title string // ShowID...
Pandinosaurus/geojs
src/version.js
<gh_stars>100-1000 /* global GEO_VERSION */ /** * The current geojs version. * * @alias geo.version * @constant * @type {string} */ module.exports = GEO_VERSION;
zhaomingjun/svg-path-commander
src/math/polygonLength.js
import distanceSquareRoot from './distanceSquareRoot'; /** * d3-polygon-length * https://github.com/d3/d3-polygon * * Returns the perimeter of a polygon. * * @param {number[][]} polygon an array of coordinates * @returns {number} the polygon length */ export default function polygonLength(polygon) { return p...
rafaelmartins/blogc
tests/blogc/check_sysinfo.c
<reponame>rafaelmartins/blogc /* * blogc: A blog compiler. * Copyright (C) 2014-2019 <NAME> <<EMAIL>> * * This program can be distributed under the terms of the BSD License. * See the file LICENSE. */ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <stdlib.h> #include <st...
RobbiNespu/hyperboria
nexus/actions/vote.py
<filename>nexus/actions/vote.py import aiopg from library.aiopostgres.pool_holder import AioPostgresPoolHolder from nexus.models.proto.operation_pb2 import \ DocumentOperation as DocumentOperationPb from pypika import ( PostgreSQLQuery, Table, ) from .base import BaseAction class SendDocumentOperationVot...
arushgupta/rails-sample-app
app/admin/user.rb
<gh_stars>0 ActiveAdmin.register User do menu parent: "Settings" before_filter :skip_sidebar!, only: :index permit_params :first_name, :last_name, :email, :is_active controller do def show @page_title = "User" end end index do selectable_column id_column column :first_name c...
aardvarck/rism
app/models/right/subject_types.rb
# frozen_string_literl: true module Right::SubjectTypes SUBJECT_TYPES = { 'Organization' => I18n.t('activerecord.models.organization.one'), 'OrganizationKind' => I18n.t('activerecord.models.organization_kind.one'), 'User' => I18n.t('activerecord.models.user.one'), 'Department' => I18n.t('activerecord...
kkurt/the-hand
src/test/scala/com/gilt/thehand/UtilSpec.scala
<filename>src/test/scala/com/gilt/thehand/UtilSpec.scala<gh_stars>0 package com.gilt.thehand import org.scalatest.FlatSpec import org.scalatest.Matchers class UtilSpec extends FlatSpec with Matchers { "Util.nestedSplit" should "work for a simple split" in { Util.nestedSplit("1,2,3,4") shouldBe Seq("1", "2", "3...
snapmeds/snapmeds
SnapMeds/src/com/dosage/TimePickerFragment.java
package com.dosage; import java.util.Calendar; import android.app.Dialog; import android.app.DialogFragment; import android.app.TimePickerDialog; import android.os.Bundle; import android.text.format.DateFormat; public class TimePickerFragment extends DialogFragment { private TimePickerDialog.OnTimeSetL...
nxtreaming/yt-dlp
yt_dlp/extractor/aenetworks.py
<filename>yt_dlp/extractor/aenetworks.py from .theplatform import ThePlatformIE from ..utils import ( ExtractorError, GeoRestrictedError, int_or_none, update_url_query, urlencode_postdata, ) class AENetworksBaseIE(ThePlatformIE): _BASE_URL_REGEX = r'''(?x)https?:// (?:(?:www|play|watch...
visor-tax/plaid-go
plaid/model_email.go
/* * The Plaid API * * The Plaid REST API. Please see https://plaid.com/docs/api for more details. * * API version: 2020-09-14_1.54.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package plaid import ( "encoding/json" ) // Email An object representing an email addr...
LeandroTk/Algorithms
competitive_programming/programming_contests/hacker_rank/cpp/introduction/library_fine.cpp
#include <iostream> using namespace std; int main() { int day1, day2, month1, month2, year1, year2; cin >> day1 >> month1 >> year1; cin >> day2 >> month2 >> year2; if (year1 == year2) { if (month1 == month2) { if (day1 <= day2) cout << 0 << endl; else cout << 15 * (day1 - day2) << endl; } el...
red-machine-games/goblin-base-server
test/runningCloudFunctionFromCloudFunctions-contract/cloudFunctions/cloudFunction42.js
if(args){ let give = await run('cloudFunction42', false); give.lack = lock.check(); FunctionResponse({ give }); } else { FunctionResponse({ exile: lock.check() }) }
luoyusoft/luoyublog-backend
src/main/java/com/jinhx/blog/controller/system/SysParamController.java
<filename>src/main/java/com/jinhx/blog/controller/system/SysParamController.java package com.jinhx.blog.controller.system; import com.jinhx.blog.common.aop.annotation.SuperAdmin; import com.jinhx.blog.common.util.MyAssert; import com.jinhx.blog.common.validator.ValidatorUtils; import com.jinhx.blog.common.validator.gr...