repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
ribertojunior/Sunshine-Version-2
app/src/main/java/com/example/android/sunshine/app/DetailActivity.java
1837
/* * Copyright (C) 2014 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...
apache-2.0
niranjanjee/geun
application/modules/default/views/layout/layout.php
21535
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <!DOCTYPE html> <html lang="en"> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <head> <meta charset="utf-8"> <!--[if IE]> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <![endif]--> <meta name="viewport" content="widt...
apache-2.0
zoomis/PLCNMS
JavaSource/dpnm/netmsuite/plc/manager/frontend/graph/TestGraphManager.java
435
package dpnm.netmsuite.plc.manager.frontend.graph; import dpnm.netmsuite.plc.manager.frontend.*; public class TestGraphManager { public static void main(String argc[]){ IFrontEndManager frontMgr = FrontEndManager.getInstance(); frontMgr.frontEndManagerstart(); IGraphManager graphMgr = GraphManag...
apache-2.0
lvuch/ui
app/volumes/index/controller.js
1589
import { alias } from '@ember/object/computed'; import { inject as service } from '@ember/service'; import Controller, { inject as controller } from '@ember/controller'; export default Controller.extend({ scope: service(), projectController: controller('authenticated.project'), queryParams: ['...
apache-2.0
emistoolbox/emistoolbox
libs/joriki/src/info/joriki/compression/huffman/HuffmanCode.java
7979
/* * Copyright 2002 Felix Pahl. All rights reserved. * Use is subject to license terms. */ package info.joriki.compression.huffman; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.List; import java.util.ArrayList; import java.util.SortedSet; import java.util.T...
apache-2.0
Lihuanghe/CMPPGate
src/test/java/com/zx/sms/codec/cmpp/TestSpeedError.java
5503
package com.zx.sms.codec.cmpp; import io.netty.buffer.ByteBuf; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; import io.netty.channel.embedded.EmbeddedChannel; import io.netty.handler.logging.LogLevel;...
apache-2.0
fugeritaetas/morozko-lib
java14-morozko/org.morozko.java.mod.cmd/src/org/morozko/java/mod/cmd/helpers/LineCMDOutput.java
1700
/***************************************************************** <copyright> Morozko Java Library org.morozko.java.mod.cmd Copyright (c) 2006 Morozko All rights reserved. This program and the accompanying materials are made available under the terms of the Apache License v2.0 which accompanies this di...
apache-2.0
songshu198907/LeetPractise
src/main/java/algorithm/leet_181_320/Word_Pattern_290.java
740
package algorithm.leet_181_320; import java.util.HashMap; /** * Created by songheng on 7/12/16. */ public class Word_Pattern_290 { public boolean wordPattern(String pattern, String str) { String[] words = str.split("\\s+"); if (words.length != pattern.length()) return false; HashMap<Char...
apache-2.0
deepakddixit/incubator-geode
geode-junit/src/main/java/org/apache/geode/cache/query/data/PositionPdx.java
5322
/* * 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 not ...
apache-2.0
WeTheInternet/collide
client/src/main/java/collide/junit/ArrayTests.java
4210
package collide.junit; import org.junit.Test; import com.google.gwt.reflect.client.strategy.ReflectionStrategy; import com.google.gwt.reflect.shared.GwtReflect; import java.lang.reflect.Array; import java.util.Arrays; /** * @author James X. Nelson (james@wetheinter.net, @james) */ @ReflectionStrategy(magicSuperty...
apache-2.0
serebro/mongo-php-driver-prototype
tests/standalone/server-executeBulkWrite-001.phpt
2073
--TEST-- MongoDB\Driver\Server::executeBulkWrite() --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = new MongoDB\Driver\Manager(STANDALONE); $server = $manager->executeQuery(NS, new MongoDB\Driver\Query(array(...
apache-2.0
undera/pwe
PWE/Auth/PWEUserAuthController.php
1698
<?php namespace PWE\Auth; use PWE\Core\PWECore; use PWE\Core\PWELogger; use PWE\Exceptions\HTTP5xxException; use PWE\Lib\Smarty\SmartyAssociative; use PWE\Modules\PWEModule; /** * Description of PWEUserAuthController * * @author undera */ abstract class PWEUserAuthController extends PWEModule implements SmartyAs...
apache-2.0
ernestp/consulo
platform/projectModel-api/src/com/intellij/openapi/roots/OrderEntryWithTracking.java
210
package com.intellij.openapi.roots; import org.jetbrains.annotations.Nullable; /** * @author VISTALL * @since 22.08.14 */ public interface OrderEntryWithTracking { @Nullable Object getEqualObject(); }
apache-2.0
oriley-me/crate
crate-sample/src/main/java/me/oriley/cratesample/loaders/AssetLoader.java
1281
/* * Copyright (C) 2016 Kane O'Riley * * 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 ...
apache-2.0
NALSS/Dashboarding
Codeplex.Dashboarding/DecadeVuMeter.xaml.cs
13536
//----------------------------------------------------------------------- // <copyright file="DecadeVuMeter.xaml.cs" company="David Black"> // Copyright 2008 David Black // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with th...
apache-2.0
juweiping/ocms
src/org/openuap/cms/survey/engine/support/DefaultSurveyAreaEngine.java
6768
/* * Copyright 2002-2006 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 * * Unless requi...
apache-2.0
erik-wramner/JmsTools
AqJmsProducer/src/main/java/name/wramner/jmstools/producer/AqJmsProducer.java
5110
/* * Copyright 2016 Erik Wramner. * * 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 agr...
apache-2.0
aspnet/AspNetCore
src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Language/RazorEngineBuilderExtensions.cs
2828
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Language.IntegrationTests; using Microsoft.AspNetCo...
apache-2.0
fellyvon/wasindoor
wasservice/src/com/waspring/wasservice/net/busii/MutiLoginHandler.java
1758
package com.waspring.wasservice.net.busii; import java.math.BigInteger; import java.sql.ResultSet; import com.aiyc.framework.annotation.Requestable; import com.aiyc.server.standalone.json.GsonFactory; import com.aiyc.server.standalone.net.IHandler; import com.aiyc.server.standalone.net.Response; import com.a...
apache-2.0
mikemccand/lucene-c-boost
src/c/org/apache/lucene/search/BooleanQueryShouldMustNot.cpp
11795
/* * 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 ...
apache-2.0
blademainer/common_utils
common_helper/src/main/java/com/xiongyingqi/util/xml/package-info.java
184
/** * * Miscellaneous utility classes for XML parsing and transformation, * such as error handlers that log warnings via Commons Logging. * */ package com.xiongyingqi.util.xml;
apache-2.0
blackducksoftware/hub-detect
hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/workflow/project/decisions/ArbitraryNameVersionDecision.java
2461
/** * hub-detect * * Copyright (C) 2019 Black Duck Software, Inc. * http://www.blackducksoftware.com/ * * 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 owners...
apache-2.0
commitd/krill
src/main/java/io/committed/krill/extraction/pdfbox/physical/Word.java
1547
package io.committed.krill.extraction.pdfbox.physical; import java.util.Iterator; import java.util.List; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** Represents a word in a {@link Line} of text. */ public class Word extends PositionedStyledContainer<Text> implements...
apache-2.0
orientechnologies/orientdb
tests/src/test/java/com/orientechnologies/orient/test/database/base/OrientMultiThreadTest.java
1103
/* * Copyright 2010-2016 OrientDB LTD (http://orientdb.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 by ...
apache-2.0
olw/cdn
milton-api/src/main/java/io/milton/annotations/ModifiedDate.java
1083
/* * Copyright 2013 McEvoy Software Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is dist...
apache-2.0
pebble2015/cpoi
ext/stub/java/util/TreeMap_DescendingKeySpliterator-stub.cpp
2591
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #include <java/util/TreeMap_DescendingKeySpliterator.hpp> extern void unimplemented_(const char16_t* name); java::util::TreeMap_DescendingKeySpliterator::TreeMap_DescendingKeySpliterator(const ::default_init_tag&) : s...
apache-2.0
Roommetro/Friendly.WPFStandardControls
Project/Test/ButtonSearchTest.cs
10814
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Codeer.Friendly.Dynamic; using Codeer.Friendly.Windows; using System.Diagnostics; using System.Windows; using System.Windows.Controls; using RM.Friendly.WPFStandardControls; using Codeer.Friendly.Windows.Grasp; using Codeer.Friendly; using Codeer....
apache-2.0
cezarfx/zorba
swig/python/tests/test07.2.py
2529
# Copyright 2006-2011 The FLWOR Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
apache-2.0
idnspro/IREST
siteadmin/includes/classes/class.Banner.php
4705
<?php class Banner{ var $dbObj; function Banner(){//class constructor $this->dbObj = new DB(); $this->dbObj->fun_db_connect(); } // Get Banner info array by id function fun_getBannerInfo($banner_id){ $sql = "SELECT * FROM " . TABLE_BANNER . " WHERE banner_id='".$banner_id."'"; $rs = $this->dbObj->cre...
apache-2.0
diogocezar/dctb-startistics
Api/vendor/davefx/phplot/phplottest/bars-stacked.php
771
<?php # $Id$ # PHPlot test: single row stacked bars should look like regular bars? require_once 'phplot.php'; $data = array( array('Jan', 40), array('Feb', 90), array('Mar', 50), array('Apr', 40), array('May', 75), array('Jun', 45), array('Jul', 40), array('Aug', 35), array('Sep', 50), array('Oct', 45), ar...
apache-2.0
rspieldenner/msl
core/src/main/javascript/entityauth/X509Store.js
3145
/** * Copyright (c) 2012-2015 Netflix, 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 requir...
apache-2.0
eldar258/edzabarov
new_chapter_105/src/test/java/ru/job4j/tdd/MaxMinTest.java
1937
package ru.job4j.tdd; import org.junit.Test; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; public class MaxMinTest { @Test public void whenMaxA...
apache-2.0
rushmin/product-mdm
modules/mobile-agents/android/jax-rs/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/PasswordPolicyBeanWrapper.java
1261
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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 require...
apache-2.0
GSTU/oop-examples
GamesLabs/2015/IT-22/Battle/Config.cs
698
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace battle { public class Config { public GameConfig PlayerConfig; public GameConfig AiConfig; public Color Bgcolor; public ...
apache-2.0
SMB-TEC/extended-objects
neo4j/src/test/java/com/buschmais/xo/neo4j/test/id/IdTest.java
1736
package com.buschmais.xo.neo4j.test.id; import com.buschmais.xo.api.CompositeObject; import com.buschmais.xo.api.XOManager; import com.buschmais.xo.api.bootstrap.XOUnit; import com.buschmais.xo.neo4j.test.AbstractNeo4jXOManagerTest; import com.buschmais.xo.neo4j.test.id.composite.A; import com.buschmais.xo.neo4j.test....
apache-2.0
TechWritingWhiz/indy-node
indy_node/test/pool_config/test_send_pool_config.py
1928
import pytest from indy_node.test.pool_config.helper import ensurePoolConfigSent, checkPoolConfigWritableSet, sendPoolConfig from stp_core.loop.eventually import eventually from plenum.test.pool_transactions.helper import disconnect_node_and_ensure_disconnected def test_send_pool_config_writes_false_force_false( ...
apache-2.0
srdo/storm
sql/storm-sql-core/src/test/org/apache/storm/sql/compiler/backends/trident/TestPlanCompiler.java
11584
/* * * * * 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...
apache-2.0
mlhartme/stool
src/test/java/net/oneandone/stool/kubernetes/EngineIT.java
6496
/* * Copyright 1&1 Internet AG, https://github.com/1and1/ * * 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 ap...
apache-2.0
pooi/Tuetue
app/src/main/java/tk/twpooi/tuetue/SelectInterestActivity.java
9764
package tk.twpooi.tuetue; import android.content.Intent; import android.graphics.Paint; import android.graphics.Rect; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.design.widget.Snackbar; import android.support.v4.content.ContextCompat; import android.support.v7...
apache-2.0
wangyixiaohuihui/spark2-annotation
sql/catalyst/src/main/scala/org/apache/spark/sql/Encoder.scala
3017
/* * 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...
apache-2.0
Authpartyio/Authparty
app/api/authparty/api.rb
3537
require 'rubygems' require 'bitcoin-cigs' require 'uri' class Authparty::API < Grape::API version 'v1', using: :path format :json BASE_API_URL = ENV['BASE_API_URL'] desc 'Authorize Scanned Interaction' post :authorize_login do address = params[:address] signature = params[:signature] mes...
apache-2.0
Esri/impact-summary-map-template-js
js/ShareDialog.js
17645
define([ "dojo/Evented", "dojo/_base/declare", "dojo/_base/lang", "dojo/string", "dojo/has", "esri/kernel", "dijit/_WidgetBase", "dijit/a11yclick", "dijit/_TemplatedMixin", "dojo/on", // load template "dojo/text!application/dijit/templates/ShareDialog.html", "dojo/i18...
apache-2.0
iot-salzburg/self-driving-slotcar
computer_vision/main.py
8074
import cv2 import numpy as np from matplotlib import pyplot as plt from os.path import exists, join from os import makedirs import pickle image_selection = np.array([0, 0], dtype='float32') OUTPUT_SIZE = [6000, 9000] def remove_fisheye(img): K = np.array([[1001.7792, 0., 962.3616], [0., 1012.72...
apache-2.0
zhcet-amu/zhcet-web
src/main/java/amu/zhcet/auth/password/change/PasswordChangeService.java
1684
package amu.zhcet.auth.password.change; import amu.zhcet.auth.AuthManager; import amu.zhcet.auth.password.PasswordValidationException; import amu.zhcet.auth.password.PasswordValidator; import amu.zhcet.auth.password.PasswordChange; import amu.zhcet.core.error.ErrorUtils; import amu.zhcet.data.user.User; import lombok....
apache-2.0
brettwooldridge/buck
test/com/facebook/buck/jvm/java/Jsr199JavacIntegrationTest.java
14841
/* * Copyright 2013-present Facebook, 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...
apache-2.0
JayStGelais/jrpg-engine
jrpg-engine-core/src/main/java/com/moonlightpixels/jrpg/combat/internal/BattleInfo.java
935
package com.moonlightpixels.jrpg.combat.internal; import com.moonlightpixels.jrpg.combat.Combatant; import com.moonlightpixels.jrpg.combat.render.BattleBackground; import lombok.Builder; import lombok.Data; import lombok.NonNull; import lombok.Singular; import java.util.List; import java.util.Optional; @Data public ...
apache-2.0
pmarks-net/usbnetpower8800
usbnetpower8800.py
3203
#!/usr/bin/env python # Copyright (C) 2011 Paul Marks http://www.pmarks.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 requi...
apache-2.0
mqprichard/gasp-apns-server
src/main/java/com/cloudbees/gasp/services/Config.java
2506
/* * Copyright (c) 2013 Mark Prichard, CloudBees * * 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 ...
apache-2.0
michidk/SimpleTwitchHelper
SimpleTwitchHelper/TMIApi/TMIResponse.cs
321
using Newtonsoft.Json; using TwitchCSharp.Models; namespace SimpleTwitchHelper.TMIApi { public class TMIResponse : TwitchResponse { [JsonProperty("chatter_count")] public long ChatterCount { get; set; } [JsonProperty("chatters")] public Chatters Chatters { get; set; } } }
apache-2.0
ldimaggi/almighty-core
controller/search_spaces_blackbox_test.go
6260
package controller_test import ( "fmt" "reflect" "strconv" "strings" "testing" "github.com/almighty/almighty-core/app" "github.com/almighty/almighty-core/app/test" "github.com/almighty/almighty-core/application" . "github.com/almighty/almighty-core/controller" "github.com/almighty/almighty-core/gormapplicat...
apache-2.0
kiritbasu/datacollector
container/src/test/java/com/streamsets/datacollector/store/impl/TestFilePipelineStoreTask.java
16393
/** * 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...
apache-2.0
wso2/carbon-identity-framework
components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/config/loader/UIBasedConfigurationLoader.java
15437
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses 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/li...
apache-2.0
aramisjohnson/rook
pkg/cephmgr/client/test/image.go
1188
/* Copyright 2016 The Rook 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 applicable law or agreed to ...
apache-2.0
vikene/parallax
myjava.js
23266
/*! jsAnim: Powerful javascript animation -------------------------------------------- Copyright 2009 Kevin Dolan -http://www.thekevindolan.com Code licensed under the MIT license -See license.txt v0.2 */ //These vars are used to hold all jsAnimManagers var jsAnimManagers = new Array(); var jsAnimManagerId ...
apache-2.0
inversoft/passport-java-client
src/main/java/com/inversoft/passport/domain/Group.java
2054
/* * Copyright (c) 2017-2018, Inversoft 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...
apache-2.0
aajjbb/contest-files
SPOJPL/CobbledStreets.cpp
1642
#include <iostream> #include <vector> #include <algorithm> #include <stdio.h> using namespace std; const int MOD = 1000000007; int test, p, n, m; struct edge { int a, b, c; edge(){} edge(int _a, int _b, int _c): a(_a), b(_b), c(_c){} bool operator<(const edge& e) const { return c < e.c...
apache-2.0
Kiryuumaru/IPCS
IPCS/Extension.cs
1291
using System; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace IPCS { public static class Extension { public static T[] SubArray<T>(this T[] data, int index, int length) { T[] result = new T[length]; Array.Copy(data, index, result, 0, len...
apache-2.0
AyatsujiTsukasa/unitystreamingcaption
unitystreamingcaption.go
3684
// unitygooglelivecaption.go // intended to be used in unity project // modification of livecaption.go found in https://github.com/GoogleCloudPlatform/golang-samples.git // // process requires google service accounts credential file's path // you can get one in your google cloud console // -----------------------------...
apache-2.0
jmaoito/happyCoding
algorithm/sqrt.cpp
847
/*************** LeetCode sqrt(x) Implement int sqrt(int x). Compute and return the square root of x. Discussion: Divide and Conquer. uses binary search. since the return type is integer, the return value should be smaller or equal than the real sqrt(x). time complexity O(logn), space complexity O...
apache-2.0
rene-justin-dado/graphql-nerd-cache
migrations/20170211214816_hero.js
272
exports.up = function(knex, Promise) { return knex.schema.createTable('hero', (table) => { table.increments('id').primary() table.string('name') table.string('race') }) }; exports.down = function(knex, Promise) { return knex.schema.dropTable('hero') };
apache-2.0
syntelos/gwtcc-gwtgl
src/com/googlecode/gwtgl/client/WebGLTexture.java
978
/** * Copyright 2009-2010 Sönke Sothmann, Steffen Schäfer and others * * 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...
apache-2.0
liuguogen/Ecstore
app/pam/lib/account.php
4051
<?php /** * ShopEx licence * * @copyright Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn) * @license http://ecos.shopex.cn/ ShopEx License */ /** * 该类是所有登录方式验证后写日志和SESSION的类 */ class pam_account{ /** * 构造方法 * @param string $type 设置登录体系类型 shopadmin,member等 */ function __construct(...
apache-2.0
gosu-lang/old-gosu-repo
gosu-core-api/src/main/java/gw/fs/jar/IJarFileDirectory.java
320
/* * Copyright 2013 Guidewire Software, Inc. */ package gw.fs.jar; import gw.fs.IDirectory; import gw.lang.UnstableAPI; @UnstableAPI public interface IJarFileDirectory extends IDirectory { JarEntryDirectoryImpl getOrCreateDirectory(String relativeName); JarEntryFileImpl getOrCreateFile(String relativeName); }
apache-2.0
asakusafw/asakusafw
operator/core/src/main/java/com/asakusafw/operator/util/JavadocHelper.java
10312
/** * Copyright 2011-2021 Asakusa Framework Team. * * 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...
apache-2.0
b002368/chef-repo
spec/unit/node_map_spec.rb
6120
# # Author:: Lamont Granquist (<lamont@chef.io>) # Copyright:: Copyright 2014-2016, Chef Software, Inc. # License:: Apache License, Version 2.0 # # 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 Lic...
apache-2.0
gmind7/java8-training
src/main/java/io/gmind/java8/model/Person.java
307
package io.gmind.java8.model; import lombok.Data; /** * Created by gmind on 2014-06-18. */ @Data public class Person { String firstName; String lastName; public Person() { } public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } }
apache-2.0
jamaxba/jamax-util
jamax-rest/src/main/java/ba/jamax/util/rest/util/GenericUtils.java
719
package ba.jamax.util.rest.util; import java.lang.reflect.Method; import org.apache.commons.lang.WordUtils; public class GenericUtils<T> { public Method getGetter(Class<T> entityClass, String key) { Method m = null; try { try { m = entityClass.getMethod(constructGetter(key)); } catch (NoSuchMethodEx...
apache-2.0
drud/ddev
pkg/ddevapp/provider.go
11404
package ddevapp import ( "github.com/drud/ddev/pkg/output" "os" "path/filepath" "fmt" "github.com/drud/ddev/pkg/fileutil" "github.com/drud/ddev/pkg/util" "gopkg.in/yaml.v2" ) // ProviderCommand defines the shell command to be run for one of the commands (db pull, etc.) type ProviderCommand struct { Command...
apache-2.0
torrances/swtk-commons
commons-dict-wordnet-indexbyid/src/main/java/org/swtk/commons/dict/wordnet/indexbyid/instance/p0/p7/WordnetNounIndexIdInstance0715.java
12851
package org.swtk.commons.dict.wordnet.indexbyid.instance.p0.p7; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.TreeMap; import org.swtk.common.dict.dto.wordnet.IndexNoun; import com.trimc.blogger.commons.utils.GsonUtils; public final class WordnetNounIndexIdInstance0...
apache-2.0
firebase/snippets-web
auth-next/auth-state-persistence.js
1667
// [SNIPPET_REGISTRY disabled] // [SNIPPETS_SEPARATION enabled] function setPersistenceSession() { const email = "..."; const password = "..."; // [START auth_set_persistence_session] const { getAuth, setPersistence, signInWithEmailAndPassword, browserSessionPersistence } = require("firebase/auth"); const ...
apache-2.0
ArnaudRabeony/SiteMarchand
model/taille.php
1294
<?php require_once(dirname(__FILE__) . '/../connection.php'); function getIdTailleByName($db, $name) { $req = $db->prepare('select idTaille from taille where nomTaille = :nomTaille'); $req->bindValue(':nomTaille', $name); $req->execute(); $res = $req->fetch(PDO::FETCH_NUM); return $res[0]; } functi...
apache-2.0
wwitzel3/awx
awx/main/management/commands/cleanup_activitystream.py
2751
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Python import datetime import logging import six # Django from django.core.management.base import BaseCommand from django.utils.timezone import now # AWX from awx.main.models import ActivityStream class Command(BaseCommand): ''' Management comman...
apache-2.0
shibing624/similarity
src/main/java/org/xm/similarity/word/clin/CilinCode.java
2145
package org.xm.similarity.word.clin; /** * 哈工大词林扩展版规则编码表 * 表中编码位从左到右顺序排列,其中,第8位对应的标记位为“=”、“#”和“@”三种符号之一。其中“=”代表常见的“同义”关系, * “#”代表词语之间的相关关系,“@”则代表词语自我封闭的独立性质,它在词典中既没有同义词,也没有相关词。 * * @author xuming */ public class CilinCode { public static double[] WEIGHT = new double[]{1.2, 1.2, 1.0, 1.0, 0.8, 0.4}; publi...
apache-2.0
bozimmerman/CoffeeMud
com/planet_ink/coffee_mud/Abilities/Specializations/Familiarity_Hammer.java
1896
package com.planet_ink.coffee_mud.Abilities.Specializations; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*...
apache-2.0
aj-jaswanth/gocd
server/webapp/WEB-INF/rails.new/spec/new_javascripts/views/agents/agents_widget_spec.js
11206
/* * Copyright 2016 ThoughtWorks, 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 agr...
apache-2.0
JavaUAM2016/PracticasOCA
Practica4/fesrton/javaApp4/src/mx/edu/uam/practica4/factory/SystemaFactory.java
945
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mx.edu.uam.practica4.factory; /** * * @author ferso */ public abstract class SystemaFactory { public static Abastr...
apache-2.0
yukuai518/gobblin
gobblin-data-management/src/main/java/gobblin/data/management/partition/StaticFileSet.java
688
package gobblin.data.management.partition; import java.io.IOException; import java.util.Collection; import java.util.List; import gobblin.data.management.copy.CopyEntity; import gobblin.dataset.Dataset; /** * A non-lazy {@link FileSet} where the copy entities are a static, eagerly computed list of {@link CopyEntit...
apache-2.0
pegasus-isi/pegasus
src/edu/isi/pegasus/planner/catalog/classes/CatalogEntryJsonDeserializer.java
1314
/* * * Copyright 2007-2008 University Of Southern California * * 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 re...
apache-2.0
sasquatch-mc/zelo
src/org/zelo/ast/expression/essential_functions/LowerThan.java
99
package org.zelo.ast.expression.essential_functions; public class LowerThan extends Essential { }
apache-2.0
veritone/veritone-sdk
packages/veritone-react-common/src/components/FormBuilder/helpers.test.js
2906
import * as formHelpers from './helpers'; describe('Validate empty helper', () => { it('Should return error if required but no data', () => { expect(formHelpers.validateEmpty({ data: { firstName: '' }, settings: { name: 'firstName', required: true } })) .toBe('FIRSTNAME is required') }) ...
apache-2.0
qwerty4030/elasticsearch
test/framework/src/main/java/org/elasticsearch/test/AbstractQueryTestCase.java
53333
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
apache-2.0
webadvancedservicescom/magento
app/code/Magento/Checkout/data/checkout_setup/data-install-2.0.0.php
22183
<?php /** * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) */ /* @var $installer \Magento\Checkout\Model\Resource\Setup */ $installer = $this; $installer->startSetup(); $setup = $installer->getConnection(); $select = $setup->select()->from( $installer->getTable('core_config_da...
apache-2.0
wido/cloudstack
api/src/main/java/org/apache/cloudstack/api/command/admin/vm/MigrateVirtualMachineWithVolumeCmd.java
8018
// 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...
apache-2.0
wmedvede/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-backend/src/main/java/org/kie/workbench/common/stunner/bpmn/backend/converters/fromstunner/properties/ThrowEventPropertyWriter.java
2929
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * 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...
apache-2.0
leszekuchacz/SPS
app/AppKernel.php
1656
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
apache-2.0
mz213310111/ite220
first-game-cont-cont-cont_cont/js/menu.js
928
var menuState = { create: function(){ game.add.image(0,0,'background'); var nameLabel = game.add.text(game.width/2, -50, 'Super Coin Box', {font: '50px Arial', fill: '#ffffff'}); nameLabel.anchor.setTo(0.5, 0.5); game.add.tween(nameLabel).to({y: 80}, 1000).easing(Phaser.Easing.Bounce.Out).start(); var scor...
apache-2.0
lukehutch/gribbit
src/gribbit/model/field/annotation/NoTrim.java
1160
/** * This file is part of the Gribbit Web Framework. * * https://github.com/lukehutch/gribbit * * @author Luke Hutchison * * -- * * @license Apache 2.0 * * Copyright 2015 Luke Hutchison * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in com...
apache-2.0
cui-liqiang/rest-rpc-play
src/main/scala/com/thoughtworks/microbuilder/play/MainController.scala
2528
package com.thoughtworks.microbuilder.play import java.io.ByteArrayOutputStream import jsonStream.JsonStream import jsonStream.io.PrettyTextPrinter import jsonStream.rpc.{IJsonResponseHandler, IJsonService} import com.thoughtworks.microbuilder.core.IRouteConfiguration import haxe.io.Output import play.api.http.Writea...
apache-2.0
melvinodsa/odsatransform
Documents/Documentation/html/odsautil_8h.js
1958
var odsautil_8h = [ [ "input_data_structure", "odsautil_8h.html#structinput__data__structure", [ [ "index_jump_map", "odsautil_8h.html#a9a800523656d0d0b320e3b227085205b", null ], [ "index_output_map", "odsautil_8h.html#af69b768bd4f930e534e5fd697c4fec8d", null ], [ "input_text", "odsautil_8h.html#a...
apache-2.0
open-telemetry/opentelemetry-go
sdk/resource/os_windows_test.go
1901
// Copyright The OpenTelemetry 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 agre...
apache-2.0
BitGo/BitGoJS
modules/utxo-lib/src/bitgo/wallet/WalletUnspentSigner.ts
2035
import * as bip32 from 'bip32'; import { DerivedWalletKeys, eqPublicKey, RootWalletKeys, WalletKeys } from './WalletKeys'; import { Triple } from '../types'; export class WalletUnspentSigner<T extends WalletKeys> { public readonly walletKeys: T; static from( walletKeys: RootWalletKeys, signer: bip32.BIP3...
apache-2.0
FG-SE/iviewx-java
src/main/java/de/unihannover/se/iviewxjava/iviewxapi/SpeedModeStruct.java
2003
package de.unihannover.se.iviewxjava.iviewxapi; import com.sun.jna.Pointer; import com.sun.jna.Structure; import java.util.Arrays; import java.util.List; /** * @struct SpeedModeStruct <br> * <br> * @brief This struct provides information about the speed modes used and supported by the connected iView eye tracking se...
apache-2.0
E-System/common-lib
src/main/java/com/es/lib/common/number/NumberFormatter.java
3086
package com.es.lib.common.number; import com.es.lib.common.Constant; import lombok.AccessLevel; import lombok.RequiredArgsConstructor; import org.apache.commons.lang3.StringUtils; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; @RequiredArgsConstructor(access = AccessLevel.PACKAGE) public clas...
apache-2.0
Adriano72/BIHWR2015
Resources/iphone/alloy/widgets/com.mp5systems.rippleeffect/styles/widget.js
1606
function WPATH(s) { var index = s.lastIndexOf("/"); var path = -1 === index ? "com.mp5systems.rippleeffect/" + s : s.substring(0, index) + "/com.mp5systems.rippleeffect/" + s.substring(index + 1); return path; } module.exports = [ { isApi: true, priority: 1101.0005999999998, key: "Label", s...
apache-2.0
hairlun/customer-visit-web
src/com/jude/dao/TaskDaoImpl.java
6653
package com.jude.dao; import com.jude.dao.VisitRecordDaoImpl.VisitRecordRowMapper; import com.jude.entity.Customer; import com.jude.entity.CustomerManager; import com.jude.entity.RecordDetail; import com.jude.entity.Task; import com.jude.entity.VisitRecord; import com.jude.util.IdUtil; import com.jude.util.Pa...
apache-2.0
GoogleCloudPlatform/ubbagent
pipeline/builder/builder_test.go
2503
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
couchbaselabs/ep-engine
blackhole-kvstore/blackhole.hh
2341
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef BLACKHOLE_KVSTORE_H #define BLACKHOLE_KVSTORE_H 1 #include "kvstore.hh" #include "item.hh" #include "stats.hh" #include "configuration.hh" class EventuallyPersistentEngine; class EPStats; class MCKVStoreTestEnvironment; class Memc...
apache-2.0
rish1988/spring-tutorials
spring-tutorial-25/src/com/caveofprogramming/spring/Logger.java
829
package com.caveofprogramming.spring; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class Logger { @Autowired(required=false) private ConsoleWriter consoleW...
apache-2.0
rossella/neutron
tools/check_i18n.py
5358
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
apache-2.0
lvdongbing/python-bileanclient
bileanclient/openstack/common/cliutils.py
8038
# Copyright 2012 Red Hat, 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 agre...
apache-2.0