repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
amreo/lungo
result.go
package lungo import ( "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" "github.com/256dpi/lungo/bsonkit" ) // ErrNoDocuments is returned by SingleResult if not document has been found. // The value is the same as mongo.ErrNoDocuments and can be used interchangeably. var ErrNoDocuments = mon...
MichaelLangbein/jsonix
scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Util/NumberUtils.js
<filename>scripts/src/main/javascript/org/hisrc/jsonix/Jsonix/Util/NumberUtils.js<gh_stars>100-1000 Jsonix.Util.NumberUtils = { isInteger : function(value) { return Jsonix.Util.Type.isNumber(value) && ((value % 1) === 0); } };
syntheticgio/fda-hive
hive/html/oldjs/seq.js
<gh_stars>0 /* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereby g...
CalledByThe4ire/liga-bank
tasks/browsersync.js
'use strict'; // Start watch with browserSync module.exports = { build: 4, name: 'browserSync:watch', run(done) { if (!this.isDev || !process.env.WATCH) return done(); const browserSync = require('browser-sync').create(); const files = this.paths.slashNormalize(this.paths.dist('**', '*.*')); ...
deniscostadsc/playground
solutions/beecrowd/1589/1589.cpp
#include <cstdint> #include <cstdio> int main() { int16_t n, r1, r2; scanf("%d", &n); while (n--) { scanf("%d %d", &r1, &r2); printf("%d\n", r1 + r2); } return 0; }
cloudfoundry-incubator/cf-networking
src/code.cloudfoundry.org/service-discovery-controller/routes/fakes/address_table.go
<filename>src/code.cloudfoundry.org/service-discovery-controller/routes/fakes/address_table.go // Code generated by counterfeiter. DO NOT EDIT. package fakes import ( "sync" "code.cloudfoundry.org/service-discovery-controller/routes" ) type AddressTable struct { GetAllAddressesStub func() map[string][]stri...
hjc851/SourceCodePlagiarismDetectionDataset
Variant Programs/1/1-3/history/OperatorContest.java
package history; import looked.DayCaretaker; import provider.Grower; public class OperatorContest extends history.SpectaclePrecedent implements java.lang.Comparable<OperatorContest> { public static final java.lang.String JohnPart = "CAN_START"; public provider.Grower manager = null; public OperatorContest(...
kifferltd/open-mika
vm-cmp/awt/rudolph/java5/org/apache/harmony/awt/wtk/GraphicsFactory.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...
mehulagg/gitlab-codesanbox
ee/app/assets/javascripts/vue_shared/security_reports/store/state.js
export default () => ({ blobPath: { head: null, base: null, }, sourceBranch: null, canReadVulnerabilityFeedback: false, vulnerabilityFeedbackPath: null, vulnerabilityFeedbackHelpPath: null, createVulnerabilityFeedbackIssuePath: null, createVulnerabilityFeedbackMergeRequestPath: null, createVu...
minigame-network/core
src/me/chasertw123/minigames/core/utils/items/AbstractItem.java
<reponame>minigame-network/core package me.chasertw123.minigames.core.utils.items; import me.chasertw123.minigames.core.user.User; import org.bukkit.inventory.ItemStack; /** * Created by Chase on 9/2/2017. */ public class AbstractItem { private User pp; private int slot; private ItemStack itemStack; ...
kaizer04/Telerik-Academy-2013-2014
JS/Operators-Expressions-Homework/Operators-Expressions-Homework/Task2/scripts.js
<reponame>kaizer04/Telerik-Academy-2013-2014 // 02. Write a boolean expression that checks for given integer if it can be divided (without remainder) by 7 and 5 in the same time. var number = 36; console.log(((number % 7 == 0) && (number % 5 == 0)) ? "The number divides by 7 and 5" : "The number is not divide by 7 a...
hainguyen81/nlh4j
modules/core/src/test/java/org/nlh4j/core/text/numberinwords/i18n/en/TestNumberInWordsProcessor.java
/* * @(#)TestNumberInWordsProcessor.java 1.0 Oct 5, 2016 * Copyright 2016 by GNU Lesser General Public License (LGPL). All rights reserved. */ package org.nlh4j.core.text.numberinwords.i18n.en; import java.io.Serializable; import org.junit.Test; /** * Test class of {@link NumberInWordsProcessor} * ...
undefinedhuman/OpEngIneX
engine/src/de/undefinedhuman/engine/opengl/shader/uniforms/UniformDirectional.java
package de.undefinedhuman.engine.opengl.shader.uniforms; import de.undefinedhuman.engine.light.DirectionalLight; public class UniformDirectional extends UniformArray { private UniformFloat intensity; private UniformVector3 direction; private UniformVector3 color; public UniformDirectional(String nam...
arifC/kyma
components/helm-broker/internal/helm/automock/helm_delete_installer.go
// Code generated by mockery v1.0.0 package automock import chart "k8s.io/helm/pkg/proto/hapi/chart" import helm "k8s.io/helm/pkg/helm" import mock "github.com/stretchr/testify/mock" import services "k8s.io/helm/pkg/proto/hapi/services" // HelmDeleteInstaller is an autogenerated mock type for the HelmDeleteInstaller...
lixinjian/20170615
ds365-android-commons/src/com/ds365/commons/json/PageParams.java
<filename>ds365-android-commons/src/com/ds365/commons/json/PageParams.java package com.ds365.commons.json; import java.io.Serializable; /** * * @Title: PageVo.java * @Package com.ds365.erp.wms.common.web.vo * @Description: (pageVO) * @author Gavin * @date 2015-1-23 下午4:08:05 * @version V1.0 */ public class P...
noorbeast/blender
intern/cycles/bvh/bvh_multi.h
/* * Copyright 2020, Blender 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 applicable law or agree...
pikesley/skellington
spec/sinatra/app/public_spec.rb
module Skellington describe CLI do let :subject do described_class.new end it 'generates placeholders for static files' do subject.generate 'dummy-app' expect(File).to exist 'dummy_app/public/js/dummy_app.js' expect(File).to exist 'dummy_app/public/assets/favicon.ico' end e...
cactacea/backend
core/src/test/scala/io/github/cactacea/backend/core/domain/repositories/UserChannelsRepositorySpec.scala
package io.github.cactacea.backend.core.domain.repositories import io.github.cactacea.backend.core.domain.enums.{ChannelPrivacyType, MessageType} import io.github.cactacea.backend.core.helpers.specs.RepositorySpec import io.github.cactacea.backend.core.util.exceptions.CactaceaException import io.github.cactacea.backen...
artanikin/budget
db/migrate/20190802120342_add_owner_at_to_document.rb
class AddOwnerAtToDocument < ActiveRecord::Migration[5.1] def change add_column :documents, :owner_id, :integer add_column :documents, :owner_type, :string end end
dukefirehawk/infinispan
object-filter/src/main/java/org/infinispan/objectfilter/impl/predicateindex/package-info.java
/** * An efficient index for boolean expressions. * * @author <EMAIL> * @since 7.0 * * @api.private */ package org.infinispan.objectfilter.impl.predicateindex;
iootclab/openjdk
openjdk11/test/hotspot/jtreg/runtime/SharedArchiveFile/SASymbolTableTestAgent.java
<reponame>iootclab/openjdk /* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * p...
tizenorg/profile.ivi.smartdevicelink
SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/enums/TBTState.java
// // Copyright (c) 2013 Ford Motor Company // package com.smartdevicelink.proxy.rpc.enums; public enum TBTState { ROUTE_CANCELLED, DESTINATION_REACHED, ROUTE_UPDATE_MANUAL, OFF_ROUTE_UPDATE, OFF_ROUTE_DECLINED, ROUTE_ACCEPTED, ROUTE_REFUSED; public static TBTState valueForString(String value) { r...
SeraphRoy/PyPy-Functional
pypy/interpreter/unicodehelper.py
<gh_stars>1-10 from pypy.interpreter.error import OperationError from rpython.rlib.objectmodel import specialize from rpython.rlib import runicode from pypy.module._codecs import interp_codecs @specialize.memo() def decode_error_handler(space): # Fast version of the "strict" errors handler. def raise_unicode_e...
arnaud-morvan/pyramid_oereb
pyramid_oereb/contrib/data_sources/standard/__init__.py
# -*- coding: utf-8 -*- import re from sqlalchemy.schema import CreateTable from sqlalchemy.dialects import postgresql def convert_camel_case_to_snake_case(name): s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name) return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() def convert_camel_case_to_text_form(nam...
saulo-alvarado/nimiogcs
nimiogcs-core/src/main/java/es/nimio/nimiogcs/jpa/entidades/operaciones/relaciones/RelacionOperacionSitio.java
package es.nimio.nimiogcs.jpa.entidades.operaciones.relaciones; import javax.persistence.Access; import javax.persistence.AccessType; import javax.persistence.DiscriminatorValue; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.O...
rneogns/simpleio
Library/Deps/MySQL/Include/template_utils.h
<reponame>rneogns/simpleio /* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. ...
pierotofy/rosettadrone
app/src/main/cpp/gstreamer-1.0/armv7/include/json-glib-1.0/json-glib/json-path.h
/* json-path.h - JSONPath implementation * * This file is part of JSON-GLib * Copyright © 2011 Intel Corp. * * This library 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 ...
pppttl/TrackMyMarks
middlewares/course/getAllCoursesMW.js
var requireOption = require('../common').requireOption; /** * Get all the courses * put it on res.tpl */ module.exports = function (objectrepository) { var courseModel = requireOption(objectrepository, 'courseModel'); return function (req, res, next) { if (res.tpl.logToConsole) console.log('getAl...
spulec/pep8ify
pep8ify/fixes/fix_tabs.py
from __future__ import unicode_literals from lib2to3.fixer_base import BaseFix from lib2to3.pytree import Leaf from .utils import SPACES class FixTabs(BaseFix): ''' For new projects, spaces-only are strongly recommended over tabs. Most editors have features that make this easy to do. ''' def mat...
qwerlarlgus/JS-Basic
javascript_subway_path_precourse/src/utils/Dijkstra.js
<gh_stars>1-10 /* eslint-disable */ export default function Dijkstra() { const Node = { init: function (val, priority) { this.val = val; this.priority = priority; }, }; const PriorityQueue = { init: function () { this.values = []; }, enqueue: function (val, priority) { ...
touxiong88/92_mediatek
packages/apps/iSMS/tests/src/com/hissage/tests/AcNotificationReceiverTest.java
package com.hissage.tests; import android.app.Instrumentation; import android.content.Context; import android.content.Intent; import android.test.InstrumentationTestCase; import com.mediatek.mms.ipmessage.IIpMessagePlugin; import com.mediatek.pluginmanager.PluginManager; import com.mediatek.imsp.ServiceManagerExt; im...
soulgoast/blog-repository
source_code/src/goodman/com/sun/corba/se/impl/orbutil/closure/Future.java
<reponame>soulgoast/blog-repository /* * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package goodman.com.sun.corba.se.impl.orbutil.closure; import com....
mqlight/qpid-proton
proton-j/src/main/java/org/apache/qpid/proton/codec/DecoderImpl.java
<reponame>mqlight/qpid-proton /* * * 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, Ver...
fortune/Hello-Shindig
extras/src/main/java/org/apache/shindig/extras/as/opensocial/model/MediaLink.java
<reponame>fortune/Hello-Shindig<filename>extras/src/main/java/org/apache/shindig/extras/as/opensocial/model/MediaLink.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...
kishorevarma369/Competitive-Programming
testing/24.cpp
#include <bits/stdc++.h> using namespace std; void func() { int n; cin>>n; vector<int> v(n); for(int i=0;i<n;i++) cin>>v[i]; queue<int> q; sort(v.begin(), v.end()); q.push(v[0]); for (int i = 1; i < n; i++) { int now = q.front(); if (v[i] > now) q.pop(); q.push(v[i]); } co...
eloigrndl/mini-projet2
java/ch/epfl/cs107/play/game/areagame/actor/Interactor.java
<reponame>eloigrndl/mini-projet2 package ch.epfl.cs107.play.game.areagame.actor; import ch.epfl.cs107.play.math.DiscreteCoordinates; import java.util.List; /** * Models objects asking for interaction (i.e. can interact with some Interactable) * @see Interactable * This interface makes sense only in the "Area Cont...
libwifi/libwifi
src/libwifi/core/frame/frame.c
/* Copyright 2021 The libwifi Authors * * 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...
ark100/multi-os-engine
moe/tools/moe.plugin.gradle/src/main/java/org/moe/gradle/options/PackagingOptions.java
<filename>moe/tools/moe.plugin.gradle/src/main/java/org/moe/gradle/options/PackagingOptions.java /* Copyright (C) 2016 Migeran 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....
tlgs/dailyprogrammer
Python/easy/e312.py
# 25/04/2017 mapping = {'A': '4', 'B': '6', 'E': '3', 'I': '1', 'L': '1', 'M': '(V)', 'N': '(\\)', 'O': '0', 'S': '5', 'T': '7', 'V':'\\/', 'W': '`//'} def from_l33t(string): for k, v in mapping.items(): string = string.replace(v, k) return string[0].upper() + string[1:].lower() def to_l33...
stonef13/grace-shopper
server/api/admin.js
<gh_stars>1-10 const router = require('express').Router() const isAuthorized = require('./gatekeeper') const {Product, Attribute} = require('../db/models') const {createAssociations, updateAssociations} = require('./utility') module.exports = router /** * POST a new product to the database, * requires administrative...
LaudateCorpus1/go3mf
production/encoder_test.go
<gh_stars>10-100 // © Copyright 2021 HP Development Company, L.P. // SPDX-License Identifier: BSD-2-Clause package production import ( "testing" "github.com/go-test/deep" "github.com/hpinc/go3mf" "github.com/hpinc/go3mf/spec" ) func TestMarshalModel(t *testing.T) { components := &go3mf.Object{ AnyAttr: spec....
malmil/frontend-components
src/components/Tabs/TabItem/TabItem.js
import * as React from 'react'; import PropTypes from 'prop-types'; export default class TabItem extends React.PureComponent { static propTypes = { /** @deprecated Teksten på arkfanen */ linkText: PropTypes.string, /** Teksten på arkfanen */ headerText: PropTypes.string, /** Unik identifikator av...
Frezc/react-redux-project
src/maintain/containers/CompanyModal/index.js
<gh_stars>0 /** * Created by Frezc on 2016/11/16. */ import React, { PureComponent, PropTypes } from 'react'; import { connect } from 'react-redux'; import { easyGet, api, easyPost } from '../../../network'; import { Modal, message, Spin, Form, Input, Radio, Collapse } from 'antd'; const FormItem = Form.Item; const {...
abuasifkhan/pc-code
solved/r-t/the-unreal-tournament/unreal.cpp
<filename>solved/r-t/the-unreal-tournament/unreal.cpp #include <cstdio> #include <cstring> #include <vector> using namespace std; #define MAXI 1000 #define MAXJ 1000 #define EPS (1e-9) #define Zero(v) memset((v), 0, sizeof(v)) #define RFor(t,i,c) for(t::reverse_iterator i=(c).rbegin(); i!=(c).rend(); ++i) typedef...
taulinger/bav4-nomigration
src/modules/commons/components/checkbox/Checkbox.js
import { html } from 'lit-html'; import { MvuElement } from '../../../MvuElement'; import css from './checkbox.css'; const Update_Disabled = 'update_disabled'; const Update_Checked = 'update_checked'; const Update_Title = 'update_title'; /** * Events: * - onToggle() * * Properties: * - `checked` * - `disabled` ...
Ahmedaltayyar/broadcast
node_modules/goodparts/test/fixtures/callback-return.pass.js
function foo(err, callback) { if (err) { return callback(err); } }
varijkapil13/atlaskit
packages/core/comment/src/styled/HeaderStyles.js
<reponame>varijkapil13/atlaskit<gh_stars>1-10 // @flow import styled from 'styled-components'; import { colors, gridSize } from '@atlaskit/theme'; const ThemeColor = { Restricted: { text: colors.N100A, }, }; export const BulletSpacer = styled.span` padding-right: ${gridSize() / 2}px; `; export const Restr...
valentinvarbanov/software_engineering_2021
homework_03/07_gergana_roeva/hw03.py
from enum import Enum from math import sqrt class RelativePosition(Enum): NO_COMMON_POINTS = 1 TOUCHING = 2 INTERSECTING = 3 SAME = 4 class Point: def __init__(self, x, y): self.x = x self.y = y class Circle: def __init__(self, center, r): self.center = center ...
alwyn/intellij-community
java/java-psi-impl/src/com/intellij/psi/impl/source/javadoc/PsiDocTagImpl.java
<reponame>alwyn/intellij-community /* * Copyright 2000-2012 JetBrains s.r.o. * * 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...
vrazdalovschi/kbcli
kbclient/payment_transaction/get_payment_by_transaction_id_responses.go
<reponame>vrazdalovschi/kbcli // Code generated by go-swagger; DO NOT EDIT. package payment_transaction // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/killbill/kb...
matteoRondyUni/JBudget
src/main/java/it/unicam/cs/pa/jbudget/javaFX/input/JavaFXCategoryController.java
<filename>src/main/java/it/unicam/cs/pa/jbudget/javaFX/input/JavaFXCategoryController.java package it.unicam.cs.pa.jbudget.javaFX.input; import it.unicam.cs.pa.jbudget.controller.Controller; import it.unicam.cs.pa.jbudget.model.Category; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene....
chenkuangfeng/framework
framework-mainframe/src/main/java/com/ubsoft/framework/mainframe/formbase/FormEngine.java
package com.ubsoft.framework.mainframe.formbase; import java.awt.Component; import java.awt.Container; import java.awt.GridBagConstraints; import java.awt.Insets; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.swing.JInternalFrame; import javax.swing.JLabel; import com.ubsoft.fra...
vladislav-horbatiuk/ossim
include/ossim/base/ossimMatrixProperty.h
//******************************************************************* // // License: See top level LICENSE.txt file. // // Author: <NAME> (<EMAIL>) // //************************************************************************* // $Id: ossimMatrixProperty.h 17074 2010-04-14 18:49:11Z dburken $ #ifndef ossimMatrixProper...
HongZhaoHua/jstarcraft-dataset
src/main/java/com/jstarcraft/crawler/book/ireader/IreaderBook.java
package com.jstarcraft.crawler.book.ireader; /** * 掌阅书籍 * * 书籍信息:https://www.ireader.com.cn/index.php?ca=bookdetail.index&pca=channel.index&bid={id} * 书籍评论:https://www.ireader.com.cn/index.php?ca=Sns_Topic.Index&pca=bookdetail.index&cid=book_{id}&page={page} * 章节列表:https://www.ireader.com.cn/index.php?ca=...
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
JPS_VIRTUALSENSOR/src/test/java/uk/ac/cam/cares/jps/virtualsensor/agents/test/WeatherAgentTest.java
package uk.ac.cam.cares.jps.virtualsensor.agents.test; import org.json.JSONObject; import junit.framework.TestCase; import uk.ac.cam.cares.jps.base.discovery.AgentCaller; import uk.ac.cam.cares.jps.virtualsensor.agents.WeatherAgent; import uk.ac.cam.cares.jps.virtualsensor.objects.WeatherStation; import uk.ac.cam.car...
cider/cider
Godeps/_workspace/src/github.com/meeko/go-meeko/meeko/transports/inproc/rpc/messages_upstream.go
<reponame>cider/cider<filename>Godeps/_workspace/src/github.com/meeko/go-meeko/meeko/transports/inproc/rpc/messages_upstream.go // Copyright (c) 2013 The go-meeko AUTHORS // // Use of this source code is governed by The MIT License // that can be found in the LICENSE file. package rpc import ( // Stdlib "bytes" "e...
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
Storylines/storyline_runs/run_random_suite.py
<reponame>Komanawa-Solutions-Ltd/SLMACC-2020-CSRA """ Author: <NAME> Created: 24/02/2021 10:46 AM """ import os import ksl_env import glob import numpy as np import pandas as pd import gc import netCDF4 as nc import psutil import itertools from Climate_Shocks.climate_shocks_env import temp_storyline_dir from Storyli...
osidorkin85/nno
backend/watchdir/src/test/java/net/n2oapp/watchdir/WatchDir2Test.java
package net.n2oapp.watchdir; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import java.io.File; import java.nio.file.Path; import java.nio.file.Paths; import static org.junit.Assert.*; import static org.junit.Assert.assertFals...
1iyiwei/deform2d
Wml/Include/WmlIntrLin3Con3.h
// Magic Software, Inc. // http://www.magic-software.com // http://www.wild-magic.com // Copyright (c) 2004. All Rights Reserved // // The Wild Magic Library (WML) source code is supplied under the terms of // the license agreement http://www.magic-software.com/License/WildMagic.pdf // and may not be copied or disclos...
ivanceras/orm
src/test/java/com/ivanceras/db/sample/DefaultDAOInstanceProvider.java
<reponame>ivanceras/orm package com.ivanceras.db.sample; import com.ivanceras.db.shared.DAO; import com.ivanceras.db.api.DAOFactory; import com.ivanceras.db.shared.exception.DAOInstanceFactoryException; public class DefaultDAOInstanceProvider implements DAOFactory{ @Override @SuppressWarnings("unchecked") public <...
onezens/QQTweak
qqtw/qqheaders7.2/QQValidButton.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIButton.h" @class UIColor; @interface QQValidButton : UIButton { UIColor *_lineColor; } - (void)dealloc; - (void)drawRect:(struct CGRect)arg1; - (void)setLineColor:(id)ar...
s3a-spatialaudio/VISR
src/python/rbbl/multichannel_convolver_uniform.cpp
<filename>src/python/rbbl/multichannel_convolver_uniform.cpp /* Copyright Institute of Sound and Vibration Research - All rights reserved */ #include <librbbl/multichannel_convolver_uniform.hpp> #include <libefl/basic_matrix.hpp> #include <libpml/filter_routing_parameter.hpp> #include <libpml/matrix_parameter.hpp> ...
soamsy/leetcode
src/0955_min_deletion_size.py
def minDeletionSize(strs: list[str]) -> int: needToCheck = set(range(len(strs))) count = 0 for col in zip(*strs): pairs = [p for p in zip(col, col[1:])] if all([a <= b for i, (a, b) in enumerate(pairs) if i in needToCheck]): needToCheck -= {i for i, (a, b) in enumerate(pairs) if ...
jhnaldo/jest
data/generated/1098.js
<gh_stars>1-10 var x = Promise . prototype . finally . call ( x => { } , x == x ) ;
olivergeith/android_jcodec
src/org/jcodec/codecs/h264/decode/aso/MBToSliceGroupMap.java
<reponame>olivergeith/android_jcodec package org.jcodec.codecs.h264.decode.aso; /** * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * Contains a mapping of macroblocks to slice groups. Groups is an array of * group slice group indices having a dimen...
honeytavis/cpp
Thinking_in_Cpp/I/C10/reference/ReferenceToPointer.cc
<filename>Thinking_in_Cpp/I/C10/reference/ReferenceToPointer.cc #include <iostream> void increament(int*& i) { ++i; } int main() { //int* i = 0; int* i = NULL; std::cout << "i = " << i << '\n'; increament(i); std::cout << "i = " << i << '\n'; i = NULL; }
nellochen/springboot-start
utils/src/main/java/com/xiaofeng/utils/designpatterns/interpreter/context/Node.java
<filename>utils/src/main/java/com/xiaofeng/utils/designpatterns/interpreter/context/Node.java package com.xiaofeng.utils.designpatterns.interpreter.context; /** * @author <NAME> * @version 1.0.0 * @date 2017/07/28 * @email <EMAIL> */ abstract public class Node { public abstract void interpret(Context text);...
lorenz0890/pytorch-admm-pruning
experiments/baseline.py
<gh_stars>0 from __future__ import print_function import argparse import copy import torch import torch.nn.functional as F from torch.optim import Adam, SGD from torch.optim.lr_scheduler import MultiStepLR from pruning import GradientDiversity, GradientDiversityTopKGradients, RePruningLinearDet from pruning import Re...
Greedylightning/LeetCode_Second
LinkedList/LinkedListCycle.java
<reponame>Greedylightning/LeetCode_Second class LinkedListCycle{ public boolean hasCircle(ListNode head){ if(head == null || head.next == null) return false; Set<ListNode> set = new HashSet<ListNode>(); ListNode current = head; while(current.next != null){ if(set.contain...
ored95/data-analysis-course
dawp2020/hy-data-analysis-with-python-2020/part03-e03_most_frequent_first/src/most_frequent_first.py
<gh_stars>0 #!/usr/bin/env python3 import numpy as np def most_frequent_first(a, c): # Get c-th column col = a[:, c] # Get unique values from col and its frequencies values, counts = np.unique(col, return_counts=True) # Sort values by index in descending order idx = np.argsort(-counts) # min...
krill11/RoboRavens-UltimateGoal
FtcRobotController/src/main/java/Team7159/OpModes/RoverRuckus/Crater.java
//package Team7159.OpModes.RoverRuckus; // //import com.qualcomm.robotcore.eventloop.opmode.Disabled; //import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; //import com.qualcomm.robotcore.eventloop.opmode.Autonomous; // //import org.firstinspires.ftc.robotcore.external.ClassFactory; //import org.firstinspires....
chuckbot/social-network
frontend/src/router/index.js
import { createRouter, createWebHashHistory } from "vue-router"; const routes = [ { path: "/", name: "app", redirect: "/home", component: () => import("../App.vue"), }, { path: "/home", name: "home", component: () => import("../views/Home.vue"), meta: { requiresAuth: true }, }, ...
LPadial/AcmeDancer
src/main/java/repositories/TutorialRepository.java
package repositories; import java.util.Collection; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import domain.Tutorial; public interface TutorialRepository extends JpaRepository<Tutorial, Integer>{ //Tutoriales de un academia @Query("select a...
dominieq/rule-work
src/main/java/pl/put/poznan/rulestudio/enums/converters/StringToDefaultClassificationResultTypeConverter.java
<gh_stars>1-10 package pl.put.poznan.rulestudio.enums.converters; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.convert.converter.Converter; import pl.put.poznan.rulestudio.enums.DefaultClassificationResultType; import pl.put.poznan.rulestudio.exception.WrongParameterExceptio...
HSLdevcom/hsl-map-publisher-ui
cypress/integration/general.spec.js
const uuidv4 = require('uuid/v4'); const API_URL = Cypress.config().apiUrl; const TEST_PREFIX = 'CY-TEST'; describe('General tests', () => { before(() => { cy.hslLogin(); cy.wait(3000); cy.request('GET', `${API_URL}/builds`) .its('body') .then(buildArr => { const testBuilds = buildAr...
brianlizhou/GameAuthoringEnvironment
src/main/java/xml/XMLSerializer.java
<reponame>brianlizhou/GameAuthoringEnvironment package xml; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; import gameengine.network.ServerMessage; import objects.ClientGame; import objects.Game; /** * This class is to be called when the Game Editor sends all of its info...
iKevinY/advent
2018/day24.py
import re import copy import fileinput from utils import parse_line, parse_nums class Group: def __init__(self, is_infection, num, _count, hp, weaknesses, immunities, dmg, type, initiative): self.alliance = 'Infection' if is_infection else 'Immune System' self.is_infection = is_infection ...
sgrjr/centerpoint
resources/js/src/components/CustomMenuLink.js
<gh_stars>0 import React from 'react'; import MenuItem from '@material-ui/core/MenuItem'; import IconButton from '@material-ui/core/IconButton'; import Badge from '@material-ui/core/Badge'; import PropTypes from 'prop-types'; import IconPicker from './IconPicker' import { Link } from "react-router-dom"; import Divider ...
li6722778/mybisheSer
app/actor/model/ScanCounponModel.java
<filename>app/actor/model/ScanCounponModel.java<gh_stars>0 package actor.model; import java.io.Serializable; public class ScanCounponModel implements Serializable{ public final static int TYPE_DEFAULT = 0; public final static int TYPE_SHARE = 1; /** * */ private static final long serialVersionUID = 1L; ...
giantswarm/kvm-operator
service/controller/resource/serviceaccount/desired_test.go
<gh_stars>10-100 package serviceaccount import ( "context" "testing" "github.com/giantswarm/apiextensions/v3/pkg/apis/provider/v1alpha1" "github.com/giantswarm/micrologger/microloggertest" corev1 "k8s.io/api/core/v1" "k8s.io/client-go/kubernetes/fake" ) func Test_Resource_ServiceAccount_GetDesiredState(t *test...
dxc-automation/TST
src/main/java/com/sap/config/BrowserManager.java
package com.sap.config; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.Dimension; import org.openqa.selenium.Point; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium...
rien/nanoc
nanoc-live/spec/nanoc/live/command_runners/live_spec.rb
<reponame>rien/nanoc # frozen_string_literal: true describe Nanoc::Live::CommandRunners::Live, site: true, stdio: true, fork: true do def run_cmd pipe_stdout_read, pipe_stdout_write = IO.pipe pid = fork do trap(:INT) { exit(0) } pipe_stdout_read.close $stdout = pipe_stdout_write Nanoc...
Const-me/vis_avs_dx
avs_dx/DxVisuals/Utils/Intrinsics/Extra/sse2-extra.hpp
// This file is generated automatically by a tool. If you want to change it, fork & modify the tool instead: https://github.com/Const-me/IntelIntrinsics #pragma once #include "../sse.hpp" namespace Intrinsics { namespace Sse { using VecFloat64 = __m128d; // movemask_pd will return this value when every lane has ...
denizyuret/fastsubs
sentence.c
#include <stdio.h> #include "foreach.h" #include "sentence.h" #define SOSTAG "<s>" #define EOSTAG "</s>" #define UNKTAG "<unk>" static Token SOS, EOS, UNK; static void init_special_tokens() { SOS = token_from_string(SOSTAG); EOS = token_from_string(EOSTAG); UNK = token_from_string(UNKTAG); } guint32 sentence_...
noear/solon_demo
demo03.solon_mvc/src/main/java/webapp/controller/RenderCustomController.java
<gh_stars>1-10 package webapp.controller; import org.noear.solon.annotation.Controller; import org.noear.solon.annotation.Mapping; import org.noear.solon.core.handle.Context; import org.noear.solon.core.handle.Render; /** * 控制器实现Render,即可获取自定义渲染权限; * * 可以在有需要的控制器上实现;也可以定义一个基类,然后有需要的控制器继承一下 * * @author noear 2020...
raduceaca1234/Requirements-Engineering
src/main/java/com/example/RequirementsProject/domain/Contact.java
<gh_stars>0 package com.example.RequirementsProject.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.Embeddable; @Data @NoArgsConstructor @AllArgsConstructor @Embeddable public class Contact { private String phoneNumber; private String ...
ArcadeFever/vircadia-content
Marketplace/Cardz/Deck_Handler.js
// // Deck_Handler.js // unpublished/marketplace/ // // Created by Je'Don (ROC) Carter on 9/14/2017 // Copyright 2017 High Fidelity, Inc. // // Server script that controls some card visibility behavior by swapping textures and creating cards // // Distributed under the Apache License, Version 7.1. // S...
comic/comic-django
app/grandchallenge/emails/tasks.py
<filename>app/grandchallenge/emails/tasks.py<gh_stars>1-10 from celery import shared_task from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from django.core.exceptions import ObjectDoesNotExist from django.core.mail import EmailMultiAlterna...
rccarper/aws-sdk-java-v2
test/dynamodbdocument-v1/src/test/java/software/amazon/awssdk/services/dynamodb/document/QueryOutcome.java
/* * Copyright 2010-2020 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
fgulan/p-p-j
semantic-analysis/system-test/additional-examples/b98242ec5c36c83eed5eb61280687283/b98242ec5c36c83eed5eb61280687283.c
<gh_stars>1-10 void foo (int x, int c, char h); int f(void) { return 0; } int x = 3; //int deklaracijaBezDefinicije(int x); int main(void) { int a = 5; const char c = 'i'; int niz[3]; void foo (int x, int c, char h); int x = 5; int y = x + 1; a = a+3; if (...
datoga/go-form3
pkg/generated/models/account_attributes_identification_address.go
// 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 ( "encoding/json" "log" "github.com/form3tech-oss/go-form3/pkg/client" strfmt "github.com/go-openapi/strfmt" ...
cacerrillos/nhaystack
src/nhaystack/driver/point/learn/BNHaystackLearnStructureJob.java
<gh_stars>0 // // Copyright (c) 2012, J2 Innovations // Licensed under the Academic Free License version 3.0 // // History: // 14 Apr 2014 <NAME> Creation package nhaystack.driver.point.learn; import java.util.*; import javax.baja.control.*; import javax.baja.history.*; import javax.baja.job.*; import javax.baja...
vrazdalovschi/kbcli
kbclient/payment/void_payment_responses.go
<gh_stars>10-100 // Code generated by go-swagger; DO NOT EDIT. package payment // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/killbill/kbcli/v2/kbcommon" strfmt...
z-zxq-123456/myproject
personalRabbitmp/src/main/java/com/example/rabbitmp/consumer/FirstConsumer2.java
package com.example.rabbitmp.consumer; import org.springframework.amqp.rabbit.annotation.RabbitHandler; import org.springframework.amqp.rabbit.annotation.RabbitListener; import org.springframework.stereotype.Component; @Component @RabbitListener(queues = "FIRST_QUEUE") public class FirstConsumer2 { @RabbitHandle...
Didotto/QT-GUI-Miner
apps/QT-GUI-Client/src/main/controller/SaveController.java
package controller; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.SocketException; import javafx.beans.binding.Bindings; import javafx.beans.binding.BooleanBinding; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.cont...
poliglota-ti/hubspot-api-ruby
spec/features/crm/schemas/core_api_spec.rb
<reponame>poliglota-ti/hubspot-api-ruby<gh_stars>10-100 require 'spec_helper' describe 'Hubspot::Crm::Schemas::CoreApi' do subject(:core_api) { Hubspot::Crm::Schemas::CoreApi.new } it { is_expected.to respond_to(:archive) } it { is_expected.to respond_to(:archive_association) } it { is_expected.to respond_t...
creative-sensor/echo-home
codev/RemoteMP3Player/src/java/db/exfacades/Mp3itemFacadeExt.java
<reponame>creative-sensor/echo-home /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package db.exfacades; import db.facades.AbstractFacade; import entity.Mp3item; import java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax....
kgudger/ResistorCam
node_modules/cordova/node_modules/npm/test/tap/peer-deps-invalid.js
var fs = require('graceful-fs') var path = require('path') var mkdirp = require('mkdirp') var mr = require('npm-registry-mock') var osenv = require('osenv') var rimraf = require('rimraf') var test = require('tap').test var Tacks = require('tacks') var Dir = Tacks.Dir var File = Tacks.File var npm = require('../../') ...
Titzi90/hpx
hpx/parallel/util/scan_partitioner.hpp
// Copyright (c) 2007-2015 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(HPX_PARALLEL_UTIL_SCAN_PARTITIONER_DEC_30_2014_0227PM) #define HPX_PARALLEL_UTIL_SCAN_PARTITIONER_DEC_30_2014_022...
iFun/Project-G
solutions/0637-average-of-levels-in-binary-tree/average-of-levels-in-binary-tree.py
# Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. # # Example 1: # # Input: # 3 # / \ # 9 20 # / \ # 15 7 # Output: [3, 14.5, 11] # Explanation: # The average value of nodes on level 0 is 3, on level 1 is 14.5, and on level 2 is ...