repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
oakesville/mdw
mdw-common/src/com/centurylink/mdw/util/CodeUtil.java
<filename>mdw-common/src/com/centurylink/mdw/util/CodeUtil.java package com.centurylink.mdw.util; import java.io.File; import java.io.IOException; import com.centurylink.mdw.util.file.FileHelper; public class CodeUtil { public static final String HEADER_COMMENT = ""; /** * @param args h c:/workspaces/...
rubylibs/textutils
textutils/lib/textutils/parser/name_parser.rb
# encoding: utf-8 # fix: move into TextUtils namespace/module!! ?? class NameParser include LogUtils::Logging def parse( chunks ) ## todo/fix: (re)use nameparser - for now "simple" inline version ## fix!!! - note: for now lang gets ignored ## fix: add hanlde ## Leuven[nl]|Louvain[...
tibers/rio
vendor/github.com/solo-io/solo-kit/pkg/api/v1/resources/common/kubernetes/job.sk.go
<reponame>tibers/rio // Code generated by solo-kit. DO NOT EDIT. package kubernetes import ( "sort" github_com_solo_io_solo_kit_api_external_kubernetes_job "github.com/solo-io/solo-kit/api/external/kubernetes/job" "github.com/solo-io/go-utils/hashutils" "github.com/solo-io/solo-kit/pkg/api/v1/resources" "githu...
wyan/ack
mach/proto/mcg/pass_phigroups.c
<gh_stars>100-1000 #include "mcg.h" static PMAPOF(struct vreg, struct vreg) phimap; static void make_phimap(void) { int i, j; phimap.count = 0; for (i=0; i<cfg.preorder.count; i++) { struct basicblock* bb = cfg.preorder.item[i]; /* Registers imported through a phi can come from multiple locations. */ for ...
chuntaojun/pole
server/auth/auth_plugin.go
<gh_stars>0 // Copyright (c) 2020, Conf-Group. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package auth import ( "context" "errors" "fmt" "regexp" "strings" "sync" "time" "github.com/Conf-Group/pole/constants" "github.com/Conf-...
huangxinping/o2oa
o2server/servers/webServer/x_component_Note/lp/zh-cn.js
<filename>o2server/servers/webServer/x_component_Note/lp/zh-cn.js<gh_stars>1-10 MWF.xApplication.Note.LP = { "title": "便签", "deleteNoteTitle": "删除便签确认", "deleteNote": "您确定要删除当前便签吗?" };
mkesmetzis/starter-kit-spring-maven
src/main/java/com/client/core/base/model/jpa/JpaEntity.java
<gh_stars>10-100 package com.client.core.base.model.jpa; import com.client.core.base.model.Entity; import java.util.Date; public interface JpaEntity<ID> extends Entity<ID>{ /** * Returns the primary key of this entity * * @return */ @Override ID getId(); void setId(ID id); /** * Returns the dat...
Apache-HB/managarm
kernel/thor/arch/arm/thor-internal/arch/timer.hpp
<gh_stars>1-10 #pragma once namespace thor { void initializeTimers(); } // namespace thor
RalfBarkow/semweb4j
org.semweb4j.rdf2go.api/src/main/java/org/ontoware/rdf2go/model/node/impl/URIImpl.java
/** * LICENSE INFORMATION * * Copyright 2005-2008 by FZI (http://www.fzi.de). Licensed under a BSD license * (http://www.opensource.org/licenses/bsd-license.php) <OWNER> = <NAME> * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, * Germany <YEAR> = 2010 * * Further project infor...
IvanLu1024/LeetCode
src/tree/Solution105.java
<filename>src/tree/Solution105.java package tree; /** * 根据一棵树的前序遍历与中序遍历构造二叉树。 * * 注意: * 你可以假设树中没有重复的元素。 * * 例如,给出 * * 前序遍历 preorder = [3,9,20,15,7] * 中序遍历 inorder = [9,3,15,20,7] * 返回如下的二叉树: * * 3 * / \ * 9 20 * / \ * 15 7 * */ public class Solution105 { public TreeNode buildT...
mkp1104/localEclipseWorkspaceJava
try_catch_0/src/com/lara/N.java
<gh_stars>0 package com.lara; class W { static void test() throws ClassNotFoundException { System.out.println(1); // int i=10/0; Class.forName(""); System.out.println(2); } } public class N { public static void main(String[] args) { System.out.println(3); W w1=new W(); try { ...
jsptest/jsptest
jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/compiler/java/Java6Compiler.java
<reponame>jsptest/jsptest<gh_stars>1-10 package net.sf.jsptest.compiler.java; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.lang.reflect.Method; import net.sf.jsptest.utils.IO; public class Java6Compiler extends CommandLineJava...
LeoBaro/astro
astro/misc/time_conversion.py
import itertools from astropy.time import Time times = ['1999-01-01T00:00:00.123456789', '2010-01-01T00:00:00', '2019-01-01T12:00:00', '2019-01-01T12:30:00'] t = Time(times, format='isot', scale='utc') m = Time([51544.5, 51544.511574], format='mjd') print("t: ", t) print("m: ", m) for i in itertools.chain(t...
AeonGames/AeonEngine
engine/core/ResourceCache.cpp
<filename>engine/core/ResourceCache.cpp /* Copyright (C) 2018 <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 la...
Evil1991/bitrixdock
www/html/bitrix/modules/currency/install/js/currency/core_currency.js
<reponame>Evil1991/bitrixdock ;(function(window) { BX.namespace('BX.Currency'); if (BX.Currency.defaultFormat) { return; } BX.mergeEx(BX.Currency, { currencyList: [], defaultFormat: { 'FORMAT_STRING': '#', 'DEC_POINT': '.', 'THOUSANDS_SEP': ' ', 'DECIMALS': 2, 'HIDE_ZERO': 'N' }, setCurrencyFormat: f...
som-dev/Algorithms
Graph/Matrix.hpp
#pragma once template <typename T> class Matrix { public: Matrix(std::initializer_list<std::initializer_list<T>> rows) { for (auto& row : rows) { std::vector<T> newrow; for (auto& item : row) newrow.push_back(item); m_rows.push_back(newrow); ...
fluorumlabs/disconnect-project
disconnect-classlib/src/main/java/js/web/webspeech/SpeechSynthesisErrorEvent.java
package js.web.webspeech; import org.teavm.jso.JSBody; import org.teavm.jso.JSProperty; public interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent { @JSBody(script = "return SpeechSynthesisErrorEvent.prototype") static SpeechSynthesisErrorEvent prototype() { throw new UnsupportedOperatio...
jpabb7/p2pScrapper
BitTorrent-5.2.2/BTL/profile.py
<reponame>jpabb7/p2pScrapper # extensions for lsprof/cProfile # # usage: # # from BTL.profile import Profiler, Stats # # prof = Profiler() # prof.enable() # # your_code() # # prof.disable() # stats = Stats(prof.getstats()) # stats.sort("inlinetime") # stats.pprint() # # by <NAME> from __future_...
UniqueDong/zero-design-patterns
src/main/java/com/zero/headfirst/observer/Observer.java
package com.zero.headfirst.observer; public interface Observer { /** * 接收主题发布的更新通知 */ void notice(Newspaper data); }
chanshiyucx/moemall
moemall-mbg/src/main/java/com/chanshiyu/moemall/mbg/mapper/SmsCouponProductRelationMapper.java
package com.chanshiyu.moemall.mbg.mapper; import com.chanshiyu.moemall.mbg.model.SmsCouponProductRelation; import tk.mybatis.mapper.MyMapper; public interface SmsCouponProductRelationMapper extends MyMapper<SmsCouponProductRelation> { }
KingMikeXS/dl
adv/cassandra.py
import adv.adv_test from core.advbase import * from slot.a import * def module(): return Cassandra class Cassandra(Adv): comment = 'no counter damage; s2 drops combo' a1 = ('prep_charge','5%') a3 = ('ro', 0.15) conf = {} conf['slots.a'] = Candy_Couriers()+The_Plaguebringer() conf['acl'] =...
TeamvisionCorp/GAT-CODE
GATCore/src/main/java/com/gateside/autotesting/Gat/manager/WebUIStepsCaseManager.java
<filename>GATCore/src/main/java/com/gateside/autotesting/Gat/manager/WebUIStepsCaseManager.java package com.gateside.autotesting.Gat.manager; import com.gateside.autotesting.Gat.manager.StepsCaseManager; import java.util.ArrayList; import java.util.List; import org.dom4j.Element; import com.gateside.autotesting.Gat...
trombonehero/Footlights
Client/Core/src/main/scala/me/footlights/core/data/store/filesystem.scala
/* * Copyright 2011 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
allenai/tango
examples/euler/complex_arithmetic.py
<reponame>allenai/tango<filename>examples/euler/complex_arithmetic.py<gh_stars>10-100 import cmath from typing import Tuple, Union from tango import Step ComplexOrTuple = Union[complex, Tuple[float, float]] def make_complex(x: ComplexOrTuple) -> complex: if isinstance(x, complex): return x elif isin...
BadLiveware/trident
storage_drivers/ontap/api/rest/models/cifs_service_options.go
<filename>storage_drivers/ontap/api/rest/models/cifs_service_options.go<gh_stars>100-1000 // Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "encoding/js...
WololoBrothers/moodlemobile2
www/core/components/courses/controllers/list.js
<gh_stars>1-10 // (C) Copyright 2015 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
shijunLee/helmops
api/v1alpha1/zz_generated.deepcopy.go
// +build !ignore_autogenerated /* Copyright 2021 <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 Unless required by applicable law or agre...
bTspm/stock-track
app/models/address.rb
class Address < ApplicationRecord validates_presence_of :country, :line_1 end
annelindeandersen/bachelor_project
node_modules/sweetalert-react/lib/utils/__mocks__/isDOMEquals.js
<reponame>annelindeandersen/bachelor_project 'use strict'; var isDOMEquals = jest.genMockFromModule('../isDOMEquals'); module.exports = isDOMEquals;
musasesay/tesseract-ocr.github.io
3.x/a00097.js
var a00097 = [ [ "base", "a00097.html#a15179a66cf30d663c37a4451e6f96fe5", null ], [ "FunctionSignature", "a00097.html#a2ef64a08dc3a3c67c96c9c74047714e3", null ], [ "_TessFunctionResultCallback_0_5", "a00097.html#a4ee4a1dc2dda788a0cccdc30d595540b", null ], [ "Run", "a00097.html#a9557f93b5f8e70ee9f55d4c15...
egraba/vbox_openbsd
VirtualBox-5.0.0/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.h
/* $Id: UIVMDesktop.h $ */ /** @file * * VBox frontends: Qt GUI ("VirtualBox"): * UIVMDesktop class declarations */ /* * Copyright (C) 2010-2013 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you ca...
Amarnathpg123/grokking_coding_patterns
grooking_patterns_cpp/dp_probs/count_ways_dies.cpp
#include<bits/stdc++.h> using namespace std; long findWays(int f, int d, int s) { vector<vector<long>> mem(d+1, vector<long>(s+1, 0)); mem[0][0] = 1; for (int i = 1; i <= d; i++) { for (int j = i; j <= s; j++) { // The result is obtained in two ways, pin the current dice and spending 1 of the value, /...
ghsecuritylab/tomato_egg
release/src/router/samba3/source/librpc/gen_ndr/svcctl.h
/* header auto-generated by pidl */ #ifndef _HEADER_svcctl #define _HEADER_svcctl #define SERVICE_TYPE_KERNEL_DRIVER ( 0x01 ) #define SERVICE_TYPE_FS_DRIVER ( 0x02 ) #define SERVICE_TYPE_ADAPTER ( 0x04 ) #define SERVICE_TYPE_RECOGNIZER_DRIVER ( 0x08 ) #define SERVICE_TYPE_DRIVER ( SERVICE_TYPE_KERNEL_DRIVER|SERVICE_T...
TobiasRasbold/pywrangler
src/pywrangler/wranglers.py
"""This module contains computation engine independent wrangler interfaces and corresponding descriptions. """ from typing import Any from pywrangler.base import BaseWrangler from pywrangler.util import sanitizer from pywrangler.util.types import TYPE_ASCENDING, TYPE_COLUMNS NONEVALUE = object() class IntervalIden...
nesticat/engine
common/util.go
/* * Copyright 2018 It-chain * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
Thendont/lwjgl
modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/EXTTextureCompressionS3TC.java
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; /** * Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_compression_s3tc.txt">EXT_texture_co...
angellee1988/design-pattern
src/main/java/com/javapatterns/builder/extended/Builder.java
package com.javapatterns.builder.extended; abstract public class Builder { public abstract void buildPart1(); public abstract void buildPart2(); public abstract Product retrieveResult(); }
npocmaka/Windows-Server-2003
net/mmc/mprsnap/ifadmin.cpp
<reponame>npocmaka/Windows-Server-2003 /**********************************************************************/ /** Microsoft Windows/NT **/ /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/ /************************************************************...
domesticmouse/SmallerC
v0100/tests/libf.c
/* Quick and dirty test to ensure that all functions are actually in the library. How to compile for DOS (all mode(l)s: tiny/.COM, small/.EXE, huge/.EXE, unreal/.EXE, 32-bit DPMI/.EXE): smlrcc -dost libf.c -o libfdt.com smlrcc -doss libf.c -o libfds.exe smlrcc -dosh libf.c -o libfdh.exe smlrcc -dos...
zealoussnow/chromium
media/mojo/clients/mojo_renderer_factory.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 MEDIA_MOJO_CLIENTS_MOJO_RENDERER_FACTORY_H_ #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_FACTORY_H_ #include <memory> #include <string> #include "bu...
moazzamwaheed2017/carparkapi
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/gis/server/_service/_vectortile.py
""" .. module:: _vectortile.py :platform: Windows, Linux :synopsis: Represents functions/classes that represents a vector tile service. .. moduleauthor:: Esri """ from __future__ import absolute_import import tempfile from .._common._base import BaseServer #########################################...
Miruken-ObjC/Miruken
Miruken/Cocoa/MKSlide3DTransition.h
// // MKSlide3DTransition.h // Miruken // // Created by <NAME> on 4/6/14. // Copyright (c) 2014 <NAME>. All rights reserved. // // Based on work by <NAME> on 7/3/13. // Copyright (c) 2013 CapTech. All rights reserved. // #import "MKAnimatedTransition.h" @interface MKSlide3DTransition : MKAnimatedTransition @pr...
eid101/InjazErp
modules/org.openbravo.client.application/src/org/openbravo/client/application/process/DefaultsProcessActionHandler.java
/* ************************************************************************* * The contents of this file are subject to the Openbravo Public License * Version 1.1 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in...
JellyBrother/live-android
im/src/main/java/com/yunbao/im/bean/SystemMessageBean.java
package com.yunbao.im.bean; /** * Created by cxf on 2018/11/24. */ public class SystemMessageBean { private String content; private String addtime; public String getContent() { return content; } public void setContent(String content) { this.content = content; } public ...
willitscale/simplejavawebsocket
java/src/uk/co/n3tw0rk/websocketregistration/structures/hixie76/HIXIE76_Request.java
package uk.co.n3tw0rk.websocketregistration.structures.hixie76; public class HIXIE76_Request { }
MobButcher/Charm
src/main/java/svenhjol/charm/module/bookcases/BookcasesClient.java
<reponame>MobButcher/Charm package svenhjol.charm.module.bookcases; import net.fabricmc.fabric.api.client.screenhandler.v1.ScreenRegistry; import svenhjol.charm.annotation.ClientModule; import svenhjol.charm.loader.CharmModule; @ClientModule(module = Bookcases.class) public class BookcasesClient extends CharmModule {...
AsahiOS/gate
usr/src/uts/common/ktli/t_kgtstate.c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
kwadsten/RetroStoreCard
src/esp/main/io.h
<filename>src/esp/main/io.h #pragma once #include "esp_system.h" void init_io(); uint8_t read_byte(); void write_bytes(uint8_t* data, uint16_t len);
kpagacz/software-engineering
programowanie-podstawowe/book-excercises/8-9-1.c
#include<stdio.h> int multiply(int a, int* b) { if(a >= 1 && a <= 100) { *b = (*b)*a; return 1; } else { return 0; } } int main(void) { int numbers; scanf("%i", &numbers); int one = 1; int* res = &one; int single_number; int multplication_happened = 0; ...
ponyville/kilim
src/kilim/KilimClassLoader.java
<filename>src/kilim/KilimClassLoader.java package kilim; /** * Extends Classloader just to have access to the (protected) findLoadedClass method */ public class KilimClassLoader extends ClassLoader { public KilimClassLoader(ClassLoader cl) { super(cl); } public Class<?> getLoadedClass(String cla...
sunkun1210/cloud
imooc-c6-3-spring-dtx-jms-db/src/main/java/com/immoc/example/springtx/service/CustomerService.java
<gh_stars>1-10 package com.immoc.example.springtx.service; import com.immoc.example.springtx.dao.CustomerRepository; import com.immoc.example.springtx.domain.Customer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jms....
TheKiddos/faith
code/src/main/java/org/thekiddos/faith/dtos/ProposalDto.java
package org.thekiddos.faith.dtos; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; @Data @Builder @NoArgsConstructor @AllArgsConstructor public class ProposalDto { pr...
nkapinos/chorus
spec/models/events/note_spec.rb
<reponame>nkapinos/chorus<gh_stars>1-10 # encoding: utf-8 require "spec_helper" require_relative "helpers" describe Events::Note do extend EventHelpers let(:actor) { users(:not_a_member) } let(:gpdb_data_source) { data_sources(:default) } let(:hdfs_data_source) { hdfs_data_sources(:hadoop) } let(:gnip_data_...
guiles00/tbpmnio
node_modules/diagram-js/test/spec/features/tooltips/TooltipsSpec.js
<reponame>guiles00/tbpmnio<filename>node_modules/diagram-js/test/spec/features/tooltips/TooltipsSpec.js 'use strict'; /* global bootstrapDiagram, inject */ var forEach = require('lodash/collection/forEach'), assign = require('lodash/object/assign'), every = require('lodash/collection/every'), domify = re...
solemnwarning/KatanaEngine
shared/shared_menu.h
/* Copyright (C) 2011-2016 OldTimes Software 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 ...
mehmet-biter/dexwebapp
src/redux/actions/WalletConnect.js
export const CONNECT_TO_WALLET_CONNECT = 'CONNECT_TO_WALLET_CONNECT'; export const CONNECT_TO_WALLET_CONNECT_COMPLETE = 'CONNECT_TO_WALLET_CONNECT_COMPLETE'; export function connectToWalletConnect(startConnecting) { return { type: CONNECT_TO_WALLET_CONNECT, payload: { startConnecting, }, }; } ...
qiagen/LogATE
src/CursATE/Curses/Field/Input.cpp
#include "CursATE/Curses/Field/Input.hpp" #include "CursATE/Curses/Field/detail/resizePadded.hpp" namespace CursATE::Curses::Field { FieldSize size(Input const& i) { const auto minimumReasonableInputFieldWidth = 3; return FieldSize{ i.label_.size(), minimumReasonableInputFieldWidth }; } void draw(Window& win, co...
JackovAlltrades/solid-react-components
src/lib/components/FormModel/children/Form/UI/Heading/heading.test.js
import React from 'react'; import { render, cleanup } from '@testing-library/react'; import { getByText } from '@testing-library/dom'; import { Heading } from './heading.component'; import { UI } from '@constants'; import 'jest-dom/extend-expect'; afterAll(cleanup); test('Renders without crashing', () => { const d...
yennanliu/Python_basics
leetcode_python/Dynamic_Programming/minimum-insertion-steps-to-make-a-string-palindrome.py
""" 1312. Minimum Insertion Steps to Make a String Palindrome Hard Given a string s. In one step you can insert any character at any index of the string. Return the minimum number of steps to make s palindrome. A Palindrome String is one that reads the same backward as well as forward. Example 1: Input: s = "z...
Javiyack/zio-lambda
lambda-event/src/main/scala/zio/lambda/event/S3Event.scala
<filename>lambda-event/src/main/scala/zio/lambda/event/S3Event.scala<gh_stars>10-100 package zio.lambda.event import zio.json._ final case class S3Event() object S3Event { implicit val decoder: JsonDecoder[S3Event] = DeriveJsonDecoder.gen[S3Event] }
peterchaula/ClassicF1
andEngineMODPlayerExtension/src/main/jni/drivers/debug.c
/* Extended Module Player * Copyright (C) 1996-2010 <NAME> and <NAME> * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See doc/COPYING * for more information. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <strin...
mulesoft/amf
amf-api-contract/shared/src/main/scala/amf/apicontract/internal/spec/oas/parser/domain/Oas30RequestParser.scala
<reponame>mulesoft/amf package amf.apicontract.internal.spec.oas.parser.domain import amf.apicontract.client.scala.model.domain.{Payload, Request} import amf.apicontract.internal.metamodel.domain.{RequestModel, ResponseModel} import amf.apicontract.internal.spec.common.WebApiDeclarations.ErrorRequest import amf.apicon...
fakeNetflix/twitter-repo-ios-twitter-network-layer
TNLExample/TNLXDummy.h
<gh_stars>1-10 // // TNLXDummy.h // TwitterNetworkLayer // // Created on 8/29/14. // Copyright (c) 2014 Twitter. All rights reserved. // @import UIKit; @interface DummyVC : UIViewController @end
pupper68k/arcusplatform
platform/arcus-subsystems/src/main/java/com/iris/common/subsystem/alarm/generic/InactiveState.java
<reponame>pupper68k/arcusplatform /* * Copyright 2019 Arcus Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
ScalablyTyped/SlinkyTyped
i/ipfs-http-server/src/main/scala/typingsSlinky/ipfsHttpServer/errorHandlerMod.scala
package typingsSlinky.ipfsHttpServer import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object errorHandlerMod { @JSImport("ipfs-http-server/dist/src/error-handler", JSImport...
OSADP/C2C-RI
C2CRIBuildDir/projects/C2C-RI/src/NTCIP2306v01_69/src/test/TemporaryMessageFile.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import j...
kinglyjn/zdemo-parent
zdemo-core-java/src/main/java/concurrent/jmm_shared/basic/problem/low_concurrent_level/Demo01_LowConcurrentLevelProblem.java
package concurrent.jmm_shared.basic.problem.low_concurrent_level; import lombok.extern.slf4j.Slf4j; /** * 并发度低的问题 */ @Slf4j(topic = "c.concurrent.jmm_shared.basic.problem.low_concurrent_level.Demo01_LowConcurrentLevelProblem") public class Demo01_LowConcurrentLevelProblem { public static void main(String[] arg...
cristianlpereira/uri-judge-online-c
1015.c
<reponame>cristianlpereira/uri-judge-online-c #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> int main () { int x1, x2, y1, y2; float Distancia; scanf("%i %i", &x1, &y1); scanf("%i %i", &x2, &y2); Distancia = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)); printf("%.4f...
PONSASIKALA/signal-interpreter-server
src/exercise/lesson3_exercise_5/test_is_hex.py
# pylint: disable=missing-function-docstring import pytest from lesson_3.exercise_5.is_hex import is_hex @pytest.mark.parametrize("item, expected_result", [ ("123", True), ("DEADBEEF", True), ("78AA", True), ("DUMMY", False), ("no hex", False), ]) def test_is_hex(item, expected_res...
cqtddt/AndroidPAD
src/com/shen/hso/listener/NotifyBaseInfoListener.java
package com.shen.hso.listener; import com.shen.hso.entity.TopoBaseData; public interface NotifyBaseInfoListener { public void notifyBaseInfoUpdateView(Object object); public void notifyReadBaseInfoUpdateView(Object object); public void notifyErrorUpdateView(Object object); }
student-t/Xnat
src/main/java/org/nrg/xnat/turbine/modules/screens/DefaultPipelineScreen.java
<filename>src/main/java/org/nrg/xnat/turbine/modules/screens/DefaultPipelineScreen.java /* * web: org.nrg.xnat.turbine.modules.screens.DefaultPipelineScreen * XNAT http://www.xnat.org * Copyright (c) 2005-2017, Washington University School of Medicine and Howard Hughes Medical Institute * All Rights Reserved * * ...
mdegirolami/stay
compiler/src/builtin_functions.cpp
#include <string.h> #include "builtin_functions.h" #include "ast_nodes.h" namespace SingNames { struct IFDesc { const char *name; const char *signature; }; static const char *GetSignatureByKey(IFDesc *map, const char *name); static IAstTypeNode *GetTypeFromSignature(const char type_id, const ExpressionAttrib...
xiaozhu36/alibaba-cloud-sdk-go
services/cassandra/create_data_center.go
<reponame>xiaozhu36/alibaba-cloud-sdk-go<filename>services/cassandra/create_data_center.go package cassandra //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...
userzrq/gulimall
gulimall-order/src/main/java/com/atguigu/gulimall/order/vo/ware/LockStockVo.java
<gh_stars>0 package com.atguigu.gulimall.order.vo.ware; import lombok.Data; import lombok.ToString; import java.util.List; /** * @author userzrq */ @Data @ToString public class LockStockVo { private List<SkuLock> locks; /** * 本次锁定的 最终结果 是成功了还是失败了,用于直接判断 */ private Boolean locked; /** ...
UlisesVelazquez208/hadoop-hdfs-trunk
src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestComputeInvalidateWork.java
<gh_stars>100-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...
xstefank/smallrye-fault-tolerance
testsuite/integration/src/test/java/io/smallrye/faulttolerance/vertx/AbstractVertxTest.java
<reponame>xstefank/smallrye-fault-tolerance package io.smallrye.faulttolerance.vertx; import static org.awaitility.Awaitility.await; import java.util.concurrent.TimeUnit; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import io.smallrye.faulttolerance.util.FaultToleranceIntegration...
MAYANK25402/city-scrapers
tests/test_chi_animal.py
<filename>tests/test_chi_animal.py<gh_stars>1-10 from datetime import datetime from os.path import dirname, join import pytest from city_scrapers_core.constants import ADVISORY_COMMITTEE, PASSED from city_scrapers_core.utils import file_response from city_scrapers.spiders.chi_animal import ChiAnimalSpider test_respo...
jourquin/JFlowMap
src/org/piccolo2d/examples/StickyHandleLayerExample.java
/* * Copyright (c) 2008-2011, Piccolo2D project, http://piccolo2d.org * Copyright (c) 1998-2008, University of Maryland * 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 ...
A-LiX/bit-com-sdk-go
pkg/model/account/get_user_deliveries_response.go
<gh_stars>1-10 package account import "github.com/bitcom-exchange/bitcom-go-api/pkg/model/base" type GetUserDeliveriesResponse struct { base.RestBaseResponse Paging base.OldPaging `json:"paging"` Data []DeliveryVo `json:"data"` } type DeliveryVo struct { Type string `json:"type" example:"delivery"` ...
benmooo/necm-api
user_dj.go
package necmapi import ( "net/http" "regexp" "strconv" ) // 说明 : 登录后调用此接口 , 传入用户 id, 可以获取用户电台 // // required // 必选参数 : uid : 用户 id func (api *NeteaseAPI) UserDj(uid int, opts ...hm) (*APIResponse, error) { u := replaceAllRouteParams(APIRoutes["user_dj"], strconv.Itoa(uid)) data := hm{"limit": 30, "offset": 0}.M...
spencec6/gatsby-twitter-feed
node_modules/webpack-validator/node_modules/joi/lib/string/rfc3986.js
'use strict'; // Load modules // Delcare internals const internals = { rfc3986: {} }; internals.generate = function () { /** * elements separated by forward slash ("/") are alternatives. */ const or = '|'; /** * DIGIT = %x30-39 ; 0-9 */ const digit = '0-9'; const digi...
Instagram-Clone-Coding/Instagram-Clone-Project
src/main/java/cloneproject/Instagram/domain/member/dto/JwtResponse.java
<filename>src/main/java/cloneproject/Instagram/domain/member/dto/JwtResponse.java package cloneproject.Instagram.domain.member.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgs...
SoftmedTanzania/opensrp-client-chw-hf
opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/job/MarkPmtctAndHeiLtfServiceJob.java
<reponame>SoftmedTanzania/opensrp-client-chw-hf package org.smartregister.chw.hf.job; import android.content.Intent; import androidx.annotation.NonNull; import org.smartregister.AllConstants; import org.smartregister.chw.hf.sync.intent.MarkPmtctAndHeiLtfIntentService; import org.smartregister.job.BaseJob; /** * Cr...
tefra/xsdata-w3c-tests
output/models/nist_data/atomic/g_year_month/schema_instance/nistschema_sv_iv_atomic_g_year_month_max_exclusive_1_xsd/__init__.py
<gh_stars>1-10 from output.models.nist_data.atomic.g_year_month.schema_instance.nistschema_sv_iv_atomic_g_year_month_max_exclusive_1_xsd.nistschema_sv_iv_atomic_g_year_month_max_exclusive_1 import NistschemaSvIvAtomicGYearMonthMaxExclusive1 __all__ = [ "NistschemaSvIvAtomicGYearMonthMaxExclusive1", ]
ramok/Themis_ForHPSDR
c2000/C2000Ware_1_00_06_00/device_support/f2806x/examples/c28/bl_app/deprecated/usblib/usb_ids.h
//########################################################################### // // FILE: usb_ids.h // // TITLE: Definitions of VIDs and PIDs used by TI USB examples. // //########################################################################### // $TI Release: F2806x Support Library v2.04.00.00 $ // $Release Date...
valitydev/fraudbusters
src/main/java/dev/vality/fraudbusters/listener/payment/TemplateListener.java
package dev.vality.fraudbusters.listener.payment; import dev.vality.fraudo.FraudoPaymentParser; import dev.vality.damsel.fraudbusters.Command; import dev.vality.damsel.fraudbusters.CommandType; import dev.vality.damsel.fraudbusters.Template; import dev.vality.fraudbusters.fraud.FraudContextParser; import dev.vality.fr...
digitalheir/java-cfg-parser
src/test/java/org/leibnizcenter/cfg/earleyparser/ExpressionWrapperTest.java
<filename>src/test/java/org/leibnizcenter/cfg/earleyparser/ExpressionWrapperTest.java package org.leibnizcenter.cfg.earleyparser; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; /** * Created by maarten on 27-1-17. */ public class ExpressionWrapperTest...
yudong2015/openpitrix
pkg/models/attachment.go
<reponame>yudong2015/openpitrix<gh_stars>100-1000 // Copyright 2018 The OpenPitrix Authors. All rights reserved. // Use of this source code is governed by a Apache license // that can be found in the LICENSE file. package models import ( "fmt" "time" "openpitrix.io/openpitrix/pkg/db" "openpitrix.io/openpitrix/pk...
timfel/netbeans
javafx/javafx2.editor/src/org/netbeans/modules/javafx2/editor/completion/impl/IdReferenceCompleter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
tdiprima/code
recipes/Python/580630_Saving_numpy_array_png_image_using_fitz__MuPDF/recipe-580630.py
#! /usr/bin/python # -*- coding: utf-8 -*- import numpy as np import fitz # this PyMuPDF #============================================================================== # Create any height*width*4 RGBA pixel area using numpy and then use fitz # to save it as a PNG image. # This is usually more than 10 time...
mdbloice/systemds
src/main/java/org/apache/sysds/runtime/controlprogram/federated/FederatedResponse.java
<filename>src/main/java/org/apache/sysds/runtime/controlprogram/federated/FederatedResponse.java<gh_stars>100-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 copyri...
kusum007/kafka-connect-rest
kafka-connect-rest-plugin/src/test/java/com/tm/kafka/connect/rest/http/payload/templated/XPathResponseValueProviderTest.java
package com.tm.kafka.connect.rest.http.payload.templated; import com.tm.kafka.connect.rest.http.Request; import com.tm.kafka.connect.rest.http.Response; import org.junit.Before; import org.junit.Test; import java.util.Collections; import static org.hamcrest.Matchers.*; import static org.junit.Assert.assertThat; imp...
alfazzafashion/image-js
node_modules/fast-png/lib-esm/index.js
import PngDecoder from './PngDecoder'; import PngEncoder from './PngEncoder'; export * from './types'; function decodePng(data, options) { const decoder = new PngDecoder(data, options); return decoder.decode(); } function encodePng(png, options) { const encoder = new PngEncoder(png, options); return enc...
pupper68k/arcusplatform
platform/arcus-lib/src/main/java/com/iris/i18n/DBResourceBundleControl.java
/* * Copyright 2019 Arcus Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
cloudawan/kubernetes_management_gui
controllers/inventory/service/edit.go
// Copyright 2015 CloudAwan LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
lechium/tvOS10Headers
System/Library/PrivateFrameworks/AssistantUI.framework/AFUISpeechSynthesisElement.h
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:08:10 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/PrivateFrameworks/AssistantUI.framework/AssistantUI * classdump-dyld is licensed under GPLv3, Copyright ©...
qualitesys/openssl-1
docs/QcrReportFile01File493detailjsondata.js
<reponame>qualitesys/openssl-1 console.log('leListeStr main01 start json de data maDataBlocs'); var maDataBlocs = { "data00" : { "fic1" : "./qc/crypto/evp/legacy_sha.c.html" , "texte" : "File crypto/evp/legacy_sha.c 20 rule violations " , "fic2" : "./qc/crypto/evp/legacy_sha.c.xml" , "fic3" : "" } ...
cljnnn/v2
locale/locale.go
// Copyright 2018 <NAME>. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package locale // import "miniflux.app/locale" // AvailableLanguages returns the list of available languages. func AvailableLanguages() map[string]string { return ...
Kiransibi/Android-Activity-Tracker-for-Dynamics-CRM-Web-API
app/src/main/java/com/microsoft/activitytracker/classes/scopes/StorageScope.java
package com.microsoft.activitytracker.classes.scopes; import javax.inject.Scope; @Scope public @interface StorageScope { }
powernit/epicode
java/src/main/java/com/epi/PathSumBinaryTree.java
package com.epi; /* @slug path-sum-binary-tree @summary You are given a binary tree where each node is labeled with an integer. The path weight of a node in such a tree is the sum of the integers on the unique path from the root to that node. For the example shown in the figure, the path weight of E is 591. @problem...