repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
liyong03/YLCleaner
YLCleaner/Xcode-RuntimeHeaders/SpriteKit/SKEffectNode.h
<reponame>liyong03/YLCleaner /* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import <SpriteKit/SKNode.h> @class CIFilter; @interface SKEffectNode : SKNode { } - (void)dealloc; @property BOOL shouldCenterFilter; - (void)_flippedC...
3dhater/Racer
src/libs/qlib/qtimer.cpp
<reponame>3dhater/Racer<filename>src/libs/qlib/qtimer.cpp /* * QTimer - Simple timing things * 11-08-94: Created! (from the Amiga!) * 01-04-99: Using VTraces for finer granularity * 10-05-99: Using UST for even more granularity (nanoseconds) * 03-03-01: Modified to use timeGetTime() on Win32; better resolution. *...
viktorpts/FlyJS
js/components/PlayerControl.js
import Component from './Component.js'; import ServiceLocator from '../utility/ServiceLocator.js'; export default class PlayerControl extends Component { constructor(owner, input) { super(owner); this.input = input; ServiceLocator.Remote.registerControls(input); } update() { ...
MenSeb/react-cubes-galaxy
src/components/System/types.js
import { arrayOf, object } from 'prop-types' export default { elements: arrayOf( object ).isRequired }
wonderfulm3/stepper-form
library/src/main/java/io/tammen/stepper/widget/mobile/exception/StepperElementException.java
<filename>library/src/main/java/io/tammen/stepper/widget/mobile/exception/StepperElementException.java package io.tammen.stepper.widget.mobile.exception; /** * Created by <NAME> on 3/26/2018. */ public class StepperElementException extends Exception { private final AnnotationErrorCode annotationErrorCode; ...
Klotzi111/nmuk
src/main/java/de/siphalor/nmuk/impl/duck/IKeyBinding.java
<reponame>Klotzi111/nmuk /* * Copyright 2021 Siphalor * * 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...
Git-liuxiaoyu/cloud-hospital-parent
cloud-hospital-parent/cloud-hospital-nacos-parent/worker-service/src/main/java/com/example/workerservice/service/api/division/IAddDivisionCommandHandler.java
<gh_stars>0 package com.example.workerservice.service.api.division; import com.example.workerservice.service.command.division.add.AddDivisionCommand; /** * 接口 - IAddDivisionCommandHandler * * @author Alnwick11AtoZ 松 * @date 2021/6/28 */ public interface IAddDivisionCommandHandler { void action(AddDivisionC...
Geomatys/constellation
modules/library/api/src/main/java/org/constellation/process/converter/MapToCRSProcessReferenceConverter.java
package org.constellation.process.converter; import org.apache.sis.util.UnconvertibleObjectException; import org.constellation.process.CRSProcessReference; import java.util.LinkedHashMap; import org.geotoolkit.feature.util.converter.SimpleConverter; /** * @author <NAME> (Geomatys). */ public class MapToCRSProcessRe...
Gratzi/Telescope
packages/pegg-cards/package.js
<filename>packages/pegg-cards/package.js Package.describe({ name: 'pegg-cards', version: '0.0.1', // Brief, one-line summary of the package. summary: '', // URL to the Git repository containing the source code for this package. git: '', // By default, Meteor will default to using README.md for documentati...
jan2000/curl
src/tool_writeout.c
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
math715/arts
leetcode/236.lowest-common-ancestor-of-a-binary-tree.cpp
<reponame>math715/arts /* * @lc app=leetcode id=236 lang=cpp * * [236] Lowest Common Ancestor of a Binary Tree */ // @lc code=start /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) ...
donkeycart/ralasafe
src/main/java/org/ralasafe/db/DBPower.java
/** * Copyright (c) 2004-2011 <NAME>(<NAME>), http://www.ralasafe.com * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php */ package org.ralasafe.db; import java.io.FileInputStream; import java.sql.Connection; import java.sql.SQLException; import java.util.Collection; import java.ut...
lazyxu/kfs
warpper/grpcweb/rootdirectory/socket.go
package rootdirectory import ( "bufio" "encoding/binary" "fmt" "io" "net" "os" "strconv" "github.com/golang/protobuf/proto" "github.com/lazyxu/kfs/kfscore/object" "github.com/lazyxu/kfs/warpper/grpcweb/pb" "github.com/lazyxu/kfs/kfscore/storage" "github.com/sirupsen/logrus" ) const ( MethodInvalid i...
MrSylar59/Planning-des-coursiers
src/modele/Solution.java
<reponame>MrSylar59/Planning-des-coursiers<filename>src/modele/Solution.java package modele; import java.io.Serializable; import java.util.LinkedList; import java.util.List; import java.util.Objects; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import...
putrafirman/SimpleGame-JavaWalking
lib/lwjgl-2.9.1/lwjgl-source-2.9.1/src/native/macosx/context.h
/* * Copyright (c) 2002-2008 LWJGL Project * 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 source code must retain the above copyright * notice, this list of ...
numberen/apollo-platform
ros/actionlib/src/actionlib/action_server.py
<reponame>numberen/apollo-platform #! /usr/bin/env python # Copyright (c) 2009, <NAME>, Inc. # 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 source code must retain th...
org-papaja/adminfly-project
adminfly/modules/mongodb-viewer/src/main/java/org/papaja/adminfly/module/mdbv/mysql/mapper/RowMapper.java
<reponame>org-papaja/adminfly-project package org.papaja.adminfly.module.mdbv.mysql.mapper; import org.papaja.adminfly.commons.dao.mapper.AbstractMapper; import org.papaja.adminfly.module.mdbv.mysql.dto.RowDto; import org.papaja.converter.Format; import org.papaja.adminfly.module.mdbv.mysql.entity.Row; import org.spri...
kukkalli/oai-cn5g-fed
component/oai-amf/src/ngap/ngapIEs/RanNodeName.hpp
<reponame>kukkalli/oai-cn5g-fed /* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to...
jovido-projects/jovido-webseed
src/main/java/biz/jovido/seed/content/LinkAttribute.java
package biz.jovido.seed.content; /** * @author <NAME> */ public class LinkAttribute extends Attribute { @Override public Payload createPayload() { return new LinkPayload(); } }
npocmaka/Windows-Server-2003
ds/adsi/router/cdso.cxx
<reponame>npocmaka/Windows-Server-2003<gh_stars>10-100 //--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 1995 // // File: cdso.cxx // // Contents: Microsoft OleDB/OleDS Data Source Object for ADSI // // ...
hwxiasn/archetypes
ygb/ygb-cms/src/main/java/com/qingbo/ginkgo/ygb/cms/repository/ArticlePublishTaskRepository.java
package com.qingbo.ginkgo.ygb.cms.repository; import com.qingbo.ginkgo.ygb.base.repository.BaseRepository; import com.qingbo.ginkgo.ygb.cms.entity.ArticlePublishTask; public interface ArticlePublishTaskRepository extends BaseRepository<ArticlePublishTask> { }
idorom/Library-Project
src/Model/Review.java
package Model; import java.io.Serializable; public class Review implements Serializable { private static final long serialVersionUID = 6000L; /** the review Paragraph.**/ private String readerFirstName; /** the review Paragraph.**/ private String readerLastName; /** the review Paragr...
letmeupgradeya/kibana
x-pack/plugins/maps/public/components/widget_overlay/layer_control/layer_toc/view.js
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import _ from 'lodash'; import React from 'react'; import { EuiDragDropCont...
gengwg/leetcode
101_symmetric_tree.py
<gh_stars>1-10 """ 101 Symmetric Tree Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But the following [1,2,2,null,3,null,3] is not: 1 / \ 2 2 \ \ 3 ...
ska-telescope/lmc-base-classes
setup.py
#!/usr/bin/env python import os import sys import setuptools setup_dir = os.path.dirname(os.path.abspath(__file__)) release_filename = os.path.join(setup_dir, "src", "ska_tango_base", "release.py") exec(open(release_filename).read()) # prevent unnecessary installation of pytest-runner needs_pytest = {"pytest", "tes...
KaiSta/SpeedyGo
traceReplay/detector/preciseTsanee/ptsanee.go
<reponame>KaiSta/SpeedyGo<gh_stars>1-10 package ptsanee import ( "fmt" "github.com/xojoc/bitset" "../../util" algos "../analysis" "../report" "../traceReplay" ) type ListenerAsyncSnd struct{} type ListenerAsyncRcv struct{} type ListenerDataAccess struct{} type ListenerGoFork struct{} type ListenerGoWait struc...
dennissoftman/CleanEngine
include/uimanager.hpp
<gh_stars>0 #ifndef UIMANAGER_HPP #define UIMANAGER_HPP #include "renderer.hpp" struct ButtonData { int id; // button identifier }; typedef void(*OnButtonPressedCallback)(const ButtonData &); class UIManager { friend class Renderer; public: virtual ~UIManager() {} virtual void init() = 0; virt...
matias-gonz/AlgoBlocks
src/main/java/edu/fiuba/algo3/interfaz/controladores/BotonABGAHandler.java
<reponame>matias-gonz/AlgoBlocks<filename>src/main/java/edu/fiuba/algo3/interfaz/controladores/BotonABGAHandler.java<gh_stars>0 package edu.fiuba.algo3.interfaz.controladores; import edu.fiuba.algo3.interfaz.vista.SectorBloquesDisponibles; import edu.fiuba.algo3.interfaz.vista.botoneras.BotonGAPersonalizado; import ja...
SudoHead/atlas
Atlas/src/atlas/view/SimEvent.java
<filename>Atlas/src/atlas/view/SimEvent.java package atlas.view; /** * This enum represents all the events that from the view. */ public enum SimEvent { START, STOP, EXIT, ADD, EDIT, STOP_EDIT, CENTER, LOCK, SPEED_CHANGED, NEW_SIM, SAVE_SIM, SAVE_BODY, UPDATE_BODY,...
frank-dong-ms/sccl
sccl/language/collectives.py
<reponame>frank-dong-ms/sccl<gh_stars>0 from dataclasses import dataclass, field from sccl.language.ir import Buffer from sccl.language import * class Collective(): def __init__(self, num_ranks, chunk_factor, inplace): self.num_ranks = num_ranks self.chunk_factor = chunk_factor self.inplace...
usenixatc2021/SoftRefresh_Scheduling
linsched-linsched-alpha/arch/parisc/math-emu/dbl_float.h
/* * Linux/PA-RISC Project (http://www.parisc-linux.org/) * * Floating-point emulation code * Copyright (C) 2001 Hewlett-Packard (<NAME>) <<EMAIL>> * * This program 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...
seven332/rhino-android
src/org/mozilla/javascript/xml/XMLObject.java
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mozilla.javascript.xm...
volunL/Matterwiki4j
matterwiki-4j-boot/src/main/java/com/brainboom/matterwiki4jboot/security/service/TokenUserDetailsService.java
package com.brainboom.matterwiki4jboot.security.service; import com.brainboom.matterwiki4jboot.entity.Users; import com.brainboom.matterwiki4jboot.repository.UsersRepository; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.author...
lalaguozhe/Taurus
taurus-restlet/src/main/java/com/dp/bigdata/taurus/restlet/utils/DeployOptions.java
<filename>taurus-restlet/src/main/java/com/dp/bigdata/taurus/restlet/utils/DeployOptions.java package com.dp.bigdata.taurus.restlet.utils; /** * * DeployOptions * @author damon.zhu * */ public enum DeployOptions { DEPLOY, UNDEPLOY, }
romainfroidevaux/RealTimeEmbeddedConsole
doc/html/search/variables_b.js
var searchData= [ ['name',['name',['../a00035.html#a4ddd389d5fc1d96becd50015ee4c97ff',1,'shell_interpreter_cmd']]], ['next',['next',['../a00035.html#a4fcd250edcf6e7b55c4767686b3babaf',1,'shell_interpreter_cmd']]], ['nimask',['nimask',['../a00001.html#a8a1c8828c1a0f8dc03eb097d826caf4d',1,'aitc_ctrl']]], ['nipnd'...
gromgit/homebrew-oldcore
Formula/liblqr.rb
class Liblqr < Formula desc "C/C++ seam carving library" homepage "https://liblqr.wikidot.com/" license "LGPL-3.0" revision 1 head "https://github.com/carlobaldassi/liblqr.git", branch: "master" stable do url "https://github.com/carlobaldassi/liblqr/archive/v0.4.2.tar.gz" sha256 "1019a2d91f3935f1f8...
coreplane/expo
ios/Pods/Headers/Private/ABI40_0_0Yoga/ABI40_0_0yoga/ABI40_0_0YGConfig.h
<reponame>coreplane/expo<gh_stars>1-10 /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "ABI40_0_0Yoga-internal.h" #include "ABI40_0_0Yoga.h" struct YOGA_EXP...
tony810430/ozone
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/events/SingleThreadExecutor.java
<reponame>tony810430/ozone /* * 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...
acisternino/narjillos
src/main/java/org/nusco/narjillos/persistence/serialization/ThingAdapter.java
<reponame>acisternino/narjillos package org.nusco.narjillos.persistence.serialization; import org.nusco.narjillos.experiment.environment.FoodPellet; import org.nusco.narjillos.core.things.Thing; import org.nusco.narjillos.creature.Egg; import org.nusco.narjillos.creature.Narjillo; import com.google.gson.JsonParseExce...
julian-lai/useragent
lib/user_agent/browsers/amazon_music.rb
# frozen_string_literal: true class UserAgent module Browsers # AmazonMusic/17.7.2 Mozilla/5.0 (Linux; Android 8.1.0; 5059X Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36 # AmazonMusic/10.0.0 iPad8,9 CFNetwork/1220.1 Darwin/20.3.0 # AmazonMu...
wangsikai/learn
yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/core/file/src/main/java/com/lanking/uxb/service/file/cache/FileCacheService.java
package com.lanking.uxb.service.file.cache; import java.util.Collection; import java.util.List; import java.util.Map; import org.springframework.data.redis.core.ValueOperations; import org.springframework.stereotype.Service; import com.google.common.collect.Lists; import com.google.common.collect.Maps; im...
ichitaso/TwitterListEnabler
Twitter-Dumped/7.51.5/t1/_TtC9T1Twitter23LoadingGapTableViewCell.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <TFNUI/TFNTableViewCell.h> __attribute__((visibility("hidden"))) @interface _TtC9T1Twitter23LoadingGapTableViewCell : TFNTableViewCe...
ktsanter/instructor-tips
server/private/welcomeletter/scripts/configuration.js
<gh_stars>0 //------------------------------------------------------------------- // welcome letter configuration //------------------------------------------------------------------- // TODO: use profile pic in letter (option for a different one?) // TODO: add tiny editor for formatted message // TODO: finish help //-...
BuildJet/sat4envi
s4e-backend/src/main/java/pl/cyfronet/s4e/event/OnSendHelpRequestEvent.java
/* * Copyright 2020 ACC Cyfronet AGH * * 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 applicable law or agre...
kant/iDAAS-EventBuilder
src/main/java/io/connectedhealth_idaas/eventbuilder/pojos/edi/hipaa/E8.java
package io.connectedhealth_idaas.eventbuilder.pojos.edi.hipaa; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; public class E8 { private String E8_01_BlockIdentifier; private String E8_02_MovementAuthorityCode; public String toString() { return ReflectionToStringBuilder.toString(this);} }
nickbabcock/EECS381StyleCheck
clang-tools-extra/clang-tidy/modernize/UseEqualsDeleteCheck.cpp
<reponame>nickbabcock/EECS381StyleCheck //===--- UseEqualsDeleteCheck.cpp - clang-tidy-----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------...
shaojiankui/iOS10-Runtime-Headers
protocols/MusicUpNextSectionHeaderDelegate.h
<reponame>shaojiankui/iOS10-Runtime-Headers /* Generated by RuntimeBrowser. */ @protocol MusicUpNextSectionHeaderDelegate <NSObject> @optional - (void)addButtonPressedForSectionHeader:(MusicUpNextSectionHeaderView *)arg1; - (void)clearButtonPressedForSectionHeader:(MusicUpNextSectionHeaderView *)arg1; @end
KoJunHee/jeonju
node_modules/lab/lib/transform.js
<reponame>KoJunHee/jeonju // Load modules var Fs = require('fs'); // Declare internals var internals = { fileCache: {}, transforms: [{ ext: '.js', transform: null }] }; internals.prime = function (extension) { require.extensions[extension] = function (localModule, filename) { var src = Fs.rea...
bobmcwhirter/drools
drools-verifier/src/main/java/org/drools/verifier/components/FieldObjectTypeLink.java
<filename>drools-verifier/src/main/java/org/drools/verifier/components/FieldObjectTypeLink.java package org.drools.verifier.components; /** * * @author <NAME> */ public class FieldObjectTypeLink extends VerifierComponent { private static int index = 0; private int fieldId; private int objectTypeId;...
nobu/ruby-1.0
range.c
/************************************************ range.c - $Author: matz $ $Date: 1996/12/25 09:30:12 $ created at: Thu Aug 19 17:46:47 JST 1993 Copyright (C) 1993-1996 <NAME> ************************************************/ #include "ruby.h" VALUE mComparable; static VALUE cRange; extern VALUE cNumer...
youyouqiu/hybrid-development
clbs/src/main/java/com/zw/ws/entity/t808/location/LocationAttachOilTank.java
<filename>clbs/src/main/java/com/zw/ws/entity/t808/location/LocationAttachOilTank.java /** * Copyright (c) 2016 ZhongWei, Inc. All rights reserved. This software is the confidential and proprietary information of ZhongWei, Inc. * You shall not disclose such Confidential Information and shall use it only in accordance...
SimbaService/Simba
server/simbastore/src/com/necla/simba/server/simbastore/cassandra/CassandraHandler.java
/******************************************************************************* * Copyright 2015 <NAME>, <NAME>, <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 a...
whirvis/you-have-uno
game/game-client/src/main/java/csci4490/uno/client/state/HomeState.java
package csci4490.uno.client.state; import csci4490.uno.client.UnoGame; import csci4490.uno.client.UnoGameState; import csci4490.uno.client.gui.HomePanel; import csci4490.uno.dealer.UnoAccount; import csci4490.uno.dealer.UnoLogin; import org.jetbrains.annotations.NotNull; import java.io.IOException; public class Home...
jefernathan/Python
ex061.py
# Refaça o DESAFIO 051, lendo o primeiro termo e a razão de uma PA, mostrando os 10 primeiros termos da progressão usando a estrutura while. termo = int(input('Primeiro termo: ')) razao = int(input('Razão: ')) contador = 0 while contador < 10: print(termo, end=' ➔ ') termo += razao contador += 1 print('F...
alofrrr/C
somaValoresNaColuna11.c
<reponame>alofrrr/C #include <stdio.h> #include <stdlib.h> #include <locale.h> int main() { setlocale(LC_ALL, "Portuguese"); srand(time(NULL)); int m[30][11], i, j; printf("\t\tMatriz\n"); for(i=0; i<30; i++){ for(j=0; j<11; j++){ m[i][j] = (rand()%10);}} for(i=0; i<30; i++){ m[i][10] = 0;} printf("\nSoma dos valores a...
weihsiu/scala-dom-types
shared/src/main/scala/com/raquo/domtypes/generic/codecs/package.scala
<reponame>weihsiu/scala-dom-types package com.raquo.domtypes.generic package object codecs { // @TODO[Performance] Which of those methods could benefit from @inline annotation? We typically use those values typed as just `Codec` // String Codecs object StringAsIsCodec extends AsIsCodec[String] // Int Codec...
shawven/security
security-verification/src/main/java/com/github/shawven/security/verification/captcha/CaptchaProcessor.java
package com.github.shawven.security.verification.captcha; import com.github.shawven.security.verification.*; import com.github.shawven.security.verification.repository.VerificationRepositoryFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.imageio.ImageIO; import javax.servlet.http.HttpS...
gtorvald/gauge3panel
node_modules/@iconscout/react-unicons/icons/uil-stopwatch-slash.js
<gh_stars>100-1000 import React from 'react'; import PropTypes from 'prop-types'; const UilStopwatchSlash = (props) => { const { color, size, ...otherProps } = props return React.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: size, height: size, viewBox: '0 0 24 24', fill: c...
seemoo-lab/polypyus_pdom
export/model/org/eclipse/cdt/core/settings/model/ICExclusionPatternPathEntry.java
<reponame>seemoo-lab/polypyus_pdom<gh_stars>0 /******************************************************************************* * Copyright (c) 2005, 2007 Intel Corporation * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * whi...
jugglinmike/nanoc
lib/nanoc/cli/commands/watch.rb
<gh_stars>0 # encoding: utf-8 usage 'watch [options]' summary 'start the watcher' description <<-EOS Start the watcher. When a change is detected, the site will be recompiled. EOS module Nanoc::CLI::Commands class Watch < ::Nanoc::CLI::CommandRunner def run require 'listen' require 'path...
magicbrush/InteractiveMediaP5
p0-randomWalk/RandomWalk0/sketch.js
var ps; var psCount = 100; var stepPerDraw = 10000; var arrived; // 函数setup() :准备阶段 function setup() { createCanvas(200,200); ps = new Array(); arrived = new Array(); for(var i = 0;i<psCount;i++) { ps[i] = createVector(width/2,height/2); arrived[i] = false; } } // 函数draw():作画阶段 function draw() { fill(255,...
gdonald/cpama
ch18/e11/main.c
<filename>ch18/e11/main.c<gh_stars>0 #include <stdio.h> /* int f(int)[]; // functions can't return arrays int g(int)(int); // functions can't return functions int a[10](int); // array elements can't be functions */ int y2 = 13; int a2[1] = { 7 }; int *f(int x) { printf("x: %d\n", x); return a2; } int f2(int...
keyboardDrummer/Blender
modularLanguages/shared/src/main/scala/miksilo/modularLanguages/deltas/solidity/SolidityIntLiteralDelta.scala
<reponame>keyboardDrummer/Blender package miksilo.modularLanguages.deltas.solidity import miksilo.modularLanguages.core.deltas.path.NodePath import miksilo.modularLanguages.core.deltas.{Contract, Delta} import miksilo.languageServer.core.language.{Compilation, Language} import miksilo.languageServer.core.smarts.Constr...
aleattene/python-workbook
chap_05/exe_123_pig_latin_improved.py
<filename>chap_05/exe_123_pig_latin_improved.py """ The program extends exercise 122 (file 122_PingLatin), so that CAPITAL LETTERS and PUNCTUATION MARKS (commas, points, question marks, and exclamation marks) are correctly managed: - if a word begins with a CAPITAL letter, its PIG LATIN representation should begin ...
specs-feup/matisse
MatlabToCTester/src/org/specs/MatlabToCTester/Auxiliary/MatlabOptions.java
<reponame>specs-feup/matisse<gh_stars>0 /** * Copyright 2012 SPeCS Research Group. * * 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 * * ...
pablokawan/ABx
Include/sa/WeightedSelector.h
/** * Copyright 2017-2020 <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 * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, d...
haesleinhuepf/pyqode.core
pyqode/core/panels/marker.py
# -*- coding: utf-8 -*- """ This module contains the marker panel """ import logging from pyqode.core.api import TextDecoration from pyqode.core.api.panel import Panel from pyqode.core.api.utils import DelayJobRunner, TextHelper from qtpy import QtCore, QtWidgets, QtGui def _logger(): """ Gets module's logger ""...
ivan-kyosev-gs/legend-sdlc
legend-sdlc-server-shared/src/main/java/org/finos/legend/sdlc/server/error/BaseExceptionMapper.java
<filename>legend-sdlc-server-shared/src/main/java/org/finos/legend/sdlc/server/error/BaseExceptionMapper.java // Copyright 2021 <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 // /...
clchiou/garage
shipyard2/rules/third-party/lxml/build.py
<reponame>clchiou/garage<gh_stars>1-10 import shipyard2.rules.bases import shipyard2.rules.pythons shipyard2.rules.bases.define_distro_packages([ 'libxml2-dev', 'libxslt1-dev', ]) (shipyard2.rules.pythons.define_pypi_package('lxml', '4.6.3').build\ .depend('install') )
jgowdyelastic/kibana
src/core_plugins/kibana/public/context/api/utils/sorting.js
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
Vitingwrin/SigninClient
app/src/main/java/com/hellochiu/soap/CourseService.java
package com.hellochiu.soap; import org.ksoap2.serialization.SoapObject; public class CourseService { public static final String NONE = "none"; public static final String ADD_COURSE_SUCCESS = "加入成功"; private ServiceUtil util = new ServiceUtil(); public String getSelectedCourses(String stuId) { ...
Bhaskers-Blu-Org2/pmod
src/foundation_library/Expression.h
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:Expression.h ****/ #ifndef _EXPRESSION_DEFINED #define _EXPRESSION_DEFINED #include <foundation/interfaces/expression.h> #include <foundatio...
servicecatalog/oscm
oscm-unittests-base/javasrc/org/oscm/test/data/SupportedCountries.java
<filename>oscm-unittests-base/javasrc/org/oscm/test/data/SupportedCountries.java<gh_stars>10-100 /******************************************************************************* * Copyright FUJITSU LIMITED 2018 *******************************************************************************/ package org.oscm.test.da...
TheGenial/Java-Projects
PreJob-Task/RESTfulinPeace/src/main/java/com/arif/restfulinpeace/dao/PatientRepository.java
<filename>PreJob-Task/RESTfulinPeace/src/main/java/com/arif/restfulinpeace/dao/PatientRepository.java package com.arif.restfulinpeace.dao; import com.arif.restfulinpeace.model.Patient; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springfr...
dgarus/asto
src/test/java/com/artipie/asto/KeyTest.java
<gh_stars>0 /* * The MIT License (MIT) Copyright (c) 2020-2021 art<EMAIL> * https://github.com/artipie/asto/LICENSE.txt */ package com.artipie.asto; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.hamcrest.core.IsEqual; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.ap...
madang01/gitcodda
codda2/project/sample_base/server_build/src/main/java/kr/pe/codda/jooq/SbDb.java
/* * This file is generated by jOOQ. */ package kr.pe.codda.jooq; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import kr.pe.codda.jooq.tables.SbAccountSerarchTb; import kr.pe.codda.jooq.tables.SbBoardFilelistTb; import kr.pe.codda.jooq.tables.SbBoar...
LyonDon/Spring
test/src/SwordOffer/Solution52.java
<reponame>LyonDon/Spring package SwordOffer; /** * 请实现一个函数用来匹配包括'.'和'*'的正则表达式。模式中的字符'.'表示任意一个字符,而'*'表示它前面的字符可以出现任意次(包含0次)。 * 在本题中,匹配是指字符串的所有字符匹配整个模式。 * 例如,字符串"aaa"与模式"a.a"和"ab*ac*a"匹配,但是与"aa.a"和"ab*a"均不匹配 * @author Administrator */ public class Solution52 { public boolean match(char[] str, char[] pattern){ if...
smolnar82/cloudbreak
mock-infrastructure/src/generated/com/sequenceiq/mock/swagger/model/ApiServiceRef.java
package com.sequenceiq.mock.swagger.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.springframework.validation.annotation.Valida...
mengyangbai/leetcode
string/reconstructoriginaldigits.py
class Solution: def originalDigits(self, s): """ :type s: str :rtype: str """ res = "" res += "0"*s.count('z') res += "1"*(s.count('o')-s.count('z')-s.count('w')-s.count('u')) res += "2"*s.count('w') res += "3"*(s.count('h') - s.count('g')) ...
chengmaotao/xiyouShop
src/main/java/com/cms/entity/base/BaseAdminRole.java
<gh_stars>1-10 package com.cms.entity.base; import com.jfinal.plugin.activerecord.Model; import com.jfinal.plugin.activerecord.IBean; /** * Generated by JFinal, do not modify this file. */ @SuppressWarnings({"serial", "unchecked"}) public abstract class BaseAdminRole<M extends BaseAdminRole<M>> extends Model<M> imp...
directionless/google-cloud-ruby
google-cloud-logging/lib/google/cloud/logging/entry.rb
<gh_stars>1-10 # Copyright 2016 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
Bingwen-Hu/hackaway
projects/interview/others/change.cpp
<filename>projects/interview/others/change.cpp #include <vector> // coins = 1, 5, 10, 20, 50, 100 int change(std::vector<int> num_of_coins, int sum) { // sum = change(num_of_coins[i]-1, num-Ci) } int main() { return 0; }
openregister/openregister-java
src/test/java/uk/gov/register/serialization/RSFCreatorTest.java
package uk.gov.register.serialization; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import org.apache.commons.collections4.IteratorUtils; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import org.mockito.M...
origin-finkle/logs
internal/config/castinfight.go
<filename>internal/config/castinfight.go package config import ( "context" "fmt" "sync" "github.com/origin-finkle/logs/internal/logger" "github.com/origin-finkle/logs/internal/models" "github.com/origin-finkle/logs/internal/models/remark" "github.com/origin-finkle/logs/internal/wowhead" ) var cifMutex sync.RW...
alinakazi/apache-royale-0.9.8-bin-js-swf
royale-compiler/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/mxml/royale/MXMLRoyaleEmitter.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 ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); ...
jonnyzzz/phd-project
morse/DotNet/calculator/FunctionNodeMin.h
#pragma once #include "functionnode.h" class FunctionNodeMin : public FunctionNode { public: FunctionNodeMin(FunctionNode* left, FunctionNode* right); virtual ~FunctionNodeMin(void); public: virtual double evaluate(FunctionContext* cx); virtual bool canSimplify(FunctionContext* cx); virtual FunctionNode* simplif...
bioinsilico/3DBIONOTES
lib/tasks/swissvarentries.rake
namespace :swissvarentries do desc "Seeds SwissVar" localDB = Settings.GS_LocalDB localAppDB = Settings.GS_LocalAppDB #AminoDic = {'CYS'=>'C', 'ASP'=>'D', 'SER'=>'S', 'GLN'=>'Q', 'LYS'=>'K','ILE'=>'I', 'PRO'=>'P', 'THR'=>'T', 'PHE'=>'F', 'ASN'=>'N', 'GLY'=>'G', 'HIS'=>'H', 'LEU'=>'L', 'ARG'=>'R', 'TRP'=>'W',...
cerberus707/lab-python
Conteudo das Aulas/015/Exercicios/Exercicio 2.py
<filename>Conteudo das Aulas/015/Exercicios/Exercicio 2.py """ Dados n e uma seqüência de n números inteiros, determinar a soma dos números pares. """
spring2go/geekstore
src/test/java/io/geekstore/common/utils/TimeSpanUtilTest.java
<reponame>spring2go/geekstore<filename>src/test/java/io/geekstore/common/utils/TimeSpanUtilTest.java /* * Copyright (c) 2020 GeekStore. * All rights reserved. */ package io.geekstore.common.utils; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; /** * Created on Nov, 2020 by @aut...
stoys-io/stoys-python
tests/utils/scala_compat_test.py
<filename>tests/utils/scala_compat_test.py from stoys.utils.scala_compat import Map, Option, Seq, Some def test_option() -> None: assert Option(None) is None assert Option("foo") == "foo" assert Some("foo") == "foo" def test_seq() -> None: assert Seq.empty == [] assert Seq() == [] assert Seq...
andraantariksa/PlasmaEngine
Source/Core/Meta/VariantTypes.inl
<gh_stars>10-100 // MIT Licensed (see LICENSE.md). DoVariantType(String); DoVariantType(int); DoVariantType(uint); DoVariantType(float); DoVariantType(double); DoVariantType(bool); DoVariantType(Vec2); DoVariantType(Vec3); DoVariantType(Vec4); DoVariantType(Quat);
iTondy/gkccash_core
src/qml/build/moc_mnemonicmanager.cpp
/**************************************************************************** ** Meta object code from reading C++ file 'mnemonicmanager.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.1) ** ** WARNING! All changes made in this file will be lost! ****************************************************...
fancylou/o2oa
x_organization_assemble_control_alpha/jest/department.js
department_parameter = { root : common_parameter.host + '/x_organization_assemble_control/jaxrs/department', list_action : null, list_action_parameter : null, first : '(0)', last : '(0)', count : 20 }; function department_list_reload() { if (department_parameter.list_action) { department_parameter.list_action...
rerorero/meshtest
src/repository/discovery_consul_test.go
package repository import ( "testing" "github.com/stretchr/testify/assert" "github.com/hashicorp/consul/api" "github.com/rerorero/meshem/src/model" "github.com/rerorero/meshem/src/utils" ) func unregisterAll(t *testing.T, consul *utils.Consul) { nodes, _, err := consul.Client.Catalog().Nodes(nil) assert.NoEr...
jmabry/pyaf
tests/exog/random/random_exog_16_1280.py
import pyaf.tests.exog.test_random_exogenous as testrandexog testrandexog.test_random_exogenous( 16,1280);
LLcat1217/arangodb
tests/js/client/shell/api/explain.js
<reponame>LLcat1217/arangodb /* jshint globalstrict:false, strict:false, maxlen: 200 */ /* global db, fail, arango, assertTrue, assertFalse, assertEqual, assertNotUndefined */ // ////////////////////////////////////////////////////////////////////////////// // / @brief // / // / // / DISCLAIMER // / // / Copyright 20...
arhjaye/main
src/main/java/seedu/project/model/util/SampleDataUtil.java
package seedu.project.model.util; import java.util.Arrays; import java.util.Set; import java.util.stream.Collectors; import seedu.project.model.Name; import seedu.project.model.ProjectList; import seedu.project.model.project.Project; import seedu.project.model.tag.Tag; import seedu.project.model.task.Deadline; import...
codyroux/lean0.1
src/kernel/context.h
<gh_stars>1-10 /* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #pragma once #include <utility> #include "util/list.h" #include "util/optional.h" #include "kernel/expr.h" namespace lean { /** \brief An element of...
ClnViewer/ADB-Android-Viewer
src/ADBDriverDLL/src/Dialog/WINAPI/AdbListDialog/AdbListDialog.cpp
/* MIT License Android remote Viewer, GUI ADB tools Android Viewer developed to view and control your android device from a PC. ADB exchange Android Viewer, support scale view, input tap from mouse, input swipe from keyboard, save/copy screenshot, etc.. Copyright (c) 2016-2019 PS GitHub: ...
I-Hudson/InSightEngine
InSight/include/InSight/BaseRenderer.h
<filename>InSight/include/InSight/BaseRenderer.h<gh_stars>1-10 #pragma once #include "Shader/BaseShader.h" #include <vector> #include "Debug.h" class BaseRenderer { public: //Constructor BaseRenderer(); //Destructor ~BaseRenderer(); //add entity template<typename T, typename... TArgs> T* addShader(TArgs&&... ...