repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
AndreaOrru/Gilgamesh
tests/test_analysis.cpp
<reponame>AndreaOrru/Gilgamesh #include <catch2/catch.hpp> #include "asar.hpp" #include "analysis.hpp" #include "assertion.hpp" #include "cpu.hpp" using namespace std; TEST_CASE("Assertions work correctly", "[analysis]") { Analysis analysis(*assemble("assertions")); analysis.run(); // Test there are two subr...
wolf0931/WenWenClinic
src/com/wenwen/clinic/chatuidemo/activity/MyConsultation.java
package com.wenwen.clinic.chatuidemo.activity; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Hashtable; import java.util.List; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.MotionEvent; ...
mbenson/therian
core/src/main/java/therian/operator/immutablecheck/DefaultImmutableChecker.java
/* * Copyright the original author or 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 applica...
Marknjo/nextjs-lab
01.file/pages/index.js
import Link from 'next/link'; const HomePage = function () { return ( <> <h1>Home Page</h1> <nav> <ul> <li> <Link href="/portfolio">Portfolio</Link> </li> <li> <Link href="/clients">Clients</Link> </li> <li></li> ...
PRASAD-DANGARE/PYTHON
stringtest.py
# Python Program To Use The String Testing Methods ''' Function Name : String Testing Methods . Function Date : 3 Sep 2020 Function Author : <NAME> Input : Integer,String Output : Integer,String ''' # Check If All The Characters In The Text Are Alphanumeric Using isalnum(...
ScalablyTyped/SlinkyTyped
o/office-js/src/main/scala/typingsSlinky/officeJs/global/Excel/SortOn.scala
<filename>o/office-js/src/main/scala/typingsSlinky/officeJs/global/Excel/SortOn.scala package typingsSlinky.officeJs.global.Excel import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}...
uzhyhala/IBA-Group-Workfusion-Framework
ia_system_invoiceplane/src/main/java/com/ibagroup/workfusion/rpa/systems/invoiceplane/pages/MainPage.java
package com.ibagroup.workfusion.rpa.systems.invoiceplane.pages; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import com.ibagroup.workfusion.rpa.core.clients.RobotDriverWrapper; import com.ibagroup.workfusion.rpa.core.config.ConfigurationManager; import com.ibagroup.workfusi...
Thlamz/elasticsearch
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/action/StartSLMAction.java
<reponame>Thlamz/elasticsearch<gh_stars>1-10 /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack....
momofoolish/sss-rbac-admin
sra-common/src/main/java/com/jwss/sra/common/enums/ApiResultEnum.java
package com.jwss.sra.common.enums; /** * @date 2022-1-12 16:30:04 * @author jwss */ public enum ApiResultEnum { /** * 成功 */ SUCCESS(200, "请求成功"), /** * 内部错误 */ ERROR(500, "内部错误"), /** * 未找到资源 */ NOT_FOUNT(404, "未找到资源"), /** * 拒绝请求 */ REFUSE(401...
medismailben/llvm-project
libcxx/test/std/re/re.results/re.results.const/move.pass.cpp
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
yuyunliuhen/quick_test
node.js/test/pay_server/httpServer.js
<filename>node.js/test/pay_server/httpServer.js<gh_stars>0 var http = require("http"); var qs = require( 'querystring' ); var log4js = require('log4js'); var json2xml = require('json2xml'); var log_json = require('./config/log.json'); log4js.configure(log_json); var http_logger = log4js.getLogger('http-logger'); ...
codefacts/elasta
elasta-orm/src/main/java/elasta/orm/upsert/impl/DirectDependencyHandlerImpl.java
package elasta.orm.upsert.impl; import elasta.orm.upsert.DirectDependencyHandler;import elasta.orm.upsert.TableData;import elasta.orm.upsert.UpsertContext;import elasta.orm.upsert.UpsertFunction;import io.vertx.core.json.JsonObject; import java.util.Objects; /** * Created by Jango on 2017-01-09. */ final public cl...
Jeongseo21/Algorithm-1
programmers/월간 코드 챌린지 시즌1/트리 트리오 중간값.cpp
/** * problem : https://programmers.co.kr/learn/courses/30/lessons/68937 * algorithm : dijkstra(bfs) * time complexity : O(E) */ #include <string> #include <algorithm> #include <iostream> #include <vector> #include <queue> using namespace std; int V; // return (unique, (the longest edge from start edge, max dist...
TakayukiHoshi1984/DeviceConnect-Old
Android/dConnectDeviceHeartRate/app/src/main/java/org/deviceconnect/android/deviceplugin/heartrate/activity/package-info.java
/* org.deviceconnect.android.deviceplugin.heartrate.activity Copyright (c) 2014 NTT DOCOMO,INC. Released under the MIT license http://opensource.org/licenses/mit-license.php */ /** * Activity of this device plug-in. */ package org.deviceconnect.android.deviceplugin.heartrate.activity;
tildeio/heliotrope
spec/features/epub_access_spec.rb
# frozen_string_literal: true require 'rails_helper' describe 'EPUB access page' do context 'restricted access page for protected ebooks' do let(:press) { create(:press) } let(:monograph) { create(:public_monograph, press: press.subdomain) } let(:file_set) { create(:public_file_set, id: '999999999', con...
zlsh80826/osdi2020
05_virtual_memory/include/arm/sysregs.h
<filename>05_virtual_memory/include/arm/sysregs.h<gh_stars>0 #ifndef _SYSREGS_H #define _SYSREGS_H // *************************************** // SCTLR_EL1, System Control Register (EL1), Page 2654 of // AArch64-Reference-Manual. // *************************************** #define SCTLR_RESERVED (3 << 28) | (3 << 22) |...
hyperion-ml/hyperion
hyperion/torch/utils/data_parallel.py
""" Copyright 2019 Johns Hopkins University (Author: <NAME>) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ import torch import torch.nn as nn class TorchDataParallel(nn.DataParallel): def __getattr__(self, name): try: return super().__getattr__(name) except Attribute...
gstackio/spiff
dynaml/division.go
<gh_stars>0 package dynaml import ( "fmt" "github.com/cloudfoundry-incubator/spiff/yaml" ) type DivisionExpr struct { A Expression B Expression } func (e DivisionExpr) Evaluate(binding Binding) (yaml.Node, EvaluationInfo, bool) { resolved := true aint, info, ok := ResolveIntegerExpressionOrPushEvaluation(&e....
Lulzx/material-ui
packages/material-ui-icons/src/Delete.js
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Delete = props => <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" /> </SvgIcon>; Delete = pure(Delete); Delete.muiName = 'SvgIcon'; export ...
ferhatelmas/algo
leetCode/algorithms/easy/sum_of_root_to_leaf_binary_numbers.py
<gh_stars>10-100 class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def sum(self, node: TreeNode, num: str) -> int: if node is None: return 0 if node.left is None and node.right is None: return ...
delftdata/Metanome
backend/src/main/java/de/metanome/backend/result_postprocessing/result_ranking/UniqueColumnCombinationRanking.java
<filename>backend/src/main/java/de/metanome/backend/result_postprocessing/result_ranking/UniqueColumnCombinationRanking.java /** * Copyright 2015-2016 by Metanome Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
Futuremappermydud/Naluluna-Modifier-Quest
include/codegen/include/System/IO/Directory.hpp
// Autogenerated from CppHeaderCreator on 7/27/2020 3:09:44 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.Object #include "System/Object.hpp" #include "utils/i...
gingerich/mesa
packages/mesa-http/src/Server.js
<gh_stars>0 import Koa from 'koa'; import body from 'koa-bodyparser'; import compress from 'koa-compress'; import helmet from 'koa-helmet'; import morgan from 'koa-morgan'; import mount from 'koa-mount'; import responseTime from 'koa-response-time'; import { compose } from '@mesa/component'; // import { Stack } from '@...
code4tomorrow/Python
2_intermediate/chapter9/solutions/catalog.py
""" Catalog Write a program that takes asks the user whether they'd like to add, delete, or clear the entries in a store catalog. After they perform some action, the program should display the updated dictionary in the format: item1: price1 item2: price2 etc. Keep asking them if they'd like to add, delet...
bioinformatics-ua/BIcenter
app/kettleExt/trans/steps/ExecSQL.java
<gh_stars>10-100 package kettleExt.trans.steps; import java.util.List; import kettleExt.trans.step.AbstractStep; import kettleExt.utils.JSONArray; import kettleExt.utils.JSONObject; import kettleExt.utils.StringEscapeHelper; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.trans.step.StepMetaIn...
pederpansen/dune-ax1
dune/ax1/acme1MD/configurations/all_configurations.hh
<filename>dune/ax1/acme1MD/configurations/all_configurations.hh /* * all_configurations.hh * * Created on: Feb 14, 2012 * Author: jpods */ #ifndef DUNE_AX1_ALL_CONFIGURATIONS_HH #define DUNE_AX1_ALL_CONFIGURATIONS_HH #include <dune/ax1/acme1MD/configurations/default/default_config.hh> #include <dune/ax1/ac...
mitchkaden/meteostat-python
tests/test_normals.py
""" Tests - Normals Class The code is licensed under the MIT license. """ import unittest from meteostat import Normals class TestNormals(unittest.TestCase): """ Normals class tests """ def test_normals(self): """ Test: Fetch climate normals """ # Get normals for F...
rvhub/MultipathODL
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataChangeListener.java
<filename>opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataChangeListener.java /* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Publ...
Nilexplr/my_world
src/objets/text/manage_font.c
/* ** EPITECH PROJECT, 2018 ** my_world_2018 ** File description: ** manage_font.c */ #include "text.h" sfFont *manage_font(int mode) { static sfFont *font = NULL; if (mode) { if (!font) font = sfFont_createFromFile( "./ressources/goodMorning.ttf"); return font; } else { if (font) sfFont_destroy(f...
leftmike/maho
storage/test/minmax.go
<gh_stars>1-10 package test import ( "strings" "testing" "github.com/leftmike/maho/sql" "github.com/leftmike/maho/storage" "github.com/leftmike/maho/testutil" ) var ( minMaxRows = makeValues(100) createMinMax = []storeCmd{ {fln: fln(), cmd: cmdBegin}, {fln: fln(), cmd: cmdCreateTable, name: sql.ID("tbl-...
ralic/gnu_comma
include/comma/ast/AstRewriter.h
<reponame>ralic/gnu_comma //===-- ast/AstRewriter.h ------------------------------------- -*- C++ -*-===// // // This file is distributed under the MIT license. See LICENSE.txt for details. // // Copyright (C) 2008-2010, <NAME> // //===----------------------------------------------------------------------===// //===-...
pandashuai/ddpAdmin
plugins/photoswipe.js
import Vue from 'vue'; import PhotoSwipe from 'photoswipe'; import PhotoswipeDefault from 'photoswipe/dist/photoswipe-ui-default.js'; Vue.prototype.onImgBd = function(e) { const pswpElement = document.getElementById('onImgBd'); const w = e.currentTarget.naturalWidth; const h = e.currentTarget.naturalHeigh...
MoeOrganization/moe
src/main/scala/org/moe/interpreter/guts/Subroutines.scala
package org.moe.interpreter.guts import org.moe.interpreter._ import org.moe.runtime._ import org.moe.runtime.nativeobjects._ import org.moe.ast._ object Subroutines extends Utils { def declaration (i: MoeInterpreter, r: MoeRuntime): PartialFunction[(MoeEnvironment, AST), MoeObject] = { case (env, SubroutineDe...
jpederzolli/finagle
finagle-httpx/src/main/scala/com/twitter/finagle/httpx/Cookie.scala
package com.twitter.finagle.httpx import com.twitter.conversions.time._ import com.twitter.util.Duration import org.jboss.netty.handler.codec.http.{Cookie => NettyCookie, DefaultCookie} import scala.collection.JavaConverters._ /** Scala wrapper around Netty cookies. */ class Cookie(private[httpx] val underlying: Nett...
suy/frida-gum
bindings/gumjs/gumquickthread.c
/* * Copyright (C) 2020 <NAME> <<EMAIL>> * * Licence: wxWindows Library Licence, Version 3.1 */ #include "gumquickthread.h" #include "gumquickmacros.h" enum _GumBacktracerType { GUM_BACKTRACER_ACCURATE = 1, GUM_BACKTRACER_FUZZY = 2 }; GUMJS_DECLARE_FUNCTION (gumjs_thread_backtrace) GUMJS_DECLARE_FUNCTION (g...
jhannes/action-controller
action-controller/src/main/java/org/actioncontroller/actions/POST.java
<gh_stars>1-10 package org.actioncontroller.actions; import org.actioncontroller.ApiControllerContext; import org.actioncontroller.ApiControllerMethodAction; import org.actioncontroller.meta.ApiControllerActionFactory; import org.actioncontroller.meta.HttpRouterMapping; import java.lang.annotation.ElementType; import...
moisespsena-go/aorm
modelstruct.go
package aorm import ( "context" "fmt" "reflect" "strings" "github.com/pkg/errors" "github.com/jinzhu/inflection" ) // DefaultTableNameHandler default table name handler var DefaultTableNameHandler = func(ctx context.Context, singular bool, modelStruct *ModelStruct) (tableName string) { if singular { return...
ProjectBuddyTeam/ProjectBuddy
app/policies/project/question_policy.rb
class Project::QuestionPolicy < ApplicationPolicy attr_reader :member, :question, :project def initialize(member, question) @member = member @project = question.project @question = question end def create? member != project.member end def update? member == question.member end def...
Maufeat/LeagueAPI
include/lol/op/PutLolCollectionsV1InventoriesBySummonerIdRuneBookPagesByPageId.hpp
<reponame>Maufeat/LeagueAPI<filename>include/lol/op/PutLolCollectionsV1InventoriesBySummonerIdRuneBookPagesByPageId.hpp #pragma once #include "../base_op.hpp" #include <functional> #include "../def/LolCollectionsCollectionsRunePage.hpp" namespace lol { template<typename T> inline Result<LolCollectionsCollectionsRu...
indraai/IndraMind
_archive/modules/SpreadAct.js
<gh_stars>1-10 function SpreadAct() { // http://ai.neocities.org/SpreadAct.html PsiDecay(); // 2018-01-23: reduce conceptual activation in general. // 2018-11-13: SpreadAct, called from EnVerbPhrase, activates a prepositional phrase. if (wherecon == 0) { // 2018-11-13: if not answering a where-query... if...
iugu-for-devs/codeplay
spec/fabricators/subscription_course_fabricator.rb
<filename>spec/fabricators/subscription_course_fabricator.rb<gh_stars>1-10 Fabricator(:subscription_course) do course nil subscription nil end
sgholamian/log-aware-clone-detection
NLPCCd/Camel/562_2.java
//,temp,sample_3270.java,2,9,temp,sample_4992.java,2,8 //,3 public class xxx { protected void doStart() throws Exception { ObjectHelper.notNull(executorService, "executorService", this); ObjectHelper.notNull(endpoint, "endpoint", this); log.info("using timeout checker interval with millis"); } };
megadotnet/talk-android
app/src/main/java/com/teambition/talk/view/RepostView.java
package com.teambition.talk.view; import com.teambition.talk.entity.Message; import com.teambition.talk.entity.Team; /** * Created by wlanjie on 15/8/3. */ public interface RepostView extends TeamView { void onRepostFinish(Message message); void onGetTeamDetailFinish(Team data); }
aevum/libgdx-cpp
src/gdx-cpp/graphics/g3d/materials/TextureAttribute.hpp
<gh_stars>10-100 /* * TextureAttribute.hpp * * Created on: Feb 20, 2013 * Author: toha */ #ifndef TEXTUREATTRIBUTE_HPP_ #define TEXTUREATTRIBUTE_HPP_ #include "MaterialAttribute.hpp" #include "gdx-cpp/graphics/Texture.hpp" #include "gdx-cpp/utils/Pool.hpp" using namespace gdx; class TextureAttribute: pub...
Lakshamana/spm-mini
src/main/java/br/ufpa/labes/spm/service/interfaces/JoinConServices.java
<filename>src/main/java/br/ufpa/labes/spm/service/interfaces/JoinConServices.java package br.ufpa.labes.spm.service.interfaces; import br.ufpa.labes.spm.domain.JoinCon; import br.ufpa.labes.spm.service.dto.JoinConDTO; /** JoinConServices */ public interface JoinConServices { JoinCon updateJoinCon(JoinConDTO joinCon...
tahoeRobbo/toyProblems
codeWars/__cutTheWire.js
<gh_stars>1-10 { ArrayBuffer: [Function: ArrayBuffer], Int8Array: { [Function: Int8Array] BYTES_PER_ELEMENT: 1 }, Uint8Array: { [Function: Uint8Array] BYTES_PER_ELEMENT: 1 }, Uint8ClampedArray: { [Function: Uint8ClampedArray] BYTES_PER_ELEMENT: 1 }, Int16Array: { [Function: Int16Array] BYTES_PER_ELEMENT: 2 }, Uint16Arr...
ditekunov/Purity-Project
src/main/scala/cryptographyOperations/encoders/GrayEncoder.scala
package cryptographyOperations.encoders import utils.InputException import utils.ExceptionMessages.NegativeOrZeroInput /** * Contains realisation of a Gray encoding: https://en.wikipedia.org/wiki/Gray_code * * Purity project by <NAME>. */ object GrayEncoder { def encode(input: Int): Int = { if (input >=...
kyoujuro/istio
galley/pkg/testing/mock/endpoints.go
// Copyright Istio 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 wri...
metux/chromium-deb
chrome/browser/media/router/discovery/dial/safe_dial_device_description_parser.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 CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEVICE_DESCRIPTION_PARSER_H_ #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_SAFE_DIAL_DEV...
zhongxinghong/sysyc
src/__include_this_directory.h
//------------------------------------------------------------------------------ // A SysY Compiler for PKU Compiling Principles Practice Course (2021 Spring) //------------------------------------------------------------------------------ // Project: sysyc // File: __include_this_directory.h // Created Date: 2021-...
Tanych/CodeTracking
74-Search-a-2D-Matrix/solution.py
class Solution(object): def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ i,j=0,len(matrix[0])-1 while i<len(matrix) and j>=0: if matrix[i][j]==target: return True ...
SwarmUS/HiveMind
src/bsp/src/stm32/src/interloc/src/UWBRxFrame.cpp
<gh_stars>1-10 #include "interloc/UWBRxFrame.h" #include <cmath> float UWBRxFrame::getSFDAngle() const { // RCPHASE register is only 7 bits, so mask off the highest bit return (((float)(m_sfdAngleRegister & 0x7F)) / 64.0F) * M_PI; } float UWBRxFrame::getAccumulatorAngle() const { // Accumulator data has a...
pigzhuzhu55/NutzSite
src/main/java/io/nutz/nutzsite/module/sys/models/User.java
package io.nutz.nutzsite.module.sys.models; import io.nutz.nutzsite.common.base.BaseModel; import org.apache.shiro.crypto.RandomNumberGenerator; import org.apache.shiro.crypto.SecureRandomNumberGenerator; import org.apache.shiro.crypto.hash.Sha256Hash; import org.nutz.dao.entity.annotation.*; import org.nutz.plugins.v...
lechium/iOS1351Headers
System/Library/PrivateFrameworks/AssistantServices.framework/AFAudioPowerXPCProvider.h
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:36:18 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/AssistantSe...
UV-CDAT/ParaView
Plugins/SciberQuestToolKit/vtkSQRandomSeedPoints.h
<gh_stars>0 /* ____ _ __ ____ __ ____ / __/___(_) / ___ ____/ __ \__ _____ ___ / /_ / _/__ ____ _\ \/ __/ / _ \/ -_) __/ /_/ / // / -_|_-</ __/ _/ // _ \/ __/ /___/\__/_/_.__/\__/_/ \___\_\_,_/\__/___/\__/ /___/_//_/\__(_) Copyright 2012 SciberQuest Inc. */ // .NAME vtkSQRandom...
zk20/libsbp
c/test/cpp/auto_check_sbp_navigation_MsgVelNEDDepA.cc
/* * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must * be be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ...
nistefan/cmssw
L1Trigger/L1TMuon/interface/L1TMuonGlobalParamsHelper.h
<reponame>nistefan/cmssw /// /// \class L1TMuonGlobalParamsHelper /// /// Description: Wrapper for L1TMuonGlobalParams /// /// Implementation: /// /// \author: <NAME> /// #ifndef L1TMuonGlobalParamsHelper_h #define L1TMuonGlobalParamsHelper_h #include <memory> #include <iostream> #include <vector> //this is temp hac...
yejf/poll
trunk/src/main/java/com/tarena/poll/dao/impl/PollContentImpl.java
package com.tarena.poll.dao.impl; import java.util.List; import org.hibernate.Session; import org.hibernate.Transaction; import com.tarena.poll.dao.IPollContentDao; import com.tarena.poll.entity.TPollContent; import com.tarena.poll.util.HBDaoFactory; /** *本来用来演示 *author datong */ public class PollContentImpl imp...
GWT-M3O-TEST/GWT-m3o-js
examples/db/create/createARecord.js
const m3o = require("m3o")(process.env.M3O_API_TOKEN); async function main() { let rsp = await m3o.db.create({ record: { age: 42, id: "1", isActive: true, name: "Jane", }, table: "example", }); console.log(rsp); } main();
Mindhome/field_service
mindhome_alpha/erpnext/manufacturing/report/bom_variance_report/bom_variance_report.py
<filename>mindhome_alpha/erpnext/manufacturing/report/bom_variance_report/bom_variance_report.py # Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(filters=None): ...
ifwe/digsby
digsby/src/jabber/objects/shared_status/__init__.py
<reponame>ifwe/digsby<filename>digsby/src/jabber/objects/shared_status/__init__.py from pyxmpp.iq import Iq SHARED_STATUS_NS = 'google:shared-status' def make_get(gtalk_protocol): iq = Iq(stanza_type="get") q = iq.new_query(SHARED_STATUS_NS) q.setProp("version", '2') return iq
iTeam-co/pytglib
pytglib/api/utils/__init__.py
from .object import Object from importlib import import_module from .all_types import all_types for k, v in all_types.items(): Object.all[k[:1].lower() + k[1:]] = getattr(import_module("pytglib.api.types." + v), k)
ThoTischner/infra-ecosphere
ipmi/ipmi_server.go
<filename>ipmi/ipmi_server.go package ipmi import ( "bytes" "fmt" "io" "log" "net" "os" "os/signal" "syscall" "time" ) import ( "../utils" "../bmc" ) var running bool = false func DeserializeAndExecute(buf io.Reader, addr *net.UDPAddr, server *net.UDPConn) { RMCPDeserializeAndExecute(buf, addr, server) ...
collectiveidea/ember-helpers
app/helpers/length.js
export { default, length } from '@abcum/ember-helpers/helpers/length';
flyinskyin2013/yLib_Docs
doxygen_docs/html/search/typedefs_0.js
var searchData= [ ['const_5fpointer_1053',['const_pointer',['../classyLib_1_1yBasicAllocator.html#a7cb0b3a23165aeab48a8cfa790b11560',1,'yLib::yBasicAllocator']]], ['const_5freference_1054',['const_reference',['../classyLib_1_1yBasicAllocator.html#aa89d64c8f2e2bfa3421c635d6f4e54db',1,'yLib::yBasicAllocator']]], ['...
philosophy912/Sophia
src/test/java/com/philosophy/base/util/StringsUtilsTest.java
<gh_stars>0 package com.philosophy.base.util; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class StringsUtilsTest { @Test void test() { assertEquals("", StringsUtils.trimToEmpty(null)); } }
20minutes/phpcr-browser
web/assets/js/app/Browser/component/directive/Draggable.js
define([], function() { 'use strict'; // From http://blog.parkji.co.uk/2013/08/11/native-drag-and-drop-in-angularjs.html function Draggable($parse) { return { restrict: 'A', link: function(scope, element, attrs) { if (!$parse(attrs.draggable)(scope)) { ...
jcalendo/K_and_R
kn_king/chapter_7/7-2.c
#include <stdio.h> // Modify squares2.c so that it pauses after every 24 squares int main(void) { int n; printf("This program prints a table of squares.\n"); printf("Enter the number of entries in the table: "); scanf("%d", &n); getchar(); // get the new line character left hanging from scanf for (in...
Lembed/Cortex-M3-Projects
dtmf_decoder/inc/platform.h
<filename>dtmf_decoder/inc/platform.h #ifndef PLATFORM_h_ #define PLATFORM_h_ #define LIKELY(x) __builtin_expect(!!(x), 1) #define UNLIKELY(x) __builtin_expect(!!(x), 0) #define ARRAY_SIZE(x) ((sizeof(x)/sizeof(x[0]))) #define BV(x) (1 << (x)) #ifndef NULL #define NULL 0 #endif #endif
hunjixin/ShootGame
src/lib/common/EventWell.js
class EventWell { constructor(losEvent,num) { this.eventWell = [] this.losEvent=losEvent this.wellDepth = num this.timer = setInterval(() => { this.eventWell.shift() }, 1000) } attach(event) { if (this.eventWell.length > this.wellDepth) this.eventWell.shift() this.eventWell.push...
mezae/pfpaa
public/modules/letters/controllers/labels.js
<gh_stars>0 'use strict'; /* global _: false */ /* global LZString: false */ angular.module('letters').controller('LabelController', ['$scope', '$window', '$interval', '$http', '$location', '$modal', '$filter', 'Authentication', function($scope, $window, $interval, $http, $location, $modal, $filter, Authentication...
ahmadiqbal1/vuetify
packages/api-generator/src/maps/v-alert.js
module.exports = { 'v-alert': { slots: [ { name: 'append', props: undefined, }, { name: 'close', props: { toggle: 'Function', }, }, { name: 'prepend', props: undefined, }, ], events: [ { nam...
poikilos/golgotha
loaders/dir_save.h
<filename>loaders/dir_save.h /********************************************************************** <BR> This file is part of Crack dot Com's free source code release of Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for information about compiling & licensing issues visit this URL</a> ...
bdurrer/calendarizator
cal.web/src/components/application/bootstrap-breakpoint-directive.js
<gh_stars>1-10 import angular from 'angular'; const dependencies = []; export default angular .module('bootstrap-breakpoint', dependencies) .directive('bpListener', ['$window', '$timeout', '$rootScope', '$log', function ($window, $timeout, $rootScope, $log) { return { restrict: 'A', ...
egg82/TrollCommandsPlusPlus
src/main/java/me/egg82/tcpp/tasks/TaskBurn.java
<reponame>egg82/TrollCommandsPlusPlus package me.egg82.tcpp.tasks; import java.util.Set; import java.util.UUID; import me.egg82.tcpp.services.CollectionProvider; import org.bukkit.Bukkit; import org.bukkit.entity.Player; public class TaskBurn implements Runnable { public TaskBurn() { } public void run() { ...
BradWhitlock/openvkl
openvkl/drivers/ispc/volume/amr/AMRVolume.cpp
<reponame>BradWhitlock/openvkl // Copyright 2019-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "AMRVolume.h" #include "../common/Data.h" #include "../../common/export_util.h" // ospcommon #include "ospcommon/tasking/parallel_for.h" #include "ospcommon/utility/getEnvVar.h" // ispc exports #incl...
gesucca-official/bm-server
src/main/java/com/gsc/bm/service/factories/ValueNotFoundException.java
package com.gsc.bm.service.factories; public class ValueNotFoundException extends RuntimeException { public ValueNotFoundException(String what) { super(what); } }
azadmanesh/jt-tracer
truffle/src/main/java/org/jruby/truffle/parser/ast/KeywordArgParseNode.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.jruby.truffle.parser.ast; import org.jruby.truffle.parser.ast.visitor.NodeVisitor; import org.jruby.truffle.parser.lexer.ISourcePosition; import java.util.List; /** * * @author enebo */ public class Key...
eostermueller/havoc2
backend/src/main/java/com/github/eostermueller/snail4j/launcher/Event.java
package com.github.eostermueller.snail4j.launcher; import com.github.eostermueller.snail4j.DefaultFactory; import com.github.eostermueller.snail4j.FixedLengthQueue; import com.github.eostermueller.snail4j.Snail4jException; public class Event { private static int maxExceptionsPerEvent; long timestamp = -1; publi...
nellochen/springboot-start
utils/src/main/java/com/xiaofeng/utils/designpatterns/interpreter/context/ExpressionNode.java
<gh_stars>1-10 package com.xiaofeng.utils.designpatterns.interpreter.context; import java.util.ArrayList; import java.util.Iterator; /** * @author <NAME> * @version 1.0.0 * @date 2017/07/28 * @email <EMAIL> */ public class ExpressionNode extends Node { private ArrayList<Node> list = new ArrayList<Node>(); ...
ioggstream/armeria
core/src/main/java/com/linecorp/armeria/common/stream/DefaultHttpDeframer.java
/* * Copyright 2020 LINE Corporation * * LINE Corporation licenses this file to you 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 r...
jitwxs/addax
easydata/src/main/java/io/github/jitwxs/easydata/core/mybatis/MyBatisMapperInspect.java
<reponame>jitwxs/addax<gh_stars>1-10 package io.github.jitwxs.easydata.core.mybatis; import io.github.jitwxs.easydata.common.exception.EasyDataException; import io.github.jitwxs.easydata.common.util.ReflectionUtils; import io.github.jitwxs.easydata.core.mybatis.action.IMapperInspectAction; import io.github.jitwxs.easy...
eDanilovich-qa/aquality-tracking-api
src/test/java/tests/workers/dao/IDaoTest.java
package tests.workers.dao; import main.exceptions.AqualityException; public interface IDaoTest { void searchAllTest() throws AqualityException; void insertTest() throws AqualityException; void removeTest() throws AqualityException; }
MarkieMark/fastrl
src/behavior/singleagent/options/environment_option_outcome.hpp
/** * <NAME> 1st June 2017 */ #ifndef FASTRL_BEHAVIOR_SINGLEAGENT_OPTIONS_ENVIRONMENT_OPTION_OUTCOME_HPP #define FASTRL_BEHAVIOR_SINGLEAGENT_OPTIONS_ENVIRONMENT_OPTION_OUTCOME_HPP #include <cmath> #include "../../../mdp/singleagent/environment/environment_outcome.hpp" #include "../episode.h" class EnvironmentOptio...
xmanjack/bk-bcs
bcs-services/bcs-api/pkg/server/proxier/utils.go
<reponame>xmanjack/bk-bcs<gh_stars>0 /* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in comp...
nelsoncole/sirius-x86-64
user/lib/sys/include/netinet/in.h
#ifndef __IN_H__ #define __IN_H__ #include <sys/socket.h> #define IPPROTO_IP 0 #define IPPROTO_ICMP 1 #define IPPROTO_IGMP 2 #define IPPROTO_TCP 6 #define IPPROTO_UDP 17 #define IPPROTO_IPV6 41 typedef unsigned int in_addr_t; struct in_addr { in_addr_t s_addr; }; struct sockaddr_in { sa_fa...
tannerwelsh/sandbox
find_missing_number.rb
<gh_stars>0 # Setup an array of randomly sorted numbers @numbers = (1..1_000_000).to_a.shuffle @numbers.delete_at(rand(1_000_000)) def sort_find sorted = @numbers.sort sorted.each_with_index do |n, i| next if n == sorted[i-1] + 1 || n == 0 return n-1 end end def inject_find (1..1_000_000).inject(&:+)...
alexeyche/vespa
searchlib/src/vespa/searchlib/features/distancefeature.cpp
<gh_stars>0 // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "distancefeature.h" #include <vespa/searchcommon/common/schema.h> #include <vespa/searchlib/common/geo_location_spec.h> #include <vespa/searchlib/fef/matchdata.h> #include <vespa/document/datat...
anphil/mattermost-server
model/team_test.go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package model import ( "strings" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestTeamJson(t *testing.T) { o := Team{Id: NewId(), DisplayName: NewId()} ...
chachi21/owl-s
src/org/mindswap/owl/vocabulary/KIF.java
/* * Created on Jul 31, 2004 */ package org.mindswap.owl.vocabulary; import java.net.URI; /** * @author <NAME> */ public class KIF { public final static String ns = "http://logic.stanford.edu/kif/kif.html"; public final static URI getURI() { return URI.create(ns); } }
Miaocool/MYG-NewVersion
myg/Src/Treasure/Controller/ChanceofViewController.h
// // ChanceofViewController.h // myg // // Created by Apple on 16/10/20. // Copyright © 2016年 bxs. All rights reserved. // #import <UIKit/UIKit.h> @interface ChanceofViewController : UIViewController @end
Eunoians/McMMOx
src/main/java/us/eunoians/mcrpg/commands/McUnlink.java
<gh_stars>1-10 package us.eunoians.mcrpg.commands; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import us.eunoians.mcrpg.McRPG; import us.eunoians.mcrpg.abilities.mining.RemoteTransfer; import us.eunoians.mcrpg.a...
amoshydra/cypress
system-tests/test/screenshot_element_capture_spec.js
<reponame>amoshydra/cypress<gh_stars>1000+ const systemTests = require('../lib/system-tests').default const onServer = (app) => { return app.get('/element', systemTests.sendHtml(`\ <style>body { margin: 0; }</style> <div class="capture-me" style="height: 300px; border: solid 1px black; margin: 20px;"> <div style="ba...
ToraNova/library
prodtools/test/support_test.c
<gh_stars>0 /* Project Prodtools Test driver module module for csv testing ToraNova 2019 <EMAIL> */ #include "testlist.h" #include <prodtools/arrayutil/all.h> #include <prodtools/support/suprint.h> void support_test0(){ arrayutil_doubles_libtest(); suprint_libtest(); return; }
tomgilbertson/script-server-v1
src/execution/id_generator.py
import threading class IdGenerator: def __init__(self, existing_ids): self._next_id = self._calc_next_id(existing_ids) self.lock = threading.Lock() @staticmethod def _calc_next_id(existing_ids): max_id = 0 for existing_id in existing_ids: try: n...
Eo300/react_flask_pdb2pqr
src/uid/service/uid_service.py
<filename>src/uid/service/uid_service.py from __future__ import print_function from flask import request, Blueprint from pprint import pformat from random import choices from string import ascii_lowercase, digits import logging from .uid_registry import uid_register_job, uid_validate_job uid_gen = Blueprint('uid_gen'...
Yannic/chromium
gpu/command_buffer/service/shared_image_backing_factory_d3d.h
// Copyright 2019 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 GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_BACKING_FACTORY_D3D_H_ #define GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_BACKING_FACTORY_D3D_H_ #include <d...
radu-vtv/cubrid
src/jdbc/com/cubrid/jsp/Server.java
<reponame>radu-vtv/cubrid /* * Copyright (C) 2008 Search Solution Corporation. * Copyright (c) 2016 CUBRID Corporation. * * 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 r...
megahertz0/android_thunder
dex_src/android/support/v7/widget/bz.java
<gh_stars>10-100 package android.support.v7.widget; import android.view.KeyEvent; import android.widget.TextView; import android.widget.TextView.OnEditorActionListener; // compiled from: SearchView.java final class bz implements OnEditorActionListener { final /* synthetic */ SearchView a; bz(SearchView searc...
wdr-data/code4maus
src/lib/edu/video-06-hallo-welt/video.js
import aL00 from '../shared_assets/L00.jpg' const url = 'https://wdradaptiv-vh.akamaihd.net/i/medp/ondemand/weltweit/fsk0/213/2136903/,2136903_26555464,2136903_26555459,2136903_26555461,2136903_26555460,2136903_26555463,2136903_26555462,.mp4.csmil/master.m3u8' export default { id: '06', name: '<NAME> (1/10)', ...