repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
qisibajie/gildedrosekata
src/main/java/com/refactor/bootcamp/duplicated_code/example_3/Engineer.java
package com.refactor.bootcamp.duplicated_code.example_3; public abstract class Engineer { protected final double unit; public Engineer(double unit) { this.unit = unit; } abstract String getType(); }
ruiaa/toolpck
app/src/main/java/com/ruiaa/toolpck/tool/hardware/vibrate/VibratorActivity.java
package com.ruiaa.toolpck.tool.hardware.vibrate; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import com.ruiaa.toolpck.R; import com.ruiaa.toolpck.base.ToolbarActivity; import com.ruiaa.toolpck.databinding.ActivityVibrato...
enthought/traits-futures
traits_futures/tests/test_version.py
# (C) Copyright 2018-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
mykola-myhailov/fishpay-android
app/src/main/java/com/myhailov/mykola/fishpay/activities/MyGoodsActivity.java
package com.myhailov.mykola.fishpay.activities; import android.content.Intent; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.SearchView; import android.util.TypedValue; import android.view.LayoutInflater; ...
visdata/UrbanMotionAnalysis
mergeSrcDst.py
__author__ = 'lenovo' # merge 7,8,9, 17,18,19 # 23,385044,1475161225,39.90723,116.45485,dst # 23,1338467,1475163136,39.89888,116.66258,src # 23,1720138,1475161225,40.0033,116.40127,src # 23,1849304,1475164192,39.91667,116.11279,src # 23,1849304,1475164192,39.91667,116.11279,dst # 23,1910973,1475162934,39.86825,116.36...
ccubukcu/GeNIE
src/main/java/com/genie/utils/LoggableEntity.java
<gh_stars>1-10 package com.genie.utils; /** * * @author ccubukcu */ public interface LoggableEntity { }
bcloutier/PSNM
PythonPrograms/Programs/PythonCode/BackwardEulerNewtonIteration.py
<reponame>bcloutier/PSNM #!/usr/bin/env python """ A program to solve y'=y^2 using the backward Euler method and Newton iteration This is not optimized and is very simple """ import time import matplotlib.pyplot as plt N = 1000 # Number of timesteps tmax = 0.99 # Maximum value t0 = 0 #...
huangkaizhan/KZAnimation
KZAnimation/KZAnimation/Classes/Lib/AnimationCreater_lib.h
<gh_stars>0 // // AnimationCreater.h // 动画测试 // // Created by huangkaizhan on 2017/3/4. // Copyright © 2017年 huangkaizhan. All rights reserved. // #import <Foundation/Foundation.h> #import "AnimationModel_lib.h" @interface AnimationCreater_lib : NSObject /** 根据动画模型创建帧动画对象 @param model 动画模型 @return 帧动画 */ +...
atsid/avaje-ebeanorm
src/main/java/com/avaje/ebeaninternal/server/util/BeanCollectionFactory.java
<reponame>atsid/avaje-ebeanorm package com.avaje.ebeaninternal.server.util; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import com.avaje.ebean.bean.BeanCollection; import com.avaje.ebean.common.BeanList; import com.avaje.ebean.common.BeanMap; import com.avaje.e...
rohit0718/tp
src/test/java/seedu/address/logic/commands/DetailCommandTest.java
<filename>src/test/java/seedu/address/logic/commands/DetailCommandTest.java package seedu.address.logic.commands; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.addre...
newsdata/SHWVideoTemplate
SHWVideoTemplate/Frameworks/SHWMixMobile.framework/Headers/BPVideoMaskTypeDefine.h
<filename>SHWVideoTemplate/Frameworks/SHWMixMobile.framework/Headers/BPVideoMaskTypeDefine.h // // BPVideoMaskType.h // BeiPaiVideoEditor // // Created by yehot on 2019/12/4. // Copyright © 2019 <NAME>. All rights reserved. // #ifndef BPVideoMaskType_h #define BPVideoMaskType_h /// 此字段持久化在 json 中,枚举值不能改,只能新增! typ...
kjgarza/frame_experiment
test/functional/posts_controller_test.rb
require 'test_helper' class PostsControllerTest < ActionController::TestCase fixtures :all include AuthenticatedTestHelper test "get index" do create_test_posts get :index assert_response :success end test "should handle geting index when post owner are deleted" do create_test_posts #...
Rarysoft/u4
src/main/java/com/rarysoft/u4/Launcher.java
/* * MIT License * * Copyright (c) 2020 Rarysoft Enterprises * * 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 * t...
ramitos/TermKit
src/public/js/output/widgets/icon.js
console.log('REQUIRED: WIDGET.ICON'); var widgets = require('../factory').widgets, node = require('../node'); /** * Widget: File icon. * * Icon loading is collectively throttled. */ var icon = module.exports = function (properties) { console.log('NEW OUTPUT.FRAME.WIDGET.ICON'); // Initialize node. node.c...
alearcy/composer_controller
app/src/store/actions/elementsAction.js
import * as actions from '../../constants/actionConstants'; export function lockElement(obj) { return { type: actions.LOCK_ELEMENT, payload: obj.id }; } export function updateElementSize(ref, id) { return { type: actions.UPDATE_ELEMENT_SIZE, payload: { ref, id } }; } export fu...
tiagoadmstz/angular-spring-algaworks
algamoney-api/src/main/java/io/github/tiagoadmstz/algamoney/api/properties/config/AlgamoneyApiProperties.java
package io.github.tiagoadmstz.algamoney.api.properties.config; import lombok.Data; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; @Data @ConfigurationProperties("algamoney") public class AlgamoneyApiProperties { private String allowOrigin =...
MitaliBo/public
junk/errors/debug_test.go
// Copyright 2017 <NAME>. All rights reserved. // Copyright 2016 The Upspin Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build debug package errors_test import ( "fmt" "regexp" "strings" "testing" "cirello.io/errors" )...
jwestmoreland/eZdsp-DBG-sim
tmp1/c55x-sim2/foo/c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v3.3_examples/memory/example2/csl_saram_retention_example.c
<filename>tmp1/c55x-sim2/foo/c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v3.3_examples/memory/example2/csl_saram_retention_example.c /* ============================================================================ * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005, 2008 * * Use of this software is contro...
WachterJud/qaul.net_legacy
pjproject_android/pjsip/src/test/uri_test.c
<reponame>WachterJud/qaul.net_legacy<filename>pjproject_android/pjsip/src/test/uri_test.c<gh_stars>1-10 /* $Id: uri_test.c 3553 2011-05-05 06:14:19Z nanang $ */ /* * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 <NAME> <<EMAIL>> * * This program is free software; you can redis...
v0idp/virtuoso-codegen
include/Firebase/Firestore/FirestoreCpp.hpp
// 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 type: Firebase.Firestore.DocumentSnapshot...
MashMB/1pass
1pass-app/gui/helpwidget.go
// Contextual help widget. // // @author TSS package gui import ( "fmt" "strings" "github.com/jroimartin/gocui" ) const ( mainHelp string = `Exit: CTRL+Q Lock: CTRL+L` ) type helpWidget struct { name string title string help string } func newHelpWidget() *helpWidget { return &helpWidget{ name: "help"...
RdecKa/bark
bark/runtime/scenario/scenario_generation/config_readers/dynamic_model_config_readers.py
<gh_stars>0 # Copyright (c) 2020 fortiss GmbH # # Authors: <NAME>, <NAME>, <NAME> and # <NAME> # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. from bark.runtime.scenario.scenario_generation.config_readers.config_readers_interfaces import ConfigRe...
vovietanh/tomox-sdk-ui
src/store/models/walletPage.js
// @flow import { getAccountBalancesDomain, getAccountDomain, getTokenDomain, getTransferTokensFormDomain, } from '../domains' import * as actionCreators from '../actions/walletPage' import { quoteTokenSymbols } from '../../config/quotes' import { push } from 'connected-react-router' import type { State, Thunk...
gamblor21/Adafruit_Learning_System_Guides
Getting_Started_With_Raspberry_Pi_Pico/traffic_light_crossing/code.py
<gh_stars>100-1000 """Traffic light with pedestrian crossing simulator example for Pico. Turns on red, amber and green LEDs in traffic light-like sequence. When button is pressed, upon light sequence completion, the red LED turns on and the buzzer beeps to indicate pedestrian crossing is active. REQUIRED HARDWARE: * R...
Rikoshet-234/xray-oxygen
code/engine.vc2008/xrGame/stalker_combat_actions.h
//////////////////////////////////////////////////////////////////////////// // Module : stalker_combat_actions.h // Created : 25.03.2004 // Modified : 26.03.2004 // Author : <NAME> // Description : Stalker combat action classes //////////////////////////////////////////////////////////////////////////// #pragma ...
akatz2/openessence-demo
open-detectors/src/main/java/edu/jhuapl/bsp/detector/Ears.java
<reponame>akatz2/openessence-demo<filename>open-detectors/src/main/java/edu/jhuapl/bsp/detector/Ears.java /* * Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory * All rights reserved. * * This material may be used, modified, or reproduced by or for the U.S. * Go...
mzcstech/mzcsfrontend
src/components/socialsecurity/store/reducer.js
<reponame>mzcstech/mzcsfrontend<gh_stars>1-10 // import * as actionType from './actionType' import {fromJS} from 'immutable' let PrivilegeReducer = fromJS({ personinformations:[] }) export default (state = PrivilegeReducer, action) => { if(action.type === "EDIT_PERSONINFORMATIONS" ){ return state.me...
umjammer/vavi-nio-file-discutils
src/main/java/DiscUtils/OpticalDisk/DiscImageFile.java
<gh_stars>0 // // Copyright (c) 2008-2011, <NAME> // // 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, mod...
rizkimohamadd/aplikasi-akademik
src/main/java/id/ac/tazkia/akademik/aplikasiakademik/dao/PresensiMahasiswaDao.java
<reponame>rizkimohamadd/aplikasi-akademik package id.ac.tazkia.akademik.aplikasiakademik.dao; import id.ac.tazkia.akademik.aplikasiakademik.dto.RekapMissAttendance; import id.ac.tazkia.akademik.aplikasiakademik.entity.*; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.P...
hao-wang/Montage
js-test-suite/testsuite/c64e2674ba637178daf0f0175f0643cc.js
load("201224b0d1c296b45befd2285e95dd42.js"); // Test that Debugger.Frame.prototype.environment works at all pcs of a script // with an aliased block scope. var g = newGlobal(); var dbg = new Debugger(g); dbg.onDebuggerStatement = function (frame) { frame.onStep = (function () { frame.environment; }); }; g.eval("deb...
Semestre5/AMT_Projet
src/test/java/DbOpsTests/TestCategories.java
package DbOpsTests; import com.DAO.Access.ArticleOps; import com.DAO.Access.CategoryOps; import com.DAO.Objects.Article; import com.DAO.Objects.Category; import org.junit.jupiter.api.Test; import java.util.List; import java.util.Set; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.ju...
mfleming/cassandra-dtest
meta_tests/dtest_config_test.py
<reponame>mfleming/cassandra-dtest<filename>meta_tests/dtest_config_test.py import os from re import search from unittest import TestCase from dtest_config import DTestConfig from mock import Mock, patch from pytest import UsageError, raises import ccmlib.repository import ccmlib.common def _mock_responses(responses...
jmar910/ember-data-github
tests/helpers/utils/defined-attribute-assertion-builder.js
export default function(keys) { return function(object, message) { let allDefined = true; let undefinedKeys = []; keys.forEach(key => { if (object.get(key) === undefined) { allDefined = false; undefinedKeys.push(key); } }); let realMessage = message || 'Undefined keys'...
MilkyBoat/present-for-best-TA
src/main/java/com/android/cglib/p008dx/p015c/p017b/C0243l.java
package com.android.cglib.p008dx.p015c.p017b; import bsh.ParserConstants; import com.android.cglib.p008dx.p020d.C0295i; /* renamed from: com.android.cglib.dx.c.b.l */ public final class C0243l { /* renamed from: a */ public static String m1721a(int i) { switch (i) { case 1: ...
KyuBlade/Amazehing
core/src/com/omega/amazehing/game/entity/component/ai/path/PathComponent.java
package com.omega.amazehing.game.entity.component.ai.path; import com.badlogic.ashley.core.Component; import com.badlogic.gdx.utils.Pool.Poolable; import com.omega.amazehing.game.ai.pathfinding.ConnectionGraphPath; public class PathComponent implements Component, Poolable { private ConnectionGraphPath path; ...
wanglei339/wms-test
wms-api/src/main/java/com/lsh/wms/api/service/wave/IWaveService.java
<reponame>wanglei339/wms-test package com.lsh.wms.api.service.wave; import com.lsh.base.common.exception.BizCheckedException; import com.lsh.wms.model.wave.WaveRequest; /** * Created by zengwenjun on 16/9/6. */ public interface IWaveService { String createAndReleaseWave(WaveRequest request) throws BizCheckedExc...
Mattlk13/vscode-nextgenas
check-royale-version/src/main/java/com/as3mxml/vscode/CheckRoyaleVersion.java
<gh_stars>0 /* Copyright 2016-2019 Bowler Hat LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
ChinaLym/Shoulder-Framework
shoulder-build/shoulder-base/shoulder-batch/src/main/java/org/shoulder/batch/repository/JdbcBatchRecordPersistentService.java
<filename>shoulder-build/shoulder-base/shoulder-batch/src/main/java/org/shoulder/batch/repository/JdbcBatchRecordPersistentService.java<gh_stars>1-10 package org.shoulder.batch.repository; import org.shoulder.batch.model.BatchRecord; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.co...
carlosraphael/specification-pattern
src/test/java/com/github/carlosraphael/specificationpattern/predicate/PredicatesTest.java
package com.github.carlosraphael.specificationpattern.predicate; import com.github.carlosraphael.specificationpattern.entity.Specification; import com.github.carlosraphael.specificationpattern.entity.SpecificationOperator; import com.github.carlosraphael.specificationpattern.entity.fieldspecification.FieldOperator...
takashiharano/util
java/src/test/java/com/libutil/test/str/StrUtilTest.java
package com.libutil.test.str; import com.libutil.FileUtil; import com.libutil.StrUtil; import com.libutil.test.Log; public class StrUtilTest { public static void main(String args[]) { text2arrayTest(); countStrPatternTest(); quoteTest(); intnum2decimalTest(); trimZerosTest(); encodeUriTest(...
WenjieXu/ogs
MeshLib/MeshEnums.h
<filename>MeshLib/MeshEnums.h /** * \file * \author <NAME> * \date 2012-05-02 * \brief Definition of mesh-related Enumerations. * * \copyright * Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file...
geant-multicloud/MCMS-mastermind
src/waldur_core/core/signals.py
<filename>src/waldur_core/core/signals.py import django.dispatch # TODO: Make all the serializers emit this signal pre_serializer_fields = django.dispatch.Signal(providing_args=['fields']) # This signal allows to implement deletion validation in dependent # application without introducing circular dependency pre_dele...
Grimace1975/bclcontrib-scriptsharp
ref.neo/sys/osx/showcursor.c
/* cc -o showcursor showcursor.c -framework IOKit */ #include <IOKit/IOKitLib.h> #include <IOKit/hidsystem/IOHIDShared.h> #include <assert.h> mach_port_t masterPort; io_connect_t OpenEventDriver( void ) { register kern_return_t kr; mach_port_t ev, service, iter; kr = IOServiceGetMatchingServices( mast...
stazman/sfsourcer
app/models/pledge.rb
<gh_stars>0 class Pledge < ApplicationRecord belongs_to :funding_project has_many :fp_backer_pledges has_many :fp_backers, through: :fp_backer_pledges # has_many :funding_project_pledges # has_many :funding_projects, through: :funding_project_pledges # validates_presence_of :amount # val...
KevinHe666/learn-interview
learn/src/main/java/com/kevin/learn/learn/jvm/class1/ClassYoung/TestMaxObject.java
<filename>learn/src/main/java/com/kevin/learn/learn/jvm/class1/ClassYoung/TestMaxObject.java<gh_stars>1-10 package com.kevin.learn.learn.jvm.class1.ClassYoung; /** * @Description: 测试大对象 * @Author: Kevin * @Create 2019-07-03 11:02 */ public class TestMaxObject { public static void main(String[] args) { ...
ashariati/gtsam-3.2.1
doc/html/a00083.js
<gh_stars>10-100 var a00083 = [ [ "EssentialMatrixFactor", "a00083.html#a9edbb5ac88824e6c9e87b5b979e5b5a5", null ], [ "EssentialMatrixFactor", "a00083.html#ae683f489d5cfad2f4ea6a9840820808c", null ], [ "clone", "a00083.html#ac0c66faf7d8a3ac8e16fc35f09689d9a", null ], [ "evaluateError", "a00083.html#a746...
Aaron1011/travis-core
spec/travis/features_spec.rb
require 'spec_helper' describe Travis::Features do before do Travis.instance_variable_set(:@config, nil) end it "should delegate to rollout" do expect { Travis::Features.info(:short_urls) }.to_not raise_error end describe "feature checks" do include Support::ActiveRecord before do ...
Tikubonn/nanafy
test/nanafy/nanafy-symbol/src/test-nanafy-symbol.h
extern void test_nanafy_symbol ();
huluobo11/demo-collection
firstboot01/src/main/java/com/hu/service/impl/MenusServiceImpl.java
package com.hu.service.impl; import com.hu.dao.MenusRepository; import com.hu.pojo.Menus; import com.hu.service.MenusService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Service; import javax.annotation.Resourc...
nippur72/basicv2
src/main/java/com/sixtyfour/Assembler.java
<filename>src/main/java/com/sixtyfour/Assembler.java package com.sixtyfour; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import com.sixtyfour.config.CompilerConfig; import com.sixtyfour.eleme...
tophatmonocle/dd-trace-py
ddtrace/utils/formats.py
<reponame>tophatmonocle/dd-trace-py<gh_stars>0 import os from .deprecation import deprecation def get_env(integration, variable, default=None): """Retrieves environment variables value for the given integration. It must be used for consistency between integrations. The implementation is backward compatible ...
WonderingBug/presto
presto-cache/src/main/java/com/facebook/presto/cache/alluxio/AlluxioCachingClientFileSystem.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
ITUROBLAB/-itu_odv_ws-idincern-
Arduino Libraries/libraries/ros_lib/waypoints/waypoint_group.h
<filename>Arduino Libraries/libraries/ros_lib/waypoints/waypoint_group.h #ifndef _ROS_waypoints_waypoint_group_h #define _ROS_waypoints_waypoint_group_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" namespace waypoints { class waypoint_group : public ros::Msg { public: ...
justinctlam/MarbleStrike
game/code/common/engine/system/fixedstring.hpp
#ifndef FIXED_STRING_HPP #define FIXED_STRING_HPP ////////////////////////////////////////////////////// // INCLUDES ////////////////////////////////////////////////////// #include <string.h> #include "common/engine/system/fixedstring.hpp" #include "common/engine/system/memory.hpp" #include "common/engine/system/asse...
texpert/faker
test/test_faker_one_piece.rb
<reponame>texpert/faker<filename>test/test_faker_one_piece.rb require_relative 'test_helper' class TestFakerOnePiece < Test::Unit::TestCase def setup @tester = Faker::OnePiece end def test_character assert @tester.character.match(/\w+/) end def test_sea assert @tester.sea.match(/\w+/) end ...
OpenSourceCTF/website
client/components/server-picker/container.js
<reponame>OpenSourceCTF/website import React, { Component } from 'react' import { observer, inject } from 'mobx-react' import PropTypes from 'prop-types' import ServerPickerPage from './server-picker' @inject('matchmaking') @observer class ServerPickerPageContainer extends Component { static propTypes = { matchmak...
matt-clarson/gratitude-journal
gratitude_journal_service/entries/tests/test_delete_entry.py
<reponame>matt-clarson/gratitude-journal<gh_stars>0 from tests.utils import TestCase from unittest.mock import Mock from django.contrib.auth.models import AnonymousUser, User from graphene import Schema from graphene.test import Client from entries.models import Entry from entries.schema import Query, Mutation from en...
resource-watch/manager
components/admin/coredatasets/CoreDatasetsTab.js
<reponame>resource-watch/manager import React from 'react'; import PropTypes from 'prop-types'; // Components import CoreDatasetsIndex from 'components/admin/coredatasets/pages/index'; import CoreDatasetsNew from 'components/admin/coredatasets/pages/new'; import CoreDatasetsShow from 'components/admin/coredatasets/pag...
kos-lang/kos
inc/kos_memory.h
/* SPDX-License-Identifier: MIT * Copyright (c) 2014-2021 <NAME> */ #ifndef KOS_MEMORY_H_INCLUDED #define KOS_MEMORY_H_INCLUDED #include "kos_api.h" #include <stddef.h> #ifdef __cplusplus extern "C" { #endif /* Variable-size allocator without ability to free items */ struct KOS_MEMPOOL_S { size_t free_size; ...
chevah/compat
chevah/compat/tests/normal/testing/test_assertion.py
# Copyright (c) 2015 <NAME>. # See LICENSE for details. """ Tests for the assertion helpers. """ from __future__ import print_function from __future__ import division from __future__ import absolute_import import os from chevah.compat.exceptions import CompatError from chevah.compat.testing import ChevahTestCase, mk ...
fergy/aplit_linux-5
fs/cifs/cache.c
/* * fs/cifs/cache.c - CIFS filesystem cache index structure definitions * * Copyright (c) 2010 Novell, Inc. * Authors(s): <NAME> (<EMAIL>> * * 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 Fre...
kfr2/singularity-core
src/components/BrowseAddonsWindow/index.js
import './BrowseAddonsWindow.css'; import 'simplebar/dist/simplebar.min.css'; import SimpleBar from 'simplebar-react'; import * as React from 'react'; import { Row, Col, Form, DropdownButton, Dropdown } from 'react-bootstrap'; import BootstrapTable from 'react-bootstrap-table-next'; import InfiniteScroll from 'react-i...
ScarlettRay/WeiBoManger
weiboapi/src/main/java/xyz/iamray/weiboapi/spider/action/DeliverBlogAction.java
<reponame>ScarlettRay/WeiBoManger package xyz.iamray.weiboapi.spider.action; import com.alibaba.fastjson.JSONObject; import lombok.extern.slf4j.Slf4j; import xyz.iamray.action.impl.AbstractJsonObjectCrawlerAction; import xyz.iamray.repo.CrawlMes; import xyz.iamray.weiboapi.common.constant.TextConstant; import xyz.iamr...
hasancelik/hazelcast-stabilizer
simulator/src/main/java/com/hazelcast/simulator/cluster/WorkerConfigurationConverter.java
<filename>simulator/src/main/java/com/hazelcast/simulator/cluster/WorkerConfigurationConverter.java<gh_stars>0 /* * Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
gritwyplay/Storm
src/lib/support/expect/withinRange.js
<reponame>gritwyplay/Storm export default (chai, _) => { const Assertion = chai.Assertion const flag = _.flag Assertion.addMethod('withinRange', function(floor, ceiling, msg) { if (msg) flag(this, 'message', msg) const value = this._obj this.assert( value >= floor && value <= ceiling, 'ex...
NaturalHistoryMuseum/taxonworks
app/models/nomenclatural_rank/icnp/higher_classification_group/subclass.rb
<reponame>NaturalHistoryMuseum/taxonworks class NomenclaturalRank::Icnp::HigherClassificationGroup::Subclass < NomenclaturalRank::Icnp::HigherClassificationGroup def self.parent_rank NomenclaturalRank::Icnp::HigherClassificationGroup::ClassRank end def self.validate_name_format(taxon_name) super ret...
xbabka01/retdec-regression-tests
bugs/unhandled-type-catched-assert/float_P61501.c
<filename>bugs/unhandled-type-catched-assert/float_P61501.c /* File: P61501.c Version: 1.5 Date: 2001/10/31 * CVSA, ANSI/ISO C Validation Suite * Type: Positive test for Clause 6 (Language) * Copyright 1997, PERENNIAL, All Rights Reserved */ /*--------------------------------------------------------------------*\ ...
chachi21/owl-s
src/impl/owls/grounding/JavaParameterImpl.java
<gh_stars>1-10 package impl.owls.grounding; import org.mindswap.owl.OWLIndividual; import org.mindswap.owls.grounding.JavaParameter; import org.mindswap.owls.vocabulary.MoreGroundings; public class JavaParameterImpl extends JavaVariableImpl implements JavaParameter { public JavaParameterImpl(OWLIndividua...
MightyKnight/Fabric---Discord-Link
versions/fabric/1.16.5/src/main/java/fr/arthurbambou/fdlink/compat_1_16/Message1_16.java
<reponame>MightyKnight/Fabric---Discord-Link<filename>versions/fabric/1.16.5/src/main/java/fr/arthurbambou/fdlink/compat_1_16/Message1_16.java package fr.arthurbambou.fdlink.compat_1_16; import fr.arthurbambou.fdlink.api.minecraft.Message; import fr.arthurbambou.fdlink.api.minecraft.style.Style; import java.util.Arr...
ironydips/new-ui-bathwaterkids
app/pickup-delivery-management/delivery-trucks/delivery-trucks-assign-modal/delivery-trucks-assign-modal.component.js
<reponame>ironydips/new-ui-bathwaterkids (function(angular) { 'use strict'; function deliverytruckModalController($state, TruckService, DriverService, PickupTruckService) { var ctrl = this; ctrl.assign = (ctrl.resolve && ctrl.resolve.details) || {}; ctrl.init = function() { ...
Samspson/golang_learn_ubuntu
go_basic/ch3/musicer/src/mlibrary/manager_test.go
<gh_stars>0 package mlibrary import ( "testing" ) func TestOps(t *testing.T) { mm := NewMusicManager() if mm == nil { t.Error("NewMusicManger failed.") } if mm.Len() != 0 { t.Error("NewMusicManger failed, not empty.") } m0 := &MusicEntry{ "1", "My Heart Will Go On", "<NAME>", Pop, "http://qbox.me//2450...
alexus37/AugmentedRealityChess
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/testingcontext.py
"""Functions for acquiring and instantiating available testing contexts Testing modules can use these abstract functions to allow for automatic adaptation to new interactive contexts. You should not use this module for real world applications, as it is unlikely that nontrivial code will be completely stable across al...
rob-blackbourn/scratch-python
blog-rest-api/blog_rest_api/server.py
<reponame>rob-blackbourn/scratch-python import logging logger = logging.getLogger(__name__) from aiohttp import web import asyncio from motor.motor_asyncio import AsyncIOMotorClient from blog_rest_api.config import CONFIG from blog_rest_api.controllers import AuthController, UserController from blog_rest_api.models i...
francisvm/swift
lib/AST/TypeJoinMeet.cpp
//===--- TypeJoinMeet.cpp - Swift Type "join" and "meet" -----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
green-fox-academy/eugene2candy
week-02/day-3/is-in-list.js
<gh_stars>0 'use strict'; // Check if array contains all of the following elements: 4,8,12,16 // Create a function that accepts 'listOfNumbers' as an input // it should return "true" if it contains all, otherwise "false" let listOfNumbers = [2, 4, 6, 8, 10, 12, 14, 16]; function checkNums(params) { let mes; if (p...
tico88612/Solution-Note
UVa/11388.cpp
// // 11388.cpp // // // Created by 楊承昊 on 2017/4/28. // // #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0);cin.tie(0); int T; cin>>T; while(T--) { long long int ans=0; long long int G,L,sum; cin>>G>>L; sum=G*L; if(L%G) ...
NovasomIndustries/Utils-2019.01
rock/app/music/music/middle/musiclistwidget.cpp
#include "musiclistwidget.h" #include "constant.h" #include <QHBoxLayout> #ifdef DEVICE_EVB int header_height = 70; #else int header_height = 35; #endif PlayListHeader::PlayListHeader(QWidget *parent) : BaseWidget(parent) { setFixedHeight(header_height); setCursor(Qt::PointingHandCursor); ...
Paschalis/android-llvm
tools/class2greylist/src/com/android/class2greylist/MemberDumpingVisitor.java
<gh_stars>10-100 package com.android.class2greylist; import org.apache.bcel.classfile.DescendingVisitor; import org.apache.bcel.classfile.EmptyVisitor; import org.apache.bcel.classfile.Field; import org.apache.bcel.classfile.FieldOrMethod; import org.apache.bcel.classfile.JavaClass; import org.apache.bcel.classfile.Me...
arthurpaimarnold/go-hdb
internal/protocol/message.go
<gh_stars>1-10 /* Copyright 2014 SAP SE Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
ignisf/feedbin
config/initializers/whitelist.rb
Feedbin::Application.config.whitelist = HTML::Pipeline::SanitizationFilter::WHITELIST.clone Feedbin::Application.config.whitelist[:attributes][:all] += ['id'] Feedbin::Application.config.whitelist[:attributes]['source'] = ['src'] Feedbin::Application.config.whitelist[:attributes]['video'] = ['src'] Feedbin::Application...
tommywaltion/BOTS
commands/ban.js
<reponame>tommywaltion/BOTS const discord = require("discord.js") module.exports.run = async(bot, message, args) => { if(!message.member.hasPermission('MENAGE_MESSAGES')){ message.channel.send(`You dont have the permission to use this commands`); return; } let bUser = message.guild.member(message....
luwei0917/GlpG_Nature_Communication
src/USER-SMD/smd_material_models.cpp
<gh_stars>1-10 /* ---------------------------------------------------------------------- * * *** Smooth Mach Dynamics *** * * This file is part of the USER-SMD package for LAMMPS. * Copyright (2014) <NAME>, <EMAIL> * Fraunhofer Ernst-Mach Institute for High-Speed Dynamics, EMI, * Eckerstrasse ...
GoogleForCreators/web-stories-wp
packages/migration/src/migrations/test/v0042_removeTrackName.js
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
vjeko/CorfuDB
generator/src/main/java/org/corfudb/generator/StringIndexer.java
package org.corfudb.generator; import org.corfudb.runtime.collections.CorfuTable; import org.corfudb.runtime.collections.CorfuTable.Index; import java.util.Iterator; import java.util.Optional; import java.util.stream.Stream; public class StringIndexer implements CorfuTable.IndexRegistry<String, String> { public...
ayoub-root/graflow
test/unit/Hub.js
<filename>test/unit/Hub.js<gh_stars>10-100 import { Hub } from '../../src/graflow' describe('Hub', () => { it('should return a component that emits an object with last input (name/value)', () => { const hub = Hub('a', 'b') const listener = spy() hub.on(listener) hub.send('a', 1) expect(listene...
segfaultxavi/nem.core
src/test/java/org/nem/core/test/NotificationUtils.java
package org.nem.core.test; import org.hamcrest.MatcherAssert; import org.hamcrest.core.IsEqual; import org.nem.core.model.*; import org.nem.core.model.mosaic.*; import org.nem.core.model.namespace.NamespaceId; import org.nem.core.model.observers.*; import org.nem.core.model.primitive.*; import java.util.Collection; ...
TingYunAPM/go
framework/gin/example/server_h/main.go
<reponame>TingYunAPM/go package main import ( "fmt" "net/http" "github.com/TingYunAPM/go" "github.com/TingYunAPM/go/framework/gin" "github.com/gin-gonic/gin" ) func main() { err := tingyun.AppInit("tingyun.json") if err != nil { fmt.Println(err) } defer tingyun.AppStop() // router := gin.Default() route...
troy0820/openshift-azure
vendor/github.com/openshift/origin/pkg/oc/cli/admin/diagnostics/diagnostics/cluster/aggregated_logging/serviceaccounts_test.go
<reponame>troy0820/openshift-azure<gh_stars>10-100 package aggregated_logging import ( "errors" "testing" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kapi "k8s.io/kubernetes/pkg/apis/core" "github.com/openshift/origin/pkg/oc/cli/admin/diagnostics/diagnostics/log" ) type mockServiceAccountDiagnostic struct { ...
sohaniwso2/carbon-registry-1
components/registry/org.wso2.carbon.registry.resource.ui/src/main/java/org/wso2/carbon/registry/resource/ui/CommandHandler.java
/* * Copyright (c) 2006, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
spheenik/clarity
src/main/java/skadistats/clarity/processor/sendtables/FieldGenerator.java
package skadistats.clarity.processor.sendtables; import it.unimi.dsi.fastutil.ints.IntOpenHashSet; import it.unimi.dsi.fastutil.ints.IntSet; import org.slf4j.Logger; import skadistats.clarity.io.s2.Field; import skadistats.clarity.io.s2.FieldType; import skadistats.clarity.io.s2.S2DTClass; import skadistats.clarity.io...
Devteamvietnam/iTap
src/main/java/com/devteam/module/customer/entity/Address.java
<gh_stars>1-10 package com.devteam.module.customer.entity; import com.fasterxml.jackson.annotation.JsonBackReference; import lombok.*; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; @Getter @Setter @NoArgsConstructor @RequiredArgsConstructor @Entity @Table(name = "address") public cla...
wahello/openshift-installer
terraform/aws/vendor/github.com/hashicorp/terraform-provider-aws/internal/service/servicediscovery/service.go
package servicediscovery import ( "fmt" "log" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicediscovery" "github.com/hashicorp/aws-sdk-go-base/tfawserr" multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicor...
Newcoin-Foundation/iosdk
dist/overmind/api/index.js
<reponame>Newcoin-Foundation/iosdk<filename>dist/overmind/api/index.js<gh_stars>0 import actions from "./actions"; import effects from "./effects"; import state from "./state"; export default { actions, effects, state }; //# sourceMappingURL=index.js.map
Ssstlis/izumi
distage/distage-core-api/src/main/scala/izumi/distage/model/planning/PlanningObserver.scala
<gh_stars>100-1000 package izumi.distage.model.planning import izumi.distage.model.PlannerInput import izumi.distage.model.plan.ExecutableOp import izumi.distage.model.reflection.DIKey import izumi.fundamentals.graphs.DG import izumi.fundamentals.platform.language.unused /** * Execute side-effects to observe planni...
sergey-plevako-badoo/FBSimulatorControl
FBSimulatorControl/Events/FBSimulatorLoggingEventSink.h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> #import <FBSimulatorControl/FBSimulatorEventSink.h> @class FBSimulator; NS_ASSUME_NONNULL_BEG...
zack-vii/mdsplus
java/jdevices/src/main/java/ZELOS2150GVSetup.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * ZELOS2150GVSetup.java * * Created on Nov 9, 2011, 11:23:55 AM */ /** * * @author F.Molon */ public class ZELOS2150GVSetup extends DeviceSetup { /** Creates new form ZELOS2150GVSetup */ public ZELOS...
linjorejoy/Online-customer-care-and-Service-centre
CustomerCare/src/main/java/com/cts/proj/service/UserService.java
<gh_stars>1-10 package com.cts.proj.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.cts.proj.model.User; import com.cts.proj.model.UserSecretQuestion; import com.cts.proj.repository.UserRepository; @Service publ...
marciojrtorres/poocomhonrajava
complexidade/TV4.java
class TV { private String modelo; private boolean ligada = false; private int canal = 14; private int volume = 10; // 0 (zero) significa que não há anterior private int canalAnterior = 0; TV(String modelo) { this.modelo = modelo; this.ligada = false; // a TV, por ...
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
demos/WorkflowEditor/src/eu/larkc/ui/server/LineFile.java
/* This file is part of the LarKC platform http://www.larkc.eu/ Copyright 2010 LarKC project consortium 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....
OpenGGEngine/OpenGG-Project
modules/console/classes/com/opengg/core/console/GGConsole.java
<gh_stars>1-10 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.opengg.core.console; import com.opengg.core.GGInfo; import com.opengg.core.thread.ThreadManager; import j...