repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
bowen0701/python-algorithms-data-structures
lc0678_valid_parenthesis_string.py
<reponame>bowen0701/python-algorithms-data-structures """Leetcode 678. Valid Parenthesis String Medium URL: https://leetcode.com/problems/valid-parenthesis-string/ Given a string containing only three types of characters: '(', ')' and '*', write a function to check whether this string is valid. We define the validity...
viticm/web-pap
server/World/WorldData/User.inl
<gh_stars>1-10 #ifndef __USER_INL__ #define __USER_INL__ #include "Config.h" // 取得玩家的 UserID ID_t USER::GetUserID() const { return m_UserID; } // 设置玩家的 UserID VOID USER::SetUserID( ID_t id ) { m_UserID = id; } // 取得玩家状态 UINT USER::UserStatus() const { return m_UserStatus; }; // 设置玩家状态 VOID USER::SetUse...
D-Wolter/JavaScript-Udemy
cursoJava/4 - fundamentos/39NUmber/cuidado_c_numeros.js
<filename>cursoJava/4 - fundamentos/39NUmber/cuidado_c_numeros.js console.log(7 / 0)//7 dividido por zero retorna Infinity console.log('10.6' / 2)// tipagem fraca permite usar string se ela for numerica de equacoes console.log('3' + 2)//32 cuidado a string com mais cocatena console.log('3' - 2)//1 console.log('Sho...
malayap47/dummy
lib/commonAPI/coreapi/ext/platform/android/src/com/motorolasolutions/rho/notification/led/LedFactory.java
package com.motorolasolutions.rho.notification.led; import com.rho.notification.led.ILed; import com.rho.notification.led.ILedFactory; import com.rho.notification.led.ILedSingleton; public class LedFactory implements ILedFactory { private LedSingleton singleton; public LedFactory() { LedRhoListener...
Vitupero/elections-webui
js/app.js
<reponame>Vitupero/elections-webui import React from 'react'; import ReactDOM from 'react-dom'; import { Router, hashHistory } from 'react-router'; import '../sass/app.scss'; import TopBar from './components/TopBar'; import routes from './routes'; ReactDOM.render( <div> <TopBar /> <div style={{ marginTop:...
yeehanchung/evergreen
src/icons/generated/TextHighlightIcon.js
import React, { memo, forwardRef } from 'react' import Icon from '../src/Icon' const svgPaths16 = [ 'M9 10H2V6h7V4H1c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8v-2zm4 3h-1V3h1c.55 0 1-.45 1-1s-.45-1-1-1h-1c-.37 0-.7.11-1 .28-.3-.17-.63-.28-1-.28H9c-.55 0-1 .45-1 1s.45 1 1 1h1v10H9c-.55 0-1 .45-1 1s.45 1 1 1h1c.37 0 .7-.11 1...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/PhotosFormats/PFSlowMotionUtilities.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface PFSlowMotionUtilities : NSObject { } + (CDStruct_e83c9415)adjustTimeRange:(CDStruct_e83c9415)arg1 forNewStartTime:(CDStruct_1b6d18a9)arg2 endTime:(CDStru...
freechw/JN5169-for-xiaomi-wireless-switch
sdk/JN-SW-4170/Tools/Eclipse_plugins/Source/com.jennic.zps.configeditor/src/com/jennic/ZPSConfiguration/NodePowerDescriptor.java
/** * (C) Jennic Ltd * * $Id: NodePowerDescriptor.java 78102 2016-03-24 15:35:29Z nxp29741 $ */ package com.jennic.ZPSConfiguration; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Node Power Descriptor</b></em>'. * <!-- end-user-doc --> * * ...
jepetolee/CRYPTONALYTICS
calcul/percent.py
<filename>calcul/percent.py from numba import jit, njit @jit def cal_varience_percent(x): return [-100 + 100 * float(x[i + 1] / x[i]) for i in range(len(x) - 1)] @jit def varience_percent(a,b): return [-100 + 100 * float(b / a)]
tvdg45/shopping-cart
src/main/java/views/Show_Shopping_Cart_Items_Update.java
<filename>src/main/java/views/Show_Shopping_Cart_Items_Update.java //Author: <NAME> package views; import java.util.ArrayList; import utilities.Find_and_replace; public class Show_Shopping_Cart_Items_Update { public static int shopping_cart_total_quantity; public static ArrayList<String> receipts; ...
JGPnet/net.jgp.labs.spark
src/main/java/net/jgp/labs/spark/l090_metadata/l100_join_metadata/AddAuthorsAndBooksMetadataApp.java
package net.jgp.labs.spark.l090_metadata.l100_join_metadata; import org.apache.spark.sql.Dataset; import org.apache.spark.sql.Row; import org.apache.spark.sql.SparkSession; import org.apache.spark.sql.types.StructField; import net.jgp.labs.spark.x.utils.DataframeUtils; import net.jgp.labs.spark.x.utils.FieldUtils; p...
zhangtongrui/limax_5.16
java/limax/src/limax/pkix/LmkBundleUtils.java
<filename>java/limax/src/limax/pkix/LmkBundleUtils.java<gh_stars>0 package limax.pkix; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.math.BigInteger; import java.net.Socket; import java.nio.file.Files; import java.nio.file.Path; import java....
saikumar-chilukuri/Actyv-Bootcamp
BootCamp/03-Logger/controllers/index.js
const log = require("log4js").getLogger("index"); indexlog = function(req, res) { log.debug("This is in the first log module"); res.send("I am in first log"); }; secondlog = function(req, res) { log.debug("This is the second log module"); res.send("I am in second log"); }; errorlog = function(req, res) { l...
fasterthanlime/ooc-legacy
legacy-src/org/ooc/parsers/StaticBlockParser.java
<reponame>fasterthanlime/ooc-legacy package org.ooc.parsers; import java.io.IOException; import org.ooc.errors.SourceContext; import org.ooc.nodes.others.StaticBlock; import org.ubi.FileLocation; import org.ubi.SourceReader; /** * Static block parser. * * @author <NAME> */ public class StaticBlockParser impleme...
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/AvatarKit.framework/AVTPreset.h
<filename>System/Library/PrivateFrameworks/AvatarKit.framework/AVTPreset.h /* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:50:38 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/AvatarKit.framework/Avatar...
zwxbest/Demo
demo/src/main/java/com/tuowazi/demo/list/linked/node/Node.java
package com.tuowazi.demo.list.linked.node; /** * User:zhangweixiao * Description: */ public class Node<T> { private T obj; private Node next = null; public Node(T obj) { this.setObj(obj); } public Node<T> getNext() { return next; } public void setNext(Node next) { ...
yantarou/midonet
midonet-cluster/src/main/java/org/midonet/cluster/rest_api/conversion/TraceRequestDataConverter.java
/* * Copyright 2015 Midokura SARL * * 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 t...
tekliner/postgres
vendor/github.com/openshift/origin/pkg/build/builder/sti.go
package builder import ( "bytes" "context" "errors" "fmt" "net/url" "os" "os/exec" "path/filepath" "strings" "time" s2iapi "github.com/openshift/source-to-image/pkg/api" "github.com/openshift/source-to-image/pkg/api/describe" "github.com/openshift/source-to-image/pkg/api/validation" s2ibuild "github.com...
codelynx/sdl_ios
SmartDeviceLink/public/SDLAppHMIType.h
<filename>SmartDeviceLink/public/SDLAppHMIType.h // SDLAppHMIType.h // #import "SDLEnum.h" /** * Enumeration listing possible app hmi types. * * @since SDL 2.0 */ typedef SDLEnum SDLAppHMIType NS_TYPED_ENUM; /** * The App will have default rights. */ extern SDLAppHMIType const SDLAppHMITypeDefault; /** * C...
VictorAdad/sigi-api-adad
app/models/Usuario/Usuario.java
<gh_stars>0 package models; import java.util.Objects; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.ManyToOne; import javax.persistence.ManyToMany; import javax.persistence.Column; import javax.persistence.JoinTable; import javax.persistence.JoinColum...
BIBSYSDEV/nva-commons
core/src/main/java/nva/commons/core/attempt/ConsumerWithException.java
<gh_stars>0 package nva.commons.core.attempt; @FunctionalInterface public interface ConsumerWithException<T, E extends Exception> { void consume(T t) throws E; }
ycj123/Research-Project
proFL-plugin-2.0.3/groovy/util/CliBuilder$_expandArgumentFile_closure3_closure4.java
<filename>proFL-plugin-2.0.3/groovy/util/CliBuilder$_expandArgumentFile_closure3_closure4.java // // Decompiled by Procyon v0.5.36 // package groovy.util; import org.codehaus.groovy.runtime.callsite.CallSiteArray; import groovy.lang.MetaClass; import org.codehaus.groovy.runtime.callsite.CallSite; import org.codehau...
sentinel-hub/requests-builder
src/components/common/Output/OutputResponses.js
import React from 'react'; import store from '../../../store'; import requestSlice from '../../../store/request'; import { OUTPUT_FORMATS } from '../../../utils/const/const'; import { connect } from 'react-redux'; const generateResponses = (responses, mode) => { const handleIdentifierChange = (e) => { store.disp...
xyzshen/WeBASE-Front
src/main/java/com/webank/webase/front/base/config/RabbitMQConfig.java
/* * Copyright 2014-2020 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 ap...
xctrln/algs
BigO/c4.go
<gh_stars>0 package BigO func find(array []int, x int) int { pos := -1 for _, i := range array { if array[i] == x { pos = i break } } return pos }
shanghailzj123/irishub
modules/guardian/keeper/querier_test.go
package keeper_test import ( "testing" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" "github.com/irisnet/irishub/modules/guardian/keeper" "github.com/irisnet/irishub/modules/guardian/types" ) func TestQuerierSuite(t *testing.T) { suite.Run(t, new(KeeperTestSuite)) } ...
billy1380/blogwt
src/main/java/com/willshex/blogwt/server/service/search/ISearch.java
// // ISearch.java // blogwt // // Created by <NAME> (billy1380) on 25 Jul 2016. // Copyright © 2016 WillShex Limited. All rights reserved. // package com.willshex.blogwt.server.service.search; import java.util.Collection; import java.util.List; import com.willshex.blogwt.shared.api.SortDirectionType; /** * @au...
linminglu/Fgame
game/rank/handler/init.go
<reponame>linminglu/Fgame<gh_stars>0 package handler import ( "fgame/fgame/common/codec" uipb "fgame/fgame/common/codec/pb/ui" gamecodec "fgame/fgame/game/codec" ) func init() { gamecodec.RegisterMsg(codec.MessageType(uipb.MessageType_CS_RANK_FORCE_GET_TYPE), (*uipb.CSRankForceGet)(nil)) gamecodec.RegisterMsg(co...
Animofree/HospitalInformationSystem
src/com/cjj/dao/baseinfo/ViptypeMapper.java
package com.cjj.dao.baseinfo; import java.util.List; import com.cjj.po.Viptype; public interface ViptypeMapper { List<Viptype> findAll(); }
victory1355/LinuxAPI
io_operation/test/3th/find_tree.c
<filename>io_operation/test/3th/find_tree.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include <errno.h> #define MAX_PATH 512 void print_file_info(char *pathname) { struct stat filestat; if (stat(pathname, &...
all-of-us/research
api/src/test/java/org/pmiops/workbench/conceptset/ConceptSetServiceTest.java
package org.pmiops.workbench.conceptset; import static com.google.common.truth.Truth.assertThat; import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import org.junit.jupiter.api.Test; import org.pmiops.workbench.FakeClockConfiguration; import org.pmiops....
lechium/tvOS130Headers
System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored/XDCDeviceManager.h
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:38:48 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored * classdump-dyld is licensed under GPLv3, Copyright © 2013-...
mniak/alkanoid
cmd/http/routes_test.go
package main import ( "bytes" "encoding/json" "fmt" "net/http" "net/http/httptest" "testing" "github.com/brianvoe/gofakeit/v6" "github.com/golang/mock/gomock" "github.com/mniak/Alkanoid/app" "github.com/mniak/Alkanoid/internal/mocks" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/requir...
gaoht/house
java/classes/android/support/transition/az.java
<filename>java/classes/android/support/transition/az.java package android.support.transition; import android.view.View; import java.util.Map; public abstract class az extends ae { private static final String[] a = { "android:visibilityPropagation:visibility", "android:visibilityPropagation:center" }; private...
digi-embedded/android_platform_system_bt
bta/include/bta_gatt_api.h
<reponame>digi-embedded/android_platform_system_bt<gh_stars>0 /****************************************************************************** * * Copyright (C) 2003-2013 Broadcom Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
huanghongxun/ACM
vijos/NOIP/2013/match.cpp
#include <cstdio> #include <cstdio> #include <cstring> #define N 100005 typedef long long ll; int global_count; int num = 0; void merge(int ar[],int low,int mid,int high) { int* b = new int[high + 1]; for (int i = low;i <= high;++i) { b[i] = ar[i]; } int i = low,j = mid + 1,k = low; wh...
yumuzi234/e8vm
pl/codegen/vtable.go
<gh_stars>0 package codegen import "fmt" type vtable struct { // interface name: pkg.interface i string // struct name:pkg.structName // sName can used for reflection s string // entries will be sorted by func names entries []*FuncSym } func newVtable(i, s string) *vtable { return &vtable{ i: i, s:...
bianapis/sd-customer-workbench-v2.0
src/main/java/org/bian/dto/BQBrowsingRetrieveInputModelBrowsingInstanceAnalysis.java
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.validation.Valid; /** * BQBrowsingRetrieveInputModelBrowsingInstanceAnalysis */ pub...
admariner/gtin-cloud
src/websiteVendors.js
<gh_stars>10-100 import got from 'got' import cheerio from 'cheerio' import gtinPath from './gtinPath' import rua from 'random-useragent' import scrapeIt from 'scrape-it' import storeTasks from './storeTasks' const debug = require('debug')('gtin-cloud') const scriptReg = /<(script|style)\b[^<]...
evandojunior/urbem3.0
src/Urbem/RecursosHumanosBundle/Resources/public/javascripts/estagio/estagiario.js
<reponame>evandojunior/urbem3.0<gh_stars>0 (function() { 'use strict'; var populateSelect = function (select, data, prop) { var firstOption = select.find('option:first-child'); select.empty().append(firstOption); $.each(data, function (index, item) { var option = $('<option...
juanfelipe82193/opensap
sapui5-sdk-1.74.0/test-resources/sap/suite/ui/commons/demokit/sample/ImageEditorCircleCrop/ImageEditorContainer.controller.js
sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/m/library", "sap/suite/ui/commons/library", "sap/m/Dialog", "sap/m/Button", "sap/suite/ui/commons/imageeditor/ImageEditor" ], function (Controller, MLibrary, SuiteLibrary, Dialog, Button, ImageEditor) { "use strict"; var ButtonType = MLibrary.ButtonType, Ima...
sillywalk/grazz
tests/binutils-2.30/src/ld/testsuite/ld-x86-64/copyreloc-lib.c
<gh_stars>1-10 int a_glob = 2;
gwh111/UITemplateApp
UITemplateApp/Pods/bench_ios/bench_ios/bench/CC_Foundation/CC_Foundation.h
// // CC_Foundation.h // testbenchios // // Created by gwh on 2019/7/29. // Copyright © 2019 gwh. All rights reserved. // //#ifndef CC_Foundation_h //#define CC_Foundation_h #import <Foundation/Foundation.h> #import "CC_CoreFoundation.h" #import "CC_Money.h" #import "CC_Model.h" #import "CC_CoreTimer.h" #import ...
daileyet/webpage-keeper
src/main/java/com/openthinks/others/webpages/transfer/BatchHtmlPageTransfer.java
package com.openthinks.others.webpages.transfer; import java.io.File; import com.gargoylesoftware.htmlunit.html.HtmlPage; /** * add common folder for common resource * * @author <EMAIL> * */ public class BatchHtmlPageTransfer extends HtmlPageTransfer { public static final String COMMON_RESOURCE_DI...
myflytop/ruoyi-cms
ruoyi-cms/cms-blog/blog-admin/src/main/java/com/ruoyi/cms/system/service/ICmsCatService.java
<filename>ruoyi-cms/cms-blog/blog-admin/src/main/java/com/ruoyi/cms/system/service/ICmsCatService.java package com.ruoyi.cms.system.service; import com.ruoyi.cms.system.model.po.CmsCat; import com.ruoyi.cms.system.model.vo.CatCountVo; import com.ruoyi.common.core.domain.Ztree; import org.apache.ibatis.annotations.Para...
halfbaked/gapic-generator-java
test/integration/goldens/iam/com/google/iam/v1/package-info.java
<reponame>halfbaked/gapic-generator-java<filename>test/integration/goldens/iam/com/google/iam/v1/package-info.java /* * Copyright 2021 Google 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 Lic...
josephhyatt/learn_co
orm-mapping-to-table-lab-v-000/config/environment.rb
require 'bundler' Bundler.require require_relative '../lib/student' DB = {:conn => SQLite3::Database.new("db/students.db")}
talsewell/cerberus
tests/suite/constraints/assignment_in_constant_expression.c
int global_1 = 0; int global_2 = sizeof (global_1++); int global_3 = global_1++; int main (void) { return global_3; }
chs6558/chs6558.github.io
node_modules/styled-icons/boxicons-solid/Server/Server.esm.js
<filename>node_modules/styled-icons/boxicons-solid/Server/Server.esm.js export * from '@styled-icons/boxicons-solid/Server';
alexstrive/Ifmo-Works
Algorithms/Work 4/taskB.cpp
<reponame>alexstrive/Ifmo-Works #include <fstream> #include <vector> using namespace std; struct Node { int key, left, right; }; // Особый порядок прохода дерева // В результате получаем условно остортировнаный по неубыванию массив ключей void inorderTreeWalk(vector<Node> &tree, vector<int> &keys, int root) { ...
IllyasvielEin/Robocup3dInstaller
SimSpark/spark/lib/kerosin/textureserver/textureserver_c.cpp
<reponame>IllyasvielEin/Robocup3dInstaller<gh_stars>0 #include "textureserver.h" using namespace boost; using namespace kerosin; using namespace zeitgeist; void CLASS(TextureServer)::DefineClass() { DEFINE_BASECLASS(zeitgeist/Leaf); }
julianladisch/stripes-testing
cypress/support/utils/dateTools.js
<gh_stars>0 const padWithZero = value => String(value).padStart(2, '0'); export default { padWithZero, getCurrentDate: () => { const currentDate = new Date(); return `${padWithZero(currentDate.getMonth() + 1)}/${padWithZero(currentDate.getDate())}/${currentDate.getFullYear()}`; }, getPreviousDayDate: ...
assessorgeneral/ConQAT
org.conqat.engine.cpp/src/org/conqat/engine/cpp/dependency/IDependencyInjector.java
/*-------------------------------------------------------------------------+ | | | Copyright 2005-2011 the ConQAT Project | | | | Licensed u...
daniel-perry/rt
reference_implementation/cs6620-prog6/Time.cc
<reponame>daniel-perry/rt #include "Time.h" #include <sys/time.h> #include <errno.h> #ifdef __linux #include <time.h> #endif #include <stdexcept> static struct timeval start_time; static bool initialized = false; void Time::initialize() { initialized=true; if(gettimeofday(&start_time, 0) != 0) throw std::run...
DataAgg/DAFramework
commons/src/main/java/com/dataagg/util/WMap.java
package com.dataagg.util; import org.nutz.lang.util.NutMap; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; /** * Created by watano on 2017/3/4. */ public class WMap extends NutMap { private static final long serialVersionUID = -852470...
bobbrow/cpp-docs
docs/atl/codesnippet/CPP/com-map-macros_7.h
<filename>docs/atl/codesnippet/CPP/com-map-macros_7.h BEGIN_COM_MAP(COuter4) COM_INTERFACE_ENTRY_AUTOAGGREGATE_BLIND(m_punkAutoAggB, CLSID_CAutoAggB) END_COM_MAP()
LineGames/Leggiero
Engine/Modules/Font/Common/PriorityFontSet.h
<gh_stars>10-100 //////////////////////////////////////////////////////////////////////////////// // Common/PriorityFontSet.h (Leggiero/Modules - Font) // // Prioritized Fonts Set //////////////////////////////////////////////////////////////////////////////// #ifndef __LM_FONT__COMMON__PRIORITY_FONT_SET_H #define __...
gogoods/x
redis/redis_test.go
package redis import ( "log" "testing" "time" ) func Test(t *testing.T) { r, err := New("192.168.1.211:6379", "99101691", 10, 100, time.Minute, 4) if err != nil { log.Panic(err.Error()) } conn := r.GetConn() defer conn.Close() vals := []int{1, 2, 3} reply, err := conn.Do("RPUSH", "key", vals) log.Pri...
tcard/jackcess
src/main/java/com/healthmarketscience/jackcess/impl/query/CrossTabQueryImpl.java
<filename>src/main/java/com/healthmarketscience/jackcess/impl/query/CrossTabQueryImpl.java<gh_stars>100-1000 /* Copyright (c) 2008 Health Market Science, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Li...
p-ranav/walnut.v1
tests/test_parser_call_expression.hpp
#pragma once #include <catch.hpp> #include <lexer.hpp> #include <parser.hpp> #include <environment.hpp> #include <iostream> #include <string> #include <clocale> namespace walnut { TEST_CASE("The parser can parse the call 'myfunction();'", "[parser]") { setlocale(LC_ALL, ""); EnvironmentPtr environment = ...
sakusimu/mh4g-skillsimu
test/unit/40_deco/30_assembler.js
<reponame>sakusimu/mh4g-skillsimu<gh_stars>1-10 'use strict'; var assert = require('power-assert'), Assembler = require('../../../lib/deco/assembler.js'); describe('40_deco/30_assembler', function () { it('require', function () { assert(typeof Assembler === 'function', 'is function'); }); it('...
zamannoor/DIQL
tests/parallel/map.scala
<filename>tests/parallel/map.scala import edu.uta.diql._ import scala.io.Source import scala.collection.parallel.ParIterable object Test { def main ( args: Array[String] ) { println("Number of cores: "+Runtime.getRuntime().availableProcessors()) var t: Long = System.currentTimeMillis() val a = (1 to ...
xmidt-org/carousel
pkg/carousel/mocks_test.go
<gh_stars>0 package carousel import ( "github.com/stretchr/testify/mock" "github.com/xmidt-org/carousel/pkg/model" "github.com/xmidt-org/carousel/pkg/runner" ) type MockController struct { mock.Mock } func (m *MockController) SelectWorkspace(workspace string) error { args := m.Called(workspace) return args.Err...
jonkjenn/ChessTour
chess24.cpp
<filename>chess24.cpp #include "chess24.h" #include <QtNetwork> #include <QObject> #include <QJsonDocument> #include <optional> #include <iostream> #include "disknetworkcookiejar.h" const QString Chess24::loginurl = "https://chess24.com/en/login"; /// /// \brief Chess24::Chess24 /// \param parent /// \param qnam /...
chromium/chromium
services/audio/output_device_mixer_impl.h
<filename>services/audio/output_device_mixer_impl.h<gh_stars>1000+ // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_AUDIO_OUTPUT_DEVICE_MIXER_IMPL_H_ #define SERVICES_AUDIO_OUTPUT_DEVICE...
qussarah/declare
j2k/testData/fileOrElement/for/forThroughListIndices.java
<filename>j2k/testData/fileOrElement/for/forThroughListIndices.java import java.util.List; import java.util.ArrayList; class C{ void foo1(List<String> list) { for (int i = 0; i < list.size(); i++) { list.set(i, "a"); } } void foo2(ArrayList<String> list) { for (int i = ...
cmsis-packs/cmsis-5
CMSIS/Documentation/NN/html/search/enumvalues_0.js
var searchData= [ ['arm_5fsigmoid',['ARM_SIGMOID',['../arm__nnfunctions_8h.html#a7f41aa78cd9a0552fae9b348ee4831a0a49b307e029715fbaa6f3101c806b8c54',1,'arm_nnfunctions.h']]], ['arm_5ftanh',['ARM_TANH',['../arm__nnfunctions_8h.html#a7f41aa78cd9a0552fae9b348ee4831a0ac24e4db95c986f16c10dca71a4b4e1c5',1,'arm_nnfunctions...
benety/mongo
jstests/replsets/prepare_failover_rollback_commit.js
/** * This tests that preparing a transaction successfully will update the lastWriteOpTime on * secondaries so that the corresponding commitTransaction oplog entry has a correct prevOpTime. * The test exercises a failover right after a prepare, so that we have to commit the transaction * while talking to a node tha...
GuildOfWeavers/AirAssembly
bin/lib/registers/StaticRegister.js
<reponame>GuildOfWeavers/AirAssembly<gh_stars>10-100 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // CLASS DEFINITION // ================================================================================================ class StaticRegister { } exports.StaticRegister = StaticRegister; //# ...
chreden/trview
trview.app/Windows/TriggersWindow.h
<filename>trview.app/Windows/TriggersWindow.h /// @file TriggersWindow.h /// @brief Used to show and filter the triggers in the level. #pragma once #include <trview.ui/Listbox.h> #include <trview.app/Elements/Item.h> #include <trview.app/Elements/ITrigger.h> #include "ITriggersWindow.h" #include "CollapsiblePanel.h" ...
Verteiron/JContainers
JContainers/src/autorelease_queue.h
#pragma once #include <atomic> namespace collections { class object_registry; class autorelease_queue { std::thread _thread; bshared_mutex& _mutex; object_registry& _registry; typedef std::lock_guard<decltype(_mutex)> lock; typedef unsigned int time_point; ...
CalderaWP/cf-pantheon-upstream
web/wp-content/plugins/caldera-forms/assets/js/api/stores.js
<filename>web/wp-content/plugins/caldera-forms/assets/js/api/stores.js /** * A factory for a form state containers * * Can be used constructed with CFAPI() or other data. Designed to provide data to our VueJS entry viewer, but is framework agnostic. * * @since 1.50 * * @param formId The ID of the form * @param ...
toilatester/sample-automation-frameworks-across-languages
python/Core/Base/BaseTest.py
<filename>python/Core/Base/BaseTest.py import os import unittest import traceback import threading from Core.Config.DriverFactory import DriverFactory from Config import YAML_CONFIG from GUI.POM.LoginPage.LoginPage import LoginPage from GUI.POM.RegisterPage.RegisterPage import RegisterPage from GUI.POM.CreateBo...
hue715/BaiduPCS-Go-1
pcsutil/checksum/checksum.go
// Package checksum 校验本地文件包 package checksum import ( "crypto/md5" "github.com/Erope/BaiduPCS-Go/pcsutil/cachepool" "github.com/Erope/BaiduPCS-Go/pcsutil/converter" "hash/crc32" "io" "os" ) const ( // DefaultBufSize 默认的bufSize DefaultBufSize = int(256 * converter.KB) ) const ( // CHECKSUM_MD5 获取文件的 md5 值 C...
devjsc/ledger-1
libs/vectorise/tests/memory/shared_array_tests.cpp
<gh_stars>1-10 //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI 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 obtain a copy of the Lic...
MrManiak/Squad-SDK
Cpp/SDK/InputCapture_parameters.h
#pragma once // Name: S, Version: b #include "../SDK.h" #ifdef _MSC_VER #pragma pack(push, 0x01) #endif /*!!HELPER_DEF!!*/ /*!!DEFINE!!*/ namespace UFT { //--------------------------------------------------------------------------- // Parameters //-----------------------------------------------------------------...
lgxkdream/algorithm-problems
src/io/github/lgxkdream/test/unit10/SumOfMutatedArrayClosestToTarget.java
<gh_stars>0 package io.github.lgxkdream.test.unit10; import java.util.Arrays; /** * @author <NAME> * @version 1.0.0 * @title 1300. 转变数组后最接近目标值的数组和 * @description * @since 2020-06-14 10:47 */ public class SumOfMutatedArrayClosestToTarget { public static void main(String[] args) { /** * 输出:3...
lechium/tvOS144Headers
Applications/Podcasts/MTTVDeleteTableViewCell.h
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <UIKit/UITableViewCell.h> @interface MTTVDeleteTableViewCell : UITableViewCell { } - (void)updateColors; // IMP=0x00000001000f3e80 - (void)didU...
jasonoctaviano/RPM
dev/freemodbus-v1.5.0/demo/LINUX/demo.c
<gh_stars>0 /* * FreeModbus Libary: Linux Demo Application * Copyright (C) 2006 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of th...
LakshyAAAgrawal/streamblocks-graalvm
language/src/main/java/ch/epfl/vlsc/truffle/cal/nodes/expression/literals/FunctionLiteralNode.java
<gh_stars>10-100 package ch.epfl.vlsc.truffle.cal.nodes.expression.literals; import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.frame.VirtualFrame; import ch.epfl.vlsc.truffle.cal.CALLanguage; import ch.epfl.vlsc.truffle.cal.nodes.CALExpressionNode; import ch.epfl.vlsc.truffle.cal.runtime...
vnerozin/cimlib
platforms/portable/frm_math/frm_ema_s16.c
<reponame>vnerozin/cimlib<filename>platforms/portable/frm_math/frm_ema_s16.c /******************************************************************************* * Copyright (c) 2017 <NAME> * * This library is free software; you can redistribute it and/or modify it * under the terms of the MIT license. See LICENSE.md f...
naoki-iwami/ermaster-b
src/org/insightech/er/db/impl/sqlserver/SqlServerDDLCreator.java
package org.insightech.er.db.impl.sqlserver; import org.insightech.er.db.impl.db2.tablespace.DB2TablespaceProperties; import org.insightech.er.editor.model.ERDiagram; import org.insightech.er.editor.model.dbexport.ddl.DDLCreator; import org.insightech.er.editor.model.diagram_contents.element.node.table.column.Nor...
woodkri/ec
org.schema/src/main/java/org/schema/RadioStation.java
<filename>org.schema/src/main/java/org/schema/RadioStation.java package org.schema; /** * Schema.org/RadioStation * A radio station. * * @author schema.org * @class RadioStation * @module org.schema * @extends LocalBusiness */ public class RadioStation extends LocalBusiness { /** * Constructor,...
nomadsinteractive/ark
platform/darwin/platform/log.h
<reponame>nomadsinteractive/ark #ifndef ARK_PLATFORMS_ANDROID_PLATFORM_LOG_H_ #define ARK_PLATFORMS_ANDROID_PLATFORM_LOG_H_ #define LOGD(...) #define LOGE(...) #endif
cirquit/random-code
C/Systempraktikum/Aufgaben03/Multithreading/ThreadsExample2.c
<filename>C/Systempraktikum/Aufgaben03/Multithreading/ThreadsExample2.c #define _BSD_SOURCE // for usleep - has to be the first thing to declare #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <semaphore.h> /* This is our thread function. It is like main(), but for a thread*/...
lechium/tvOS124Headers
System/Library/Frameworks/ContactsUI.framework/CNPropertyGroupItemDelegate.h
<reponame>lechium/tvOS124Headers<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:45:13 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/Frameworks/ContactsUI.framework/ContactsUI * classdump-dyld is licensed u...
daniol/angular-line-awesome
projects/angular-line-awesome/icons/build/-lab-uikit.icon.js
export const labUikit = { name: 'lab-uikit', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M22.2 6.7l-4.3 2.5 5.1 2.9v7.8L16 24l-7-4.1v-5.5L5 12v10.5L16 29l11-6.5v-13zm-2-1.2L16 3l-4.2 2.5L16 8z"/></svg>` };
357758509/vuemusic
src/router/index.js
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) const routes = [ { path: '', redirect: '/index' }, { name: 'index', path: '/index', component: () => import('@/pages/index/index') // 懒加载引入方式 }, { name: 'detail', path: '/d...
lechium/iOS1351Headers
usr/libexec/CarPlay/CARHomeKitServiceTypes.h
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @interface CARHomeKitServiceTypes : NSObject { } + (id)serviceNameForType:(id)arg1; // IMP=0x00000001000972e8 + (id)serviceNa...
mypetrobot/lfmwk
src/commands/powerambient.js
<filename>src/commands/powerambient.js const Command = require('../handler/Command') const BotEmbed = require('../classes/BotEmbed') const { stringify } = require('querystring') const fetch = require('node-fetch') const capitalize = (s) => { if (typeof s !== 'string') return '' return s.charAt(0).toUpperCas...
newcommerdontblame/ionlib
src/sdk/hl2_csgo/game/client/swarm/c_asw_pickup_equipment.cpp
<reponame>newcommerdontblame/ionlib<filename>src/sdk/hl2_csgo/game/client/swarm/c_asw_pickup_equipment.cpp #include "cbase.h" #include "c_asw_pickup_equipment.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" //--------- // Medkit //--------- IMPLEMENT_CLIENTCLASS_DT( C_ASW_P...
dbstein/ipde
ipde/annular/stokes.py
<reponame>dbstein/ipde import numpy as np from ..utilities import fast_dot, concat, fast_LU_solve, mfft, mifft, fourier_multiply import scipy as sp import scipy.linalg from personal_utilities.scipy_gmres import right_gmres def scalar_laplacian(CO, AAG, RAG, uh): R01 = CO.R01 R12 = CO.R12 D01 = CO.D01 D...
iamzken/aliyun-openapi-cpp-sdk
gpdb/src/model/AddBuDBInstanceRelationRequest.cc
<filename>gpdb/src/model/AddBuDBInstanceRelationRequest.cc<gh_stars>10-100 /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *...
reels-research/iOS-Private-Frameworks
AccessibilityUtilities.framework/AXSwitchRecipe.h
<filename>AccessibilityUtilities.framework/AXSwitchRecipe.h /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities */ @interface AXSwitchRecipe : NSObject { NSArray * _mappings; NSString * _menuIconIdentifier; NSString * _name; ...
edalex-yinzi/openEQUELLA
Source/Plugins/Core/com.equella.serverbase/src/com/tle/core/dao/helpers/DMLPartitioner.java
<reponame>edalex-yinzi/openEQUELLA /* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * V...
itYangJie/leetcode
src/com/ityang/leetcode/Subject299.java
package com.ityang.leetcode; import java.util.HashMap; import java.util.Map; public class Subject299 { public static void main(String[] args) { // TODO Auto-generated method stub getHint("1123", "0111"); } public static String getHint(String secret, String guess) { int bulls = 0, cows = 0; Map<Integer, ...
anirudha4/react-template
app/themes/colors.js
/** * This file contains the application's colors. * * Define color here instead of duplicating them throughout the components. * That allows to change them more easily later on. */ const primary = '#DF5E5E'; const text = '#212529'; const textLight = '#999'; const secondary = '#FDD2BF'; const success = '#28a745';...
UnicornsIncluded/Givhub
server/database/index.js
const mongoose = require('mongoose') mongoose.Promise = global.Promise mongoose.set('useCreateIndex', true) mongoose.set('useFindAndModify', false) const options = { useNewUrlParser: true, useUnifiedTopology: true } const database = mongoose .connect(process.env.DATABASE_URL, options) .then(() => console.log...
pasgra/spimosim
lib/modules/HelpTextGenerator/ResearchGroupShort.js
'use strict'; spimosimCore.modules.add('HelpTextGenerator', { name: 'research group short', files: [ 'lib/modules/HelpTextGenerator/ResearchGroupShort.js' ], depends: [], version: '1.0', author: '<NAME>', description: 'A help text generator for a short text.', date: '2020-03-26' }, functi...
lifenstein/fez-frontend
src/modules/SharedComponents/PublicationCitation/components/citations/partials/EditorsCitationView.test.js
import EditorsCitationView from './EditorsCitationView'; function setup(testProps = {}) { const props = { classes: {}, ...testProps, publication: testProps.publication || {}, }; return getElement(EditorsCitationView, props); } describe('EditorsCitationView test ', () => { it('s...