repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ytong82/leetcode-in-java
lt897/src/main/java/rookie/java/leetcode/lt897/App.java
package rookie.java.leetcode.lt897; import rookie.java.leetcode.lt897.iterative.Solution; public class App { public static void main( String[] args ) { /*TreeNode root = new TreeNode(5); TreeNode node = new TreeNode(3); TreeNode node2 = new TreeNode(6); root.left = node; root.right = node...
H2u-Hwng/CodinGame
Compete/Class of Code/Fastest Mode/log.py
# Problem: https://docs.google.com/document/d/1YHc6R-GoARbkeyZrlb6Zk5a9TvKoaKKy6YxtSOGM5cw/edit?usp=sharing from math import log n = int(input()) r = log(n,2) print(int(r) if '.0' in str(r) else -1)
appsignal/mono
lib/mono/cli.rb
# frozen_string_literal: true require "yaml" require "pathname" require "optparse" module Mono module Cli class Base include Shell include Command::Helper def initialize(options = {}) @options = options @config = Config.new(YAML.safe_load(File.read("mono.yml"))) @langu...
jzlotek/drexel-cs451
src/main/java/tbc/server/Lobby.java
<gh_stars>0 package tbc.server; import tbc.client.checkers.Board; import tbc.client.checkers.Color; import tbc.client.checkers.Piece; import tbc.client.components.ComponentStore; import tbc.shared.GameState; import tbc.shared.Move; import tbc.util.ConsoleWrapper; import tbc.util.SerializationUtilJSON; import tbc.util....
wieldo/meteor-app
imports/app/filter/highlight-auto.js
<reponame>wieldo/meteor-app import hljs from "highlight.js"; import jsfy from "jsfy"; export default () => { return function(input) { if (input) { return hljs.highlightAuto(jsfy(input)).value; } return input; }; };
preversewharf45/freetype-demo
engine/src/external/opengl/openglbuffer.h
/* * Implementation of the graphics buffer class interface */ #ifdef __OPENGL__ #ifndef __OPENGL_BUFFER_H__ #define __OPENGL_BUFFER_H__ #include "openglhelper.h" #include <graphics/buffer.h> #include <graphics/bufferlayout.h> namespace engine { namespace external { namespace opengl { //------------- VERTEX...
tencentyun/xiaowei-device-sdk
Device/CtrlModule/xweicontrol/App/AudioFocusManager.cpp
/* * Tencent is pleased to support the open source community by making XiaoweiSDK Demo Codes available. * * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the MIT License (the "License"); you may not use this file except in compliance * with the License. You may ob...
fabriciocgf/IOT_LoRa_Dashboard
test/DataModel/Config/WidgetData/DataWidgetData/MapWidgetDataTest.js
import Mocha, { describe, it, before } from 'mocha'; import { MapWidgetData } from '../../../../../src/DataModel/Config/WidgetData/DataWidgetData/MapWidgetData.js'; import Jsdom from 'mocha-jsdom'; import Chai, { expect } from 'chai'; import { View } from '../../../../../src/View/View.js'; /** ...
13927729580/hmdm-android
app/src/main/java/com/hmdm/launcher/App.java
<reponame>13927729580/hmdm-android<gh_stars>10-100 /* * Headwind MDM: Open Source Android MDM Software * https://h-mdm.com * * Copyright (C) 2019 Headwind Solutions LLC (http://h-sms.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
Abhis-123/Mallmetering
frontend/src/superadmin/components/setting/GeneralSetting.js
<filename>frontend/src/superadmin/components/setting/GeneralSetting.js import { Container } from '@material-ui/core' import React, { Component } from 'react' class GeneralSetting extends Component { render() { return ( <Container fluid className="main-content-container px-4 mt-3"> ...
arifparvez14/Basic-and-competetive-programming
Basic-Programming/Basic/Array_search.c
<reponame>arifparvez14/Basic-and-competetive-programming #include <stdio.h> int main() { int i,n,a[100],item,found=0; printf("How many number do u want:"); scanf("%d",&n); printf("\nEnter Elements of array:"); for(i=0;i<n;i++) { scanf("%d",&a[i]); } printf("The elements are:");...
mnutt/davros
app/components/davros-dropzone.js
<gh_stars>100-1000 import { bind } from '@ember/runloop'; import FileDropzone from 'ember-file-upload/components/file-dropzone/component'; import DragListener from 'ember-file-upload/system/drag-listener'; import { action } from '@ember/object'; const dragListener = new DragListener(); export default class DavrosUplo...
showerhhh/leetcode_java
src/t394.java
<filename>src/t394.java<gh_stars>0 import java.util.Stack; public class t394 { public static void main(String[] args) { String s = "3[a2[c]]"; Solution_t394 solution = new Solution_t394(); System.out.println(solution.decodeString(s)); } } class Solution_t394 { public String decodeS...
pawanup/thirdandgrove-com-gatsby
src/components/Capability/index.js
export { default } from './Capability';
TankNee/marktext
src/muya/lib/contentState/htmlBlock.js
import { VOID_HTML_TAGS, HTML_TAGS } from '../config' import { inlineRules } from '../parser/rules' const HTML_BLOCK_REG = /^<([a-zA-Z\d-]+)(?=\s|>)[^<>]*?>$/ const htmlBlock = ContentState => { ContentState.prototype.createHtmlBlock = function (code) { const block = this.createBlock('figure') block.functio...
SebastianWeberKamp/KAMP4APS
edu.kit.ipd.sdq.kamp4aps.aps/src/edu/kit/ipd/sdq/kamp4aps/model/aPS/BusComponents/BusComponentsFactory.java
/** */ package edu.kit.ipd.sdq.kamp4aps.model.aPS.BusComponents; import org.eclipse.emf.ecore.EFactory; /** * <!-- begin-user-doc --> * The <b>Factory</b> for the model. * It provides a create method for each non-abstract class of the model. * <!-- end-user-doc --> * @see edu.kit.ipd.sdq.kamp4aps.mod...
Devteamvietnam/iTap
src/main/java/com/devteam/module/account/AccountModel.java
package com.devteam.module.account; import java.util.List; import com.devteam.module.account.entity.*; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @NoArgsConstructor @Getter @Setter public class AccountModel { String loginId; Account account; UserProfile userProfile;...
miren521/qirui_saas
app/admin/view/public/js/goods_edit_attr.js
<gh_stars>1-10 var form, laytpl, layerIndex = -1, repeatFlag = false; var selectedBrand = [];//已选品牌 var selectedBrandCopy = [];//已选品牌初始不变,用于防止已关联的品牌,进行误操作 var deleteBrand = [];//要删除的品牌 var attrValueList = [];// 属性值列表 var deleteAttrValueList = [];//要删除的属性值 $(function () { $(".ns-custom-panel .custom-panel-content ...
Next-Gen-UI/Code-Dynamics
Leetcode/0395. Longest Substring with At Least K Repeating Characters/0395.java
<reponame>Next-Gen-UI/Code-Dynamics<filename>Leetcode/0395. Longest Substring with At Least K Repeating Characters/0395.java<gh_stars>0 class Solution { public int longestSubstring(String s, int k) { int ans = 0; for (int n = 1; n <= 26; ++n) ans = Math.max(ans, longestSubstringWithNUniqueCharacters(s,...
wangz315/RecipeCollection
app/src/main/java/comp3350/recipecollection/objects/Ingredient.java
package comp3350.recipecollection.objects; public class Ingredient{ private String name; private double amount; private String units; public Ingredient() { name = null; amount = 0; units = null; } public Ingredient(String newName, double newAmount...
wmarkow/xmb2mybb
xmb2mybb-core/src/main/java/vtech/xmb/grabber/db/mybb/repositories/MybbUserFieldsRepository.java
package vtech.xmb.grabber.db.mybb.repositories; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import vtech.xmb.grabber.db.mybb.entities.MybbUser; import vtech.xmb.grabber.db.mybb.entities.MybbUserFields; @Repository public interface MybbUserFieldsReposit...
MCMDEV/InvUI
InvUI/src/main/java/de/studiocode/invui/animation/impl/SoundAnimation.java
package de.studiocode.invui.animation.impl; import org.bukkit.Sound; public abstract class SoundAnimation extends BaseAnimation { public SoundAnimation(int tickDelay, boolean sound) { super(tickDelay); if (sound) addShowHandler((frame, index) -> getCurrentViewers().forEach(player -> ...
nguyenb-adsk/maya-usd
lib/usd/utils/util.cpp
// // Copyright 2020 Autodesk // // 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 ...
yanzhaoyl/lin-cms-java-core
core/src/main/java/io/github/talelin/core/util/EncryptUtil.java
package io.github.talelin.core.util; import com.amdelamar.jhash.Hash; import com.amdelamar.jhash.algorithms.Type; import com.amdelamar.jhash.exception.InvalidHashException; /** * 加密工具类 * * @author pedro@TaleLin */ public class EncryptUtil { /** * 设置密文密码 * * @param password <PASSWORD> * @r...
kandelk/Training-Repository
sample/Aws/emr/Analysis/analysis.py
<gh_stars>0 import io from configparser import ConfigParser from pyspark.sql import functions as func, SparkSession from pyspark.sql.functions import col from sample.Tweets.Utils.plot_utils import * def get_dataframe_from_view(view): return spark.read.jdbc( url=db_url, table=view, proper...
fleetbase/navigator-app
src/features/Shared/NavigationScreen.js
<reponame>fleetbase/navigator-app import React, { useState, useEffect, useCallback, createRef } from 'react'; import { ScrollView, View, Text, TouchableOpacity, TextInput, ActivityIndicator, RefreshControl, Alert, Dimensions } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; impo...
bwittman/shadow
src/main/java/shadow/tac/nodes/TACCatchRet.java
package shadow.tac.nodes; import shadow.ShadowException; import shadow.tac.TACVisitor; public class TACCatchRet extends TACNode { private final TACCatchPad catchPad; private final TACLabel label; public TACCatchRet(TACNode node, TACCatchPad catchPad, TACLabel label) { super(node); this.catchPad = catc...
H-Tatsuhiro/Com_Pro-Cpp
AtCoder/pakencamp-2020-day1/a/main.cpp
<reponame>H-Tatsuhiro/Com_Pro-Cpp #include <iostream> #include <cmath> #include <algorithm> #include <vector> using namespace std; int main() { cout << 2021 << endl; }
abhi0987/photocraft-image-editing-app
Pencil/app/src/main/java/pencil/abhishek/io/pencil/Photo_list.java
package pencil.abhishek.io.pencil; import android.app.Dialog; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Resources; import android.database.Cursor; import android.graphics.Bitmap; import andro...
ljcservice/autumn
src/main/java/com/ts/util/ConvertCharacter.java
package com.ts.util; import java.util.HashMap; import java.util.Map; public class ConvertCharacter { private static Map<String,String> map = new HashMap<String,String>(); static{ map.put("<", "&lt;"); map.put(">", "&gt;"); map.put("/", "&frasl;"); map.put("\"", "&quot;"); } public static Stri...
YoungTeam/kratos
net/yt/kratos/net/frontend/hanlder/command/UseHandler.java
<filename>net/yt/kratos/net/frontend/hanlder/command/UseHandler.java<gh_stars>0 /* * Copyright 2019 YoungTeam@Sogou 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 * * ...
gglin001/popart
willow/src/patterns/adamdecompose.cpp
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #include <memory> #include <onnxutil.hpp> #include <popart/ces/concatce.hpp> #include <popart/ces/flattence.hpp> #include <popart/ces/slicece.hpp> #include <popart/graph.hpp> #include <popart/ir.hpp> #include <popart/op/accumulate.hpp> #include <popart/op/adamco...
bbiletskyy/pipeline-oriented-analytics
tests/pipeline_oriented_analytics/transformer/feature/add_minutes_test.py
<reponame>bbiletskyy/pipeline-oriented-analytics import pytest from pyspark.sql.types import TimestampType from datetime import datetime from pipeline_oriented_analytics.transformer.feature import AddMinutes class TestAddMinutes(object): def test_transform(self, spark): df = spark.createDataFrame([(dateti...
sneumann/CRIMSy
ui/src/main/java/de/ipb_halle/lbac/material/bean/MaterialOverviewBean.java
<gh_stars>0 /* * Leibniz Bioactives Cloud * Copyright 2017 Leibniz-Institut f. Pflanzenbiochemie * * 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...
zipated/src
third_party/android_tools/sdk/sources/android-25/android/service/voice/VoiceInteractionSession.java
/** * Copyright (C) 2014 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
fuldaros/paperplane_kernel_wileyfox-spark
sources/drivers/misc/mediatek/gpu/mt6735/mali/drivers/gpu/arm/midgard/mali_kbase_instr.c
/* * * (C) COPYRIGHT ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you of this program is subject to the terms * of such GNU licence. * * A c...
theithec/pagetools
pagetools/models.py
<gh_stars>0 """Core models, managers and querysets for pagetools """ import warnings from django.conf import settings from django.db import models from django.utils.translation import get_language from django.utils.translation import gettext_lazy as _ from model_utils.choices import Choices from model_utils.models imp...
proglang/dts-generate-results
results/4_extract-code/code/changelog-parser/changelog-parser_1.js
var parseChangelog = require('changelog-parser')
tejpochiraju/onecourse-main
app/src/main/java/org/onebillion/onecourse/mainui/oc_countmore/OC_CountMore_S3.java
<reponame>tejpochiraju/onecourse-main<gh_stars>10-100 package org.onebillion.onecourse.mainui.oc_countmore; import android.graphics.Color; import android.graphics.PointF; import android.graphics.RectF; import android.view.View; import org.onebillion.onecourse.controls.OBControl; import org.onebillion.onecourse.contro...
tharakamd/integration-studio
components/studio-platform/plugins/org.wso2.integrationstudio.webui.core/src/org/wso2/integrationstudio/webui/core/composite/WebComposite.java
<reponame>tharakamd/integration-studio<filename>components/studio-platform/plugins/org.wso2.integrationstudio.webui.core/src/org/wso2/integrationstudio/webui/core/composite/WebComposite.java /* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version ...
srini009/ascent
src/rover/rover.hpp
<filename>src/rover/rover.hpp //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) Lawrence Livermore National Security, LLC and other Ascent // Project developers. See top-level LICENSE AND COPYRIGHT files for dates and // other details. No copyright assignment is required t...
Hussam-Turjman/FLDServer
fldserver/base/time/time_to_iso8601.h
<reponame>Hussam-Turjman/FLDServer<gh_stars>1-10 // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_TIME_TIME_TO_ISO8601_H_ #define BASE_TIME_TIME_TO_ISO8601_H_ #include "fldserver/fldserver_...
kuo77122/serverless-survey-forms
web/portal/src/constants/DragTypes.js
/** * @module DragTypes * Drag constants **/ // drag and drop Option export const DRAG_OPTION = 'DRAG_OPTION'; // drag and drop Question export const DRAG_QUESTION = 'DRAG_QUESTION'; // drag and drop Page export const DRAG_PAGE = 'DRAG_PAGE';
ronaldomg/Valim_EFS_REDIS
src/static/hacervosmaisemprestados.js
<reponame>ronaldomg/Valim_EFS_REDIS /**@preserve GeneXus Java 10_3_12-110051 on December 12, 2020 11:47:54.70 */ gx.evt.autoSkip = false; gx.define('hacervosmaisemprestados', false, function () { this.ServerClass = "hacervosmaisemprestados" ; this.PackageName = "" ; this.setObjectType("web"); this.setOnA...
ivanov/numpy
numpy/core/info.py
<reponame>ivanov/numpy """Defines a multi-dimensional array and useful procedures for Numerical computation. Functions - array - NumPy Array construction - zeros - Return an array of all zeros - empty - Return an unitialized array - shape ...
SmartDataProjects/ddm
lib/dataformat/fileop.py
<reponame>SmartDataProjects/ddm class Operation(object): """ Defines the base class for a data operation (transfer or deletion). """ # slots need to be defined to allow for the object to be loaded more quickly __slots__ = \ ['rid', 'lfn', 'source', 'status', 'created', 'start', 'end', 'bid'...
jaroslaw-wieczorek/Project_IP_Telephony_Python_Voip
JaroEliCall/gui/interaction_ui.py
<filename>JaroEliCall/gui/interaction_ui.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/afar/Dokumenty/Project_IP_Telephony_Python_Voip/JaroEliCall/gui/ui/interaction.ui' # # Created by: PyQt5 UI code generator 5.11.2 # # WARNING! All changes made in this file will be lost! fro...
mulanbay-face/mulanbay-face-server
mulanbay-api/src/main/java/cn/mulanbay/face/api/web/bean/response/chart/ChartPieSerieDetailData.java
package cn.mulanbay.face.api.web.bean.response.chart; /** * 饼图的数据明细 * * @author fenghong * @create 2017-07-10 21:44 */ public class ChartPieSerieDetailData { private String name; private Object value; public ChartPieSerieDetailData() { } public ChartPieSerieDetailData(String name, Object v...
zefciu/ralph_pricing
src/ralph_pricing/plugins/openstack.py
<reponame>zefciu/ralph_pricing<filename>src/ralph_pricing/plugins/openstack.py # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import datetime import collections import logging from django.co...
sarbull/components
packages/webcall-mobilon.js
{ "name": "webcall-mobilon.js", "url": "https://github.com/antirek/webcall-mobilon.js.git" }
wilebeast/FireFox-OS
B2G/gecko/intl/uconv/ucvcn/nsUCvCnCID.h
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef nsUCvCnCID_h___ #define ns...
huangyunbin/sofa-ark
sofa-ark-parent/core/common/src/main/java/com/alipay/sofa/ark/common/thread/CommonThreadPool.java
<filename>sofa-ark-parent/core/common/src/main/java/com/alipay/sofa/ark/common/thread/CommonThreadPool.java<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 regardin...
coderZsq/coderZsq.practice.server
study-notes/j2ee-collection/architecture/07-设计模式/src/main/java/com/sq/dp/designpattern/visitor/Project.java
<gh_stars>1-10 package com.sq.dp.designpattern.visitor; import java.util.ArrayList; import java.util.List; public class Project { private List<Employee> emps = new ArrayList<>(); public void add(Employee emp) { emps.add(emp); } public void remove(Employee emp) { emps.remove(emp); ...
kleister/kleister-go
kleister/pack/permit_pack_team_responses.go
// Code generated by go-swagger; DO NOT EDIT. package pack // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" models "github.com/kleister...
oirad21/react_oirad
node_modules/@fortawesome/pro-light-svg-icons/faCameraRetro.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fal'; var iconName = 'camera-retro'; var width = 512; var height = 512; var ligatures = []; var unicode = 'f083'; var svgPathData = 'M32 58V38c0-3.3 2.7-6 6-6h116c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6zm344 230c0-...
Fyee/Ihome-react-native
js/pages/data/component/health/index.js
<filename>js/pages/data/component/health/index.js import React, { Fragment } from 'react' import { View, Text, Image, StyleSheet, } from 'react-native' import { VictoryLine } from 'victory-native' import LinearGradient from 'react-native-linear-gradient' import { ListItem } from 'react-native-elements' import { Animate...
nfell2009/skript-parser
src/main/java/io/github/syst3ms/skriptparser/Skript.java
<gh_stars>0 package io.github.syst3ms.skriptparser; import io.github.syst3ms.skriptparser.event.ScriptLoadContext; import io.github.syst3ms.skriptparser.lang.Statement; import io.github.syst3ms.skriptparser.lang.Trigger; import io.github.syst3ms.skriptparser.registration.SkriptAddon; import java.util.ArrayList; impor...
rodb70/RDMnet
include/rdmnet/cpp/controller.h
<filename>include/rdmnet/cpp/controller.h /****************************************************************************** * Copyright 2020 ETC 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 L...
SerayaEryn/nodejs-sensor
src/metrics/optDependencies.js
<reponame>SerayaEryn/nodejs-sensor 'use strict'; exports.payloadPrefix = 'optDependencies'; exports.currentPayload = { gcstats: isAvailable('gcstats.js'), v8Profiler: isAvailable('v8-profiler-node8'), eventLoopStats: isAvailable('event-loop-stats') }; exports.activate = function() {}; exports.deactivate = funct...
Grosskopf/openoffice
main/sfx2/source/dialog/filtergrouping.cxx
<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 license...
wqw547243068/DS_Algorithm
CtCI/chapter20/20.11.cpp
<reponame>wqw547243068/DS_Algorithm #include <iostream> #include <cstdio> using namespace std; const int MAX_N = 100; int matrix[MAX_N][MAX_N]; struct SubSquare{ int row, col, size; }; inline int max(int a, int b){ return a > b ? a : b; } bool IsSquare(int row, int col, int size){ for(int i=0; i<size; +...
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/testsuite/c-c++-common/pr95378.c
/* { dg-do compile } */ #define seq_cst __ATOMIC_SEQ_CST extern int *i; extern int *j; extern const int *c; extern volatile int *v; extern const volatile int *cv; void load() { __atomic_load(c, i, seq_cst); __atomic_load(cv, i, seq_cst); __atomic_load(i, c, seq_cst); /* { dg-error "argument 2 of '__atomic_l...
QuantEcon/sphinx-tojupyter
docs/_build/jupyter_execute/directives.py
#!/usr/bin/env python # coding: utf-8 # (directives)= # # Directives # # The following directives are provided by this extension: # # ```{contents} # --- # depth: 1 # local: # --- # ``` # # ## Directive: exercise # # Exercise directives can be added to your text such as: # # ```{code-block} rst # .. exercise:: #...
2019-2020-IUT/M213-Bases-de-la-programmation-oriente-objet
src/TD4/vehicule/Vehicule.java
package TD4.vehicule; public class Vehicule { protected String marque; protected int dateAchat; protected double prixAchat; protected double prixCourant; public Vehicule() { marque = ""; dateAchat = 0; prixAchat = 0; prixCourant = 0; } public Vehicule(String s, int d, double pA) { this.marque = s;...
weforward/weforward-parent
weforward-protocol/src/main/java/cn/weforward/protocol/client/ext/RequestInvokeObject.java
/** * Copyright (c) 2019,2020 honintech * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
kit-sdq/eagle
port/src/main/java/edu/kit/ipd/eagle/port/xplore/IPath.java
<gh_stars>1-10 package edu.kit.ipd.eagle.port.xplore; import java.io.Serializable; import edu.kit.ipd.eagle.port.xplore.layer.ILayerEntry; /** * This interface defines a path in the exploration tree of hypotheses. * * @author <NAME> * */ public interface IPath extends Serializable { /** * Get a readable vers...
nathan-menhorn/xilinx-embeddedw-sonarcloud
XilinxProcessorIPLib/drivers/rfdc/doc/html/api/xrfdc__clock_8c.js
var xrfdc__clock_8c = [ [ "XRFdc_DynamicPLLConfig", "xrfdc__clock_8c.html#ga2390330eaf525d57a9500d298d712db1", null ], [ "XRFdc_GetClkDistribution", "xrfdc__clock_8c.html#ga378a2d5a17b1eeac656ccccdb20d0a0a", null ], [ "XRFdc_GetClockSource", "xrfdc__clock_8c.html#gadbda21c40278f6c95ce2a02f0d52c49c", null ],...
halvardmadsen/fjell
src/components/RelatedProducts.js
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import Img from 'gatsby-image'; import { graphql, Link } from 'gatsby'; //const isIE = /*@cc_on!@*/ false || !!document.documentMode; const RelatedProducts = ({ relatedproducts, title1 }) => { const [isIE, setIsIE] = useState(fa...
gregsoares/gregsoares.com
client/src/Components/ProjectSection/WixLandingPage.js
import React from "react"; export const WixLandingPage = () => { return ( <div className="mx-4 my-16 overflow-hidden border border-gray-700 rounded-md shadow-md sm:mx-auto lg:max-w-4xl md:max-w-2xl xs:max-w-lg sm:max-w-lg brand-lighterBlue"> <h3 className="my-6 text-2xl text-center text-gray-400 sm:text-3x...
ToxicJojo/github-issue-visualizer
app/js/filter/filter-date.js
// Filtes for issues that have been created between dateStart and dateEnd const filterDate = (issues, dateStart, dateEnd) => { return issues.filter((issue) => { const issueDate = new Date(issue.created_at) return (issueDate.getTime() > dateStart.getTime() && issueDate.getTime() < dateEnd.getTime()) }) ...
nodeca/nodeca.core
server/common/core/token_live.js
// - Create new token on client request // - Inject token to runtime for http requests // - Save token or update TLL // 'use strict'; const createToken = require('nodeca.core/lib/app/random_token'); const MAX_LIVE_TOKEN_TTL = 1 * 60 * 60; // 1 hour module.exports = function (N, apiPath) { N.validate(apiPath, {}...
xterminal86/nrogue
src/states/look-input-state.h
<gh_stars>1-10 #ifndef LOOKINPUTSTATE_H #define LOOKINPUTSTATE_H #include "gamestate.h" #include "position.h" class Player; class GameObject; class LookInputState : public GameState { public: void Init() override; void HandleInput() override; void Update(bool forceUpdate = false) override; void Pre...
lunny/xcodis
Godeps/_workspace/src/github.com/bsm/redeo/request.go
package redeo import ( "bufio" "io" "strconv" "strings" ) // Request contains a command, arguments, and client information type Request struct { Name string `json:"name"` Args []string `json:"args,omitempty"` Ctx interface{} `json:"ctx,omitempty"` client *Client } // Client returns the client func ...
lkd062819/decision
decision-core/src/main/java/com/decision/core/plugin/constant/DecisionConstant.java
package com.decision.core.plugin.constant; /** * @Author KD * @Date 2020/12/22 14:47 */ public class DecisionConstant { public static final String COMMON = "common"; public static final String DECISION_TRACE = "decision-trace"; public static final String DECISION_HEADER_VERSION = "decision.header.versio...
walterfan/snippets
python/decorator_test.py
registry = [] def register(func): print("register function {}".format(func)) registry.append(func) return func @register def hello(): print("hello") @register def world(): print("world") if __name__ == '__main__': hello() world() for func in registry: print("there is a registered {}".format(func))
esmanda3w/tp
src/main/java/seedu/pivot/model/investigationcase/UniqueCaseList.java
package seedu.pivot.model.investigationcase; import static java.util.Objects.requireNonNull; import static seedu.pivot.commons.util.CollectionUtil.requireAllNonNull; import java.util.Iterator; import java.util.List; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import seedu.pivot...
banwenmang/BBCamera
btime/src/main/java/com/shouyiren/btime/webser/identification/api/IdentificationSmsLog.java
package com.shouyiren.btime.webser.identification.api; import java.io.Serializable; import java.util.Date; /** * 作者:ZhouJianxing on 2017/7/1 10:51 * email:<EMAIL> */ public class IdentificationSmsLog implements Serializable { private static final long serialVersionUID = -6425455354358738376L; pri...
Klaital/vitasa-web
db/migrate/20181126230622_add_active_to_sites.rb
class AddActiveToSites < ActiveRecord::Migration[5.0] def change change_table :sites do |t| t.boolean :active, default: true end end end
PRASAD-DANGARE/JAVA
Program207.java
/////////////////////////////////////////////////////////// // // Description : Accept String From User And Check It Is Anagram Or Not V1 // Input : Int, Str // Output : Int, Str // Author : <NAME> // Date : 30 May 2021 // ///////////////////////////////////////////////////...
syntheticgio/fda-hive
vlib/ssci/math/nr/nr_pwt.cpp
/* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereby granted, free...
hankaibo/myspringboot
src/main/java/cn/mypandora/springboot/core/exception/LowerCaseClassNameResolver.java
package cn.mypandora.springboot.core.exception; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase; /** * LowerCaseClassNameResolver * * @author hankaibo * @date 2020/3/29 */ public class LowerCaseClassNameResolver extends TypeI...
sadhna-rana/react_small_app
app/containers/WeatherForcaste/selectors.js
<filename>app/containers/WeatherForcaste/selectors.js import { createSelector } from 'reselect'; /** * Direct selector to the weatherForcaste state domain */ const selectWeatherForcasteDomain = (state) => state.get('weatherForcaste'); /** * Other specific selectors */ /** * Default selector used by WeatherForc...
banderous/nfdiv-case-api
src/main/java/uk/gov/hmcts/divorce/caseworker/event/page/AlternativeServicePaymentConfirmation.java
<filename>src/main/java/uk/gov/hmcts/divorce/caseworker/event/page/AlternativeServicePaymentConfirmation.java package uk.gov.hmcts.divorce.caseworker.event.page; import uk.gov.hmcts.divorce.common.ccd.CcdPageConfiguration; import uk.gov.hmcts.divorce.common.ccd.PageBuilder; import uk.gov.hmcts.divorce.divorcecase.mode...
Lorak-mmk/Kalafior
libecho/src/QTInitializer.cc
#include "QTInitializer.h" QTInitializer::QTInitializer(int a_argc, char **a_argv) { if (QCoreApplication::instance() == nullptr) { app = new QCoreApplication(a_argc, a_argv); } qSetMessagePattern("[%{type}] %{function} Thread %{threadid} - %{message}"); } QTInitializer::~QTInitializer() { del...
HagenSR/byte_le_royale_2022
game/test_suite/tests/objects/test_bullet.py
import unittest from game.common.moving.damaging import bullet from game.common.moving.damaging.bullet import Bullet from game.common.stats import GameStats from game.common.hitbox import Hitbox class TestBullet(unittest.TestCase): def setUp(self): self.bltObj = Bullet((25, 25), False, range=5, ...
google-ar/chromium
third_party/WebKit/Source/modules/shapedetection/DetectedText.cpp
// Copyright 2017 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. #include "modules/shapedetection/DetectedText.h" #include "core/dom/DOMRect.h" namespace blink { DetectedText* DetectedText::create() { return new De...
joel-rich/ShieldBattery
server/migrations/20200518014720-fixed-rename-race-enum-values.js
<filename>server/migrations/20200518014720-fixed-rename-race-enum-values.js // We rename the `race` enum in this migration to be more in line with what we use in the rest of // the app. Note that Postgres 10+ has better syntax for doing this but we unfortunately still // support older versions. exports.up = async funct...
immbudden/buddeen
node_modules/core-js-pure/features/map/key-by.js
'use strict'; require('../../modules/es.map'); require('../../modules/esnext.map.key-by'); var Map = require('../../internals/path').Map; var mapKeyBy = Map.keyBy; module.exports = function keyBy(source, iterable, keyDerivative) { return mapKeyBy.call(typeof this === 'function' ? this : Map, source, iterable, keyDer...
cxcorp/MemWrite
lacuna/lacuna-core/src/test/java/cx/corp/lacuna/core/windows/winapi/MockPsapi.java
package cx.corp.lacuna.core.windows.winapi; import com.sun.jna.ptr.IntByReference; public class MockPsapi implements Psapi { private boolean enumProcessesReturnValue = true; private int[] enumProcessesPids = new int[0]; private int enumProcessesBytesReturned = 0; public void setEnumProcessesPids(int...
suomenriistakeskus/oma-riista-web
src/generated/java/fi/riista/sql/SQVesialue.java
<reponame>suomenriistakeskus/oma-riista-web package fi.riista.sql; import static com.querydsl.core.types.PathMetadataFactory.*; import com.querydsl.core.types.dsl.*; import com.querydsl.core.types.PathMetadata; import javax.annotation.Generated; import com.querydsl.core.types.Path; import com.querydsl.sql.ColumnMet...
isuhao/xylsxyls-xueyelingshuang
src/dtwsAccount/dtwsAccount/TaskLogin.h
<filename>src/dtwsAccount/dtwsAccount/TaskLogin.h<gh_stars>1-10 #pragma once #include "CTask/CTaskAPI.h" class TaskLogin : public CTask{ public: string account; string password; string bigServerName; string smallServerName; public: TaskLogin(); public: int Run(); void SuspendRun(); };
if1live/kanae
exchanges/reports.go
<filename>exchanges/reports.go package exchanges import ( "sort" "strings" "github.com/deckarep/golang-set" "github.com/if1live/kanae/kanaelib" "github.com/thrasher-/gocryptotrader/exchanges/poloniex" ) type Report struct { Asset string Currency string Rows []Exchange ticker poloniex.PoloniexTicke...
nwy140/TheWYGameDevelopmentFramework
WyFramework/Docs/html/class_game_framework_1_1_input_1_1_components_1_1_on_mouse_click_or_tap_load_level.js
var class_game_framework_1_1_input_1_1_components_1_1_on_mouse_click_or_tap_load_level = [ [ "RunMethod", "class_game_framework_1_1_input_1_1_components_1_1_on_mouse_click_or_tap_load_level.html#a77a798542de79f9b60794191e59b1c79", null ], [ "SceneName", "class_game_framework_1_1_input_1_1_components_1_1_on_mous...
codefacts/Elastic-Components
elasta-pipeline/src/main/java/elasta/pipeline/jsonwalker/JsonObjectTraverseFilter.java
<filename>elasta-pipeline/src/main/java/elasta/pipeline/jsonwalker/JsonObjectTraverseFilter.java<gh_stars>1-10 package elasta.pipeline.jsonwalker; /** * Created by sohan on 3/27/2017. */ public interface JsonObjectTraverseFilter { boolean filter(JsonObjectTraverseFunction.Params params); }
Vetch0710/hospital
src/main/java/com/ruoyi/project/system/controller/WebPatientController.java
<gh_stars>0 package com.ruoyi.project.system.controller; import com.ruoyi.common.constant.Constants; import com.ruoyi.common.constant.UserConstants; import com.ruoyi.common.exception.user.CaptchaException; import com.ruoyi.common.exception.user.CaptchaExpireException; import com.ruoyi.common.utils.MessageUtils; import...
huwlloyd-mmu/LockdownEngine
LJ2/Engine/DebugPrint.h
<filename>LJ2/Engine/DebugPrint.h #pragma once #include <string> #include <list> #include <SFML/Graphics.hpp> namespace LE { class DebugPrint { sf::Font font; const int fontSize = 30; const int lifetime = 2000; struct ConsoleLine { int age; std::string text; ConsoleLine() {} ConsoleLine(const s...
VladTheEvilCat/mcheli-port-1.12.2
mcheli/mcheli/aircraft/MCH_ItemFuel.java
/* */ package mcheli.mcheli.aircraft; /* */ /* */ import mcheli.wrapper.W_Item; /* */ import net.minecraft.entity.player.EntityPlayer; /* */ import net.minecraft.item.ItemStack; /* */ import net.minecraft.world.World; /* */ /* */ /* */ /* */ /* */ public class MCH_ItemFuel /* */...
mforoni/ruby-launch-plan
rspec/3.mocks/image_flipper/spec/image_flipper_spec.rb
# frozen_string_literal: true require 'spec_helper' require File.expand_path('../image_flipper', __dir__) RSpec.describe 'ImageFlipper' do it 'calls the flip method with the correct arguments' do mock = double('mini_magick') expect(mock).to receive(:flip).with('ruby.jpg') img = ImageFlipper.new(mock) ...
all-of-us/raw-data-repository
rdr_service/model/bq_workbench_researcher.py
from rdr_service.model.bq_participant_summary import BQGenderSchema, BQRaceSchema from rdr_service.model.bq_base import BQTable, BQSchema, BQView, BQField, BQFieldTypeEnum, BQFieldModeEnum, \ BQRecordField class BQDegreeSchema(BQSchema): degree = BQField('degree', BQFieldTypeEnum.STRING, BQFieldModeEnum.NULLA...
believe563/PostLeanredCodes
MultiUploadDemo/app/src/main/java/com/fengjianghui/com/multiuploaddemo/MainActivity.java
package com.fengjianghui.com.multiuploaddemo; import android.os.Environment; import android.os.Handler; import android.os.Message; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Toast; import java.io.File; import java...