repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
gatarelib/webiny-js
packages/webiny-app-cms/src/editor/plugins/elementSettings/delete/DeleteAction.js
<reponame>gatarelib/webiny-js // @flow import * as React from "react"; import { connect } from "webiny-app-cms/editor/redux"; import { compose, withHandlers } from "recompose"; import { getPlugin } from "webiny-plugins"; import { deleteElement } from "webiny-app-cms/editor/actions"; import { getActiveElement } from "we...
LiuJiaBaiDing/spring-boot-modules
spring-boot-modules-common/src/main/java/com/bai/ding/common/constant/CommonConstant.java
package com.bai.ding.common.constant; import com.google.common.collect.Maps; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.util.StringUtils; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Enumeration; import java.util.Iterator; impor...
bovlb/the-blue-alliance
src/backend/common/queries/database_query.py
from __future__ import annotations import abc import logging from typing import Any, Dict, Generator, Generic, List, Optional, Set, Type, Union from google.appengine.ext import ndb from pyre_extensions import none_throws from backend.common.consts.api_version import ApiMajorVersion from backend.common.futures import...
khartig/assimilator
rio-lib/src/main/java/org/rioproject/jmx/JMXConnectionUtil.java
/* * Copyright 2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
rubicon/node-red-contrib-home-assistant-websocket
ui/js/common/nodeversion.js
<filename>ui/js/common/nodeversion.js /* global ha: false */ // eslint-disable-next-line no-unused-vars const nodeVersion = (function ($, RED, haMigrations) { function check(node) { if (isCurrentVersion(node)) { return; } migrateNode(node); } function migrate(node) { ...
YuJaeSeok/Leetcode-Practice
src/Leetcode101_200/Leetcode108_ConvertSortedArraytoBinarySearchTree.java
<filename>src/Leetcode101_200/Leetcode108_ConvertSortedArraytoBinarySearchTree.java<gh_stars>1-10 package Leetcode101_200; /** * 将有序数组转换为二叉搜索树 * @author DeLL * */ public class Leetcode108_ConvertSortedArraytoBinarySearchTree { public TreeNode sortedArrayToBST(int[] nums) { // 左右等分建立左右子树,中间节点作为根节点,递归该过程 return...
Scottx86-64/dotfiles-1
source/gomuks-0.2.3/ui/messages/html/list.go
// gomuks - A terminal Matrix client written in Go. // Copyright (C) 2020 <NAME> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your opti...
mskoenz/arduino_crash_course
program/03_actual_progs/glove_preparation/atmega_src/keyop.cpp
<filename>program/03_actual_progs/glove_preparation/atmega_src/keyop.cpp<gh_stars>0 // Author: <NAME> <<EMAIL>> // Date: 24.07.2013 18:58:59 CEST // File: key_operator.cpp #define COLOR_ON #define DEBUG_ON #define ADVANCED_INTERRUPTS #include <Arduino.h> #include <ustd.hpp> #include <diag.hpp> #include <tool.h...
binodthapachhetry/JustInTimeAdaptiveIntervention
wocketslib/src/main/java/edu/neu/android/wocketslib/audio/record/RecordAmplitudeTask.java
<gh_stars>1-10 /* * Copyright 2012 <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 applic...
kagemeka/atcoder-submissions
jp.atcoder/abc121/abc121_c/9508639.py
import sys n, m, *ab = map(int, sys.stdin.read().split()) ab = sorted(zip(*[iter(ab)] * 2)) def main(): cost = 0 r = m for a, b in ab: if b <= r: cost += a * b r -= b else: cost += a * r break return cost if __name__ == ...
spocino/brutal
sources/kernel/x86_64/interrupts.c
<gh_stars>0 #include <brutal/debug.h> #include <brutal/sync.h> #include <brutal/time.h> #include <brutal/types.h> #include "kernel/context.h" #include "kernel/cpu.h" #include "kernel/global.h" #include "kernel/interrupts.h" #include "kernel/sched.h" #include "kernel/x86_64/apic.h" #include "kernel/x86_64/asm.h" #includ...
daboyuka/PIQUE
include/pique/indexing/impl/index-builder-impl.hpp
/* * Copyright 2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
ronnyacacio/Comercial-RND
web/src/contexts/auth.js
import React, { useState, useEffect, useContext, createContext } from 'react'; import { toast } from 'react-toastify'; import api from '~/services/api'; const AuthContext = createContext({}); export function AuthProvider({ children }) { const [provider, setProvider] = useState(null); useEffect(() => { async...
specialattack/DiscoTek
src/main/java/net/specialattack/forge/discotek/client/model/ModelLightMover.java
package net.specialattack.forge.discotek.client.model; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; @SideOnly(Side.CLIENT) public class ModelLightMover extends ModelBase { public ModelRe...
camertron/antlr4-ruby-runtime
lib/antlr4/runtime/prediction_mode.rb
require 'antlr4/runtime/flexible_hash_map' require 'antlr4/runtime/bit_set' module Antlr4::Runtime class PredictionMode SLL = 0 LL = 1 LL_EXACT_AMBIG_DETECTION = 2 class AltAndContextMap < FlexibleHashMap def initialize super(AltAndContextConfigEqualityComparator.instance) end ...
UniconLabs/grouper
grouper-ui/java/src/edu/internet2/middleware/grouper/grouperUi/serviceLogic/UiV2GroupImport.java
<reponame>UniconLabs/grouper<gh_stars>0 /******************************************************************************* * Copyright 2014 Internet2 * * 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...
JoseTomasTocino/AdventOfCode2020
day03/code/main.py
import functools import logging import operator logger = logging.getLogger(__name__) def get_map_cell(map_template, row, column): column = column % len(map_template[0]) return map_template[row][column] def traverse_map(map_string, slope=[1, 3]): map_template = map_string.split("\n") num_rows = len(...
vrutkovs/pulumi-gcp
sdk/python/pulumi_gcp/organizations/folder.py
<filename>sdk/python/pulumi_gcp/organizations/folder.py<gh_stars>0 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime from .. import utilities, tables...
AliFrank608-TMW/RacingReact
src/components/syndicate/SyndicateNew/index.js
import React, { Component } from 'react' import TextButton from 'components/buttons/TextButton' import { Link } from 'react-router-dom' class SyndicateNew extends Component { constructor (props) { super(props) } render () { return ( <div className="new-syndicate"> <h2 className="uppercas...
sammck/secret-kv
secret_kv/config/passphrase.py
<reponame>sammck/secret-kv # Copyright (c) 2022 <NAME> # # MIT License - See LICENSE file accompanying this package. # """Configuration support for retrieving a secret passphrase.""" from typing import Optional, Dict, TextIO from ..internal_types import JsonableDict import keyring from ..util import full_name_of_ty...
futur/usergrid-stack
core/src/main/java/org/usergrid/persistence/cassandra/Setup.java
/******************************************************************************* * Copyright 2012 Apigee Corporation * * 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....
FrankKwok/Oreo
android/view/PixelCopy.java
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
yipuran/yipuran-core
src/main/java/org/yipuran/xml/XmlParserImpl.java
package org.yipuran.xml; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.Enumeration; import java.util.List; import java.util.Locale; import java.util.Properties; import java.util.ResourceBundle; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFa...
licaon-kter/atalk-android
aTalk/src/main/java/org/atalk/impl/neomedia/RTPConnectorTCPOutputStream.java
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. See terms of license at gnu.org. */ package org.atalk.impl.neomedia; import org.atalk.service.neomedia.RawPacket; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; /** * ...
jianlins/easycie
fastner/src/main/java/edu/utah/bmi/nlp/fastner/FastRuleWGN.java
/* * Copyright 2017 Department of Biomedical Informatics, University of Utah * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 *...
jasstionzyf/hbase
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterCoprocessorHost.java
<filename>hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterCoprocessorHost.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 ownership. The ...
ASM717/cpp_intensive
module05/ex01/Bureaucrat.cpp
<filename>module05/ex01/Bureaucrat.cpp /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Bureaucrat.cpp ...
zjxkenshine/codedemo
java-demo/java-basic-demo/src/main/java/com/kenshine/basic/_01_base/test08_system.java
<gh_stars>1-10 package com.kenshine.basic._01_base; /** * @author :kenshine * @date :Created in 2022/1/8 23:07 * @description: * @modified By: * @version: $ */ public class test08_system { public static void main(String[] args) { int[] a={1,2,3,5,6}; int[] b={15,16,17,18,19}; /** ...
Krunal-K-SimformSolutions/Amplituda
app/src/main/java/linc/com/amplituda/callback/AmplitudaSuccessListener.java
<reponame>Krunal-K-SimformSolutions/Amplituda package linc.com.amplituda.callback; import linc.com.amplituda.AmplitudaResult; /** * Callback interface for success processing event */ public interface AmplitudaSuccessListener<T> { void onSuccess(final AmplitudaResult<T> result); }
sldblog/offender-management-allocation-manager
app/models/hmpps_api/movement.rb
<gh_stars>0 # frozen_string_literal: true module HmppsApi class MovementDirection IN = 'IN' OUT = 'OUT' end class Movement include Deserialisable attr_accessor :offender_no, :create_date_time, :from_agency, :from_agency_description, :to_agency, :to_agency_des...
zoozooll/MyExercise
VV/src/com/beem/project/btf/ui/activity/ClipPictureActivity.java
package com.beem.project.btf.ui.activity; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.HashMap; import org.json.JSONArray; import org.json.JSONObject; import android.app.Activity; import android.content.Intent; import android....
exasol/virtual-schema-common-document
src/main/java/com/exasol/adapter/document/edml/deserializer/KeyTypeDeserializer.java
<reponame>exasol/virtual-schema-common-document<gh_stars>0 package com.exasol.adapter.document.edml.deserializer; import java.io.IOException; import com.exasol.adapter.document.edml.KeyType; import com.exasol.errorreporting.ExaError; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind....
thiago5171/python.
exercicios/ex039.py
<gh_stars>1-10 #faça um programa que leia o peso de cinco pessoas. No final, #mostre qual foi o maior e o menor peso lidos. cont = 0 maior = 0 menor = 0 for i in range(1,6): peso = float(input()) if i==1 : maior = peso menor = peso else: if peso>maior: maior=peso ...
vlab-research/fly
dashboard-client/src/components/LinkModal/index.js
export { default } from './LinkModal';
stas-vilchik/bdd-ml
data/9139.js
{ if (n) if (o(n)) { Array.isArray(n) && (n = g(n)); var a; for (var s in n) !(function(o) { if ("class" === o || "style" === o || yi(o)) a = t; else { var s = t.attrs && t.attrs.type; a = r || Si.mustUseProp(e, s, o) ...
xavave/testnfc
mfoc_hard/hardnested/hardnested_bf_core.h
//----------------------------------------------------------------------------- // Copyright (C) 2016, 2017 by piwi // // This code is licensed to you under the terms of the GNU GPL, version 2 or, // at your option, any later version. See the LICENSE.txt file for the text of // the license. //--------------------------...
STRIDES-Codes/Exploring-the-Microbiome-
src/metaspades/src/projects/hammer/expander.cpp
<gh_stars>0 //*************************************************************************** //* Copyright (c) 2015 Saint Petersburg State University //* Copyright (c) 2011-2014 Saint Petersburg Academic University //* All Rights Reserved //* See file LICENSE for details. //************************************************...
tusharchoudhary0003/Custom-Football-Game
sources/com/google/ads/mediation/MediationBannerAdapter.java
<filename>sources/com/google/ads/mediation/MediationBannerAdapter.java package com.google.ads.mediation; import android.app.Activity; import android.view.View; import com.google.ads.mediation.C8092e; import com.google.ads.mediation.MediationServerParameters; import p019d.p271g.p272a.C12722c; @Deprecated public interf...
floryst/ITK
Modules/Filtering/LabelMap/include/itkRegionFromReferenceLabelMapFilter.h
/*========================================================================= * * Copyright Insight Software Consortium * * 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...
anthonyfuentes/hubzero-cms
core/plugins/groups/forum/assets/js/emailSettings.js
/** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ $(document).ready(() => { Hubzero.initApi(() => { const $emailSettingsForm = $('#email-settings') const $preexistingSubscriptionIdsElement = $('input[id=preexisting-...
nanoNeel/foam2
src/foam/lib/json/UnknownParser.java
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ package foam.lib.json; import foam.lib.parse.*; public class UnknownParser extends ProxyParser { public UnknownParser() { super(new Parser() { private Parser delegate = new Alt( ...
vitek-karas/WarPlusPlus
src/Common/ServerClient/ControlConnection.h
#ifndef SC_CONTROLCONNECTION_H_ #define SC_CONTROLCONNECTION_H_ enum EControlRequest{ ControlRequest_Init = 1, // Initialization (followed by nothing) }; enum EControlAnswer{ ControlAnswer_Init = 1, // Initialization, followed by SControlAnswerInit }; struct tagSControlAnswerInit { DWORD m_dwCivilizationID; //...
lightvector/arimaasharp
pattern/patternsolver.h
/* * patternsolver.h * Author: davidwu */ #include "../core/global.h" #include "../pattern/pattern.h" struct Possibility { pla_t owner; //0 = silv, 1 = gold, 2 = npla int isRabbit; //0 = false, 1 = true, 2 = unknown //This field has the status of being just a special flag. //If set to 1, then we just out...
malliina/musicpimp
musicpimp/app/com/malliina/musicpimp/messaging/PushKeys.scala
<filename>musicpimp/app/com/malliina/musicpimp/messaging/PushKeys.scala<gh_stars>1-10 package com.malliina.musicpimp.messaging object PushKeys { val Cmd = "cmd" val Stop = "stop" val Tag = "tag" }
hoeoy/wwj
src/main/java/com/iandtop/model/OrderStyleModel.java
<reponame>hoeoy/wwj<gh_stars>0 package com.iandtop.model; import java.util.LinkedList; import java.util.List; /** * Created by Administrator on 2017/5/15. */ public class OrderStyleModel { private int id; private String stylename; private List<OrderModelVo> orderModelVos = new LinkedList<OrderModelVo>...
MetricsGroup/IERT-Webapp
src/diploma/admin.py
from django.contrib import admin from .models import diploma_facultys # in case of different admin panel ##################################################### # from django.contrib.admin import AdminSite # # class DiplomaAdminSite(AdminSite): # site_header = "IERT DIPLOMA ADMIN" # site_title = "IERT DIPLOMA AD...
SocioProphet/aigents-java
src/main/java/net/webstructor/main/Logger.java
/* * MIT License * * Copyright (c) 2005-2020 by <NAME>, Aigents® * * 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 rights * to u...
ChestnutGames/chestnut
lualib-src/chestnut/lua-stack.c
#define LUA_LIB #include <lua.h> #include <lauxlib.h> #include <stdlib.h> #include <stdbool.h> #include <assert.h> static int lpush(lua_State *L) { lua_settop(L, 2); luaL_checktype(L, 1, LUA_TTABLE); lua_rawgeti(L, 1, 0); lua_Integer top = luaL_checkinteger(L, -1); if (lua_type(L, 2) == LUA_TNIL) { luaL_erro...
chcbaram/arm_seminar_fw
tutorial/04/result/mission_2/04_m2/src/ap/ap.c
<reponame>chcbaram/arm_seminar_fw /* * ap.c * * Created on: 2016. 7. 13. * Author: Baram */ #include "ap.h" int demoCmdif(int argc, char **argv); void apInit(void) { } void apMain(void) { cmdifBegin(_DEF_UART1, 115200); cmdifAdd("demo", demoCmdif); while(1) { cmdifLoop(); } } //...
hyena/weasyl
weasyl/test/resetpassword/test_request.py
import pytest import arrow from weasyl.test import db_utils from weasyl import resetpassword from weasyl import define as d from weasyl.error import WeasylError class Bag(object): def __init__(self, **kw): for kv in kw.items(): setattr(self, *kv) @pytest.mark.usefixtures('db') def test_user...
zeta1999/rootba
src/rootba/util/enum_utils.hpp
<gh_stars>100-1000 /** BSD 3-Clause License This file is part of the RootBA project. https://github.com/NikolausDemmel/rootba Copyright (c) 2021, <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:...
Rose2073/RoseCppSource
NKZX_NOI_OJ/P1496.cpp
#include<cstdio> int main(){ for(int i=1;i<=9;i++){ for(int j=i;j>=1;j--) printf(" %d*%d=%2d",i,j,i*j); putchar('\n'); } return 0; }
JamesCao2048/BlizzardData
Corpus/aspectj/909.java
aspect X { intertype Target { int i = 5; } } class Target {}
hei6775/light-protoactor-go
router/broadcast_router.go
package router import "github.com/hei6775/light-protoactor-go/actor" type broadcastGroupRouter struct { GroupRouter } type broadcastPoolRouter struct { PoolRouter } type broadcastRouterState struct { routees *actor.PIDSet } func (state *broadcastRouterState) SetRoutees(routees *actor.PIDSet) { state.routees = ...
zaion520/ATtomato
release/src-rt-6.x.4708/router/samba3/source3/rpc_server/eventlog/srv_eventlog_reg.c
<reponame>zaion520/ATtomato /* * Unix SMB/CIFS implementation. * * Eventlog RPC server keys initialization * * Copyright (c) 2005 <NAME> * Copyright (c) 2005 <NAME> * Copyright (c) 2005 <NAME> * Copyright (c) 2011 <NAME> <<EMAIL>> * * This program is free software; you can redistrib...
softwartechnik/catalin
core/src/test/java/de/softwartechnik/catalin/core/repository/map/AbstractMapRepositoryTest.java
package de.softwartechnik.catalin.core.repository.map; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNull; import de.sof...
sourceryinstitute/rose-sourcery-institute
projects/CodeThorn/src/RersCounterexample.h
<reponame>sourceryinstitute/rose-sourcery-institute<filename>projects/CodeThorn/src/RersCounterexample.h #ifndef RERS_COUNTEREXAMPLE_H #define RERS_COUNTEREXAMPLE_H #include "ExecutionTrace.h" namespace CodeThorn { class EState; class TransitionGraph; class Analyzer; /** * @brief An input/output counterexamp...
JamesCao2048/BlizzardData
Corpus/birt/154.java
<filename>Corpus/birt/154.java /******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies thi...
antonmedv/year
packages/1989/01/27/index.js
module.exports = new Date(1989, 0, 27)
chriskim06/go-sdk
fileutil/parse_file_size_test.go
<reponame>chriskim06/go-sdk /* Copyright (c) 2021 - Present. Blend Labs, Inc. All rights reserved Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ package fileutil import ( "testing" "github.com/blend/go-sdk/assert" ) func Test_FileParseSize(t *testing.T) { assert ...
beckerhe/orbitprofiler
OrbitCore/OrbitSession.h
//----------------------------------- // Copyright <NAME> 2013-2017 //----------------------------------- #pragma once #include "Core.h" #include "Serialization.h" //----------------------------------------------------------------------------- struct SessionModule { std::string m_Name; std::vector<uint64_t> m_Fun...
zyj-nanjing/SmartCloud
SmartCloud-infrastructure/src/main/java/www/bwsensing/com/device/gatewayimpl/database/ProductModelMapper.java
<reponame>zyj-nanjing/SmartCloud<filename>SmartCloud-infrastructure/src/main/java/www/bwsensing/com/device/gatewayimpl/database/ProductModelMapper.java<gh_stars>0 package www.bwsensing.com.device.gatewayimpl.database; import www.bwsensing.com.device.gatewayimpl.database.dataobject.ProductModelDO; import org.apache.iba...
pettaroni/nablaweb
nablapps/core/tests/test_primary_dir.py
<gh_stars>0 from django.test import TestCase from django.http import HttpRequest from nablapps.core.context_processors import get_primary_dir class TestPrimaryDir(TestCase): """Class for testing the primary_dir context processor""" def test_batman(self): """Test batman as primary dir.""" requ...
addstone/unrealengine3
Development/Src/Engine/Debugger/UnDebuggerCore.cpp
/*============================================================================= UnDebuggerCore.cpp: Debugger Core Logic Copyright 1997-2001 Epic Games, Inc. All Rights Reserved. Revision history: * Created by <NAME>, <NAME> * Revised by <NAME> =======================================================================...
Cyniikal/labelbox-python
tests/integration/test_ontology.py
<filename>tests/integration/test_ontology.py import pytest from labelbox import OntologyBuilder from labelbox.orm.model import Entity import json import time @pytest.mark.skip(reason="normalized ontology contains Relationship, " "which is not finalized yet. introduce this back when" ...
jsoagger/jsoagger-fx
jsoagger-jfxcore-engine/src/main/java/io/github/jsoagger/jfxcore/components/CoreComponentsPresentersBeanProvider.java
<filename>jsoagger-jfxcore-engine/src/main/java/io/github/jsoagger/jfxcore/components/CoreComponentsPresentersBeanProvider.java /** * */ package io.github.jsoagger.jfxcore.components; import io.github.jsoagger.core.bridge.operation.IOperation; import io.github.jsoagger.core.ioc.api.annotations.Bean; import io.github...
apache/sis
core/sis-feature/src/main/java/org/apache/sis/image/AnnotatedImage.java
<reponame>apache/sis /* * 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 licenses this file to You under the Apache License, Version 2.0 * (the...
MDGSF/interviews
javascript/src/algorithms/sorting/__test__/Sort.test.js
<filename>javascript/src/algorithms/sorting/__test__/Sort.test.js const Sort = require("../Sort"); describe("Sort", () => { it("should throw an error when trying to call Sort.sort() method directly", () => { function doForbiddenSort() { const sorter = new Sort(); sorter.sort(); } expect(doFo...
s360/StudentSuccessLink-Website
app/scripts/controllers/student/student.js
<gh_stars>0 (function($) { 'use strict'; angular.module('sslv2App') .controller('StudentCtrl', StudentCtrl); StudentCtrl.$inject = ['$timeout','StudentService','$filter','$confirm', '$cookies']; function StudentCtrl($timeout,StudentService,$filter,$confirm, $cookies) { var vm = thi...
mackron/openchernobyl
source/oc/ocEngine/ocPath.cpp
// Copyright (C) 2018 <NAME>. See included LICENSE file. ocBool32 ocPathSegmentsEqual(const char* s0Path, const ocPathSegment s0, const char* s1Path, const ocPathSegment s1) { if (s0Path == NULL || s1Path == NULL) { return OC_FALSE; } if (s0.length != s1.length) { return OC_FALSE; } ...
sap-contributions/libjvm
manifest_test.go
/* * Copyright 2018-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
petercdcn/LeetCode-Sol-Res
src/main/java/com/freetymekiyan/algorithms/level/medium/PathSum2.java
<filename>src/main/java/com/freetymekiyan/algorithms/level/medium/PathSum2.java package com.freetymekiyan.algorithms.level.medium; import com.freetymekiyan.algorithms.utils.Utils.TreeNode; import java.util.ArrayList; import java.util.List; /** * 113. Path Sum II * * Given a binary tree and a sum, find all root-to...
shaochangbin/chromium-crosswalk
tools/telemetry/telemetry/core/platform/profiler/android_prebuilt_profiler_helper.py
<filename>tools/telemetry/telemetry/core/platform/profiler/android_prebuilt_profiler_helper.py # Copyright 2013 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. """Android-specific, downloads and installs pre-built profiler...
Polidea/SiriusObfuscator
SymbolExtractorAndRenamer/lldb/include/lldb/Symbol/ObjectContainer.h
<filename>SymbolExtractorAndRenamer/lldb/include/lldb/Symbol/ObjectContainer.h<gh_stars>100-1000 //===-- ObjectContainer.h ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // Lice...
jinahya/mysql-sakila-entities
src/test/java/com/github/jinahya/sakila/persistence/InventoryService.java
<filename>src/test/java/com/github/jinahya/sakila/persistence/InventoryService.java<gh_stars>1-10 package com.github.jinahya.sakila.persistence; /*- * #%L * sakila-entities * %% * Copyright (C) 2019 Jinahya, Inc. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...
LoveKino/my_start_page
webpack.config.js
<reponame>LoveKino/my_start_page 'use strict'; const webpack = require('webpack'); module.exports = { mode: process.env.DEV ? 'development' : 'production', entry: { app: './lib/index.js' }, devtool: 'source-map', output: { path: __dirname + '/asset', filename: '[name].js', publicPath: '/ass...
ScalablyTyped/SlinkyTyped
r/react-native-elements/src/main/scala/typingsSlinky/reactNativeElements/anon/RecursivePartialPartialBu.scala
package typingsSlinky.reactNativeElements.anon import slinky.core.ReactComponentClass import slinky.core.SyntheticEvent import typingsSlinky.reactNative.anon.Layout import typingsSlinky.reactNative.anon.ReadonlyactionNamestring import typingsSlinky.reactNative.mod.AccessibilityActionInfo import typingsSlinky.reactNati...
caffebaby/_leetcode
src/_leetcode/IQ_test/_2029/Solution.java
package _leetcode.IQ_test._2029; /** * @Description: 2029. 石子游戏 IX * Alice 和 Bob 再次设计了一款新的石子游戏。现有一行 n 个石子,每个石子都有一个关联的数字表示它的价值。给你一个整数数组 stones ,其中 stones[i] 是第 i 个石子的价值。 * Alice 和 Bob 轮流进行自己的回合,Alice 先手。每一回合,玩家需要从 stones 中移除任一石子。 * 如果玩家移除石子后,导致 所有已移除石子 的价值 总和 可以被 3 整除,那么该玩家就 输掉游戏 。 * 如果不满足上一条,且移除后没有任何剩余的石子,那么 Bob ...
JackEasons/esl
test/moduleconf/cat.js
define( ['module'], function ( module ) { return { name: 'moduleconf/cat', check: function () { return module.config().desc === 'cat'; } }; } );
KASTKING/KASTKING-CLOUD1
kastking-salesforecast-server/src/main/java/com/kastking/salesforcastInfo/mapper/SalesforcastInfoMapper.java
package com.kastking.salesforcastInfo.mapper; import com.kastking.salesforcastInfo.domain.SalesforcastDemanda; import com.kastking.salesforcastInfo.domain.SalesforcastInfo; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; /** * 销量预计信息Mapper接口 * * @author Michael * @date ...
katka-h/google-ads-java
google-ads/src/main/java/com/google/ads/googleads/v2/resources/CampaignCriterionSimulationProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v2/resources/campaign_criterion_simulation.proto package com.google.ads.googleads.v2.resources; public final class CampaignCriterionSimulationProto { private CampaignCriterionSimulationProto() {} public static void registe...
SenseException/instantsearch.js
src/components/Pagination/__tests__/Pagination-test.js
<gh_stars>1-10 import React from 'react'; import sinon from 'sinon'; import { RawPagination as Pagination } from '../Pagination'; import Paginator from '../../../connectors/pagination/Paginator'; import renderer from 'react-test-renderer'; describe('Pagination', () => { const pager = new Paginator({ currentPage:...
Kermit95/Android_Media
aacencoder/src/main/java/com/todoroo/aacenc/Main.java
<reponame>Kermit95/Android_Media<filename>aacencoder/src/main/java/com/todoroo/aacenc/Main.java package com.todoroo.aacenc; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.util.ArrayList; import android.app.Activity; import android.app.ProgressDialog; import android....
hungptit/ioutils
benchmark/read_data.cpp
<reponame>hungptit/ioutils #include <fstream> #include <iostream> #include "boost_memmap.hpp" #include "celero/Celero.h" #include "fmt/format.h" #include "ioutils.hpp" #include <iostream> // #include "utils/memchr.hpp" #include "experiments.hpp" #include "linestats.hpp" namespace test { constexpr char EOL = '\n'...
atish3/mig-website
mig_main/migrations/0014_auto_20160103_1812.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('mig_main', '0013_auto_20150927_1121'), ] operations = [ migrations.AddField( model_name='officerposition', ...
christophe-rannou/ovh-api-services
src/api/cloud/price/cloud-price.service.js
<gh_stars>1-10 // This file is deprecated angular.module('ovh-api-services').service('OvhApiCloudPrice', ($injector) => ({ v6() { return $injector.get('OvhApiCloudPriceV6'); }, }));
ximingxing/Close-Look-Java
Code/1345-Jump-Game-IV/src/Solution.java
<reponame>ximingxing/Close-Look-Java<filename>Code/1345-Jump-Game-IV/src/Solution.java import java.util.*; /** * Description: 跳跃游戏 IV (特点:隐式图, 边长为1;每次仅跳跃一步) * Solution: BFS * 跳跃到相同的值时,仅第一次到达有意义 * Created By xingximing.xxm */ public class Solution { public int minJumps(int[] arr) { final int n = arr.le...
mfkiwl/embox
project/pjsip/cmds/sip-nuklear/nuklear_rawfb_with_file_font.h
#ifndef NK_RAWFB_FILE_FONT_H_ #define NK_RAWFB_FILE_FONT_H_ /* * It's analog of nk_rawfb_init() from nuklear_rawfb.h, * but with support of external font. */ struct nk_font *rawfb_fonts[RAWFB_FONT_COUNT]; NK_API struct rawfb_context* nk_rawfb_init_with_file_font(void *fb, void *tex_mem, const unsigned int w, cons...
GodIsWord/NewFindSecret
FindSecret/Classes/Native/protobufU2Dnet_ProtoBuf_Serializers_NetObjectSeria2339978381.h
<gh_stars>0 #pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_Object3080106164.h" #include "protobufU2Dnet_ProtoBuf_BclHelpers_NetObjectOption1875464664.h" // System.Type struct Type_t; ...
avarun42/micronaut-data
data-mongodb/src/test/java/io/micronaut/data/document/mongodb/repositories/MongoZoneRepository.java
<filename>data-mongodb/src/test/java/io/micronaut/data/document/mongodb/repositories/MongoZoneRepository.java<gh_stars>100-1000 package io.micronaut.data.document.mongodb.repositories; import io.micronaut.data.mongodb.annotation.MongoRepository; import io.micronaut.data.document.tck.repositories.ZoneRepository; @Mong...
rmake/cor-engine
libraries/scripts/gen_task/mruby_interface.rb
<reponame>rmake/cor-engine MrubyBindingGen.name "cor_mruby" MrubyBindingGen.namespace "mruby_interface" MrubyBindingGen.output_path "../cor_mruby_interface/sources/basic_bind" MrubyBindingGen.add_cor_lib_list([ 'cor_type', 'cor_data_structure', 'cor_algorithm', 'cor_system', 'cor_mruby_interface', ]) load ...
EnGinners/TechReborn
src/main/java/techreborn/api/fluidreplicator/FluidReplicatorRecipeCrafter.java
/* * This file is part of TechReborn, licensed under the MIT License (MIT). * * Copyright (c) 2018 TechReborn * * 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, inc...
maevagrondin/max_externals
source/matrix/jit.split/jit.split.c
<reponame>maevagrondin/max_externals<filename>source/matrix/jit.split/jit.split.c /* jit.split Copyright 2001-2005 - Cycling '74 <NAME> <EMAIL> */ #include "jit.common.h" #include "ext_strings.h" typedef struct _jit_split { t_object ob; char splitdim; long splitpoint; char autoclear; } t_jit_split; void *_...
planttheidea/inline-loops.macro
__tests__/__fixtures__/inlined-arrow-return/flatMapRight/code.js
import { flatMapRight } from '../../../../src/inline-loops.macro'; const flattened = flatMapRight(array, entry => { return [entry[0]]; });
arjayW/auda-sa
html/class_o_d_task.js
var class_o_d_task = [ [ "eODNone", "class_o_d_task.html#ad002643e170a8fbb283faa9da45c9a47a7650c98bb4a17c4201653e2cb41a86d8", null ], [ "eODFLAC", "class_o_d_task.html#ad002643e170a8fbb283faa9da45c9a47affeff343487da8ae57703491f67161c9", null ], [ "eODMP3", "class_o_d_task.html#ad002643e170a8fbb283faa9da45c9...
sbrow/wash
api/rql/internal/primary/meta/valueSchema_test.go
package meta import ( "encoding/json" "fmt" "io/ioutil" "path" "testing" "github.com/puppetlabs/wash/plugin" "github.com/stretchr/testify/suite" ) type ValueSchemaTestSuite struct { suite.Suite } func (suite *ValueSchemaTestSuite) TestNewSchema() { var rawSchema *plugin.JSONSchema // TODO: Once https://gi...
leoeco2000/TestJava8
src/test/java/innerClass/Outer_this.java
<filename>src/test/java/innerClass/Outer_this.java<gh_stars>0 package test.java.innerClass; class OuterClass { private int testId = 1; public OuterClass() { System.out.println(testId); } class InnerClass { private int myTestId = 0; public InnerClass() { this.myTestId = OuterCl...
ParkinWu/leetcode
python/offer/62.py
# 0,1,,n-1这n个数字排成一个圆圈,从数字0开始,每次从这个圆圈里删除第m个数字。求出这个圆圈里剩下的最后一个数字。 # # 例如,0、1、2、3、4这5个数字组成一个圆圈,从数字0开始每次删除第3个数字,则删除的前4个数字依次是2、0、4、1,因此最后剩下的数字是3。 # #   # # 示例 1: # # 输入: n = 5, m = 3 # 输出: 3 # 示例 2: # # 输入: n = 10, m = 17 # 输出: 2 #   # # 限制: # # 1 <= n <= 10^5 # 1 <= m <= 10^6 # # 来源:力扣(LeetCode) # 链接:https://leetcode-cn.com...
hailongz/golang
features/vcode/vcode/table.go
<gh_stars>0 package vcode import ( "crypto/md5" "encoding/hex" "fmt" "math/rand" "time" "github.com/hailongz/golang/micro" ) func init() { rand.Seed(time.Now().UnixNano()) } func NewCode(app micro.IContext, length int) string { v := fmt.Sprintf("%d", rand.Int()) for len(v) < length { v = fmt.Sprintf("%s%...
medismailben/llvm-project
clang/test/CodeGen/sret.c
<gh_stars>1000+ // RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | grep -v 'sret.c' | count 4 struct abc { long a; long b; long c; long d; long e; }; struct abc foo1(void); struct abc foo2(); void bar() { struct abc dummy1 = foo1(); struct abc dummy2 = foo2(); }