repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
mauguignard/cbmc
jbmc/regression/jbmc-strings/RegexMatches01/RegexMatches01.java
import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexMatches01 { public static void main(String[] args) { Pattern expression = Pattern.compile("W.*\\d[0-35-9]-\\d\\d-\\d\\d"); String string1 = "XXXX's Birthday is 05-12-75\n" + "YYYY's Birthday is 11-04-...
asen/smg
app/com/smule/smgplugins/mon/anom/ValueChunkStats.scala
<gh_stars>1-10 package com.smule.smgplugins.mon.anom import play.api.libs.json.{JsValue, Json} import scala.collection.mutable import scala.math.{max, min, pow} case class ValueChunkStats(cnt: Int, avg: Double, variance: Double, p90: Double) { def serialize: JsValue = { val mm = mutable.Map[String, JsValue]( ...
scala-steward/LiCOS-JSON4Scala
src/test/scala/protocol/engine/lobby/example/server2client/WaitingPage.scala
package protocol.engine.lobby.example.server2client import protocol.engine.ServerToClientLobbyExample final case class WaitingPage(filePath: String) extends ServerToClientLobbyExample(filePath) { override val `type`: String = WaitingPage.`type` } object WaitingPage { val `type`: String = "lobby.server2client.Wai...
lieonCX/XGG
xianglegou/Classes/Function/User/Interface/View/Mine/Shop/GC_ShopMoneyTableViewCell.h
// // GC_ShopMoneyTableViewCell.h // xianglegou // // Created by mini3 on 2017/5/11. // Copyright © 2017年 xianglegou. All rights reserved. // // 店铺货款 -- cell // #import "Hen_BaseTableViewCell.h" #import "GC_ShopManagerModel.h" @interface GC_ShopMoneyTableViewCell : Hen_BaseTableViewCell ///更新 ui - (void)update...
pwr-pbrwio/PBR20M2
projects/checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/AbstractXmlTestSupport.java
<reponame>pwr-pbrwio/PBR20M2 //////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code for adherence to a set of rules. // Copyright (C) 2001-2018 the original author or authors. // // This library is free software; you can redistribute it and/or // modify i...
tritas/bitl
examples/two_bernouilli_arms.py
<reponame>tritas/bitl<filename>examples/two_bernouilli_arms.py # -*- coding: utf-8 -*- # Author: <NAME> <<EMAIL>> # License: BSD 3-clause import numpy as np from bitl.evaluation.comparison import PolicyComparison from bitl.policies.kl_ucb import klUCB from bitl.policies.thompson_sampling import ThompsonSampling from bi...
lsa-pucrs/jason-ros-releases
cartago-2.0.1/src/main/cartago/tools/inspector/OpCompleted.java
<filename>cartago-2.0.1/src/main/cartago/tools/inspector/OpCompleted.java package cartago.tools.inspector; import cartago.*; public class OpCompleted extends LoggerEvent{ private ArtifactId artifactId; private OpId oid; public OpCompleted(long when, ArtifactId target, OpId oid){ super(when); artifactId = ta...
ghga-de/metadata-api
metadata_repository_service/dao/biospecimen.py
<reponame>ghga-de/metadata-api<gh_stars>0 # Copyright 2021 - 2022 Universität Tübingen, DKFZ and EMBL # for the German Human Genome-Phenome Archive (GHGA) # # 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...
Tianqi-Zhu/tp
src/test/java/manageme/logic/parser/task/FindTaskCommandParserTest.java
<filename>src/test/java/manageme/logic/parser/task/FindTaskCommandParserTest.java<gh_stars>0 package manageme.logic.parser.task; import static manageme.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import java.util.Arrays; import org.junit.jupiter.api.Test; import manageme.logic.commands.task.FindTaskComman...
HarvestHaven/TPOT-Next
components/layout/PageSpinner.js
<gh_stars>1-10 import React from 'react' import Flex from '@chakra-ui/core/dist/Flex' import Spinner from '@chakra-ui/core/dist/Spinner' const PageSpinner = () => <Flex h="100%" w="100%" justifyContent="center" alignItems="center"> <Spinner thickness="4px" speed="0.65s" ...
lemoony/snipkit
cmd/info_test.go
package cmd import ( "os" "testing" "github.com/spf13/viper" "github.com/lemoony/snipkit/internal/config/configtest" "github.com/lemoony/snipkit/internal/model" "github.com/lemoony/snipkit/internal/utils/termtest" "github.com/lemoony/snipkit/internal/utils/testutil" mocks "github.com/lemoony/snipkit/mocks/ma...
jnthn/intellij-community
platform/platform-impl/src/com/intellij/openapi/editor/actions/FocusGutterAction.java
<reponame>jnthn/intellij-community<gh_stars>1-10 // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.editor.actions; import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.ed...
dmagadi/demo
SNGContacts/app/src/main/java/com/sngastro/sngcontacts/DatabaseService.java
<reponame>dmagadi/demo<gh_stars>0 package com.sngastro.sngcontacts; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteOpenHelper; import android.content.Context; import android.util.Log; import com.sngastro.sngcontacts.contact.ContactInfo; import com.sngastro.s...
thomasLeclaire/opentelemetry-ruby
propagator/b3/test/single/text_map_propagator_test.rb
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 require 'test_helper' describe OpenTelemetry::Propagator::B3::Single::TextMapPropagator do let(:propagator) { OpenTelemetry::Propagator::B3::Single::TextMapPropagator.new } describe('#extract') do it ...
dborisenko/scalajs-react-components
generator/src/main/scala/com/dbrsn/generator/componentParsers.scala
package com.dbrsn.generator import com.dbrsn.generator.requiresjs.FoundComponent import scala.util.matching.Regex object ParseComponent { val ignoredMembers: Set[String] = Set( "render", "componentDidMount", "componentWillMount", "componentWillReceiveProps", "componentDidUpdate", ...
zakharchenkoAndrii/expo
android/versioned-abis/expoview-abi42_0_0/src/main/java/abi42_0_0/expo/modules/interfaces/barcodescanner/BarCodeScannerProviderInterface.java
<reponame>zakharchenkoAndrii/expo package abi42_0_0.expo.modules.interfaces.barcodescanner; import android.content.Context; public interface BarCodeScannerProviderInterface { BarCodeScannerInterface createBarCodeDetectorWithContext(Context context); }
benf1977/j2objc-serialization-example
j2objc/include/java/nio/charset/StandardCharsets.h
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/java/nio/charset/StandardCharsets.java // #ifndef _JavaNioCharsetStandardCharsets_H_ #define _JavaNioCharsetStandardCharsets_H_ #include "J2ObjC_header.h" @class JavaNioCharsetCharset; /*! @brief Constant defini...
daher-alfawares/xr.desktop
sdk/physx/2.8.3/Samples/SampleParticleFluid/src/SampleCollision.cpp
<gh_stars>1-10 #include "SampleParticleFluid.h" #include "MyFluid.h" #include "cooking.h" #include "UserAllocator.h" #include "MediaPath.h" extern bool gHardwareSimulation; extern NxScene* gScene; extern NxArray<MyFluid*> gMyFluids; extern NxVec3 gCameraPos; extern NxVec3 gCameraForward; extern bool gShadows; extern E...
tomorrow56/fw-AC63_BT_SDK
apps/common/third_party_profile/tuya_protocol/app/demo/tuya_ble_app_demo.c
<reponame>tomorrow56/fw-AC63_BT_SDK #include "tuya_ble_stdlib.h" #include "tuya_ble_type.h" #include "tuya_ble_heap.h" #include "tuya_ble_mem.h" #include "tuya_ble_api.h" #include "tuya_ble_port.h" #include "tuya_ble_main.h" #include "tuya_ble_secure.h" #include "tuya_ble_data_handler.h" #include "tuya_ble_storage.h" #...
vincenthcui/awesome-tencentcloud-go
tencentcloud/actions/fmu/2019-12-13/actions.go
package fmu import "github.com/vincenthcui/awesome-tencentcloud-go/tencentcloud" var ( TryLipstickPic = tencentcloud.Action{ Service: "fmu", Version: "2019-12-13", Action: "TryLipstickPic", } StyleImagePro = tencentcloud.Action{ Service: "fmu", Version: "2019-12-13", Action: "StyleImagePro", } Styl...
leftmike/maho
storage/encode/key.go
<reponame>leftmike/maho<filename>storage/encode/key.go package encode import ( "fmt" "math" "github.com/leftmike/maho/sql" "github.com/leftmike/maho/util" ) const ( // The SQL values are encoded as a tag followed by a binary representation // of the value. NullKeyTag = 128 BoolKeyTag ...
mrgypnocat/xipki
security/src/main/java/org/xipki/security/KeypairGenResult.java
/* * * Copyright (c) 2013 - 2022 <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 agree...
Vizzuality/heco-invest
backend/app/controllers/application_controller.rb
<reponame>Vizzuality/heco-invest<filename>backend/app/controllers/application_controller.rb<gh_stars>1-10 class ApplicationController < ActionController::Base protected def after_sign_out_path_for(resource_or_scope) scope = Devise::Mapping.find_scope!(resource_or_scope) if scope == :admin new_admin_s...
grischard/osmeditor4android
src/main/java/de/blau/android/util/ReadFile.java
package de.blau.android.util; import java.io.Serializable; import java.util.List; import android.net.Uri; public abstract class ReadFile implements Serializable { /** * */ private static final long serialVersionUID = 1L; /** * Read a file * * @param fileUri Uri of the file to ...
valentincostam/plande
components/NotFound.js
import { Heading } from '@chakra-ui/react'; export default function NotFound() { return <Heading>404</Heading>; }
lo-ca/arangodb
arangod/Graph/PathManagement/PathStore.h
<reponame>lo-ca/arangodb //////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may...
MislavStipetic/lymph
lymph/testing/mock_helpers.py
import functools import unittest from lymph.exceptions import RemoteError from lymph.core.container import ServiceContainer import mock import hamcrest class MockMixins(object): def _assert_equal_calls(self, actual_calls, expected_calls): actual_count, expected_count = len(actual_calls), len(expected_...
atomorojo/PetSitters-1
src/main/java/PetSitters/security/VerificationTokenService.java
package PetSitters.security; import PetSitters.auxiliary.ReadWebPage; import PetSitters.entity.UserPetSitters; import PetSitters.repository.UserRepository; import PetSitters.repository.VerificationTokenRepository; import org.apache.commons.lang3.text.StrSubstitutor; import org.springframework.beans.factory.anno...
geaviation/shiny
vendor/R/lib/R/include/R_ext/Itermacros.h
<reponame>geaviation/shiny /* * R : A Computer Language for Statistical Data Analysis * Copyright (C) 2001-12 The R Core Team. * * This program 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...
soerenkoenig/owl
owl/scene/node.hpp
<filename>owl/scene/node.hpp // // .___. // {o,o} // ./)_) // owl --"-"--- // // Copyright © 2017 <NAME>. All rights reserved. // #pragma once #include <memory> #include <functional> #include "owl/optional.hpp" #include "owl/math/matrix.hpp" #include "owl/math/euler_angles.hpp" #inc...
willj/kaboom
sample/assetMap.js
var assetMap = []; assetMap.push({ fileType: "Image", fileName: "pigeon.png", sprites: [ { name: "leftPigeon", startX: 0, startY: 0, width: 99, height: 70, states: { initial: [0,"initial"], fadeA...
mintproject/topoflow
topoflow/utils/CMI_base.py
<reponame>mintproject/topoflow # # NOTE: This is not currently used. See emeli.py in frameworks folder. # # Copyright (c) 2010-2012, <NAME> # # February 2012 (Complete CMI, starting from CSDMS_base.py.) # #----------------------------------------------------------------------- # # Notes: This file defines a ...
bayne/ebean
ebean-core/src/test/java/org/tests/model/basic/first/TestFirstSecond.java
<reponame>bayne/ebean package org.tests.model.basic.first; import io.ebean.BaseTestCase; import io.ebean.Ebean; import org.junit.Test; public class TestFirstSecond extends BaseTestCase { @Test public void test() { First first = new First(); first.setName("first"); Ebean.save(first); Second seco...
megri/EmbroideryIO
core/src/main/java/org/embroideryio/embroideryio/PcsWriter.java
package org.embroideryio.embroideryio; import java.io.IOException; import static org.embroideryio.embroideryio.EmbConstant.*; public class PcsWriter extends EmbWriter { private static final double R = 5d / 3d; void pcsEncode(int dx, int dy, int flags) throws IOException { if ((flags & COMMAND_MASK)...
Vezorla/vezorla-backend
src/main/java/ca/sait/vezorla/repository/AccountDiscountRepo.java
<reponame>Vezorla/vezorla-backend<gh_stars>0 package ca.sait.vezorla.repository; import ca.sait.vezorla.model.AccountDiscount; import org.springframework.stereotype.Repository; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.transaction.Transactional; /** ...
smccarthy-ie/app-services-cli
pkg/localize/goi18n/go_i18n.go
<gh_stars>0 // Internationalization implementation using nicksnyder/go-i18n package goi18n import ( "encoding/json" "errors" "fmt" "io/fs" "github.com/redhat-developer/app-services-cli/pkg/dump" "github.com/redhat-developer/app-services-cli/pkg/localize" "gopkg.in/yaml.v2" "github.com/BurntSushi/toml" "gith...
cattong/YiBo
YiBo/src/com/shejiaomao/weibo/service/listener/ImageViewerSaveClickListener.java
package com.shejiaomao.weibo.service.listener; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; import java.text.SimpleDateFormat; import java.util.Date; import com.shejiaomao.maobo.R; import android.cont...
UnicornGlobal/quick-dash-framework
test/unit/specs/auth/index.spec.js
// http://chaijs.com/api/bdd/ import Vue from 'vue' import { createLocalVue } from '@vue/test-utils' import router from '@/router' import auth, { userHasRole, reloadSelf } from '@/auth' const localVue = createLocalVue() localVue.router = router if (Vue.auth) { Vue.auth.check = () => { return true } } else { ...
Mrsunsunshine/ForElder
HeartWings/src/com/nwpu/heartwings/util/MSGUtil.java
package com.nwpu.heartwings.util; import java.net.InetSocketAddress; import org.apache.mina.core.future.ConnectFuture; import org.apache.mina.core.session.IoSession; import org.apache.mina.filter.codec.ProtocolCodecFilter; import org.apache.mina.filter.codec.serialization.ObjectSerializationCodecFactory; import org.a...
tendril-cirrus/4308Cirrus
tendril-domain/src/test/java/edu/colorado/cs/cirrus/domain/model/DeviceCostAndConsumptionTest.java
<gh_stars>1-10 package edu.colorado.cs.cirrus.domain.model; import static org.junit.Assert.*; import java.io.File; import org.junit.Test; import org.simpleframework.xml.Serializer; import org.simpleframework.xml.core.Persister; public class DeviceCostAndConsumptionTest { @Test public void canDeserializeDev...
EventHorizon27/dataset-lib
dataset.ims/src/tech/pod/dataset/ims/WordHistogramClassifier.java
<gh_stars>1-10 package tech.pod.dataset.ims; import java.util.ArrayList; import java.util.HashMap; import java.util.List; //WordHistogramClassifier classifies an IndexKey list based on whether an individual IndexKey's WordHistogramList contains the queried words in the given quantities public class WordHistogramClassi...
Zoltan45/Mame-mkp119
src/mame/audio/tiamc1.c
<filename>src/mame/audio/tiamc1.c /*************************************************************************** TIA-MC1 sound hardware driver by <NAME> special thanks to Shiru for his standalone emulator and documentation timer1 timer0 |--------| |--------| | 8253 | |...
RedBrumbler/virtuoso-codegen
include/UnityEngine/TextCore/LowLevel/GlyphRenderMode.hpp
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Enum #include "System/Enum.h...
lulululbj/Everything
app/src/main/java/luyao/everything/view/dialog/ShowNumberDialog.java
<gh_stars>1-10 package luyao.everything.view.dialog; import android.content.Context; import android.text.TextUtils; import android.view.View; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; import butterknife.BindView; import butterknife.OnClick; import luyao.eve...
8d1h/TiddlyWiki5
core/modules/startup/render.js
/*\ title: $:/core/modules/startup/render.js type: application/javascript module-type: startup Title, stylesheet and page rendering \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; // Export name and synchronous status exports.name = "render"; exports.platforms = ["browser...
keaton-freude/Nimble
NimbleGraphics/NimbleGraphics/src/SplatMap.cpp
#include "SplatMap.h" SplatMap::SplatMap() { } void SplatMap::LoadFromFile(D3DDevice device, D3DDeviceContext deviceContext, const vector<wstring>& textures) { _textures = TextureArray(device, deviceContext, textures, true); } SplatMap::~SplatMap() { } ID3D11ShaderResourceView** SplatMap::GetTextureViews() { retu...
StrahinjaJacimovic/mikrosdk_click_v2
clicks/dht22/lib/src/dht22.c
<filename>clicks/dht22/lib/src/dht22.c<gh_stars>10-100 /* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to de...
erezrokah/appsmith
app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ValidationUtils.java
<reponame>erezrokah/appsmith<filename>app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ValidationUtils.java package com.appsmith.server.helpers; import org.apache.commons.validator.routines.EmailValidator; public final class ValidationUtils { public static final int LOGIN_PASSWORD_MIN_LENGTH =...
SeungpilPark/fastcampus-monolithic
backend/src/main/java/com/fastcampus/mobility/entity/UserRole.java
<reponame>SeungpilPark/fastcampus-monolithic package com.fastcampus.mobility.entity; public enum UserRole { 시스템관리, 일반관리 }
medismailben/llvm-project
llvm/lib/CodeGen/PostRAHazardRecognizer.cpp
<gh_stars>1000+ //===----- PostRAHazardRecognizer.cpp - hazard recognizer -----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===-----------...
tuhintoxin/indic-keyboard
native/jni/src/suggest/core/policy/scoring.h
<gh_stars>0 /* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
Sensory-Cloud/android-sdk
SensoryCloud/src/main/java/ai/sensorycloud/api/common/ModelType.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: common/common.proto package ai.sensorycloud.api.common; /** * <pre> * A type of model supported by this API * Note: if you change this enum, ensure to update schema.prisma ModelType * </pre> * * Protobuf enum {@code sensory.api.common.ModelT...
Whoaa512/list-share
src/redux/modules/listMeta.js
import get from 'lodash/get' import isEmpty from 'lodash/isEmpty' import cloneDeep from 'lodash/cloneDeep' import { getUser } from './auth' const STATE_PATH = 'listMeta' const LOAD = `list-share/${STATE_PATH}/LOAD` const LOAD_SUCCESS = `list-share/${STATE_PATH}/LOAD_SUCCESS` const LOAD_FAIL = `list-share/${STATE_PATH...
lfaraone/sal
profiles/migrations/0001_squashed_0003_auto_20180411_1623.py
<reponame>lfaraone/sal # -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-04-12 18:29 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): replaces = [(b'profiles', '0001_initial'), (b'profiles', '0002_au...
brettbevers/programr
lib/string.rb
class String def to_s_with_arguments(*args) to_s_without_arguments end alias_method :to_s_without_arguments, :to_s alias_method :to_s, :to_s_with_arguments end
xjc90s/serenity-core
serenity-core/src/main/java/net/thucydides/core/steps/StepLibraryCreator.java
package net.thucydides.core.steps; import net.thucydides.core.util.EnvironmentVariables; import static net.thucydides.core.ThucydidesSystemProperty.STEP_CREATION_STRATEGY; class StepLibraryCreator { static StepLibraryCreationStrategy usingConfiguredCreationStrategy(StepFactory stepFactory, ...
Starkovsky/mossebo-shop
resources/assets/js/store/catalog/modules/sort/index.js
import * as actionTypes from './types' const sortMethods = { /** * Сортировка по популярности. * * @param products * @returns {Array} */ sortPopular(products) { return _.orderBy(products, ['popular', 'showed', 'id'], ['desc', 'desc', 'asc']) }, sortCheaper(products) { ...
efornara/cc65
include/_io2.h
/*** File generated by inc2h.pl - DO NOT EDIT ***/ /* */ /* io2.inc */ /* */ /* ...
pawanrajoriya/axis-axis1-java
axis-rt-core/src/main/java/org/apache/axis/components/encoding/AbstractXMLEncoder.java
/* * Copyright 2001-2004 The Apache Software Foundation. * * 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...
chigley/advent2021
day04/board.go
<reponame>chigley/advent2021 package day04 const BoardDimension = 5 type Board [][]int func (b Board) IsWon(draw map[int]struct{}) bool { row: for _, row := range b { for _, n := range row { if _, ok := draw[n]; !ok { continue row } } return true } column: for i := 0; i < BoardDimension; i++ { ...
douglasmiller/recurly-client-ruby
lib/recurly/resources/subscription_add_on.rb
<gh_stars>10-100 # This file is automatically created by Recurly's OpenAPI generation process # and thus any edits you make by hand will be lost. If you wish to make a # change to this file, please create a Github issue explaining the changes you # need and we will usher them to the appropriate places. module Recurly ...
sarang-apps/darshan_browser
components/password_manager/core/browser/site_affiliation/asset_link_data.cc
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/password_manager/core/browser/site_affiliation/asset_link_data.h" #include <algorithm> #include <utility> #include "base/json/json_...
Trickcorrea/workflow
src/tests/healthCheck.test.js
<reponame>Trickcorrea/workflow<gh_stars>1-10 require("dotenv").config(); const axios = require("axios"); const { startServer } = require("../app"); const { delay } = require("./utils/auxiliar"); const { config } = require("./utils/requestConfig"); let server; beforeAll(() => { server = startServer(3001); axios.de...
noah-ubf/bbooxx
src/reducers/helpers/tab.js
import * as _ from 'lodash'; import { getDescriptorFromList } from '../../libs/modules/descriptor'; import ModulesHelper from './modules'; class TabHelper { add(state, id, verses = [], verse = null) { const tabOrder = _.chain(state.tabOrder).without(id).unshift(id).value(); console.log('==>', tabOrder) ...
Zalexanninev15/VitNX
docs/search--/s_4766.js
<reponame>Zalexanninev15/VitNX search_result['4766']=["topic_0000000000001254_overloads--.html","VitNX_TreeNode Constructor",""];
tektronix/syphon
tests/hash/test_openhashfile.py
<filename>tests/hash/test_openhashfile.py """tests.hash.test_openhashfile.py Copyright <NAME>, LLC. Licensed under MIT (https://github.com/tektronix/syphon/blob/master/LICENSE) """ import enum import os import random from typing import List, Optional import pytest from _pytest.monkeypatch import MonkeyPatch fr...
H-Tatsuhiro/Com_Pro-Cpp
AtCoder/abc156/c/main.cpp
#include <iostream> #include <cmath> #include <algorithm> #include <vector> using namespace std; int main() { int N; cin >> N; vector<int> X(N, 0); for (int i = 0; i < N; ++i) cin >> X[i]; vector<int> C(100, 0); int ans = 10000000; for (int i = 1; i <= 100 ; ++i) { int cost_sum = 0; ...
giantoak/OpenAds-Flask
app/static/scripts/xdataht/modules/graph/graph.js
<reponame>giantoak/OpenAds-Flask /** * Copyright (c) 2013 Oculus Info Inc. * http://www.oculusinfo.com/ * * Released under the MIT License. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in ...
ATrain951/01.python-com_Qproject
hackerrank/Data Structures/Find Merge Point of Two Lists/test.py
<filename>hackerrank/Data Structures/Find Merge Point of Two Lists/test.py<gh_stars>1-10 import unittest import solution class TestQ(unittest.TestCase): def test_case_0(self): index = 1 list1_count = 3 list1 = solution.SinglyLinkedList() for item in [1, 2, 3]: list1.in...
zhaodm/skia_sdl
gm/blurs.cpp
<reponame>zhaodm/skia_sdl<filename>gm/blurs.cpp<gh_stars>0 /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkBlurMask.h" #include "SkBlurMaskFilter.h" class BlursGM : public skiagm::GM { public: ...
CodingFu/bitly
lib/bitly/api.rb
# frozen_string_literal: true require "uri" module Bitly module API BASE_URL = URI("https://api-ssl.bitly.com/v4") autoload :Base, File.join(File.dirname(__FILE__), "api/base.rb") autoload :Client, File.join(File.dirname(__FILE__), "api/client.rb") autoload :ClickMetric, File.join(File.dirname(__FIL...
isabella232/mobile-messaging-sdk-android
infobip-mobile-messaging-android-sdk/src/main/java/org/infobip/mobile/messaging/util/DeviceInformation.java
package org.infobip.mobile.messaging.util; import android.annotation.SuppressLint; import android.app.KeyguardManager; import android.app.admin.DevicePolicyManager; import android.content.Context; import android.os.Build; import android.provider.Settings; import org.infobip.mobile.messaging.logging.MobileMessagingLog...
room77/77up
public/util/counter/metrics/count/count.cc
<filename>public/util/counter/metrics/count/count.cc // Copyright 2013 Room77 Inc. All Rights Reserved. // Author: <EMAIL> (<NAME>) #include "util/counter/metrics/count/count.h" namespace counter { namespace metrics { // register auto reg_count = MetricInterface::bind("count", [] { return new Count(); }); } // nam...
MightyCupcakes/ArmourReborn
src/main/java/teamOD/armourReborn/common/modifiers/TraitGuardianAngel.java
<filename>src/main/java/teamOD/armourReborn/common/modifiers/TraitGuardianAngel.java package teamOD.armourReborn.common.modifiers; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.MobEffects; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion....
ankurshukla1993/IOT-test
coeey/android/arch/persistence/room/Database.java
package android.arch.persistence.room; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType.TYPE}) @Retention(RetentionPolicy.CLASS) public @interface Database { Class[] entities(); ...
Scorbutics/skalang
bytecode/generator/src/Generator/GeneratorOperatorFilter.h
<gh_stars>1-10 #pragma once #include "GeneratorOperator.h" #include "Operation/OperationTypeFilter.h" namespace ska { namespace bytecode { SKALANG_GENERATOR_OPERATOR_DEFINE(ska::Operator::FILTER); } }
xlasers/spring-modules
spring-boot/spring-boot-basic/props/src/main/java/com/xlaser4j/demo/Logo.java
package com.xlaser4j.demo; import lombok.Data; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; /** * @package: com.xlaser4j.demo * @author: Elijah.D * @time: 2019/12/5 12:29 * @description: * @modified: Elijah.D */ @Data @Component public class Logo { ...
jiageh08/tea-springboot
bdnav-provider/school-provider/src/main/java/com/bdxh/school/service/SinglePermissionService.java
package com.bdxh.school.service; import com.bdxh.common.support.IService; import com.bdxh.school.dto.SinglePermissionQueryDto; import com.bdxh.school.entity.SinglePermission; import com.bdxh.school.vo.SinglePermissionShowVo; import com.github.pagehelper.PageInfo; import org.springframework.stereotype.Service; import ...
aanacleto/erp-
core/objs/candidatura.py
# !/usr/bin/env python3 # -*- encoding: utf-8 -*- """ ERP+ """ __author__ = '<NAME>' __credits__ = [] __version__ = "1.0" __maintainer__ = "<NAME>" __status__ = "Development" __model_name__ = 'candidatura.Candidatura' import auth, base_models from orm import * from form import * class Candidatura(Model, View): def...
mwerlberger/imp
deprecated/tests/core/image_cv_test.cpp
<gh_stars>1-10 #include <assert.h> #include <cstdint> #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <imp/core/roi.hpp> #include <imp/bridge/opencv/image_cv.hpp> #include "default_msg.h" int main(int /*argc*/, char** /*argv*/) { try { cv::Mat lena = cv:...
Kirishikesan/haiku
src/apps/haikudepot/ui/UserUsageConditionsWindow.h
/* * Copyright 2019-2020, <NAME> <<EMAIL>>. * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef USER_USAGE_CONDITIONS_WINDOW_H #define USER_USAGE_CONDITIONS_WINDOW_H #include <Locker.h> #include <Messenger.h> #include <Window.h> #include "HaikuDepotConstants.h" #include "PackageInfo.h...
srikanthprathi/Segs
Common/Messages/Game/GameEvents.h
/* * SEGS - Super Entity Game Server * http://www.segs.dev/ * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. */ #pragma once #include "Components/LinkLevelEvent.h" #include "Components/BitStream.h" //#includ...
ruhan-islam/ctf-archives
ICHSA/2021/crypto/Baby_Homework/best_crypto_service.py
#!/usr/local/bin/python2 from Crypto.Cipher.AES import AESCipher import os, random, binascii from sys import argv import string import sys def padding(data): pad_size = 16 - (len(data) % 16) data = data + "".join([random.choice(string.printable) for _ in range(pad_size)]) return data def e...
DavidWhitlock/PortlandStateJava
grader/src/test/java/edu/pdx/cs410J/grader/GradesFromD2LImporterTest.java
<filename>grader/src/test/java/edu/pdx/cs410J/grader/GradesFromD2LImporterTest.java package edu.pdx.cs410J.grader; import org.junit.jupiter.api.Test; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.hasItem; import static org.hamcrest.MatcherAssert.assertThat; import static org...
tstibro/chip8
Chip8lib/core/cpu/instructions/setVxToVyMinusVxInstruction.cpp
<reponame>tstibro/chip8 /* * setVxToVyMinusVxInstruction.cpp * * Created on: Jul 16, 2016 * Author: <NAME> */ #include "setVxToVyMinusVxInstruction.hpp" #include "../cpu.hpp" using namespace chip8::core::cpu::instructions; using namespace chip8::core::cpu; SetVxToVyMinusVxInstruction::SetVxToVyMinusVxInstr...
Doorglazing/java
javase/Object/src/Date/DateTest1.java
package Date; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; public class DateTest1 { public static void main(String[] args) throws ParseException { String str = "2001年6月6日"; DateFormat date = new SimpleDateFormat("yyyy年M月d日"); System.out.p...
fullstackdev39/Admin-Panel-React
src/theme/theme/react/demo2/src/_metronic/layout/header/Topbar/Topbar.js
/* eslint-disable no-unused-vars */ import React from "react"; import QuickPanelToggler from "./quick-panel-toggler/QuickPanelToggle"; import QuickActionsPanel from "../../../../app/partials/layout/QuickActionsPanel"; import MyCart from "../../../../app/partials/layout/MyCart"; import UserNotifications from "../../../....
jasha64/jasha64
Spring 2018/ACM/2018.7.24/C.cpp
<reponame>jasha64/jasha64 #include <iostream> using namespace std; inline int Lowbit(int x) {return x & -x;} int main() { ios::sync_with_stdio(false); int T; cin >> T; while (T--) { int n; cin >> n; int Res = 0; for (int i = n ^ (n-1); i > 0; i -= Lowbit(i)) ++Res; cout << Res << endl; } return...
echinopsii/net.echinopsii.3rdparty.infinispan
compatibility52x/adaptor52x/src/main/java/org/infinispan/config/TypedPropertiesAdapter.java
package org.infinispan.config; import java.util.Set; import java.util.Map.Entry; import javax.xml.bind.annotation.adapters.XmlAdapter; import org.infinispan.util.TypedProperties; /** * TypedPropertiesAdapter is JAXB XmlAdapter for TypedProperties. * * @author <NAME> * @since 4.0 */ public class TypedPropertiesA...
SoftHoardersOG/FreightFrenzyNatio
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Tests/TestCarusel.java
<reponame>SoftHoardersOG/FreightFrenzyNatio<gh_stars>0 package org.firstinspires.ftc.teamcode.Tests; import static org.firstinspires.ftc.teamcode.Hardware.HardwareUtils.changeDirection; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualc...
benihime91/litcv
gale/classification/augment.py
<gh_stars>0 # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/05a_classification.augment.ipynb (unless otherwise specified). __all__ = ['imagenet_stats', 'cifar_stats', 'mnist_stats', 'imagenet_stats', 'cifar_stats', 'mnist_stats', 'imagenet_no_augment_transform', 'imagenet_augment_transform', 'aug_transforms...
CourtHive/tods-competition-factory
src/drawEngine/governors/positionGovernor/conditionallyDisableLinkPositioning.js
<filename>src/drawEngine/governors/positionGovernor/conditionallyDisableLinkPositioning.js import { addExtension, removeExtension, } from '../../../tournamentEngine/governors/tournamentGovernor/addRemoveExtensions'; import { getPositionAssignments } from '../../getters/positionsGetter'; import { DISABLE_LINKS } fr...
akashkj/commcare-hq
corehq/preindex/preindex_plugins.py
from abc import ABCMeta, abstractmethod import os from dimagi.utils.couch.database import get_db from dimagi.utils.couch.sync_docs import DesignInfo PREINDEX_PLUGINS = {} def register_preindex_plugin(plugin): PREINDEX_PLUGINS[plugin.app_label] = plugin class PreindexPlugin(metaclass=ABCMeta): synced = F...
rentianhua/tsf_android
houseAd/HouseGo/src/com/dumu/housego/view/ISureYuYueView.java
package com.dumu.housego.view; public interface ISureYuYueView { void sureyuyue(String info); }
jbrandolinisf/EDA
force-app/main/releaseGating/aura/releaseGateModalOpener/releaseGateModalOpenerController.js
({ openReleaseGateModal: function (component, event, helper) { helper.openReleaseGateModal(component, event.getParam("arguments")); }, handleModalDataChangeEvent: function (component, event, helper) { helper.handleModalDataChangeEvent(component, event); }, handleModalFooterEvent: fun...
npocmaka/Windows-Server-2003
admin/pchealth/helpctr/rc/rctool/safrcfiledlg/panic.h
<filename>admin/pchealth/helpctr/rc/rctool/safrcfiledlg/panic.h // Panic.h : Declaration of the CPanic #ifndef __PANIC_H_ #define __PANIC_H_ #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CPanic #define EventName "{26ED148B-1050-4...
shayanhabibi/gitnim
bin/cache/@m..@salgo@shalgorithm.nim.c
<filename>bin/cache/@m..@salgo@shalgorithm.nim.c<gh_stars>0 /* Generated by Nim Compiler v1.4.8 */ /* (c) 2021 <NAME> */ /* The generated code is subject to the original license. */ /* Compiled for: Windows, amd64, gcc */ /* Command for C compiler: gcc.exe -c -w -fmax-errors=3 -mno-ms-bitfields -DWIN32_LEAN_AND_M...
zealoussnow/chromium
chrome/test/data/extensions/api_test/tts_engine/call_update_voices/test.js
// Copyright 2018 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. function setup() { var speakListener = function(utterance, options, sendTtsEvent) {}; var stopListener = function() {}; chrome.ttsEngine.onSpeak.add...
nekoniaow/OSDK
xa/sources/xat.cpp
#include <ctype.h> #include <stdio.h> #include "xah.h" #include "xah2.h" #include "xar.h" #include "xa.h" #include "xaa.h" #include "xal.h" #include "xat.h" #include "xao.h" #include "xap.h" int gDsbLen = 0; static ErrorCode t_conv(signed char*,signed char*,int*,int,int*,int*,int*,int); static Er...
ExoPlant/refinedstorage2
refinedstorage2-grid-api/src/main/java/com/refinedmods/refinedstorage2/api/grid/view/GridView.java
package com.refinedmods.refinedstorage2.api.grid.view; import com.refinedmods.refinedstorage2.api.storage.channel.StorageTracker; import java.util.List; import java.util.Optional; import java.util.function.Predicate; public interface GridView<T> { void setListener(Runnable listener); GridSortingType getSort...