repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
infopark-customers/bima-shark-sdk
lib/shark/form_service/form/text_field.rb
<filename>lib/shark/form_service/form/text_field.rb # frozen_string_literal: true module Shark module FormService module Form class TextField < Element def pre_text attribute_definition('pre_text')['value'] end def post_text attribute_definition('post_text')['va...
ron4fun/IntXLib4CPP
IntXLib/src/Dividers/IDivider.h
#pragma once #ifndef IDIVIDER_H #define IDIVIDER_H // data types typedef unsigned long long UInt64; typedef unsigned int UInt32; #include "../IntX.h" // Divider class interface. class IDivider { public: /// <summary> /// Divides one <see cref="IntX" /> by another. /// </summary> /// <param name="int1">First b...
chm-dev/amazfitGTSwatchfaceBundle
src/utils/pythonSrc/watchFaceParser/models/elements/status/unlockedElement.py
from watchFaceParser.models.elements.common.switchElement import SwitchElement class UnlockedElement(SwitchElement): def __init__(self, parameter, parent, name = None): super(UnlockedElement, self).__init__(parameter = parameter, parent = parent, name = name) def switchState(self, state): ret...
atelechev/astrocadre
tools/data-import/src/test/java/fr/atelechev/astrocadre/tools/dataimport/model/SegmentFactoryTest.java
package fr.atelechev.astrocadre.tools.dataimport.model; import fr.atelechev.astrocadre.tools.dataimport.AbstractTest; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import static org.junit.Assert.assertEquals; public class SegmentFactoryTest extends AbstractTest { @Autowired...
luyl1017713252/python
orm2.0/app02/models.py
<filename>orm2.0/app02/models.py<gh_stars>0 from django.db import models # Create your models here. class Foo(models.Model): title=models.CharField(max_length=32)
john-breton/OOPDesign-MobileServiceManagement
src/main/java/reportingservice/ReportingService.java
<filename>src/main/java/reportingservice/ReportingService.java<gh_stars>0 package reportingservice; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; import static reportingservice.PropertyNameStrings.*; /** * This is a concrete implementation ...
daoxuantungframgia/Chicken
src/routes/ProductDetailPage/components/Promotions/Promotions.js
<filename>src/routes/ProductDetailPage/components/Promotions/Promotions.js import React from 'react' import PropTypes from 'prop-types' const Promotions = ({ promotions }) => ( <ul> { promotions && promotions.map((promotion) => ( <li key={promotion.promDetailId}> {(() => { if (promotion.p...
Loks-/competitions
timus/main.cpp
#include "common/proxy_run_main.h" #include <iostream> #include <string> int main(int nargs, char **pargs) { std::string solution_name; if (nargs >= 2) { solution_name = pargs[1]; } else { std::cout << "Input timus solution to run:" << std::endl; std::cin >> solution_name; } return ProxyAuto(sol...
bnguyen82/stuff-projects
design/src/abstractfactory/restaurant/VNPizzaRestaurant.java
<gh_stars>0 package abstractfactory.restaurant; import abstractfactory.product.Beverage; import abstractfactory.product.Pizza; import abstractfactory.product.vn.VNBeverage; import abstractfactory.product.vn.VNPizza; public class VNPizzaRestaurant extends PizzaRestaurant { @Override public Beverage deliverBeverage(...
adamlwgriffiths/Razorback
razorback/input/mouse.py
''' Created on 28/06/2011 @author: adam ''' import numpy from pyglet.gl import * import pyglet.window.mouse from analog import Analog class Mouse( object ): x = 0 y = 1 # allow access to pyglet.window.mouse buttons = pyglet.window.mouse def __init__( self, window, name...
Reiex/SplayLibrary
include/SplayLibrary/3D/types.hpp
#pragma once #include <SplayLibrary/Core/Core.hpp> #include <Diskon/Diskon.hpp> namespace spl { class Transformable3D; class PerspectiveCamera; struct VertexBase; struct DefaultVertex; template<typename VertexType> class Mesh; }
ActionAnalytics/mds
microservices/nris_api/backend/tests/constants.py
from app.nris.utils.access_decorators import NRIS_VIEW #, NRIS_CREATE, NRIS_CREATE, MINESPACE_PROPONENT # Auth Constants TOKEN_HEADER = {"alg": "RS256", "typ": "JWT", "kid": "flask-jwt-oidc-test-client"} BASE_AUTH_CLAIMS = { "iss": "test_issuer", "sub": "43e6a245-0bf7-4ccf-9bd0-e7fb85fd18cc", "aud": "tes...
mehrdad-shokri/cartodb
app/models/client_application.rb
require 'oauth' class DomainPatcherRequestProxy < OAuth::RequestProxy::RackRequest def uri super.sub('carto.com', 'cartodb.com') end end class ClientApplication < Sequel::Model extend CartoDB::ConfigUtils one_to_many :tokens, :class_name => :OauthToken one_to_many :access_tokens one_to_many :oauth_to...
zhaoq0103/zhaoq0103.github.io
architect/code/springdemos/springdemo-aop/src/main/java/com/zhaoq/aop02/MyAroundAdvice.java
package com.zhaoq.aop02; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; /** * 增强的类: * 使用的是环绕增强 * */ public class MyAroundAdvice implements MethodInterceptor{ public Object invoke(MethodInvocation methodInvocation) throws Throwable { System....
tie/Valkyrien-Skies
src/main/java/org/valkyrienskies/mod/common/physmanagement/shipdata/IBlockPosSet.java
<filename>src/main/java/org/valkyrienskies/mod/common/physmanagement/shipdata/IBlockPosSet.java<gh_stars>0 package org.valkyrienskies.mod.common.physmanagement.shipdata; import java.util.Collection; import java.util.Iterator; import java.util.Set; import javax.annotation.Nonnull; import net.minecraft.util.math.BlockPo...
dannycho7/RTP_Latest
src/archive_lucene/archive_lucene/src/org/apache/lucene/search/ReqOptSumScorer.java
package org.apache.lucene.search; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Versi...
venkyvb/OpenUnison
unison/unison-lastmile-sdk/src/main/java/com/tremolosecurity/lastmile/custom/CustomLastMile.java
/* Copyright 2015 Tremolo Security, 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
stas-vilchik/bdd-ml
data/11710.js
<gh_stars>0 { if (depth === 1 && currentBlock) { currentBlock.end = start; var text = deindent(content.slice(currentBlock.start, currentBlock.end)); if (currentBlock.type !== "template" && options.pad) { text = padContent(currentBlock, options.pad) + text; } currentBlock.content = text; ...
rodrigojv/thisvui
src/mixins/columns.js
import utils from "../utils/utils"; import CssArchitect from "../utils/css-architect"; export default { props: { isThreeQuarters: { type: [String, Boolean] }, isTwoThirds: { type: [String, Boolean] }, isHalf: { type: [String, Boolean] }, isOneThird: { type: [String...
sasa42/MeshSyncDCCPlugin
External/blender-2.79/include/blenkernel/BKE_tracking.h
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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; either version 2 * of the License, or (at your option) any later version. * * This program is d...
floydkots/basics_to_advanced_cpp
tests/basics/ppa_01_test.cpp
<gh_stars>0 // // Created by floyd on 12/5/17. // #include <gtest/gtest.h> #include <gmock/gmock.h> #include "../../src/basics/topic_2/ppa_01.h" using testing::Eq; namespace { class ppa_01_test : public testing::Test { public: ppa_01 ppa01; ppa_01_test() { ppa01; } };...
gautamkmr/caffe2
third_party/aten/src/ATen/cpu/tbb/tbb_remote/src/test/test_cache_aligned_allocator.cpp
<filename>third_party/aten/src/ATen/cpu/tbb/tbb_remote/src/test/test_cache_aligned_allocator.cpp /* Copyright (c) 2005-2017 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lic...
danielbaenabird/fyne
widget/check_test.go
<filename>widget/check_test.go package widget_test import ( "testing" "github.com/stretchr/testify/assert" "github.com/danielbaenabird/fyne/v2" "github.com/danielbaenabird/fyne/v2/data/binding" "github.com/danielbaenabird/fyne/v2/layout" "github.com/danielbaenabird/fyne/v2/test" "github.com/danielbaenabird/fy...
aezocn/plsqlweb
src/org/reddragonfly/iplsqldevj/bean/Database.java
<reponame>aezocn/plsqlweb<gh_stars>1-10 /* * @author phanrider * @version 1.0, 2007-11-20 * * @source: DbConnect.java Create on 2007-11-20 下午11:04:22 */ package org.reddragonfly.iplsqldevj.bean; import java.io.BufferedReader; import java.io.InputStream; import java.io.Reader; import java.sql.*; import java.util.V...
ilay09/keystone
keystone/tests/unit/identity/backends/test_ldap.py
# 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 # distributed under t...
panaris/billy
app/controllers/user_activities_controller.rb
class UserActivitiesController < ApplicationController def index @filter_date = parse_filter(params) user_id = params[:user] || current_user.id @activities = UserActivity.get(params[:year], params[:month], user_id) load_users respond_to do |format| format.html format.json d...
joonvena/mvj
batchrun/migrations/0003_logentry_kind_1.py
<gh_stars>1-10 from django.db import migrations, models from enumfields.fields import EnumIntegerField from ..enums import LogEntryKind class Migration(migrations.Migration): dependencies = [ ("batchrun", "0002_add_safedelete_to_logs"), ] operations = [ migrations.AlterField( # (*) Add ...
zrj-rimwis/DeltaPorts
ports/graphics/mesa-dri-classic/newport/files/patch-src_amd_vulkan_radv__device.c
<filename>ports/graphics/mesa-dri-classic/newport/files/patch-src_amd_vulkan_radv__device.c --- src/amd/vulkan/radv_device.c.orig 2020-09-28 22:52:10 UTC +++ src/amd/vulkan/radv_device.c @@ -56,6 +56,10 @@ #include "compiler/glsl_types.h" #include "util/driconf.h" +#if DETECT_OS_FREEBSD +#define CLOCK_MONOTONIC_RAW...
Mahamurahti/React-Roadmap
React/Main_Concepts/09. Forms/forms.js
<filename>React/Main_Concepts/09. Forms/forms.js<gh_stars>0 'use strict'; // HTML FORMS // <form> // <label> // Name: // <input type="text" name="name" /> // </label> // <input type="submit" value="Submit" /> // </form> // Controlled component class NameForm extends React.Comp...
davidkpiano/azure-sdk-for-node
lib/services/logicManagement/lib/models/keyVaultKey.js
<reponame>davidkpiano/azure-sdk-for-node /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be l...
snsokolov/contests
codeforces/580B_company.py
#!/usr/bin/env python3 # 580B_company.py - Codeforces.com/problemset/problem/580/B by Sergey 2015 import unittest import sys ############################################################################### # Company Class (Main Program) ############################################################################### ...
klueless-io/handlebars-helpers
spec/handlebars/helpers/misc/safe_spec.rb
<filename>spec/handlebars/helpers/misc/safe_spec.rb # frozen_string_literal: true require 'handlebars/helpers/misc/safe' RSpec.describe Handlebars::Helpers::Misc::Safe do # Safe will return the value with <> and single and double quotes left as is describe '#parse' do subject { described_class.new.parse(value...
kevinhikaruevans/uojs2
src/client/components/status-info/index.js
<reponame>kevinhikaruevans/uojs2 import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import actions, { changeStateMaster } from './actions' import reducer from './reducer' import map from './map' import style from './style' @connect((state) => ({ id : state.stat...
smuryginim/dozer
core/src/test/java/org/dozer/functional_tests/IsAccessibleTest.java
package org.dozer.functional_tests; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** * @author <NAME> */ public class IsAccessibleTest extends AbstractFunctionalTest { @Before public void setUp() { ma...
kaladay/Vitro
api/src/main/java/edu/cornell/mannlib/vitro/webapp/filestorage/serving/FileServingServlet.java
/* $This file is distributed under the terms of the license in LICENSE$ */ package edu.cornell.mannlib.vitro.webapp.filestorage.serving; import static javax.servlet.http.HttpServletResponse.SC_OK; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.Unsupported...
hoyeungw/palma
vintage/crostab/src/archive/helper.js
import { StatFuncs } from '../tableSpec/StatFuncs' import { Stat } from 'borel' export const restoreCell = (cell) => { // const cellSet = Ar.clone(cell) const cellSet = Object.entries(cell).map(([field, stat]) => ({ field, stat })) if (cellSet.length) { for (let c of cellSet) { if (!c.stat) c.stat = St...
noojee/eway-rapid-java
src/main/java/com/eway/payment/rapid/sdk/entities/CancelAuthorisationRequest.java
package com.eway.payment.rapid.sdk.entities; import com.fasterxml.jackson.annotation.JsonProperty; public class CancelAuthorisationRequest extends Request { @JsonProperty("TransactionId") public String transactionId; public String getTransactionId() { return transactionId; } public void...
LobbyTech-MC/UntilTheEnd
src/main/java/ute/internal/karlatemp/mxlib/formatter/AbstractReplacer.java
<gh_stars>10-100 /* * Copyright (c) 2018-2020 Karlatemp. All rights reserved. * @author Karlatemp <<EMAIL>> <https://github.com/Karlatemp> * @create 2020/03/09 22:32:11 * * UntilTheEnd/UntilTheEnd/AbstractReplacer.java */ package ute.internal.karlatemp.mxlib.formatter; public interface AbstractReplacer extends ...
wallaby-rails/wallaby-core
lib/services/wallaby/class_finder.rb
# frozen_string_literal: true module Wallaby # Base class to find out the class for given {#script_name}, {#model_class}, {#current_controller_class} class ClassFinder include ActiveModel::Model # @!attribute script_name # @return [String] attr_accessor :script_name # @!attribute model_class ...
pzas03/jagger
chassis/core/src/test/java/com/griddynamics/jagger/ExampleSimpleUserScenarioJLoadScenarioProvider.java
<reponame>pzas03/jagger package com.griddynamics.jagger; import com.griddynamics.jagger.invoker.scenario.JHttpUserScenarioInvocationListener; import com.griddynamics.jagger.invoker.scenario.JHttpUserScenarioInvokerProvider; import com.griddynamics.jagger.user.test.configurations.JLoadScenario; import com.griddynamics....
anastasia143/qreal
qrutils/interpreter/blocks/receiveThreadMessageBlock.cpp
<reponame>anastasia143/qreal /* Copyright 2007-2015 QReal Research Group * * 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 ...
shawnburke/fx
modules/task/backend_test.go
<filename>modules/task/backend_test.go // Copyright (c) 2017 Uber Technologies, Inc. // // 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 th...
iridium-browser/iridium-browser
chrome/browser/continuous_search/android/junit/src/org/chromium/chrome/browser/continuous_search/ContinuousSearchContainerMediatorTest.java
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.continuous_search; import android.view.View; import org.junit.Assert; import org.junit.Before; import org.junit.Test...
CanadianBaconBoi/AdvancedPeripherals
src/main/java/de/srendi/advancedperipherals/common/village/VillageStructures.java
package de.srendi.advancedperipherals.common.village; import com.mojang.datafixers.util.Pair; import de.srendi.advancedperipherals.AdvancedPeripherals; import de.srendi.advancedperipherals.common.configuration.APConfig; import net.minecraft.core.Registry; import net.minecraft.data.BuiltinRegistries; import net.minecra...
wilsonchang17/Leetcode-practice
Pascal's Triangle.py
<filename>Pascal's Triangle.py class Solution: def generate(self, row: int) -> List[List[int]]: if row == 1: return [[1]] if row == 2: return [[1],[1,1]] ans = [[1],[1,1]] for i in range(2,row): temp = [] for j in range(i+1): ...
xdxxdx/neighbor
neighbor-server/src/main/java/cn/icrat/dao/entity/Areas.java
package cn.icrat.dao.entity; import cn.icrat.dao.base.BaseDomain; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import java.util.Objects; @Entity public class Areas extends BaseDomain { private String areaid; private String are...
silenc3502/MYSQL-Arch-Doc-Summary
mysql-server/sql/json_path.h
<reponame>silenc3502/MYSQL-Arch-Doc-Summary<filename>mysql-server/sql/json_path.h #ifndef SQL_JSON_PATH_INCLUDED #define SQL_JSON_PATH_INCLUDED /* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms ...
mohdab98/cmps252_hw4.2
src/cmps252/HW4_2/UnitTesting/record_1522.java
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
gknorman/ISIS3
isis/src/odyssey/apps/thmvistrim/main.cpp
<filename>isis/src/odyssey/apps/thmvistrim/main.cpp /** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this ...
constantstruggle/berty
js/packages/store/protocol/grpc-web-gen/bertytypes_pb_service.js
// package: berty.types.v1 // file: bertytypes.proto
ProgressBG-Python-Course/ProgressBG-VC2-Python
pages/themes/beginners/exceptions/Task_and_HW/pycharm_input_test.py
<filename>pages/themes/beginners/exceptions/Task_and_HW/pycharm_input_test.py while True: try: usr_input = input("Enter something>>> ") break except: print("An ERROR!")
thomasletsch/javaee-addon
src/test/java/org/vaadin/addons/javaee/selenium/po/BaseSideMenuPOTest.java
package org.vaadin.addons.javaee.selenium.po; import static org.junit.Assert.assertEquals; import org.junit.Test; public class BaseSideMenuPOTest { @Test public void testBuildXPath() { BaseSideMenuPO po = new BaseSideMenuPO() { }; String xpath = po.buildXPath(1, 2, 3); assert...
HandScapeIncDrive/HSFLballPod
HandScapeSDK.framework/Versions/A/Headers/HSCHandMode.h
// // HSCHandMode.h // HandScapeSDK // // Created by <NAME> on 10/28/14. // Copyright (c) 2014 HandScape, Inc. All rights reserved. // #ifndef HandScapeSDK_HSCHandMode_h #define HandScapeSDK_HSCHandMode_h typedef enum HSCHandMode { HSCHandMode_BOTH_HANDS, HSCHandMode_LEFT_HAND_ONLY, HSCHandMode_RIGHT_HAND_ONL...
JArandaIzquierdo/FP
Examenes/Julio20182/Ejercicio1.cpp
<reponame>JArandaIzquierdo/FP #include <iostream> using namespace std; bool comprobar(int v1[], int v2[], int tamV1, int tamV2){ bool iguales = false; if(tamV1 != tamV2) return false; for(int i=0;i<tamV1;i++){ iguales=false; for(int j=0; j<tamV2;j++){ if(v1[i]==v2[j]) iguales = true...
ewangchong/bob-lab
src/main/java/com/codergray/lintcode/binarysearch/Sqrt.java
package com.codergray.lintcode.binarysearch; /** * Created by cwang on 2/28/17. */ public class Sqrt { public static int sqrt(int x) { // write your code here if(x<=0) return 0; if(x<4){ return 1; } // int start=0; long root = x/2; ...
kei6u/datadog-agent
pkg/serverless/logs/scheduler.go
<filename>pkg/serverless/logs/scheduler.go // Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. package logs import ( "githu...
hovinhthinh/Qsearch
src/storage/table/index/TABLEM.java
package storage.table.index; import nlp.NLP; import org.json.JSONException; import org.json.JSONObject; import util.Gson; import util.distributed.String2StringMap; import java.util.Arrays; import java.util.List; public class TABLEM extends String2StringMap { @Override public List<String> map(String input) { ...
dylanbobb/Data-Structures-OOP
Course/src/course/InputGrades2.java
<gh_stars>1-10 package course; import java.util.Scanner; public class InputGrades2 { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); Student[] studentArr = new Student[4]; Course[] courseArr = new Course[5]; for(int i = 0; i < 4; i...
newsummit/incubator-pinot
thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/datalayer/bao/jdbc/DataCompletenessConfigManagerImpl.java
/** * Copyright (C) 2014-2018 LinkedIn Corp. (<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 a...
hispindia/BIHAR-2.7
dhis-2/dhis-services/dhis-service-patient/src/test/java/org/hisp/dhis/patientdatavalue/aggregation/PatientDataValueAggregationEngineTest.java
<gh_stars>0 /* * Copyright (c) 2004-2009, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this ...
shiyuting79118/-
web/common/dojo-release-1.12.2/dojo/DeferredList.js
<filename>web/common/dojo-release-1.12.2/dojo/DeferredList.js /* Copyright (c) 2004-2016, The JS Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/DeferredList",["./_base/kernel","./_base/...
korjaa/mbed-os
features/nanostack/sal-stack-nanostack/source/Security/PANA/pana_avp.c
/* * Copyright (c) 2017, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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/LICEN...
wjh1225/site
src/main/java/com/thinkgem/jeesite/mother/m/dao/OrderDao.java
<reponame>wjh1225/site<gh_stars>0 package com.thinkgem.jeesite.mother.m.dao; import com.sun.tools.corba.se.idl.constExpr.Or; import com.thinkgem.jeesite.common.persistence.CrudDao; import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao; import com.thinkgem.jeesite.mother.m.entity.Order; import java.util...
Biba93/FlashLang
app/src/main/java/com/github/biba/flashlang/operations/impl/info/local/impl/achievement/UploadAllOperation.java
package com.github.biba.flashlang.operations.impl.info.local.impl.achievement; import com.github.biba.flashlang.domain.models.achievement.Achievement; import com.github.biba.flashlang.operations.impl.info.local.impl.generic.AbstractUploadAllOperation; public class UploadAllOperation extends AbstractUploadAllOperation...
sbordet/dynamic-proxies-samples
core/src/main/java/eu/javaspecialists/books/dynamicproxies/ch01/ProxyStructure.java
<filename>core/src/main/java/eu/javaspecialists/books/dynamicproxies/ch01/ProxyStructure.java /* * Copyright (C) 2020 <NAME> * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. <NAME> * licenses this file to you under the Apache License, Version * 2.0 (t...
Navarie/Balrok
src/main/java/visual/ShowKappaRok.java
package visual; import common.GameImpl; import framework.Game; import minidraw.framework.DrawingEditor; import minidraw.standard.MiniDrawApplication; import variants.configuration.KappaFactoryBuilder; import view.tool.StateTool; public class ShowKappaRok { public static void main(String[] args) { ...
laminalfalah/backend-framework
backend-framework-reactive/src/main/java/io/github/laminalfalah/backend/reactive/validator/PasswordValidatorReactive.java
<filename>backend-framework-reactive/src/main/java/io/github/laminalfalah/backend/reactive/validator/PasswordValidatorReactive.java package io.github.laminalfalah.backend.reactive.validator; /* * Copyright (C) 2021 the original author laminalfalah All Right Reserved. * * io.github.laminalfalah.backend.reactive.vali...
SeriousWatermelon/wang-wen-jun
think-in-spring/src/main/java/com/wang/think/circulardependence/TestB.java
package com.wang.think.circulardependence; /** * @description: 循环引用类 案例 * @author: <NAME> * @date: 2020/12/23 17:53 */ public class TestB { private TestC testC; public TestB() { } /** * 构造器 循环依赖,无法解决 * * @param testC 参数 */ public TestB(TestC testC) { ...
kylebarron/MagicPython
test/numbers/invalid.py
0123 0123l 123f 123d 123A 123__456 123_ 0 : constant.numeric.dec.python, source.python 123 : constant.numeric.dec.python, invalid.illegal.dec.python, source.python 0123l : invalid.illegal.name.python, source.python 123f : invalid.illegal.name.python, source.python 123d ...
anedyalkov/JS-Applications
Exams/JavaScript-Software-University-master/JavaScript-Software-University-master/JavaScript-Advanced/Classes/Exercise/length-limit.js
class Stringer { constructor(innerString, innerLength) { this.innerString = innerString; this.innerLength = innerLength; this.resultString = innerString; } decrease(number) { if (this.innerLength - number < 0) { this.innerLength = 0; } else { ...
bigr-erasmusmc/StrongR
strongr/restdomain/model/oauth2/token.py
import strongr.core.gateways as gateways from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from authlib.flask.oauth2.sqla import OAuth2TokenMixin from strongr.core.sqlalchemydatatypes.uuidtype import UUIDType Base = gateways.Gateways.sqlalchemy_base() class Token(Base...
madanagopaltcomcast/pxCore
examples/pxScene2d/external/libnode-v6.9.0/deps/cares/src/ares_version.c
<reponame>madanagopaltcomcast/pxCore<filename>examples/pxScene2d/external/libnode-v6.9.0/deps/cares/src/ares_version.c #include "ares_setup.h" #include "ares.h" const char *ares_version(int *version) { if(version) *version = ARES_VERSION; return ARES_VERSION_STR; }
WIZARD-CXY/pl
leetcode/nextpermutationstl.cpp
class Solution { public: void nextPermutation(vector<int>& nums) { if(next_permutation(nums.begin(),nums.end())){ }else{ sort(nums.begin(),nums.end()); } } };
asantoz/trino
core/trino-main/src/main/java/io/trino/operator/UpdateOperator.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...
jinzaizhichi/ledesoft
zerotier/config.json.js
<gh_stars>1000+ { "version":"0.1", "md5":"d97d8271a7da1cfd4ff813aae8d9b2b9", "home_url":"Module_zerotier.asp", "title":"ZeroTier", "description":"分布式的虚拟以太网", "changelog":"", "build_date":"2017-10-16_19:22:00" }
dosmanak/kubernetes-ingress
controller/handler/pattern-files.go
// Copyright 2019 HAProxy Technologies 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 a...
Echon126/projectConfige
src/main/java/com/example/demo/entity/ForerunnerValidate.java
package com.example.demo.entity; /** * 对字段的校验 * @author LCC * @Date 2014年8月9日 */ public class ForerunnerValidate { /** * 非空 */ private Boolean required; /** * 最大值[包含] */ private String max; /** * 最小值[包含] */ private String min; /** * 正则表达式 */ private String custom; /// Getter And Setter //...
nickrobinson/aoc2020
pkg/baggage/baggage.go
package baggage import ( "errors" log "github.com/sirupsen/logrus" "gonum.org/v1/gonum/graph" "gonum.org/v1/gonum/graph/simple" ) type BaggageGraph struct { ids map[string]int64 *simple.DirectedGraph } type Node struct { color string id int64 } func (n Node) ID() int64 { return n.id } func (n Node)...
nanotkarashish/spring-tests
rest-jsonpath/src/main/java/net/petrikainulainen/spring/testmvc/user/dto/UserDTO.java
package net.petrikainulainen.spring.testmvc.user.dto; import org.apache.commons.lang.builder.ToStringBuilder; /** * @author <NAME> */ public class UserDTO { private String username; private SecurityRole role; public UserDTO(String username, SecurityRole role) { this.username = username; ...
gourmetjs/gourmet-ssr
contrib/react-i80/gmsrc/BoundRoute.js
"use strict"; // `BoundRoute` can be created as one of two types: // - A path based `BoundRoute` is created by `searchByPath()` and has // the following members. // - gmctx, _type // - params: extracted from the matching path // - url: result of `parseHref()` as following shape: // - {origin, path, search,...
cyberatz/go-choria
srvcache/servers_test.go
// Copyright (c) 2020-2021, <NAME> and the Choria Project contributors // // SPDX-License-Identifier: Apache-2.0 package srvcache import ( "testing" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) func TestChoria(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "SRVCache") } var _ = Describe("Ser...
masakudamatsu/line-height-picker
src/img/AlertIconImage.js
import React from 'react'; const AlertIcon = ({className}) => { return ( <svg xmlns="http://www.w3.org/2000/svg" className={className} width="24" height="24" viewBox="0 0 24 24" strokeWidth="2.5" stroke="currentColor" fill="none" strokeLinecap="round" s...
truthiswill/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/comparatorCombinators/afterIntegerDiff.java
// "Replace with Comparator.comparingInt" "true" import java.util.*; public class Main { void sort(List<String> data) { data.sort(Comparator.comparingInt(String::length)); } }
y2ghost/study
c/network/hb_client2.c
<reponame>y2ghost/study #include <etcp.h> #include <stdio.h> #include <heartbeat.h> int main(int argc, char **argv) { fd_set allfd; fd_set readfd; char msg[1024] = {'\0'}; struct timeval tv; struct sockaddr_in hblisten; int sdata = -1; int shb = -1; int slisten = -1; int rc = 0; int hblistenlen = sizeof(hbli...
nilsvu/spectre
src/Parallel/Algorithms/AlgorithmGroupDeclarations.hpp
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include "Parallel/ArrayIndex.hpp" #include "Parallel/Algorithms/AlgorithmGroup.decl.h" namespace Parallel { namespace Algorithms { /*! * \ingroup ParallelGroup * \brief A struct that stores the charm++ types relevant for a partic...
creatubbles/ctb-api-unity
Docs/reference/html/class_creatubbles_1_1_api_1_1_requests_1_1_o_auth_token_reponse.js
var class_creatubbles_1_1_api_1_1_requests_1_1_o_auth_token_reponse = [ [ "access_token", "class_creatubbles_1_1_api_1_1_requests_1_1_o_auth_token_reponse.html#aff0155f135d1dd9d9abfe12afb242a2a", null ] ];
hellomoto-ai/bci-learning-studio
bci_learning_studio/qt/device_manager/sample_acquisition.py
<filename>bci_learning_studio/qt/device_manager/sample_acquisition.py<gh_stars>0 import time import logging import serial from PyQt5 import QtCore _LG = logging.getLogger(__name__) class SampleAcquisitionThread(QtCore.QThread): acquired = QtCore.pyqtSignal('PyQt_PyObject') def __init__(self, board, wait_fa...
ISCAS-VDI/neutron-base
neutron/pecan_wsgi/hooks/notifier.py
# Copyright (c) 2015 Mirantis, 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. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
gmerz/MatterApi
matterapi/endpoints/async_api/shared_channels.py
<filename>matterapi/endpoints/async_api/shared_channels.py """ Module to access the SharedChannels endpoints """ # pylint: disable=too-many-lines,too-many-locals,too-many-public-methods,too-few-public-methods from typing import Any, Dict, List, Optional from ...models import RemoteClusterInfo, SharedChannel from ..ba...
tmtsoftware/csw
csw-event/csw-event-client/src/main/scala/csw/event/client/internal/kafka/KafkaPublisher.scala
package csw.event.client.internal.kafka import akka.Done import akka.actor.Cancellable import akka.actor.typed.ActorSystem import akka.kafka.ProducerSettings import akka.stream.scaladsl.Source import csw.event.api.exceptions.PublishFailure import csw.event.api.scaladsl.EventPublisher import csw.event.client.internal.c...
metux/chromium-deb
ash/wm/tablet_mode/tablet_mode_backdrop_delegate_impl.cc
<reponame>metux/chromium-deb // 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 "ash/wm/tablet_mode/tablet_mode_backdrop_delegate_impl.h" namespace ash { TabletModeBackdropDelegateImpl::TabletMo...
lsr123/PX4-loacl_code
NuttX/apps/graphics/traveler/tools/misc/pll2txt.c
/**************************************************************************** * apps/graphics/traveler/tools/misc/pll2txt.c * * Copyright (C) 2014 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provi...
FAD95/NEXT.JS-Course
node_modules/@iconify/icons-mdi/src/language-swift.js
<filename>node_modules/@iconify/icons-mdi/src/language-swift.js let data = { "body": "<path d=\"M17.09 19.72c-2.36 1.36-5.59 1.5-8.86.1A13.807 13.807 0 0 1 2 14.5c.67.55 1.46 1 2.3 1.4c3.37 1.57 6.73 1.46 9.1 0c-3.37-2.59-6.24-5.96-8.37-8.71c-.45-.45-.78-1.01-1.12-1.51c8.28 6.05 7.92 7.59 2.41-1.01c4.89 4.94 9.43 7.74...
liruqi/actor-platform-v0.9
actor-server/actor-tests/src/test/scala/im/actor/server/api/rpc/service/GroupsServiceSpec.scala
<filename>actor-server/actor-tests/src/test/scala/im/actor/server/api/rpc/service/GroupsServiceSpec.scala package im.actor.server.api.rpc.service import im.actor.api.rpc._ import im.actor.api.rpc.counters.UpdateCountersChanged import im.actor.api.rpc.groups._ import im.actor.api.rpc.messaging._ import im.actor.api.rpc...
paulosalgado/cursos
java-reflection-alura/src/br/com/alura/reflection/nulos/modelo/Produto.java
package br.com.alura.reflection.nulos.modelo; public class Produto { public String codigo; public String nome; public String fornecedor; public Float preco; public String descricao; }
marcellalcs/natds-commons
packages/natds-themes/config/shared/config.js
<filename>packages/natds-themes/config/shared/config.js<gh_stars>0 import registerHtmlFormat from '../html/registerHtmlFormat'; import registerHtmlCreatePathsAction from '../html/registerCreatePathsAction'; import registerAttributesFormatter from '../android/registerAttributesFormat'; import registerThemeFormatAndroid ...
linyingzhen/btnew
src/discovery/Index/_Header.js
<filename>src/discovery/Index/_Header.js /** * const prefixCls = 'style-553336'; * const images = '/static/images/src/discovery/Index'; * @Author: czy0729 * @Date: 2018-08-23 12:37:28 * @Last Modified by: czy0729 * @Last Modified time: 2018-11-12 14:06:26 * @Path m.benting.com.cn /src/discovery/Index/_Header.js ...
MooersLab/jupyterlabcctbxsnipsplus
MtzObjects/mtzObjectSummary.py
<filename>MtzObjects/mtzObjectSummary.py # Description: Read mtz file into a mtz object and print summary. # Source: NA """ from iotbx import mtz mtz_obj = mtz.object(file_name="/Users/blaine/${1:3nd4}.mtz") mtz_obj.show_summary() """ from iotbx import mtz mtz_obj = mtz.object(file_name="/Users/blaine/3nd4.mtz") mt...
RJM1996/kkb-work
src/7.21-node.js-05/2020-07-21-nodejs05/code/websocket-teach/index.js
const { Server } = require("ws"); const moment = require("moment"); const wss = new Server({ port: 3000, }); wss.on("connection", (ws) => { console.log("hi"); let intervalCount; // 接受数据 ws.on("message", (data) => { console.log(data); if (data === "start") { // 推送数据 // 请求 db // 给...
kelvinluime/hkn-member-portal
src/services/events.js
<gh_stars>1-10 import * as firebase from 'firebase/app'; import 'firebase/firestore'; import 'firebase/auth'; // get events for queried user const getUserEvent = userId => { // console.log("get events for "+userId+" :") return firebase .firestore() .collection('pointReward') .where('user_id',...