repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
MorningSage/Mekanism-Fabric
src/main/java/mekanism/client/model/ModelIndustrialAlarm.java
<gh_stars>1-10 package mekanism.client.model; import net.minecraft.client.util.math.MatrixStack; import com.mojang.blaze3d.vertex.IVertexBuilder; import javax.annotation.Nonnull; import mekanism.client.render.MekanismRenderType; import mekanism.client.render.MekanismRenderer; import mekanism.common.util.MekanismUtils;...
yura-hb/sesame-sampled-pairs
samples/621/b.java
<reponame>yura-hb/sesame-sampled-pairs<gh_stars>0 import java.util.List; class ClassBuilder extends AbstractBuilder { class MethodBuilder extends MemberBuilder { /** * Adds a parameter(s) to the method method builder. * @param params a pair consisting of type and parameter name. * @return this method builde...
skullbaselab/aa-afterdark
2017-09-04-NYC-Lecture-Notes-master/w3d5/a03-prep-master/assoc-solution/app/models/price.rb
class Price < ApplicationRecord belongs_to :company, primary_key: :id, foreign_key: :company_id, class_name: 'Company' end
Npahlfer/create-ignite-app
src/components/styles/createTheme.js
<filename>src/components/styles/createTheme.js import { createTheme as createMuiTheme } from '@mui/material/styles' import breakpoints from './breakpoints' import createMixins from './createMixins' import createOverrides from './createOverrides' import createPalette from './createPalette' import createTypography from '...
rv8flyboy/pyrobotlab
home/pedrosenarego/scripts/quitChatbot.py
<reponame>rv8flyboy/pyrobotlab<gh_stars>10-100 chatbot.WriteAndQuit or chatbot.writeAIML chatbot.writeAIMLIF
guilhermejccavalcanti/orientdb
core/src/test/java/com/orientechnologies/orient/core/serialization/serializer/OStringSerializerHelperTest.java
<filename>core/src/test/java/com/orientechnologies/orient/core/serialization/serializer/OStringSerializerHelperTest.java package com.orientechnologies.orient.core.serialization.serializer; import com.orientechnologies.common.io.OIOUtils; import org.junit.Test; import java.util.ArrayList; import java.util.List; import...
lenxin/spring-security
web/src/test/java/org/springframework/security/web/authentication/www/BasicAuthenticationConverterTests.java
package org.springframework.security.web.authentication.www; import javax.servlet.http.HttpServletRequest; import org.apache.commons.codec.binary.Base64; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import org.s...
vishvananda/graphpipe-go
cmd/graphpipe-tf/internal/github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto/bfc_memory_map.pb.go
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tensorflow/core/protobuf/bfc_memory_map.proto package for_core_protos_go_proto import ( encoding_binary "encoding/binary" fmt "fmt" proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress e...
fzf/qmk_toolbox
keyboards/gh60/satan/keymaps/olligranlund_iso/keymap.c
#include QMK_KEYBOARD_H #define BASE 0 // Default layer #define MOUSE 1 // Space layer #define NUMPAD 2 // Alt layer #define CAPS 3 // Caps layer // General shortenings #define ESCA KC_ESC #define MINS KC_MINS #define EQUL KC_EQL #define BSPC KC_BSPC #define DELE KC_DEL #define LBRC KC_LBRC #defi...
rajubairishetti/conduit
conduit-worker/src/test/java/com/inmobi/conduit/local/TestLocalStreamCommit.java
package com.inmobi.conduit.local; import java.io.FileNotFoundException; import java.io.IOException; import java.util.HashSet; import java.util.Set; import com.inmobi.conduit.ConduitConfigParser; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.Fil...
TobiPristupin/RUN
app/src/main/java/com/tobipristupin/simplerun/ui/sharedui/AboutDialog.java
package com.tobipristupin.simplerun.ui.sharedui; import android.content.Context; import android.support.v7.app.AlertDialog; import android.text.SpannableString; import android.text.method.LinkMovementMethod; import android.text.util.Linkify; import android.widget.TextView; import com.tobipristupin.simplerun.BuildCon...
Flexberry/ember-flexberry-designer
addon/objects/uml-primitives/fd-uml-base-coll-message.js
<reponame>Flexberry/ember-flexberry-designer /** @module ember-flexberry-designer */ import { computed } from '@ember/object'; import { isArray } from '@ember/array'; import { isNone } from '@ember/utils'; import { A } from '@ember/array'; import joint from 'npm:jointjs'; import $ from 'jquery'; import FdUmlElement ...
kbrock/azure-sdk-for-ruby
management/azure_mgmt_cosmosdb/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Cosmosdb::Mgmt::V2020_06_01_preview module Models # # Virtual Network ACL Rule object # class VirtualNetworkRule incl...
ppartarr/azure-sdk-for-java
sdk/batch/microsoft-azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/UploadBatchServiceLogsResult.java
<reponame>ppartarr/azure-sdk-for-java /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.batch.protocol.models;...
verus/triaina
android/WebViewBridge/src/triaina/webview/entity/device/NotifyStatusResult.java
<reponame>verus/triaina package triaina.webview.entity.device; import triaina.commons.json.annotation.Exclude; import triaina.webview.entity.Result; import android.os.Parcel; import android.os.Parcelable; public class NotifyStatusResult implements Result { private String mOrientation; public NotifyStatusResult() ...
SuperDogHuman/teraccoon_lesson_authoring
libs/hooks/lesson/player/useSubtitlePlayer.js
<gh_stars>1-10 import { useState, useCallback, useEffect } from 'react' export default function useSubtitlePlayer({ elapsedTimeRef, speeches }) { const [subtitle, setSubtitle] = useState() const updateSubtitle = useCallback(() => { const speech = speeches.slice().reverse().find(s => s.elapsedTime <= elapsedTi...
w2cdmi/cdmi-aws-all
cdmi-paas-server/src/main/java/pw/cdmi/open/controller/EmployeeController.java
<gh_stars>0 package pw.cdmi.open.controller; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; ...
joaosorio23/LAPR4
base.core/src/test/java/eapli/base/gestaoServicosHD/domain/ServicoTest.java
/* * 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 eapli.base.gestaoServicosHD.domain; import org.junit.Test; import static org.junit.Assert.*; /** * * @author gonca */ publ...
RealAnna/go-utils
pkg/api/models/uniform.go
package models import ( "crypto/sha1" "encoding/hex" "encoding/json" "fmt" "time" ) // Integration represents a Keptn service a.k.a. Keptn sntegration // and contains the name, id and subscription data as well as other information // needed to register a Keptn service to the control plane type Integration struct...
posl/jProphet
src/main/java/jp/posl/jprophet/PatchedProjectGenerator.java
package jp.posl.jprophet; import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.apache.commons.io.FilenameUtils; import jp.posl.jprophet.patch.PatchCandidate; import jp.posl.jprophet.project.Project; import jp.posl.jprophet.project.ProjectFactory; import com.github.javap...
XiaoBoya/pkg
plugin/component/tracing/tracing.go
/* Copyright 2021 The Katanomi Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
falconlee236/Algorithm_Practice
BaekJoon/10819.cpp
<reponame>falconlee236/Algorithm_Practice /*10819*/ /*Got i1*/ #include <iostream> #include <vector> #include <cstdlib> #include <algorithm> using namespace std; int main(){ int n; scanf("%d", &n); vector<int> v; for(int i = 0; i < n; i++){ int n; scanf("%d", &n); v.push_back(n); } ...
Vladimare/legendary-broccoli
tnwrappers/mutex.cpp
#include "mutex.hpp" mutex::mutex() { this->m.id_mutex = 0; tn_mutex_create(&this->m, TN_MUTEX_ATTR_CEILING, 1); } mutex::~mutex() { tn_mutex_delete(&this->m); } int mutex::lock(int timeout) { return tn_mutex_lock(&this->m, timeout); } int mutex::lockPolling() { return tn_mutex_loc...
nasir-ikram1102/DoctorApp-React
src/_helpers/index.js
export { authHeader } from './auth-header'; export { history } from './history'; export { store } from './store';
linminglu/Fgame
game/email/logic/email.go
<filename>game/email/logic/email.go package logic import ( "encoding/json" "fgame/fgame/common/lang" commonlog "fgame/fgame/common/log" droplogic "fgame/fgame/game/drop/logic" droptemplate "fgame/fgame/game/drop/template" emailentity "fgame/fgame/game/email/entity" "fgame/fgame/game/email/pbutil" playeremail "...
seakers/ExtUtils
dakota-6.3.0.Windows.x86/include/Teuchos_StandardDependencyXMLConverters.hpp
<reponame>seakers/ExtUtils<filename>dakota-6.3.0.Windows.x86/include/Teuchos_StandardDependencyXMLConverters.hpp<gh_stars>0 // @HEADER // *********************************************************************** // // Teuchos: Common Tools Package // Copyright (2004) Sandia Corporation ...
jppf-grid/JPPF
server/src/java/org/jppf/management/JPPFNodeConnectionNotifier.java
/* * JPPF. * Copyright (C) 2005-2019 JPPF Team. * http://www.jppf.org * * 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 re...
RockhoRockho/Project_FG
APPS/MEMBER/context_processors.py
from APPS.MEMBER.models import Member def flag_processor(request): flag = 1 member = 0 if request.session.get('user') : flag = 1 member = Member.objects.get(member_id = request.session.get('user')) else: flag = 0 return {'flag': flag, 'member':member}
parasol-ppl/PPL
src/Utilities/XMLNode.h
#ifndef XML_NODE_H_ #define XML_NODE_H_ #include <memory> #include <sstream> #include <string> #include <unordered_set> #include <vector> // Tell TinyXML to use the stl. #ifndef TIXML_USE_STL #define TIXML_USE_STL #endif #include "tinyxml.h" #include "PMPLExceptions.h" ////////////////////////////////////////////...
RusDavies/indigo
indigo_drivers/ccd_qsi/bin_externals/qsiapi-7.6.0/demo_src/ExternalTrigger.cpp
<reponame>RusDavies/indigo<gh_stars>10-100 /***************************************************************************************** NAME QSI API External Trigger Demo Application DESCRIPTION Simple QSI API External Trigger example COPYRIGHT (C) QSI (Quantum Scientific Imaging) 2012 REVISION HISTORY DRC 08.04.1...
jayrulez/rbfx
Source/Tests/Scene/TrackedComponent.cpp
// // Copyright (c) 2017-2021 the rbfx project. // // 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, mer...
Orange-OpenSource/optisam-backend
equipment-service/pkg/repository/v1/dgraph/equipments_test.go
<filename>equipment-service/pkg/repository/v1/dgraph/equipments_test.go // Copyright (C) 2019 Orange // // This software is distributed under the terms and conditions of the 'Apache License 2.0' // license which can be found in the file 'License.txt' in this package distribution // or at 'http://www.apache.org/licens...
khawarhasham/ZoP-App
app/src/main/java/fi/aalto/legroup/zop/playback/AnnotationEditor.java
<reponame>khawarhasham/ZoP-App package fi.aalto.legroup.zop.playback; import android.graphics.PointF; import fi.aalto.legroup.zop.entities.Annotation; public interface AnnotationEditor { /** * Prompt the user to create a new annotation at the specified position. * * @param position Position for t...
bug00r/irc-bot
Context/src/de/bug0r/bot/context/response/impl/StringResponse.java
<reponame>bug00r/irc-bot package de.bug0r.bot.context.response.impl; import de.bug0r.bot.context.response.ContextResponse; public class StringResponse implements ContextResponse { public StringResponse(String response) { if ( response == null ) throw new NullPointerException("no response string given"); this.re...
C4Coin/py-fhm-evm
eth/beacon/genesis_helpers.py
from typing import ( List, TYPE_CHECKING, ) from eth_typing import ( Hash32, ) from eth.constants import ( ZERO_HASH32, ) from eth.beacon.config import BeaconConfig # noqa: F401 from eth.beacon.types.active_state import ActiveState from eth.beacon.types.block import BaseBeaconBlock from eth.beacon.ty...
DXCyber409/AndroidNativeEmulator
androidemu/native/hooks.py
import logging from androidemu.hooker import Hooker from androidemu.native.memory import NativeMemory from androidemu.java.helpers.native_method import native_method from androidemu.utils import memory_helpers from unicorn import arm_const from unicorn import Uc logger = logging.getLogger(__name__) class NativeHoo...
shwogud/mno-enterprise
api/spec/controllers/mno_enterprise/jpi/v1/admin/invites_controller_spec.rb
<filename>api/spec/controllers/mno_enterprise/jpi/v1/admin/invites_controller_spec.rb<gh_stars>1-10 require 'rails_helper' module MnoEnterprise RSpec.describe Jpi::V1::Admin::InvitesController do include MnoEnterprise::TestingSupport::SharedExamples::JpiV1Admin routes { MnoEnterprise::Engine.routes } bef...
ianrae/dnallang
src/main/java/org/dnal/core/repository/MockRepositoryFactory.java
<reponame>ianrae/dnallang package org.dnal.core.repository; import org.dnal.core.DType; public class MockRepositoryFactory implements RepositoryFactory { @Override public Repository createFor(DType type) { return new MockRepository(type); } }
libpronet/libpronet
src/pronet/pro_rtp/rtp_port_allocator.cpp
/* * Copyright (C) 2018-2019 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"), * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
brechmos-stsci/deleteme
cubeviz/layout.py
<filename>cubeviz/layout.py<gh_stars>0 import os from collections import OrderedDict import numpy as np from qtpy import QtWidgets, QtCore from qtpy.QtWidgets import QMenu, QAction from glue.utils.qt import load_ui from glue.utils.qt import get_qapp from glue.config import qt_fixed_layout_tab from glue.external.echo...
Pandinosaurus/gpu.js
src/browser.js
<reponame>Pandinosaurus/gpu.js<filename>src/browser.js import { GPU } from './base-gpu'; import { alias } from './alias'; import { utils } from './utils'; import * as common from './common'; import { Input, input } from './input'; import { Texture } from './texture'; import { FunctionBuilder } from './backend/fun...
qqqkoko123/qianghongbao
src/com/qqq/WXhongbao/rg_ZFBLiaoTianJieMian.java
<reponame>qqqkoko123/qianghongbao package com.qqq.WXhongbao; public class rg_ZFBLiaoTianJieMian extends rg_RenWuJiChuLei { public rg_ZFBLiaoTianJieMian () { } public static rg_MoZhangAiFuWuChuangKouShiJianJieShouQi rg_MoNiCaoZuoShiJianFaSongQi10; protected static rg_ZFBLiaoTianJieMian rg_RenWuDuiXiang1...
dune-community/dune-xt-data
dune/xt/data/quadratures/gausslobatto/data/gausslobatto91.cxx
<filename>dune/xt/data/quadratures/gausslobatto/data/gausslobatto91.cxx // This file is part of the dune-xt-data project: // https://github.com/dune-community/dune-xt-data // Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://op...
slavslav/sydevs
src/examples/research/realtime/realtime.h
#pragma once #ifndef SYDEVS_EXAMPLES_REALTIME_H_ #define SYDEVS_EXAMPLES_REALTIME_H_ #include <examples/research/realtime/bouncing_ball_interactive_system.h> #include <sydevs/systems/real_time_simulation.h> namespace sydevs_examples { using namespace sydevs; using namespace sydevs::systems; class realtime { public...
RuscelloDB/poc
src/test/java/com/ruscello/MbassadorEventBusTest.java
package com.ruscello; import com.ruscello.bus.AnotherFakeMessage; import com.ruscello.bus.FakeMessage; import com.ruscello.bus.MbassadorEventBusListener; import com.ruscello.bus.Message; import net.engio.mbassy.bus.MBassador; import org.junit.jupiter.api.Test; import java.util.HashMap; import java.util.Map; public c...
phantomDai/CMuJava
src/test/concurrence/san/SAN_AtomicInteger.java
/* * @author: GuYouda * @date: 2018/4/18 * @time: 21:52 * @des: */ package test.concurrence.san; import java.util.concurrent.atomic.AtomicInteger; public class SAN_AtomicInteger { private AtomicInteger count = new AtomicInteger(); public void increment() { int temp = count.getAndSet(100); ...
autiwg/bartender
bartender/users/generators.py
from uuid import uuid4 def generate_invite_token(): return str(uuid4())[:8]
sqjian/toolkit
net/http/srv_test.go
<gh_stars>0 package http_test import ( "context" "fmt" "github.com/julienschmidt/httprouter" "github.com/sqjian/go-kit/log" httpUtil "github.com/sqjian/go-kit/net/http" "net/http" "testing" "time" ) func Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { fmt.Print(w, "Welcome!\n") } func H...
cdzombak/little-photo-printer
Little Image Printer/Categories/NSString+DPZURLEncode.h
// // NSString+DPZURLEncode.h // // Created by <NAME> on 26/08/2012. // Copyright (c) 2012 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (DPZURLEncode) - (NSString *)dpz_urlEncode; - (NSString *)dpz_urlDecode; @end
wincle626/Xilinx_Embedded_Driver_Example
XilinxProcessorIPLib/drivers/nandps/doc/html/api/xnandps__sinit_8c.js
<filename>XilinxProcessorIPLib/drivers/nandps/doc/html/api/xnandps__sinit_8c.js var xnandps__sinit_8c = [ [ "XNandPs_LookupConfig", "group__nandps__v2__2.html#gad64edb80b795bb18ecceb9428b458903", null ], [ "XNandPs_ConfigTable", "group__nandps__v2__2.html#ga9fda36b00c8235b40746d8a29361acdc", null ] ];
AMorgaut/WOpenUI5Core
bower_components/openui5-sap.ui.core/test-resources/sap/ui/core/demokit/sample/PatternMatching/patternApp/view/PatternTable.controller.js
jQuery.sap.require("sap.ui.core.routing.Router"); jQuery.sap.require("patternApp.model.Pattern"); sap.ui.controller("patternApp.view.PatternTable", { onInit : function () { var oRouter = new sap.ui.core.routing.Router(); this._oModel = new patternApp.model.Pattern(oRouter); this.getView().setModel(this._oMode...
stuartpb/nectarjs
compiler/native/env/wasm.js
var WASM = { name: "wasm", main: "wasm.cpp", compiler: "em++", stdlib: [{bind: "Nectar", module: "WASM"},"console", "Math", "JSON"], check: { "env": { "node": true, "es6": true }, "extends": "eslint:recommended", "rules": { "no-console": "off", "indent": "off", "linebreak-style": "off",...
shaojiankui/iOS10-Runtime-Headers
Frameworks/AVFoundation.framework/AVMutableMetadataItem.h
<filename>Frameworks/AVFoundation.framework/AVMutableMetadataItem.h /* Generated by RuntimeBrowser Image: /System/Library/Frameworks/AVFoundation.framework/AVFoundation */ @interface AVMutableMetadataItem : AVMetadataItem { AVMutableMetadataItemInternal * _mutablePriv; } @property (nonatomic, copy) NSString *...
ScalablyTyped/SlinkyTyped
d/devextreme/src/main/scala/typingsSlinky/devextreme/anon/CustomDataExpr.scala
package typingsSlinky.devextreme.anon import typingsSlinky.devextreme.mod.DevExpress.data.DataSourceOptions import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait Cus...
binofet/ice
Engine/include/Math/Vector/icVector2Int.inl
<filename>Engine/include/Math/Vector/icVector2Int.inl #include "Math/Vector/icVector2Int.h" /*! Default Constructor **/ FORCE_INLINE icVector2Int::icVector2Int(void) { }// END FUNCTION icVector2Int(void) /*! Overloaded Constructor, initializes values **/ FORCE_INLINE icVector2Int::icVector2Int(const int xIn, ...
jpaijh/ZMT
ZMT_KFD/app/src/main/java/com/example/ZMTCSD/activity/BaseActivity.java
package com.example.ZMTCSD.activity; import android.content.Context; import android.content.SharedPreferences; import android.os.Handler; import android.os.Message; import android.support.design.widget.Snackbar; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import an...
cemizm/AnySense-2.0
Firmware/shared/Application/include/SensorAdapter.h
<gh_stars>0 /* * SensorAdapter.h * * Created on: 11.03.2016 * Author: cem */ #ifndef APPLICATION_SOURCE_SENSORADAPTER_H_ #define APPLICATION_SOURCE_SENSORADAPTER_H_ #include "OSAL.h" namespace App { class SensorAdapterBase { protected: OSAL::EventFlag eventFlag; public: static const uint16_t Workspace ...
Andreas237/AndroidPolicyAutomation
ExtractedJars/iRobot_com.irobot.home/javafiles/com/irobot/home/fragments/bu$b.java
<gh_stars>1-10 // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.irobot.home.fragments; // Referenced classes of package com.irobot.home.fragments: // bu public static interface bu$b { public abst...
leonidmelnik/RestKit
Specs/restkitspecs_rails/config/initializers/inflections.rb
<reponame>leonidmelnik/RestKit # Be sure to restart your server when you modify this file. ActiveSupport::Inflector.inflections do |inflect| inflect.irregular 'human', 'humans' end
marc-henrard/muRisQ-ir-models
src/main/java/marc/henrard/murisq/pricer/swaption/SingleCurrencyModelSwaptionPhysicalProductPricer.java
<gh_stars>1-10 /** * Copyright (C) 2015 - present by <NAME>. */ package marc.henrard.murisq.pricer.swaption; import com.opengamma.strata.basics.currency.CurrencyAmount; import com.opengamma.strata.collect.ArgChecker; import com.opengamma.strata.pricer.impl.option.BlackFormulaRepository; import com.opengamma.strata.p...
shenzeyu/recommend
src/main/java/com/usst/app/good/goodBrand/model/GoodBrand.java
package com.usst.app.good.goodBrand.model; import java.util.List; import com.usst.code.bean.Base; public class GoodBrand extends Base { private static final long serialVersionUID = -2446719740797638726L; private Integer level; private String remark; private String pic; private String picId; private String good...
Tylarb/gpdb
src/backend/gporca/libgpopt/include/gpopt/engine/CEnumeratorConfig.h
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2013 EMC Corp. // // @filename: // CEnumeratorConfig.h // // @doc: // Configurations of plan enumerator //--------------------------------------------------------------------------- #ifndef GPOPT_CEnum...
AdamCottrill/FishNetPortal
fn_portal/api/serializers/FN0_serializers.py
<filename>fn_portal/api/serializers/FN0_serializers.py """Serializers for models in fn_portal""" import re from common.models import Lake from django.contrib.auth import get_user_model from fn_portal.models import ( FNProtocol, FN011, FN013, FN014, FN022, FN026, FN028, Gear, ProjectG...
NifTK/NifTK
Libraries/ITK/RegistrationToolbox/Construction/itkImageRegistrationFactory.h
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
cyjake/material
icons/FileFindOutlineIcon.js
<filename>icons/FileFindOutlineIcon.js import React from 'react' const DEFAULT_SIZE = 24 export default ({ fill = 'currentColor', width = DEFAULT_SIZE, height = DEFAULT_SIZE, style = {}, ...props }) => ( <svg viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` } style={{ fill, width, height, ...st...
fantongkw/oa
src/main/java/com/ccc/oa/config/SecurityConfig.java
package com.ccc.oa.config; import com.ccc.oa.security.CustomUserDetailsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.annotat...
MylesIsCool/ViaVersion
bungee/src/main/java/com/viaversion/viaversion/bungee/providers/BungeeMainHandProvider.java
/* * This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion * Copyright (C) 2016-2022 ViaVersion and contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, eith...
alexeykarlyganov/restful-spring-application
src/test/java/org/alexeykarlyganov/rest/PingControllerIntegrationTest.java
<gh_stars>0 package org.alexeykarlyganov.rest; import static org.assertj.core.api.Assertions.assertThat; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.hamcrest.Matchers.*; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; impo...
benqus/wig
src/methods/extend.js
/** * Merges all argument objects into the first one. * @param {object} obj * @returns {object} */ function extend(obj) { var args = Array.prototype.slice.call(arguments, 1), argsLength = args.length, key, i; for (i = 0; i < argsLength; i += 1) { if (args[i] && typeof args...
txazo/java
src/main/java/org/txazo/java/concurrency/extension/CountDownLatchTest.java
<reponame>txazo/java package org.txazo.java.concurrency.extension; import org.apache.commons.lang3.RandomUtils; import org.junit.Test; import java.util.concurrent.CountDownLatch; /** * CountDownLatch * <p> * 1) 一个或多个线程等待其它线程完成操作 * 2) countDown(): 计数减一 * 3) await(): 阻塞当前线程, 直到计数为0 * 4) 一个线程调用countDown() happen-...
technosaurus/quad-wheel
jsiCodeInt.h
static OpCodes *codes_new(int size); static OpCodes *codes_join(OpCodes *a, OpCodes *b); static OpCodes *codes_join3(OpCodes *a, OpCodes *b, OpCodes *c); static OpCodes *codes_join4(OpCodes *a, OpCodes *b, OpCodes *c, OpCodes *d); static OpCodes *code_push_undef(); static OpCodes *code_push_bool(int v); static OpCodes ...
shanghua521/javafx-danmaku
src/main/java/com/wang/javafxdanmaku/GlobalMouseListenerExample.java
<reponame>shanghua521/javafx-danmaku package com.wang.javafxdanmaku; import com.github.kwhat.jnativehook.mouse.NativeMouseEvent; import com.github.kwhat.jnativehook.mouse.NativeMouseInputListener; import javafx.application.Platform; import javafx.stage.Stage; import java.awt.*; import java.awt.event.InputEvent; impor...
twmarshall/cloudbreak
environment/src/test/java/com/sequenceiq/environment/environment/validation/network/TestHelper.java
package com.sequenceiq.environment.environment.validation.network; import java.util.HashMap; import java.util.Map; import com.sequenceiq.cloudbreak.cloud.model.CloudSubnet; import com.sequenceiq.environment.network.dto.AwsParams; import com.sequenceiq.environment.network.dto.AzureParams; import com.sequenceiq.environ...
zealoussnow/chromium
chrome/chrome_cleaner/os/file_removal_status_updater.h
<filename>chrome/chrome_cleaner/os/file_removal_status_updater.h // 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 CHROME_CHROME_CLEANER_OS_FILE_REMOVAL_STATUS_UPDATER_H_ #define CHROME_CHROME_CLE...
ChengCat/dale
src/dale/NativeTypes/NativeTypes.h
<reponame>ChengCat/dale #ifndef DALE_NATIVETYPES #define DALE_NATIVETYPES #include <vector> #include "../llvm_LinkAll.h" namespace dale { /*! NativeTypes Provides methods for getting the LLVM types that correspond to the native types of the current platform. The get*Type methods are self-explanatory, a...
AnthonyNg404/Database
proj5/src/main/java/edu/berkeley/cs186/database/ThreadPool.java
package edu.berkeley.cs186.database; import java.util.concurrent.*; class ThreadPool extends ThreadPoolExecutor { ThreadPool() { super(0, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new SynchronousQueue<>()); } @Override protected void afterExecute(Runnable r, Throwable t) { super.after...
MehmetErer/anima
anima/ui/scripts/tde_ui.py
# -*- coding: utf-8 -*- import logging from anima import logger def version_dialog(logging_level=logging.WARNING, mode=2): """Helper function for version_dialog UI for Maya """ # connect to db from anima.utils import do_db_setup do_db_setup() # use PySide2 from anima import ui ui.SET...
ramkumarkoppu/NUCLEO-F767ZI-ESW
Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32746G-Discovery/Applications/STemWin/STemWin_fonts/STemWin/App/generated/fonts/eng40.c
/********************************************************************* * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * * www.segger.com * ************************************...
AllaDihtiarova/app_network
front/src/components/Body/AddNewPost/AddNewPost.js
import * as React from 'react'; import { useQuery } from 'react-query' import { Formik, Form, Field } from 'formik' import * as Yup from 'yup' import Button from '@mui/material/Button'; import { TextField } from 'formik-mui'; import { addPost } from '../../../containes/AddNewPostContainer/api/crud' import { getAllAcce...
chenjianjx/srb4jfullsample
webapp/src/main/java/com/github/chenjianjx/srb4jfullsample/webapp/bo/portal/support/BoResourcePaths.java
<gh_stars>1-10 package com.github.chenjianjx.srb4jfullsample.webapp.bo.portal.support; /** * put all paths in a single class for each locating of code based on an url */ public class BoResourcePaths { //homepage public static final String DASHBOARD = "/"; //auth public static final String LOGIN = "/...
opensingular/singular-apps
requirement/requirement-module/src/main/java/org/opensingular/requirement/module/ActionProviderBuilder.java
<gh_stars>1-10 /* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.com * * 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/license...
lechium/tvOS130Headers
System/Library/PrivateFrameworks/SlideshowKit.framework/PlugIns/OpusMarimbaProducer.opplugin/MRShiftingTilesIteration.h
<reponame>lechium/tvOS130Headers /* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:45:05 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/SlideshowKit.framework/PlugIns/OpusMarimbaProducer.opplugin/OpusMarim...
relokin/parsec
pkgs/libs/glib/src/gobject/gvaluearray.h
<filename>pkgs/libs/glib/src/gobject/gvaluearray.h /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2001 Red Hat, Inc. * * 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 Softwa...
vmilkovic/primjena-blockchain-tehnologije
vjezba5/DPser-part.py
import rpyc from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA ############# ## SERVER ## ############# #dictionary 'popis' s adresama i stanjima uz njih #Primjer dvije adrese (u bitno skraćenom obliku zbog preglednosti) ... #... kojima je pridruženo stanje 6.0 odno...
github-vet/bots
cmd/vet-bot/loopclosure/testdata/src/safe-usage/safe-usage.go
<filename>cmd/vet-bot/loopclosure/testdata/src/safe-usage/safe-usage.go package main import ( "fmt" "sync" ) func main() { wg := sync.WaitGroup{} x := []int{1, 2, 3, 4, 5} for _, v := range x { // want `range-loop variable v used in defer or goroutine at line 17` fmt.Println(v) if v == 4 { wg.Add(1) g...
zealoussnow/chromium
ios/web/navigation/navigation_manager_util.h
// 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. #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_UTIL_H_ #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_UTIL_H_ // This file contains extensions for web::Nav...
im97mori-github/JavaBLEUtil
characteristic/u2b1b/src/test/java/org/im97mori/ble/characteristic/u2b1b/VolumeFlowTest.java
package org.im97mori.ble.characteristic.u2b1b; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.im97mori.ble.BLEUtils; import org.junit.Test; public class VolumeFlowTest { ...
polarr/competitive-programming
Misc/CSESProblemset/Introductory/IncreasingArray.cpp
#include <bits/stdc++.h> using namespace std; int main(){ int l; cin >> l; vector <int> k; for (int i = 0; i < l; ++i){ int x; cin >> x; k.push_back (x); } unsigned long long ans = 0; for (int i = 1; i < k.size(); i++){ if (k[i] < k[i - 1]){ ans...
matrix65537/lab
WorkSpace01/M01/src/main/java/org/laoguo/pool/Main.java
<gh_stars>0 package org.laoguo.pool; import java.util.concurrent.TimeUnit; class MyJob implements Runnable { private String name; public MyJob(String name) { this.name = name; } public void run() { for (int i = 0; i < 2; i++) { System.out.println(this.name + ": " + i); try { TimeUni...
likelion-contents/Origin_SpringBoot
Mission/Mission_5_Basic/src/main/java/dev/aquashdw/community/controller/AreaController.java
package dev.aquashdw.community.controller; import dev.aquashdw.community.controller.dto.AreaDto; import dev.aquashdw.community.service.AreaService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.uti...
MDMN1/PenguBot
src/commands/Manipulation/illegal.js
const { Command } = require("../../index"); module.exports = class extends Command { constructor(...args) { super(...args, { cooldown: 8, aliases: ["isnowillegal", "trumpillegal"], requiredPermissions: ["ATTACH_FILES", "USE_EXTERNAL_EMOJIS", "EMBED_LINKS"], ...
bdamore/logostest
server/api/pathway/pathway.ctrl.js
var Pathway = require('./pathway.model'); module.exports = { find: function (req, res) { Pathway.find(req.query) .exec(function (err, response) { if (err) { res.send(err); } else { res.send(response); } ...
markkurossi/mpc
compiler/utils/point.go
<reponame>markkurossi/mpc<filename>compiler/utils/point.go // // Copyright (c) 2020-2021 <NAME> // // All rights reserved. // package utils import ( "fmt" ) // Locator is an interface that implements Location method for // returning item's input data position. type Locator interface { Location() Point } // Point ...
Dimitriusos/ui
lib/nodes/app/components/driver-other/component.js
<gh_stars>1-10 export { default } from 'nodes/components/driver-other/component';
metux/chromium-deb
third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
<reponame>metux/chromium-deb /* * Copyright (C) 2013 Google, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * no...
FAOSTAT/faostat
ui/src/js/views/compare-filter-box-view.js
/*global define, _:false, $, console, amplify, FM*/ define([ 'jquery', 'loglevel', 'views/base/view', 'globals/Common', 'config/Config', 'config/Events', 'config/Analytics', 'config/compare/Events', 'config/compare/Config', 'text!templates/compare/compare_filter_box.hbs', 'te...
grokify/ringcentral-sdk-go-scg
engagedigital/v1/client/model_identity_group.go
/* * Engage Digital API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: 1.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package engagedigital import ( "time" ) type IdentityGroup struct { AvatarUrl ...
clarkdonald/eecs494explore3d
jni/external/zenilib/zeni_core/zeni_core.h
/* This file is part of the Zenipex Library (zenilib). * Copyright (C) 2011 <NAME> (bazald). * * zenilib 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 3 of the License, or *...
Magolves/sedona2cpp
Sedona/src/main/java/sedonac/translate/CppStdHeader.java
/* * Copyright (c) 2007 Tridium, Inc. * Copyright (c) 2019. <NAME> (translation support) * Licensed under the Academic Free License version 3.0 * */ package sedonac.translate; import sedonac.Compiler; import sedonac.ast.Expr; import sedonac.ast.KitDef; import sedonac.ast.TypeDef; import sedonac.namespace.Type; ...
Ron423c/chromium
components/autofill/core/browser/autofill_form_test_utils.h
<gh_stars>0 // Copyright 2020 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FORM_TEST_UTILS_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_FORM_TEST_UTILS_H_ #in...