code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
package gui; //: gui/SubmitLabelManipulationTask.java import javax.swing.*; import java.util.concurrent.*; public class SubmitLabelManipulationTask { public static void main(String[] args) throws Exception { JFrame frame = new JFrame("Hello Swing"); final JLabel label = new JLabel("A Label"); fr...
vowovrz/thinkinj
thinkinj/src/main/java/gui/SubmitLabelManipulationTask.java
Java
apache-2.0
646
/** * Copyright 2006-2015 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
li24361/mybatis-generator-core
src/main/java/org/mybatis/generator/codegen/ibatis2/dao/elements/UpdateByExampleWithoutBLOBsMethodGenerator.java
Java
apache-2.0
4,329
package jp.teraparser.transition; import java.util.Arrays; /** * Resizable-array implementation of Deque which works like java.util.ArrayDeque * * jp.teraparser.util * * @author Hiroki Teranishi */ public class Stack implements Cloneable { private static final int MIN_INITIAL_CAPACITY = 8; private int[...
chantera/teraparser
src/jp/teraparser/transition/Stack.java
Java
apache-2.0
3,381
/* * 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 ...
PivotalSarge/geode-native
src/tests/cpp/testobject/PdxType.cpp
C++
apache-2.0
13,394
package ppp.menu; import java.awt.image.BufferedImage; public abstract interface Menu { public abstract void up(); public abstract void down(); public abstract void enter(); public abstract void escape(); public abstract BufferedImage getImage(); }
mzijlstra/java-games
ppp/menu/Menu.java
Java
apache-2.0
256
require File.join(File.dirname(__FILE__), '..', 'cloudstack_rest') Puppet::Type.type(:cloudstack_network_provider).provide :rest, :parent => Puppet::Provider::CloudstackRest do desc "REST provider for Cloudstack Network Service Provider" mk_resource_methods def flush if @property_flush[:ensure] == ...
Lavaburn/puppet-cloudstack
lib/puppet/provider/cloudstack_network_provider/rest.rb
Ruby
apache-2.0
4,563
/* * */ package org.utilities; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; // TODO: Auto-...
sarathrami/Chain-Replication
src/org/utilities/CUtils.java
Java
apache-2.0
1,735
/* Copyright 2020 Telstra Open Source * * 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...
telstra/open-kilda
src-java/floodlight-service/floodlight-modules/src/main/java/org/openkilda/floodlight/switchmanager/SwitchFlowUtils.java
Java
apache-2.0
9,966
from typing import List class Solution: def partitionLabels(self, S: str) -> List[int]: lastPos, seen, currMax = {}, set(), -1 res = [] for i in range(0, 26): c = chr(97+i) lastPos[c] = S.rfind(c) for i, c in enumerate(S): # Encounter new index hig...
saisankargochhayat/algo_quest
leetcode/763. Partition Labels/soln.py
Python
apache-2.0
555
package ruboweb.pushetta.back.model; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
ruboweb/pushetta
src/main/java/ruboweb/pushetta/back/model/User.java
Java
apache-2.0
2,054
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.10....
Gaonaifeng/eLong-OpenAPI-H5-demo
nb_demo_h5/src/main/java/com/elong/nb/model/elong/CommentResult.java
Java
apache-2.0
2,314
<?php include_once 'functionCheckLogin.php'; $code_login = login_check($mysqli); if($code_login <0) { header('Location: /index.php'); } ?> <html> <head> <meta name='viewport' content='width=device-width'> <title>Impostazioni generali</title> <link rel='stylesheet' href='css/style_general_settings.css'...
antonyflour/RaspuinoRCS
generalSettings.php
PHP
apache-2.0
1,084
// Copyright 2014 The Serviced 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...
zenoss/zenoss-zapp
java/zenoss-app/src/main/java/org/zenoss/app/annotations/API.java
Java
apache-2.0
773
/* * Copyright 2021 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 * * Unless required by applicable law or agreed to...
googleads/google-ads-java
google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/OperatingSystemVersionConstantServiceSettings.java
Java
apache-2.0
8,198
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. /** git.cc Jeremy Barnes, 14 November 2015 Copyright (c) mldb.ai inc. All rights reserved. */ #include "mldb/core/procedure.h" #include "mldb/core/dataset.h" #include "mldb/base/per_thread_accumulator.h" #include "mldb/types/url.h...
mldbai/mldb
plugins/git/git.cc
C++
apache-2.0
17,692
/* * Copyright 2006-2016 Edward Smith * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
macvelli/RootFramework
src/root/json/JSONBoolean.java
Java
apache-2.0
1,215
package uk.co.listpoint.context; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for Context6Type. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pr...
davidcarboni/listpoint-ws
src/main/java/uk/co/listpoint/context/Context6Type.java
Java
apache-2.0
1,238
package com.example.customviewdemo; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class DragViewActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R...
jianghang/CustomViewDemo
src/com/example/customviewdemo/DragViewActivity.java
Java
apache-2.0
354
/* * 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 ...
eltitopera/TFM
manager/src/src/main/java/redis/common/container/RedisCommandsContainerBuilder.java
Java
apache-2.0
6,212
package fundamental.games.metropolis.connection.bluetooth; import android.bluetooth.BluetoothSocket; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.UUID; import fundamental.games.metropolis.connection.global.MessagesQueue; import fundamental.games.m...
Ragnarokma/metropolis
src/main/java/fundamental/games/metropolis/connection/bluetooth/BluetoothServerConnection.java
Java
apache-2.0
1,850
// Reset $('.touch .client-wrap').click(function(event){ var target = $( event.target ); if ( target.hasClass( "client-close" ) ) { $('.client-wrap div.client').addClass('reset'); } else{ $('.client-wrap div.client').removeClass('reset'); } }); // David Walsh simple lazy loading [].forEach.cal...
urban-knight/dmcc-website
public/js/clients.js
JavaScript
apache-2.0
512
package bookshop2.client.paymentService; import java.util.List; import org.aries.message.Message; import org.aries.message.MessageInterceptor; import org.aries.util.ExceptionUtil; import bookshop2.Payment; @SuppressWarnings("serial") public class PaymentServiceInterceptor extends MessageInterceptor<PaymentService>...
tfisher1226/ARIES
bookshop2/bookshop2-client/src/main/java/bookshop2/client/paymentService/PaymentServiceInterceptor.java
Java
apache-2.0
3,276
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/DeleteAuthenticationProfileRequest.java
Java
apache-2.0
4,104
using Microsoft.AspNetCore.Antiforgery; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json....
rohatsu/tracktor
tracktor.app/Controllers/AccountController.cs
C#
apache-2.0
15,547
using System; using System.Runtime.CompilerServices; namespace De.Osthus.Ambeth.Mapping { public class CompositIdentityClassKey { private readonly Object entity; private readonly Type type; private int hash; public CompositIdentityClassKey(Object entity, Type type) { ...
Dennis-Koch/ambeth
ambeth/Ambeth.Mapping/ambeth/mapping/CompositIdentityClassKey.cs
C#
apache-2.0
1,038
// Copyright 2017 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 in w...
crepric/codeu_mirrored_test_1
src/codeu/chat/client/core/Context.java
Java
apache-2.0
1,510
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert // Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2020.0...
3dcitydb/web-feature-service
src-gen/main/java/net/opengis/ows/_1/ReferenceType.java
Java
apache-2.0
5,813
package io.github.varvelworld.var.ioc.core.annotation.meta.factory; import io.github.varvelworld.var.ioc.core.annotation.Resource; import io.github.varvelworld.var.ioc.core.meta.ParamResourceMeta; import io.github.varvelworld.var.ioc.core.meta.factory.ParamResourceMetaFactory; import java.lang.reflect.Parameter; /**...
varvelworld/var-ioc
src/main/java/io/github/varvelworld/var/ioc/core/annotation/meta/factory/AnnotationParamResourceMetaFactoryImpl.java
Java
apache-2.0
1,193
package com.stf.bj.app.game.players; import java.util.Random; import com.stf.bj.app.game.bj.Spot; import com.stf.bj.app.game.server.Event; import com.stf.bj.app.game.server.EventType; import com.stf.bj.app.settings.AppSettings; import com.stf.bj.app.strategy.FullStrategy; public class RealisticBot extends BasicBot {...
Boxxy/Blackjack
core/src/com/stf/bj/app/game/players/RealisticBot.java
Java
apache-2.0
3,337
package me.marcosassuncao.servsim.job; import me.marcosassuncao.servsim.profile.RangeList; import com.google.common.base.MoreObjects; /** * {@link Reservation} represents a resource reservation request * made by a customer to reserve a given number of resources * from a provider. * * @see WorkUnit * @see Def...
assuncaomarcos/servsim
src/main/java/me/marcosassuncao/servsim/job/Reservation.java
Java
apache-2.0
2,646
/* * Copyright (c) 2016, baihw (javakf@163.com). * * 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...
javakf/rdf
src/main/java/com/yoya/rdf/router/IRequestHandler.java
Java
apache-2.0
1,692
(function() { 'use strict'; angular .module('sentryApp') .controller('TimeFrameController', TimeFrameController); TimeFrameController.$inject = ['$scope', '$state', 'TimeFrame', 'ParseLinks', 'AlertService', 'paginationConstants', 'pagingParams']; function TimeFrameController ($scope,...
quanticc/sentry
src/main/webapp/app/entities/time-frame/time-frame.controller.js
JavaScript
apache-2.0
1,937
/** * <copyright> * </copyright> * * $Id$ */ package de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import o...
markus1978/clickwatch
analysis/de.hub.clickwatch.specificmodels.brn/src/de/hub/clickwatch/specificmodels/brn/sys_info_systeminfo/impl/Cpu_usageImpl.java
Java
apache-2.0
14,073
#include "pmlc/dialect/pxa/analysis/affine_expr.h" namespace mlir { AffineValueExpr::AffineValueExpr(AffineExpr expr, ValueRange operands) : expr(expr), operands(operands.begin(), operands.end()) {} AffineValueExpr::AffineValueExpr(MLIRContext *ctx, int64_t v) { expr = getAffineConstantExpr(v, ctx); } AffineV...
plaidml/plaidml
pmlc/dialect/pxa/analysis/affine_expr.cc
C++
apache-2.0
3,202
/** * * Copyright 2016 David Strawn * * 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 a...
strontian/longleaf-relay
src/main/java/strawn/longleaf/relay/util/RelayConfigLoader.java
Java
apache-2.0
2,074
// Modifications copyright (C) 2017, Baidu.com, Inc. // Copyright 2017 The Apache Software Foundation // 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. ...
lingbin/palo
be/src/util/palo_metrics.cpp
C++
apache-2.0
7,788
package leetcode.reverse_linked_list_ii; import common.ListNode; public class Solution { public ListNode reverseBetween(ListNode head, int m, int n) { if(head == null) return null; ListNode curRight = head; for(int len = 0; len < n - m; len++){ curRight = curRight.next; } ListNode p...
ckclark/leetcode
java/leetcode/reverse_linked_list_ii/Solution.java
Java
apache-2.0
1,378
/* * 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 ...
KidEinstein/giraph
giraph-examples/src/main/java/org/apache/giraph/examples/io/formats/LongLongLongLongVertexInputFormat.java
Java
apache-2.0
4,147
//============================================================================ // // Copyright (C) 2006-2022 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receive...
Talend/components
components/components-googledrive/components-googledrive-definition/src/main/java/org/talend/components/google/drive/connection/GoogleDriveConnectionDefinition.java
Java
apache-2.0
1,926
import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { InAppBrowser } from '@ionic-native/in-app-browser'; @Component({ selector: 'page-apuntes', templateUrl: 'apuntes.html' }) export class ApuntesPage { constructor(public platform: Platform, private theInAppBrowser: In...
tomibarbieri/lafuente
src/pages/apuntes/apuntes.ts
TypeScript
apache-2.0
1,350
/*price range*/ $('#sl2').slider(); var RGBChange = function() { $('#RGB').css('background', 'rgb('+r.getValue()+','+g.getValue()+','+b.getValue()+')') }; /*scroll to top*/ $(document).ready(function(){ $(function () { $.scrollUp({ scrollName: 'scrollUp', // Element ID scrollDistance: ...
ReinID/ReinID
Samples/.Net/.Netproperty4u/Property4U/Scripts/main.js
JavaScript
apache-2.0
2,179
<?php namespace Google\AdsApi\AdWords\v201809\cm; /** * This file was generated from WSDL. DO NOT EDIT. */ class IdErrorReason { const NOT_FOUND = 'NOT_FOUND'; }
googleads/googleads-php-lib
src/Google/AdsApi/AdWords/v201809/cm/IdErrorReason.php
PHP
apache-2.0
173
/* * Licensed to GraphHopper GmbH under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * GraphHopper GmbH licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use t...
balage1551/jsprit
jsprit-core/src/test/java/com/graphhopper/jsprit/core/algorithm/SearchStrategyTest.java
Java
apache-2.0
8,039
import { extend } from 'flarum/extend'; import PermissionGrid from 'flarum/components/PermissionGrid'; export default function() { extend(PermissionGrid.prototype, 'moderateItems', items => { items.add('tag', { icon: 'fas fa-tag', label: app.translator.trans('flarum-tags.admin.permissions.tag_discuss...
drthomas21/WordPress_Tutorial
community_htdocs/vendor/flarum/tags/js/src/admin/addTagPermission.js
JavaScript
apache-2.0
389
#!/Users/wuga/Documents/website/wuga/env/bin/python2.7 # # The Python Imaging Library # $Id$ # from __future__ import print_function import sys if sys.version_info[0] > 2: import tkinter else: import Tkinter as tkinter from PIL import Image, ImageTk # ------------------------------------------------------...
wuga214/Django-Wuga
env/bin/player.py
Python
apache-2.0
2,120
package com.apixandru.rummikub.api; /** * @author Alexandru-Constantin Bledea * @since Sep 16, 2015 */ public enum Rank { ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, ELEVEN, TWELVE, THIRTEEN; public int asNumber() { return ordinal() + 1; } @Override publi...
apixandru/rummikub-java
rummikub-model/src/main/java/com/apixandru/rummikub/api/Rank.java
Java
apache-2.0
405
/* * 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/LICENSE-2.0 * * Unless required ...
Danny-Hazelcast/hazelcast-stabilizer
simulator/src/main/java/com/hazelcast/simulator/provisioner/ProvisionerCli.java
Java
apache-2.0
6,122
package com.cognizant.cognizantits.qcconnection.qcupdation; import com4j.DISPID; import com4j.IID; import com4j.VTID; @IID("{B739B750-BFE1-43AF-8DD7-E8E8EFBBED7D}") public abstract interface IDashboardFolderFactory extends IBaseFactoryEx { @DISPID(9) @VTID(17) public abstract IList getChildPagesWithPrivateIte...
CognizantQAHub/Cognizant-Intelligent-Test-Scripter
QcConnection/src/main/java/com/cognizant/cognizantits/qcconnection/qcupdation/IDashboardFolderFactory.java
Java
apache-2.0
482
/* * Copyright (C) 2016 QAware GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
0xhansdampf/chronix.kassiopeia
chronix-kassiopeia-simple/src/main/java/de/qaware/chronix/timeseries/dt/DoubleList.java
Java
apache-2.0
19,873
# Copyright 2018 Huawei Technologies Co.,LTD. # 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...
openstack/nomad
cyborg/objects/physical_function.py
Python
apache-2.0
5,396
/* Copyright 2020 Gravitational, 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 in writing, soft...
gravitational/teleport
lib/events/playback.go
GO
apache-2.0
10,730
package de.devisnik.mine.robot.test; import de.devisnik.mine.robot.AutoPlayerTest; import de.devisnik.mine.robot.ConfigurationTest; import junit.framework.Test; import junit.framework.TestSuite; public class AllTests { public static Test suite() { TestSuite suite = new TestSuite("Tests for de.devisnik.mine.robot"...
devisnik/mines
robot/src/test/java/de/devisnik/mine/robot/test/AllTests.java
Java
apache-2.0
470
package com.beanu.l2_shareutil.share; import androidx.annotation.IntDef; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Created by shaohui on 2016/11/18. */ public class SharePlatform { @IntDef({ DEFAULT, QQ, QZONE, WEIBO, WX, WX_TIMELINE }) @Retention(RetentionP...
beanu/smart-farmer-android
l2_shareutil/src/main/java/com/beanu/l2_shareutil/share/SharePlatform.java
Java
apache-2.0
608
<?php /** * Contains all client objects for the ExchangeRateService * service. * * PHP version 5 * * Copyright 2016, Google 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 o...
gamejolt/googleads-php-lib
src/Google/Api/Ads/Dfp/v201605/ExchangeRateService.php
PHP
apache-2.0
81,385
# This migration comes from grocer (originally 20170119220038) class CreateGrocerExports < ActiveRecord::Migration[5.0] def change create_table :grocer_exports do |t| t.string :pid t.integer :job t.string :status t.datetime :last_error t.datetime :last_success t.string :logfile...
pulibrary/plum
db/migrate/20170127153850_create_grocer_exports.grocer.rb
Ruby
apache-2.0
409
class TreeBuilderTenants < TreeBuilder has_kids_for Tenant, [:x_get_tree_tenant_kids] def initialize(name, sandbox, build, **params) @additional_tenants = params[:additional_tenants] @selectable = params[:selectable] @ansible_playbook = params[:ansible_playbook] @catalog_bundle = params[:catalog_bu...
ManageIQ/manageiq-ui-classic
app/presenters/tree_builder_tenants.rb
Ruby
apache-2.0
1,530
import {NgModule} from '@angular/core'; import {TestimonialService} from "./testimonial.service"; import {TestimonialEditorComponent} from "./testimonial-editor.component"; import {TestimonialComponent} from "./testimonial-list.component"; import {TestimonialRouting} from './testimonial.route'; import {SharedModul...
nodebeats/nodebeats
admin/src/admin-app/dashboard-app/components/testimonial/testimonial.module.ts
TypeScript
apache-2.0
655
class Solution: def isValidSerialization(self, preorder): """ :type preorder: str :rtype: bool """ arr_pre_order = preorder.split(',') stack = [] for node in arr_pre_order: stack.append(node) while len(stack) > 1 and stack[-1] ...
MingfeiPan/leetcode
stack/331.py
Python
apache-2.0
615
#!/usr/bin/python # -*- coding: utf-8 -*- # Author: violinsolo # Created on 08/03/2018 import tensorflow as tf import numpy as np x_shape = [5, 3, 3, 2] x = np.arange(reduce(lambda t, s: t*s, list(x_shape), 1)) print x x = x.reshape([5, 3, 3, -1]) print x.shape X = tf.Variable(x) with tf.Session() as sess: ...
iViolinSolo/DeepLearning-GetStarted
TF-Persion-ReID/test/test_tf_nn_moments.py
Python
apache-2.0
557
package com.blp.minotaurus.utils; import com.blp.minotaurus.Minotaurus; import net.milkbowl.vault.economy.Economy; import org.bukkit.Bukkit; import org.bukkit.plugin.RegisteredServiceProvider; /** * @author TheJeterLP */ public class EconomyManager { private static Economy econ = null; public static boole...
BossLetsPlays/Minotaurus
src/main/java/com/blp/minotaurus/utils/EconomyManager.java
Java
apache-2.0
756
package eas.com; public interface SomeInterface { String someMethod(String param1, String param2, String param3, String param4); }
xalfonso/res_java
java-reflection-method/src/main/java/eas/com/SomeInterface.java
Java
apache-2.0
137
'use strict'; angular.module('donetexampleApp') .service('ParseLinks', function () { this.parse = function (header) { if (header.length == 0) { throw new Error("input must not be of zero length"); } // Split parts by comma var parts = header....
CyberCastle/DoNetExample
DoNetExample.Gui/scripts/components/util/parse-links.service.js
JavaScript
apache-2.0
1,252
package com.mobisys.musicplayer.model; import android.os.Parcel; import android.os.Parcelable; /** * Created by Govinda P on 6/3/2016. */ public class MusicFile implements Parcelable { private String title; private String album; private String id; private String singer; private String path; ...
GovindaPaliwal/android-constraint-Layout
app/src/main/java/com/mobisys/musicplayer/model/MusicFile.java
Java
apache-2.0
2,408
<?php /********************************************************************************************************************************** * * Ajax Payment System * * Author: Webbu Design * **********************************************************************************************************************************...
fedebalderas/esm_wordpress
wp-content/themes/pointfinder/admin/estatemanagement/includes/ajax/ajax-itemsystem.php
PHP
apache-2.0
12,874
// // 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...
MarcFletcher/NetworkComms.Net
NetworkCommsDotNet/Connection/UDP/UDPConnection.cs
C#
apache-2.0
36,508
/* * Copyright 2014-2019 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 "licen...
jentfoo/aws-sdk-java
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/transform/AnalyticsMetadataTypeJsonUnmarshaller.java
Java
apache-2.0
2,836
/* * Copyright (C) 2017 The Android Open 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 app...
allsoft777/MVP-with-Firebase
mvplife/src/main/java/com/seongil/mvplife/fragment/BaseMvpFragment.java
Java
apache-2.0
4,046
import React from 'react' import { StyleSheet, View, processColor } from 'react-native' import { BubbleChart } from 'react-native-charts-wrapper' class BubbleChartScreen extends React.Component<any, any> { constructor(props) { super(props) const { modeInfo } = props const temp = props.value.weekL...
Smallpath/Psnine
psnine/container/statistics/BubbleChart.tsx
TypeScript
apache-2.0
2,584
# -*- coding: utf-8 -*- """Template shortcut & filters""" import os import datetime from jinja2 import Environment, FileSystemLoader from uwsgi_sloth.settings import ROOT from uwsgi_sloth import settings, __VERSION__ template_path = os.path.join(ROOT, 'templates') env = Environment(loader=FileSystemLoader(template_pa...
piglei/uwsgi-sloth
uwsgi_sloth/template.py
Python
apache-2.0
1,040
package org.openstack.atlas.service.domain.exception; public class UniqueLbPortViolationException extends PersistenceServiceException { private final String message; public UniqueLbPortViolationException(final String message) { this.message = message; } @Override public String getMessage(...
openstack-atlas/atlas-lb
core-persistence/src/main/java/org/openstack/atlas/service/domain/exception/UniqueLbPortViolationException.java
Java
apache-2.0
356
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University // Copyright (c) 2011, 2012 Open Networking Foundation // Copyright (c) 2012, 2013 Big Switch Networks, Inc. // This library was generated by the LoxiGen Compiler. // See the file LICENSE.txt which should have been included in the sour...
o3project/openflowj-otn
src/main/java/org/projectfloodlight/openflow/protocol/ver13/OFOxmBsnUdf4MaskedVer13.java
Java
apache-2.0
10,443
package com.tamirhassan.pdfxtk.comparators; /** * pdfXtk - PDF Extraction Toolkit * Copyright (c) by the authors/contributors. All rights reserved. * This project includes code from PDFBox and TouchGraph. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provide...
tamirhassan/pdfxtk
src/com/tamirhassan/pdfxtk/comparators/XmidComparator.java
Java
apache-2.0
2,438
/** * Copyright (C) 2015 meltmedia (christian.trimble@meltmedia.com) * * 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...
meltmedia/dropwizard-etcd
bundle/src/main/java/com/meltmedia/dropwizard/etcd/json/EtcdJsonBundle.java
Java
apache-2.0
3,068
import com.google.common.base.Function; import javax.annotation.Nullable; /** * Created by ckale on 10/29/14. */ public class DateValueSortFunction implements Function<PojoDTO, Long>{ @Nullable @Override public Long apply(@Nullable final PojoDTO input) { return input.getDateTime().getMillis();...
chax0r/PlayGround
playGround/src/main/java/DateValueSortFunction.java
Java
apache-2.0
329
package ru.stqa.javacourse.mantis.tests; import org.testng.annotations.Test; import ru.stqa.javacourse.mantis.model.Issue; import ru.stqa.javacourse.mantis.model.Project; import javax.xml.rpc.ServiceException; import java.net.MalformedURLException; import java.rmi.RemoteException; import java.util.Set; import stati...
Olbar/courseJava
mantis-tests/src/test/java/ru/stqa/javacourse/mantis/tests/SoapTest.java
Java
apache-2.0
1,172
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v10/services/customer_conversion_goal_service.proto package com.google.ads.googleads.v10.services; /** * <pre> * A single operation (update) on a customer conversion goal. * </pre> * * Protobuf type {@code google.ads.goog...
googleads/google-ads-java
google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/services/CustomerConversionGoalOperation.java
Java
apache-2.0
36,172
package org.openjava.upay.web.domain; import java.util.List; public class TablePage<T> { private long start; private int length; private long recordsTotal; private long recordsFiltered; private List<T> data; public TablePage() { } public long getStart() { return star...
openjava2017/openjava-upay
upay-server/src/main/java/org/openjava/upay/web/domain/TablePage.java
Java
apache-2.0
1,263
package com.jy.controller.workflow.online.apply; import com.jy.common.ajax.AjaxRes; import com.jy.common.utils.DateUtils; import com.jy.common.utils.base.Const; import com.jy.common.utils.security.AccountShiroUtil; import com.jy.controller.base.BaseController; import com.jy.entity.attendance.WorkRecord; import com.jy....
futureskywei/whale
src/main/java/com/jy/controller/workflow/online/apply/PatchController.java
Java
apache-2.0
5,402
var searchData= [ ['interactiontype',['InteractionType',['../class_student_record.html#a00e060bc8aa9829e5db087e2cba21009',1,'StudentRecord']]] ];
rstals/Unity-SCORM-Integration-Kit
Documentation/search/enums_2.js
JavaScript
apache-2.0
148
// Copyright (c) 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditi...
mital/kroll
boot/breakpad/client/windows/crash_generation/minidump_generator.cc
C++
apache-2.0
9,978
package com.nosolojava.fsm.impl.runtime.executable.basic; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import com.nosolojava.fsm.runtime.Context; import com.nosolojava.fsm.runtime.executable.Elif; import com.nosolojava.fsm.runtime.executable.Else; import com.nosolojava.fsm.ru...
nosolojava/scxml-java
scxml-java-implementation/src/main/java/com/nosolojava/fsm/impl/runtime/executable/basic/BasicIf.java
Java
apache-2.0
2,082
/** * Copyright 2015 Santhosh Kumar Tekuri * * The JLibs authors license this file to you 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...
santhosh-tekuri/jlibs
wamp4j-core/src/main/java/jlibs/wamp4j/spi/Listener.java
Java
apache-2.0
1,010
package me.littlepanda.dadbear.core.queue; import java.util.Queue; /** * @author 张静波 myplaylife@icloud.com * */ public interface DistributedQueue<T> extends Queue<T> { /** * <p>如果使用无参构造函数,需要先调用这个方法,队列才能使用</p> * @param queue_name * @param clazz */ abstract public void init(String queue_name,...
myplaylife/dadbear
framework/core/src/main/java/me/littlepanda/dadbear/core/queue/DistributedQueue.java
Java
apache-2.0
402
/* * Copyright 2013 Gunnar Kappei. * * 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...
moosbusch/xbLIDO
src/net/opengis/gml/MultiSurfaceType.java
Java
apache-2.0
10,068
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/transform/AuthenticationProfileNotFoundExceptionUnmarshaller.java
Java
apache-2.0
1,678
'use strict'; /** * @ngdoc function * @name lubriApp.controller:MembersCtrl * @description * # MembersCtrl * Controller of the lubriApp */ angular.module('lubriApp') .config(function($stateProvider) { $stateProvider.state('app.members', { abstract: true, url: '/members', templateUrl: 'vi...
g8te/lubri
client/app/scripts/controllers/members.js
JavaScript
apache-2.0
7,033
package com.thinkgem.jeesite.modules.purifier.dao; import com.thinkgem.jeesite.common.persistence.CrudDao; import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao; import com.thinkgem.jeesite.modules.purifier.entity.Ware; /** * 仓库管理dao * * @author addison * @since 2017年03月02日 */ @MyBatisDao public i...
cuiqunhao/jeesite
src/main/java/com/thinkgem/jeesite/modules/purifier/dao/WareDao.java
Java
apache-2.0
411
function buildName(firstName = "Will", lastName: string) { return firstName + " " + lastName; } let result1 = buildName("Bob"); // error, too few parameters let result2 = buildName("Bob", "Adams", "Sr."); // error, too many parameters let result3 = buildName("Bob", "Adams"); // okay and r...
XNSystemsStudy/Modern-Web-Development
src/170109-optional.ts
TypeScript
apache-2.0
420
#!/usr/bin/env ruby require 'erb' require 'json' require 'optparse' @target = nil @users = 1 @concurrency = 1 @maxrate = 10 @maxhits = nil OptionParser.new do | opts | opts.banner = "Usage: generate.rb [options] target" opts.on('--target [string]', "Specify the target server for requests (required)") do | v | ...
cityindex-attic/logsearch
example/jmeter-loadtest/generate.rb
Ruby
apache-2.0
1,659
/* * @(#)TIFFHeader.java * * $Date: 2014-03-13 04:15:48 -0400 (Thu, 13 Mar 2014) $ * * Copyright (c) 2011 by Jeremy Wood. * All rights reserved. * * The copyright of this software is owned by Jeremy Wood. * You may not use, copy or modify this software, except in * accordance with the license agreement you...
MKLab-ITI/image-forensics
java_service/src/main/java/gr/iti/mklab/reveal/forensics/util/ThumbnailExtractor/image/jpeg/TIFFHeader.java
Java
apache-2.0
3,339
<?php use App\Models\Post; use Illuminate\Support\Facades\DB; use Test\Factory; use Test\TestCase; class PostControllerTest extends TestCase { public function setUp() { parent::setUp(); DB::table('posts')->delete(); $this->user = Factory::create('user'); $this->be($this->user); ...
pinnackl/cabrette-dev
tests/Http/Controllers/PostControllerTest.php
PHP
apache-2.0
1,851
/** * */ /** * @author root * */ package com.amanaje.activities;
damico/amanaje
source-code/Amanaje/src/com/amanaje/activities/package-info.java
Java
apache-2.0
70
package eu.ailao.hub.dialog; import eu.ailao.hub.corefresol.answers.ClueMemorizer; import eu.ailao.hub.corefresol.concepts.ConceptMemorizer; import eu.ailao.hub.questions.Question; import java.util.ArrayList; /** * Created by Petr Marek on 24.02.2016. * Dialog class represents dialog. It contains id of dialog and ...
brmson/hub
src/main/java/eu/ailao/hub/dialog/Dialog.java
Java
apache-2.0
1,699
// Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms. package com.yahoo.bard.webservice.data.metric; /** * LogicalMetricColumn. */ public class LogicalMetricColumn extends MetricColumn { private final LogicalMetric metric...
yahoo/fili
fili-core/src/main/java/com/yahoo/bard/webservice/data/metric/LogicalMetricColumn.java
Java
apache-2.0
1,271
package esidev import ( "net/http" "time" "github.com/gorilla/mux" ) var _ time.Time var _ = mux.NewRouter func GetIncursions(w http.ResponseWriter, r *http.Request) { var ( localV interface{} err error datasource string ) // shut up warnings localV = localV err = err j := `[ { "conste...
antihax/mock-esi
dev/go/api_incursions.go
GO
apache-2.0
1,390
using System.Collections.Generic; using RestSharp; using SimpleJson; namespace MoneySharp.Internal.Model { public class SalesInvoicePost : SalesInvoice { public IList<SalesInvoiceDetail> details_attributes { get; set; } public JsonObject custom_fields_attributes { get; set; } } }
SpringIT/moneysharp
src/MoneySharp/Internal/Model/SalesInvoicePost.cs
C#
apache-2.0
322
package coop.ekologia.presentation.controller.user; import java.io.IOException; import javax.inject.Inject; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRespo...
imie-source/Ekologia
EkologiaGUI/src/coop/ekologia/presentation/controller/user/LoginDeconnectionServlet.java
Java
apache-2.0
1,605
/* * Copyright 2010-2020 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
Activiti/Activiti
activiti-core/activiti-engine/src/main/java/org/activiti/engine/impl/cmd/CreateAttachmentCmd.java
Java
apache-2.0
5,884
package org.seasar.doma.internal.jdbc.dialect; import org.seasar.doma.internal.jdbc.sql.SimpleSqlNodeVisitor; import org.seasar.doma.internal.jdbc.sql.node.AnonymousNode; import org.seasar.doma.jdbc.SqlNode; public class StandardCountCalculatingTransformer extends SimpleSqlNodeVisitor<SqlNode, Void> { protected bo...
domaframework/doma
doma-core/src/main/java/org/seasar/doma/internal/jdbc/dialect/StandardCountCalculatingTransformer.java
Java
apache-2.0
656
package marcin_szyszka.mobileseconndhand.models; /** * Created by marcianno on 2016-03-02. */ public class RegisterUserModel { public String Email; public String Password; public String ConfirmPassword; public RegisterUserModel(){ } }
MarcinSzyszka/MobileSecondHand
AndroidStudio_Android/MobileSeconndHand/app/src/main/java/marcin_szyszka/mobileseconndhand/models/RegisterUserModel.java
Java
apache-2.0
260