repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
crosscompile/refined-github
source/features/set-default-repositories-type-to-sources.js
<filename>source/features/set-default-repositories-type-to-sources.js import select from 'select-dom'; import features from '../libs/features'; function init() { // Get repositories link from user profile navigation const link = select('.user-profile-nav a[href*="tab=repositories"]'); if (!link) { return false; ...
gotoprosperity/algorithm
binary_search/Search_a_2D_Matrix/answer_test.go
package Search_a_2D_Matrix import "testing" func TestIdxToPos(t *testing.T) { var ( i, j int ) if i, j = idxToPos(0, 10); i != 0 && j != 0 { t.Errorf("wrong ret with i=%d, j=%d", i, j) } } func TestSearchMatrix(t *testing.T) { var ( matrix [][]int target int ) matrix, target = [][]int{{1, 3, 5, 7}, {1...
kubemq-hub/builder
cluster/status.go
package cluster type Status struct { Replicas int32 `json:"replicas"` Version string `json:"version"` Ready int32 `json:"ready"` Grpc string `json:"grpc"` Rest string `json:"rest"` Api string `json:"api"` Selector string `json:"selector"` LicenseType stri...
sanblch/hunter
examples/nanosvg/main.cpp
#include <cstdio> #define NANOSVG_IMPLEMENTATION #include <nanosvg/nanosvg.h> // See https://github.com/memononen/nanosvg/tree/master/example // for further examples. int main() { NSVGimage image; (void)image; }
BrunoCersozimo/Fundamentos-Javascript
fundamentos/usandoVAr1.js
{ { { var sera = "Será???"; } } } console.log(sera)// Exibindo variável de escopo de nível global, isso pode gerar um problema no programa porque todos podem sobrescrever essa variável. A variável tem dos níveis escopo global onde a varíável fica visivel na aplicação inteira function teste(){ var...
assembla/amp
lib/amp/encoding/difflib.rb
################################################################## # Licensing Information # # # # The following code is licensed, as standalone code, under # # the Ruby License, unless otherwise directed withi...
rajatenzyme/Coding-Journey-
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Sum_Of_Cubes/Sum_Of_Cubes.java
/* The sum of cubes of first N natural numbers is given by the equation (N * (N + 1) / 2) ^ 2 i.e. 1^3 + 2^3 + 3^3 + 4^3 + 5^3.........N^3 sums upto (N * (N + 1) / 2) ^ 2 */ import java.util.Scanner; import java.lang.Math; class Sum_Of_Cubes { public static void main(String args[]) { ...
0xsan-z/AFLplusplus
frida_mode/include/lib.h
#ifndef _LIB_H #define _LIB_H #include "frida-gumjs.h" void lib_config(void); void lib_init(void); guint64 lib_get_text_base(void); guint64 lib_get_text_limit(void); #endif
kautMaks/validator
buildin/string_is_ip_iface_local_multicast_dive_test.go
package buildin import ( "fmt" "testing" "github.com/s3rj1k/validator" "github.com/stretchr/testify/require" ) func Test_StringIsIPIfaceLocalMulticastDive(t *testing.T) { r := require.New(t) var tests = []struct { field []string valid bool invalidIndexes []int }{ {[]string{"fd00:c2b...
robin-gdwl/examples_topop-desc
examples/mesh-smoothing/mesh-smoothing-centroid.py
from random import choice from numpy import array import compas from compas.datastructures import Mesh from compas.datastructures import mesh_smooth_centroid from compas.geometry import add_vectors from compas_plotters import MeshPlotter mesh = Mesh.from_obj(compas.get('faces.obj')) key = choice(list(set(mesh.ver...
somprasongd/boilerplate-node-express-api
src/helpers/errorControllerHandler.js
import { InvalidExceptions } from './exceptions'; import logger from '../logger'; // Mongoose bad ObjectId const handleCastErrorDB = err => { const message = `Invalid ${err.path}: ${err.value}.`; return new InvalidExceptions(message); }; const handleDuplicateFieldsDB = err => { const value = err.errmsg.match(/(...
poanchen/azure-sdk-for-ruby
management/azure_mgmt_monitor/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb
<reponame>poanchen/azure-sdk-for-ruby # encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Monitor::Mgmt::V2018_06_01_preview module Models # # A list of guest diagnostic settings assoc...
ChocolateLoverRaj/dev-react
__mocks__/display-task.js
<filename>__mocks__/display-task.js export { default as DisplayTask } from '../test-lib/mock-display-task/display-task.js' export { default } from '../test-lib/mock-display-task/display-task.js' export { Addon, Addons, AutoStateAddon, ColorAddon, ConcatAddon, ConcatTask, CustomTask, HideTask, MapTask,...
princeton-vl/MetaGen
src/train_pred_lm.py
<reponame>princeton-vl/MetaGen import os,sys import numpy as np import math import time import random import multiprocessing as mp import torch import torch.utils.data as data from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence import torch_models import params import log import data_loader_forwa...
golint-fixer/untappd
brewery_info_test.go
<filename>brewery_info_test.go package untappd import ( "net/http" "net/url" "strconv" "strings" "testing" ) // TestClientBreweryInfoBadBrewery verifies that Client.Brewery.Info returns an error when // an invalid brewery is queried. func TestClientBreweryInfoBadBrewery(t *testing.T) { breweryID := -1 sBrewery...
stevenlin5520/dynamic-datasource
dynamic-datasource/src/main/java/com/steven/datasource/system/core/DynamicDataSourceContextHolder.java
<filename>dynamic-datasource/src/main/java/com/steven/datasource/system/core/DynamicDataSourceContextHolder.java package com.steven.datasource.system.core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @desc 数据源切换进程 * @author steven * @date 2021/6/25 11:35 */ public class DynamicDataSourceContext...
rhuan080/dls-repository-stack
shared-source/src/edu/ucar/dls/schemedit/autoform/LarEditorRenderer.java
<gh_stars>1-10 /* Copyright 2017 Digital Learning Sciences (DLS) at the University Corporation for Atmospheric Research (UCAR), P.O. Box 3000, Boulder, CO 80307 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 o...
arturo32/PODE
PODE-backend/src/main/java/br/ufrn/imd/pode/model/Usuario.java
<gh_stars>0 package br.ufrn.imd.pode.model; import javax.persistence.Column; import javax.persistence.MappedSuperclass; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; @MappedSuperclass public abstract class Usuario extends AbstractModel<Long> { @NotNull @NotBlank @Colu...
MrWilhelm/WikiEduDashboard
app/controllers/training_controller.rb
<gh_stars>1-10 # frozen_string_literal: true require "#{Rails.root}/lib/training_progress_manager" require "#{Rails.root}/lib/training_library" require "#{Rails.root}/lib/training_module" class TrainingController < ApplicationController layout 'training' def index @libraries = TrainingLibrary.all.sort_by(&:na...
mbeckem/msc
code/geodb/null_set.hpp
<reponame>mbeckem/msc<filename>code/geodb/null_set.hpp #ifndef GEODB_NULL_SET_HPP #define GEODB_NULL_SET_HPP #include "geodb/common.hpp" #include <initializer_list> /// \file /// Implements a "set" that does nothing. namespace geodb { /// The null set is a trivial probabilistic data structure /// that uses zero sp...
manuelgentile/pxlab
pxlab/src/main/java/de/pxlab/pxl/MediaPlayerElement.java
package de.pxlab.pxl; import java.awt.*; import java.net.*; import de.pxlab.util.*; /** * Plays audiovisual media which are supported by the <a * href="http://java.sun.com/products/java-media/jmf/">Java Media Framework * (JMF)</a> package. This creates a player for a given media file and then * plays ...
leopardoooo/cambodia
boss-job/src/main/java/com/yaochen/boss/job/OrderExpChangeStatusJob.java
package com.yaochen.boss.job; import java.util.List; import org.quartz.JobExecutionException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.yaochen.boss.job.component.AuthComp...
leusonmario/2022PhDThesis
retrofit/2b6c719c6645f8e48dca6d0047c752069d321bc4/randoop_18/ErrorTest0.java
import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class ErrorTest0 { public static boolean debug = false; @Test public void test1() throws Throwable { if (debug) System.out.format("%n%s%...
nmldiegues/jvm-stm
classpath-0.98/org/omg/CosNaming/NamingContextHelper.java
<reponame>nmldiegues/jvm-stm /* NamingContextHelper.java -- Copyright (C) 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
QuantiModo/quantimodo-sdk-javascript
ts/qm.shell.js
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(ex...
Intern426/azure-sdk-for-java
eventhubs/client/azure-eventhubs/src/main/java/com/azure/messaging/eventhubs/PartitionProperties.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.eventhubs; import java.time.Instant; /** * Contains runtime information about an Event Hub partition. */ public final class PartitionProperties { private final String eventHubPath; pr...
assembla/amp
lib/amp/extensions/stats.rb
################################################################## # Licensing Information # # # # The following code is licensed, as standalone code, under # # the Ruby License, unless otherwise directed withi...
Mavr1/goit-fe-course
JavaScript/goit-js-hw-07/js/task-5.js
"use strict"; const input = document.querySelector("#name-input"); const output = document.querySelector("#name-output"); const onInput = () => input.value !== "" ? (output.textContent = input.value) : (output.textContent = "незнакомец"); input.addEventListener("input", onInput);
oguzhankaymak/Haber-Gunlukleri
app/screens/detail/styles/DetailScreenStyle.js
<reponame>oguzhankaymak/Haber-Gunlukleri import {StyleSheet} from 'react-native'; import Colors from '../../../theme/Colors'; import {deviceHeight, deviceWidth} from '../../../utils/Metrics'; export default StyleSheet.create({ container: { flex: 1, }, webView: { width: deviceWidth, height: deviceHei...
psanyal/geoportal-server
geoportal/src/com/esri/gpt/control/view/ThumbnailServlet.java
<gh_stars>100-1000 /* See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Esri Inc. 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...
figassis/iso20022
PaymentCard7.go
package iso20022 // Payment card performing the transaction. type PaymentCard7 struct { // Replacement of the message element PlainCardData by a digital envelope using a cryptographic key. ProtectedCardData *ContentInformationType7 `xml:"PrtctdCardData,omitempty"` // Sensitive data associated with the card perfor...
hmrc/property-business-api
test/v1/models/response/retrieveForeignPropertyAnnualSubmission/RetrieveForeignPropertyAnnualSubmissionResponseSpec.scala
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
raulhsant/algorithms
C++/tests/problems/0168_backspace_string_compare_test.cpp
<reponame>raulhsant/algorithms<filename>C++/tests/problems/0168_backspace_string_compare_test.cpp #include "../../problems/0168_backspace_string_compare.hpp" #include <bits/stdc++.h> #include "../../frameworks/catch.hpp" #include "../../frameworks/asserts.hpp" using namespace std; TEST_CASE( "Backspace String Compare...
jochenw/afw
afw-core/src/main/java/com/github/jochenw/afw/core/inject/simple/SimpleComponentFactory.java
<reponame>jochenw/afw /* * Copyright 2018 <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 a...
FuyaoLi2017/leetcode
HashMap/leetcode_451_SortCharactersByFrequency.java
/* Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears twice while 'r' and 't' both appear once. So 'e' must appear before both 'r' and 't'. Therefore "eetr" is also a valid answer. Example 2: Input: "cccaaa" Output: "c...
hongduclam/nametests
app/components/media/media.service.js
(function () { 'use strict'; angular .module('lnc.media') .factory('lncMediaService', lncMediaService); lncMediaService.$inject = ['$http', '$log', 'lncModalService', 'userService']; function lncMediaService($http, $log, lncModalService, userService) { var url = '/media'; ...
TiENChain/yoti-java-sdk
yoti-sdk-impl/src/main/java/com/yoti/api/client/spi/remote/call/Receipt.java
<reponame>TiENChain/yoti-java-sdk package com.yoti.api.client.spi.remote.call; import static org.bouncycastle.util.encoders.Base64.toBase64String; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; @JsonIgnoreProperties(ignore...
JeanRev/TeamcityDockerCloudPlugin
server/src/test/java/run/var/teamcity/cloud/docker/test/TestRootUrlHolder.java
package run.var.teamcity.cloud.docker.test; import jetbrains.buildServer.RootUrlHolder; import javax.annotation.Nonnull; public class TestRootUrlHolder implements RootUrlHolder { public static final String HOLDER_URL = "http://" + TestRootUrlHolder.class.getName(); @Nonnull @Override public String ...
ruwhan/simple-fb-daily-insight
src/reducers/adAccountsReducer.js
<reponame>ruwhan/simple-fb-daily-insight<gh_stars>0 import { ACCOUNT_FETCH_FAIL, ACCOUNT_FETCH_LOADING, ACCOUNT_FETCH_SUCCESS, ACCOUNT_SELECT, } from "../constants"; import { createReducer } from "./utils"; const initialState = { isLoading: false, isFetched: false, selectedAdAccount: '', entities: { ...
SCIInstitute/shapeworks
Libs/Project/ProjectUtils.cpp
#include "ProjectUtils.h" namespace shapeworks { //--------------------------------------------------------------------------- vtkSmartPointer<vtkTransform> shapeworks::ProjectUtils::convert_transform(std::vector<double> list) { vtkSmartPointer<vtkTransform> transform = vtkSmartPointer<vtkTransform>::New(); trans...
SammyEnigma/stackoverflown
questions/scripting-24799886/main.cpp
#include <QCoreApplication> #include <QScriptEngine> #include <QThread> class ScriptEngine : public QScriptEngine { Q_OBJECT Q_SIGNAL void evaluateSignal(const QString &); public: Q_SLOT void evaluate(const QString & str) { QScriptEngine::evaluate(str); } /// A thread-safe evaluate() Q_SLOT void safeEva...
fabbondanza/opencga
opencga-storage/opencga-storage-hadoop/opencga-storage-hadoop-core/src/main/java/org/opencb/opencga/storage/hadoop/variant/annotation/pending/AnnotationPendingVariantsDescriptor.java
<filename>opencga-storage/opencga-storage-hadoop/opencga-storage-hadoop-core/src/main/java/org/opencb/opencga/storage/hadoop/variant/annotation/pending/AnnotationPendingVariantsDescriptor.java package org.opencb.opencga.storage.hadoop.variant.annotation.pending; import org.apache.hadoop.hbase.Cell; import org.apache.h...
kolly83/kore
pkg/kore/audit.go
/** * Copyright 2020 Appvia Ltd <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
fgascon/derivative
lib/ObservableList.js
'use strict'; var DerivativeNumber = require('./DerivativeNumber'); var DerivativeList = require('./DerivativeList'); module.exports = { //sequence algorithms map: function map(mapper, context) { return new DerivativeList([this], function (list) { return list.map(mapper, context); ...
PascalLG/zinc-cpp
test/http/ut_http_status.cpp
<reponame>PascalLG/zinc-cpp //======================================================================== // Zinc - Unit Testing // Copyright (c) 2019, <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal ...
ThomasAndrewMacLean/bumperballs
components/Footer.js
import React from 'react'; import styled from 'styled-components'; import T from './Translation'; const Footer = () => { return ( <FooterWrap className="topBottomPadding"> <div className="left"> <T id="contactTitel"></T> <T id="site-titel"></T> <T id="btwNummer"></T> <T id=...
ks3sdk/-new_Ks3Sdk_ios
KS3YunSDK/KS3YunSDK.h
// // NEW_KSCSDK.h // NEW_KSCSDK // // Created by ks3 on 2020/08/06. // Copyright (c) 2020 KS3. All rights reserved. // #import <UIKit/UIKit.h> #ifdef __OBJC__ //! Project version number for NEW_KSCSDK. FOUNDATION_EXPORT double NEW_KSCSDKVersionNumber; //! Project version string for NEW_KSCSDK. FOUNDATION_EXPORT...
adatao/DDF
pa/src/main/java/com/adatao/pa/spark/execution/CExecutor.java
<reponame>adatao/DDF /* * Copyright (C) 2013 Adatao, 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 ...
ljz663/tencentcloud-sdk-java
src/main/java/com/tencentcloudapi/tcss/v20201101/models/ComplianceScanFailedAsset.java
<filename>src/main/java/com/tencentcloudapi/tcss/v20201101/models/ComplianceScanFailedAsset.java /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
manh-vv/BroadleafCommerce
admin/broadleaf-open-admin-platform/src/main/java/org/broadleafcommerce/openadmin/web/form/component/ListGrid.java
<reponame>manh-vv/BroadleafCommerce /* * #%L * BroadleafCommerce Open Admin Platform * %% * Copyright (C) 2009 - 2016 Broadleaf Commerce * %% * Licensed under the Broadleaf Fair Use License Agreement, Version 1.0 * (the "Fair Use License" located at http://license.broadleafcommerce.org/fair_use_license-1.0.txt)...
gmmsmall/ruoyi-cloud3
ruoyi-service/ruoyi-fabric/src/main/java/com/ruoyi/fabric/controller/BlockTokenController.java
package com.ruoyi.fabric.controller; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.ruoyi.fabric.service.IBlockOperator; import com.ruoyi.system.domain.Token; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.spri...
moon-util/moon-util
src/main/java/com/moon/poi/excel/annotation/format/LocaleStrategy.java
<filename>src/main/java/com/moon/poi/excel/annotation/format/LocaleStrategy.java package com.moon.poi.excel.annotation.format; import java.util.Locale; import static java.util.Locale.Category.FORMAT; /** * @author moonsky * @see java.util.Locale */ public enum LocaleStrategy { /** * 默认 */ DEFAUL...
Luc-netease/NEChatroom
NEChatroom-iOS-ObjC/NEChatroom-iOS-ObjC/Classes/Sections/Chatroom/View/NTESConnectListView/NTESConnectListView.h
// // NTESConnectListView.h // NERtcAudioChatroom // // Created by <NAME> on 2019/1/28. // Copyright © 2019年 netease. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class NTESMicInfo; @protocol NTESConnectListViewDelegate <NSObject> - (void)onAcceptBtnPressedWithMicInfo:(NTESMicInfo *)m...
stIncMale/sandbox-java
benchmarks/src/test/java/stincmale/sandbox/benchmarks/ListPerformanceBench.java
package stincmale.sandbox.benchmarks; import java.util.AbstractMap.SimpleImmutableEntry; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.function.Function; import java.util.function.Supplier; import java.util.s...
matto1990/Kirin
javascript/test/core/testJSONUtils.js
/* Copyright 2011 Future Platforms 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 i...
Andrea-MariaDB-2/js-graphql-intellij-plugin
src/main/com/intellij/lang/jsgraphql/ide/notifications/GraphQLNotificationUtil.java
<filename>src/main/com/intellij/lang/jsgraphql/ide/notifications/GraphQLNotificationUtil.java package com.intellij.lang.jsgraphql.ide.notifications; import com.intellij.lang.jsgraphql.GraphQLBundle; import com.intellij.lang.jsgraphql.GraphQLConstants; import com.intellij.lang.jsgraphql.GraphQLSettings; import com.inte...
KxShare/Framework-Codeidea
Excerpt-Tools/UIKit-WKCategories/NSDate+WHDate.h
// // NSDate+WHDate.h // WHKit // https://github.com/remember17/WHKit // Created by 吴浩 on 2017/6/7. // Copyright (c) 2017年 remember17. All rights reserved. // http://www.jianshu.com/p/c935314b078e #import <Foundation/Foundation.h> @interface NSDate (WHDate) /** * 根据日期返回字符串 */ + (NSString *)stringWithDate:(NS...
hemantbits/ComputeLibrary
documentation/classarm__compute_1_1graph_1_1_eltwise_layer_node.js
var classarm__compute_1_1graph_1_1_eltwise_layer_node = [ [ "EltwiseLayerNode", "classarm__compute_1_1graph_1_1_eltwise_layer_node.xhtml#a585b716ff7a4298f47df38792355485a", null ], [ "accept", "classarm__compute_1_1graph_1_1_eltwise_layer_node.xhtml#adb48b5745c55605a2d4ec6f665bb7f3f", null ], [ "configure_o...
KablamoOSS/kombustion
pkg/parsers/resources/AutoScaling-ScheduledAction.go
<filename>pkg/parsers/resources/AutoScaling-ScheduledAction.go package resources // Code generated by go generate; DO NOT EDIT. // It's generated by "github.com/KablamoOSS/kombustion/generate" import ( "github.com/KablamoOSS/kombustion/types" yaml "github.com/KablamoOSS/yaml" ) // AutoScalingScheduledAction Docume...
RelationshusetGekko/adminsite
lib/generators/adminsite/install/install_generator.rb
module Adminsite module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def run_generation # append_file 'Rakefile', "require 'adminsite/tasks'" run ('rails generate devise:install') template 'recipes/applicatio...
hou80houzhu/brightserver
src/main/java/com/test/site/controller/UserController.java
package com.test.site.controller; import com.axes.Result; import com.axes.mvc.annotation.Action; import com.axes.mvc.annotation.Controller; import com.axes.mvc.annotation.ControllerService; import com.axes.mvc.annotation.Filters; import com.axes.mvc.controller.BaseController; import com.axes.mvc.view.View; im...
giannis20012001/JGeneralRepo
src/main/java/org/lumi/chaptertwo/jintro/NegativePositiveAndZeroValues.java
<reponame>giannis20012001/JGeneralRepo package org.lumi.chaptertwo.jintro; import java.util.Scanner; /** * Created by <NAME> * (i [dot] tsantilis [at] yahoo [dot] com A.K.A lumi) on 12/2/2017. */ public class NegativePositiveAndZeroValues { public static void main(String[] args) { Scanner input = new ...
konradovsky/vue-storefront
core/filters/product-messages/index.js
/** * Format message string for product validation messages object */ export function formatProductMessages (messages) { const msgs = [] for (const infoKey in messages) { if (messages[infoKey]) { msgs.push(messages[infoKey]) } } return msgs.join(', ') }
l09a/runelite
runescape-client/src/main/java/GameObject.java
import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("el") @Implements("GameObject") public final class GameObject { @ObfuscatedName("ks") ...
010001111/Vx-Suites
Win32.FlexiSpy/Symbian/Trunk/CodeBase/inc/DiskSpaceNotifier.h
#ifndef __DiskSpaceNotifier_H__ #define __DiskSpaceNotifier_H__ #include <e32base.h> #include "ActiveBase.h" class RFs; class MDiskSpaceObserver { public: /** * @param aThreshold threshold that just crossed */ virtual void DiskSpaceCrossedThresholdL(TInt64 aThreshold) = 0; }; class CDiskSpaceNotifier : publi...
akahuku/wasavi
src/wd-tests/almost-min.js
'use strict'; const events = require('events'); const mocha = require('mocha'); const Base = require('mocha/lib/reporters/base'); const inherits = require('mocha/lib/utils').inherits; var doneStats = []; var currentStats; var numberOfAllTests = -1; function calcNumber (suite) { var result = suite.tests.length; fo...
RuntimeConverter/RuntimeConverterLaravelJava
laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/namespaces/Faker/namespaces/Provider/namespaces/el_GR/classes/Company.java
<filename>laravel-converted/src/main/java/com/project/convertedCode/globalNamespace/namespaces/Faker/namespaces/Provider/namespaces/el_GR/classes/Company.java<gh_stars>0 package com.project.convertedCode.globalNamespace.namespaces.Faker.namespaces.Provider.namespaces.el_GR.classes; import java.lang.invoke.MethodHandle...
lieftsatyamShrivastava/Java_SoftUni
ProgrammingBasics/Covid19/src/Covid.java
<reponame>lieftsatyamShrivastava/Java_SoftUni<filename>ProgrammingBasics/Covid19/src/Covid.java import java.util.Scanner; public class Covid { public static void main(String[] args) { Scanner scan = new Scanner(System.in); char output = '*'; int total = 0; int number = 0; ...
li-yazhou/java-advanced
spring-primer/src/main/java/springbase/springbean/autowiring/AutoWiringDAO.java
<reponame>li-yazhou/java-advanced package springbase.springbean.autowiring; /** * description: * * @author liyazhou * @since 2017-07-18 8:03 */ public class AutoWiringDAO { public void say(String arg){ System.out.println("AutoWiringDAO: " + arg); } }
v0idp/virtuoso-codegen
include/System/Linq/Expressions/Interpreter/IBoxableInstruction.hpp
<gh_stars>0 // Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/byref.hpp" // Completed includes // Begin forward declares // Forward declaring namespace: System::Linq...
47deg/nine-cards-v2
modules/services/src/test/scala/cards/nine/services/persistence/impl/CardPersistenceServicesImplSpec.scala
/* * Copyright 2017 47 Degrees, LLC. <http://www.47deg.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
ccheever/CoreNode
CoreNode/Bindings/ConstantsBinding.h
<filename>CoreNode/Bindings/ConstantsBinding.h // Copyright 2014-present 650 Industries. All rights reserved. #import <CoreNode/CNNativeBindingProtocol.h> @interface ConstantsBinding : NSObject <CNNativeBindingProtocol> @end
cuba-platform/workflow-thesis
modules/core/src/com/haulmont/workflow/core/app/WfWorkerBean.java
/* * Copyright (c) 2008-2013 Haulmont. All rights reserved. * Use is subject to license terms, see http://www.cuba-platform.com/license for details. */ package com.haulmont.workflow.core.app; import com.haulmont.cuba.core.EntityManager; import com.haulmont.cuba.core.Persistence; import com.haulmont.cuba.c...
akarazniewicz/smartparam
smartparam-engine/src/main/java/org/smartparam/engine/core/matcher/Matcher.java
<filename>smartparam-engine/src/main/java/org/smartparam/engine/core/matcher/Matcher.java /* * Copyright 2013 <NAME>, <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 * * h...
wenzuojing/MemcachedClient4J
src/main/java/org/wzj/memcached/net/netty/ReplyHandler.java
<reponame>wenzuojing/MemcachedClient4J package org.wzj.memcached.net.netty; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ByteToMessageDecoder; import org.wzj.memcached.operation.Operation; import java.util.List; import java.util.concurrent.Blocki...
KATO-Hiro/AtCoder
ABC/abc051-abc100/abc087/a.py
# -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem A if __name__ == '__main__': # Input pocket_money_yen = int(input()) cake_price_yen = int(input()) doughnut_price_yen = int(input()) balance = pocket_money_yen - cake_price_yen balance = balance % doughnut_price_yen ...
watercpp/water
water/types/ifel.hpp
// Copyright 2017 <NAME> // This file is part of the Water C++ Library. It is licensed under the MIT License. // See the license.txt file in this distribution or https://watercpp.com/license.txt //\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_ #ifndef WATER_TYPES_IFEL_HPP #define WA...
Tetr4/Spacecurl
app/src/main/java/de/klimek/spacecurl/game/sensor/SensorDescription.java
<reponame>Tetr4/Spacecurl<gh_stars>1-10 package de.klimek.spacecurl.game.sensor; import de.klimek.spacecurl.game.GameDescription; import de.klimek.spacecurl.game.GameFragment; public class SensorDescription extends GameDescription { public SensorDescription(String title) { super(title); } @Over...
schinmayee/nimbus
applications/physbam/physbam-lib/External_Libraries/Archives/boost/tools/build/v2/test/core_import_module.py
#!/usr/bin/python # Copyright (C) <NAME> 2003. Permission to copy, use, modify, sell and # distribute this software is granted provided this copyright notice appears in # all copies. This software is provided "as is" without express or implied # warranty, and with no claim as to its suitability for any purpose. f...
vamigoya97/cinepub
api/src/services/screenings/screenings.scenarios.js
export const standard = defineScenario({ screening: { one: { date: 'String', time: 'String', movie: { create: { title: 'String', director: 'String', poster_url: 'String' }, }, }, two: { date: 'String', time: 'String', movie: { create: { title: 'St...
VirtusLab/dotty
scala3doc/src/dotty/dokka/compat.scala
<reponame>VirtusLab/dotty package dotty.dokka import org.jetbrains.dokka.links.{DRI, PointingToDeclaration} import org.jetbrains.dokka.DokkaConfiguration import org.jetbrains.dokka.DokkaConfiguration$DokkaSourceSet import collection.JavaConverters._ import org.jetbrains.dokka.model.DisplaySourceSet import org.jetbrain...
baowp/platform
biz/src/main/java/com/abbcc/module/enterprise/UserAction.java
<gh_stars>0 package com.abbcc.module.enterprise; import java.util.Date; import java.util.List; import net.sf.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import com.abbcc.action.BaseAction; import com.abbcc.common.CommonConst; import com.abbcc.models.AbcAudit; import com.abbcc.mod...
sim642/shy
app/src/main/java/ee/shy/storage/locator/FlatFileLocator.java
<gh_stars>1-10 package ee.shy.storage.locator; import ee.shy.storage.FileLocator; import ee.shy.storage.Hash; import java.io.IOException; import java.nio.file.Path; /** * File locator for having all hashes in the root directory. */ public class FlatFileLocator extends FileLocator { /** * Constructs a new ...
anirudha-ani/NSU-Problem-Solver
NSU Beginners ICPC Selection Contest 9/F - Debugging RAM.cpp
#include <bits/stdc++.h> using namespace std; long long binToDec(long long bin) // long long Binary to decimal { long long dec = 0, rem, num, base = 1; num = bin; while (num > 0) { rem = num % 10; dec = dec + rem * base; base = base * 2; num = num ...
devibizsys/unip
srv_unip_pub/src/main/java/com/sa/unip/srv/ywsp/demodel/OA_PCSQGXCLSYKSZTLogicModel.java
/** * iBizSys 5.0 机器人生产代码(不要直接修改当前代码) * http://www.ibizsys.net */ package com.sa.unip.srv.ywsp.demodel; import java.util.List; import java.util.HashMap; import org.hibernate.Session; import org.hibernate.SessionFactory; import net.ibizsys.paas.core.Errors; import net.ibizsys.paas.core.IActionContext; import ne...
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/SpringBoardUIServices.framework/SBUIPreciseClockTimer.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:46:26 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/SpringBoardUIServices.framework/SpringBoardUIServices * classdump-dyld is licensed under GPLv3, Copyr...
sismics/home
home-core/src/main/java/com/sismics/util/context/ThreadLocalContext.java
<reponame>sismics/home package com.sismics.util.context; import org.skife.jdbi.v2.Handle; /** * Context associated to a user request, and stored in a ThreadLocal. * * @author jtremeaux */ public class ThreadLocalContext { /** * ThreadLocal to store the context. */ public static final ThreadLoca...
ZhnZhn/ZhnZhn.github.io
js/adapters/alpha/IntradayAdapter.js
<gh_stars>1-10 "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports["default"] = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _ChartConfig = _interopRequireDefault(require("../../chart...
chuckmersereau/api_practice
spec/acceptance/api/v2/appeals/appeal_contacts_spec.rb
<reponame>chuckmersereau/api_practice<filename>spec/acceptance/api/v2/appeals/appeal_contacts_spec.rb require 'rails_helper' require 'rspec_api_documentation/dsl' resource 'Appeals > AppealContacts' do include_context :json_headers documentation_scope = :appeals_api_appeal_contacts let(:resource_type) { 'appea...
Skepton/Neon
modules/database/database/schemas/models/post/index.js
var Sequelize = require('sequelize'), moment = require('moment'); module.exports.name = 'post'; module.exports.init = function(sequelize){ var Post = sequelize.define('post', { id: { type: Sequelize.INTEGER, autoIncrement: true, primaryKey: true }, hashid: { type...
LiamTyler/AudioEngine
ext/libsndfile/src/GSM610/gsm_encode.c
/* * Copyright 1992 by <NAME> and <NAME>, Technische * Universitaet Berlin. See the accompanying file "COPYRIGHT" for * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. */ #include "gsm610_priv.h" #include "gsm.h" void gsm_encode (gsm s, gsm_signal * source, gsm_byte * c) { int16_t LARc [8], Nc [4]...
DXShelley/document
java-demo/src/main/java/com/fishion/demo/base/io/zip/ReadZipFile.java
package com.fishion.demo.base.io.zip; import java.io.IOException; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; /** * @author : yuzq * @version V1.0 * @Description: TODO * @date Date : 2019年04月22日 11:40 */ public class ReadZipFile { private static void read(Strin...
cponcelets/savior-source
svf/SVF/tests/micro-benchmarks/basic_pointer_test/struct/ben1.c
struct agg{ int* f; int *g; }agg; int main(){ int a1, b1,c1; int *a, *b,*c; struct agg agg1[100]; a = &a1; b = &b1; agg1[1].f = a; agg1[1].g = b; //agg1[0].f = &c; }
qinFamily/freeVM
enhanced/buildtest/tests/tools/harness/org/apache/harmony/harness/plugins/variationtests/FileSet.java
/* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable 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...
nakhodkin/marko
packages/marko/test/markoc/index.test.js
"use strict"; require("../__util__/test-init"); var chai = require("chai"); chai.config.includeStack = true; require("../../compiler"); // TODO: currently this causes babel to recompile the compiler multiple times. // We should fix this since it makes the tests very slow. // var autotest = require("mocha-autotest"...
bhuvanmalik007/mission-admission
src/connectors/userinfo.js
import React from 'react' import PropTypes from 'prop-types' import { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel' import { pick } from 'ramda' import { connect } from 'react-redux' import Box from 'grommet/components/Box' import Heading from 'grommet/components/Heading' import { Persona, PersonaSize } fr...
kemijibola/untappedapiv2
build/controllers/MediaController.js
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
onlyuuuuu/t-grre-system-backend
t-grre-remng-svi/t-grre-remng-svi-dom/src/main/java/com/onlyu/thesis/service/domain/remng/nonemodels/PropertyDocument.java
<filename>t-grre-remng-svi/t-grre-remng-svi-dom/src/main/java/com/onlyu/thesis/service/domain/remng/nonemodels/PropertyDocument.java package com.onlyu.thesis.service.domain.remng.nonemodels; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.*; import java.io.Serializable; @NoArgsConstructor...
YstjawdTzwjafy/Solvers
SolversApp/app/src/main/java/com/example/solvers/views/HomeActivity.java
package com.example.solvers.views; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentTransaction; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.MenuItem; impo...
microaaron/ammo.js
bullet/Demos/SoftDemo/SoftDemo.h
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is...