repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
EPIC-striker/playground
javascript/features/nuwani/runtime/mode_parser.js
<gh_stars>10-100 // Copyright 2020 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. // Parser to split up the IRC MODE command in a sequence of individual changes. The flexibility // offered by the command's sy...
dplbsd/soc2013
head/sys/compat/svr4/svr4_sysconfig.h
<reponame>dplbsd/soc2013<gh_stars>0 /*- * Copyright (c) 1998 <NAME> * Copyright (c) 1995 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must r...
mszostok/capact
internal/cli/capact/images.go
<gh_stars>10-100 package capact import ( "context" "capact.io/capact/internal/cli/printer" "github.com/pkg/errors" ) // LoadImages loads Docker images into proper environment func LoadImages(ctx context.Context, status printer.Status, images []string, opts Options) error { switch opts.Environment { case KindEn...
yamanalab/PALISADE
src/signature/unittest/UnitTestGPV.cpp
/* * @file This code exercises the GPV signature methods of the PALISADE lattice * encryption library. * @author TPOC: <EMAIL> * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification,...
dmgerman/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factories/impl/pb/RpcClientFactoryPBImpl.java
<filename>hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factories/impl/pb/RpcClientFactoryPBImpl.java begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor licens...
phannyngoun1/go4work
modules/workflow/src/main/scala/com/dream/workflow/usecase/port/ParticipantAggregateFlows.scala
<gh_stars>0 package com.dream.workflow.usecase.port import akka.NotUsed import akka.stream.scaladsl.Flow import com.dream.workflow.usecase.ParticipantAggregateUseCase.Protocol trait ParticipantAggregateFlows { def create: Flow[Protocol.CreateParticipantCmdReq, Protocol.CreateParticipantCmdRes, NotUsed] def get:...
marvelperseus/Real-Estate-website-frontend
src/frontEndComponents/HeaderNavLink/styledComponents/index.js
import styled from 'styled-components'; export const HeaderLink = styled.a` box-sizing: border-box; position: relative; color: ${props => props.active ? 'rgba(255,255,255,1);' : 'rgba(255,255,255,.9)'}; text-decoration: none; transition: color 0.1s ease-in-out; cursor: pointer; padding: 5px 5px; &:...
dynamicapp/dynamicapp
lib/Android/Library/src/jp/zyyx/dynamicapp/plugins/Encryptor.java
package jp.zyyx.dynamicapp.plugins; import java.security.MessageDigest; import java.util.Random; import jp.zyyx.dynamicapp.core.Plugin; import jp.zyyx.dynamicapp.utilities.DebugLog; import org.json.JSONException; /* * Copyright (C) 2014 ZYYX, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"...
elastisys/scale.cloudadapters
aws/spot/src/main/java/com/elastisys/scale/cloudpool/aws/spot/driver/SpotPoolDriver.java
<reponame>elastisys/scale.cloudadapters<filename>aws/spot/src/main/java/com/elastisys/scale/cloudpool/aws/spot/driver/SpotPoolDriver.java package com.elastisys.scale.cloudpool.aws.spot.driver; import static com.amazonaws.services.ec2.model.InstanceStateName.Pending; import static com.amazonaws.services.ec2.model.Insta...
jurgendl/jhaws
jhaws/wicket/src/main/java/org/jhaws/common/web/wicket/filestore/DeleteResult.java
<reponame>jurgendl/jhaws<filename>jhaws/wicket/src/main/java/org/jhaws/common/web/wicket/filestore/DeleteResult.java package org.jhaws.common.web.wicket.filestore; import java.util.ArrayList; import java.util.List; import java.util.Map; public class DeleteResult { public List<Map<String, Boolean>> files = new Arr...
Mankio/Wakfu-Builder
src/utilities/c_effect.h
<filename>src/utilities/c_effect.h #ifndef C_EFFECT_H #define C_EFFECT_H #include "c_action.h" #include <QMap> #include <QString> #include <QVector> #include <QDebug> class c_dbmanager; class c_effect { public: c_effect(const c_dbmanager *dbmanager, int id = 0, c_action action = c_action(), int are...
infect-org/infect-rda-sample-importer
test/200.250-RegionProcessor.js
import assert from 'assert'; import section from 'section-tests'; import RegionProcessor from '../src/lib/field/RegionProcessor.js'; section.continue('Field Processors', (section) => { section('RegionProcessor', (section) => { section.test('invald value', async() => { const processor = ...
fidusio/io-xlogistx
core/src/main/java/io/xlogistx/shared/data/SMTPConfig.java
<gh_stars>0 package io.xlogistx.shared.data; import org.zoxweb.shared.data.SetNameDescriptionDAO; import org.zoxweb.shared.filters.FilterType; import org.zoxweb.shared.filters.ValueFilter; import org.zoxweb.shared.util.*; public class SMTPConfig extends SetNameDescriptionDAO { public enum Param ...
benety/mongo
jstests/replsets/initial_sync_test_fixture_test.js
<filename>jstests/replsets/initial_sync_test_fixture_test.js /** * Test to check that the Initial Sync Test Fixture properly pauses initial sync. * * The test checks that both the collection cloning and oplog application stages of initial sync * pause after exactly one command is run when the test fixture's step fu...
sth4nothing/pyleetcode
solution/lc5394.py
<filename>solution/lc5394.py # encoding: utf-8 '''力扣解决方案''' import bisect import collections import functools import heapq import itertools import json import math import queue import re from typing import (Any, Callable, Counter, DefaultDict, Dict, Iterable, List, Set, Tuple) import my_timer @my_...
sdeli/cms
app/routers/admin-router/article-categories-router/article-categories-router.js
const express = require('express'); const config = require('config'); const articleCategoriesRouter = express.Router(); const {moveSessionBodyToReq} = require('widgets/middlewares'); let restEp = config.restEndpoints; let getAddArticleCategoryView = require('./get-add-article-category-view/get-add-article-category-v...
Anlon-Burke/vespa
messagebus/src/main/java/com/yahoo/messagebus/routing/RouteParser.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.messagebus.routing; /** * This replaces the incredibly slow javacc RouteParser.jj. It is a has its c++ sibling and * the implementation is a a copy of the C++ version. * @author baldersheim * ...
tehilabk/cpp-5781
03-composition-references/8-friend-functions/friend.cpp
/** * Demostrates friend methods. * * @author <NAME> * @since 2019-02 */ #include <iostream> using namespace std; class MyClass { private: int myField; public: MyClass(): myField(555) {} void print1(ostream& out) const; // member method friend void print2(ostream& out, const MyClass& ob...
lambdaxing/dsaa_cpp2
DataStructures/linearList/vectorList.h
// vector implementation of a linear list // derives from abstract class linearList just to make sure // all methods of the ADT are implemented // USES STL ALGORITHMS TO SIMPLIFY CODE // iterator class for vectorList included #ifndef vectorList_ #define vectorList_ #include <iostream> #include <sstream> #i...
alphya/nyaruga_util
doc/html/search/files_e.js
<filename>doc/html/search/files_e.js var searchData= [ ['unwrap_5ftemplate_2ehpp_128',['unwrap_template.hpp',['../unwrap__template_8hpp.html',1,'']]] ];
Onelio/ConnectU
app/src/main/java/com/onelio/connectu/Fragments/NotificationListFragment.java
package com.onelio.connectu.Fragments; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ListView; import android.widget.T...
adobe-uxp/devtools-cli
packages/uxp-devtools-core/src/core/client/plugin/actions/PluginLogCommand.js
<filename>packages/uxp-devtools-core/src/core/client/plugin/actions/PluginLogCommand.js /* eslint-disable max-len */ /* eslint-disable class-methods-use-this */ /* * Copyright 2020 Adobe Systems Incorporated. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); ...
sensiml/stwin-simple-stream
STSW-STWINKT01_V2.1.0/Middlewares/ST/STM32_Connect_Library/Includes/net_errors.h
/** ****************************************************************************** * @file net_errors.h * @author MCD Application Team * @brief Defines the network interface error codes ****************************************************************************** * @attention * * <h2><center>&cop...
vvdleun/adlib-rol-stepsequencer-java
src/main/java/nl/vincentvanderleun/adlib/rol/stepsequencer/compiler/song/event/EventType.java
<reponame>vvdleun/adlib-rol-stepsequencer-java<gh_stars>1-10 package nl.vincentvanderleun.adlib.rol.stepsequencer.compiler.song.event; public enum EventType { TEMPO, NOTE, INSTRUMENT, VOLUME, PITCH }
martin-traverse/tracdap
tracdap-libs/tracdap-lib-validation/src/main/java/org/finos/tracdap/common/validation/Validator.java
<filename>tracdap-libs/tracdap-lib-validation/src/main/java/org/finos/tracdap/common/validation/Validator.java /* * Copyright 2022 Accenture Global Solutions Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
mgvez/freestone-frontend
src/actions/sendFile.js
<filename>src/actions/sendFile.js import { Promise } from 'bluebird'; import { FREESTONE_API } from '../middleware/api'; import { SavedFileInput } from '../freestone/fileInputs'; import { createRequestTypes } from './apiAction'; export const FILE_API = createRequestTypes('FILE_API'); const CHUNK_SIZE = 1024 * 1024; ...
plandes/amrlib
scripts/62_ISI_Aligner/10_Gather_LDC.py
<filename>scripts/62_ISI_Aligner/10_Gather_LDC.py<gh_stars>100-1000 #!/usr/bin/python3 import setup_run_dir # this import tricks script to run from 2 levels up import os from glob import glob from amrlib.graph_processing.amr_loading_raw import load_raw_amr # Extract the setence and one-line graph from a full a...
johnantoc/ClimaSense
src/components/basic/DayItem/DayItem.style.js
import { StyleSheet } from "react-native"; const DayItemStyles = StyleSheet.create({ item: { flex: 1, flexDirection: "row", paddingHorizontal: 10, paddingVertical: 10, justifyContent: "space-between", alignItems: "center", }, iconContainer: { flex: 0.2, }, descContainer: { fle...
youngdaLee/Baekjoon
src/17/17614.js
<reponame>youngdaLee/Baekjoon<filename>src/17/17614.js /** * 17614. 369 * * 작성자: xCrypt0r * 언어: node.js * 사용 메모리: 9,296 KB * 소요 시간: 236 ms * 해결 날짜: 2020년 11월 25일 */ const fs = require('fs'); function main() { let N = +fs.readFileSync('/dev/stdin').toString(); let count = 0; for (let i = 1; i <= ...
Site-Command/Vulcan
packages/vulcan-lib/test/server/fragments.test.js
<reponame>Site-Command/Vulcan<gh_stars>1000+ import expect from 'expect' import SimpleSchema from 'simpl-schema'; import { createDummyCollection, normalizeGraphQLSchema } from 'meteor/vulcan:test' import { getDefaultFragmentText } from '../../lib/modules/graphql/defaultFragment'; const test = it const fooCollection =...
s-webber/oakgp
src/main/java/org/oakgp/function/hof/Map.java
/* * Copyright 2015 <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 applicable law or agreed to in wr...
FatihErdem/incubator-skywalking
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryMetricService.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 may ...
Yalantis/e-contact-android
app/src/main/java/ua/gov/dp/econtact/api/request/AddressApi.java
<gh_stars>100-1000 package ua.gov.dp.econtact.api.request; import ua.gov.dp.econtact.api.ApiSettings; import ua.gov.dp.econtact.model.address.City; import ua.gov.dp.econtact.model.address.District; import ua.gov.dp.econtact.model.address.House; import ua.gov.dp.econtact.model.address.Street; import java.util.List; i...
kougianos/Homie
project/Airbnb/src/java/entities/Space.java
<reponame>kougianos/Homie /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package entities; import java.io.Serializable; import java.util.List; import javax.persistence.Basic; import...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/AssistiveControlSupport/NSDictionary-ACSHDictionaryExtras.h
<filename>PrivateFrameworks/AssistiveControlSupport/NSDictionary-ACSHDictionaryExtras.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSDictionary.h" @interface NSDictionary (ACSHDictionaryExtras) - (id)identifier; - (id)lo...
hxschool/greathiit
src/main/java/com/thinkgem/jeesite/modules/payment/web/admin/SysPaymentTypeController.java
/** * Copyright &copy; 2018-2025 <a href="http://www.greathiit.com">哈尔滨信息工程学院</a> All rights reserved. */ package com.thinkgem.jeesite.modules.payment.web.admin; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.authz.annotation.RequiresPermissions;...
shailcoolboy/Warp-Trinity
edk_user_repository/WARP/drivers/eeprom_v1_07_a/examples/EEPROM_SetupTestApp.c
//Copyright (c) 2006 Rice University //All Rights Reserved //This code is covered by the Rice-WARP license //See http://warp.rice.edu/license/ for details //////////////////////////////////////////////////// // EEPROM Setup // Written by: <NAME> 1.[903].278.7621 // Created: July 27, 2006 // Last update: July 27...
ThisIsIsaac/high-res-stereo
unlabeled_util/list_all_imgs.py
import os import random from click.exceptions import FileError if __name__ == "__main__": root_path = "/DATA1/isaac/" dirs = os.walk(os.path.join(root_path, "KITTI_raw")) img_paths = [] for (dirpath, dirnames, filenames) in dirs: if "image_02/data" in dirpath: if len(...
haroonahmad12/apollofy-music-project
packages/web/src/components/organisms/information/ProfileUserCards/index.js
<gh_stars>0 export { default } from "./ProfileUserCards";
eson-yunfei/AndroidBle
blesdk/src/main/java/com/e/back/bean/BLEUuid.java
///* // * Copyright (c) 2017. xiaoyunfei // * // * 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 // * // * Unles...
pitpite/ledger-live-desktop
src/renderer/modals/TutorialModal/index.js
<gh_stars>1000+ // @flow import React, { useCallback, useState, useMemo } from "react"; import { Trans } from "react-i18next"; import styled from "styled-components"; import TrackPage from "~/renderer/analytics/TrackPage"; import Text from "~/renderer/components/Text"; import Button from "~/renderer/components/Button"...
HongdaZ/ITK
Modules/ThirdParty/GDCM/src/gdcm/Utilities/socketxx/socket++/sockstream.cpp
<filename>Modules/ThirdParty/GDCM/src/gdcm/Utilities/socketxx/socket++/sockstream.cpp<gh_stars>1-10 // sockstream.C -*- C++ -*- socket library // Copyright (C) 2002 <NAME> for my changes, see ChangeLog. // // Copyright (C) 1992-1996 <NAME> <<EMAIL>> // // Permission is granted to use at your own risk and distribute thi...
gza/beats
libbeat/common/cfgtype/byte_size.go
<reponame>gza/beats<filename>libbeat/common/cfgtype/byte_size.go // Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the...
SeifIbrahim/TaoStore
src/TaoProxy/ClientAddressCache.java
<gh_stars>1-10 package TaoProxy; import java.net.InetSocketAddress; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * @brief Class used to cache InetSocketAddresses so we do not need to create them each time */ public class ClientAddressCache { // Map from client hostname to InetSocketA...
JianpingZeng/xcc
xcc/java/backend/analysis/ScalarEvolution.java
<reponame>JianpingZeng/xcc package backend.analysis; /* * Extremely Compiler Collection * Copyright (c) 2015-2020, <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:...
chcbaram/odroid_go_adv
go2_fw/ap/gnuboy/mem.c
<gh_stars>1-10 #include <stdlib.h> #include "gnuboy.h" #include "defs.h" #include "hw.h" #include "regs.h" #include "mem.h" #include "rtc.h" #include "lcd.h" #include "sound.h" struct mbc mbc; struct rom rom; struct ram ram; /* * In order to make reads and writes efficient, we keep tables * (indexed by the high n...
sbearben/vimeo_client
app/src/main/java/uk/co/victoriajanedavis/vimeo_api_test/data/remote/vimeo/VimeoMetadataChannelDeserializer.java
package uk.co.victoriajanedavis.vimeo_api_test.data.remote.vimeo; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParseException; import java.lang.reflect.Type; import uk.co.v...
SINeWang/summer
summer-beans/src/main/java/one/kii/summer/beans/utils/ValueMapping.java
package one.kii.summer.beans.utils; import java.util.List; import java.util.Map; /** * Created by WangYanJiong on 27/05/2017. */ public class ValueMapping { public static <T> T from(Class<T> target, Object... sources) { return MultipleValueMapping.from(target, sources); } public static <T> T f...
DAATeam/DAA_Official
src/main/java/com/uit/daa/issuer/Controllers/AdminController.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.uit.daa.issuer.Controllers; import static com.uit.daa.issuer.Controllers.IssuerController.ERROR; import static com.uit.daa...
gparkkii/HelloTube
client/src/pages/Feed.js
<gh_stars>1-10 import AppLayout from 'components/common/AppLayout'; import Explore from 'components/Feed/Explore'; import MyPlaylist from 'components/Feed/MyPlaylist'; import MyComment from 'components/Feed/MyComment'; import MyFavorite from 'components/Feed/MyFavorite'; import MyVideo from 'components/Feed/MyVideo'; i...
ManonGros/colplus-backend
colplus-ws/src/main/java/org/col/matching/authorship/BasionymSorter.java
package org.col.matching.authorship; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.function.Function; import com.google.common.base.Functions; import com.google.common.collect.Lists; import org.col.api.model.Name; import org.gbif.nameparser.api.Authorship; import org....
kaylangan/azure-devops-intellij
plugin.idea/src/com/microsoft/alm/plugin/idea/git/ui/pullrequest/GitChangesContainer.java
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the project root. package com.microsoft.alm.plugin.idea.git.ui.pullrequest; import git4idea.repo.GitRepository; import git4idea.util.GitCommitCompareInfo; /** * This class wraps the GitCommitCompareInfo object and...
mousedogpig/solr5.5.4
solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/VariableResolver.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 may ...
evoila/cf-service-broker-docker
bosh/src/main/java/de/evoila/cf/cpi/bosh/deployment/DeploymentManager.java
package de.evoila.cf.cpi.bosh.deployment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectReader; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; imp...
henrikhorbovyi/URI
src/beginner/1174.py
A = [] for i in range(100): n = float(input()) A.append(n) if(A[i] <= 10.0): print('A[{0}] = {1:.1f}'.format(i,A[i]))
tudor1805/traffic-collector
src/TrafficModel/TrafficCollectorServerNew/src/java/ro/pub/acs/traffic/collector/service/LocationService.java
<reponame>tudor1805/traffic-collector<gh_stars>0 package ro.pub.acs.traffic.collector.service; import ro.pub.acs.traffic.collector.dao.LocationDAO; import ro.pub.acs.traffic.collector.domain.Location; public class LocationService extends AbstractService<Location, Long> { public Location findLocationByUserId(Stri...
richung99/digitizePlots
venv/Lib/site-packages/nipype/utils/imagemanip.py
"""Image manipulation utilities (mostly, NiBabel manipulations).""" import nibabel as nb def copy_header(header_file, in_file, keep_dtype=True): """Copy header from a reference image onto another image.""" hdr_img = nb.load(header_file) out_img = nb.load(in_file, mmap=False) hdr = hdr_img.header.copy(...
Akankshasharmaa/100DaysOfCode
day11/d11p1.py
<filename>day11/d11p1.py def in1to10(num, outside_mode): if outside_mode == False and 1 <= num <= 10: return True elif outside_mode == True and (num <= 1 or num >= 10): return True else: return False result = in1to10(5, False) print(result) result = in1to10(11, False) print(result) ...
daymenu/gopl
ch4/graph/graph.go
package graph var graph = make(map[string]map[string]bool) func AddEdge(from, to string) { edges := graph[from] if edges == nil { edges = make(map[string]bool) graph[from] = edges } edges[to] = true } func HasEdge(from, to string) bool { return graph[from][to] }
sweetzxd/OA
controller/src/main/java/com/oa/core/system/warning/WarningController.java
<reponame>sweetzxd/OA package com.oa.core.system.warning; /** * @ClassName:WarningController * @author:zxd * @Date:2018/10/12 * @Time:下午 3:23 * @Version V1.0 * @Explain */ public class WarningController { }
fredemmott/cpp-remapper
lib/axiscurve.h
/* * Copyright (c) 2020-present, <NAME> <<EMAIL>> * All rights reserved. * * This source code is licensed under the ISC license found in the LICENSE file * in the root directory of this source tree. */ #pragma once #include "actionsapi.h" #include "eventhandler.h" namespace fredemmott::inputmapping::actions { ...
yourgentlesmile/hbase-cdh6.1.0
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/skiplist/core/IIterCCSList.java
<reponame>yourgentlesmile/hbase-cdh6.1.0<filename>hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/skiplist/core/IIterCCSList.java<gh_stars>1-10 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work f...
bismite/bi-core
src/framebuffer.c
#include <bi/layer.h> #include <bi/node.h> BiFramebuffer* bi_framebuffer_init(BiFramebuffer *fb,int w,int h) { fb->w = w; fb->h = h; glGenFramebuffers(1, &fb->framebuffer_id); glBindFramebuffer(GL_FRAMEBUFFER, fb->framebuffer_id); glGenTextures(1, &fb->texture_id); glBindTexture(GL_TEXTURE_2D, fb->texture_...
i-square/LeetCode
405-convert-a-number-to-hexadecimal/convert-a-number-to-hexadecimal_[AC4_3ms].cpp
<filename>405-convert-a-number-to-hexadecimal/convert-a-number-to-hexadecimal_[AC4_3ms].cpp // Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. // // // Note: // // All letters in hexadecimal (a-f) must be in lowercase. // The hexadecimal string m...
bjackels5/Campfire
misc/uppy.js
<filename>misc/uppy.js const Uppy = require('@uppy/core'); const DragDrop = require('@uppy/drag-drop'); const Tus = require('@uppy/tus'); const uppy = new Uppy({ debug: true, autoProceed: true, restrictions: { allowedFileTypes: ['image/*'] } }); uppy .use(DragDrop, {target: '#drag-drop-modal'}) .use(...
ehtec/color
src/color/generic/constant/plum.hpp
#ifndef color_generic_constant_plum #define color_generic_constant_plum // ::color::constant::plum( c ) #include "./base.hpp" namespace color { namespace constant { namespace _internal { namespace w3c { struct plum_t{}; } } namespace w3c { typedef ::c...
continental/image-statistics-matching
core/params.py
<reponame>continental/image-statistics-matching<gh_stars>10-100 """This module defines class for storing command line parameters""" from keyword import iskeyword from typing import Any, Dict class Params: """ Params class stores command line parameters as dynamic attributes """ def __init__(self, mapping: Di...
dreipol/vue-ui
src/components/form/input/input.spec.js
import { expect } from 'chai' import { shallowMount } from '@vue/test-utils' import UiInput from './input.vue' import UiActions from '../actions/actions.vue' describe('Component input', () => { it('The ui-input is an object', () => { expect(UiInput).to.be.an('object') expect(UiInput).to.be.not.empty }) ...
kyprifog/mason
mason/util/sys_call.py
from typing import List, Optional, Tuple import threading import subprocess def run_sys_call(command: List[str]) -> Tuple[List[str], List[str]]: sys_call = SysCall(command) sys_call.run() stdout = (sys_call.stdout or b"").decode("utf-8").split("\n") stderr = (sys_call.stderr or b"").decode("utf-8").spl...
caojie09/sofa-registry
server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/listener/SessionNodeChangePushTaskListener.java
<reponame>caojie09/sofa-registry /* * 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...
mori0091/cparsec3
example/pug-lang/src/types/Type.c
<reponame>mori0091/cparsec3 /* -*- coding: utf-8-unix -*- */ #include "types/Type.h" // ------------------------------------- // trait Eq(Tyvar) static bool FUNC_NAME(eq, Eq(Tyvar))(Tyvar a, Tyvar b) { return ((a.ident == b.ident) || trait(Eq(String)).eq(a.ident, b.ident)) && trait(Eq(Kind)).eq(...
yagasoft/KeepUp
src/com/yagasoft/keepup/backup/watcher/IWatchListener.java
<reponame>yagasoft/KeepUp /* * Copyright (C) 2011-2014 by <NAME> * * The Modified MIT Licence (GPL v3 compatible) * Licence terms are in a separate file (LICENCE.md) * * Project/File: KeepUp/com.yagasoft.keepup.backup.watcher/WatchListener.java * * Modified: 12-Jun-2014 (23:23:40) * Using:...
mageo/stayhomech
integrations/kml-parser/src/main/java/ch/stayhome/integrations/kml/job/ContactInformationGuesser.java
<gh_stars>1-10 package ch.stayhome.integrations.kml.job; import static org.apache.commons.lang3.StringUtils.strip; import static org.apache.commons.lang3.StringUtils.trim; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.google.i18n.phonenu...
Yamsafer/reflow
packages/reflow-core/lib/thread-pool.js
const path = require('path'); const {Pool} = require('threads') const threadPool = function(config={}) { const { workerPath, threadsToSpawn, } = config; const pool = new Pool(threadsToSpawn); pool.run(workerPath); return pool; } module.exports = threadPool
Neotoxic-off/Epitech2024
B-NWP-400-LYN-4-1-myteams/src/client/src/command/RECV/recv_logout.c
#include "cli.h" #include "tools.h" void recv_logout(self_t *self, response_data data) { char name[NAME_STR_LEN] = {0}; char uuid[UUID_STR_LEN] = {0}; if (self->login == CONNECTED) { sscanf(data.message, "You are now disconnected as UUID(%[^)]) NAME(%[^)]).", uuid, name); client_event_logg...
minhquang4334/mfeaii-ann-rl
ann_lib/same_topo_taskset.py
<reponame>minhquang4334/mfeaii-ann-rl import numpy as np from .input_handler import mapping def sigmoid(x): return 1. / (1. + np.exp(-x)) def mse(y, y_pred): return 0.5 * np.mean(np.power(y - y_pred, 2)) class SameTopoTaskset: '''Including: - a dataset - three ANN configuration ''' ...
mikepfrank/dynamic
src/network/dynamicNode.py
#print("In dynamicNode.py") import logmaster; from logmaster import * logger = getLogger(logmaster.sysName + '.network') from simulator.dynamicCoordinate import DynamicCoordinate class DynamicNode: pass # Forward declaration from .dynamicNetwork import DynamicNetwork as Network from .dynamicLink import DynamicL...
CreatioStudio/CreatioLib
src/test/java/vip/creatio/clib/test/InternalTest2.java
package vip.creatio.clib.test; public class InternalTest2 { @SuppressWarnings("unchecked") public static void main(String[] args) { } }
michielbdejong/ph-commons
ph-commons/src/test/java/com/helger/commons/io/resourceprovider/DefaultResourceProviderTest.java
/** * Copyright (C) 2014-2021 <NAME> (www.helger.com) * philip[at]helger[dot]com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0...
npocmaka/Windows-Server-2003
public/sdk/inc/mswmdm_i.c
<reponame>npocmaka/Windows-Server-2003 /* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ /* link this file in with the server and any clients */ /* File created by MIDL compiler version 6.00.0361 */ /* Compiler settings for mswmdm.idl: Oicf, W1, Zp8, env=Win32 (32b run) protocol : dc...
ArtStation/indocker
lib/indocker/registries/abstract.rb
<gh_stars>1-10 class Indocker::Registries::Abstract include Indocker::Concerns::Inspectable attr_reader :repository_name def initialize(repository_name) @repository_name = repository_name end def setup(*args) self end def is_local? self.is_a?(Indocker::Registries::Local) end end
Guilherme-Lanna/Python
Cursoemvideo/Desafios/Desafio 54.py
from datetime import datetime a = datetime.now() n = 0 n1 = 0 for c in range(7): a1 = int(input('Ano de nascimento: ')) if (a.year) - a1 >= 21: n = n + 1 elif (a.year) - a1 < 21: n1 = n1 + 1 print('{} pessoas são maiores de 18\n' '{} pessoas são menores de 18'.format(n, n1))
Toromino/chromiumos-platform2
libhwsec-foundation/status/impl/stackable_error_forward_declarations.h
<gh_stars>0 // Copyright 2021 The Chromium OS 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 LIBHWSEC_FOUNDATION_STATUS_IMPL_STACKABLE_ERROR_FORWARD_DECLARATIONS_H_ #define LIBHWSEC_FOUNDATION_STATUS_IMPL_STACKABLE_ERROR_FOR...
luchao0111/bus
bus-goalie/src/main/java/org/aoju/bus/goalie/filter/FormatFilter.java
/********************************************************************************* * * * The MIT License (MIT) * * ...
DemoXinMC/Otter
Docs/search/classes_61.js
<reponame>DemoXinMC/Otter var searchData= [ ['alarm',['Alarm',['../class_otter_1_1_alarm.html',1,'Otter']]], ['anim',['Anim',['../class_otter_1_1_anim.html',1,'Otter']]], ['atlas',['Atlas',['../class_otter_1_1_atlas.html',1,'Otter']]], ['atlastexture',['AtlasTexture',['../class_otter_1_1_atlas_texture.html',1,'...
31core/illumi
kernel/fs/file.c
<filename>kernel/fs/file.c #include <kernel/fs/fs.h> #include <kernel/fs/bitmap.h> #include <kernel/fs/inode.h> #include <kernel/fs/block.h> #include <kernel/fs/path.h> #include <kernel/string.h> #include <kernel/memory.h> /* 创建文件 */ int file_create(ST_FILE *file, char *name) { char dirname[50]; path_get_dirname(dir...
YongJin-Cho/poseidonos
test/unit-tests/allocator/allocator_test.cpp
#include "src/allocator/allocator.h" #include <gtest/gtest.h> #include "src/allocator/address/allocator_address_info.h" #include "test/unit-tests/allocator/address/allocator_address_info_mock.h" #include "test/unit-tests/allocator/block_manager/block_manager_mock.h" #include "test/unit-tests/allocator/context_manager...
Toranktto/CraftProtocol
CraftProtocol/Protocol/v1_10/Packet/Play/PlayerPositionServerPacket.py
<gh_stars>10-100 #!/usr/bin/env python from CraftProtocol.Protocol.Packet.BasePacket import BasePacket from CraftProtocol.Protocol.Packet.PacketDirection import PacketDirection from CraftProtocol.StreamIO import StreamIO class PlayerPositionServerPacket(BasePacket): PACKET_ID = 0x0C PACKET_DIRECTION = Packet...
GitHub-Laziji/js-engine
src/main/java/org/laziji/commons/js/model/node/word/VariableWordNode.java
package org.laziji.commons.js.model.node.word; import org.laziji.commons.js.model.context.Contexts; import org.laziji.commons.js.model.value.JsValue; public interface VariableWordNode extends WordNode { JsValue assignment(Contexts manager, JsValue value) throws Exception; }
rjensen96/Sound-Clock
SoundTest/sound/30.h
const unsigned char __30_wav[] = { 0x52, 0x49, 0x46, 0x46, 0x5c, 0x19, 0x00, 0x00, 0x57, 0x41, 0x56, 0x45, 0x66, 0x6d, 0x74, 0x20, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x40, 0x1f, 0x00, 0x00, 0x80, 0x3e, 0x00, 0x00, 0x02, 0x00, 0x10, 0x00, 0x64, 0x61, 0x74, 0x61, 0x38, 0x19, 0x00, 0x00, 0x23, 0x00, 0...
Doomsdayrs/android_packages_apps_GmsCore
play-services-core/src/main/java/com/google/android/gms/common/GoogleCertificatesImpl.java
<gh_stars>1000+ /* * Copyright (C) 2019 microG Project Team * * 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 ...
enterpact/enterchain
plugin-api/src/main/java/org/enterchain/enter/plugin/services/securitymodule/SecurityModule.java
<reponame>enterpact/enterchain /* * Copyright ConsenSys AG. * * 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...
IntelliSun-MC/EnderIO_old
enderio-machines/src/main/java/crazypants/enderio/machines/integration/jei/SliceAndSpliceRecipeCategory.java
<reponame>IntelliSun-MC/EnderIO_old<gh_stars>0 package crazypants.enderio.machines.integration.jei; import java.util.ArrayList; import java.util.List; import javax.annotation.Nonnull; import crazypants.enderio.base.EnderIO; import crazypants.enderio.base.init.ModObject; import crazypants.enderio.base.integration.jei...
exaring/bio-rd
cmd/ris-mirror/main.go
package main import ( "flag" "os" "time" "github.com/bio-routing/bio-rd/cmd/ris-mirror/config" "github.com/bio-routing/bio-rd/cmd/ris-mirror/rismirror" pb "github.com/bio-routing/bio-rd/cmd/ris/api" "github.com/bio-routing/bio-rd/cmd/ris/risserver" prom_grpc_cm "github.com/bio-routing/bio-rd/metrics/grpc/clie...
firmeve/firmeve
converter/resource/collection.go
package resource import ( "github.com/firmeve/firmeve/kernel/contract" reflect2 "reflect" "github.com/firmeve/firmeve/support/reflect" ) type Collection struct { resource []interface{} resolveData contract.ResourceDataCollection option *Option meta contract.ResourceMetaData link contrac...
DmitryTurovtsov/skazki-land
www/js/component/layout/form-generator/field/input-upload-file/file-preview/c-file-preview.js
// @flow import React, {Component, type Node} from 'react'; import mime from 'mime-types'; import {SnackbarContextConsumer} from '../../../../../../provider/snackbar/c-snackbar-context'; import type {SnackbarContextType} from '../../../../../../provider/snackbar/snackbar-context-type'; import {PreviewFileNaFile} fro...
codefordenver/ideaLab
Backend/src/main/java/idealab/api/dto/request/UpdateFilePathRequest.java
<reponame>codefordenver/ideaLab<filename>Backend/src/main/java/idealab/api/dto/request/UpdateFilePathRequest.java package idealab.api.dto.request; import idealab.api.exception.IdeaLabApiException; import static idealab.api.exception.ErrorType.VALIDATION_ERROR; public class UpdateFilePathRequest implements GenericReq...
vegemil/ModernCppChallengeStudy
DateTime/Problem44/main.cpp
// 44. Monthly calendar // Write a function that, given a year and month, prints to the console the month calendar. // The expected output format is as follows (the example is for December 2017): // 년과 달이 주어지면 콘솔로 해당 달의 달력을 출력하세요. // 출력의 형태는 다음과 같습니다. #include "gsl/gsl" // create `main` function for catch #define CAT...
SteveSmith16384/splitscreenfps_libgdx
core/src/com/scs/splitscreenfps/game/entities/ftl/FTLEntityFactory.java
package com.scs.splitscreenfps.game.entities.ftl; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.VertexAttributes; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.graphics.g3d.Material; imp...
scignscape/PGVM
extra/news/src/apk/hgdm/phr-graph/phr-angel/phra-graph-build.cpp
<filename>extra/news/src/apk/hgdm/phr-graph/phr-angel/phra-graph-build.cpp<gh_stars>0 // Copyright <NAME> 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "phra-graph-bui...