repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
jportway/shady-side
shader/src/test/scala/com/jsuereth/gl/shaders/TestMathTranslations.scala
<reponame>jportway/shady-side<filename>shader/src/test/scala/com/jsuereth/gl/shaders/TestMathTranslations.scala<gh_stars>10-100 package com.jsuereth.gl package shaders package testmathtranslation import org.junit.Test import org.junit.Assert._ import com.jsuereth.gl.math._ import com.jsuereth.gl.test.assertCleanEquals...
insphereapplication/rhodes
platform/shared/ruby/vm_eval.c
<filename>platform/shared/ruby/vm_eval.c /********************************************************************** vm_eval.c - $Author: yugui $ created at: Sat May 24 16:02:32 JST 2008 Copyright (C) 1993-2007 <NAME> Copyright (C) 2000 Network Applied Communication Laboratory, Inc. Copyright (C) 2000 Info...
Chromico/bk-base
src/api/upizza/common/errorcodes.py
<filename>src/api/upizza/common/errorcodes.py # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台:...
StudyDaedalus/ChatterBeta
app/src/main/java/com/blessingsoftware/chatterbeta/Adapter/NewFriendListAdapter.java
<gh_stars>0 package com.blessingsoftware.chatterbeta.Adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.TextView; import com.blessingsoftware.chatterbeta.Logs.Logs; import com.blessing...
gromgit/homebrew-oldcore
Formula/hblock.rb
class Hblock < Formula desc "Adblocker that creates a hosts file from multiple sources" homepage "https://hblock.molinero.dev/" url "https://github.com/hectorm/hblock/archive/v3.3.2.tar.gz" sha256 "35bd4af1dbae3b57de6cede6c05f3d4ce25227b33a53358ef47c76a491304eb0" license "MIT" bottle do root_url "https...
siu91/myboot
myboot-demo-ganxu/ganxu-core/src/test/java/org/siu/myboot/server/controller/DemoControllerTests.java
package org.siu.myboot.server.controller; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servle...
SoyaLeaf/calendarII
app/src/main/java/top/soyask/calendarii/ui/activity/LaunchActivity.java
package top.soyask.calendarii.ui.activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import top.soyask.calendarii.MainActivity; import top.soyask.calendarii.R; import top.soyask.calen...
linhaolin1/BlockServer
demo/plugins/exampleWeixinPlugin/src/main/java/com/lin/wechat/resp/WechatPayResp.java
<filename>demo/plugins/exampleWeixinPlugin/src/main/java/com/lin/wechat/resp/WechatPayResp.java package com.lin.wechat.resp; public class WechatPayResp { }
ParaParty/gugu-utils
src/main/java/com/warmthdawn/mod/gugu_utils/network/Messages.java
package com.warmthdawn.mod.gugu_utils.network; import com.warmthdawn.mod.gugu_utils.common.Enables; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper; import net.minecraftforge.fml.relauncher.Side; public class Messages { pub...
acamacho82/softlayer-python
SoftLayer/CLI/block/replication/failover.py
<gh_stars>1-10 """Failover to a replicant volume.""" # :license: MIT, see LICENSE for more details. import click import SoftLayer from SoftLayer.CLI import environment @click.command() @click.argument('volume-id') @click.option('--replicant-id', help="ID of the replicant volume") @click.option('--immediate', ...
shuframework/framework-common
common-base/src/main/java/com/shuframework/designpattern/creation_factory/factorymethod/DivideOperateFactory.java
<reponame>shuframework/framework-common package com.shuframework.designpattern.creation_factory.factorymethod; import com.shuframework.designpattern.creation_factory.cacl.AddOperate; import com.shuframework.designpattern.creation_factory.cacl.DivideOperate; import com.shuframework.designpattern.creation_factory.cacl.O...
noidname01/EndOfWeb
backend/routes/srcs/in/account/auth/handlePending.js
<filename>backend/routes/srcs/in/account/auth/handlePending.js const { dbCatch, ErrorHandler } = require('../../../../error') const Login = require('../../../../Schemas/user_login') const Pending = require('../../../../Schemas/user_pending') const Visual = require('../../../../Schemas/user_visual_new') const asyncHandl...
AlhonGelios/AO
com/microsoft/schemas/office/visio/x2012/main/MastersType.java
package com.microsoft.schemas.office.visio.x2012.main; import com.microsoft.schemas.office.visio.x2012.main.MasterShortcutType; import com.microsoft.schemas.office.visio.x2012.main.MasterType; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.net.URL; impor...
fratbots/trainhack
actors.go
package main type Actor struct { Class Class Position Position Energy Energy Behavior Behavior Interaction Interaction Hp int Mp int Weapons []Weapon ManaRegen int ImagePath string MustBeDeleted bool Direction Direction } type Behavior func() *Action type Interaction func(tar...
Duffleman/tflgame-go
server/db/pagination.go
package db import ( "fmt" "tflgame" ) var mappedOrder = map[string]string{ "oldest_first": "ASC", "newest_first": "DESC", } type Pagination struct { before, after *string order string limit int } var defaultPagination = Pagination{ order: "ASC", limit: 100, } func NewPagination(p *tflgame...
lindemann18/outfittery
src/app/shared/components/facebookSend/index.js
import angular from 'angular'; import ngFacebook from 'ng-facebook'; import referral from '../../services/resources/ps-referral'; import { COMPONENT_NAME, component } from './facebookSend.component'; require('./facebookSend.style'); const MODULE_NAME = 'ps-facebookSendComponent'; angular.module(MODULE_NAME, [ '...
jxg01713/zstack
header/src/main/java/org/zstack/header/core/Completion.java
package org.zstack.header.core; import org.zstack.header.errorcode.ErrorCode; public abstract class Completion extends AbstractCompletion { public Completion(AsyncBackup...backup) { super(backup); } public Completion() { super(); } public abstract void success(); ...
davidsli/boubei-tss
src/main/java/com/boubei/tss/um/action/ResourceAction.java
<reponame>davidsli/boubei-tss /* ================================================================== * Created [2009-08-29] by Jon.King * ================================================================== * TSS * ================================================================== * mailTo:<EMAIL> * Copyrigh...
BlackBeltPanda/ViaVersion
common/src/main/java/us/myles/ViaVersion/protocols/protocol1_10to1_9_3/storage/ResourcePackTracker.java
<reponame>BlackBeltPanda/ViaVersion package us.myles.ViaVersion.protocols.protocol1_10to1_9_3.storage; import lombok.Getter; import lombok.Setter; import lombok.ToString; import us.myles.ViaVersion.api.data.StoredObject; import us.myles.ViaVersion.api.data.UserConnection; @Getter @Setter @ToString public class Resour...
rcjetpilot/Mobile-UILibrary-iOS
Framework/DJIUILibrary.framework/Headers/DULLeadingBarViewController.h
<filename>Framework/DJIUILibrary.framework/Headers/DULLeadingBarViewController.h // // DULLeadingBarViewController.h // DJIUILibrary // // Copyright © 2016 DJI. All rights reserved. // #import <DJIUILibrary/DULSideBarViewController.h> /** * Subclass of DULSideBarViewController which manages the logic for pre-p...
zbzbhahae/androidworks
app/src/main/java/com/zb/review/rxj/bean/StudentModel.java
package com.zb.review.rxj.bean; import java.util.ArrayList; import java.util.List; public class StudentModel { static List<Student> students; public static void init() { students = new ArrayList<>(); for(int i=0; i<10; i++) { List<Course> list = new ArrayList<>(); list....
viyadb/viyadb
src/query/stats.cc
/* * Copyright (c) 2017-present ViyaDB 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 * * Unless required by applicable law or ...
chris-blanks-mf/find
webapp/core/src/test/js/spec/app/model/dependent-parametric-collection.js
/* * Copyright 2016-2017 Hewlett Packard Enterprise Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ define([ 'find/app/model/dependent-parametric-collection', 'resources/sunburst_test_data/dependent-parametric-co...
ldj01/espa-surface-reflectance
ledaps/ledapsSrc/src/include/header.h
<gh_stars>1-10 #ifndef HEADER_H #define HEADER_H #include "edips.h" #include "jsc.h" #include "ltwg.h" #include "tipsp.h" #include "siat.h" /* * ANSI X3.27-1978 American National Standard Magnetic * Tape Labels and File Structure for Information Interchange * pp 13-22 */ /* * Label #1 Information */ typede...
pivotalexperimental/screw-unit-server
spec/functional/functional_spec_server_starter.rb
require "rubygems" require "timeout" require "lsof" dir = File.dirname(__FILE__) $LOAD_PATH.unshift "#{dir}/../../lib" require "screw_unit" require "nokogiri" module WaitFor extend self def wait_for(time=5) Timeout.timeout(time) do loop do value = yield return value if value end ...
ScarfZapdos/conan-bge-questgen
src/downward/experiments/issue213/base-opt.py
#! /usr/bin/env python # -*- coding: utf-8 -*- import itertools import os from lab.environments import LocalEnvironment, MaiaEnvironment from downward.reports.compare import ComparativeReport import common_setup from common_setup import IssueConfig, IssueExperiment BENCHMARKS_DIR = os.environ["DOWNWARD_BENCHMARKS...
avalonmediasystem/react-structural-metadata-editor
dist/containers/WaveformContainer.js
<reponame>avalonmediasystem/react-structural-metadata-editor "use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exp...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/eclipse.pde.ui/3261.java
<filename>corpus/class/eclipse.pde.ui/3261.java /******************************************************************************* * Copyright (c) 2007, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License...
eaglelzy/myglide
library/src/main/java/com/lizy/myglide/load/resource/bitmap/BitmapDrawableDecoder.java
<reponame>eaglelzy/myglide<filename>library/src/main/java/com/lizy/myglide/load/resource/bitmap/BitmapDrawableDecoder.java package com.lizy.myglide.load.resource.bitmap; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import com.lizy.myglide.load....
tmatsuo/google-cloud-java
google-cloud-core/src/test/java/com/google/cloud/RetryParamsTest.java
<gh_stars>0 /* * Copyright 2015 Google Inc. 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 requi...
prezi/kannotator
testData/interpreter/primitiveParamsAndReturn/Test.java
package interpreter.primitiveParamsAndReturn; public class Test { public int intReturn(Object p1, Object p2) { return 0; } public void voidReturn(Object p1, Object p2) { } public Object objectReturn(Object p1, Object p2) { return null; } public void intParam(Object p1, in...
CaddyDz/Ruby
p1/ch6/exception.rb
class MyNewException < Exception end begin puts "About to raise exception..." raise MyNewException rescue MyNewException => e puts "Just raised an exception : #{e}" end
TheMrButcher/opengl_lessons
src/design_editor/dvb/SharedContext.cpp
/** * Copyright (c) 2018 <NAME> * This file is licensed under the terms of the MIT license. */ #include "SharedContext.h" #include <gamebase/serial/LoadObj.h> #include <gamebase/tools/MakeRaw.h> namespace gamebase { namespace editor { SharedContext::SharedContext( TreeView& treeView, Selector propertiesMe...
JLLeitschuh/vid
vid-app-common/src/test/java/org/onap/vid/services/VersionServiceTest.java
/*- * ============LICENSE_START======================================================= * VID * ================================================================================ * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved. * ============================================================...
Ernestyj/JStudy
src/main/java/onlinealgo/CoverPoints.java
<reponame>Ernestyj/JStudy package onlinealgo; import java.math.BigDecimal; /** * Created by v_yangjian02 on 2016/9/8. */ public class CoverPoints { public static void main(String[] args) { System.out.println("*****RESULT*****"); double[] nums = {0.1, 0.2, 0.3, 1.5, 1.6, 1.61, 9.8}; int ...
riversy/golang-course-training
level-004/exercise-003/main.go
package main import "fmt" func main() { x := [][]int{ {42, 43, 44, 45, 46}, {47, 48, 49, 50, 51}, {44, 45, 46, 47, 48}, {43, 44, 45, 46, 47}, } for i, v := range x { fmt.Println(i, v, len(v), cap(v)) } fmt.Printf("%T\t\t%v\t%v\n", x, len(x), cap(x)) fmt.Printf("%T\t\t%v\t%v\n", x, len(x), cap(x)) }
CodingLuoye/mianshizhongdian
src/main/java/com/self/bianlimap/UnsafeCurrentHashMap.java
<reponame>CodingLuoye/mianshizhongdian package com.self.bianlimap; import java.util.HashMap; import java.util.Hashtable; import java.util.Map; import java.util.Random; import java.util.concurrent.ConcurrentHashMap; /** * hashMap是线程不安全的,在多个线程同时对其进行读写的时候,会造成死循环 * Hashtable的大小增加到一定的时候,性能会急剧下降,因为迭代时需要被锁定很长的时间。 ...
ErhardSiegl/galleon
testsuite/src/test/java/org/jboss/galleon/universe/maven/test/MavenProducerInstallTestCase.java
/* * Copyright 2016-2019 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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://ww...
amc8391/mage
Mage.Sets/src/mage/cards/g/GuidedStrike.java
<gh_stars>1-10 package mage.cards.g; import java.util.UUID; import mage.abilities.effects.Effect; import mage.abilities.effects.common.DrawCardSourceControllerEffect; import mage.abilities.effects.common.continuous.BoostTargetEffect; import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; import mage....
siertech/stapi
src/main/java/request/RequestService.java
<gh_stars>0 package request; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.siertech.stapi.model.GenericService; @Service public class RequestService extends GenericService<Request> { @Autowired private RequestDAO requestDAO; ...
codegymdanang/CGDN-Demo-DigitalCubeRN
App/Containers/SignIn/index.js
<reponame>codegymdanang/CGDN-Demo-DigitalCubeRN import React, { Component } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { TouchableWithoutFeedback, View, Image, Text } from 'react-native' import LinearGradient from 'react-native-linear-gradient' import { ...
jackyluo/ilune-cas
PBX-Asterisk-Java/src/org/asteriskjava/manager/action/SipShowPeerAction.java
/* * Copyright 2004-2006 <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 agre...
Kirishikesan/haiku
src/tests/servers/app/lock_focus/LockFocusTest.cpp
/* * Copyright 2005-2007, Haiku Inc. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include <Application.h> #include <MessageRunner.h> #include <Window.h> #include <View.h> #include <stdio.h> static const uint32 kMsgUpdate = 'updt'; class View : public BView { public...
blendsdk/blendjs-sdk
etc/postinstall.js
var fs = require('fs'); var path = require('path'); var root = __dirname + '/../'; var mroot = root + '/node_modules'; var bcsroot = mroot + "/blend-class-system/lib"; var srcroot = root + "/src"; /** * Fixed the path per OS * @param {type} pth */ var fixPath = function (pth) { return pth.replace(/\\/g, path.sep...
josehu07/SplitFS
kernel/linux-5.4/drivers/hwmon/lm80.c
// SPDX-License-Identifier: GPL-2.0-or-later /* * lm80.c - From lm_sensors, Linux kernel modules for hardware * monitoring * Copyright (C) 1998, 1999 <NAME> <<EMAIL>> * and <NAME> <<EMAIL>> * * Ported to Linux 2.6 by <NAME> <<EMAIL>> */ #include <linux/module.h> #include <linux/init.h> #include <lin...
Dbevan/SunderingShadows
d/laerad/outpost/rooms/1.c
<gh_stars>10-100 #include <std.h> #include "../outpost.h" inherit STORAGE"coastline"; void create(){ ::create(); set_exits(([ "south" : "d/laerad/wasteland/waste2", "northeast" : ROOMS"2", ])); } void reset(){ ::reset(); if(!present("anton")){new(MOBS"anton")->move(TO);} if(!present("gateguard...
tejasvinu/hetu-core
presto-main/src/main/java/io/prestosql/execution/CachePredicate.java
/* * Copyright (C) 2018-2020. Huawei Technologies Co., Ltd. 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 * * U...
xlf19/PurchasingCenter
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/contract/jingfen/service/impl/JingFengServiceImpl.java
<filename>jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/contract/jingfen/service/impl/JingFengServiceImpl.java package org.jeecg.modules.contract.jingfen.service.impl; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import o...
FANsZL/hive
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/ptf/VectorPTFEvaluatorAbstractLeadLag.java
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
tramwayjs/cli
dev/config/services/templates.js
import { indexing, dependencies, classes, config, methods, routes, server, } from "../../services/templates"; const { ConvergenceTemplate, DependencyExposure, MultiClassDirectory, SingleClassDirectory, UnificationTemplate, } = indexing; const { DependencyTemplate, ...
KarlCyan/zeus
src/main/java/com/harmonycloud/zeus/bean/user/BeanResourceMenu.java
<reponame>KarlCyan/zeus package com.harmonycloud.zeus.bean.user; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import lombok.EqualsAn...
ihltx/spring-boot-starter-ihltx
src/main/java/com/ihltx/utility/redis/exception/RedisException.java
package com.ihltx.utility.redis.exception; public class RedisException extends Exception { /** * */ private static final long serialVersionUID = -203518099579136285L; public RedisException(String message) { super(message); } }
khamutov/intellij-scala
scala/scala-impl/testdata/resolve/class/dependent2/a.scala
<gh_stars>100-1000 trait CompilationUnits { self : Global => class CompilationUnit } class Global extends CompilationUnits { } class MainXMLExporter { class XMLExporter() { val global = new Global import global._ val units: <ref>CompilationUnit = null } }
Markoy8/Foundry
Components/LearningCore/Source/gov/sandia/cognition/learning/function/scalar/HardTanHFunction.java
<gh_stars>100-1000 /* * File: HardTanHFunction.java * Authors: <NAME> * Project: Cognitive Foundry * * Copyright 2016 Cognitive Foundry. All rights reserved. */ package gov.sandia.cognition.learning.function.scalar; import gov.sandia.cognition.math.AbstractDifferentiableUnivariateSca...
mdyd-dev/pos-cli
bin/pos-cli-init.js
#!/usr/bin/env node const program = require('commander'), degit = require('degit'), inquirer = require('inquirer'); const logger = require('../lib/logger'), report = require('../lib/logger/report'); const repos = { empty: 'mdyd-dev/directory-structure', 'Hello world': 'mdyd-dev/hello-world', 'Todo app': ...
Kowalski1337/softwareDesign
hw7/src/main/java/com/ifmo/vnaydyuk/animal/TextAnimal.java
package com.ifmo.vnaydyuk.animal; public abstract class TextAnimal implements Animal { private final String sound; private final String name; protected TextAnimal(String name, String sound) { this.name = name; this.sound = sound; } @Override public String getName() { ...
sunshengfei/workflow-corex
lib/src/main/java/com/fuwafuwa/workflow/agent/IViewProxy.java
package com.fuwafuwa.workflow.agent; import android.content.Context; import android.view.ViewGroup; import com.fuwafuwa.workflow.adapter.BaseFlowRecyclerViewHolder; import com.fuwafuwa.workflow.adapter.BaseRecyclerViewHolder; import com.fuwafuwa.workflow.adapter.IWorkFlowAdapter; import com.fuwafuwa.workflow.bean.IW...
Douglasdsm/web-css-html-javascript
array.js/atividade02.js
<reponame>Douglasdsm/web-css-html-javascript //Escreva uma função que receba a idade de uma pessoa em anos e retorne a mesma idade em dias. function idadeEmDias(idade){ dias = 365*idade return dias } const Douglas = idadeEmDias(24) const Deivid = idadeEmDias(23) console.log(Douglas); console.log(Deivid);
kanety/enum_ish
lib/enum_ish/dictionary_lookup.rb
module EnumIsh class DictionaryLookup def initialize(klass, enum, options = {}) @klass = klass @enum = enum @options = options end def call i18n = lookup_for(@klass).transform_keys { |k| k.to_s.to_sym } dict = {} if @enum.use?(:accessor) @enum.map...
oneHook/onehook_android_general_library
onehookinclibrary/src/main/java/com/onehook/view/confetti/ConfettiView.java
<gh_stars>10-100 package com.onehook.view.confetti; import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; impor...
DhairyaDoc/TelegramApi
src/main/java/org/telegram/api/input/sticker/set/TLInputStickerSetId.java
<reponame>DhairyaDoc/TelegramApi package org.telegram.api.input.sticker.set; import org.telegram.tl.StreamingUtils; import org.telegram.tl.TLContext; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; /** * @author <NAME> * @version 1.0 * @brief TODO * @date 07 of July of 2015 ...
OxanaPeregud/Course-Java-Enterprise-Maven
src/main/java/com/peregud/sessionfactory/dao/impl/DAOPersonImpl.java
package com.peregud.sessionfactory.dao.impl; import com.peregud.sessionfactory.dao.DAOPerson; import com.peregud.sessionfactory.exceptions.DaoException; import com.peregud.sessionfactory.model.Person; import org.hibernate.ReplicationMode; import java.sql.SQLException; public class DAOPersonImpl extends AbstractDAO<P...
baracil/perobobbot
lib/perobobbot.twitch/perobobbot.twitch.eventsub.api/src/main/java/perobobbot/twitch/eventsub/api/event/PollChoices.java
package perobobbot.twitch.eventsub.api.event; import com.fasterxml.jackson.annotation.JsonAlias; import lombok.NonNull; import lombok.Value; @Value public class PollChoices { @NonNull String id; @NonNull String title; @JsonAlias("bits_votes") int bitsVotes; @JsonAlias("channel_points_votes") i...
reels-research/iOS-Private-Frameworks
CalendarNotification.framework/EKTravelEngineAgendaEntry.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CalendarNotification.framework/CalendarNotification */ @interface EKTravelEngineAgendaEntry : NSObject { NSString * _agendaEntryIdentifier; NSObject<OS_dispatch_queue> * _callbackQueue; bool _dismissed; id /* block */ _entryS...
tizenorg/framework.web.web-ui-fw
tests/unit-tests/virtuallist/virtuallist-tests.js
<filename>tests/unit-tests/virtuallist/virtuallist-tests.js /* * Unit Test: Virtual list * * <NAME> <<EMAIL>> */ $( document ).ready( function () { module( "Virtual List"); function startVirtualListTest(){ var $vlContainer = $( "ul.ui-virtual-list-container" ), $vlElements = $( "ul.ui-virtual-list-contain...
jianlilu/thooo
apache-tomcat-6.0.44ForThoPM/work/Catalina/localhost/_/org/apache/jsp/WEB_002dINF/views/modules/act/actModelList_jsp.java
<filename>apache-tomcat-6.0.44ForThoPM/work/Catalina/localhost/_/org/apache/jsp/WEB_002dINF/views/modules/act/actModelList_jsp.java<gh_stars>0 package org.apache.jsp.WEB_002dINF.views.modules.act; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class actModelList_jsp exte...
katarineaid/admin-BGS-E
client/src/common/components/map/router/createMapRouter.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { matchPath } from 'react-router-dom'; function createMapRouter(ComposedComponent) { const rootPath = '/admin/view'; class MapRouter extends Component { static propTypes = { children: PropTypes.node, history: Pro...
ScalablyTyped/SlinkyTyped
r/react-notifications-component/src/main/scala/typingsSlinky/reactNotificationsComponent/components/ReactNotificationsComponent.scala
package typingsSlinky.reactNotificationsComponent.components import slinky.web.html.`*`.tag import typingsSlinky.StBuildingComponent import typingsSlinky.reactNotificationsComponent.mod.ReactNotificationProps import typingsSlinky.reactNotificationsComponent.mod.default import org.scalablytyped.runtime.StObject import ...
bbbart/pyfmodex
pyfmodex/channel_group.py
"""A submix in the mixing hierarchy akin to a bus that can contain both :py:class:`~pyfmodex.channel.Channel` and :py:class:`~pyfmodex.channel_group.ChannelGroup` objects. """ from ctypes import * from .channel_control import ChannelControl from .globalvars import DLL as _dll from .globalvars import get_class from .u...
elix22/Urho3D
Source/ThirdParty/angle/src/libANGLE/validationGL31_autogen.h
// GENERATED FILE - DO NOT EDIT. // Generated by generate_entry_points.py using data from gl.xml and wgl.xml. // // Copyright 2019 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // validationGL31_autogen.h: // ...
blc-cruise/ggongsul-api
ggongsul/core/renderers.py
<gh_stars>1-10 from django.shortcuts import resolve_url from django.template import loader from rest_framework import serializers from rest_framework.renderers import HTMLFormRenderer class ImageHTMLFormRenderer(HTMLFormRenderer): def render_field(self, field, parent_style): if isinstance(field._field, se...
algostack/risk-engine
mmap/src/main/java/io/algostack/mmap/MMDoubleArrayImpl.java
package io.algostack.mmap; import java.nio.DoubleBuffer; public class MMDoubleArrayImpl implements DoubleArray { private final DoubleBuffer buffer; private final int size; public MMDoubleArrayImpl(DoubleBuffer buffer, int size) { this.buffer = buffer; this.size = size; } @Overri...
doumKim/surf-client-repo
src/postApi.js
import { baseUrl } from "./constants/GlobalVariables"; // 글 상세 페이지 데이터 조회 export function getWaveDetail(id) { return fetch(`${baseUrl}/post/wave/${id}`, { method: "GET", credentials: "include", mode: "cors", }); } export const getPhase = (id, cur) => fetch(`${baseUrl}/post/phaseWave/${id}/?phase=${c...
brunolauze/openpegasus-providers-old
src/Providers/UNIXProviders/StorageRedundancyGroup/UNIX_StorageRedundancyGroup_DARWIN.hxx
#ifdef PEGASUS_OS_DARWIN #ifndef __UNIX_STORAGEREDUNDANCYGROUP_PRIVATE_H #define __UNIX_STORAGEREDUNDANCYGROUP_PRIVATE_H #endif #endif
fjacobs/spring-data-examples
jpa/deferred/src/main/java/example/service/Customer1149Service.java
package example.service; import example.repo.Customer1149Repository; import org.springframework.stereotype.Service; @Service public class Customer1149Service { public Customer1149Service(Customer1149Repository repo) { } }
ankurshukla1993/IOT-test
coeey/com/google/android/gms/internal/zzfij.java
<gh_stars>1-10 package com.google.android.gms.internal; import java.io.IOException; public final class zzfij extends zzfhe<zzfij> implements Cloneable { private static volatile zzfij[] zzpkz; private String key; private String value; public zzfij() { this.key = ""; this.value = ""; ...
gedestroy/gateleen
gateleen-delta/src/test/java/org/swisspush/gateleen/delta/DeltaHandlerTest.java
package org.swisspush.gateleen.delta; import io.vertx.core.AsyncResult; import io.vertx.core.Future; import io.vertx.core.Handler; import io.vertx.core.MultiMap; import io.vertx.core.http.CaseInsensitiveHeaders; import io.vertx.core.http.HttpMethod; import io.vertx.core.http.HttpServerRequest; import io.vertx.ext.unit...
rhalbersma/gravon
src/scripts/transform/parse.py
<reponame>rhalbersma/gravon<filename>src/scripts/transform/parse.py # Copyright <NAME> 2018-2021. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import os import re from typing import Callable...
defeo/ff_compositum
flint/pq_nmod/embeddings.c
<reponame>defeo/ff_compositum #include "pq_nmod.h" #include "nmod_poly_extra.h" #include <flint/nmod_poly.h> #include <flint/nmod_vec.h> /************** EMBEDDING *****************/ /* Given x in A=k[X]/P and y in B=k[X]/Q, computes the image of xy in the compositum AB. x, y and the result are in dual form. ...
havettaa/aurelhavetta.eu
samples/3/usag/morepository/MOREPOSITORY/WebContent/ui5_routing/Detail.controller.js
jQuery.sap.require("com.tutorial.controllers.Detail" + m_urlVersion);
datdoan/jss
scripts/clean-canary-tags.js
<filename>scripts/clean-canary-tags.js const { execSync } = require('child_process'); // prune local tags execSync('git fetch origin --prune --prune-tags', { stdio: 'inherit' }); // fetch all tags from repository execSync('git fetch --all --tags -f', { stdio: 'inherit' }); const output = execSync('git tag', ...
Watch-Later/mfcmapi
core/sortlistdata/commentData.h
<filename>core/sortlistdata/commentData.h<gh_stars>100-1000 #pragma once #include <core/sortlistdata/data.h> namespace sortlistdata { class sortListData; class commentData : public IData { public: commentData(_In_opt_ const _SPropValue* lpOldProp) noexcept; static void init(sortListData* data, _In_opt_ cons...
matias-rivera/restobar
frontend/src/reducers/__tests__/table/tableUpdateReducer.test.js
import { TABLE_UPDATE_REQUEST, TABLE_UPDATE_SUCCESS, TABLE_UPDATE_FAIL, TABLE_UPDATE_RESET, } from "../../../constants/tableConstants"; import { tableUpdateReducer } from "../../tableReducers"; /* DATA */ const table = { id: 1, name: "<NAME>", occupied: false, createdAt: "2021-05-19T03:...
side-projects-42/INTERVIEW-PREP-COMPLETE
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/__MY_OPRIGINAL_DS/_Extra-Practice/03_recursion/python/02_greet.py
def greet2(name): print("how are you, ", name, "?") def bye(): print("ok bye!") def greet(name): print("hello, ", name, "!") greet2(name) print("getting ready to say bye...") bye() greet("adit")
io7m/cantoria
com.io7m.cantoria.changes.vanilla/src/main/java/com/io7m/cantoria/changes/vanilla/CMethodChangedFinality.java
/* * Copyright © 2017 <<EMAIL>> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AU...
knmcguire/gap_sdk
gvsoc/gvsoc/models/cpu/iss/include/rvXgap9.hpp
<reponame>knmcguire/gap_sdk<gh_stars>1-10 /* * Copyright (C) 2018 ETH Zurich and University of Bologna * * 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/lic...
PayalSasmal10/datastructures-algorithms
thread/singleThread.py
import threading def print_cube(num): print("cube:", num*num*num) def print_square(num): print("square:", num*num) t1 = threading.Thread(target=print_cube, args=(10,)) t2 = threading.Thread(target=print_square, args=(10,)) t1.start() t2.start()
ScalablyTyped/SlinkyTyped
o/office-js-preview/src/main/scala/typingsSlinky/officeJsPreview/Visio/Interfaces/DocumentData.scala
<gh_stars>10-100 package typingsSlinky.officeJsPreview.Visio.Interfaces import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** An interface describing the data returned by calling...
sul-dlss/sul_pub
lib/my_app_utf8.rb
# frozen_string_literal: true module MyAppUtf8 class SetNamesUtf8 def self.filter(_controller) suppress(ActiveRecord::StatementInvalid) do ActiveRecord::Base.connection.execute 'SET NAMES UTF8' end true end end end
JULIELab/jcore-dependencies
jcore-mallet-2.0.9/src/main/java/cc/mallet/classify/tui/Text2Vectors.java
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This software is provided under the terms of the Common Public License, version 1.0, as published by http://www.opensou...
MyPureCloud/platform-client-sdk-cli
build/gc/models/fieldlist.go
package models import ( "encoding/json" "strconv" "strings" ) var ( FieldlistMarshalled = false ) // This struct is here to use the useless readonly properties so that their required imports don't throw an unused error (time, etc.) type FieldlistDud struct { ...
JaneMandy/CS
sleep/engine/Block.java
package sleep.engine; import java.io.File; import java.io.Serializable; import java.util.ConcurrentModificationException; import sleep.engine.atoms.Goto; import sleep.runtime.Scalar; import sleep.runtime.ScriptEnvironment; import sleep.runtime.SleepUtils; public class Block implements Serializable { protected Step...
RedaMastouri/marvis
11 - Extra-- sonos snips voice app/tests/use_cases/test_resume_music_use_case.py
import pytest from mock import mock from snipssonos.entities.device import Device from snipssonos.use_cases.resume_music import ResumeMusicUseCase from snipssonos.use_cases.request_objects import ResumeMusicRequestObject from snipssonos.exceptions import NoReachableDeviceException @pytest.fixture def connected_devi...
BackboneBootstrap/backbonebootstrap-core
utils/html.js
<reponame>BackboneBootstrap/backbonebootstrap-core /*globals define*/ define( [ 'jquery' ], function( $ ) { 'use strict'; var html = {}; html.enable = function(selector, value) { if (value === undefined) value = true; var elem = $(selector); if (value === true ) { elem.removeAttr('disabled');...
DevInsideYou/tagless-final
todo/02-core/src/test/scala/com/devinsideyou/todo/crud/BoundarySuite.scala
package com.devinsideyou package todo package crud import cats._ final class BoundarySuite extends TestSuite { import BoundarySuite._ private type F[A] = Id[A] test("description should be trimmed") { val entityGateway: EntityGateway[F, Unit] = new FakeEntityGateway[F, Unit] { override def wr...
runvs/1hgj_352
impl/jamtemplate/common/tweens/tween_position.cpp
#include "tween_position.hpp" #include "linterp.hpp" namespace jt { Tween::Sptr TweenPosition::create(std::weak_ptr<DrawableInterface> obj, float time, jt::Vector2f valueStart, jt::Vector2f valueEnd) { return std::make_shared<TweenPosition>(obj, time, valueStart, valueEnd); } TweenPosition::TweenPosition(std...
minhvip2001/pythonproject
Week1_PyThonBasic/List/Ex1.py
<gh_stars>0 aLsit = [100, 200, 300, 400, 500] print(aLsit[::-1])
maciejg-git/vue-bootstrap-icons
dist-mdi/mdi/source-fork.js
<filename>dist-mdi/mdi/source-fork.js import { h } from 'vue' export default { name: "SourceFork", vendor: "Mdi", type: "", tags: ["source","fork"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"curre...
goutomroy/uva.onlinejudge
solved/10931.cpp
<filename>solved/10931.cpp<gh_stars>0 #include<stdio.h> #include<string.h> void main( ) { long n,i,a[500],j,m,k,sum; while(scanf("%ld",&n)==1 &&n!=0) { if(n==1) printf("The parity of %ld is %ld (mod 2).\n",n,n); else { k=0;sum=0;m=n; while(n!=1) { if(n%2==0) a[k++]=0; else a[k++]=1; n=n/2; } a[k++...
cacheflowe/haxademic
src/com/haxademic/demo/hardware/serial/Demo_LedStripLPD8806.java
package com.haxademic.demo.hardware.serial; import com.haxademic.core.app.P; import com.haxademic.core.app.PAppletHax; import com.haxademic.core.app.config.AppSettings; import com.haxademic.core.app.config.Config; import com.haxademic.core.debug.DebugView; import com.haxademic.core.draw.filters.pshader.BrightnessFilte...