repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
AppCamps/TeachingPlatform
frontend/containers/posts/index.js
import { connect } from "react-redux"; import Posts from "../../components/posts"; import { fetchPosts } from "../../actions/posts"; import { postsSelector, postsPaginationSelector } from "../../selectors/posts"; import { userSelector } from "../../selectors/shared/user"; export function mapStateToProps(state) { co...
tgodzik/intellij-community
platform/platform-tests/testSrc/com/intellij/psi/search/scope/packageSet/PatternRegexpConvertorTest.java
<gh_stars>1-10 // Copyright 2000-2019 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.psi.search.scope.packageSet; import junit.framework.TestCase; public class PatternRegexpConvertorTest extends TestCase { public void test...
jonnatanSoftware/lutece-core-5.1.2-master
src/java/fr/paris/lutece/portal/business/user/AdminUserHome.java
<filename>src/java/fr/paris/lutece/portal/business/user/AdminUserHome.java<gh_stars>0 /* * Copyright (c) 2002-2014, <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. Redistr...
altermarkive/training
algorithms/code/leetcode/lc344_reverse_string/LC344ReverseStringTests.java
<gh_stars>0 package leetcode.lc344_reverse_string; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertArrayEquals; public final class LC344ReverseStringTests { @Test public void testExample() throws Exception { char[] s = { 'h', 'e', 'l', 'l', 'o' }; new L...
BerciTheBeast/chess-api
node_modules/chess-ai-kong/src/monitoring/monitoring.js
'use strict'; var cutoffs = []; var consoleTree = []; var nbNodeSearched = 0; var nbCutoffs = 0; var watches = require('./watches'); //Settings var enabled = false; function isEnabled() { return enabled; } function setEnabled(enabledFlag) { if(enabledFlag === undefined || typeof enabledFlag !== 'boolean') {...
omkarshinde221/etherpad
src/node_modules/etherpad-require-kernel/mock_require.js
<reponame>omkarshinde221/etherpad<gh_stars>10-100 /*! require-kernel Created by <NAME> on 01/04/11. Released to the Public Domain on 17/01/12. */ var fs = require('fs'); var pathutil = require('path'); var urlutil = require('url'); var events = require('events'); var kernelPath = pathutil.join(__dirname, 'ke...
mikevegap/wicketinaction
src/main/java/wicket/in/action/common/Cheese.java
<gh_stars>0 package wicket.in.action.common; import java.io.Serializable; public final class Cheese implements Serializable { private String description; private String name; private double price; public Cheese() { } public Cheese(String name, String description, double price) { super(); thi...
guodingfang/RuoYi-Vue
wisdomSite-ui/src/api/people/workerLib.js
<reponame>guodingfang/RuoYi-Vue import request from '@/utils/request' // 查询建筑工人库列表 export function getPtable(query) { return request({ url: '/ws/teamPersonLibrary/list', method: 'get', params: query }) } // 详情 export function detailWork(id) { return request({ url: '/ws/teamPersonLibrary/' + id, ...
UnderflowDevelopment/RiseClient
src/main/java/net/minecraft/client/renderer/entity/layers/LayerArmorBase.java
<filename>src/main/java/net/minecraft/client/renderer/entity/layers/LayerArmorBase.java<gh_stars>1-10 package net.minecraft.client.renderer.entity.layers; import com.google.common.collect.Maps; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client...
zhouhaifeng/vpe
src/frr/pceplib/pcep_utils_logging.c
/* * This file is part of the PCEPlib, a PCEP protocol library. * * Copyright (C) 2020 Volta Networks https://voltanet.io/ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either ...
Lowkhee/VeganOption
java/squeek/veganoption/integration/bop/BiomesOPlenty.java
<filename>java/squeek/veganoption/integration/bop/BiomesOPlenty.java package squeek.veganoption.integration.bop; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; import squeek.veganoption.content.ContentHelper; import squeek.veganoption.integration.IntegratorBase; public class Bio...
datamarts/prostore
dtm-jdbc-driver/src/main/java/ru/datamart/prostore/jdbc/core/SqlParser.java
/* * Copyright © 2022 DATAMART LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
monowar/mCerebrum-Library
system/src/main/java/org/md2k/mcerebrum/system/cerebralcortexwebapi/models/stream/DataDescriptor.java
<reponame>monowar/mCerebrum-Library /* * Copyright (c) 2018, The University of Memphis, MD2K Center of Excellence * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of...
alantao5056/USACO_Silver
2019/December/milkvisits/Milkvisits2.java
<reponame>alantao5056/USACO_Silver import java.io.IOException; import java.io.FileWriter; import java.io.PrintWriter; import java.nio.file.Files; import java.nio.file.Paths; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; public class Milkvisits2 { private static int N; priva...
asaaki/ArangoDB
js/common/tests/shell-general-graph.js
<reponame>asaaki/ArangoDB /*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true */ /*global require, assertEqual, assertTrue, assertFalse, fail */ //////////////////////////////////////////////////////////////////////////////// /// @brief test the general-graph class /// /// @file /// /// DISCLAIMER /// /// Copyr...
masgyw/individual-study
glearn/algorithm/src/main/java/cn/gyw/glearn/algorithm/arrays/UpsetAnArray.java
<filename>glearn/algorithm/src/main/java/cn/gyw/glearn/algorithm/arrays/UpsetAnArray.java package cn.gyw.glearn.algorithm.arrays; /** * 打乱一个数组 * */ public class UpsetAnArray { }
mtunganati/oneops
display/app/models/transistor.rb
<filename>display/app/models/transistor.rb class Transistor < ActiveResource::Base self.site = Settings.transistor_site self.prefix = '/transistor/rest' self.element_name = '' self.include_format_in_path = false self.timeout = Settings.transistor_http...
SonicRoshan/Velocity
global/clients/email_verification_client.go
<gh_stars>1-10 package clients import ( "context" "github.com/SonicRoshan/Velocity/global/config" proto "github.com/SonicRoshan/Velocity/services/email-verification-srv/proto" micro "github.com/micro/go-micro" "github.com/pkg/errors" ) //NewEmailVerificationClient is used to make a email verification Client fun...
efiring/GSW-C
toolbox/gsw_t_freezing_first_derivatives_poly.c
/* !========================================================================== elemental subroutine gsw_t_freezing_first_derivatives_poly (sa, p, & saturation_fraction, tfreezing_sa, tfreezing_p) !========================================================================== ! ! Calculates the ...
AaronFriel/pulumi-google-native
sdk/python/pulumi_google_native/websecurityscanner/v1/_inputs.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
wandora-team/zmpp-wandora
src/org/zmpp/encoding/AlphabetTableV2.java
/* * $Id: AlphabetTableV2.java 536 2008-02-19 06:03:27Z weiju $ * * Created on 2006/01/18 * Copyright 2005-2008 by <NAME> * This file is part of The Z-machine Preservation Project (ZMPP). * * ZMPP is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
ChanTerelLy/partnerweb3
tickets_handler/management/commands/show_sessions.py
<gh_stars>0 from django.contrib.sessions.models import Session from django.core.management.base import BaseCommand, CommandError from urllib.parse import unquote class Command(BaseCommand): help = 'Decode all active sessions' def handle(self, *args, **options): sessions = Session.objects.all() ...
iliacimpoes/aws-sdk-go-v2
service/efs/api_op_CreateFileSystem.go
<filename>service/efs/api_op_CreateFileSystem.go // Code generated by smithy-go-codegen DO NOT EDIT. package efs import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/efs/types" "github.com/aws/smit...
DamieFC/chromium
components/favicon_base/select_favicon_frames.cc
// Copyright 2014 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/favicon_base/select_favicon_frames.h" #include <algorithm> #include <cmath> #include <limits> #include <map> #include <memory> #incl...
jdurand/Montreal.rb
spec/controllers/members_controller_spec.rb
# frozen_string_literal: true require "rails_helper" RSpec.describe MembersController, type: :controller do let(:user) { create(:user) } let(:member) { user.member } describe "#edit" do subject { get :edit } context "user is authenticated" do before { sign_in user } it { is_expected.to ha...
avigoldman/codsen
packages/easy-replace/dist/easy-replace.esm.js
/** * @name easy-replace * @fileoverview Replace strings with optional lookarounds, but without regexes * @version 5.0.5 * @author <NAME>, Codsen Ltd * @license MIT * {@link https://codsen.com/os/easy-replace/} */ var version$1 = "5.0.5"; const version = version$1; function astralAwareSearch(whereToLook, whatT...
Tobias-Werner/GStream
src/operator/windows/TiltingWindow.cpp
<filename>src/operator/windows/TiltingWindow.cpp // // Created by tobias on 29.08.18. // #include <operator/windows/TiltingWindow.h> #include <data_container/ListContainer.h> #include <iostream> #include "operator/windows/TiltingWindow.h" using namespace std; using namespace STREAM; using namespace chrono; STREAM::...
madogiwa/skaffold
pkg/skaffold/instrumentation/trace_test.go
<reponame>madogiwa/skaffold /* Copyright 2021 The Skaffold Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
VersiraSec/epsilon-cfw
poincare/include/poincare/binomial_coefficient.h
<filename>poincare/include/poincare/binomial_coefficient.h #ifndef POINCARE_BINOMIAL_COEFFICIENT_H #define POINCARE_BINOMIAL_COEFFICIENT_H #include <poincare/approximation_helper.h> #include <poincare/expression.h> namespace Poincare { class BinomialCoefficientNode final : public ExpressionNode { public: // TreeN...
antony-jekov/Nevix
Source/Android/Nevix/nevix/src/main/java/com/antonyjekov/nevix/player/buttons/PointingUpButton.java
package com.antonyjekov.nevix.player.buttons; import android.graphics.Path; import android.graphics.Rect; import com.antonyjekov.nevix.constants.PlayerCommand; /** * Created by <NAME> on 3/27/2014. */ public class PointingUpButton extends SphericalButton { public PointingUpButton(Rect button, int strokeWidth, ...
slusek/OG-Platform
projects/OG-Analytics/src/test/java/com/opengamma/analytics/financial/model/volatility/smile/fitting/SABRSurfaceFittingTest.java
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.model.volatility.smile.fitting; import java.util.BitSet; import org.apache.commons.lang.Validate; import org.testng.annotations.Test; imp...
jeikabu/lumberyard
dev/Code/Deprecated/Sandbox/Editor/FacialEditor/FacialSlidersDialog.h
<filename>dev/Code/Deprecated/Sandbox/Editor/FacialEditor/FacialSlidersDialog.h /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this s...
antoniodourado/sphinxbase
doc/html/structnoise__stats__s.js
var structnoise__stats__s = [ [ "comp_lambda_a", "structnoise__stats__s.html#a047be8fb044da7e3a3f45b78e9d5de23", null ], [ "comp_lambda_b", "structnoise__stats__s.html#ac3317afbf629cadc04b41c5657f0140d", null ], [ "comp_lambda_power", "structnoise__stats__s.html#a7d2228c947b372142346861adbf16acb", null ], ...
lathspell/java_test
java_test_springboot_jpa_multiple/src/main/java/de/lathspell/test/h2/H2PersonRepository.java
<gh_stars>1-10 package de.lathspell.test.h2; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface H2PersonRepository extends JpaRepository<H2Person, Long> { }
Naniroisprogrammingnow/Java-OOP-Exam-Prep
MotorcycleChampionship/src/motocrossWorldChampionship/entities/RaceImpl.java
<filename>MotorcycleChampionship/src/motocrossWorldChampionship/entities/RaceImpl.java package motocrossWorldChampionship.entities; import motocrossWorldChampionship.common.ExceptionMessages; import motocrossWorldChampionship.entities.interfaces.Race; import motocrossWorldChampionship.entities.interfaces.Rider; ...
Knutakir/KTT
source/compute_engine/vulkan/vulkan_buffer.h
<reponame>Knutakir/KTT #pragma once #include <cstring> #include <vulkan/vulkan.h> #include <compute_engine/vulkan/vulkan_physical_device.h> #include <compute_engine/vulkan/vulkan_utility.h> #include <kernel_argument/kernel_argument.h> namespace ktt { class VulkanBuffer { public: explicit VulkanBuffer(const Vulka...
panosdim/autotag
libs/tagparser/mp4/mp4tag.h
#ifndef TAG_PARSER_MP4TAG_H #define TAG_PARSER_MP4TAG_H #include "./mp4tagfield.h" #include "../fieldbasedtag.h" namespace TagParser { class Mp4Atom; class Mp4Tag; struct TAG_PARSER_EXPORT Mp4ExtendedFieldId { Mp4ExtendedFieldId(const char *mean = nullptr, const char *name = nullptr, bool updateOnly = false); ...
JoseGarciaM/TC3049
studio/node_modules/@sanity/cli/lib/util/getUpgradeCommand.js
<reponame>JoseGarciaM/TC3049 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _path = _interopRequireDefault(require("path")); var _which = _interopRequireDefault(require("which")); var _isInstalledGlobally = _interopRequireDefault(require("is-installed-gl...
gdefias/learn-java
java-basic/javalibs/src/main/java/apache_httpcomponents/asyncclient/AsynHttpClientDemo1.java
package apache_httpcomponents.asyncclient; import org.apache.http.HttpResponse; import org.apache.http.ParseException; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.nio.client.CloseableHttpAsyncClie...
qwe321q3/jvm
web-servlet3/src/main/java/servlet3/UserSerlvet.java
package servlet3; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * @author ...
ClarkResearchGroup/tensor-tools
qtensor/qtensor_op.h
/* * Copyright 2020 <NAME>, <NAME>, and <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...
michal55/WebX
app/controllers/projects_controller.rb
class ProjectsController < ApplicationController load_and_authorize_resource :except => [:create] # skip_authorize_resource :only => [:new, :index, :create] def index @project_new = Project.new @projects = Project.where(user_id: current_user.id) end def create @project_new = Project.new @proj...
csiro-wsn/freertos
core_csiro/libraries/inc/address.h
/* * Copyright (c) 2020, Commonwealth Scientific and Industrial Research * Organisation (CSIRO) ABN 41 687 119 230. * * Filename: address.h * Creation_Date: 18/06/2019 * Author: <NAME> <<EMAIL>> * * Common Address and Address related functionality for core libraries * */ #ifndef __CSIRO_CORE_ADDRESS #define...
candidomorantepelaez/ari-electron
electron/app/client/module.js
<gh_stars>0 const routes = include("app/client/routes"); module.exports = { name: "clients", routes, tables: ["clients"] }
isabella232/wireless-media-drive
linux-2.6.35.3/drivers/mxc/security/sahara2/sah_driver_interface.c
<filename>linux-2.6.35.3/drivers/mxc/security/sahara2/sah_driver_interface.c /* * Copyright (C) 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved. */ /* * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or ...
star-finder/jpf-star
expected-output/random/sll/Input_withSin1.java
package random.sll; import common.Utilities; import org.junit.Test; import gov.nasa.jpf.util.test.TestJPF; public class Input_withSin1 extends TestJPF { @Test public void test_withSin63() throws Exception { Input obj = new Input(); Node root = new Node(); Node next_82 = null; int elem_81 = -8; root.elem ...
hariPrasad525/Nitya_Annaccounting
src/com/nitya/accounter/core/reports/generators/EstimatesByJobRG.java
package com.nitya.accounter.core.reports.generators; import com.nitya.accounter.core.FinanceDate; import com.nitya.accounter.web.client.core.ClientFinanceDate; import com.nitya.accounter.web.client.ui.serverreports.EstimatesByJobServerReport; import com.nitya.accounter.web.client.ui.serverreports.ReportGridTemplate; ...
sunLeung/server
server/src/main/java/game/player/PlayerService.java
package game.player; import game.dao.PlayerDao; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.databind.JsonNode; import common.utils.HttpUtils; import common.utils.JsonUtils; import common.utils.MD5; import common.utils.SecurityUtils; import common.utils.StringUtils; p...
ScalablyTyped/SlinkyTyped
s/serverless/src/main/scala/typingsSlinky/serverless/awsProviderMod/CloudFront.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.serverless.awsProviderMod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait CloudFront extends StObject...
octoxalis/progressiVecontent
source/make/data/F_o.js
<reponame>octoxalis/progressiVecontent<gh_stars>0 /* * Functions * Naming scheme: function__s */ const A_o = require( './A_o.js' ) const U_o = require( './U_o.js' ) const C_o = require( './C_o.js' ) const OPEN_s = '[=' //: substitute__s function delimiter const CLOSE_s = '=]' //: idem module.exports = { ...
Scarinci-Hollenbeck/aphshalloffame.com
pages/404.js
<filename>pages/404.js import PageContainer from 'layouts/PageContainer' const Page404 = () => ( <PageContainer title="404: Page not found"> <p className="m-4">Sorry, the page you are looking for cannot be found.</p> </PageContainer> ); export default Page404
Marco-Puig/Pokemon-Thunder-Lightning
lib/ruby/3.0.0/objspace.rb
<gh_stars>1-10 # frozen_string_literal: true require 'objspace.so' module ObjectSpace class << self private :_dump private :_dump_all end module_function # call-seq: # ObjectSpace.dump(obj[, output: :string]) # => "{ ... }" # ObjectSpace.dump(obj, output: :file) # => #<File:/tmp/rubyobj2...
tak2004/RadonFramework
src/Memory/HeapAllocator.cpp
<gh_stars>1-10 #include "RadonFramework/precompiled.hpp" #include "RadonFramework/Memory/HeapAllocator.hpp" #include "RadonFramework/System/Memory.hpp" namespace RadonFramework::Memory { HeapAllocator::HeapAllocator() { m_BlockSize=RF_SysMem::GetBlockSize(); } MemoryBlock HeapAllocator::Allocate(const RF_Type::S...
zachung/game-server
src/single/survivor/src/ui/TouchDirectionControlPanel.js
import { Container, Graphics } from '../lib/PIXI' import Vector from '../lib/Vector' import keyboardJS from 'keyboardjs' import { LEFT, UP, RIGHT, DOWN } from '../config/control' const ALL_KEYS = [RIGHT, LEFT, UP, DOWN] class TouchDirectionControlPanel extends Container { constructor ({ x, y, radius }) { super...
komamj/Audient
storemusic/src/main/java/com/xinshang/store/StoreMusicApplication.java
/* * Copyright 2017 Koma * * 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 wri...
codacy-acme/spectrum
api/test/message/mutations/addMessage.test.js
// @flow import { request } from '../../utils'; import db from 'shared/testing/db'; import data from 'shared/testing/data'; import { fromPlainText, toJSON } from 'shared/draft-utils'; const query = /* GraphQL */ ` mutation sendMessage($message: MessageInput!) { addMessage(message: $message) { content { ...
vjdev/wikipedia-ios
Wikipedia/Code/MWKDataObject.h
<filename>Wikipedia/Code/MWKDataObject.h #import <WMF/WMFMTLModel.h> @interface MWKDataObject : WMFMTLModel - (id)dataExport; - (NSString *)optionalString:(NSString *)key dict:(NSDictionary *)dict; - (NSString *)requiredString:(NSString *)key dict:(NSDictionary *)dict; - (NSString *)requiredString:(NSString *)key di...
rodekruis/digidoc
config/strategies/azure.js
'use strict'; /** * Module dependencies. */ var passport = require('passport'), url = require('url'), AzureStrategy = require('passport-azure-oauth').Strategy, config = require('../config'), secrets = require('../secrets'), users = require('../../app/controllers/users'); module.exports = function() { // Use f...
charmed-kubernetes/autoscaler
cluster-autoscaler/vendor/github.com/juju/juju/rpc/params/secrets.go
<reponame>charmed-kubernetes/autoscaler<filename>cluster-autoscaler/vendor/github.com/juju/juju/rpc/params/secrets.go // Copyright 2021 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package params import ( "time" ) // CreateSecretArgs holds args for creating secrets. type CreateSecretAr...
HuangJie1990/Algorithms
src/w11/CourseraServers.java
<gh_stars>0 package w11; import edu.princeton.cs.algs4.In; import edu.princeton.cs.algs4.StdOut; /** * @author huangjie * @create 2018-03-20-16:12 **/ public class CourseraServers { public static void main(String[] args) { In in = new In(args[0]); String s = in.readAll(); String[] serve...
YuhuRepos/xuanxuan
app/utils/debug.js
<gh_stars>10-100 const DEBUG = process.env.NODE_ENV === 'development'; global.DEBUG = DEBUG; if(DEBUG) { // Mute react warning. console._error = console.error; console.error = (errMessage, ...args) => { if(typeof errMessage === 'string' && errMessage.indexOf('Warning: Unknown prop') === 0) { ...
apache/juneau
juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RrpcRestOpSession.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 regardi...
mosarsh/homeschooling
app/src/views/sampleViews/extra/forms/ReduxFormView/BasicForm.js
/* eslint-disable react/prop-types */ import React, { useState } from 'react'; import PropTypes from 'prop-types'; import * as Yup from 'yup'; import { Field, SubmissionError, reduxForm } from 'redux-form'; import { Box, Button, Card, CardContent, CardHeader, Checkbox, CircularProgress, Divider, FormH...
kant/ridership
src/js/getComponents/getHeaderButtons.js
<filename>src/js/getComponents/getHeaderButtons.js import exportMethods from '../export/exportMethods'; import HeaderButtons from '../header/headerButtons'; const getHeaderButtons = ({ state, components }) => new HeaderButtons({ exportComponents: (callback) => { const { atlas, sidebar, histogra...
EdwardPrentice/wrongo
jstests/disk/index_options.js
var baseName = "jstests_disk_index_options"; load('jstests/libs/command_line/test_parsed_options.js'); jsTest.log("Testing \"noIndexBuildRetry\" command line option"); var expectedResult = {"parsed": {"storage": {"indexBuildRetry": false}}}; testGetCmdLineOptsMongod({noIndexBuildRetry: ""}, expectedResult); jsTest.l...
RLGraph/RLGraph
rlgraph/components/common/environment_stepper.py
# Copyright 2018/2019 The RLgraph authors, 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 # # Unless required by appli...
java-tools/awe
awe-framework/awe-modules/awe-scheduler/src/main/java/com/almis/awe/scheduler/listener/SchedulerJobListener.java
<filename>awe-framework/awe-modules/awe-scheduler/src/main/java/com/almis/awe/scheduler/listener/SchedulerJobListener.java package com.almis.awe.scheduler.listener; import com.almis.awe.config.ServiceConfig; import com.almis.awe.scheduler.bean.event.SchedulerTaskFinishedEvent; import com.almis.awe.scheduler.bean.event...
Magnitus-/gogcli
manifest/manifest-game-installer_test.go
package manifest import ( "testing" ) func TestManifestGameInstallerHasOneOfOses(t *testing.T) { installer := ManifestGameInstaller{ Languages: []string{"french"}, Os: "linux", Url: "/dontknowdontcare", Title: "installer", Name: "installer", Version: "vDon...
Bhaskers-Blu-Org2/Sora
DebugTool/source/DbgPlotViewer/PlotWndPlayPauseController.h
#pragma once #include <map> #include "AsyncObject.h" #include "ProcessOpened.h" #include "PlotWindowOpened.h" class PlotWndPlayPauseController : public AsyncObject { public: ~PlotWndPlayPauseController(); void PauseProcess(std::shared_ptr<ProcessOpened>); void AddProcessPlotWnd(std::shared_ptr<ProcessOpened>, std:...
Prodian0013/cri-o
internal/oci/oci_test.go
package oci_test import ( "github.com/cri-o/cri-o/internal/oci" "github.com/cri-o/cri-o/pkg/config" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) // The actual test suite var _ = t.Describe("Oci", func() { t.Describe("New", func() { It("should succeed with default config", func() { // Given c, ...
entcore/entcore
auth/src/main/java/org/entcore/auth/services/impl/AbstractSSOProvider.java
/* * Copyright © "Open Digital Education", 2015 * * This program is published by "Open Digital Education". * You must indicate the name of the software and the company in any production /contribution * using the software and indicate on the home page of the software industry in question, * "powered by Open Digita...
sgholamian/log-aware-clone-detection
LACCPlus/Camel/4015_1.java
<filename>LACCPlus/Camel/4015_1.java //,temp,FhirCreateIT.java,56,66,temp,FhirCreateIT.java,45,54 //,3 public class xxx { @Test public void testCreateStringResource() throws Exception { Patient patient = new Patient().addName(new HumanName().addGiven("Vincent").setFamily("Freeman")); String pati...
mabetle/mcore
mterm/colorterm_print.go
package mterm import ( "fmt" ) // Print funcs func PrintBlack(s string) { fmt.Print(Black(s)) } func PrintWhite(s string) { fmt.Print(White(s)) } func PrintRed(s string) { fmt.Print(Red(s)) } func PrintGreen(s string) { fmt.Print(Green(s)) } func PrintYellow(s string) { fmt.Print(Yellow(s)) } func PrintBlue(s ...
weucode/COMFORT
artifact_evaluation/data/codeCoverage/montage_generate/569.js
function f0() { return arguments + 23 === 'foo,bar'; } if (!f0()) throw new Error('Test failed');
garyyeap/serverless-mocker
test/spec/server/response/res.headers.js
<reponame>garyyeap/serverless-mocker import { expect } from 'chai'; import { createServer } from 'service-mocker/server'; import { uniquePath, sendRequest, } from '../../helpers/'; export default function () { const { router } = createServer(); describe('res.headers', () => { it('should has a `headers` p...
eduramirezh/pyinaturalist
pyinaturalist/converters.py
"""Type conversion utilities""" from datetime import date, datetime, timedelta from dateutil.parser import UnknownTimezoneWarning # type: ignore # (missing from type stubs) from dateutil.parser import parse as parse_date from dateutil.tz import tzlocal, tzoffset from io import BytesIO from logging import getLogger fr...
vandreas19/POJ_sol
2051/2092660_AC_15MS_76K.cpp
<gh_stars>10-100 #include<cstdio> #include<cstdlib> #include<vector> #include<algorithm> using namespace std; struct Query { int iID,iPeriod,iNext; }; bool Compare(Query pLeft,Query pRight) { if(pLeft.iNext>pRight.iNext) return true; else if(pLeft.iNext<pRight.iNext) return false; else if(p...
cctvzd7/aliyun-openapi-java-sdk
aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/transform/v20190815/CreateLinkeBahamutFlowtaskResponseUnmarshaller.java
<reponame>cctvzd7/aliyun-openapi-java-sdk<filename>aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/transform/v20190815/CreateLinkeBahamutFlowtaskResponseUnmarshaller.java /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
onesword0618/leetcode
src/test/maximum69Number.test.js
<filename>src/test/maximum69Number.test.js<gh_stars>0 const maximum69Number = require("./../main/maximum69Number"); describe("最大桁の6を9に変換する", () => { test("9669を与えて9969を返す", () => { expect(maximum69Number(9669)).toBe(9969); }); });
deyanpeychev00/JS-Web-SoftUni-September-2017
ExpressJS-Fundamentals/exercises/04-Exercise-NodeJS-Commonly-Used-Modules-Files-Utilities-Streams-Deployment/meme-node/handlers/memeHandler.js
<gh_stars>1-10 const fs = require('fs'); const allMemesHTML = './views/viewAll.html'; const addMemeHTML = './views/addMeme.html'; const memeDetailsHTML = './views/details.html'; const db = require('./../config/dataBase'); const formidable = require('formidable'); const shortid = require('shortid'); let memeGenerator =...
dsebban/protocol
mgcp/src/main/scala/spinoco/protocol/mgcp/codec/MGCPParameterCodec.scala
package spinoco.protocol.mgcp.codec import scodec.{Attempt, Codec, DecodeResult, Err, SizeBound} import scodec.bits.BitVector import scodec.codecs._ import shapeless.{:+:, CNil, Coproduct, Inl, Inr} import spinoco.protocol.mgcp._ import spinoco.protocol.mgcp.MGCPParameter._ import spinoco.protocol.common.codec._ impor...
lucykolosova/waivio
src/client/wallet/TransfersCards/MarketCloseOrder.js
<reponame>lucykolosova/waivio import React from 'react'; import PropTypes from 'prop-types'; import TransactionCardContainer from './TransactionCardContainer'; const MarketCloseOrder = ({ timestamp, orderType }) => ( <TransactionCardContainer timestamp={timestamp} iconType={'check'}> <span>Limit order to {orderT...
ItamarBenjamin/codeine
src/common/codeine/jsons/auth/EncryptionUtils.java
package codeine.jsons.auth; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import codeine.utils.ExceptionUtils; import com.google.common.base.Charsets; public class EncryptionUtils{ private ...
BasisTI/madre
prescricao/src/test/java/br/com/basis/madre/prescricao/web/rest/PrescricaoMedicamentoResourceIT.java
package br.com.basis.madre.prescricao.web.rest; import br.com.basis.madre.prescricao.PrescricaoApp; import br.com.basis.madre.prescricao.domain.PrescricaoMedicamento; import br.com.basis.madre.prescricao.repository.PrescricaoMedicamentoRepository; import br.com.basis.madre.prescricao.repository.search.PrescricaoMedica...
rafael-radkowski/setforge
src/MaterialRandomization.h
#pragma once /** Class MaterialRandomization @brief - generate a random color. The class generates a random color / material. The material is generated as a HSV color model and picks a random hue and saturation. The brightness either remains constant or can also change. The values are converted to RGB values and ...
malliina/pics
backend/src/main/scala/com/malliina/pics/ImageHandler.scala
<filename>backend/src/main/scala/com/malliina/pics/ImageHandler.scala package com.malliina.pics import java.nio.file.{Files, Path} import cats.effect.IO import com.sksamuel.scrimage.ImmutableImage object ImageHandlerIO: def apply(prefix: String, resizer: ImageResizerIO, storage: DataSourceIO) = new ImageHandle...
cysec-platform/coach-standard-language
src/main/java/eu/smesec/cysec/csl/parser/CommandIsSelected.java
/*- * #%L * CYSEC Standard Coach Language * %% * Copyright (C) 2020 - 2022 FHNW (University of Applied Sciences and Arts Northwestern Switzerland) * %% * 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 ...
beanz/advent
2015/11/main.go
<filename>2015/11/main.go package main import ( _ "embed" "fmt" . "github.com/beanz/advent/lib-go" ) //go:embed input.txt var input []byte func Valid(pw string) bool { seen := make(map[string]bool, len(pw)/2) hasStraight := false hasBad := false numPairs := 0 for i := 0; i < len(pw); i++ { if pw[i] == 'i'...
Glavo/kala-common
kala-base/src/main/java/kala/control/OptionContainer.java
<filename>kala-base/src/main/java/kala/control/OptionContainer.java package kala.control; import kala.collection.base.Iterators; import kala.collection.base.Traversable; import kala.collection.base.Mappable; import kala.annotations.Covariant; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations....
Moccine/Symfony-Projet-1
web/libariries/bootstrap/node_modules/grunt-legacy-util/node_modules/lodash/fp/conforms.js
module.exports = require('../conforms');
alparslansari/algorithm
src/leetcode/problems/linkedin/_261GraphValidTree.java
package leetcode.problems.linkedin; import java.util.*; /** 261. Graph Valid Tree * You have a graph of n nodes labeled from 0 to n - 1. * You are given an integer n and a list of edges where edges[i] = [ai, bi] * indicates that there is an undirected edge between nodes ai and bi in the graph. * * Return true if...
metaword/oasystem
src/main/java/com/aifurion/oasystem/service/DeptService.java
package com.aifurion.oasystem.service; import com.aifurion.oasystem.entity.user.Dept; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.RequestParam; import javax.validation.Valid; import java.util.List; /** * @author :zzy * @de...
sharkprince/tank-game
src/main.cpp
#include "core/game.h" int main() { try { Game* g = new Game(); g->Start(); } catch (...) { return 1; } return 0; }
fabriziobertoglio1987/sprachspiel
db/migrate/20170608080207_remove_and_add__fields_from_sales.rb
<reponame>fabriziobertoglio1987/sprachspiel class RemoveAndAddFieldsFromSales < ActiveRecord::Migration[5.0] def change remove_column :sales, :user_id, :integer add_column :sales, :room_id, :integer end end
heltonricardo/estudo-java
fundamentos/ConversaoNumeroString.java
package fundamentos; public class ConversaoNumeroString { public static void main(String[] args) { Integer n = 10000; System.out.println(n.toString().length()); int m = 123456; System.out.println(Integer.toString(m).length()); } }
IHTSDO/snow-owl
dependencies/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/revision/CDORevisionProvider.java
/* * Copyright (c) 2004 - 2012 <NAME> (Berlin, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * *...
st3107/pdffitx
pdffitx/modeling/adding.py
<filename>pdffitx/modeling/adding.py """Add variables to recipe.""" import typing as tp from diffpy.srfit.pdf import PDFGenerator, DebyePDFGenerator from pdffitx.modeling.core import MyRecipe, MyContribution G = tp.Union[PDFGenerator, DebyePDFGenerator] def initialize( recipe: MyRecipe, scale: bool = True,...
he-guang-wen/water-ui
src/components/water-ui/components/progress/index.js
import WrProgress from './src/progress.vue' WrProgress.install = function(Vue){ Vue.component(WrProgress.name,WrProgress) } export default WrProgress
kayler-renslow/arma-intellij-plugin
src/com/kaylerrenslow/armaplugin/ArmaAddonIndexingHandle.java
<reponame>kayler-renslow/arma-intellij-plugin package com.kaylerrenslow.armaplugin; import org.jetbrains.annotations.NotNull; import java.io.File; /** * @author Kayler * @see ArmaAddonsIndexingCallback * @see ArmaAddonsManager#loadAddonsAsync(ArmaAddonsProjectConfig, File, ArmaAddonsIndexingCallback) * @since 10...
stella/stella
try/34_testrun_try.rb
require 'stella' #Stella.debug = true Stella.load! :tryouts Stella::Testrun.destroy! :runid => 'tryoutsrun34' Stella::Testplan.destroy! :planid => 'tryoutsplan34' @cust = Stella::Customer.first_or_create :custid => :tryouts_34, :email => '<EMAIL>' @host = Stella::Host.first_or_create :customer => @cust, :hostname =>...