repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
lucasbiel7/pasc | src/test/java/br/com/unibh/compiler/pasc/lexic/states/impl/IdentifierStateTest.java | package br.com.unibh.compiler.pasc.lexic.states.impl;
import br.com.unibh.compiler.pasc.lexic.model.KeyWorld;
import br.com.unibh.compiler.pasc.lexic.states.State;
import br.com.unibh.compiler.pasc.lexic.states.ValidateStateHelperTest;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import... |
suhwanhwang/problem-solving | google/2017/r1a/b/b.1.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void printSolution1(int n, int p, const vector<int> &in, const vector<vector<int>> &qu) {
int max_count = 0;
for (int i = 0; i < n; ++i) {
int count = 0;
for (int j = 0; j < p; ++j) {
int q = qu[i][j];
... |
Dearyu/NetPresenter | netpresenter-code/src/main/java/netpresenter/annotations/NetListener.java | package netpresenter.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @Author junweiliu
* @Description 网络监听
* @Version 1.0
* @CreateDate 2021/3/9
* @QQ 1007271386
*/
@Retention(Ret... |
jinziyi/notes | notes-server/test/chai.test.js | <gh_stars>0
/**
* Created by cjy on 16/11/23.
*/
const {expect} = require('chai');
describe('chai expect demo', () => {
it('expect equal', function () {
expect(1 + 1).to.equal(2);
expect(1 + 1).not.equal(3);
})
}) |
Bart0llo/share | src/validation/api/v2/upload.js | <filename>src/validation/api/v2/upload.js<gh_stars>10-100
const isEmpty = require('../../isEmpty');
module.exports = (req, res, next) => {
try {
let errors = {};
if (typeof req.files.file === 'undefined') {
errors = 'File is required.';
}
if (!isEmpty(errors)) {
return res.status(400).js... |
akazad13/competitive-programming | Online Judges/LightOJ/1088 - Points in Segments.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define read(n) scanf("%d",&n)
int main()
{
int test,arr[100010],seg,n,p,q,element;
read(test);
for(int Case = 1 ; Case<=test ; Case++)
{
read(n);
read(seg);
for(int i=0;i<n;i++)
read(arr[i]);
... |
MouchenHung-QUANTA/OpenBIC | meta-facebook/yv35-bb/src/platform/plat_def.h | #ifndef PLAT_DEF_H
#define PLAT_DEF_H
#define BMC_USB_PORT "CDC_ACM_0"
#define ENABLE_FAN
#define HSC_DEVICE_READY_DELAY_MS 2000
#endif
|
fahimfarhan/cancer-web-app | surgeryhormone/forms.py | from django import forms
from surgeryhormone.models import Surgery, Hormone
class SurgeryForm(forms.ModelForm):
class Meta:
model = Surgery
fields = ('details',)
class HormoneForm(forms.ModelForm):
class Meta:
model = Hormone
fields = ('details',)
|
PharrellWANG/HTM_16_9_AppCode | source/codemapsHTM/search/enumvalues_4.js | <gh_stars>0
var searchData=
[
['no_5fslices',['NO_SLICES',['../d7/dca/_type_def_8h.html#add7235a66eb4e5f93c692468c39dde44af8644cb7c6cd021a2f8a34fba0419a13',1,'TypeDef.h']]]
];
|
teamleadercrm/ui | src/components/datagrid/Row.js | import React, { forwardRef, PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';
class Row extends PureComponent {
render() {
const { backgroundColor, className, children, forwardedRef, ...others } = this.props;
... |
syslogic/androidx-github | mobile/src/main/java/io/syslogic/github/content/RepositorySyncAdapter.java | <gh_stars>1-10
package io.syslogic.github.content;
import android.accounts.Account;
import android.content.AbstractThreadedSyncAdapter;
import android.content.ContentProviderClient;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SyncResult;
import android.os.Bundle;
im... |
icred/base | model/src/model-generated/eu/icred/model/node/entity/Property.java | package eu.icred.model.node.entity;
import eu.icred.model.annotation.ChildList;
import eu.icred.model.annotation.DataField;
import eu.icred.model.annotation.GroupNode;
import eu.icred.model.annotation.Node;
import eu.icred.model.datatype.Amount;
import eu.icred.model.datatype.Area;
import eu.icred.model.datatype.enume... |
wizardsoftheweb/humble-library | cmd/logger.go | package wotwhb
import (
"os"
"github.com/sirupsen/logrus"
prefixed "github.com/x-cray/logrus-prefixed-formatter"
)
var (
formatter = &prefixed.TextFormatter{
FullTimestamp: true,
TimestampFormat: "2006-01-02 15:04:05",
QuoteEmptyFields: true,
ForceFormatting: true,
ForceColors: true,
}
form... |
wangguanquan/eec | src/test/java/org/ttzero/excel/entity/ListObjectSheetTest.java | <gh_stars>10-100
/*
* Copyright (c) 2017-2019, <EMAIL> 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/LICENSE-2.0
*
* Unl... |
s-sajid-ali/comsyl | tests/parallel/ParallelLinearOperatorTest.py | # coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2017 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
#... |
bruh-boys/dune | lib/routing_test.go | package lib
import (
"fmt"
"testing"
)
func TestRoute(t *testing.T) {
var tests = []struct {
route *httpRoute
url string
match bool
params string
}{
{NewRoute("*"), "/", true, "*"},
{NewRoute("*"), "/llll", true, "*"},
{NewRoute("/foo"), "/foo", true, "*"},
{NewRoute("/foo/*"), "/foo", true, ... |
wet-interface/tatbook.web.rest | src/main/java/me/m92/tatbook_web/communication/text/producers/TextProducer.java | <gh_stars>0
package me.m92.tatbook_web.communication.text.producers;
import me.m92.tatbook_web.communication.text.Text;
import java.util.Map;
public interface TextProducer {
Text produce(Map<String, String> parameters);
}
|
XiaoyuanXie/coming | src/main/java/fr/inria/prophet4j/defined/extended/ExtendedFeatureExtractor.java | <filename>src/main/java/fr/inria/prophet4j/defined/extended/ExtendedFeatureExtractor.java
package fr.inria.prophet4j.defined.extended;
import java.util.*;
import fr.inria.prophet4j.defined.Feature;
import fr.inria.prophet4j.defined.Feature.Position;
import fr.inria.prophet4j.defined.extended.ExtendedFeature.CrossType... |
Groenbech96/J--Compiler-Implementation | src/jminusminus/NGraphRegisterAllocator.java | <filename>src/jminusminus/NGraphRegisterAllocator.java
// Copyright 2013 <NAME>, <NAME> and <NAME>
package jminusminus;
import java.util.ArrayList;
/**
* Implements register allocation using graph coloring algorithm.
*/
public class NGraphRegisterAllocator extends NRegisterAllocator {
/**
* Construct a ... |
hekar/luminousforts-2013 | mp/src/game/server/Mod/PhaseControl.cpp | /* ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/LGPL 2.1/GPL 2.0
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
...
for the specific language governing rights and limitations under the
License.
The Original Code... |
oliveira-italo/compras | src/main/java/com/udemy/compras/handler/GraphQLHandler.java | <gh_stars>0
package com.udemy.compras.handler;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.udemy.compras.exception.DomainException;
import graphql.ExceptionWhileDataFetching;
import graphql.GraphQLError;
import graphql.servlet.GenericGraphQLError;
import graphql.servlet.GraphQLErrorHandler;
import g... |
jmini/e-mp-oa-code | empoa-generator/src/main/java/fr/jmini/empoa/generator/simple/SimpleGeneratorMain.java | package fr.jmini.empoa.generator.simple;
import java.nio.file.Paths;
import fr.jmini.empoa.generator.Input;
import fr.jmini.empoa.specs.Element;
import fr.jmini.empoa.specs.OpenAPISpec;
public class SimpleGeneratorMain {
public static void main(String[] args) throws Exception {
Input input = new Input(P... |
marianamtd/Java | unirio/src/modulo1/arrays/Exer11Aula19.java | package modulo1.arrays;
import java.util.Scanner;
public class Exer11Aula19 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] vetorA = new int[10];
int varPar = 0;
for(int i = 0; i < vetorA.length; i++){
vetorA[i] = scanner.nex... |
boyombo/pharmrep | pharmrep/core/forms.py | from datetime import date, timedelta
from django import forms
from product.models import Rep
def sixdaysago():
return date.today() - timedelta(6)
class SearchForm(forms.Form):
start = forms.DateField(initial=sixdaysago, required=False)
end = forms.DateField(initial=date.today, required=False)
rep =... |
jradtilbrook/he-react-ui | src/components/Tutorial/tests/TutorialStep.test.js | // @flow
import { mount } from 'enzyme';
import React from 'react';
import TutorialOwner from '../TutorialOwner';
import TutorialStep from '../TutorialStep';
import TutorialSpy from './TutorialSpy';
jest.mock('../getCoordsForElementId.js');
function makeHarness(attachTo = null) {
return mount(
<TutorialOwner au... |
Chen188/chalice | tests/functional/test_local.py | <reponame>Chen188/chalice<gh_stars>1000+
import os
import socket
import time
import contextlib
from threading import Thread
from threading import Event
from threading import Lock
import json
import subprocess
from contextlib import contextmanager
import pytest
import requests
from urllib3.util.retry import Retry
from ... |
itinycheng/flink-learn | api/src/main/scala/com/tiny/flink/streaming/function/QueryableStateFunction.scala | package com.tiny.flink.streaming.function
import org.apache.flink.api.common.functions.RichMapFunction
import org.apache.flink.api.common.state.{ValueState, ValueStateDescriptor}
import org.apache.flink.api.common.typeinfo.{TypeHint, TypeInformation}
import org.apache.flink.configuration.Configuration
class Queryable... |
timm-gs/bazel | src/main/java/com/google/devtools/build/lib/bazel/rules/common/BazelFilegroupRule.java | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
Memristor-Robotics/mep-dash-kibana | src/ui/public/agg_response/point_series/_tooltip_formatter.js | <reponame>Memristor-Robotics/mep-dash-kibana
define(function (require) {
return function PointSeriesTooltipFormatter($compile, $rootScope) {
let $ = require('jquery');
let $tooltipScope = $rootScope.$new();
let $tooltip = $(require('ui/agg_response/point_series/_tooltip.html'));
$compile($tooltip)($t... |
leanwithdata/hop | plugins/transforms/concatfields/src/main/java/org/apache/hop/pipeline/transforms/concatfields/ConcatFieldsDialog.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 may ... |
dmgerman/guava | guava/src/com/google/common/base/AbstractIterator.java | <reponame>dmgerman/guava<gh_stars>0
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2007 The Guava 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 cop... |
reid47/cnjs | src/index.js | import { buildRule } from './build-rule';
const rule = (parts, ...args) => buildRule(parts, args);
const global = (parts, ...args) => buildRule(parts, args, true);
export { rule, global };
export { rehydrate } from './rehydrate';
export { renderStatic } from './render-static';
|
kiranparajuli589/reva | pkg/storage/utils/decomposedfs/node/permissions_unix.go | <filename>pkg/storage/utils/decomposedfs/node/permissions_unix.go<gh_stars>100-1000
// Copyright 2018-2021 CERN
//
// 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... |
francomamani/cealm-branch | public/scripts/services/product.js | <filename>public/scripts/services/product.js<gh_stars>0
app.factory('Product', ['$http', function ($http) {
return {
all: function () {
return $http.get('api/v1/auth/products');
},
getPage: function (new_page) {
return $http.get('api/v1/auth/products?page='+new_page);
},
store: function (product) {
... |
RonSherfey/data-act-broker-backend | dataactbroker/scripts/update_transaction_agency_codes.py | import logging
import argparse
from dataactcore.logging import configure_logging
from dataactcore.interfaces.db import GlobalDB
from dataactvalidator.health_check import create_app
logger = logging.getLogger(__name__)
def update_table(sess, agency_type, table, args):
""" Update the given table's agency codes. I... |
swinstonMirada/opencv | platforms/build_android_arm/src/org/opencv/objdetect/CascadeClassifier.java | <reponame>swinstonMirada/opencv
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.objdetect;
import java.lang.String;
import org.opencv.core.Mat;
import org.opencv.core.MatOfDouble;
import org.opencv.core.MatOfInt;
import org.opencv.core.MatOfRect;
import org.opencv.core.Size;
// C++: ... |
Li-YangZhong/professional-javascript-for-web-developers | Chapter14TheDocumentObjectModel/HierarchyOfNodes/TheDocumentTypeType/TheDocumentTypeTypeExample01.js | <!DOCTYPE HTML PUBLIC "-// W3C// DTD HTML 4.01// EN"
"http:// www.w3.org/TR/html4/strict.dtd">
|
Dr-Horv/Advent-of-Code-2016 | src/day22/StateExpander.java | package day22;
import utils.Position;
import utils.graph.Node;
import utils.graph.NodeExpander;
import java.util.ArrayList;
import java.util.List;
public class StateExpander implements NodeExpander<Node<State>> {
private StorageNode[][] storageNodes;
public StateExpander(List<StorageNode> ns) {
int... |
buddhimihara/component-dep | components/jaggery-apps/manage/src/main/manage/site/themes/default/templates/utils/dojo-release-1.8.3/dojox/gfx/Moveable.js | <reponame>buddhimihara/component-dep<filename>components/jaggery-apps/manage/src/main/manage/site/themes/default/templates/utils/dojo-release-1.8.3/dojox/gfx/Moveable.js
//>>built
define("dojox/gfx/Moveable",["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","dojo/_base/event","dojo/topic","dojo/has","dojo/dom-... |
ritcat14/TheMysteriousMindOfJack | src/main/java/entities/items/armour/Head.java | <filename>src/main/java/entities/items/armour/Head.java
package entities.items.armour;
import entities.Player;
import entities.items.Item;
import handler.Vector;
public class Head extends Item {
public Head(Vector pos) {
super(pos, 1);
}
@Override
public void onEvent(Player player) {
... |
patil215/v8 | src/objects/js-generator.h | <gh_stars>1-10
// Copyright 2018 the V8 project 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 V8_OBJECTS_JS_GENERATOR_H_
#define V8_OBJECTS_JS_GENERATOR_H_
#include "src/objects/js-objects.h"
#include "src/objects/struct.h... |
boschman32/Crime-Engine | CrimeEngine/include/Gameplay/Map/MapEvent.h | #pragma once
#include <sstream>
#include "Events/EventService.h"
#include "LevelMap.h"
namespace ce
{
class MapLoadedEvent : public IEvent
{
public:
MapLoadedEvent(LevelMap* a_loadedMap)
: m_loadedMap(a_loadedMap) { }
LevelMap& GetLoadedMap() const { return *m_loadedMap; }
std::string ToString() const ... |
pradeepkumarcm-egov/DIGIT-Dev | edcr/service/egov/egov-edcr-extract/src/main/java/org/egov/edcr/utility/math/Rectangle.java | <filename>edcr/service/egov/egov-edcr-extract/src/main/java/org/egov/edcr/utility/math/Rectangle.java
package org.egov.edcr.utility.math;
public class Rectangle {
double x = Double.MAX_VALUE;
double y = Double.MAX_VALUE;
double d = Double.MIN_VALUE;
double e = Double.MIN_VALUE;
public Rectangle(d... |
PetaVision/ObsoletePV | weightinit/InitSubUnitWeights.hpp | <filename>weightinit/InitSubUnitWeights.hpp
/*
* InitSubUnitWeights.hpp
*
* Created on: Aug 14, 2011
* Author: kpeterson
*/
#ifndef INITSUBUNITWEIGHTS_HPP_
#define INITSUBUNITWEIGHTS_HPP_
#include "InitWeights.hpp"
namespace PV {
class InitWeightsParams;
class InitSubUnitWeightsParams;
class InitSubUni... |
HeRaNO/OI-ICPC-Codes | Codeforces/1269B.cpp | <reponame>HeRaNO/OI-ICPC-Codes
#include <bits/stdc++.h>
#define MAXN 2005
using namespace std;
int n,m,x,a[MAXN];
set <int> s;
vector <int> b,c;
int main()
{
scanf("%d %d",&n,&m);
for (int i=1;i<=n;i++) scanf("%d",&a[i]);
for (int i=1;i<=n;i++)
{
scanf("%d",&x);
b.push_back(x);
}
sort(b.begin(),b.end());
f... |
TheFrainD/soge | docs/html/search/classes_5.js | <reponame>TheFrainD/soge
var searchData=
[
['texture_0',['texture',['../structtexture.html',1,'']]],
['transform_1',['transform',['../structtransform.html',1,'']]]
];
|
isabella232/aistreams | third_party/gst-plugins-bad/ext/lv2/gstlv2utils.c | <filename>third_party/gst-plugins-bad/ext/lv2/gstlv2utils.c
/* GStreamer
* Copyright (C) 2016 <NAME> <<EMAIL>>
* 2016 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free So... |
FalconLK/FaCoY | RQs/dyclink/GoogleCodeJam_data/2011/2011_dan.banica.java | <reponame>FalconLK/FaCoY<filename>RQs/dyclink/GoogleCodeJam_data/2011/2011_dan.banica.java<gh_stars>10-100
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;
public... |
agmen-hu/consoloid-console | Consoloid/Speech/test/InputButtonTest.js | <reponame>agmen-hu/consoloid-console
require('../InputButton');
require('consoloid-framework/Consoloid/Test/UnitTest');
describeUnitTest('Consoloid.Speech.InputButton', function() {
var
button;
beforeEach(function() {
button = env.create('Consoloid.Speech.InputButton', {
buttonNode: {
click:... |
lechium/iPhoneOS_12.1.1_Headers | System/Library/PrivateFrameworks/AirPlaySupport.framework/APSAWDAirPlayDiscoveryDetailedModeStats.h | <reponame>lechium/iPhoneOS_12.1.1_Headers<filename>System/Library/PrivateFrameworks/AirPlaySupport.framework/APSAWDAirPlayDiscoveryDetailedModeStats.h
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:47:41 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
... |
Brokenshire/codewars-projects | Python/six_kyu/song_decoder.py | <gh_stars>1-10
# Python solution for 'Dubstep' codewars question.
# Level: 6 kyu
# Tags: Fundamentals, and Strings.
# Author: <NAME>
# Date: 06/02/2020
import unittest
def song_decoder(song):
"""
Removes 'WUB' from a string to find the true message of the song.
:param song: The input consists of a single... |
ss-jugg/YCAssistivePlugin | YCAssistivePlugin/Classes/Plugins/Memory/YCAssistiveMemoryPluginWindow.h | <gh_stars>1-10
//
// YCAssistiveMemoryPluginWindow.h
// YCAssistivePlugin
//
// Created by shenweihang on 2019/9/27.
//
#import "YCAssistivePluginWindow.h"
NS_ASSUME_NONNULL_BEGIN
@interface YCAssistiveMemoryPluginWindow : YCAssistivePluginWindow
@end
NS_ASSUME_NONNULL_END
|
uvbs/FullSource | Source/Source/Server/SO3Gateway/KRelayAgency.h | #ifndef _KRELAYAGENCY_H_
#define _KRELAYAGENCY_H_
#include "GatewayRelayProtocol.h"
class KPlayerManager;
class KPaysysAgency;
class KSO3Gateway;
class KQueueManager;
class KSndaAgency;
class KRelayAgency
{
public:
KRelayAgency();
BOOL Init();
void UnInit();
void Activate();
... |
enrpan/spring-framework-2.5 | samples/petclinic/src/org/springframework/samples/petclinic/web/AddPetForm.java | <gh_stars>0
package org.springframework.samples.petclinic.web;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.petclinic.Clinic;
import org.springframework.samples.petclinic.Owner;
import org.springframework.samples.petclinic.Pet;
... |
PacktPublishing/Python-Machine-Learning-Solutions-V- | Section_04_code/PyQT4/Lib/site-packages/PyQt4/examples/painting/basicdrawing/basicdrawing.pyw | <reponame>PacktPublishing/Python-Machine-Learning-Solutions-V-
#!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2010 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## Th... |
ocomsoft/cerealbox | tests/cerealbox_frommap_test.go | <filename>tests/cerealbox_frommap_test.go
package tests
import (
"github.com/ocomsoft/cerealbox"
validation "github.com/ocomsoft/cerealbox/validation"
"testing"
)
func TestFromMapWithFunc(t *testing.T) {
example := Example{}
serializerFunc := func(builder cerealbox.ISerializer) cerealbox.ISerializer {
return ... |
Robbbert/messui | src/mame/drivers/pb1000.cpp | // license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
Casio PB-1000 / PB-2000c driver
Driver by <NAME>
TODO:
- improve the pb2000c gate array emulation
- i/o port
Known issues:
- the se... |
dennisnderitu254/Hackerrank-Algorithms | Strings/SherlockAndValidString.java | package Strings;
import java.util.*;
import java.io.*;
/*
* @author -- rajatgoyal715
*/
public class SherlockAndValidString {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char s[] = sc.nextLine().toCharArray();
int c[] = new int[26];
for(char i :... |
lovecrossyou/Puzzle | ios/Module/Discover/FreeBuy/View/FBPublicListCell.h | //
// FBPublicListCell.h
// Puzzle
//
// Created by huibei on 16/12/14.
// Copyright © 2016年 HuiBei. All rights reserved.
//
#import <UIKit/UIKit.h>
#define NOTIFICATION_TIME_CELL @"NotificationTimeCell"
@interface FBPublicListCell : UITableViewCell
// 获取table view cell 的indexPath
@property (nonatomic, weak) NSI... |
Szturmowiec/agent-based-simulation | mock/src/main/scala/pl.edu.agh.mock/model/Mock.scala | package pl.edu.agh.mock.model
import pl.edu.agh.mock.config.MockConfig
import pl.edu.agh.xinuk.config.XinukConfig
import pl.edu.agh.xinuk.model.{CellContents, Signal, SignalMap}
case object Mock extends CellContents {
override def generateSignal(iteration: Long)(implicit config: XinukConfig): Signal = config.asInst... |
xeren/Dat3M | dartagnan/src/main/java/com/dat3m/dartagnan/program/Register.java | package com.dat3m.dartagnan.program;
import com.google.common.collect.ImmutableSet;
import com.microsoft.z3.Context;
import com.microsoft.z3.Expr;
import com.microsoft.z3.Model;
import com.dat3m.dartagnan.expression.ExprInterface;
import com.dat3m.dartagnan.expression.IConst;
import com.dat3m.dartagnan.expression.IExp... |
KaterinaPetrova87/SoftUniProgrammingBasicsJava | 6.DrawingFiguresWithLoops/src/p09_House.java | <gh_stars>0
import java.util.Scanner;
public class p09_House {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
int startAsteriskCount = 0;
int dishesCount = 0;
if (n % 2 == 0) {
st... |
leha-bot/eve | include/eve/module/real/core/function/saturated/generic/minmag.hpp | <reponame>leha-bot/eve
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//===============================================================================... |
emil-wcislo/sbql4j8 | sbql4j8/src/test/openjdk/tools/javac/annotations/typeAnnotations/newlocations/MethodReturnType.java | /*
* Copyright (c) 2008, 2013, 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
* published by the Free ... |
OlegPt/spark | sql/core/src/main/java/org/apache/spark/sql/connector/read/V1Scan.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 may ... |
richardcbrown/PulseTile-RA | src/core/dataProviders/dataProvider.js | import get from "lodash/get";
import moment from "moment";
import {
fetchUtils,
GET_LIST,
GET_ONE,
GET_MANY,
GET_MANY_REFERENCE,
CREATE,
UPDATE,
UPDATE_MANY,
DELETE,
DELETE_MANY,
HttpError,
} from "react-admin";
import sort, { ASC, DESC } from 'sort-array-objects';
import pl... |
Mu-L/kotlin | build-common/test/org/jetbrains/kotlin/library/metadata/DebugKlibMetadataProtoBuf.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: compiler/util-klib-metadata/src/KlibMetadataProtoBuf.debug.proto
package org.jetbrains.kotlin.library.metadata;
public final class DebugKlibMetadataProtoBuf {
private DebugKlibMetadataProtoBuf() {}
public static void registerAllExtensions(
... |
pangolindex/mobile | pangolin_backend/api/createWallet/helper.js | const csvtojson = require("csvtojson");
const path = require("path");
const fs = require('fs');
const AWS = require('aws-sdk');
require('dotenv').config();
const ipfsFolder = '../ipfs-server/';
/**
* create csv files
*/
exports.postCSV = () => {
return new Promise(async (resolve, reject) => {
try {
... |
kusumandaru/bpm-sbh | src/main/java/com/sbh/bpm/service/CityService.java | package com.sbh.bpm.service;
import java.util.List;
import com.sbh.bpm.model.City;
import com.sbh.bpm.repository.CityRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CityService implements ICityService {
@Autowired
pr... |
caputomarcos/tuiuiu.io | tuiuiu/tuiuiucustomers/__init__.py | <gh_stars>1-10
default_app_config = 'tuiuiu.tuiuiucustomers.apps.TuiuiuCustomersConfig'
|
Boatdude55/staging-website | closure-templates/java/src/com/google/template/soy/i18ndirectives/FormatNumDirective.java | /*
* Copyright 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 ... |
tkeycoin/tkeycoin2 | lib/primitive/src/utils/Buffer.hpp | <reponame>tkeycoin/tkeycoin2<filename>lib/primitive/src/utils/Buffer.hpp<gh_stars>1-10
// Copyright (c) 2017-2019 Tkeycoin Dao. All rights reserved.
// Copyright (c) 2019-2020 TKEY DMCC LLC & Tkeycoin Dao. All rights reserved.
// Website: www.tkeycoin.com
//
// Licensed under the Apache License, Version 2.0 (the "Li... |
TheCarvalho/atividades-wikipython | EstruturaDeRepeticao/04.py | '''
4. Supondo que a população de um país A seja da ordem de 80000 habitantes com uma taxa anual de crescimento de 3% e
que a população de B seja 200000 habitantes com uma taxa de crescimento de 1.5%. Faça um programa que calcule e
escreva o número de anos necessários para que a população do país A ultrapasse ou iguale... |
eegeo/android-api-samples | apisamples/src/main/java/com/eegeo/apisamples/BlueSphereIndoorsActivity.java | package com.eegeo.apisamples;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.os.Handler;
import android.widget.RelativeLayout;
import com.eegeo.indoors.IndoorMapView;
import com.eegeo.mapapi.EegeoApi;
import com.eegeo.mapapi.EegeoMap;
import com.eegeo.mapapi.MapView;
impor... |
vmelnychuk/coding | java-core/src/main/java/io/learn/javacore/parallel/ExecutionSchedulingDemo.java | package io.learn.javacore.parallel;
class VegetableChopper extends Thread {
public int vegetableCount = 0;
public static boolean chopping = true;
public VegetableChopper(String name) {
this.setName(name);
}
public void run() {
while(chopping) {
System.out.println(this... |
CharLemAznable/char-elves | src/test/java/com/github/charlemaznable/core/lang/ListtTest.java | package com.github.charlemaznable.core.lang;
import lombok.val;
import org.junit.jupiter.api.Test;
import java.util.List;
import static com.github.charlemaznable.core.lang.Listt.isEmpty;
import static com.github.charlemaznable.core.lang.Listt.newArrayList;
import static com.github.charlemaznable.core.lang.Listt.newA... |
lorraneidevic/twu-biblioteca-lorrane | src/main/java/com/twu/biblioteca/view/ListMoviesMenu.java | <gh_stars>0
package com.twu.biblioteca.view;
import com.twu.biblioteca.domain.movie.Movie;
import com.twu.biblioteca.domain.movie.MovieController;
import java.util.ArrayList;
public class ListMoviesMenu implements Option {
private MovieController movieController;
public ListMoviesMenu(MovieController movieC... |
Yukikamome316/MineCode | src/src/primary/str.cpp | <filename>src/src/primary/str.cpp
#include <eval.h>
#include <primary/str.hpp>
parserTypes::primary::Str::~Str() {}
void parserTypes::primary::Str::eval(parserCore& ctx, int dest) {} |
doutoraovivo/doutoraovivo.github.io | catalog/src/components/operations/operation-list/ko/operationListViewModelBinder.js | <filename>catalog/src/components/operations/operation-list/ko/operationListViewModelBinder.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
retu... |
akashtalole/python-flask-restful-api | app/api/schema/email_notifications.py | from marshmallow_jsonapi import fields
from marshmallow_jsonapi.flask import Relationship
from app.api.helpers.utilities import dasherize
from app.api.schema.base import SoftDeletionSchema
from utils.common import use_defaults
@use_defaults()
class EmailNotificationSchema(SoftDeletionSchema):
"""
API Schema ... |
juncture-short/sacnview | src/sacn/sacnsocket.h | // Copyright 2016 <NAME>
// http://www.tomsteer.net
//
// 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... |
rbabari/blender | intern/cycles/util/util_logging.h | <filename>intern/cycles/util/util_logging.h
/*
* Copyright 2011-2014 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
... |
targeter21/drools | drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/bigdecimal/BigDecimalConversion.java | package org.drools.mvelcompiler.bigdecimal;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.util.Optional;
import com.github.javaparser.ast.expr.AssignExpr;
import org.drools.mvelcompiler.ast.AssignExprT;
import org.drools.mvelcompiler.ast.MethodCallExprT;
import org.drools.mvelcompiler.ast.Ty... |
codetaylor/artisan-worktables-1.16 | src/main/java/com/codetaylor/mc/artisanworktables/common/tile/ToolboxTileEntity.java | package com.codetaylor.mc.artisanworktables.common.tile;
import com.codetaylor.mc.artisanworktables.ArtisanWorktablesMod;
import com.codetaylor.mc.artisanworktables.ArtisanWorktablesModCommonConfig;
import com.codetaylor.mc.artisanworktables.common.block.ToolboxMechanicalBlock;
import com.codetaylor.mc.artisanworktabl... |
OnBlock/KiloEssentials | src/main/java/org/kilocraft/essentials/api/event/eventImpl/playerEventsImpl/PlayerEvent$OnPlaceBlockImpl.java | package org.kilocraft.essentials.api.event.eventImpl.playerEventsImpl;
import net.minecraft.block.Block;
import net.minecraft.item.ItemUsageContext;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import org.kilocraft.essentials.api... |
Valeri12580/Gladiators | src/main/java/project/gladiators/service/serviceModels/SubCategoryServiceModel.java | <gh_stars>0
package project.gladiators.service.serviceModels;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.Set;
@Getter
@Setter
@NoArgsConstructor
public class SubCategoryServiceModel extends BaseServiceModel{
private String name;
private boolean isEmpty;
... |
allegro/akubra | internal/akubra/storages/merger/bucket_meta_data.go | <reponame>allegro/akubra<gh_stars>10-100
package merger
import (
"bytes"
"io/ioutil"
"net/http"
"github.com/allegro/akubra/internal/akubra/log"
backend "github.com/allegro/akubra/internal/akubra/storages/backend"
)
const (
inconsitentRespInfo = "Inconsistent responses among backends"
warningHeader = "X... |
fbobee/Alpenglow | python/cpp_bridge/FactorModelReader.h | #ifndef FACTOR_MODEL_READER_H
#define FACTOR_MODEL_READER_H
#include <fstream>
#include <vector>
#include <string>
#include "models/factor/FactorModel.h"
#include "models/factor/EigenFactorModel.h"
using namespace std;
struct FactorRepr{
int entity;
vector<double> factors;
};
struct UserItemFactors{
vector<Fac... |
bingchunjin/1806_SDK | linux-4.14.90-dev/linux-4.14.90/drivers/ide/serverworks.c | <reponame>bingchunjin/1806_SDK
/*
* Copyright (C) 1998-2000 <NAME>
* Copyright (C) 1998-2000 <NAME>
* Copyright (C) 1998-2000 <NAME> <<EMAIL>>
* Copyright (C) 2007-2010 <NAME>
* Portions copyright (c) 2001 Sun Microsystems
*
*
* RCC/ServerWorks IDE driver for Linux
*
* OSB4: `Open South Bridge' IDE Interfac... |
Khuongnb1997/game-aladdin | game/prefabs/FinishEntrancePrefab.cpp | <filename>game/prefabs/FinishEntrancePrefab.cpp<gh_stars>1-10
#include "FinishEntrancePrefab.h"
#include "../Define.h"
USING_NAMESPACE_ALA;
ALA_CLASS_SOURCE_1(FinishEntrancePrefab, ala::PrefabV2)
void FinishEntrancePrefab::doInstantiate( ala::GameObject* object, std::istringstream& argsStream ) const {
// args
c... |
asedl/XpaPDPM_Calc | TestData/HomeHealthGrouper/HH_PPS_Java_source/com/mmm/cms/homehealth/vut/oasis/ValidateStageMostProblematicPressureUlcer_OASIS_C2.java | <reponame>asedl/XpaPDPM_Calc
/*
* Home Health Grouper
* Developer for the Center for Medicare and Medicaid Services CMS
* by 3M Health Information Systems for CMS Home Health.
*
* All code is provided as is.
*/
package com.mmm.cms.homehealth.vut.oasis;
import com.mmm.cms.homehealth.vut.proto.CollectionValidatio... |
Sheikh-Aman/aion | modAionImpl/test/org/aion/zero/impl/vm/AvmTestConfig.java | <gh_stars>100-1000
package org.aion.zero.impl.vm;
import org.aion.zero.impl.vm.avm.AvmConfigurations;
import org.aion.zero.impl.vm.avm.schedule.AvmVersionSchedule;
public final class AvmTestConfig {
/**
* Uses an avm version schedule that only supports version 1 - no version 2 support at all.
* Version... |
aiplan4eu/unified-planning | unified_planning/engines/compilers/negative_conditions_remover.py | <filename>unified_planning/engines/compilers/negative_conditions_remover.py
# Copyright 2021 AIPlan4EU 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/li... |
stijn1989/cphalcon | ext/phalcon/validation/validator/identical.zep.c | <filename>ext/phalcon/validation/validator/identical.zep.c<gh_stars>1000+
#ifdef HAVE_CONFIG_H
#include "../../../ext_config.h"
#endif
#include <php.h>
#include "../../../php_ext.h"
#include "../../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#includ... |
tied/innovation-funding-service | ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/user/repository/RoleProfileStatusRepository.java | <reponame>tied/innovation-funding-service
package org.innovateuk.ifs.user.repository;
import org.innovateuk.ifs.user.domain.RoleProfileStatus;
import org.innovateuk.ifs.user.resource.ProfileRole;
import org.innovateuk.ifs.user.resource.RoleProfileState;
import org.innovateuk.ifs.user.resource.UserStatus;
import org.sp... |
yoelcortes/pyflowsheet | pyflowsheet/annotations/textelement.py | from ..core import UnitOperation
from ..core.enums import HorizontalLabelAlignment, VerticalLabelAlignment
class TextElement(UnitOperation):
def __init__(self, text, position=(0, 0)):
super().__init__("text", "text", position=position, size=(20, 20))
self.text = text
self.drawBoundingBox =... |
jaredpreston/web-1 | generated/docs/kratos/algolia.328d59c6.js | <reponame>jaredpreston/web-1
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{322:function(n,w,o){}}]); |
Kstar0722/avoinministerio | db/migrate/20120229153530_add_friendly_id_to_idea.rb | class AddFriendlyIdToIdea < ActiveRecord::Migration
def change
add_column :ideas, :slug, :string
add_index :ideas, :slug, unique: true
end
end
|
inspectIT/inspectit-oce | inspectit-ocelot-core/src/test/java/rocks/inspectit/ocelot/core/testutils/ReflectionUtils.java | <reponame>inspectIT/inspectit-oce<gh_stars>10-100
package rocks.inspectit.ocelot.core.testutils;
import java.lang.reflect.Field;
public class ReflectionUtils {
public static void writeField(Object target, String fieldName, Object value) {
try {
Class<?> targetClass = target.getClass();
... |
aliyun/CicadaPlayer | framework/utils/UrlUtils.h | <filename>framework/utils/UrlUtils.h
//
// Created by lifujun on 2020/5/19.
//
#ifndef SAASMEDIA_URLUTILS_H
#define SAASMEDIA_URLUTILS_H
#include <string>
#include <map>
#include "CicadaType.h"
namespace Cicada {
class URLComponents {
public:
std::string proto{};
std::string auth{};
st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.