repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
betajs/betajs-dynamics
src/partials/inner_template_partial.js
<filename>src/partials/inner_template_partial.js Scoped.define("module:Partials.InnerTemplatePartial", ["module:Handlers.Partial"], function(Partial, scoped) { var Cls = Partial.extend({ scoped: scoped }, function(inherited) { return { constructor: function(node, args, value) { ...
wokalski/Distraction-Free-Xcode-plugin
Archived/v1/WCDistractionFreeXcodePlugin/Headers/PlugIns/Xcode3UI/IDEAppIDFeatureDelegate-Protocol.h
<gh_stars>10-100 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @class DVTAppIDFeatures, DVTFuture; @protocol IDEAppIDFeatureDelegate @property(readonly) DVTAppIDFeatures *appIDFeatures; - (DVTFuture *)setAppIDFeatures:(DVTAppIDFeatu...
LaudateCorpus1/llvm-project
utils/bazel/llvm-project-overlay/mlir/build_defs.bzl
<filename>utils/bazel/llvm-project-overlay/mlir/build_defs.bzl # This file is licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """Rules and macros for MLIR""" def if_cuda_available(if_true...
lguohan/SDKLT
src/sal/libc/libc_vsnprintf.c
/*! \file libc_vsnprintf.c * * SDK implementation of vsnprintf. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the use of the accompanying Broadcom software. Your * us...
Pokecube-Development/Pokecube-Core
src/main/java/pokecube/core/interfaces/entity/impl/PersistantStatusEffect.java
<reponame>Pokecube-Development/Pokecube-Core package pokecube.core.interfaces.entity.impl; import java.util.Map; import java.util.Random; import java.util.logging.Level; import com.google.common.collect.Maps; import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap; import net.minecraft.entity.Entity; import n...
juniorsgithub/demboyz
demboyz/netmessages/svc_bspdecal.cpp
#include "svc_bspdecal.h" #include "base/bitfile.h" #include "base/jsonfile.h" #include "demofile/demojson.h" #include "netcontants.h" namespace NetHandlers { bool SVC_BSPDecal_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::SVC_BSPDecal* data) { bitbuf.ReadBitVec3Coord(data->pos...
janniklaskeck/FlatWaveNew
Source/FlatWave/Characters/FWFloatingDamageComponent.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Components/WidgetComponent.h" #include "FWFloatingDamageComponent.generated.h" UCLASS() class FLATWAVE_API UFWFloatingDamageComponent : public UWidgetComponent { GENERATED_BODY()...
rgolangh/cloud-credential-operator
vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/resources/carrier_constant.pb.go
<reponame>rgolangh/cloud-credential-operator<filename>vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/resources/carrier_constant.pb.go // Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/carrier_constant.proto package resources import ( fmt "fmt" math "math" ...
wubo0067/calmwu-go
example/time_test/test.go
package main import ( "fmt" "reflect" "time" "github.com/wubo0067/calmwu-go/utils" ) // https://stackoverflow.com/questions/48422482/how-to-convert-utc-to-india-local-time-using-golang // https://stackoverflow.com/questions/37237223/access-current-system-time-zone func greet() { defer utils.MeasureFunc()() fm...
mraitmaier/pyrus
runner.py
<filename>runner.py<gh_stars>0 """ runner.py - NOTE: this module should not be run as a standalone scripts, excepts for built-in tests. """ # HISTORY ##################################################################################################################### # # 1 Jun11 MR Initial ver...
james-curtis/whalefallcms
public/templates/assets/modules/default/book.js
<gh_stars>0 define(["jquery", "layer", "mescroll"], function ($, layer, MeScroll, undefined, undefined) { let Controller = { detail: function (type = "cartoon") { $("#cate").addClass("selected"); Date.prototype.format = function (fmt) { var o ...
tdiprima/code
recipes/Python/335029_Indent_text_like_email_clients/recipe-335029.py
<gh_stars>1000+ def LineIndent(text, indent, maxwidth=None): """ indent each new line with 'indent' """ if maxwidth: parts = [] for part in text.split('\n'): words = part.split(' ') lines = [] tmpline = '' for word in words: if len(...
codilime/ds-workflow_executor
deeplang/src/main/scala/io/deepsense/deeplang/doperables/spark/wrappers/params/AFTSurvivalRegressionParams.scala
/** * Copyright 2016, deepsense.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 ...
liqiangjava/lq-plat-link-parent
lq-plat-link-web/src/main/java/com/lq/plat/link/repository/InfoAccountRepository.java
<reponame>liqiangjava/lq-plat-link-parent package com.lq.plat.link.repository; import com.lq.plat.link.account.InfoAccount; import com.lq.plat.link.support.PlatFormRepository; import org.springframework.data.jpa.repository.Query; /** * 账户数据访问层 * @author 李强 * @version 1.0.0 * @date 2017/7/20 */ public interface I...
richung99/digitizePlots
venv/Lib/site-packages/nibabel/tests/test_nibabel_data.py
""" Tests for ``get_nibabel_data`` """ import os from os.path import dirname, realpath, join as pjoin, isdir from . import nibabel_data as nibd MY_DIR = dirname(__file__) def setup_module(): nibd.environ = {} def teardown_module(): nibd.environ = os.environ def test_get_nibabel_data(): # Test gett...
zwzhang121/OpenUnReID
openunreid/core/label_generators/kmeans.py
<filename>openunreid/core/label_generators/kmeans.py # Written by <NAME> import warnings import faiss import torch from ...utils.torch_utils import to_numpy, to_torch __all__ = ["label_generator_kmeans"] @torch.no_grad() def label_generator_kmeans(cfg, features, num_classes=500, cuda=True, **kwargs): assert ...
ruby232/web-standard-functions
dist/lib/math/mod.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mod = void 0; var operation_1 = require("./operation"); /** * Return the result of `operand1` modulo `operand2` operation * @param operand1 First operand * @param operand2 Second operand */ exports.mod = operation_1.defineBinaryOpe...
sourav-majumder/qtlab
scripts/vibhor/making_a_VNA.py
from constants import * from ZurichInstruments_UHFLI import ZurichInstruments_UHFLI import sys import os import shutil import qt import progressbar import numpy as np import time uhf = ZurichInstruments_UHFLI('dev2232')
vbidin/p2p-dns
EagleDNS/src/se/unlogic/eagledns/plugins/zonereplicator/ReplicationClientPlugin.java
package se.unlogic.eagledns.plugins.zonereplicator; import java.rmi.ConnectException; import java.rmi.NotBoundException; import java.rmi.RemoteException; import java.rmi.UnknownHostException; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; import java.util.List; import java.util.Ti...
bobqiu/mpvue-weex
src/elements/x-pay/appPay.js
<filename>src/elements/x-pay/appPay.js export default { async appWxPay (jsThis, paras, orderId) { var response = await jsThis.$api.httpPost('api/pay/WechatAppPay', paras) if (response.status === 1) { var orderInfo = response.result uni.requestPayment({ provider: 'wxpay', orderInfo:...
gravity-addiction/nstack-monorepo
api/config.samples/squareup.js
<reponame>gravity-addiction/nstack-monorepo config = { squareup: { apiSandboxUrl: 'https://connect.squareupsandbox.com/', apiSandboxAppToken: '<PASSWORD>', apiProdUrl: 'https://connect.squareup.com/', apiProdAppToken: '<PASSWORD>', dbTables: { squareupOAuth: 'squareup.oauth_tokens', ...
issue9/orm
core/core_test.go
<reponame>issue9/orm // SPDX-License-Identifier: MIT package core import ( "testing" "github.com/issue9/assert/v2" "github.com/issue9/orm/v4/internal/flagtest" ) func TestMain(m *testing.M) { flagtest.Main(m) } func TestPKName(t *testing.T) { a := assert.New(t, false) a.Equal("xx_pk", PKName("xx")) } func ...
jiang-ruo/xlo-core
xlo-core-assembly/xlo-core-catcher/src/test/java/xlo/catcher/CatcherTest.java
<reponame>jiang-ruo/xlo-core<gh_stars>0 package xlo.catcher; import lombok.SneakyThrows; import org.junit.Test; import xlo.util.FileUtil; import javax.management.modelmbean.XMLParseException; import java.io.File; /** * @author XiaoLOrange * @time 2021.06.28 * @title */ public class CatcherTest { @Test @Sneak...
wenmagi/StoryReader
app/src/main/java/com/anonymouser/book/view/SearchActivity.java
<reponame>wenmagi/StoryReader package com.anonymouser.book.view; import android.content.Context; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutMa...
ged/treequel
lib/treequel/mixins.rb
<filename>lib/treequel/mixins.rb # -*- ruby -*- #encoding: utf-8 require 'rbconfig' require 'erb' require 'etc' require 'logger' require 'treequel' require 'treequel/constants' module Treequel # A collection of various delegation code-generators that can be used to define # delegation through other methods, to in...
sicelex/EasyWeather
app/src/main/java/com/example/huang/easyweather/About.java
<gh_stars>1-10 package com.example.huang.easyweather; import android.content.Intent; import android.graphics.Color; import android.net.Uri; import android.os.Build; import android.support.design.widget.CollapsingToolbarLayout; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActi...
satr/amazon-lex-alexa-getting-started
stage-4/lambda/bookstore-aws-lambda-java/src/main/java/io/github/satr/aws/lambda/bookstore/BookStoreLexLambda.java
package io.github.satr.aws.lambda.bookstore; // Copyright © 2020, github.com/satr, MIT License import com.amazonaws.regions.Regions; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.LambdaLogger; import com.amazonaws.services.lambda.runtime.RequestHandler; import io.gi...
kward/venue
vnc/messages/message_string.go
<gh_stars>1-10 // Code generated by "stringer -type=Message"; DO NOT EDIT package messages import "fmt" const _Message_name = "UnknownSetPixelFormatSetEncodingsFramebufferUpdateRequestKeyEventPointerEventClientCutTextFramebufferUpdateSetColorMapEntriesBellServerCutTextSleep" var _Message_index = [...]uint8{0, 7, 21...
hjjohny/editor
src/com.mentor.nucleus.bp.core/src/com/mentor/nucleus/bp/core/Unrelate_c.java
package com.mentor.nucleus.bp.core; //==================================================================== // // File: com.mentor.nucleus.bp.core.Unrelate_c.java // // WARNING: Do not edit this generated file // Generated by ../MC-Java/java.arc, $Revision: 1.111 $ // // (c) Copyright 2005-2014 by Mentor Gr...
julianfellyco/web-lanjutan
M07-KoneksiDatabase/mobile/controllers/perpus.js
<reponame>julianfellyco/web-lanjutan<filename>M07-KoneksiDatabase/mobile/controllers/perpus.js const conn = require("./db"); const async = require("async"); exports.cariBuku = (req, res, next) => { var id = req.params.id; let query = "select * from tbl_buku where id = ?"; conn.query(query, [id], (err, rows) => ...
cyenyxe/eva-pipeline-1
src/main/java/uk/ac/ebi/eva/pipeline/runner/ManageJobsUtils.java
<reponame>cyenyxe/eva-pipeline-1<gh_stars>1-10 /* * Copyright 2015-2017 EMBL - European Bioinformatics Institute * * 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.apa...
myzhang1029/WabbitStudio-Old
Shared/wabbitemu core/debugger/dbcommon.h
#ifndef DBCOMMON_H #define DBCOMMON_H #include "calc.h" #include "dbreg.h" const TCHAR * byte_to_binary(int x, BOOL isWord); int xtoi(const TCHAR *xs); #define Debug_UpdateWindow(hwnd) SendMessage(hwnd, WM_USER, DB_UPDATE, 0); #define Debug_CreateWindow(hwnd) SendMessage(hwnd, WM_USER, DB_CREATE, 0); typedef enum ...
d-hirano1001/backlog
project.go
package backlog import ( "context" "fmt" "io" ) // Project : project type Project struct { ID *int `json:"id,omitempty"` ProjectKey *string `json:"projectKey,omitempty"` Name *string `json:"name,omitempty"` ChartEnabled ...
YJBeetle/QtAndroidAPI
android-31/android/media/AudioRecord_MetricsConstants.hpp
#pragma once #include "../../JObject.hpp" class JString; namespace android::media { class AudioRecord_MetricsConstants : public JObject { public: // Fields static JString CHANNELS(); static JString ENCODING(); static JString LATENCY(); static JString SAMPLERATE(); static JString SOURCE(); // QJni...
martmists-gh/BDSP
include/il2cpp/Dpr/UnderGround/UgFieldManager/__c__DisplayClass182_0.h
<filename>include/il2cpp/Dpr/UnderGround/UgFieldManager/__c__DisplayClass182_0.h #pragma once #include "il2cpp.h" void Dpr_UnderGround_UgFieldManager___c__DisplayClass182_0___ctor (Dpr_UnderGround_UgFieldManager___c__DisplayClass182_0_o* __this, const MethodInfo* method_info); bool Dpr_UnderGround_UgFieldManager___c_...
QinZhen001/template
src/plugins/appReportPlugin.js
<reponame>QinZhen001/template function timeount() { return new Promise((resolve, reject) => { setTimeout(() => { resolve(true) }, 10000) }) } const nativeHook = { onLaunch: async function (option) { console.log("plugin onLaunch", option) await timeount() }, }; export default function a...
hbatagelo/a_tour_of_cpp
chapter_4/vector.cpp
#include "vector.hpp" #include <algorithm> #include <iostream> Vector::Vector(std::size_t s) { if (s < 0) { throw std::length_error{"Vector constructor: negative size"}; } elem = std::make_unique<double[]>(s); // RAII sz = s; } Vector::Vector(std::initializer_list<double> lst) : elem{std::make_uniq...
ideacrew/aca_entities
lib/aca_entities/medicaid/curam/entities/evidences/evidence_command_handler.rb
# frozen_string_literal: true module AcaEntities module Medicaid module Curam module Evidences # CommandHandler Evidence class EvidenceCommandHandler < Sequent::CommandHandler on Commands::CreateIncomeEvidence do |command| repository.add_aggregate IncomeEvidenceAggrega...
Erin59/sinsy0.91
doc/html/search/namespaces_73.js
<filename>doc/html/search/namespaces_73.js<gh_stars>1-10 var searchData= [ ['sinsy',['sinsy',['../namespacesinsy.html',1,'']]] ];
SonarSonic/Calculator
src/main/java/sonar/calculator/mod/common/item/calculators/modules/ModuleBase.java
package sonar.calculator.mod.common.item.calculators.modules; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import sonar.calculator.mod....
eltrufas/Chino
permissions/permissionManager.js
module.exports = { SET_GLOBAL_PERM: { name: 'SET_GLOBAL_PERM', default_value: false, server_overridable: false }, SET_SERVER_PERM: { name: 'SET_SERVER_PERM', default_value: false, server_owner_default_value: true, server_overridable: true } };
zealoussnow/chromium
third_party/blink/web_tests/http/tests/devtools/console/console-preserve-log.js
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. (async function() { TestRunner.addResult(`Tests that the console can preserve log messages across navigations. Bug 53359\n`); await TestRunner.loadLeg...
goistjt/CSSE490-Hadoop
ReduceJoin/src/main/java/edu/rosehulman/mohan/JoinRecordMapper.java
package edu.rosehulman.mohan; //cc JoinRecordMapper Mapper for tagging weather records for a reduce-side join import java.io.IOException; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; //vv JoinRecordMapper public class JoinRecordMapper extends...
eugeneilyin/mdi-norm
es/RoundAccountCircle.js
<gh_stars>1-10 import { FilledAccountCircle as RoundAccountCircle } from './FilledAccountCircle'; export { RoundAccountCircle };
ferreusveritas/MalisisDoorsLean
src/main/java/net/malisis/doors/block/DoorFactory.java
/* * The MIT License (MIT) * * Copyright (c) 2014 Ordinastie * * 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, c...
ets-mlb/emissary
src/main/java/emissary/core/Stage.java
package emissary.core; import java.util.ArrayList; import java.util.List; /** * Information class about processing stages in the workflow */ public class Stage { // List of stages to use. Use non-default constructors or extend class to change protected static List<String> stages; // Each stage must be ...
Duucking/latke
latke-core/src/main/java/org/b3log/latke/repository/RepositoryException.java
<filename>latke-core/src/main/java/org/b3log/latke/repository/RepositoryException.java /* * Latke - 一款以 JSON 为主的 Java Web 框架 * Copyright (c) 2009-present, b3log.org * * Latke is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a c...
dennis-park/slogo
src/backend/command/BracketClose.java
<filename>src/backend/command/BracketClose.java<gh_stars>0 package backend.command; /** * Allows backend to recognize a closing square bracket as the end of a command */ public class BracketClose extends Command { public BracketClose(){ myParameterCount =0; } public boolean equals(Object obj){ return true; ...
maxxcs/swc
crates/swc/tests/tsc-references/parser/ecmascript5/Statements/parserDoStatement2/input.ts/es5.1.normal/output.js
do { }while (false) false;
middware/bekit
service/src/main/java/org/bekit/service/service/ServiceParser.java
/* * 作者:钟勋 (e-mail:<EMAIL>) */ /* * 修订记录: * @author 钟勋 2016-12-16 01:14 创建 */ package org.bekit.service.service; import org.apache.commons.lang3.StringUtils; import org.bekit.common.transaction.TxExecutor; import org.bekit.service.annotation.service.Service; import org.bekit.service.annotation.service.ServiceEx...
Minionguyjpro/Ghostly-Skills
sources/com/startapp/a/a/e/d.java
package com.startapp.a.a.e; import com.startapp.a.a.a.c; import java.io.ByteArrayInputStream; import java.io.DataInput; import java.io.DataInputStream; import java.io.PrintStream; /* compiled from: StartAppSDK */ public abstract class d { /* renamed from: a reason: collision with root package name */ privat...
sambacha/besu-ltz
packages/system/lib/system.js
"use strict"; module.exports = system; function system() { // TODO }
ayoubbargueoui1996/osm-devops
installers/charm/generate_bundle.py
<filename>installers/charm/generate_bundle.py # Copyright 2020 Canonical Ltd. # # 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...
aisolab/scala102
src/main/scala/scala/learning/nine/example/Example03.scala
<gh_stars>1-10 package scala.learning.nine.example // 09-1. 객체: apply 메소드와 동반객체 예제 // apply 메소드가 클래스의 팩토리 메소드 역할을 하는 경우 object Example03 extends App { val tripler = Multiplier(3) val result = tripler.product(13) println(result) } class Multiplier(val x: Int) { def product(y: Int) = x * y } object Multiplier {...
ghsecuritylab/tomato_egg
release/src-rt/linux/linux-2.6/include/asm-um/hardirq.h
<filename>release/src-rt/linux/linux-2.6/include/asm-um/hardirq.h /* (c) 2004 <EMAIL>, GPLv2 blah blah */ #ifndef __ASM_UM_HARDIRQ_H #define __ASM_UM_HARDIRQ_H #include <linux/threads.h> #include <linux/irq.h> /* NOTE: When SMP works again we might want to make this * ____cacheline_aligned or maybe use per_cpu stat...
Yannic/chromium
components/cronet/url_request_context_config.h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ #define COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ #include <memory> #include <string> #incl...
srihari-nagaraj/anuvaad
anuvaad-etl/anuvaad-extractor/block-merger/src/utilities/class_2/orientation_correction.py
<filename>anuvaad-etl/anuvaad-extractor/block-merger/src/utilities/class_2/orientation_correction.py class ExtractTextRegions: def __init__(self, image_path, session=sess, conf_threshold=50, lang='eng'): self.image_path = image_path self.image = cv2.imread(image_path)[:, :, ::-1] self.sess ...
CrystianPrintes20/ProjetoUri
PythonCode/1146.py
#QUESTÃO: SEQUÊNCIAS CRESCENTES while True: x = int(input()) es = "" if x == 0: break for i in range(1,x+1): es += str(i) + " " print(es[:-1])
catalinboja/cts-2021
course En/Course 11 - Template/src/ro/ase/cts/TestTemplate.java
package ro.ase.cts; public class TestTemplate { public static void main(String[] args) { NUnitTesting nUnit = new NUnitTesting(); JUnitTesting jUnit = new JUnitTesting(); nUnit.test(); jUnit.test(); } }
nikhilsamninan/python-files
day8/listoperations.py
L=[10,5,55,1] #print(L.append(6)) #print(L) print(L.extend([6,4])) print(L) #print(L.reverse()) #print(L) #print(L.sort(reverse=True)) #print(L) #print(L.pop(1)) #print(L) #print(L.remove(55)) #print(L) #del L[0] #print(L)
rudty/nodekell
test/average.spec.js
<reponame>rudty/nodekell "use strict"; const F = require("../index"); const assert = require("assert"); describe('test average', () => { it('num', async () => { const a = [1,2,3,4,5]; const s = await F.average(a); assert.strictEqual(s, 3); }); it('float', async () => { cons...
buckelieg/simple-tools
src/main/java/buckelieg/jdbc/ImmutableResultSet.java
<reponame>buckelieg/simple-tools /* * Copyright 2016- <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 applicab...
jgraichen/codeocean
test/factories/structured_errors.rb
<filename>test/factories/structured_errors.rb FactoryBot.define do factory :structured_error do error_template nil submission nil end end
molinjc/JCKitDemo
JCKitDemo/JCKitDemo/Class/UIChain/JCChainViewController.h
<gh_stars>1-10 // // JCChainViewController.h // JCKitDemo // // Created by molin.JC on 2017/12/1. // Copyright © 2017年 molin. All rights reserved. // #import "JCViewController.h" @interface JCChainViewController : JCViewController @end
crutchwalkfactory/jaikuengine-mobile-client
ContextCommon/src/errorhandling.cpp
<reponame>crutchwalkfactory/jaikuengine-mobile-client<gh_stars>0 // Copyright (c) 2007-2009 Google Inc. // Copyright (c) 2006-2007 Jaiku Ltd. // Copyright (c) 2002-2006 <NAME> and <NAME> // // This software is licensed at your choice under either 1 or 2 below. // // 1. MIT License // // Permission is hereby granted, fr...
luhn/AutobahnPython
examples/twisted/websocket/slowsquare/server.py
<gh_stars>0 ############################################################################### ## ## Copyright (C) 2014 Tavendo GmbH ## ## 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 ## ##...
undergrowthlinear/learntest
learncommon/src/main/java/com/learncommon/mapper/GsmsContactMapper.java
<gh_stars>0 package com.learncommon.mapper; import com.learncommon.entity.GsmsContact; public interface GsmsContactMapper { int deleteByPrimaryKey(Integer id); int insert(GsmsContact record); int insertSelective(GsmsContact record); GsmsContact selectByPrimaryKey(Integer id); int updateByPri...
BlackYps/faf-java-commons
faf-commons-api/src/main/java/com/faforever/commons/api/dto/FeaturedMod.java
<reponame>BlackYps/faf-java-commons<gh_stars>0 package com.faforever.commons.api.dto; import com.faforever.commons.api.elide.ElideEntity; import com.github.jasminb.jsonapi.annotations.Id; import com.github.jasminb.jsonapi.annotations.Type; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; @...
SolidRun/edk2-platforms
Silicon/NXP/LX2160A/Include/SocSerDes.h
/** @file The Header file of SerDes Module for LX2160A Copyright 2017 NXP This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found http://opensource.org/lic...
chaitanyks/fuzzy-disco
Linked List Random Node.cpp
// https://leetcode.com/problems/linked-list-random-node/ // 382. Linked List Random Node /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), nex...
shuigedeng/taotao-cloud-paren
taotao-cloud-microservice/taotao-cloud-yshop/src/main/java/com/taotao/cloud/yshop/biz/dto/DictQueryCriteria.java
/** * Copyright (C) 2018-2020 * All rights reserved, Designed By www.yixiang.co * 注意: * 本软件为www.yixiang.co开发研制 */ package com.taotao.cloud.system.api.dto; import com.taotao.cloud.system.api.annotation.Query; public class DictQueryCriteria { @Query(blurry = "name,remark") private String blurry; public...
BookAppPA/Dashboard-Admin
src/pages/user/usersList/Users.js
import { useEffect, useContext } from 'react'; import { createUseStyles, useTheme } from 'react-jss'; import { Box } from '@material-ui/core'; import MUIDataTable from "mui-datatables"; import { useHistory } from 'react-router-dom'; import ROUTE from '../../../routes/RoutesNames'; import Chip from '@material-ui/core/Ch...
e-dang/Autogarden
tests/functional/test_watering_station_creation.py
import pytest from django.urls import reverse from garden.utils import build_duration_string from tests.functional.pages.garden_detail_page import GardenDetailPage from .base import Base class TestWateringStationCreation(Base): @pytest.fixture(autouse=True) def setup(self, user_factory, garden_factory, test_...
cyberthinkers/FireDancer3D
firedancer3d_shared/src/main/scala/org/firedancer3d/scenegraph/geometry/Cylinder.scala
package org.firedancer3d.scenegraph.geometry; class Cylinder { }
MilladMuhammadi/Competitive-Programming
UICPC/10/IKE.py
import math from collections import Counter numbers = int(input()) seq = list(map(int, input().split())) MAXN = max(seq)+1 spf = [0 for i in range(MAXN)] def sieve(): spf[1] = 1 for i in range(2, MAXN): spf[i] = i for i in range(4, MAXN, 2): spf[i] = 2 for i in range(3, math.ceil(math.sqrt(MAXN))): i...
nydevel/qirk
qirk-parent/qirk-main-parent/qirk-repo/src/main/java/org/wrkr/clb/repo/JDBCIdEntityRepo.java
<reponame>nydevel/qirk package org.wrkr.clb.repo; import java.util.List; import org.springframework.jdbc.support.KeyHolder; import org.springframework.stereotype.Repository; import org.wrkr.clb.model.BaseIdEntity; import org.wrkr.clb.model.BaseIdEntityMeta; @Repository public abstract class JDBCIdEntityRepo extends...
thechurchofcage/Complete-Fire-Red-Upgrade
src/frontier.h
#pragma once #include "defines.h" #define TOTAL_SPREADS 0x4A0 //sizeof(gFrontierSpreads) / sizeof(struct BattleTowerSpreads) #define NUM_MALE_NAMES 0xAA //sizeof(MaleFrontierNamesTable) / sizeof(u8*) #define NUM_FEMALE_NAMES 0xAA //sizeof(FemaleFrontierNamesTable) / sizeof(u8*) #define species_array ((species_t*) 0...
leon9reat/decoding-android
Submission3/app/src/main/java/com/medialink/submission3/model/tv/TvDetailRespon.java
package com.medialink.submission3.model.tv; import com.google.gson.annotations.SerializedName; import java.util.List; public class TvDetailRespon{ @SerializedName("original_language") private String originalLanguage; @SerializedName("number_of_episodes") private int numberOfEpisodes; @SerializedName("network...
hydthd/games
doudizhu/src/AI/PassiveAI.js
<reponame>hydthd/games<gh_stars>1000+ class PassiveAI { callPoint(args) { return 1; } play(args) { return [args.myCards[0]]; } cover(args) { return []; } } module.exports = PassiveAI;
jmchilton/peptide-shaker
src/main/java/eu/isas/peptideshaker/utils/StarHider.java
package eu.isas.peptideshaker.utils; import com.compomics.util.experiment.biology.Peptide; import com.compomics.util.experiment.identification.Identification; import com.compomics.util.experiment.identification.SequenceFactory; import com.compomics.util.experiment.identification.matches.PeptideMatch; import com....
cr88192/bgbtech_engine
include/bgbdy_vfzip.h
<reponame>cr88192/bgbtech_engine #define VFZIP_CACHE_MAX (1<<24) #define VFZIP_CACHE_MAXCACHE (1<<20) #define FCC_PK_FILE 0x04034B50 #define FCC_PK_DIRFILE 0x02014B50 #define FCC_PK_DIREND 0x06054B50 typedef struct VFZIP_Entry_s VFZIP_Entry; typedef struct VFZIP_Context_s VFZIP_Context; typedef struct VFZIP_FileCtx_...
odbozhou/rocketmq-connect
connectors/rocketmq-connect-jdbc/src/main/java/org/apache/rocketmq/connect/jdbc/connector/JdbcSourceConfig.java
<reponame>odbozhou/rocketmq-connect<filename>connectors/rocketmq-connect-jdbc/src/main/java/org/apache/rocketmq/connect/jdbc/connector/JdbcSourceConfig.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for ...
Chrisi816/Azoniq-Discord-Bot-v.1.3
commands/social-media/twitch.js
module.exports = { commands: ['vAzoniq twitch'], description: 'Link von vAzoniq wird gesendet!', callback:(message) => { message.channel.send(` Über diesen Link kommst du ganz einfach zum Twitch Kanal von vAzoniq! https://www.twitch.tv/vazoniq7882`) } }
dhavalocked/openassessment
client/js/_player/components/assessments/universal_input.spec.js
"use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import UniversalInput from './universal_input'; import { shallow } from 'enzyme'; describe('Assessment Questions', ()=> { var result; var item; ...
dehilsterlexis/eclide-1
eclide/ChildGraphFrame.cpp
<reponame>dehilsterlexis/eclide-1 #include "StdAfx.h" #include "..\en_us\resource.h" #include "ChildGraphFrame.h" #include "WtlMDIChildFrame.h" #include "ChildFrame.h" #include "MainFrm.h" #include "preferencedlg.h" #include "global.h" #include "util.h" #include "GraphView.h" class CGraphFrame : public CChildFra...
meodaiduoi/onos
apps/openstackvtap/app/src/test/java/org/onosproject/openstackvtap/codec/OpenstackVtapNetworkCodecTest.java
/* * Copyright 2018-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
ncl427/openair-cn
SRC/NAS/3gpp_24.301_ies_xml.c
<gh_stars>0 /* * Copyright (c) 2015, EURECOM (www.eurecom.fr) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, t...
maxxcs/swc
crates/swc/tests/tsc-references/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithOneOperandIsNull/input.ts/es5.1.normal/output.js
var E; (function(E) { E[E["a"] = 0] = "a"; E[E["b"] = 1] = "b"; E[E["c"] = 2] = "c"; })(E || (E = { })); function foo(t) { var foo_r1 = t < null; var foo_r2 = t > null; var foo_r3 = t <= null; var foo_r4 = t >= null; var foo_r5 = t == null; var foo_r6 = t != null; var foo_r7 = t ...
AllaMaevskaya/AliRoot
HLT/TRD/AliHLTTRDUtils.h
// $Id$ #ifndef ALIHLTTRDUTILS_H #define ALIHLTTRDUTILS_H //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* See cxx source for full Copyright notice * /////////////////////////////...
uktrade/export-opportunities
lib/modules/devise_user_methods.rb
# To allow us to create and delete users we include these devise methods: # https://github.com/plataformatec/devise/wiki/How-To:-Override-confirmations-so-users-can-pick-their-own-passwords-as-part-of-confirmation-activation # https://github.com/plataformatec/devise/wiki/How-to:-Soft-delete-a-user-when-user-deletes-acc...
L-Net-1992/Paddle
paddle/infrt/dialect/tensorrt/convert.h
<filename>paddle/infrt/dialect/tensorrt/convert.h<gh_stars>10-100 // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
qwelao7/afgj
mobile/web/weixin/src/js/lib/library.js
<filename>mobile/web/weixin/src/js/lib/library.js var common = require('../lib/common.js'); $(function () { var content = $('#content'), popup = $('#popup'), classify = $('#classify').html(), tpl = $('#tpl').html(), tabBottom = $('.buttons-tab'); var url = common.getRequest(), ...
axelav/vx
packages/vx-mock-data/src/index.js
export { default as genDateValue } from './generators/genDateValue'; export { default as genRandomNormalPoints, } from './generators/genRandomNormalPoints'; export { default as genBin } from './generators/genBin'; export { default as genBins } from './generators/genBins'; export { default as genStats } from './genera...
mizne/meishang_app_shangjia
cordova-plugin-sxb/src/android/suixinbo/adapters/LinkAdapter.java
package com.tencent.qcloud.suixinbo.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.TextView; import com.tencent.ilivesdk.core.ILiveLoginManage...
sunyuyangg555/STAX
plugins/xfs/src/main/java/io/jiffy/stax/plugin/xfs/actions/XfsExecuteCommandAction.java
<reponame>sunyuyangg555/STAX package io.jiffy.stax.plugin.xfs.actions; import com.ibm.staf.service.stax.STAXAction; import com.ibm.staf.service.stax.STAXPythonEvaluationException; import com.ibm.staf.service.stax.STAXThread; import org.apache.commons.lang3.StringUtils; import org.pmw.tinylog.Logger; import ja...
lonfall/leetcode_learning
src/main/java/com/lh/learning/leetcode/no71_80/no78/Question78.java
<filename>src/main/java/com/lh/learning/leetcode/no71_80/no78/Question78.java<gh_stars>1-10 package com.lh.learning.leetcode.no71_80.no78; import java.util.ArrayList; import java.util.List; /** * @auther: loneyfall * @date: 2021/9/9 * @description: 子集 */ public class Question78 { public List<List<Integer>> su...
bobmotor/magento-2-gulp
dev/tools/gulp/tasks/exec.js
<reponame>bobmotor/magento-2-gulp const exec = require('exec-queue'); const args = require('../args'); const loggers = require('../loggers'); const matchTheme = require('../matchTheme'); const paths = require('../paths'); module.exports = async () => { if (!matchTheme.matchTheme) { loggers.matchTheme(args...
GustavoGalo/discord-bot-1
ffmpeg/libavcodec/mips/xvididct_init_mips.c
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any ...
chenhaoxiang/superior-java-blogs
src/main/java/com/huijava/superiorjavablogs/dto/UsersDTO.java
<gh_stars>1-10 /** * fshows.com * Copyright (C) 2013-2018 All Rights Reserved. */ package com.huijava.superiorjavablogs.dto; import com.huijava.superiorjavablogs.common.base.BaseEntity; import lombok.Data; /** * @author chenhx * @version UsersDTO.java, v 0.1 2018-09-20 上午 2:14 */ @Data public class UsersDTO ext...
carolbezerra-dev/bash-exercises
31.Sequelize/2.ORM/models/Product.js
<filename>31.Sequelize/2.ORM/models/Product.js // serve para alimentar com dados a tabela criada const createProduct = (sequelize, DataTypes) => { const Product = sequelize.define('Product', { /* Sequelize, estou definindo um modelo chamado Product (coloca o model no singular, ele busca a tabela no plural na migratio...