repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
thewizrd-projects/SimpleWeather-Android
shared_resources/src/main/java/com/thewizrd/shared_resources/weatherdata/openweather/CurrentRootobject.java
package com.thewizrd.shared_resources.weatherdata.openweather; import com.google.gson.annotations.SerializedName; import com.vimeo.stag.UseStag; import java.util.List; @UseStag(UseStag.FieldOption.ALL) public class CurrentRootobject { @SerializedName("dt") private long dt; @SerializedName("coord") ...
zhengyangtean/CG4001_Heron_ElasticBolt
heron/scheduler-core/tests/java/com/twitter/heron/scheduler/RuntimeManagerRunnerTest.java
<filename>heron/scheduler-core/tests/java/com/twitter/heron/scheduler/RuntimeManagerRunnerTest.java // Copyright 2016 Twitter. 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 Li...
yeetee179/TizenRT
apps/examples/testcase/le_tc/network/tc_net_setsockopt.c
<reponame>yeetee179/TizenRT /**************************************************************************** * * Copyright 2016 Samsung Electronics 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 obt...
itmat0/votr
aisikl/components/menuitem.py
from aisikl.events import action_event from .actionablecontrol import ActionableControl class MenuItem(ActionableControl): def __init__(self, dialog, id, type, parent_id, properties, element): super().__init__(dialog, id, type, parent_id, properties, element) self.popup_menu_id = properties.get('...
jeikabu/lumberyard
dev/Code/CryEngine/CryCommon/StatObjBus.h
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/Safari/SafariSandboxBroker.h
<reponame>phatblat/macOSPrivateFrameworks<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>. // #import "WBSSafariSandboxBroker.h" #import "SafariSandboxBrokerProtocol.h" @class NSMutableDictionary, NSObject<OS_dispatch_gro...
rtxu/cp
leetcode/design-browser-histor/solution.go
<filename>leetcode/design-browser-histor/solution.go type BrowserHistory struct { history []string current int } func Constructor(homepage string) BrowserHistory { h := BrowserHistory{} h.history = append(h.history, homepage) h.current = 0 return h } func (this *BrowserHistory) Visit(url str...
06needhamt/intellij-community
platform/lang-impl/src/com/intellij/application/options/editor/EditorOptionsTopHitProvider.java
<gh_stars>0 // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.application.options.editor; import com.intellij.ide.ui.OptionsSearchTopHitProvider; import com.intellij.ide.ui.search.OptionDescription; import o...
ytjia/coding-pratice
algorithms/java/src/test/java/leetcode/RotateImageTest.java
<reponame>ytjia/coding-pratice package leetcode; import org.junit.Assert; import org.junit.Before; import org.junit.Test; /** * @author ytjia created on 2017-10-31 19:26 */ public class RotateImageTest { RotateImage.Solution solution; @Before public void setUp() throws Exception { RotateImage rotateImag...
luisbouca/Schmocial
public/javascripts/events.js
<reponame>luisbouca/Schmocial $(() => { //Carrega o evento mais proximo que participas var eventos var pic var contador = 0 $.ajax({ type: "GET", contentType: "application/json", url: "http://localhost:3000/api/events/byDate/", dataType: "json", success: funct...
trumanwong/leetcode
algorithms/0011.ContainerWithMostWater/maxArea/maxArea.go
package maxArea func MaxArea(height []int) int { if len(height) <= 1 { return -1 } left, right := 0, len(height)-1 res := 0 for left < right { h := min(height[left], height[right]) res = max(res, h*(right-left)) if height[left] < height[right] { left++ } else { right-- } } return res } func m...
dgr8akki/DS-Algo-Made-Easy-With-Aakash
Leetcode/Solution_448_NumbersDisapper.java
package Leetcode; class Solution_448_NumbersDisapper { public List<Integer> findDisappearedNumbers(int[] nums) { List<Integer> ret = new ArrayList<Integer>(); for (int i = 0; i < nums.length; i++) { int val = Math.abs(nums[i]) - 1; if (nums[val] > 0) { nums[val] = -nums[val]; } ...
google/brailleback
braille/brailleback/src/com/googlecode/eyesfree/brailleback/rule/VerticalContainerBrailleRule.java
/* * Copyright (C) 2012 Google Inc. * * 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 ...
knoteHOW/ver2
src/router/index.js
import React, { Suspense } from "react"; import { isMobile, isTablet } from 'react-device-detect'; import PcRouter from './PcRouter'; import MobileRouter from './MobileRouter'; const routing = () => { if (isMobile && !isTablet) { return <MobileRouter /> } return <PcRouter /> } const Router = () => { retu...
parasharrajat/qml-tools
server/Qt5.12.8.static/include/QtCharts/qtchartsversion.h
/* This file was generated by syncqt. */ #ifndef QT_QTCHARTS_VERSION_H #define QT_QTCHARTS_VERSION_H #define QTCHARTS_VERSION_STR "5.12.8" #define QTCHARTS_VERSION 0x050C08 #endif // QT_QTCHARTS_VERSION_H
Mrcopytuo/Design_Pattern_2020
src/main/java/com/github/tongjisserollman/iceamusementpark/abstractfactory/Facility.java
package com.github.tongjisserollman.iceamusementpark.abstractfactory; /** * @author Moreonenight * * 不同类型的游乐设施 */ public abstract class Facility { protected int facilityId; protected String facilityName; public Facility(int facilityId, String facilityName) { this.facilityId = facilityId; ...
SnowPrimate/ChaosRadio
node_modules/skipper/lib/private/Upstream/build-renamer-stream.js
/** * Module dependencies */ var util = require('util'); var path = require('path'); var TransformStream = require('stream').Transform; var _ = require('@sailshq/lodash'); var debug = require('debug')('skipper'); var UUIDGenerator = require('uuid/v4'); /** * [exports description] * @param {Object} options [d...
pazamelin/openvino
docs/template_plugin/tests/functional/op_reference/lrn.cpp
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include "base_reference_test.hpp" #include "openvino/op/constant.hpp" #include "openvino/op/lrn.hpp" using namespace reference_tests; using namespace ov; namespace { struct LRNParams { template <cla...
Razor-87/hackerrank
python/easy/introduction/division.py
<filename>python/easy/introduction/division.py<gh_stars>0 # -*- coding: utf-8 -*- from typing import Tuple def division(a: int, b: int) -> Tuple[int, float]: """ >>> division(4, 3) (1, 1.3333333333333333) """ return a // b, a / b if __name__ == '__main__': a, b = int(input()), int(input()) ...
okamumu/jspetrinet
src/jspetrinet/marking/Mark.java
package jspetrinet.marking; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import jspetrinet.graph.Arc; public final class Mark extends jspetrinet.graph.Node implements Comparable<Mark> { private final int[] vec; private GenVec genvec; private boolean imm; public Mark(int size) { ...
taskography/3dscenegraph-dev
scenegraph/exp-official/taskographyv5medium5bagslots5_Cerberus-sat/taskographyv5medium5bagslots5_Cerberus-sat_test.py
STATS = [] num_timeouts = 182 num_timeouts = 0 num_problems = 182
bingpobing/FMnew
FM/FM/Player/Controller/PlayerController.h
// // PlayerController.h // FM // // Created by lanou3g on 15/10/6. // Copyright (c) 2015年 YT. All rights reserved. // #import <UIKit/UIKit.h> #import <TCBlobDownload/TCBlobDownload.h> @class FMmodel; @interface PlayerController : UIViewController @property (nonatomic, strong) NSMutableArray *musicArray; @proper...
kiranhs/ITKv4FEM-Kiran
Code/Algorithms/itkIsoContourDistanceImageFilter.h
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkIsoContourDistanceImageFilter.h Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKC...
zhangkn/iOS14Header
System/Library/Frameworks/PhotosUI.framework/PUAdjustmentsViewController.h
/* * This header is generated by classdump-dyld 1.0 * on Monday, September 28, 2020 at 5:54:47 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/PhotosUI.framewo...
husseinrasti/MVVM-BmiCalculator
app/src/main/java/ir/radicalcode/app/bmi/data/dao/BaseDao.java
<reponame>husseinrasti/MVVM-BmiCalculator package ir.radicalcode.app.bmi.data.dao; import androidx.room.Dao; import androidx.room.Delete; import androidx.room.Insert; import androidx.room.OnConflictStrategy; import androidx.room.Update; @Dao public interface BaseDao<T> { @Insert void insert( T model ); ...
bobby-vandiver/reeltime-ios
ReelTime-iOS/UseCase/Newsfeed/Presentation/RTNewsfeedPresenter.h
<filename>ReelTime-iOS/UseCase/Newsfeed/Presentation/RTNewsfeedPresenter.h #import "RTPagedListPresenter.h" #import "RTPagedListPresenterDelegate.h" @protocol RTNewsfeedView; @class RTPagedListInteractor; @class RTNewsfeedWireframe; @class RTNewsfeedMessageSource; @interface RTNewsfeedPresenter : RTPagedListPresenter...
Maarc/spring-boot-migrator
components/sbm-openrewrite/src/main/java/org/springframework/sbm/support/openrewrite/java/FindTypesImplementing.java
/* * Copyright 2021 - 2022 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
amarin/gomorphy
pkg/categories/cases.go
<filename>pkg/categories/cases.go package categories import ( "strings" ) // Падеж это словоизменительная грамматическая категория именных и местоимённых частей речи // (существительных, прилагательных, числительных) и близких к ним гибридных частей речи // (причастий, герундиев, инфинитивов и проч.), // выражающая ...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/StoreKitUI.framework/SKUIHandleRulesSettingsHeaderFooterDescriptionView.h
<gh_stars>10-100 /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/StoreKitUI.framework/StoreKitUI */ @interface SKUIHandleRulesSettingsHeaderFooterDescriptionView : SKUISettingsHeaderFooterDescriptionView { NSMutableArray * _buttons; SKUIHandleRulesSettingsHeaderFooterDescription * _...
snowonbridge/cms
public/assets/js/backend/sysnotice.js
<gh_stars>0 define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { var Controller = { index: function () { // 初始化表格参数配置 Table.api.init({ extend: { index_url: 'sysnotice/index', ...
JINSCOP/gosyntax
tourofgo/main.go
package main import ( "fmt" "math" "math/cmplx" "math/rand" "time" //"test/add1" ) /*The example shows variables of several types, and also that variable declarations may be "factored" into blocks, as with import statements. */ var ( ToBe bool = false MaxInt uint64 = 1<<64 - 1 z complex128 = cmpl...
chuckmersereau/api_practice
app/controllers/api/v2/account_lists/pledges_controller.rb
class Api::V2::AccountLists::PledgesController < Api::V2Controller def index authorize_pledges load_pledges render_pledges end def show load_pledge authorize_pledge render_pledge end def create persist_pledge end def update load_pledge authorize_pledge persist...
PrakharPipersania/LeetCode-Solutions
Dynamic Programming/unique-paths-ii.cpp
class Solution { public: int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) { int flag=0,m=obstacleGrid.size(),n=obstacleGrid[0].size(),arr[m][n]; for(int i=0;i<m;i++) { if(obstacleGrid[i][0]==1) flag=1; if(flag==0) ...
QinganZhao/LXXtCode
LeetCode/703. Kth Largest Element in a Stream.py
<gh_stars>1-10 ### Algorithm 1 ### construct heap from scratch ### Use min-heap ### TLE class KthLargest: def __init__(self, k: int, nums: List[int]): self.nums = nums self.k = k def add(self, val: int) -> int: h = heap() self.nums.append(val) for i in range(len(self.n...
gidsg/frontend
common/app/assets/javascripts/modules/story/experiment.js
<filename>common/app/assets/javascripts/modules/story/experiment.js define([ "common", "bean", "ajax", "modules/accordion", "modules/expandable", "bootstraps/story", 'modules/storage' ], function( common, bean, ajax, Accordion, Expandable, Story, storage ) { ...
golemiso/playframework
documentation/manual/working/commonGuide/configuration/code/CustomAkkaHttpServer.scala
/* * Copyright (C) 2009-2019 Lightbend Inc. <https://www.lightbend.com> */ //#custom-akka-http-server //###replace: package server package detailedtopics.configuration.customakkaserver import java.util.Random import play.core.server.{AkkaHttpServer, AkkaHttpServerProvider, ServerProvider} import akka.http.scaladsl....
bnlrnz/xsite_ue
Source/xsite_ue/include/interface.hpp
<reponame>bnlrnz/xsite_ue #ifndef __VRPN_PYTHON_INTERFACE_HPP__ #define __VRPN_PYTHON_INTERFACE_HPP__ #include <Python.h> namespace vrpn_python { namespace receiver { bool init_types(); void add_types(PyObject* module); } namespace sender { bool init_types(); void add_types(PyObject* module); ...
Ziver/zutil
src/zutil/osal/MultiCommandExecutor.java
/* * The MIT License (MIT) * * Copyright (c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
shreejitverma/GeeksforGeeks
LeetCode/C++/1572. Matrix Diagonal Sum.cpp
//Runtime: 32 ms, faster than 50.00% of C++ online submissions for Matrix Diagonal Sum. //Memory Usage: 11.4 MB, less than 83.33% of C++ online submissions for Matrix Diagonal Sum. class Solution { public: int diagonalSum(vector<vector<int>>& mat) { int n = mat.size(); int sum = 0; ...
smoe/interproscan
core/io/src/main/java/uk/ac/ebi/interpro/scan/io/prosite/PrositeDatFileParser.java
package uk.ac.ebi.interpro.scan.io.prosite; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Required; import org.springframework.core.io.Resource; import uk.ac.ebi.interpro.scan.io.AbstractModelFileParser; import uk.ac.ebi.interpro.scan.model.Model; import uk.ac.ebi.interpro.scan.mo...
monosidev/monosi
tests/server/handlers/test_monitors.py
<gh_stars>100-1000 import uuid import pytest from server import create_app MONITORS_ENDPOINT = "/v1/api/monitors" NUM_MONITORS_ENDPOINT = 1 @pytest.fixture def client(tmpdir): app = create_app() app.config["TESTING"] = True with app.test_client() as client: yield client def test_monitors_get_al...
baker-beach/market-catalog
src/main/java/com/bakerbeach/market/xcatalog/model/CategoryFacetImpl.java
package com.bakerbeach.market.xcatalog.model; import java.util.List; import org.apache.commons.lang3.exception.ExceptionUtils; import com.bakerbeach.market.xcatalog.model.FacetOption; public class CategoryFacetImpl extends AbstractFacet { public CategoryFacetImpl(String id) { super(id); } @Override public S...
Dahk/triggerflow-examples
triggerflow/dags/other/notebook.py
import graphviz def display_graph(dag): graph = graphviz.Digraph() for task in dag.tasks: graph.node(task.task_id) for task in dag.tasks: for downstream_dep in task.downstream_relatives: graph.edge(task.task_id, downstream_dep.task_id) return graph
xpxstar/Puppet-AST-diff
src/main/java/cn/ac/iscas/cloudeploy/v2/model/service/script/ScriptService.java
<filename>src/main/java/cn/ac/iscas/cloudeploy/v2/model/service/script/ScriptService.java package cn.ac.iscas.cloudeploy.v2.model.service.script; import java.util.List; import java.util.Map; import cn.ac.iscas.cloudeploy.v2.model.graph.EdgeType; import cn.ac.iscas.cloudeploy.v2.model.graph.Graph; import cn.ac.iscas.c...
charleshuangcai/enos-device-sdk-python
enos/message/downstream/ota/OtaUpgradeReply.py
from enos.core.constant.DeliveryTopicFormat import DeliveryTopicFormat from enos.core.message.BaseReply import BaseReply, BaseBuilder class OtaUpgradeReply(BaseReply): @classmethod def builder(cls): return Builder() def get_format_topic(self): return DeliveryTopicFormat.DEVICE_OTA_REPLY ...
smager/app-ci01
assets/js/jsdb/systems-error_list.js
var bs = zsi.bs.ctrl; var proc_url = base_url + "common/executeproc/"; $(document).ready(function(){ displayRecords(); }); function displayRecords(){ zsi.json.loadGrid({ table : "#grid" ,url : proc_url + "getErrors" ,td_body: [ ...
WigWagCo/alljoyn
alljoyn/alljoyn_core/samples/basic/basic_client.cc
<gh_stars>0 /** * @file * @brief Sample implementation of an AllJoyn client. */ /****************************************************************************** * * * Copyright (c) 2009-2012, AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any ...
TooBiased/DySECT
include/cuckoo_overlap.h
#pragma once /******************************************************************************* * include/cuckoo_overlap.h * * cuckoo_overlap is an experimental variant of cuckoo hashing, where * two different buckets can overlap by some cells. In theory, this * achieves higher load factors. In practice it seems t...
a381654729/web-platform
ssh-jpa/src/main/java/com/hirain/web/ssh/entity/Person.java
<filename>ssh-jpa/src/main/java/com/hirain/web/ssh/entity/Person.java<gh_stars>0 package com.hirain.web.ssh.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import lombok.Data; fin...
kumarss20/superset-neo4j
superset/assets/node_modules/vega-scenegraph/build/vega-scenegraph.js
<filename>superset/assets/node_modules/vega-scenegraph/build/vega-scenegraph.js (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vega-util'), require('vega-canvas'), require('vega-loader'), require('d3-shape'), require('d3-path')) : typeof define...
soarsmu/HERMES
experiment.py
from loader import data_loader from utils import print_line_seperator from sklearn.feature_extraction.text import CountVectorizer from sklearn.model_selection import KFold from sklearn.linear_model import LogisticRegression from sklearn import metrics from sklearn import svm import numpy as np import random import data...
karacas/typebox
app/auxs/aux_list_font_icons_classes.js
<reponame>karacas/typebox //KTODO: separar en modulos y agregar los css para improtar así se maneja todo desde acá const arrIcons_fe = [ 'fe-alert-octagon', 'fe-alert-circle', 'fe-activity', 'fe-alert-triangle', 'fe-align-center', 'fe-airplay', 'fe-align-justify', 'fe-align-left', 'fe-align-...
hbarsnes/compomics-utilities
src/main/java/com/compomics/util/experiment/identification/peptide_fragmentation/models/ms2pip/features_configuration/features/generic/AAPropertyFeature.java
<filename>src/main/java/com/compomics/util/experiment/identification/peptide_fragmentation/models/ms2pip/features_configuration/features/generic/AAPropertyFeature.java<gh_stars>10-100 package com.compomics.util.experiment.identification.peptide_fragmentation.models.ms2pip.features_configuration.features.generic; impor...
marcelohenrique180/ifsul-system
src/main/java/br/com/ifsul/application/service/AlunoConfirmarService.java
package br.com.ifsul.application.service; import br.com.ifsul.infrastructure.database.dao.UsuarioDAO; import br.com.ifsul.pojo.VerificationToken; import br.com.ifsul.infrastructure.database.dao.VerificationTokenDAO; import br.com.ifsul.pojo.Usuario; import org.springframework.beans.factory.annotation.Autowired; import...
anchoranalysis/anchor-gui
anchor-gui-frame/src/main/java/org/anchoranalysis/gui/image/IndexSlider.java
/*- * #%L * anchor-gui-frame * %% * Copyright (C) 2010 - 2020 <NAME>, ETH Zurich, University of Zurich, Hoffmann-<NAME> * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without re...
JKChenFZ/hclib
test/misc/ctx_test.c
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> //#define VERBOSE #include <litectx.h> LiteCtx *mainCtx; LiteCtx* ctx1; LiteCtx* ctx2; volatile int value = 0; void printStack(LiteCtx* ctx) { int i; ++value; printf("\n%s\n", (const char*)ctx->arg1); printf(" prev cont...
ovh-ux/ovh-manager-telecom
client/app/telecom/telephony/billingAccount/billing/groupRepayments/telecom-telephony-billing-account-billing-group-repayments.controller.js
<reponame>ovh-ux/ovh-manager-telecom angular.module('managerApp').controller('TelecomTelephonyBillingAccountBillingGroupRepaymentsCtrl', function ($q, $stateParams, $translate, OvhApiTelephony, TelephonyMediator, TucToast) { const self = this; /*= ===================================== = INITIALIZATION...
tangfeixiong/learningclang
c/split-time/seconds.c
<filename>c/split-time/seconds.c #include <stdio.h> #include <stdlib.h> #include "simpletime.h" struct dtseconds { int days; int hours; int minutes; int seconds; }; time secondstohms(int totalseconds) { time t; t.minutes = totalseconds / 60; t.seconds = totalseconds % 60; t.hours = t.minute...
reevespaul/firebird-qa
tests/bugs/core_4483_test.py
#coding:utf-8 # # id: bugs.core_4483 # title: Changed data not visible in WHEN-section if exception occured inside SP that has been called from this code # decription: # tracker_id: CORE-4483 # min_versions: ['4.0'] # versions: 4.0 # qmid: None import pytest from firebird.qa import db...
zero88/blueprint
sql/src/main/java/io/zero88/qwe/sql/spi/extension/jdbc/JDBCClientHikariJooqxExtension.java
<filename>sql/src/main/java/io/zero88/qwe/sql/spi/extension/jdbc/JDBCClientHikariJooqxExtension.java package io.zero88.qwe.sql.spi.extension.jdbc; import io.vertx.ext.jdbc.spi.impl.HikariCPDataSourceProvider; import io.zero88.jooqx.spi.jdbc.JDBCLegacyHikariProvider; import io.zero88.qwe.sql.handler.JooqxLegacyExtensio...
skylark-integration/skylark-highlightjs
dist/uncompressed/skylark-highlightjs/languages/rust.js
/* Language: Rust Author: <NAME> <<EMAIL>> Contributors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>> Category: system */ define([ "../highlight" ],function(hljs){ var NUM_SUFFIX = '([ui](8|16|32|64|128|size)|f(32|64))\?'; var KEYWORDS = 'alignof as be box break const continue crate do else enum extern ' + 'false ...
loolooyyyy/j2mod
src/main/java/cc/koosha/modbus/procimg/SimpleInputRegister.java
<filename>src/main/java/cc/koosha/modbus/procimg/SimpleInputRegister.java<gh_stars>0 /* * Copyright 2002-2016 jamod & j2mod development teams * * 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...
jezze/oddity
src/list.c
#include "list.h" void list_add(struct list *list, struct list_item *item) { item->prev = list->tail; item->next = 0; if (list->head) list->tail->next = item; else list->head = item; list->tail = item; list->count++; } void list_remove(struct list *list, struct list_item *i...
ttcremers/spree_mollie
app/controllers/spree/mollie_return_controller.rb
<reponame>ttcremers/spree_mollie module Spree class MollieReturnController < Spree::BaseController protect_from_forgery except: [ :continue ] # Action which is called by the Mollie callback. We check if # the payment is processed here and redirect accordingly def process_payment_status order ...
anehing/JavaConcurrencyPattern
src/vh/fork_join/LineTask.java
<filename>src/vh/fork_join/LineTask.java package vh.fork_join; import java.util.concurrent.RecursiveTask; /** * Created by ane on 1/20/15. */ public class LineTask extends RecursiveTask<Integer>{ private static final long serialVersionUID = 1L; private String line[]; private int start,end; private S...
C0PEP0D/sheld0n
cases/reverse/param/env/objects/static/tracers__e1_1o0/choice.h
#ifndef C0P_PARAM_OBJECTS_TRACERS__E1_1O0_CHOICE_H #define C0P_PARAM_OBJECTS_TRACERS__E1_1O0_CHOICE_H #pragma once // THIS FILE SHOULD NOT BE EDITED DIRECTLY BY THE USERS. // THIS FILE WILL BE AUTOMATICALLY EDITED WHEN THE // CHOOSE COMMAND IS USED // choose your object #include "param/env/objects/static/tracers__e1_...
John-WL/my-take-on-rocket-league-bots-I-guess
src/main/java/util/shapes/Circle3D.java
package util.shapes; public class Circle3D { }
07jeancms/HelloWorld
node_modules/jovo-platform-dialogflow/dist/src/core/DialogflowRequestBuilder.js
<reponame>07jeancms/HelloWorld "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _set = require("lodash.set"); const DialogflowRequest_1 = require("./DialogflowRequest"); const path = require("path"); const samples = { google: { DefaultWelcomeIntent: 'DefaultWelcomeIn...
ondruska/gdata-java-client
java/src/com/google/gdata/data/spreadsheet/ListEntry.java
<reponame>ondruska/gdata-java-client<filename>java/src/com/google/gdata/data/spreadsheet/ListEntry.java /* Copyright (c) 2008 Google Inc. * * 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 ...
jporras66/8583core
8583core/src/main/java/com/indarsoft/iso8583core/coretypes/F010.java
package com.indarsoft.iso8583core.coretypes; import com.indarsoft.iso8583core.types.Field; import com.indarsoft.iso8583core.types.TypeFixed; /** Application : ISO8583CORE - Class F010 - Conversion rate, cardholder billing. * */ public class F010 extends TypeFixed { private F010 (byte[] bytearr, Field...
sengeiou/group_purchase
src/main/java/com/mds/group/purchase/order/vo/SendBillFilterVo.java
<reponame>sengeiou/group_purchase /* * Copyright Ningbo Qishan Technology Co., 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 *...
VianPan/alibaba-cloud-sdk-go
services/tdsr/get_scene_list.go
package tdsr //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, software //distribu...
bopopescu/nova-token
nova/tests/unit/scheduler/ironic_fakes.py
begin_unit comment|'# Copyright 2014 OpenStack Foundation' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' co...
yarastqt/TicketManager
src/js/reducers/root.js
import { combineReducers } from 'redux'; import { routerReducer as routing } from 'react-router-redux'; import { reducer as form } from 'redux-form'; import { LOGOUT_SUCCESS } from 'actions/session'; import sidebar from './sidebar'; import session from './session'; import modal from './modal'; import toast from './to...
victorursan/BookStore
node_modules/convoy/fixtures/test_module_2.js
//test_module#2 (function($) { //another test module $.foo = 'test module!'; })($);
tybl/tybl
apps/Cocles/test/main.cpp
// License: The Unlicense (https://unlicense.org) #define DOCTEST_CONFIG_IMPLEMENT #include "doctest/doctest.h" static int run_unit_tests(int argc, const char* argv[]) { doctest::Context context; // Initialize doctest context // defaults context.setOption("abort-after", 5); context.setOption("sort", "nam...
oliverjakobs/Frost
src/toolbox/tb_hashmap.h
#ifndef TB_HASHMAP_H #define TB_HASHMAP_H #include <stddef.h> #include <stdlib.h> #include <stdint.h> typedef struct tb_hashmap_iter tb_hashmap_iter; typedef struct tb_hashmap_entry tb_hashmap_entry; typedef size_t (*tb_hashmap_hash) (const void* key); typedef int (*tb_hashmap_cmp) (const void* left, const void*...
m4ta1l/neuralnetworks
nn-core/src/main/java/com/github/neuralnetworks/calculation/NetworkCalculator.java
<gh_stars>1000+ package com.github.neuralnetworks.calculation; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Set; import com.github.neuralnetworks.architecture.Layer; import com.github.neuralnetworks.architecture.NeuralNetwork; import com.github.neuralnetworks.calcul...
RobertPoncelet/OGREWallpaper
app/src/main/java/org/ogre/ShadowTextureConfig.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.8 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
kitschpatrol/Cinder-ImagingSource
include/icimagingcontrol/iframe_def.h
#pragma once #include <vector> #include "udshl_defs.h" #include "simplectypes.h" #include "dvector.h" namespace _DSHOWLIB_NAMESPACE { struct FrameTypeInfo; /** An object implementing the IFrame interface permits access to its image data and the * frame type of the image. * * The pointe...
rajflume/tf-quant-finance
tf_quant_finance/models/hull_white/one_factor.py
<reponame>rajflume/tf-quant-finance # Lint as: python3 # Copyright 2020 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unle...
Hisham-TK/Scratches
JavaScript/OMAC/M2/3-5.js
/* * programming quiz - checking your balance (3-5) * Using the flowchart below, write the code to represent checking your balance at the ATM. The yellow diamonds represent conditional statements and the blue rectangles with rounded corners represent what should be printed to the console. Flowchart for checking your...
Tfarcenim/Beesourceful
src/main/java/tfar/beesourceful/blockentity/CentrifugeBlockEntity.java
<filename>src/main/java/tfar/beesourceful/blockentity/CentrifugeBlockEntity.java package tfar.beesourceful.blockentity; import tfar.beesourceful.BeeSourceful; import tfar.beesourceful.CentrifugeContainer; import tfar.beesourceful.block.CentrifugeBlock; import tfar.beesourceful.inventory.AutomationSensitiveItemStackHan...
chamathshashika/projects-python-wrappers
projects/model/Timelog.py
<reponame>chamathshashika/projects-python-wrappers #$Id$ class Timelog: """This class is used to create object for time log.""" def __init__(self): """Initialize parameters for timelog.""" self.grandtotal = "" self.role = "" self.date = [] def set_grandtotal(self, gran...
electro-dan/diozero
diozero-provider-pi4j/src/main/java/com/diozero/sampleapps/ButtonTestPi4j.java
package com.diozero.sampleapps; /* * #%L * Organisation: mattjlewis * Project: Device I/O Zero - pi4j provider * Filename: ButtonTestPi4j.java * * This file is part of the diozero project. More information about this project * can be found at http://www.diozero.com/ * %% * Copyright (C)...
jchiatt/spectrum
mobile/views/ChannelDetail/index.js
// @flow import * as React from 'react'; import { Share } from 'react-native'; import compose from 'recompose/compose'; import { getChannelById, type GetChannelType, } from '../../../shared/graphql/queries/channel/getChannel'; import toggleChannelSubscription, { type ToggleChannelSubscriptionProps, } from '../../...
maguon/ec_api
models/CategorySubDAO.js
const pgDb = require('../db/connections/PgConnection'); const serverLogger = require('../util/ServerLogger.js'); const logger = serverLogger.createLogger('CategorySubDAO.js'); class CategorySubDAO { static async queryCategorySub(params) { let query = " select csi.* ,ci.category_name , ci.status as categor...
joeykrug/augur-ui
src/modules/orders/reducers/order-books.js
<reponame>joeykrug/augur-ui import { UPDATE_ORDER_BOOK, CLEAR_ORDER_BOOK } from "modules/orders/actions/update-order-book"; import { RESET_STATE } from "modules/app/actions/reset-state"; const DEFAULT_STATE = {}; /** * @param {Object} orderBooks * @param {Object} action */ export default function(orderBooks = D...
documment/ng-cordova
test/plugins/batteryStatus.spec.js
<filename>test/plugins/batteryStatus.spec.js describe('Service: $cordovaBatteryStatus', function() { var $cordovaBatteryStatus, $rootScope; var eventNames = ['batterystatus', 'batterycritical', 'batterylow']; beforeEach(module('ngCordova.plugins.battery-status')); beforeEach(inject(function (_$cordovaBatter...
paulxi/LeetCodeScala
src/main/scala/algorithm/easy/MostCommonWord.scala
package com.leetcode.algorithm.easy.MostCommonWord object Solution { def mostCommonWord(paragraph: String, banned: Array[String]): String = { val bannedSet = banned.toSet val words = paragraph .split(" !?',;.".toCharArray) .map(_.toLowerCase) .filterNot(str => { str.length == 0 || b...
ihsandemir/hazelcast
hazelcast/src/main/java/com/hazelcast/replicatedmap/impl/operation/ReplicatedMapDataSerializerHook.java
<reponame>ihsandemir/hazelcast /* * Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
xeroCBW/testmodel
rbacProject/apps/system/urls.py
<gh_stars>0 from django.urls import path from . import views_structure,views_user from rbac import views_menu app_name='[system]' urlpatterns = [ path('structure/', views_structure.structureView, name='structure'), path('structure/list', views_structure.structureListView, name='structure-list'), path('st...
sharingbeforedying/corona_de_names
httpServer/server/app/shared/services/servers/rooms/RoomServiceFactory.js
<filename>httpServer/server/app/shared/services/servers/rooms/RoomServiceFactory.js import { AbsRoomServiceFactory } from './AbsRoomServiceFactory.js'; import { UniverseRoomService } from './universe/UniverseRoomService.js'; import { WelcomeRoomService } from './welcome/WelcomeRoomService.js'; import { PortalRoomServ...
Hogwai/les-amis-de-l-escalade
src/main/java/com/lesamisdelescalade/consts/SiteConsts.java
package com.lesamisdelescalade.consts; /** * Site constants * @author Lilian * */ public class SiteConsts { private SiteConsts() { throw new IllegalStateException("Utility class"); } public static final String SITES = "sites"; public static final String CURRENT_SITE = "currentSite"; public static final Str...
mathisonian/vega-browserify
src/parse/mark.js
var dl = require('datalib'), parseProperties = require('./properties'); function parseMark(model, mark) { var props = mark.properties, group = mark.marks; // parse mark property definitions dl.keys(props).forEach(function(k) { props[k] = parseProperties(model, mark.type, props[k]); }); // par...
bingoohuang/quartz-glass
src/main/java/org/n3r/quartz/glass/util/Keys.java
package org.n3r.quartz.glass.util; import com.google.common.collect.HashMultiset; import com.google.common.collect.Multiset; import lombok.val; import org.quartz.Scheduler; import org.quartz.utils.Key; import java.text.SimpleDateFormat; import java.util.Date; public class Keys { static Multiset<String> jobIndex ...
imslinn/AndroidCommon
common/src/main/java/tk/beason/common/modules/image/show/ShowPhotoDialog.java
/* * Copyright (C) 2017. The beasontk Android Source 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...
gianluca-m/SeeingTemperature
HoloLens/MyBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs77.cpp
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> #include "vm/CachedCCWBase.h" #include "utils/New.h" // System.Collections.Generic.IList`1<Newtonsoft.Json.Converters.IXmlNode> struct IList_1_tED3398E85BA08405C37E637E9FF3A6C056C2...
share-framework/share-platform-maven
share-basic/share-api/src/main/java/org/andot/share/basic/components/handler/UserMetaObjectHandler.java
<reponame>share-framework/share-platform-maven<filename>share-basic/share-api/src/main/java/org/andot/share/basic/components/handler/UserMetaObjectHandler.java<gh_stars>0 package org.andot.share.basic.components.handler; import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; import org.andot.share.basic.comp...
Maliarte/PrograminC
Funcao/BibliotecaDigital.c
#include <stdio.h> int somaAlgarismos (int a){ int soma, div1, div2; div1 = a/10; div2 = a%10; soma = div1 + div2; return soma; } int main (void){ int dia, mes, ano, diaSoma, mesSoma, ano1, anoSoma; printf ("Entre com o dia do seu nascimento: "); scanf ("%d", &dia); printf ("Entre com o mes do seu n...