repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ZhnZhn/ZhnZhn.github.io
src/constants/WatchDefault.js
const WatchDefault = { groups : [ { caption : 'Economic Metrics', lists : [ { caption : 'List1'}, { caption : 'List2'}, { caption : 'List3'} ] }, { caption : 'Currencies' , lists : [ { caption : 'List1' }, ...
ptoussai/dito
packages/utils/src/object/equals.test.js
<gh_stars>10-100 import { equals } from './equals' describe('equals()', () => { const symbol1 = Symbol('a') const symbol2 = Symbol('b') describe.each([ [1, 1, true], [1, Object(1), true], [1, '1', false], [1, 2, false], [-0, -0, true], [0, 0, true], [0, Object(0), true], [Object(0), Object(0), true],...
pelagios/peripleo2
app/controllers/api/admin/TaskAPIController.scala
<reponame>pelagios/peripleo2 package controllers.api.admin import com.mohiva.play.silhouette.api.Silhouette import controllers.{BaseAuthController, HasPrettyPrintJSON, Security} import javax.inject.{Inject, Singleton} import play.api.Configuration import play.api.libs.json.Json import play.api.mvc.{AbstractController,...
MrLiuFang/pepper-discreteness
discreteness-cache/discreteness-cache-business/src/main/java/com/pepper/service/redis/string/serializer/impl/StringRedisTemplateServiceImpl.java
<reponame>MrLiuFang/pepper-discreteness<filename>discreteness-cache/discreteness-cache-business/src/main/java/com/pepper/service/redis/string/serializer/impl/StringRedisTemplateServiceImpl.java<gh_stars>1-10 package com.pepper.service.redis.string.serializer.impl; import java.io.Closeable; import java.util.Collection;...
Braagaa/java-server-side-sdk
src/main/java/io/loginid/sdk/java/auth/Authentication.java
/* * LoginID Service API * # Introduction <span class=\"subtext\"> Welcome to the LoginID API docs. This documentation will help understand the API calls being made behind our SDKs. These APIs can be used to manage authentication, users, and user credentials. </span> # Authentication <span class=\"subtext\"> Ther...
ggallotti/JavaClasses
java/src/main/java/com/genexus/db/IRemoteDataStoreHelper.java
<filename>java/src/main/java/com/genexus/db/IRemoteDataStoreHelper.java<gh_stars>10-100 package com.genexus.db; import java.sql.SQLException; import com.genexus.GXParameterPacker; import com.genexus.GXParameterUnpacker; public interface IRemoteDataStoreHelper extends IDataStoreHelper { void setParameters(int cursor...
ghsecuritylab/Alios_SDK
tools/testbed/utilities/device_info_poll.py
import sys, json from autotest import Autotest def print_help(): print "Usages:" print "1. list devices: python {0} --list [--server serverip] [--port port]".format(sys.argv[0]) print "2. get device nerghbors: python {0} --nbrs device_string [--server serverip] [--port port]".format(sys.argv[0]) def list...
Joose/Joose
t/071_reflection_current_method.t.js
StartTest(function (t) { //================================================================================================================================================================================== t.diag("Reflection - currentMethod") Class('TestClass1', { has : { ...
onebytecode/musicConnects-web
logging/logging_dev.js
const colors = require('colors') const messageAnalyser = require('./messageAnalyser') module.exports = (message, err, type) => { let errorMessage = '' if (message) errorMessage += messageAnalyser(message, type) if (err) errorMessage += '\n' + err return console.log(errorMessage); }
wstong999/AliOS-Things
components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/TrimDocumentRequest.cc
<gh_stars>1000+ /* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * *...
Kishore-abhimanyu/Side-Projects
CodingProblem/dcp/codes/trie.h
<reponame>Kishore-abhimanyu/Side-Projects<filename>CodingProblem/dcp/codes/trie.h #ifndef TRIE_H #define TRIE_H // Each node has 26 (alphabet) possibilites of // characters #define POS 26 struct trie{ struct trie* alphabetlinks[POS]; int leaf; // used to identify the end of the word }; struct trie *node(); void ...
PavlidisLab/Gemma
gemma-core/src/main/java/ubic/gemma/core/job/executor/webapp/SubmittedTaskLocal.java
<reponame>PavlidisLab/Gemma /* * The Gemma project * * Copyright (c) 2013 University of British Columbia * * 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.o...
FlorentRevest/Enlightenment
src/bin/e_toolbar.c
#include "e.h" /* local function protos */ static void _e_toolbar_free(E_Toolbar *tbar); static void _e_toolbar_cb_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info); static void _e_toolbar_menu_cb_post(void *data, E_Menu *mn); static void _e_toolbar_menu_cb_pre(void *da...
joeylamcy/gchp
ESMF/src/Infrastructure/Mesh/src/Moab/parallel/moab_mpi_config.h
<filename>ESMF/src/Infrastructure/Mesh/src/Moab/parallel/moab_mpi_config.h<gh_stars>1-10 /* src/parallel/moab_mpi_config.h. Generated from moab_mpi_config.h.in by configure. */ #include "moab/MOABConfig.h" /* MPICH_IGNORE_CXX_SEEK is not sufficient to avoid conflicts */ /* #undef MB_MPI_CXX_CONFLICT */ /* "Value of...
halfreal/spezi-gdx
spezi-gdx/src/main/java/de/halfreal/spezi/gdx/utils/DragAndDrop.java
<reponame>halfreal/spezi-gdx<filename>spezi-gdx/src/main/java/de/halfreal/spezi/gdx/utils/DragAndDrop.java package de.halfreal.spezi.gdx.utils; import static com.badlogic.gdx.scenes.scene2d.actions.Actions.*; import com.badlogic.gdx.Input.Buttons; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.s...
vot-developer/practice
src/main/java/org/algorithms/coding_patterns/educative/reversal_linkedlist/ReverseSubList.java
<filename>src/main/java/org/algorithms/coding_patterns/educative/reversal_linkedlist/ReverseSubList.java package org.algorithms.coding_patterns.educative.reversal_linkedlist; /* Given the head of a LinkedList and two positions 'p' and 'q', reverse the LinkedList from position 'p' to 'q'. */ public class ReverseSubLis...
verlandz/go-pkg
log/const.go
package log import "github.com/rs/zerolog" type LogLevel int const ( ZLOG_PANIC LogLevel = LogLevel(zerolog.PanicLevel) ZLOG_FATAL LogLevel = LogLevel(zerolog.FatalLevel) ZLOG_ERROR LogLevel = LogLevel(zerolog.ErrorLevel) ZLOG_WARN LogLevel = LogLevel(zerolog.WarnLevel) ZLOG_INFO LogLevel = LogLevel(zerolog.I...
alejandrolozano2/OpenGL_DemoFramework
DemoFramework/FslUtil/Vulkan1_0/source/FslUtil/Vulkan1_0/Extend/BufferEx.cpp
<filename>DemoFramework/FslUtil/Vulkan1_0/source/FslUtil/Vulkan1_0/Extend/BufferEx.cpp /**************************************************************************************************************************************************** * Copyright (c) 2016 Freescale Semiconductor, Inc. * All rights reserved. * * Redis...
ZHAOZhengyi-tgx/BE-Supporter_2016
BE_Supporter/MtnAlgo/MtnAFT/src/MtnTune_b1w.cpp
<gh_stars>0 //The MIT License (MIT) // //Copyright (c) 2016 ZHAOZhengyi-tgx // //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 the Software without restriction, including without limitation the righ...
react-storefront-foundation/react-storefront
src/mock-connector/product.js
import getBase64ForImage from 'react-storefront/utils/getBase64ForImage' import fulfillAPIRequest from '../props/fulfillAPIRequest' import createProduct from './utils/createProduct' import createAppData from './utils/createAppData' function asciiSum(string = '') { return string.split('').reduce((s, e) => s + e.charC...
openharmony-gitee-mirror/ace_ace_engine
frameworks/core/image/image_provider.cpp
<filename>frameworks/core/image/image_provider.cpp /* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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/L...
oct16/leetcode-javascript
70.climbing-stairs.js
<gh_stars>1-10 /* * @lc app=leetcode id=70 lang=javascript * * [70] Climbing Stairs */ // @lc code=start /** * @param {number} n * @return {number} */ var climbStairs = function(n) { const cached = new Array(0, 1, 2, 3) function climb(n) { if (cached[n]) { return cached[n] }...
ivankravets/Arduino-Libs
RedFly/RedFlyNBNS.h
#ifndef REDFLYNBNS_h #define REDFLYNBNS_h #include <inttypes.h> #if (defined(__AVR__) || defined(ARDUINO_ARCH_AVR)) # include <avr/pgmspace.h> #endif #include "RedFlyServer.h" class RedFlyNBNS : RedFlyServer { public: RedFlyNBNS(void); RedFlyNBNS(char *name); ~RedFlyNBNS(void); void setName(char ...
zkat/esm
src/hook/process.js
<filename>src/hook/process.js import ESM from "../constant/esm.js" import Loader from "../loader.js" import Wrapper from "../wrapper.js" import isError from "../util/is-error.js" import isStackTraceMasked from "../util/is-stack-trace-masked.js" import maskStackTrace from "../error/mask-stack-trace.js" import scrubSta...
xiong222/AsosClone
app/template/components/SearchDropdown/SearchDropdown.js
import React, { Component } from "react"; import { PropTypes } from "prop-types"; import withTranslation from "../translation"; import ResultList from "./ResultList"; import styles from "./index.css"; class SearchDropdown extends Component { static propTypes = { recentSearches: PropTypes.arrayOf(PropTypes.string...
sigurasg/ghidra
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/FileEditor.java
/* ### * IP: GHIDRA * * 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 writin...
apparentlymart/perkeep
pkg/serverinit/serverinit_test.go
<gh_stars>0 /* Copyright 2012 Google 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 License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
Ron423c/chromium
chrome/updater/app/server/win/com_classes.cc
// Copyright 2020 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 "chrome/updater/app/server/win/com_classes.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/logging.h" #include "base...
dnsdb-team/getdns4j
src/test/java/io/dnsdb/getdns4j/test/TestApplication.java
<reponame>dnsdb-team/getdns4j package io.dnsdb.getdns4j.test; import io.dnsdb.getdns4j.Application; import io.dnsdb.getdns4j.cmd.SubCommandManager; import org.junit.Assert; import org.junit.Test; /** * <code>TestApplication</code>测试类用于测试{@link Application} * * @author Remonsan */ public class TestApplication { ...
onnoA/springboot-sample
chapter02-springboot-spring-security-oauth2/spring-boot-security-oauth2-server/src/mian/java/com/onnoa/springboot/security/oauth2/server/service/impl/TbUserServiceImpl.java
package com.onnoa.springboot.security.oauth2.server.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; import com.baomido...
bangchuanliu/algorithm-examples
algorithms-stanford/src/main/java/course4/assignment1/WeighedDiGraph.java
<filename>algorithms-stanford/src/main/java/course4/assignment1/WeighedDiGraph.java<gh_stars>0 package course4.assignment1; import java.util.LinkedList; import java.util.List; public class WeighedDiGraph { private int V; private int E; private LinkedList<Edge>[] adj; public WeighedDiGraph(int V) { ...
ChiaChia1114/Free5gc_docker
NFs/upf/updk/src/third_party/libgtp5gnl/include/linux/gtp5g.h
#ifndef _UAPI_LINUX_GTP5G_H__ #define _UAPI_LINUX_GTP5G_H__ enum gtp5g_genl_cmds { GTP5G_CMD_UNSPEC = 0, GTP5G_CMD_ADD_PDR, GTP5G_CMD_ADD_FAR, GTP5G_CMD_ADD_QER, GTP5G_CMD_DEL_PDR, GTP5G_CMD_DEL_FAR, GTP5G_CMD_DEL_QER, GTP5G_CMD_GET_PDR, GTP5G_CMD_GET_FAR, GTP5G_CMD_GET_QER, ...
tungdduy/funixCP
SourceCode/XeKhachTools/src/main/java/generator/ts/url/declare/Url.java
package generator.ts.url.declare; import lombok.Getter; import lombok.Setter; import java.util.ArrayList; import java.util.List; @Getter @Setter public class Url { private String config; private String key; private final List<Url> children = new ArrayList<>(); }
sin-ivan/AdiumPipeEvent
adium/Frameworks/libpurple.framework/Versions/2.10.7r5340f4a9bd6a/Headers/blist.h
/** * @file blist.h Buddy List API * @ingroup core * @see @ref blist-signals */ /* purple * * Purple is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This program is free software; you ca...
Acrylic125/AcrylicMinecraftLib
Universal/src/main/java/com/acrylic/universal/utils/MetadataMap.java
package com.acrylic.universal.utils; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.Collection; import java.util.Map; import java.util.function.BiConsumer; public interface MetadataMap<T extends Metadata> { @NotNull Map<String, T> getMetadataMap(); ...
gouline/terraform-provider-snowflake
pkg/datasources/external_functions.go
<gh_stars>100-1000 package datasources import ( "database/sql" "fmt" "log" "github.com/chanzuckerberg/terraform-provider-snowflake/pkg/snowflake" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) var externalFunctionsSchema = map[string]*schema.Schema{ "database": { Type: schema.TypeStrin...
masami256/dfly-3.0.2-bhyve
sys/dev/netif/iwn/if_iwn.c
/*- * Copyright (c) 2007-2009 * <NAME> <<EMAIL>> * Copyright (c) 2008 * <NAME> <<EMAIL>> * Copyright (c) 2008 <NAME>, Errno Consulting * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this p...
DirtyDerv/Superalgos
Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js
<filename>Projects/Foundations/UI/Spaces/Floating-Space/CircularMenuItem.js function newCircularMenuItem() { const MODULE_NAME = 'Circular Menu Iem' let thisObject = { type: undefined, isDeployed: undefined, askConfirmation: undefined, confirmationLabel: undefined, icon...
pwnall/pwnalytics_js
spec/javascripts/post_spec.js
describe("Pwnalytics event posting", function() { beforeEach(function () { Pwnalytics.pendingEvents = 42; }); afterEach(function () { Pwnalytics.pendingEvents = 0; }); describe("eventUrl", function() { var url = null; var unicodeUrl = null; beforeEach(function() { url = Pwnalytics.e...
reactivego/rx
test/Single/doc.go
/* Single enforces that the observable sends exactly one data item and then completes. If the observable sends no data before completing or sends more than 1 item before completing, this is reported as an error to the observer. */ package Single
shmoop207/rocket-engine
test/mock/config/modules/test2/testModule.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Test2Module = void 0; const tslib_1 = require("tslib"); const index_1 = require("../../../../../index"); const test_1 = require("./src/test"); let Test2Module = class Test2Module extends index_1.Module { }; Test2Module = tslib_1.__deco...
playbar/TeamTalk
ios/TeamTalk/ViewController/My/MTTBubbleShowViewControll.h
// // BubbleShowViewControll.h // TeamTalk // // Created by scorpio on 15/7/3. // Copyright (c) 2015年 MoguIM. All rights reserved. // #import "MTTBaseViewController.h" @interface MTTBubbleShowViewControll : MTTBaseViewController<UICollectionViewDataSource,UICollectionViewDelegate> @property (nonatomic,...
rchavezriosjr/SkyLineWebPage
skyline/components/com_roksprocket/layouts/quotes/assets/js/quotes-speeds.js
/*! * @version $Id: quotes-speeds.js 10889 2013-05-30 07:48:35Z btowles $ * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2019 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ ((function(){ var AnimationsSpeed = { fade: { ...
Grosskopf/openoffice
main/chart2/source/controller/accessibility/ChartElementFactory.cxx
<gh_stars>100-1000 /************************************************************** * * 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 license...
gauravshankarcan/datatrucker.io
datatrucker_api/app/services/login/handler-local.js
/* * Copyright 2021 Datatrucker.io Inc , Ontario , Canada * * 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 applicab...
antonefremov/jitsu
server/events/js_preprocessor.go
<reponame>antonefremov/jitsu package events import ( "github.com/jitsucom/jitsu/server/jsonutils" "net/http" ) type Preprocessor interface { Preprocess(event Event, r *http.Request) } //JsPreprocessor preprocess client integration events type JsPreprocessor struct { userAgentJSONPath *jsonutils.JSONPath } func ...
busunkim96/dbnd
modules/dbnd/src/dbnd/tasks/doctor/system_dbnd.py
<filename>modules/dbnd/src/dbnd/tasks/doctor/system_dbnd.py import logging import os import random from dbnd import log_metric, task from dbnd._core.current import try_get_databand_context from dbnd.tasks.doctor.doctor_report_builder import DoctorStatusReportBuilder logger = logging.getLogger(__name__) @task def d...
carlamissiona/prototype
node_modules/vue-bulma-jump/src/index.js
<reponame>carlamissiona/prototype export BackToTop from './BackToTop' export default from './Jump'
baines/engine
include/renderer/texture.h
<reponame>baines/engine #ifndef TEXTURE_H_ #define TEXTURE_H_ #include "common.h" #include "util.h" #include "gl_context.h" #include <tuple> struct RenderState; struct Texture { virtual GLenum getType(void) const = 0; virtual bool isValid(void) const = 0; virtual std::tuple<int, int> getSize() const = 0; virtual ...
zchee/vald
internal/net/grpc/status/status.go
<reponame>zchee/vald // // Copyright (C) 2019-2021 vdaas.org vald team <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // //...
Earchiel/Pixen
Pixel Art Core/Background/PXBackground.h
<filename>Pixel Art Core/Background/PXBackground.h<gh_stars>10-100 // // PXBackground.h // Pixen // @class PXCanvas; @interface PXBackground : NSViewController <NSCoding, NSCopying> { @private NSSize cachedImageSize; } @property (nonatomic, strong) NSImage *cachedImage; @property (nonatomic, copy) NSString *nam...
aonguyen123/frontend_KiemDien
src/views/Dashboard/components/PresentStatistical/chart.js
<reponame>aonguyen123/frontend_KiemDien import palette from 'theme/palette'; import moment from 'moment'; export const fillData = (dataPresences, chooseWeek) => { const { indexChoose, chooseWeekDate } = chooseWeek; let data, total = 0, subTotal = 0, Mon = 0, Tue ...
GPUOpen-Tools/radeon_memory_visualizer
source/frontend/views/compare/snapshot_delta_pane.cpp
//============================================================================= // Copyright (c) 2018-2021 Advanced Micro Devices, Inc. All rights reserved. /// @author AMD Developer Tools Team /// @file /// @brief Implementation of the Snapshot delta pane. //===========================================================...
Pismery/Study
algorithm/src/test/java/com/pismery/study/algorithm/PerfectSquareTest.java
<filename>algorithm/src/test/java/com/pismery/study/algorithm/PerfectSquareTest.java<gh_stars>0 package com.pismery.study.algorithm; import com.pismery.study.algorithm.PerfectSquare; import org.junit.Test; import static org.junit.Assert.assertEquals; public class PerfectSquareTest { @Test public void squareN...
1690296356/jdk
test/hotspot/jtreg/compiler/arraycopy/TestArrayCopyWithBadOffset.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
lastweek/source-freebsd
src/sys/arm/nvidia/drm2/tegra_dc_reg.h
/*- * Copyright 1992-2015 <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 retain the above copyright * notice, this list of conditions ...
asashour/aws-sdk-java
aws-java-sdk-resourcegroups/src/main/java/com/amazonaws/services/resourcegroups/AWSResourceGroupsClient.java
<reponame>asashour/aws-sdk-java /* * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/a...
semihalf-bernacki-grzegorz/bsa-acs
platform/pal_uefi_dt/src/pal_pe.c
<reponame>semihalf-bernacki-grzegorz/bsa-acs<gh_stars>1-10 /** @file * Copyright (c) 2016-2018, 2021 Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
jagadeesh5113111/facebkk
nbp/src/main/java/jlibs/nbp/Stream.java
<gh_stars>10-100 /** * Copyright 2015 <NAME> * * The JLibs authors license this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
iMokhles/MyTheosHeaders
include/UIKitExtensions/UIView/Framing.h
// UIKitExtensions // // UIKitExtensions/UIView/Framing.h // // Copyright (c) 2013 <NAME> // Released under the MIT license // // Inspired by FrameAccessor // https://github.com/AlexDenisov/FrameAccessor/ #import <UIKit/UIKit.h> @interface UIView (Framing) // http://stackoverflow.com/questions/16118106/uitextview-st...
b41sh/titan
db/lease.go
package db // Lease is an object that can be associated with other objects // those can share the same ttl of the lease type Lease struct { Object TouchedAt int64 }
patrodyne/hisrc-basicjaxb-annox
core/src/test/java/org/jvnet/annox/parser/tests/B.java
<reponame>patrodyne/hisrc-basicjaxb-annox package org.jvnet.annox.parser.tests; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface B { long[] longArrayField(); int[] intArrayField(); short[] shortArrayField(); char[] charArr...
janstey/fabric8
tooling/archetype-builder/src/main/java/io/fabric8/tooling/archetype/builder/Main.java
<gh_stars>0 /** * Copyright 2005-2014 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version * 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
skkuse-adv/2019Fall_team2
analysis/reverse-engineering/decompile-fitts-with-gradle-20191031-2200/src/main/java/com/google/android/gms/measurement/internal/zzbb.java
<filename>analysis/reverse-engineering/decompile-fitts-with-gradle-20191031-2200/src/main/java/com/google/android/gms/measurement/internal/zzbb.java package com.google.android.gms.measurement.internal; import com.google.android.gms.internal.measurement.zzjn; final /* synthetic */ class zzbb implements zzdv { ...
Nightwish-cn/my_leetcode
code/308.cpp
<reponame>Nightwish-cn/my_leetcode #include <bits/stdc++.h> #define INF 2000000000 using namespace std; typedef long long ll; int read(){ int f = 1, x = 0; char c = getchar(); while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();} while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar(); ...
pedwards95/Springboard_Class
Notes/41.2-Demo/react-router-patterns-demo/videodemo/router-patterns/src/App.test.js
import React from 'react'; import { render, fireEvent } from '@testing-library/react'; import App from './App'; import { MemoryRouter } from 'react-router-dom' test('/about route', () => { const { getByText } = render(( <MemoryRouter initialEntries={['/about']}> <App /> </MemoryRouter> )); expect(g...
wangwen135/rpm
rpm-common/src/main/java/com/wwh/rpm/common/config/pojo/Arguments.java
<gh_stars>0 package com.wwh.rpm.common.config.pojo; public class Arguments { private boolean enableNettyLog; private String nettyLogLevel; public boolean isEnableNettyLog() { return enableNettyLog; } public void setEnableNettyLog(boolean enableNettyLog) { this.enableNettyLog = en...
bytectl/gopkg
crypto/gconfig/gconfig_test.go
<filename>crypto/gconfig/gconfig_test.go package gconfig import "testing" func TestDecryptString(t *testing.T) { str := "enc(3LPBm9MsFrdXcJAEFX9/JA==)" key := []byte("1234567890") decrypted, err := DecryptString(str, key) if err != nil { t.Error(err) } t.Log(decrypted) } func TestEncryptString(t *testing.T) ...
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism
Variant Programs/1-5/48/store/EntrepotBrimmingOutlier.java
<gh_stars>0 package store; public class EntrepotBrimmingOutlier extends Exception { public EntrepotBrimmingOutlier(String letters) { super(letters); } public EntrepotBrimmingOutlier() { super(); } static final double upstreamBorder = 0.7242031618092498; }
FoxComm/highlander
phoenix-scala/phoenix/app/phoenix/utils/seeds/generators/SeedsGenerator.scala
package phoenix.utils.seeds.generators import core.db._ import core.failures.NotFoundFailure404 import faker.Faker import objectframework.models.ObjectContexts import phoenix.models.{Reason, Reasons} import phoenix.models.account._ import phoenix.models.admin.{AdminData, AdminsData} import phoenix.models.coupon._ impo...
heloisaldanha/FIC_IMD_Studies
Java/ifs/Atividade1.java
package ifs; import java.util.Scanner; public class Atividade1 { /** * Receber 5 números e verificar se a soma deles é múltiplo de dois. */ public static void main(String[] args) { Scanner numeros = new Scanner(System.in); int num1, num2, num3, num4, num5, soma; System.out.pr...
krbalag/Tamil
ezhuththu/src/main/java/my/interest/lang/tamil/punar/handler/udambadu/UadambaduMeiHandler.java
<reponame>krbalag/Tamil package my.interest.lang.tamil.punar.handler.udambadu; import tamil.lang.TamilCompoundCharacter; import my.interest.lang.tamil.punar.TamilWordPartContainer; import my.interest.lang.tamil.punar.TamilWordSplitResult; import my.interest.lang.tamil.punar.handler.AbstractPunharchiHandler; import ja...
ngc92/branchedflowsim
src/tracer/initial_conditions/planar_wave.hpp
<reponame>ngc92/branchedflowsim<filename>src/tracer/initial_conditions/planar_wave.hpp #ifndef PLANAR_WAVE_HPP_INCLUDED #define PLANAR_WAVE_HPP_INCLUDED #include "initial_conditions.hpp" #include <random> namespace init_cond { // -----------------------------------------------------------------------------------...
Muhammet-Yildiz/Ecommerce_Website-HepsiOrada
Main/migrations/0017_category_slug.py
<reponame>Muhammet-Yildiz/Ecommerce_Website-HepsiOrada # Generated by Django 3.1.4 on 2021-03-02 20:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Main', '0016_product_slug'), ] operations = [ migrations.AddField( model_...
csixteen/HackerRank
Algorithms/extra_long_factorials.py
def fact(n): f = 1 for i in range(1, n+1): f *= i return f N = int(input()) print(fact(N))
bryansb/SIA
src/ec/edu/ups/jpa/accounting/JPAAccountDAO.java
<reponame>bryansb/SIA package ec.edu.ups.jpa.accounting; import ec.edu.ups.dao.accounting.AccountDAO; import ec.edu.ups.entities.accounting.Account; import ec.edu.ups.jpa.JPAGenericDAO; public class JPAAccountDAO extends JPAGenericDAO<Account, Integer> implements AccountDAO{ public JPAAccountDAO() { sup...
GetlingZ/GwFrame
gwframe/src/main/java/com/getling/gwframe/utils/NotifyUtil.java
package com.getling.gwframe.utils; import android.view.LayoutInflater; import androidx.annotation.StringRes; import com.blankj.utilcode.util.ActivityUtils; import com.blankj.utilcode.util.StringUtils; import com.blankj.utilcode.util.ToastUtils; import com.blankj.utilcode.util.Utils; import com.getling.gwframe.R; imp...
yangyxu-project-demo-code/auction
web/src/user/Register.js
<gh_stars>0 var React = require('react'); module.exports = React.createClass({ getInitialState: function() { return { items: [ { type: 'Input', name: 'phone', placeholder: '手机号', icon: 'fa-mobile', required: true }, { type: 'Input', name: 'email', placeholder: '邮箱', icon: 'fa-envelope-o', required: tr...
hporro/grafica_cpp
third_party/OpenMesh-8.1/Documentation/a03073.js
var a03073 = [ [ "HeapT", "a03073.html#a24a2c62d488a9a9e73572ad7820a8e68", null ], [ "HeapT", "a03073.html#a03ec9a9ca32d9d6409e980b90d53f54b", null ], [ "~HeapT", "a03073.html#a7e0a462d94cdd0c68aeeaaeadfa78d2d", null ], [ "check", "a03073.html#a3acd94c1497f8b6afd9548ffd64e2318", null ], [ "clear", "...
kontrollanten/sleipner
src/main/index.js
import path from 'path'; import { app, BrowserWindow, ipcMain, globalShortcut, Menu } from 'electron'; import electronDebug from 'electron-debug'; import tray from './tray'; import installExtension, { REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } from 'electron-devtools-installer'; import menu from './menu'; const isDev = p...
agoncal/agoncal-fascicle-jpa
mapping/ex03/src/test/java/org/agoncal/fascicle/jpa/mapping/BookTest.java
package org.agoncal.fascicle.jpa.mapping; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; /** * @author <NAME> * http://www.antoniogoncalves.org * -- */ public cla...
klisly/fingerpoetry-android
app/src/main/java/com/klisly/bookbox/ui/activity/HomeActivity.java
package com.klisly.bookbox.ui.activity; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.support.design.widget.NavigationView; import android.support.v4.app.FragmentActivity; imp...
gilvansfilho/quarkus
extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/devservices/InfinispanDevServiceProcessor.java
package io.quarkus.infinispan.client.deployment.devservices; import static io.quarkus.runtime.LaunchMode.DEVELOPMENT; import static org.infinispan.server.test.core.InfinispanContainer.DEFAULT_USERNAME; import java.io.Closeable; import java.time.Duration; import java.util.ArrayList; import java.util.HashMap; import ja...
commercetools/ui-k
jest.visual.config.js
process.env.ENABLE_NEW_JSX_TRANSFORM = 'true'; /** * @type {import('@jest/types').Config.ProjectConfig} */ module.exports = { preset: 'jest-puppeteer', testRegex: './*\\.visualspec\\.js$', transform: { '^.+\\.[t|j]sx?$': 'babel-jest', }, globals: { HOST: 'http://localhost:3001', }, };
TwFlem/react-cosmos
packages/react-cosmos-playground/src/plugins/ResponsivePreview/Preview/index.js
// @flow import React, { Component } from 'react'; import { isEqual } from 'lodash'; import { Header } from './Header'; import { getPluginConfig, getPluginState, setPluginState, getFixtureViewport, storeViewportInBrowserHistory } from '../shared'; import styles from './index.less'; import type { Node } from...
MassICTBV/casinocoind
src/beast/include/beast/websocket/impl/read.ipp
<filename>src/beast/include/beast/websocket/impl/read.ipp<gh_stars>1-10 // // Copyright (c) 2013-2017 <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>) // // 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) // #ifndef BEAST_WEBS...
iaxax/leetcode
301-Remove Invalid Parentheses.java
<gh_stars>0 // brute-force + simple prune class Solution { public List<String> removeInvalidParentheses(String s) { HashSet<String> result = new HashSet<>(); int[] maxLen = {0}; int diff = 0; s = trim(s); for (char c : s.toCharArray()) { if (c == '(') { ...
starburst-project/Alink
core/src/main/java/com/alibaba/alink/common/dl/DLRunner.java
<reponame>starburst-project/Alink<filename>core/src/main/java/com/alibaba/alink/common/dl/DLRunner.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 ownersh...
natemalek/molen-pater-nathan-rma-thesis-coreference-with-singletons
CoreNLP/src/edu/stanford/nlp/international/morph/AddMorphoAnnotations.java
<filename>CoreNLP/src/edu/stanford/nlp/international/morph/AddMorphoAnnotations.java package edu.stanford.nlp.international.morph; import edu.stanford.nlp.util.logging.Redwood; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Map...
cokeBeer/pyyso
src/pyyso/server/__init__.py
<gh_stars>1-10 from pyyso.server.jrmp import * from pyyso.server.rmi import * from pyyso.server.mysql import * from pyyso.server.ldap import ( LdapSerialized, LdapRemoteRef )
anycollect/anycollect
anycollect-meter-api/src/main/java/io/github/anycollect/meter/api/BaseBuilder.java
<reponame>anycollect/anycollect package io.github.anycollect.meter.api; import io.github.anycollect.metric.Key; import io.github.anycollect.metric.Stat; import io.github.anycollect.metric.Tags; import io.github.anycollect.metric.Type; import javax.annotation.Nonnull; import java.util.Objects; abstract class BaseBuil...
pointhi/sulong
tests/inlineassemblytests/bsr001.c
<reponame>pointhi/sulong int main() { unsigned short arg = 0x1234; unsigned short out = 0; __asm__("bsrw %%ax, %%cx" : "=c"(out) : "a"(arg)); return (out == 12); }
lechium/tvOS144Headers
usr/libexec/appstored/LibraryCatalogObserver.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 LibraryCatalogObserver : NSObject { CDUnknownBlockType _applicationsDidInstall; // 8 = 0x8 } - (void).cxx_dest...
tylerjw/SMACC
smacc_sm_reference_library/sm_dance_bot/include/sm_dance_bot/states/s_pattern_states/sti_spattern_forward_1.h
<reponame>tylerjw/SMACC<gh_stars>100-1000 namespace sm_dance_bot { namespace s_pattern_states { // STATE DECLARATION struct StiSPatternForward1 : public smacc::SmaccState<StiSPatternForward1, SS> { using SmaccState::SmaccState; // TRANSITION TABLE typedef mpl::list< Transition<EvCbSuccess<CbNavigateForward, O...
tongduchanh/spaceshare-demo
i18n.js
const NextI18Next = require('next-i18next').default module.exports = new NextI18Next({ defaultLanguage: 'vi', otherLanguages: ['eng'], })
1379576648/framework_java_project
framework_api/src/main/java/com/trkj/framework/entity/mybatisplus/RegisterLog.java
package com.trkj.framework.entity.mybatisplus; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Access...
cbosoft/aite
src/object/generate.cpp
#include "../util/random.hpp" #include "star.hpp" #include "planet.hpp" #include "object.hpp" static std::map<SystemObjectType, RandomLikelihood> object_likelihoods = { {SO_Moon, Likelihood_Common}, {SO_Planet, Likelihood_Certain}, {SO_Planetoid, Likelihood_Common}, {SO_GasGiant, Likelihood_Uncommon}, {SO...
PableteProgramming/download
extern/gtk/gtk/gtkwindowcontrols.c
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * 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; either version 2 of the License, or (at your * option) any later version. * * This progr...
Mu-L/automa
src/content/elementSelector/icons.js
<reponame>Mu-L/automa import { riEyeLine, riCheckLine, riCloseLine, riEyeOffLine, riFileCopyLine, riDragMoveLine, riListUnordered, riArrowLeftLine, riArrowLeftSLine, riInformationLine, riArrowDropDownLine, } from 'v-remixicon/icons'; export default { riEyeLine, riCheckLine, riCloseLine, r...
KBLin1996/Comp546-Computer_Vision
Assignment9/vlfeat-0.9.21/vl/covdet.c
/** @file covdet.c ** @brief Covariant feature detectors - Definition ** @author <NAME> ** @author <NAME> ** @author <NAME> **/ /* Copyright (C) 2013-14 <NAME>. Copyright (C) 2012 <NAME>, <NAME> and <NAME>. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the ...