repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Lzw2016/clever-quartz
clever-quartz-server/src/main/java/org/clever/quartz/mapper/QrtzJobLogMapper.java
<gh_stars>0 package org.clever.quartz.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.clever.quartz.dto.request.JobLogQueryReq; import org.clever.quar...
dwalluck/gradle-manipulator
common/src/main/java/org/jboss/gm/common/utils/JavaUtils.java
package org.jboss.gm.common.utils; import java.io.File; import java.io.IOException; import lombok.Getter; import lombok.experimental.UtilityClass; import org.commonjava.maven.ext.common.ManipulationException; import org.gradle.internal.jvm.JavaInfo; import org.gradle.internal.jvm.Jvm; @UtilityClass public class Jav...
umeshh/my-aws-sdk
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/AbstractAmazonRoute53.java
<reponame>umeshh/my-aws-sdk<gh_stars>1-10 /* * Copyright 2011-2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.am...
MaciejPatro/cmake-tidy
cmake_tidy/formatting/utils/format_file.py
<filename>cmake_tidy/formatting/utils/format_file.py ############################################################################### # Copyright <NAME> (<EMAIL>) # MIT License ############################################################################### import re from cmake_tidy.formatting.utils.single_indent impo...
xhuohai/nncase
src/importer/onnx/ops/lpnorm.cpp
<reponame>xhuohai/nncase /* Copyright 2020 <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 a...
edugonza/PADAS
src/org/processmining/database/redologs/common/DAGThread.java
<gh_stars>1-10 package org.processmining.database.redologs.common; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Queue; import java.util.Vector; import org.processmining.openslex.SLEXTrace; import org.processmining.database.redologs.dag.DAG; i...
HyunTruth/scrapy
scrapy/utils/multipart.py
""" Transitional module for moving to the w3lib library. For new code, always import from w3lib.form instead of this module """ from w3lib.form import *
nanthakumar1305/incubator-hop
engine/src/main/java/org/apache/hop/www/HopServerWorkflowStatus.java
<reponame>nanthakumar1305/incubator-hop<gh_stars>0 /* * 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 Apach...
alloystory/cs2103t_zerotoone
src/test/java/seedu/zerotoone/logic/parser/schedule/CreateCommandParserTest.java
<filename>src/test/java/seedu/zerotoone/logic/parser/schedule/CreateCommandParserTest.java package seedu.zerotoone.logic.parser.schedule; import static seedu.zerotoone.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.zerotoone.logic.parser.util.ParserUtil.MESSAGE_INVALID_INDEX; import static s...
npocmaka/Windows-Server-2003
windows/advcore/ctf/uim/saa.cpp
// // saa.cpp // // CSharedAnchorArray // #include "private.h" #include "saa.h" #include "immxutil.h" //+--------------------------------------------------------------------------- // // _MergeSort // // NB: rgArrays is freed before the method exits. // Caller must release the out array. // // pe...
thm-mni-ii/sea
test/scciterator_test.cpp
#include "sealib/iterator/scciterator.h" #include <gtest/gtest.h> #include <vector> #include "sealib/graph/graphcreator.h" using namespace Sealib; // NOLINT TEST(SCCIteratorTest, noDuplicates) { DirectedGraph g = GraphCreator::kOutdegree(50, 2); SCCIterator s(g); s.init(); s.more(); s.next(); ...
sdaschner/liberty-ci.maven
liberty-maven-plugin/src/it/appsdirectory-configdropins-it/src/test/java/net/wasdev/wlp/maven/test/app/ConfigDropinsTest.java
<gh_stars>10-100 package net.wasdev.wlp.maven.test.app; import static org.junit.Assert.*; import java.io.File; import org.junit.Test; /** * * Web application test case * */ public class ConfigDropinsTest { public final String CONFIG_XML = "liberty-plugin-config.xml"; @Test public void testApplic...
vntborgesjr/Python-Mundo-01
aula009.py
<reponame>vntborgesjr/Python-Mundo-01 frase = 'Curso em Video Python' print(frase[3]) print(frase[3:12]) print(frase[:12]) print(frase[13:]) print(frase[:15]) print(frase[1:15:2]) print(frase[::2]) print(len(frase)) print(frase.count('o')) print(frase.count('o', 0, 13)) print(frase.find('deo')) print(frase.find('Androi...
aaron218/Crux
crux-core/src/test/java/net/newstring/crux/core/sort/QuickSort.java
package net.newstring.crux.core.sort; /** * Created by Aaron on 2017/3/14. */ public class QuickSort { //选定划分元素位置的 public static int partitionP(int[] value, int start, int end, int pivotId) { int temp = value[pivotId]; value[pivotId] = value[end]; value[end] = temp; return p...
marcodotsh/programmazione-in-c-esercizi
Capitolo 5/Progetti/1/digits.c
<gh_stars>0 #include <stdio.h> int main(void) { int n, tmp,dig; dig = 0; printf("Enter a number: "); scanf("%d", &n); tmp = n; if(tmp!=0) { while(tmp!=0) { dig++; tmp /= 10; } } else { dig = 1; } printf("The number %d has %d digits\n", n, dig); return 0; }
loafofpiecrust/lfant
project-template/src/launcher/main.cpp
//#pragma once #include <iostream> #include <functional> #include <string> #include <boost/extension/shared_library.hpp> #include <boost/function.hpp> #if WIN32 # define EXT ".dll" # include <windows.h> #elif __APPLE__ # define EXT ".dylib" # define UNIX 1 #elif __linux # define EXT ".so" # define UNI...
sethcoder/cc65
src/cc65/coptpush.c
/*****************************************************************************/ /* */ /* coptpush.c */ /* */ ...
mat128/wicket
wicket-core/src/main/java/org/apache/wicket/settings/StoreSettings.java
<gh_stars>0 /* * 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, Version 2.0 * (the "License...
garciart/Automation
labs/old/lab002-ping.py
<reponame>garciart/Automation<gh_stars>0 #!/usr/bin/python # -*- coding: utf-8 -*- """Lab 002: Configure a device for Ethernet (Layer 3) connections. To run this lab: * Start GNS3 by executing "gns3_run" in a Terminal window. * Setup the lab environment according to lab002-ping.md. * Start all devices. * Run this scri...
Dbevan/SunderingShadows
d/koenig/village/dusty7.c
<filename>d/koenig/village/dusty7.c #include <std.h> #include <objects.h> #include "kai.h" inherit ROOM; void create() { ::create(); set_terrain(GRASSLANDS); set_travel(DIRT_ROAD); set_property("light",2); set_property("indoors",0); set_short("Along a dusty road"); set_long( @KAYLA This is a...
mihu915/mihu-cms-koa
src/model/menu.model.js
<gh_stars>1-10 const { Model, DataTypes } = require('sequelize') const { errorTypes } = require('../error/error-types') const createMenuModel = sequelize => { class Menu extends Model {} Menu.init( { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, ...
gubaojian/trylearn
WebLayoutCore/Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h
<filename>WebLayoutCore/Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h /* * Copyright (C) 2012-2015 Apple 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....
ankushlt/testsigma
automator/src/com/testsigma/automator/actions/mobile/ios/settings/DisableWIFIAction.java
<reponame>ankushlt/testsigma package com.testsigma.automator.actions.mobile.ios.settings; import com.testsigma.automator.actions.mobile.MobileElementAction; import lombok.extern.log4j.Log4j2; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; @Log4j2 public class DisableWIFIAction extends MobileEle...
half22/picnic
src/plugins/toggle-password.js
<filename>src/plugins/toggle-password.js<gh_stars>1-10 (function(window, $, picnic) { 'use strict'; function createButton(input) { var button = $('<button type="button" class="c-toggle-password-button" tabindex="-1"></button>'); button.insertAfter(input); return button; } ...
pierrecagne/mdc
src/event.js
export const INPUT = "@npolar/input"; export const CHANGE = "@npolar/change";
DazEB2/SimplePyScripts
html_parsing/Wikipedia__Timeline_of_release_years/common.py
<filename>html_parsing/Wikipedia__Timeline_of_release_years/common.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from typing import Callable, Any, Optional import requests from bs4 import BeautifulSoup MatchFunc = Callable[[Any], bool] def find_table(url: str, is_match_table_func: Ma...
diegoperezl/cf4j
src/main/java/es/upm/etsisi/cf4j/recommender/matrixFactorization/BNMF.java
<reponame>diegoperezl/cf4j<filename>src/main/java/es/upm/etsisi/cf4j/recommender/matrixFactorization/BNMF.java<gh_stars>10-100 package es.upm.etsisi.cf4j.recommender.matrixFactorization; import java.util.Arrays; import java.util.Map; import java.util.Random; import java.util.concurrent.locks.ReentrantLock; import es....
373974360/deyatech-cms
statistics/statistics-service/src/main/java/com/deyatech/statistics/controller/CatalogDataController.java
package com.deyatech.statistics.controller; import com.deyatech.common.entity.RestResult; import com.deyatech.statistics.service.CatalogDataService; import com.deyatech.statistics.vo.UserDataQueryVo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOpe...
kfox1111/spire
cmd/spire-server/cli/bundle/show.go
package bundle import ( "context" "flag" "fmt" "github.com/mitchellh/cli" bundlev1 "github.com/spiffe/spire-api-sdk/proto/spire/api/server/bundle/v1" "github.com/spiffe/spire/cmd/spire-server/util" common_cli "github.com/spiffe/spire/pkg/common/cli" ) // NewShowCommand creates a new "show" subcommand for "bun...
leozd1/Aulas-de-python
aula22b.py
<reponame>leozd1/Aulas-de-python # Exercicio 107 # Crie um módulo chamado moeda.py que tenha as funções incorporadas # aumentar(), # diminuir(), # dobro() e # metade(). # Faça também um programa que importe esse módulo e use algumas dessas funções. ''' Dica: No exercicio ficou tudo dentro de uma pasta, o modulo...
Ravyo/Department-Portal
CSDP/main/views.py
from django.shortcuts import redirect, render from main.models import Meeting, ToDo, EventGallery from teachers.models import Teacher from students.models import Student def home(request): students= Student.objects.all() teachers = Teacher.objects.all() # for teacher counter # for club counter meet...
DimensionalDevelopment/Statues
src/main/java/org/dimdev/statues/shared/gui/SlotPickBlock.java
<gh_stars>0 package org.dimdev.statues.shared.gui; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Slot; import net.minecraft.item.ItemStack; public class SlotPickBlock extends Slot { ContainerPickBlock container; public SlotPickBlock(ContainerPickBlock c, int index, int x, int y) ...
kkauder/spack
var/spack/repos/builtin/packages/py-kombu/package.py
<gh_stars>1-10 # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyKombu(PythonPackage): """Messaging library for Python.""" pypi = "ko...
flex-seongbok/java-slack-sdk
slack-api-model/src/main/java/com/slack/api/model/event/GroupDeletedEvent.java
<gh_stars>100-1000 package com.slack.api.model.event; import lombok.Data; /** * The group_deleted event is sent to all members of a private channel when it is deleted. * Clients can use this to update their local list of private channels. * <p> * https://api.slack.com/events/group_deleted */ @Data public class G...
pdv-ru/ClickHouse
src/Functions/IFunction.h
<gh_stars>1-10 #pragma once #include <Core/ColumnNumbers.h> #include <Core/ColumnsWithTypeAndName.h> #include <Core/Names.h> #include <DataTypes/IDataType.h> #include "config_core.h" #include <memory> /// This file contains user interface for functions. namespace llvm { class LLVMContext; class Value; ...
assert0/hackasat-qualifier-2021
errcorr/solver/shifttester.py
import sys # def text_from_bits(bits, encoding='utf-8', errors='surrogatepass'): def text_from_bits(bits, encoding='utf-8', errors='ignore'): try: n = int(bits, 2) val = n.to_bytes((n.bit_length() + 7) // 8, 'big').decode(encoding, errors) or '\0' return val except Exception as e: ...
wuruijie/LXZAPP
HongKZH_IOS/Classes/LeSeeManager/LeSeeModel/SelfMediaModel/CategoryTop10ListRespone.h
<reponame>wuruijie/LXZAPP<gh_stars>1-10 // //Created by ESJsonFormatForMac on 18/09/15. // #import <Foundation/Foundation.h> #import "HKBaseModelRespone.h" @class CategoryTop10ListModel; @interface CategoryTop10ListRespone : HKBaseModelRespone @property (nonatomic, copy) NSString *msg; @property (nonatomic, strong) ...
microsoftly/botbuilder-js
libraries/botbuilder-dialogs/lib/waterfall.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Dialog optimized for prompting a user with a series of questions. Waterfalls accept a stack of * functions which will be executed in sequence. Each waterfall step can ask a question of the user * by calling either a prompt or another ...
King0987654/windows2000
private/ntos/ps/alpha/psctxalp.c
/*++ Copyright (c) 1990 Microsoft Corporation Copyright (c) 1993 Digital Equipment Corporation Module Name: psctxalp.c Abstract: This module implements functions to get and set the context of a thread. Author: <NAME> (davec) 1-Oct-1990 Revision History: <NAME> (tvb) 18-May-...
darkless456/Python
def_function.py
# coding:utf8 # def_function.py def print_two (*args): # 参数个数不确定 arg1, arg2 = args # 参数解包 print ("arg1: %r, arg2: %r"% (arg1, arg2)) # 传递参数 return def print_two_again (arg1, arg2): print ("arg1: %r, arg2: %r"% (arg1, arg2)) return def print_one (arg1): print ("arg1: %r"% arg1) return de...
mjrgh/mbed
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/device/MK64F12/MK64F12_crc.h
<reponame>mjrgh/mbed /* * Copyright (c) 2014, Freescale Semiconductor, Inc. * All rights reserved. * * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAI...
AdamColton/geom
examples/starfield/starfield.go
<reponame>AdamColton/geom package main import ( "fmt" "image/color" "math/rand" "os" "runtime/pprof" "github.com/adamcolton/geom/d3/render/scene" "github.com/adamcolton/geom/d3/render/zbuf" "github.com/adamcolton/geom/d3/shape/plane" "github.com/adamcolton/geom/angle" "github.com/adamcolton/geom/d2" d2pol...
pulquero/mathml
dom/src/main/java/org/w3c/dom/mathml/MathMLCiElement.java
<reponame>pulquero/mathml<filename>dom/src/main/java/org/w3c/dom/mathml/MathMLCiElement.java package org.w3c.dom.mathml; public interface MathMLCiElement extends MathMLContentToken { public String getType(); public void setType(String type); };
kalisio/aktnmap
src/tours/edit-organisation.js
module.exports = [{ target: '#name-field', content: 'tours.organisation.NAME_LABEL', params: { placement: 'bottom' } }, { target: '#avatar-field', content: 'tours.organisation.AVATAR_LABEL', params: { placement: 'bottom' } }, { target: '#color-field', content: 'tours.organisation.COLOR_LABEL...
bizon/mws-sdk
lib/client/parsers/finances/adjustment-event.js
<reponame>bizon/mws-sdk<filename>lib/client/parsers/finances/adjustment-event.js<gh_stars>10-100 const select = require('../select') const nullable = require('../nullable') const {parseStr, parseDate} = require('../base') const parseCurrencyAmount = require('./currency-amount') const parseAdjustmentItem = require('./...
hfp/plaidml
pmlc/target/x86/trace_linking.cc
// Copyright 2020 Intel Corporation #include "llvm/Support/FormatVariadic.h" #include "mlir/Dialect/LLVMIR/LLVMDialect.h" #include "mlir/IR/Builders.h" #include "mlir/IR/BuiltinTypes.h" #include "mlir/Pass/Pass.h" #include "mlir/Pass/PassRegistry.h" #include "pmlc/target/x86/pass_detail.h" #include "pmlc/util/loggin...
JavaQualitasCorpus/myfaces_core-2.1.10
src/myfaces-impl-2.1.10-sources/org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java
/* * 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, Version 2.0 (the * "License"); you ...
realityforge/replicant-example
vendor/tools/buildr_plus/lib/buildr_plus/features/db.rb
<reponame>realityforge/replicant-example # # 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 ...
wandsX/LeetCodeExperience
Offer/Offer-67-ba-zi-fu-chuan-zhuan-huan-cheng-zheng-shu-lcof.cpp
//写一个函数 StrToInt,实现把字符串转换成整数这个功能。不能使用 atoi 或者其他类似的库函数。 // // // // 首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。 // // 当我们寻找到的第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字组合起来,作为该整数的正负号;假如第一个非空字符是数字,则直接将其与之后连 //续的数字字符组合起来,形成整数。 // // 该字符串除了有效的整数部分之后也可能会存在多余的字符,这些字符可以被忽略,它们对于函数不应该造成影响。 // // 注意:假如该字符串中的第一个非空格字符不是一个有效整数字符、字符串为空或字符串仅...
lechium/iOS1351Headers
System/Library/PrivateFrameworks/HealthUI.framework/_HKStretchableImage.h
<filename>System/Library/PrivateFrameworks/HealthUI.framework/_HKStretchableImage.h /* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:22:26 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F...
AP-Atul/Torpido
torpido/wavelet/wavelets/coif4.py
<reponame>AP-Atul/Torpido """ Coiflets 4 wavelet """ class Coiflets4: """ Properties ---------- near symmetric, orthogonal, biorthogonal All values are from http://wavelets.pybytes.com/wavelet/coif4/ """ __name__ = "Coiflets Wavelet 4" __motherWaveletLength__ = 24 # length of the mo...
snaphy/generator-snaphy
generators/androidSdk/templates/snaphyandroidsdk/src/main/java/com/androidsdk/snaphy/snaphyandroidsdk/models/CustomContainer.java
package com.androidsdk.snaphy.snaphyandroidsdk.models; /** * Created by snaphy on 14/9/16. */ import com.strongloop.android.loopback.callbacks.ObjectCallback; import com.androidsdk.snaphy.snaphyandroidsdk.repository.CustomFileRepository; import com.strongloop.android.loopback.Container; import com.strongloop.android...
1847123212/YoC-open
solutions/ble_bas_demo/app/src/app_main.c
<filename>solutions/ble_bas_demo/app/src/app_main.c /* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <stdlib.h> #include <string.h> #include <aos/aos.h> #include "aos/ble.h" #include "app_main.h" #include "app_init.h" #include "pin_name.h" #include <yoc/bas.h> #define TAG "DEMO" #define DEVIC...
flash8627/icustom-boot
security/security.core/src/main/java/com/gwtjs/icustom/springsecurity/service/impl/RoleRestService.java
<filename>security/security.core/src/main/java/com/gwtjs/icustom/springsecurity/service/impl/RoleRestService.java<gh_stars>0 package com.gwtjs.icustom.springsecurity.service.impl; import io.swagger.annotations.Api; import org.springframework.beans.factory.annotation.Autowired; import com.gwtjs.icustom.entity.PageVO;...
EchoThreeLLC/echothree
src/java/com/echothree/model/control/carrier/server/transfer/CarrierServiceTransferCache.java
// -------------------------------------------------------------------------------- // Copyright 2002-2022 Echo Three, 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:/...
smalluniversezzq/core
src/services/admin/core/assist/index.js
import { request, METHOD } from '@/utils/request' // 帮助中心帮助文章相关API const apiList = { AssistIndex: '/admin/core/assist/index', // 文章列表 AssistAdd: '/admin/core/assist/add', // 添加 AssistEdit: '/admin/core/assist/edit', // 编辑 AssistDetail: '/admin/core/assist/detail', // 详情 AssistDisplay: '/admin/core/assist/disp...
stephwuh/digitalCloset
client/src/features/outfits/outfits/GetOutfitImage.js
<filename>client/src/features/outfits/outfits/GetOutfitImage.js import React from 'react'; import { useHistory } from 'react-router-dom'; import { Image } from 'cloudinary-react'; import { useDispatch } from 'react-redux'; import { bindActionCreators } from 'redux'; import { actionCreators } from '../../.././redux/inde...
lebarsfa/vpython-wx
src/python/wrap_rgba.cpp
// Copyright (c) 2003, 2004 by <NAME> and others. // See the file license.txt for complete license terms. // See the file authors.txt for a complete list of contributors. #include "util/rgba.hpp" #include <boost/python/to_python_converter.hpp> #include <boost/python/extract.hpp> #include <boost/python/tuple...
xformation/xformation-compliance-aws-collector
src/main/java/com/synectiks/aws/entities/rds/InternetGateway.java
<filename>src/main/java/com/synectiks/aws/entities/rds/InternetGateway.java package com.synectiks.aws.entities.rds; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; public class InternetGateway { private String externalID; private List<VpcAttachment> vpcAttachments; private String name...
ruuvi/ruuvi.dongle_esp.c
main/http.c
/** * @file http.c * @author <NAME> * @date 2019-11-27 * @copyright Ruuvi Innovations Ltd, license BSD-3-Clause. */ #include "http.h" #include <string.h> #include <time.h> #include <errno.h> #include <esp_task_wdt.h> #include "cJSON.h" #include "cjson_wrap.h" #include "esp_http_client.h" #include "ruuvi_gateway.h...
truekonrads/mirv-metasploit
lib/gemcache/ruby/1.9.1/gems/mail-2.4.4/lib/mail/parsers/received.rb
<gh_stars>10-100 # Autogenerated from a Treetop grammar. Edits may be lost. module Mail module Received include Treetop::Runtime def root @root ||= :primary end include RFC2822 module Primary0 def name_val_list elements[0] end def date_time elements[2]...
FlorianBauer/sila-orchestrator
orchestrator-client/src/main/java/de/fau/clients/orchestrator/utils/XmlUtils.java
<reponame>FlorianBauer/sila-orchestrator<gh_stars>1-10 package de.fau.clients.orchestrator.utils; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import com.fasterxml.jackson.module.jaxb.Jaxb...
dipta007/Competitive-Programming
COACH/zahin vai/182550 - MIST Team Contest/H.cpp
#include <bits/stdc++.h> #define ll long long int #define pii pair <int,int> #define ff first #define ss second #define pi acos(-1.0) #define pb push_back #define INF (ll)1e17 #define N 1002 #define MOD 1000000007 #define BASE 100003 const double EPS = 1e-9; #define eq(a,b) (fabs(a-b)<EPS) //#define FastRead ios_base:...
fjl121029xx/myWaterdrop
waterdrop-core/src/main/scala/io/github/interestinglab/waterdrop/filter/Replace.scala
<reponame>fjl121029xx/myWaterdrop package io.github.interestinglab.waterdrop.filter import com.typesafe.config.{Config, ConfigFactory} import io.github.interestinglab.waterdrop.apis.BaseFilter import org.apache.spark.sql.{Dataset, Row, SparkSession} import scala.collection.JavaConversions._ import org.apache.spark.sq...
stas-vilchik/bdd-ml
data/5376.js
<reponame>stas-vilchik/bdd-ml { process.stdout.write(adjustToTerminalWidth(`${path.basename(p)}\n`)); process.stdout.write(`${OK}\n`); }
roman-kachanovsky/checkio
tests/scientific_expedition/test_what_is_wrong_with_this_family.py
<reponame>roman-kachanovsky/checkio import unittest from solutions.scientific_expedition.what_is_wrong_with_this_family import my_solution class TestSolution(unittest.TestCase): def test_solution(self): self.assertTrue(my_solution([['Logan', 'Mike']])) self.assertTrue(my_solution([ [...
kucjac/clego
database/xpg/errors.go
<filename>database/xpg/errors.go package xpg import ( "context" "github.com/go-pg/pg/v10" "github.com/kucjac/cleango/cgerrors" ) const ( errCancelled = "57014" ) // ErrWrapf takes error returned from Postgres and returns structured error. // Basically, we work with three database related kinds of errors: // Er...
TxConvergentAdmin/f20-bt-impact-local-business
node_modules/@react-navigation/core/lib/module/utils/withDefaultValue.js
export default ((obj, key, defaultValue) => { if (obj.hasOwnProperty(key) && typeof obj[key] !== 'undefined') { return obj; } obj[key] = defaultValue; return obj; }); //# sourceMappingURL=withDefaultValue.js.map
sonia-auv/sonia-behaviors
sonia_flexbe_behaviors/src/sonia_flexbe_behaviors/snake_mouvement_sm.py
<gh_stars>0 #!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the...
seinecle/graphstore
store/src/main/java/org/gephi/graph/impl/TimestampsParser.java
<filename>store/src/main/java/org/gephi/graph/impl/TimestampsParser.java<gh_stars>0 /* * Copyright 2012-2013 Gephi Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * *...
panduakas/express-sequelize-boilerplate
app/middlewares/httpRequestLog.js
const clone = require('clone'); const { get } = require('lodash'); const { logInfo } = require('../helpers'); const requestLog = async (req, res, next) => { const { baseUrl, originalUrl, method, query, params, body, ip, headers, } = req; const requestId = get(req, 'headers.reques...
ambros-gleixner/rubberband
rubberband/utils/file.py
"""Methods to help with file io.""" from rubberband.constants import FILES_DIR def write_file(filename, contents): """ Save a file on the filesystem. Parameters ---------- filename : string Filename of file to write to. contents : string Contents to write into file. """ ...
olivierverdier/sfepy
sfepy/solvers/oseen.py
from sfepy.base.base import * from sfepy.base.log import Log, get_logging_conf from sfepy.solvers.solvers import NonlinearSolver from nls import conv_test ## # 26.07.2007, c def are_close( a, b, rtol = 0.2, atol = 1e-8 ): return False # return abs( a - b ) <= max( atol, rtol * abs( b ) ) ## # 26.07.2007, c def...
brianlindsy/chpl-api
chpl/chpl-service/src/main/java/gov/healthit/chpl/dao/statistics/SummaryStatisticsDAOImpl.java
<gh_stars>0 package gov.healthit.chpl.dao.statistics; import java.util.Date; import java.util.List; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import gov.healthit.chpl.dao.impl.BaseDAOImpl; import gov.healthit.chpl.entity.SummaryStatisticsEntity...
FizzCorp/fizz-platform
components/api-gateway/src/test/java/io/fizz/common/MockLoggingService.java
<reponame>FizzCorp/fizz-platform package io.fizz.common; import java.util.ArrayList; import java.util.List; public class MockLoggingService extends LoggingService { static class MockLog extends LoggingService.Log { private List<String> logStream = new ArrayList<>(); MockLog(Class<?> clazz) { ...
dxylove/EVAL-ADICUP360
projects/ADuCM360_demo_cn0337/include/Communication.h
/*! ***************************************************************************** * @file: Communication.h * @brief: * @version: $Revision$ * @date: $Date$ *----------------------------------------------------------------------------- * Copyright (c) 2015-2017 Analog Devices, Inc. All rights reserved. Re...
driehuis/vimmate
lib/active_window/active_column.rb
<filename>lib/active_window/active_column.rb require 'gtk2' module ActiveWindow =begin ActiveColumn is used to define columns for ActiveTreeStore =end class ActiveColumn attr_accessor :id, :name ClassesToSymbols = { TrueClass => :boolean, FalseClass => :boolean, String =>...
erkambozan/algo-sb
ms-searching-service/src/main/java/fworks/algorithms/searching/search/AlgorithmSearchService.java
package fworks.algorithms.searching.search; import fworks.algorithms.counter.Counter; import fworks.algorithms.searching.model.searchrequest.SearchRequest; import fworks.algorithms.searching.model.searchrequest.SearchResponse; import java.time.Duration; import java.time.Instant; /** * Search Service. * ...
i-victor/Smart.DevScripts
go-lang/go/src/github.com/codymalick/simple-raft/main.go
// Simple implementation of the raft concensus algorithm using golang rpc // <NAME> and <NAME> package main import ( "flag" ) const ( numServers = 5 timeout = 5 //seconds ) // Leader Election: Choose a leader // Log replication: Make sure all systems have the same view of the log // Safety: Make sure a leader who...
LIGHT1213/H750_TouchGFX
libraries/touchgfx_lib/TouchGFX/gui/src/heartline_screen/HeartLinePresenter.cpp
<filename>libraries/touchgfx_lib/TouchGFX/gui/src/heartline_screen/HeartLinePresenter.cpp #include <gui/heartline_screen/HeartLineView.hpp> #include <gui/heartline_screen/HeartLinePresenter.hpp> HeartLinePresenter::HeartLinePresenter(HeartLineView& v) : view(v) { } void HeartLinePresenter::activate() { } void ...
saki9478/qqbot_to_osu
awesome/plugins/help/__init__.py
<gh_stars>0 # -*- coding: UTF-8 -*- import nonebot from nonebot import on_command, CommandSession import config from awesome.plugins.help import help_content from . import app @on_command('help_command', only_to_me=False, aliases=(config.HELP, config.HELP_UPPER)) async def help_func(session: CommandSession): """...
wztlei/wathub
uwaterlooapi-library/src/main/java/com/deange/uwaterlooapi/model/watcard/Transaction.java
<gh_stars>1-10 package com.deange.uwaterlooapi.model.watcard; import com.deange.uwaterlooapi.model.AbstractModel; import com.google.auto.value.AutoValue; import java.math.BigDecimal; @AutoValue public abstract class Transaction extends AbstractModel { public abstract TransactionDate date(); public abstract...
lnx00/Fedoraware
Fedoraware/TeamFortress2/TeamFortress2/Hooks/Hooks.h
<gh_stars>10-100 #pragma once #include "../Utils/MinHook/MinHook.h" #include "../SDK/SDK.h" #include <stdexcept> //Credits go entirely to spook953 class CHook { std::string Name; void* OriginalFunction = nullptr; void* InitFunction = nullptr; public: CHook(const std::string& name, void* pInitFunction); void C...
afnanenayet/go-sdk
configutil/env.go
package configutil import ( "time" "github.com/blend/go-sdk/env" ) var ( _ StringSource = (*Env)(nil) _ BoolSource = (*Env)(nil) _ IntSource = (*Env)(nil) _ Float64Source = (*Env)(nil) _ DurationSource = (*Env)(nil) ) // Env is a value provider where the string represents the environment variable...
piotr-sobczyk/daily-work
src/main/java/org/dailywork/ui/state/InitialState.java
/* * Copyright (c) 2010-2012 <NAME>. * * 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 app...
pltod2/api-builder-extras
api-builder-plugin-fn-redis/src/index.js
const { createPluginWithContext, isDeveloperMode } = require('./utils'); const createRedisClient = require('./redis-client'); const actions = require('./actions'); /** * Resolves the API Builder plugin. * @returns {object} An API Builder plugin. */ async function getPlugin(pluginConfig, options) { let redisClient;...
NilsRenaud/vert.x
src/test/java/io/vertx/core/impl/launcher/commands/ComplexCommand.java
/* * Copyright (c) 2011-2019 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
niuchenglei/rankextor
src/Model/FMModel.h
<filename>src/Model/FMModel.h #ifndef FMMODEL_H #define FMMODEL_H #include <sstream> #include <time.h> //#include <sharelib/util/string_util.h> #include <boost/unordered_map.hpp> #include "Utilities/AdUtil.h" #include "Interfaces/ModelBase.h" namespace rank { class fm_coeff_t : public rank::Resource { public: virt...
Elpis-Development/reactive-websockets
reactive-websockets/src/main/java/org/elpis/reactive/websockets/EnableReactiveSockets.java
<reponame>Elpis-Development/reactive-websockets package org.elpis.reactive.websockets; import org.elpis.reactive.websockets.config.WebSocketConfiguration; import org.springframework.context.annotation.Import; import java.lang.annotation.*; /** * Imports {@link WebSocketConfiguration} class * * @author <NAME> * @...
kcosta42/Multilayer_Perceptron
libft/losses/mean_squared_error.py
<filename>libft/losses/mean_squared_error.py import libft.backend.math as M from libft.losses.loss import Loss class MeanSquaredError(Loss): """Computes the mean of squares of errors between labels and predictions.""" def call(self, y_true, y_pred): return M.mean(M.square(y_pred - y_true), axis=-1) ...
citrum/log-server
log-server-client/src/com/github/winmain/logserver/client/LogWriterClient.scala
package com.github.winmain.logserver.client import java.io.DataOutputStream import java.lang.management.ManagementFactory import java.nio.file.{Files, Path, StandardOpenOption} import java.time.LocalDateTime import java.time.format.DateTimeFormatter import com.github.winmain.logserver.core.RecordId.{EmptyRecordId, In...
shammishailaj/slashdeploy
lib/tasks/brakeman.rake
namespace :brakeman do desc 'Run Brakeman' task :run do |t| require 'brakeman' Brakeman.run app_path: '.', print_report: true end end
Zardoz89/dcpu_vm
src/dcpu-vm.cpp
<reponame>Zardoz89/dcpu_vm<filename>src/dcpu-vm.cpp #include <iostream> #include <cstdint> #include <algorithm> #include <memory> #include <vector> #include <cstdio> #include <chrono> #include <cmath> #include "config.hpp" // Machine core #include <dcpu/dcpu_opcodes.hpp> #include <dcpu/dcpu.hpp> // Devices #include ...
willylee007/openvidu
openvidu-test/src/main/java/io/openvidu/test/config/RoomTestConfiguration.java
<reponame>willylee007/openvidu<filename>openvidu-test/src/main/java/io/openvidu/test/config/RoomTestConfiguration.java<gh_stars>1-10 /* * (C) Copyright 2017-2019 OpenVidu (https://openvidu.io/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with ...
pitfire4653/learning
src/project/Wvsiqhta.java
package project; public class Wvsiqhta { String message = "Wvsiqhta"; public Wvsiqhta() { super(); } public void speak() { System.out.println(message); } }
lucaspereirag/pythonProject
ex016.py
<reponame>lucaspereirag/pythonProject<gh_stars>0 import math catoposto = float(input('Digite o valor do Cateto Oposto: ')) catadj = float(input('Digite o valor do Cateto Adjacente: ')) hipotenusa = math.hypot(catoposto, catadj) print('O valor da Hipotenusa é {:.2f}'.format(hipotenusa))
oroca/oroca_boy3
emulator/emul_doom/src/ap/doom/i_midipipe.c
<reponame>oroca/oroca_boy3 // // Copyright(C) 2013 <NAME> et al. // Copyright(C) 2017 <NAME> // // 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...
GazeUI/SpringBoot
src/main/java/io/gazeui/Label.java
// // Copyright (c) 2019-2020 <NAME> (<EMAIL>) // Licensed under the MIT license. See LICENSE file in the project root for full license information. // package io.gazeui; import java.util.Optional; public class Label extends Control { private String text; public Label() { } public Lab...
GlobalFinPrint/global_finprint
global_finprint/annotation/migrations/0063_new_features.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2018-09-20 17:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('annotation', '0062_test1'), ] operations = [ migrations.AlterField( ...
vontikov/stoa
internal/gateway/server_mutex.go
<gh_stars>1-10 package gateway import ( "context" "time" "github.com/golang/protobuf/proto" "github.com/vontikov/stoa/pkg/pb" ) func (s *server) MutexTryLock(ctx context.Context, v *pb.ClientId) (*pb.Result, error) { if err := v.Validate(); err != nil { return nil, err } msg := pb.ClusterCommand{ Command...