repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
karlbohlmark/knockoff
bindings/enable.js
<reponame>karlbohlmark/knockoff var Binding = require('./binding') module.exports = enable; enable.prototype = Object.create(Binding.prototype) function enable (node, model, expr) { var self = this this.onchange(model, expr, function () { var val = self.evaluate(model, expr); if (val) { ...
darknight1050/BeatSaber-Quest-Codegen
include/Zenject/MemoryPoolExpandBinder_1.hpp
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: Zenject.FactoryArgumentsToChoiceBinder`1 #include "Zenject/FactoryArgu...
TribalDog/NiTEControls
Wrappers/NiteControls.c/Broadcaster.cpp
<filename>Wrappers/NiteControls.c/Broadcaster.cpp /***************************************************************************** * * * NiTE Controls 1.x Alpha * * Copyright (C) 2013 PrimeSense ...
VerkhovtsovPavel/BSUIR_Labs
Labs/MISOI/MISOI-2/src/by/bsuir/verpav/misoi/clustering/steps/ClusteringObjects.scala
<reponame>VerkhovtsovPavel/BSUIR_Labs<gh_stars>1-10 package by.bsuir.verpav.misoi.clustering.steps import java.awt.Color import java.awt.image.BufferedImage import javax.swing.{JFrame, JOptionPane} import scala.annotation.tailrec import scala.collection.immutable.IndexedSeq import scala.collection.mutable import scala...
ScalablyTyped/SlinkyTyped
r/react-svg/src/main/scala/typingsSlinky/reactSvg/reactSVGMod.scala
package typingsSlinky.reactSvg import typingsSlinky.react.mod.Component import typingsSlinky.reactSvg.anon.AfterInjection import typingsSlinky.reactSvg.anon.BeforeInjection import typingsSlinky.reactSvg.anon.HasError import typingsSlinky.reactSvg.typesMod.Props import typingsSlinky.reactSvg.typesMod.State import typin...
KHWeb19/Homework
jieunLee/spring/bank/src/main/java/com/example/bank/controller/homework/bank9/Hw3Controller.java
package com.example.bank.controller.homework.bank9; import com.example.bank.utility.bank9.Area; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.spring...
15218057878/summer-server-1
summer-db/src/main/java/cn/cerc/db/cache/Buffer.java
package cn.cerc.db.cache; public class Buffer extends CacheQuery { public Buffer() { super(); } public Buffer(Class<?> clazz) { super(); this.setKey(clazz.getName()); } public Buffer(Object... keys) { super(); StringBuffer str = new StringBuffer(); ...
78182648/blibli-go
app/admin/main/growup/dao/income/av_income_test.go
package income import ( "context" "testing" "github.com/smartystreets/goconvey/convey" ) func TestIncomeGetArchiveStatis(t *testing.T) { convey.Convey("GetArchiveStatis", t, func(ctx convey.C) { var ( c = context.Background() table = "av_income_daily_statis" query = "id > 0" from = int(0) l...
Kunstenpunt/havelovewilltravel
hlwtadmin/migrations/0025_auto_20200414_1705.py
<gh_stars>1-10 # Generated by Django 3.0 on 2020-04-14 15:05 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hlwtadmin', '0024_concertannouncement_seen_count'), ] operations = [ migrations.AddField( model_nam...
genisysram/odil
src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp
<gh_stars>10-100 /************************************************************************* * odil - Copyright (C) Universite de Strasbourg * Distributed under the terms of the CeCILL-B license, as published by * the CEA-CNRS-INRIA. Refer to the LICENSE file or to * http://www.cecill.info/licences/Licence_CeCILL-B_...
renatotn7/griphondb
distributed-v2/src/main/java/com/orientechnologies/orient/distributed/impl/coordinator/ODistributedCoordinator.java
package com.orientechnologies.orient.distributed.impl.coordinator; import com.orientechnologies.orient.distributed.impl.coordinator.transaction.OSessionOperationId; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.Timer; import java.util.concurrent.ConcurrentHashMap; imp...
rosesystems-smahn/rosesearch_clone
core/src/main/java/org/fastcatsearch/ir/query2/SearchQuery.java
package org.fastcatsearch.ir.query2; /** * term들을 and/or로 묶어서 clause를 만들어준다. * */ public class SearchQuery { private SearchClause searchClause; private SearchQueryTerm term; class OrClause { public OrClause(SearchClause c1, SearchClause c2){ } } class AndClause { public AndClause(SearchC...
expiritus2/dream-project-react
src/components/header/HeaderContainer.js
import React from "react"; import { useRedux } from "hooks"; import Header from "./Header"; const HeaderContainer = () => { const [app] = useRedux("app"); return <Header isLoggedIn={app.isLoggedIn} />; }; export default HeaderContainer;
Rubtsowa/modin
modin/core/execution/python/implementations/pandas_on_python/dataframe/dataframe.py
<filename>modin/core/execution/python/implementations/pandas_on_python/dataframe/dataframe.py # Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team li...
DazEB2/SimplePyScripts
fb2__parsing/extract_pictures_from_fb2/time_test.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from fb2_pictures__using_lxml import do as do_lxml from fb2_pictures__using_bs4 import do as do_bs4 from fb2_pictures__using_xml_expat import do as do_xml_expat from fb2_pictures__using_xml_etree import do as do_xml_etree from fb2_pictures__using...
danjpgriffin/totallylazy
test/com/googlecode/totallylazy/LenseTest.java
package com.googlecode.totallylazy; import com.googlecode.totallylazy.functions.Curried2; import com.googlecode.totallylazy.functions.Function1; import org.junit.Test; import static com.googlecode.totallylazy.Lense.lense; import static com.googlecode.totallylazy.numbers.Numbers.increment; import static org.hamcrest.C...
developedbyme/wprr
elements/signin/signinflow/Configuration.js
import Wprr from "wprr/Wprr"; import ProjectRelatedItem from "wprr/utils/project/ProjectRelatedItem"; export default class Configuration extends ProjectRelatedItem { constructor() { super(); this._prefix = null; this._doneCommands = null; this._navigationItem = null; } setProject(aProject) { su...
marshallbrain/pulsar-experiment-1
src/main/java/com/pulsar/ui/engine/vectors/LinkVector.java
package ui.engine.vectors; import java.awt.Shape; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.anno...
qinfengsa/golang-leetcode
data-structure/leetcode/random/weight_select.go
<reponame>qinfengsa/golang-leetcode package random import "math/rand" // WeightSelect 528. 按权重随机选择 // 给你一个 下标从 0 开始 的正整数数组 w ,其中 w[i] 代表第 i 个下标的权重。 // 请你实现一个函数 pickIndex ,它可以 随机地 从范围 [0, w.length - 1] 内(含 0 和 w.length - 1)选出并返回一个下标。选取下标 i 的 概率 为 w[i] / sum(w) 。 // 例如,对于 w = [1, 3],挑选下标 0 的概率为 1 / (1 + 3) = 0.25 (即,25...
factly/mande
server/test/dataset/format/testvars.go
package datasetformat import ( "errors" "regexp" "time" "github.com/DATA-DOG/go-sqlmock" ) var headers = map[string]string{ "X-User": "1", "X-Organisation": "1", } var DatasetFormat map[string]interface{} = map[string]interface{}{ "format_id": 1, "url": "test.url.com", } var datasetformatlist...
bs2609/fs2
src/common/httpserver/Headers.java
<reponame>bs2609/fs2 package common.httpserver; import java.io.IOException; import java.io.InputStream; import java.util.ArrayDeque; import java.util.Deque; import java.util.HashMap; import java.util.Map.Entry; import java.util.regex.Matcher; import java.util.regex.Pattern; import common.Util; /** * R...
RedTachyon/PettingZoo
pettingzoo/butterfly/knights_archers_zombies_v8.py
from .knights_archers_zombies.knights_archers_zombies import (env, manual_control, parallel_env, raw_env)
zdq1179169386/JavaStudy
basc_code/day03/src/cn/zdq/day03/demo02/MyInterfaceImpA.java
package cn.zdq.day03.demo02; //实现接口 //如果一个类没有实现接口中的所有抽象方法,那么这个类必须是抽象类,否则报错 public class MyInterfaceImpA implements MyInterface { @Override public void method() { System.out.println("实现接口的抽象方法"); } @Override public void methodDefault() { System.out.println("子类重写了接口的默认方法"); } }...
Lqingyu/syzkaller
fileutil/fileutil.go
<filename>fileutil/fileutil.go // Copyright 2015 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. package fileutil import ( "fmt" "io" "io/ioutil" "os" "path/filepath" "strconv" "sync" "syscall" "unsafe" ) var c...
robertoost/raytracing-renderer
src/materials/checkerboard_material.h
<reponame>robertoost/raytracing-renderer #pragma once namespace RaytracingRenderer { class CheckerboardMaterial : public Material { public: float3 odd_color; float3 even_color; inline void color( const Ray& r_in, const hit_record& rec, float3& attenuation ) const override { if (int(floor(rec.p.x) + f...
msansm1/medek-server
src/main/java/bzh/medek/server/rest/EditorService.java
package bzh.medek.server.rest; import java.util.ArrayList; import java.util.List; import javax.ejb.Stateless; import javax.inject.Inject; import javax.ws.rs.ApplicationPath; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import java...
EC-Snyk/ship
pkg/lifecycle/render/googlegke/render_test.go
package googlegke import ( "context" "encoding/base64" "fmt" "io/ioutil" "testing" "github.com/go-kit/kit/log" "github.com/golang/mock/gomock" "github.com/pmezard/go-difflib/difflib" "github.com/replicatedhq/libyaml" "github.com/replicatedhq/ship/pkg/api" "github.com/replicatedhq/ship/pkg/lifecycle/render/...
Yanci0/openGauss-server
src/include/access/subtrans.h
/* * subtrans.h * * openGauss subtransaction-log manager * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/include/access/subtrans.h */ #ifndef SUBTRANS_H #define SUBTRANS_H #include "access/clog.h" extern ...
hao-wang/Montage
js-test-suite/testsuite/581dac646b8077fbf63aa4fde353c8a4.js
<reponame>hao-wang/Montage load("201224b0d1c296b45befd2285e95dd42.js"); // Test handling of false return from a handler.set() hook. load("19d7bc83becec11ee32c3a85fbc4d93d.js"); var obj = {x: 1}; var p = new Proxy(obj, { set(target, key, value, receiver) { return false; } }); // Failing to set a property is a no-...
wangbinxiang/SaasMainFrontEnd
client-src/js/vendors/area/area-2.js
module.exports = {"52":{"id":"52","parentId":"2","name":"\u5317\u4eac"}};
d-artagnan-db/SafeServer
src/main/java/pt/uminho/haslab/saferegions/SharedResourcesIdentifiers.java
package pt.uminho.haslab.saferegions; public class SharedResourcesIdentifiers { public static String RELAY = "IORelay"; public static String BROKER = "SharemindMessageBroker"; public static String SCHEMA = "DatabaseSchema"; public static String CONFIG = "Config"; }
OpenBankingUK/conformance-suite
web/src/store/modules/config/loadDiscoveryTemplates.js
// https://stackoverflow.com/a/42191018/241993 if (process.env.NODE_ENV === 'test') { /* eslint-disable */ // Implement require.context for tests if (typeof require.context === 'undefined') { const fs = require('fs'); const path = require('path'); require.context = (base = '.', scanSubDirectories = f...
OpenIxia/ixnetwork_restpy
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/RTSPReply_template.py
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class RTSPReply(Base): __slots__ = () _SDM_NAME = 'RTSP_Reply' _SDM_ATT_MAP = { 'RESPONSEField0': 'RTSP_Reply.header.RESPONSE.field0-1', 'RESPONSESP': 'RTSP_Reply.header.RESPONSE.SP-2', 'RESPONSERTSP ST...
kisolab/astah_plugins_released
Template-based-UML-Checker_hatase2020/plug-in/src/main/java/umlcheker/Activator.java
<reponame>kisolab/astah_plugins_released package umlcheker; import javax.swing.JOptionPane; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import com.change_vision.jude.api.inf.AstahAPI; import com.change_vision.jude.api.inf.project.*; import com.change_vision.jude.api.inf.model.*...
kaocher82/the-buyback
src/main/java/com/thebuyback/eve/repository/TypeStockHistoryRepository.java
<filename>src/main/java/com/thebuyback/eve/repository/TypeStockHistoryRepository.java package com.thebuyback.eve.repository; import java.time.LocalDate; import java.util.List; import java.util.Optional; import com.thebuyback.eve.domain.stock.Hub; import com.thebuyback.eve.domain.stock.TypeStockHistory; import org.sp...
C2Talon/kolmafia
test/net/sourceforge/kolmafia/textui/parsetree/NumericValueTest.java
package net.sourceforge.kolmafia.textui.parsetree; import static net.sourceforge.kolmafia.textui.ScriptData.invalid; import static net.sourceforge.kolmafia.textui.ScriptData.valid; import static org.junit.jupiter.api.Assertions.assertInstanceOf; import java.util.Arrays; import java.util.List; import java.util.stream....
anmolnar/cloudbreak
core/src/test/java/com/sequenceiq/cloudbreak/service/altus/AltusMachineUserServiceTest.java
package com.sequenceiq.cloudbreak.service.altus; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyBoolean; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.times; import static org.mockito.Mockito.ve...
aplybeah/caseflow
app/jobs/sync_intake_job.rb
<filename>app/jobs/sync_intake_job.rb # frozen_string_literal: true # This job will fetch the number of contentions for every # EP known to Intake class SyncIntakeJob < CaseflowJob queue_as :low_priority application_attr :intake def perform # Set user to system_user to avoid sensitivity errors RequestSt...
weiwenqiang/GitHub
expert/GeekNews/app/src/main/java/com/codeest/geeknews/base/BaseFragment.java
<gh_stars>1-10 package com.codeest.geeknews.base; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.View; import android.view.ViewGroup; import com.codeest.geeknews.app.App; import com.codeest.geeknews.di.component.DaggerFragmentComponent; import com.codeest.geeknews.di.compone...
ryos-io/Rhino
rhino-core/src/main/java/io/ryos/rhino/sdk/reporting/LogEvent.java
/* Copyright 2018 Ryos.io. 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 writing, sof...
silberRus/karetskiy
chapter_004/src/test/java/ru/job4j/stock/StockTest.java
<filename>chapter_004/src/test/java/ru/job4j/stock/StockTest.java package ru.job4j.stock; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.junit.Assert.*; public class StockTest { @Test public void addOrder() { Sto...
Strassengezwitscher/Crowdgezwitscher
crowdgezwitscher/blog/serializers.py
from rest_framework import serializers from blog.models import BlogEntry class BlogSerializer(serializers.ModelSerializer): created_on = serializers.DateTimeField(format='%d.%m.%Y') created_by = serializers.ReadOnlyField(source='created_by.get_full_name') class Meta: model = BlogEntry fi...
ragrwal1/dinner-coding-time
build-scripts/worker-thread-pool.js
var preparseCode = require("./pre-parse.js"); var generatePartials = require("./generate-partials.js"); var updateCodehsTitles = require("./update-codehs-titles.js"); var addMetaDescriptionOpenGraph = require("./add-meta-description-open-graph.js"); var fakeDom = require("./fake-dom.js"); var fs = require("fs"...
Patriccollu/smooth
classes/threads/mutex.cpp
/* The smooth Class Library * Copyright (C) 1998-2016 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of "The Artistic License, Version 2.0". * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WIT...
CloobGD/OpenUnrealUtilities
Source/OUURuntime/Public/FlowControl/ExclusiveLock.h
<reponame>CloobGD/OpenUnrealUtilities // Copyright (c) 2021 <NAME> #pragma once #include "CoreMinimal.h" #include "ExclusiveLock.generated.h" DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnExclusiveLockStateChanged, UExclusiveLock*, Lock, bool, bIsLocked); /** * Object lock that only allows one object to access a...
efsavage/ajah
ajah-image/src/main/java/com/ajah/image/ImageUtils.java
<gh_stars>1-10 package com.ajah.image; /* * Copyright 2012 <NAME>, <EMAIL> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
jason1zhang/jetbrains_academy_java
Hyperskill_Stream_Filter.java
<gh_stars>0 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.util.stream.*; /** * * This problem is from Jetbrains Academy topic - Stream filtering * * @author <NAME> * @version 1.0 * @since 2022-05-06 * * Problem statement: * Omit...
dreamer888/zhihuinongmao
zhnm/zhnm-miniapp/api/mallapp/src/main/java/com/config/PagePlugin.java
<reponame>dreamer888/zhihuinongmao package com.config; import java.sql.Connection; import org.apache.ibatis.executor.statement.StatementHandler; import org.apache.ibatis.plugin.Intercepts; import org.apache.ibatis.plugin.Signature; @Intercepts({ @Signature( type= StatementHandler.class, ...
mxalbert1996/homebrew-fonts
Formula/font-hubballi.rb
<reponame>mxalbert1996/homebrew-fonts class FontHubballi < Formula head "https://github.com/google/fonts/raw/main/ofl/hubballi/Hubballi-Regular.ttf", verified: "github.com/google/fonts/" desc "Hubballi" desc "Monolinear typeface with an informal, friendly appearance" homepage "https://fonts.google.com/specimen/...
tanishiking/dotty
tests/pos/byname-implicits-12.scala
<reponame>tanishiking/dotty trait Foo[T] object Foo { implicit def unit: Foo[Unit] = ??? implicit def int: Foo[Int] = ??? implicit def pair[T, U](implicit ft: Foo[T], fu: Foo[U]): Foo[(T, U)] = ??? } class Bar object Bar { implicit def bar(implicit f: => Foo[(Int, (Int, Unit))]): Foo[Bar] = ??? } object Test ...
icgrp/pld2022
input_src/bnn512/operators/bc1_gen_1.cpp
<reponame>icgrp/pld2022<gh_stars>1-10 #include "../host/typedefs.h" const unsigned int bc1_1_0[] = {0xffec8126, 0x7e01645d, 0x07ed27d3, 0x67ef6490, 0xa643df5c, 0x01e79c89, 0xfff8080b, 0x7026e407, 0xfffdf6ff, 0x00441bad, 0xfb03ffd2, 0x01c6c047, 0x38040007, 0x737f300f, 0xc35c0806, 0x2064817e, 0x201c03bb, 0x6fc02d00, 0x1c...
kuisatz/b2argebilisim
public/jsinline/admin_osb.js
$(document).ready(function () { /** * easyui tree extend for 'unselect' event * @author <NAME> * @since 04/04/2016 */ $.extend($.fn.tree.methods,{ unselect:function(jq,target){ return jq.each(function(){ var opts = $(this).tree('options'); $(t...
aquaruiz/Java-OOP
Polymorphism - Exercise/wildFarm/Mammal.java
package wildFarm; import java.text.DecimalFormat; public abstract class Mammal extends Animal{ String livingRegion; public Mammal(String type, String name, Double weight, String livingRegion) { super(type, name, weight); this.livingRegion = livingRegion; } @Override public String toString() { DecimalFor...
scryinfo/dp
dots/binary/scry/client_imp.go
<reponame>scryinfo/dp // Scry Info. All rights reserved. // license that can be found in the license file. package scry import ( "errors" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" "github.com/scryinfo/dot/dot" "github.com/scryinfo/dp/dots/auth" curr "github.com/scryin...
sagelga/trashmelody
core/src/com/trashmelody/models/trashes/TrashType.java
<filename>core/src/com/trashmelody/models/trashes/TrashType.java package com.trashmelody.models.trashes; public enum TrashType { General, Dangerous, Wet, Recycle }
johnhurt/orgama
core/orgama/src/main/java/org/orgama/server/handler/PutInstanceHandler.java
<reponame>johnhurt/orgama /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.orgama.server.handler; import com.gwtplatform.dispatch.server.ExecutionContext; import org.orgama.server.SimpleDataServices; import org.orgama.shared.action.PutInstance; import org....
kgdunn/peer-review-system
review/migrations/0026_course_base_url.py
<filename>review/migrations/0026_course_base_url.py # -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-30 06:35 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('review', '0025_getallownsubmissionsphase...
souless94/main
unused/ViewTimetablePropertiesCommand.java
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import java.io.File; import java.util.List; import seedu.address.commons.core.Messages; import seedu.address.commons.core.index.Index; import seedu.address.logic.CommandHistory; import seedu.address.logic.commands.exceptions.Comma...
ViniciusMazon/easy-adopt
api/src/app/models/Addresses.js
const connection = require('../../database/connection'); module.exports = { async create(address) { await connection('addresses').insert(address); return; }, async edit(id, address) { await connection('addresses').where('id', id).update(address); return; }, };
abego/commons
abego-commons-base/src/main/java/org/abego/commons/polling/Polling.java
/* * MIT License * * Copyright (c) 2021 <NAME>, (<EMAIL>) * * 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...
coco-napky/material-ui-playground
src/svg-icons/image/view-compact.js
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageViewCompact = (props) => ( <SvgIcon {...props}> <path d="M3 19h6v-7H3v7zm7 0h12v-7H10v7zM3 5v6h19V5H3z"/> </SvgIcon> ); ImageViewCompact = pure(ImageViewCompact); ImageViewCompact.displayName = 'ImageVie...
dnxbjyj/python-basic
spider/nga_spider/nga_spider/spiders/spider.py
<gh_stars>1-10 # coding:utf-8 import scrapy from scrapy import Selector from scrapy import Request from nga_spider.items import TopicItem,ContentItem class NgaSpider(scrapy.Spider): name = 'NgaSpider' host = 'http://bbs.ngacn.cc' # start_urls是准备爬的初始页面 start_urls = ['http://bbs.ngacn.cc/thread.php...
gzxishan/OftenPorter
Porter-Core/src/test/java/cn/xishan/oftenporter/porter/local/mixin/HelloMixinToPorter.java
package cn.xishan.oftenporter.porter.local.mixin; import cn.xishan.oftenporter.porter.core.annotation.MixinTo; import cn.xishan.oftenporter.porter.core.annotation.PortIn; import cn.xishan.oftenporter.porter.core.annotation.PortStart; import cn.xishan.oftenporter.porter.core.base.OftenObject; import cn.xishan.oftenport...
igHunterKiller/ouroboros
Ouroboros/Source/oGPU/Tests/gpu_pipeline_state.cpp
<gh_stars>0 // Copyright (c) 2016 <NAME>. See License.txt regarding use. #include "gpu_pipeline_state.h" #include <oCore/countof.h> #include <oMesh/element.h> #include <VStest_buffer.h> #include <VStest_pass_through_color.h> #include <VStest_pos.h> #include <VStest_texture1d.h> #include <VStest_texture2d.h> #include ...
costanic/maestro
plugins/periodic.go
<reponame>costanic/maestro package plugins // Copyright (c) 2018, Arm Limited and affiliates. // SPDX-License-Identifier: Apache-2.0 // // 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 // //...
clintjhill/arc-workflows
src/sandbox/db/index.js
var fs = require('fs') var check = require('./_check-port') var path = require('path') var parse = require('@architect/parser') var dynalite = require('dynalite') var waterfall = require('run-waterfall') var dynamo = require('./_get-db-client') var getAttributeDefinitions = require('./create-table/_get-attribute-defin...
alehpineda/flask_bootcamp
02-Flask-basics/basic_routes.py
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return "hello puppies" @app.route('/information') def info(): return "Puppies are cute" if __name__ == "__main__": app.run()
artoriaschan/leetcode-algorithms
src/training/all/medium/91.numDecodings.js
/* * @Author: <EMAIL> * @Date: 2021-09-28 16:32:55 * @LastEditTime: 2021-09-28 16:53:25 * @LastEditors: <EMAIL> * @Description: https://leetcode-cn.com/problems/decode-ways/ */ /** * @param {string} s * @return {number} */ function numDecodings(s) { const n = s.length; const f = new Array(n + 1).fill(0); ...
TheShellLand/crossover-source
gnutls/nettle/siv-cmac.h
<gh_stars>1-10 /* siv-cmac.h AES-SIV, RFC5297 Copyright (C) 2017 <NAME> This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; ...
kstennettlull/dagster
python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/launcher_tests/test_secrets.py
<gh_stars>0 # pylint: disable=redefined-outer-name # pylint: disable=unused-argument # pylint: disable=unused-variable import json from collections import namedtuple from unittest.mock import MagicMock, patch import pytest Secret = namedtuple("Secret", ["name", "arn"]) @pytest.fixture def tagged_secret(secrets_mana...
pasmuss/cmssw
PhysicsTools/MVAComputer/src/ProcMatrix.cc
// -*- C++ -*- // // Package: MVAComputer // Class : ProcMatrix // // Implementation: // Variable processor to apply a matrix transformation to the input // variables. An n x m matrix applied to n input variables results in // m output variables. // // Author: <NAME> // Created: Sat Apr ...
likai121788501/libcommon
common/src/main/java/com/serenegiant/widget/AspectScaledGLView.java
<reponame>likai121788501/libcommon package com.serenegiant.widget; /* * libcommon * utility/helper classes for myself * * Copyright (c) 2014-2020 saki <EMAIL> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain ...
rafap19/Curso-Js
Curso_Js_Programador_a_bordo/Escopos/ex01/ex01.js
/* Escopo é oque define a visibilidade das variáveis e funções,dependendo do escopo da qual essas variáveis e funções pertencem elas podem ser ou não visíveis em outros lugares */ /* Escopo Global: é aquele que é declarado no arquivo principal do js,ou seja é acessível em toda a aplicação,neste caso declaramos a var n...
serjpetrenko/hound
spec/services/update_repo_status_spec.rb
require "rails_helper" describe UpdateRepoStatus do describe "#call" do it "updates the repo name" do expected_repo_name = "foo/bar" repo = create(:repo, :active) payload = double( "Payload", github_repo_id: repo.github_id, full_repo_name: expected_repo_name, pri...
tyang513/tyang513.github.io.example
gateway-zuul2/gateway-zuul2/src/main/java/com/talkingdata/framework/gateway/protocol/GatewayPushMessageSenderInitializer.java
package com.talkingdata.framework.gateway.protocol; import com.google.inject.Inject; import com.google.inject.Singleton; import com.netflix.zuul.netty.server.push.PushConnectionRegistry; import com.netflix.zuul.netty.server.push.PushMessageSender; import com.netflix.zuul.netty.server.push.PushMessageSenderInitializer;...
caribouW3/KITE-Hackathon
KITE-Common/src/main/java/com/cosmo/kite/stats/RTCIceCandidateStats.java
/* * Copyright (C) CoSMo Software Consulting Pte. Ltd. - All Rights Reserved */ package com.cosmo.kite.stats; import javax.json.Json; import javax.json.JsonObjectBuilder; import java.util.Map; /** * RTCIceCandidateStats, with attributes ip, port, protocol, candidateType, priority, url */ public class RTCIceCandi...
wpradnyana/andromda
andromda-utils/src/test/java/org/andromda/utils/DateUtilsHelperTest.java
package org.andromda.utils; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * */ public class DateUtilsHelperTest { /** * @throws Exception */ @Test public void testJavaToPerlFormat() throws Exception { final String[][] fixture = new String[][]{new String[]{...
my0k/go-competitive
lib/common/reverse_test.go
<gh_stars>1-10 package common import ( "reflect" "testing" ) func TestReverseMyself(t *testing.T) { testcases := []struct { title string arg, res []interface{} }{ { "int", []interface{}{0, 1, 2, 3, 4}, []interface{}{4, 3, 2, 1, 0}, }, { "float64", []interface{}{0.0, 1.1, 2.2, 3.3, 4.4}...
wangkaiwd/player
src/router/lazyLoading.js
<gh_stars>10-100 const lazyLoading = (dir) => () => import(`views/${dir}`); export default lazyLoading;
9ndres/Ray-Tracing-Gems-II
Chapter_14/include/Structures.h
<reponame>9ndres/Ray-Tracing-Gems-II /* Copyright (c) 2018-2021, NVIDIA CORPORATION. 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 ...
Prateekweb/marko
packages/marko/test/components-browser/fixtures-deprecated/widget-destroy-legacy/components/app-bar/widget.js
<reponame>Prateekweb/marko function Widget(config) { this.label = config.label; this.name = "app-bar"; var $el = this.$(); this.appendHtml = function(html) { $el.append(html); }; } Widget.prototype = {}; exports.Widget = Widget;
bazhenovc/WildMagic
LibMathematics/Distance/Wm5DistPoint3Frustum3.cpp
<filename>LibMathematics/Distance/Wm5DistPoint3Frustum3.cpp // Geometric Tools, LLC // Copyright (c) 1998-2012 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.1 (2010/10/01)...
jogeo/rally-openstack
tests/unit/common/services/barbican/test_secrets.py
<filename>tests/unit/common/services/barbican/test_secrets.py<gh_stars>0 # Copyright 2018 Red Hat, Inc. <http://www.redhat.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
DragonJoker/Ashes
source/ashes/renderer/D3D11Renderer/Command/Commands/D3D11BeginQueryCommand.cpp
/* This file belongs to Ashes. See LICENSE file in root folder. */ #include "Command/Commands/D3D11BeginQueryCommand.hpp" #include "Miscellaneous/D3D11QueryPool.hpp" #include "ashesd3d11_api.hpp" namespace ashes::d3d11 { BeginQueryCommand::BeginQueryCommand( VkDevice device , VkQueryPool pool , uint32_t query ...
fewwind/MyFirst
mvpdemo/src/main/java/incarmedia/com/mvpdemo/model/IUserInfoListener.java
<gh_stars>0 package incarmedia.com.mvpdemo.model; import java.util.List; import incarmedia.com.mvpdemo.bean.User; /** * Created by fewwind on 2016/1/27. */ public interface IUserInfoListener { void getUserInfoSuccess(User user,List<User> users); void getUserInfoFail(); }
sreekanth370/presto
presto-main/src/test/java/com/facebook/presto/sql/query/TestOrderedAggregation.java
/* * 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 writing, software * distribut...
arunthakur09/Shop_CRM
src/redux/actions/routesAction.js
<reponame>arunthakur09/Shop_CRM import { GET_ROUTES_DETAIL_REQUEST, UPDATE_ROUTES_DETAIL_REQUEST, DELETE_ROUTES_DETAIL_REQUEST, ADD_ROUTES_DETAIL_REQUEST, GET_ROUTESBYID_DETAIL_REQUEST } from './types'; export const getRoutesData= () => { return ({ type: GET_ROUTES_DETAIL_REQUEST, }) } exp...
open-pay/cfdi-base
src/main/java/mx/grupocorasa/sat/security/PublicKeyLoader.java
package mx.grupocorasa.sat.security; import mx.grupocorasa.sat.exceptions.KeyException; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certific...
aditiapratama/blender-compo-up
source/blender/python/intern/bpy_msgbus.c
/* * 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 Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
zhudebin/phoenix
phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.java
<reponame>zhudebin/phoenix<filename>phoenix-core/src/main/java/org/apache/phoenix/schema/types/PDouble.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 own...
eXl-Nic/eXl
include/gen/gridrule.hpp
<gh_stars>0 /* Copyright 2009-2021 <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, distrib...
ferno/t-a-i
src/segment.js
const { Rat } = require('./rat.js') const { Range } = require('./range.js') // A segment is a closed-open linear relationship between TAI and Unix time. // It should be able to handle arbitrary ratios between the two. // For precision, we deal with ratios of BigInts. // Segment validity ranges are inclusive-exclusive....
ksmonkey123/awaeUtils
src/main/java/ch/awae/utils/xml/XML.java
package ch.awae.utils.xml; import java.util.stream.Stream; import org.w3c.dom.Document; /** * XML Data Wrapper * * This class wraps a DOM Document for nice interaction with other components. <br> * * XML instances keep DOM Documents around internally. Therefore any mutation * performed by / on an XML instanc...
cpusoft/rpstir2
src/rpstir2-sync-core/rsync/rsync.go
<filename>src/rpstir2-sync-core/rsync/rsync.go package rsync import ( "strings" "time" model "rpstir2-model" "rpstir2-sync-core/sync" "github.com/cpusoft/goutil/belogs" "github.com/cpusoft/goutil/conf" "github.com/cpusoft/goutil/jsonutil" "github.com/cpusoft/goutil/rsyncutil" ) func InsertSyncLogFiles(syncL...
acejo2208/Drone_Segmentation
labelme/setup.py
from __future__ import print_function import distutils.spawn import os import re import shlex import subprocess import sys from setuptools import find_packages from setuptools import setup def get_version(): filename = "labelme/__init__.py" with open(filename) as f: match = re.search( r"...
HealthByRo/react-auth
src/index.js
<gh_stars>1-10 import AuthenticationProvider from './containers/AuthenticationProvider'; import Context from './containers/AuthenticationProvider/context'; import useAuthContext from './containers/AuthenticationProvider/useAuthContext'; import { removeAuthorizationTokenInHeaders } from './api'; import { setConfig } fro...
coderbot16/brachyura
brachyura/src/main/java/io/github/coolcrabs/brachyura/maven/MavenId.java
<reponame>coderbot16/brachyura<gh_stars>10-100 package io.github.coolcrabs.brachyura.maven; import java.security.InvalidParameterException; import java.util.Objects; public final class MavenId { public final String groupId; public final String artifactId; public final String version; public MavenId(S...
saranshbht/bsc-codes
semester-3/data-structures/assignment/assign1.cpp
<gh_stars>1-10 #include "SLLClass.cpp" #include "stackClass.cpp" #include "queueClass.cpp" #define QQ "q2.enqueue(q1.dequeue())" #define SQ "q2.enqueue(s.pop())" #define QS "s.push(q1.dequeue())" int main() { Queue<int> q1, q2; Stack<int> s; SLL<string> operations; int n, a, prev; cout << "Enter ...
chenbocong/FamilyLink
app/src/org/orange/familylink/data/UrgentMessageBody.java
<filename>app/src/org/orange/familylink/data/UrgentMessageBody.java package org.orange.familylink.data; import org.orange.familylink.data.Message.Code.Extra.Inform; /** * {@link Inform#URGENT URGENT} {@link Message}的{@link Message#body body} * @author <NAME> */ public class UrgentMessageBody extends MessageBody { ...
AIpynux/PAT
1103.cpp
<filename>1103.cpp #define _CRT_SECURE_NO_WARNING #include <iostream> #include <vector> #include <cstdio> #include <cmath> using namespace std; int maxn; int N, K, P; vector<int> fac,temp,ans; int maxfacNumberSum = 0; void DFS(int index,int nowK,int sum,int facNumberSum){ if (nowK > K || sum > N) ret...