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 |
|---|---|---|---|---|---|
/**
*
* ThingBench - Things and Devices Simulator
*
* http://github.com/frapu78/thingbench
*
* @author Frank Puhlmann
*
*/
package thingbench;
import java.util.HashMap;
import net.frapu.code.visualization.ProcessNode;
/**
* This class provides an operation on a thing.
*
* @author fpu
*/
public abstract c... | frapu78/thingbench | src/thingbench/ThingOperation.java | Java | apache-2.0 | 1,167 |
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "context"
//
type WorkbookFunctionsTanRequestBuilder struct{ BaseRequestBuilder }
// Tan action undocumented
func (b *WorkbookFunctionsRequestBuilder) Tan(reqObj *WorkbookFunctionsTanRequestParameter) *WorkbookFunctionsTanRequestBuilder {
bb :... | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go | GO | apache-2.0 | 978 |
import optparse
import pickle
#converts urls to wiki_id
parser = optparse.OptionParser()
parser.add_option('-i','--input', dest = 'input_file', help = 'input_file')
parser.add_option('-o','--output', dest = 'output_file', help = 'output_file')
(options, args) = parser.parse_args()
if options.input_file is None:
... | MultimediaSemantics/entity2vec | scripts/old/page_links_to_edge_list_wiki.py | Python | apache-2.0 | 3,039 |
/*
* #%L
* fujion
* %%
* Copyright (C) 2021 Fujion Framework
* %%
* 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 requ... | fujion/fujion-framework | fujion-highcharts/src/main/java/org/fujion/highcharts/PlotOptions.java | Java | apache-2.0 | 15,646 |
describe('app.components.SaveProfileModal', function() {
beforeEach(function () {
module('app.components', 'ui.bootstrap', 'gettext');
});
describe('service', function () {
var callbackObject;
var saveSpy;
var doNotSaveSpy;
var cancelSpy;
beforeEach(function () {
bard.inject('SaveP... | dtaylor113/manageiq-ui-self_service | tests/profiles/save-profile-modal-service.spec.js | JavaScript | apache-2.0 | 1,584 |
package grok.core;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class Image {
@JsonCreator
public static Image of(@JsonProperty("id") String id,
@JsonProperty("... | achaphiv/grok-core | grok-core-api/src/main/java/grok/core/Image.java | Java | apache-2.0 | 1,076 |
package com.mgaetan89.showsrage.fragment;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito... | phaseburn/ShowsRage | app/src/test/java/com/mgaetan89/showsrage/fragment/ShowsFragment_OnQueryTextChangeTest.java | Java | apache-2.0 | 1,137 |
# frozen_string_literal: true
class CreateSnapshotAttributeValues < ActiveRecord::Migration[4.2]
def change
create_table :snapshot_attribute_values do |t|
t.integer :snapshot_id, null: false
t.integer :attribute_value_id, null: false
t.timestamps null: false
end
end
end
| ausaccessfed/validator-service | db/migrate/20160508233712_create_snapshot_attribute_values.rb | Ruby | apache-2.0 | 302 |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Yo... | zhangzhehust/htcondor | src/condor_status.V6/status.cpp | C++ | apache-2.0 | 43,130 |
/*
* 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 entities;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax... | MaartenDeWeerdt/TomEnJerry | TomEnJerry-ejb/src/java/entities/Product.java | Java | apache-2.0 | 4,620 |
/*
* Copyright (C) 2018 The Dagger 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 ag... | cgruber/dagger | java/dagger/internal/codegen/validation/ComponentDescriptorValidator.java | Java | apache-2.0 | 22,500 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ungarc0r
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void M... | manuth/ungarc0r | GameArchiver/Program.cs | C# | apache-2.0 | 511 |
import errno
import os
import pwd
import shutil
import sys
from jinja2 import Environment, FileSystemLoader
class TutorialEnv:
LOCAL_MACHINE = ("Local Machine Condor Pool", "submit-host")
USC_HPCC_CLUSTER = ("USC HPCC Cluster", "usc-hpcc")
OSG_FROM_ISI = ("OSG from ISI submit node", "osg")
XSEDE_BOSC... | pegasus-isi/pegasus | packages/pegasus-python/src/Pegasus/init-old.py | Python | apache-2.0 | 14,973 |
// Copyright 2022 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 in ... | googleads/google-ads-dotnet | src/V10/Services/BiddingDataExclusionServiceResourceNames.g.cs | C# | apache-2.0 | 1,806 |
/*
* 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-route53/src/main/java/com/amazonaws/services/route53/model/transform/GetHealthCheckLastFailureReasonResultStaxUnmarshaller.java | Java | apache-2.0 | 3,038 |
/*
* 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 ... | vsisko/incubator-ignite | modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheAbstractJdbcStore.java | Java | apache-2.0 | 62,015 |
connection = ActiveRecord::Base.connection
puts 'adding govt data'
%w[states districts zip_codes districts_zip_codes legislators].each do |table|
puts "loading #{table}"
connection.execute(IO.read("db/seed_data/#{table}.sql"))
end
%w[states districts zip_codes legislators].each do |table|
puts "updating table ... | MayOneUS/mayday-2.0-backend | db/seeds.rb | Ruby | apache-2.0 | 532 |
<?php
/**
* Activity
*
* PHP version 5
*
* @category Class
* @package ultracart\v2
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* UltraCart Rest API V2
*
* UltraCart REST API Version 2
*
* OpenAPI spec version: 2.0.0
* Contact: support@ultracart.com... | UltraCart/rest_api_v2_sdk_php | lib/models/Activity.php | PHP | apache-2.0 | 9,144 |
using System;
using System.Linq.Expressions;
namespace storagecore.EntityFrameworkCore.Query
{
public class Filter<TEntity>
{
public Filter(Expression<Func<TEntity, bool>> expression)
{
Expression = expression;
}
public Expression<Func<TEntity, bool>> Expression { ... | FlorinskiyDI/coremanage | coremanage/storagecore.EntityFrameworkCore/Query/Filter.cs | C# | apache-2.0 | 1,222 |
package de.jungblut.math.squashing;
import de.jungblut.math.DoubleMatrix;
import de.jungblut.math.MathUtils;
/**
* Logistic error function implementation.
*
* @author thomas.jungblut
*
*/
public final class LogisticErrorFunction implements ErrorFunction {
@Override
public double calculateError(DoubleMatri... | sourcewarehouse/thomasjungblut | src/de/jungblut/math/squashing/LogisticErrorFunction.java | Java | apache-2.0 | 574 |
"""
Django settings for sparta project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | sureshprasanna70/the-spartan-blog | sparta/settings.py | Python | apache-2.0 | 2,223 |
namespace CJia.PIVAS.App.UI
{
partial class BatchIllfieldLabelCollectReport
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | leborety/CJia | CJia.PIVAS.JiuJiang/CJia.PIVAS.App/UI/BatchIllfieldLabelCollectReport.designer.cs | C# | apache-2.0 | 37,992 |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2016 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package ti.modules.titanium.geolocation;
import java.util.ArrayList;
import java.... | ashcoding/titanium_mobile | android/modules/geolocation/src/java/ti/modules/titanium/geolocation/GeolocationModule.java | Java | apache-2.0 | 36,967 |
package repomodel
import (
"github.com/kopia/kopia/repo/content"
"github.com/kopia/kopia/repo/manifest"
)
// RepositorySession models the behavior of a single session in an repository.
type RepositorySession struct {
OpenRepo *OpenRepository
WrittenContents ContentSet
WrittenManifests ManifestSet
}
// WriteCo... | kopia/kopia | tests/repository_stress_test/repomodel/repository_session_model.go | GO | apache-2.0 | 1,400 |
using EPiServer.Core;
namespace EPiServer.SocialAlloy.Web.Social.Models
{
/// <summary>
/// The LikeButtonBlockViewModel class represents the model that will be used to
/// provide data to the Like button block frontend view.
/// </summary>
public class LikeButtonBlockViewModel
{
/// <... | episerver/SocialAlloy | src/EPiServer.SocialAlloy.Web/Social/Models/Ratings/LikeButtonBlockViewModel.cs | C# | apache-2.0 | 987 |
package org.xmlcml.ami.visitor;
import java.io.File;
import java.util.List;
import org.apache.commons.io.FilenameUtils;
import org.apache.log4j.Logger;
import org.xmlcml.ami.util.AMIUtil;
import org.xmlcml.ami.visitable.VisitableInput;
/** manages the output.
*
* Decides whether to create files or dir... | tarrow/ami | src/main/java/org/xmlcml/ami/visitor/VisitorOutput.java | Java | apache-2.0 | 3,654 |
/*
Copyright 2006 Jerry Huxtable
Copyright 2009 Martin Davis
Copyright 2012 Antoine Gourlay
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
... | ebocher/jproj | src/main/java/org/jproj/ProjCoordinate.java | Java | apache-2.0 | 14,438 |
package interviews;
public class Yahoo {
}
Run Length Encoding for byte array
Input byte array [10, 10, 10, 255, 255, 0, 10] ==> output byte array [3, 10, 2, 255, 1, 0, 1, 10]
Class ByteArrayEncodeDecode {
public byte[] encodeByteArray(byte[] input) {
int n = input.length;
if (n == 0) return new... | rezaur86/Coding-competitions | Java/interviews/Yahoo.java | Java | apache-2.0 | 1,011 |
/*******************************************************************\
Module: Type Naming for C
Author: Daniel Kroening, kroening@cs.cmu.edu
\*******************************************************************/
#include <ctype.h>
#include <i2string.h>
#include <std_types.h>
#include "type2name.h"
/**************... | ssvlab/esbmc-gpu | ansi-c/type2name.cpp | C++ | apache-2.0 | 3,566 |
using System;
namespace ProSecuritiesTrading.MOEX.FIX.Base.Field
{
public class PartyID
{
public const int Tag = 448;
public static readonly byte[] TagBytes;
static PartyID()
{
TagBytes = new byte[3];
TagBytes[0] = 52;
TagBytes[1] = 52;
... | AlexeyLA0509/PSTTrader | src/ProSecuritiesTrading.MOEX.FIX/Base/Field/PartyID.cs | C# | apache-2.0 | 366 |
/*
* Copyright 2013-2017 Grzegorz Ligas <ligasgr@gmail.com> and other contributors
* (see the CONTRIBUTORS file).
*
* 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... | ligasgr/intellij-xquery | gen/org/intellij/xquery/psi/XQueryContextItemDecl.java | Java | apache-2.0 | 1,132 |
/*
* Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences.
*
* This file is part of Duckling 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 L... | duckling-falcon/vmt | src/main/java/net/duckling/vmt/domain/HttpGet.java | Java | apache-2.0 | 1,845 |
/*
* Copyright 2011 Jon S Akhtar (Sylvanaar)
*
* 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... | consulo/consulo-lua | src/main/java/com/sylvanaar/idea/Lua/lang/psi/impl/symbols/LuaUpvalueIdentifierImpl.java | Java | apache-2.0 | 1,415 |
<?php
namespace ContainerFelbUiK;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getForm_TypeExtension_Form_Valid... | cloudfoundry/php-buildpack | fixtures/symfony_5_local_deps/var/cache/dev/ContainerFelbUiK/getForm_TypeExtension_Form_ValidatorService.php | PHP | apache-2.0 | 1,296 |
package com.tle.configmanager;
import com.dytech.gui.ComponentHelper;
import com.thoughtworks.xstream.XStream;
import com.tle.common.Check;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.Buffer... | equella/Equella | Source/Tools/ConfigManager/src/com/tle/configmanager/ConfigLauncherGUI.java | Java | apache-2.0 | 13,989 |
<?php
final class DrydockLeaseViewController extends DrydockLeaseController {
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$id = $request->getURIData('id');
$lease = id(new DrydockLeaseQuery())
->setViewer($viewer)
->withIDs(array($id))
->n... | librewiki/phabricator | src/applications/drydock/controller/DrydockLeaseViewController.php | PHP | apache-2.0 | 4,366 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Text;
namespace Microsoft.Web.Utility.PInvoke.Fusion
{
[ComImport, InterfaceType(ComI... | aspnet/AspNetCore | src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/IIS-Common/Managed/NativeMethods/Fusion.cs | C# | apache-2.0 | 4,421 |
package com.krealid.starter.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
imp... | max02100/paroisse | ParseStarterProject/src/main/java/com/krealid/starter/adapters/ActuExpendedAdapter.java | Java | apache-2.0 | 4,384 |
//
// PBObjcWrapper.h
// AppBootstrap
//
// Created by Yaming on 10/31/14.
// Copyright (c) 2014 whosbean.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifdef __cplusplus
#import <google/protobuf/message.h>
#endif
@protocol PBObjcWrapper <NSObject>
-(instancetype) initWithProtocolData:(NSData*)... | yamingd/AppBootstrap-iOS | AppBootstrap/Protobuf/PBObjcWrapper.hh | C++ | apache-2.0 | 493 |
package storage
import (
"io/ioutil"
"log"
"os"
"path/filepath"
"testing"
)
func TestSetBinlogPosition(t *testing.T) {
dir, err := ioutil.TempDir("", "example")
if err != nil {
log.Fatal(err)
}
defer os.RemoveAll(dir)
file := filepath.Join(dir, "temp.db")
store := &BoltDBStore{}
store.Open(file)
stor... | simongui/fastlane | storage/boltdb_store_test.go | GO | apache-2.0 | 568 |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBigPicture.h"
#include "SkData.h"
#include "SkDrawable.h"
#include "SkLayerInfo.h"
#include "SkPictureRecorder.h"
#include "SkPictureUtils.h"
#include "SkRecord.h"... | qrealka/skia-hc | src/core/SkPictureRecorder.cpp | C++ | apache-2.0 | 7,381 |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
namespace gov.va.medora.mdo.dao
{
public interface IEncounterDao
{
Appointment[] getAppointments();
Appointment[] getAppointments(string pid);
Appointment[] getFutureAppointments();
... | VHAINNOVATIONS/RAPTOR | OtherComponents/MDWSvistalayer/MDWS Source/mdo/mdo/src/mdo/dao/IEncounterDao.cs | C# | apache-2.0 | 4,557 |
/*
* Copyright (c) 2017 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | wangcy6/storm_app | frame/c++/webrtc-master/sdk/android/src/java/org/webrtc/VP8Decoder.java | Java | apache-2.0 | 645 |
/*
* Copyright (C) 2013 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... | slightfoot/android-kioskime | src/com/android/inputmethod/keyboard/internal/GestureTrailsPreview.java | Java | apache-2.0 | 7,627 |
using System.Collections.Generic;
using Amazon.DynamoDBv2.Model;
using AwsTools;
using IndexBackend;
namespace SlideshowCreator.AwsAccess
{
class DynamoDbInsert
{
public const int BATCH_SIZE = 25;
public static Dictionary<string, List<WriteRequest>> GetBatchInserts<T>(List<T> pocoModels) wher... | timg456789/SlideshowCreator | SlideshowCreator/SlideshowCreator/AwsAccess/DynamoDbInsert.cs | C# | apache-2.0 | 879 |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | googleapis/google-api-java-client-services | clients/google-api-services-dialogflow/v3beta1/1.31.0/com/google/api/services/dialogflow/v3beta1/model/GoogleCloudDialogflowV2ImportConversationDataOperationMetadata.java | Java | apache-2.0 | 4,520 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Windows.Web.Syndication;
namespace DncShowcaseHub.DataModel
{
class FeedItemIterator
{
private SyndicationFeed feed;
private int index;
public F... | dotnetcurry/winrt-81-hub-control | DncShowcaseHub/DncShowcaseHub/DataModel/FeedItemIterator.cs | C# | apache-2.0 | 3,497 |
<?php
namespace db2eav\Classes;
class Value extends ValueBase {
public function __construct(){
}
public function __destruct(){
}
} | arhouati/DB2EAV | src/db2eav/Classes/Value.php | PHP | apache-2.0 | 156 |
package com.xiaochen.progressroundbutton;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import androi... | Ernest-su/ProgressRoundButton | library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java | Java | apache-2.0 | 23,449 |
######################################################################
# tc_divmod.rb
#
# Test case for the Bignum#divmod instance method.
######################################################################
require 'test/unit'
class TC_Bignum_Divmod_InstanceMethod < Test::Unit::TestCase
def setup
@num_int ... | google-code/android-scripting | jruby/src/test/externals/ruby_test/test/core/Bignum/instance/tc_divmod.rb | Ruby | apache-2.0 | 1,607 |
/*
* Copyright 2017 Crown Copyright
*
* 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... | gchq/stroom | stroom-security/stroom-security-identity/src/main/java/stroom/security/identity/authenticate/AuthenticateModule.java | Java | apache-2.0 | 1,110 |
<?php
namespace DCarbone\PHPFHIRGenerated\STU3\FHIRElement;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyright:
*
* C... | dcarbone/php-fhir-generated | src/DCarbone/PHPFHIRGenerated/STU3/FHIRElement/FHIRMeasmntPrinciple.php | PHP | apache-2.0 | 11,892 |
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reactive;
using Xamarin.Forms;
using RxObservable = System.Reactive.Linq.Observable;
using System.Reactive.Linq;
namespace RxApp.XamarinForms
{
public static class Bindings
{
public static IDisposable BindTo(
thi... | bordoley/RxApp | RxApp.XamarinForms/Bindings.cs | C# | apache-2.0 | 4,570 |
/*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 5hk/webida-client | apps/dashboard/src/js/main_bak.js | JavaScript | apache-2.0 | 22,004 |
package com.example.android.bluetoothlegatt.ble_service;
/**
* @author Sopheak Tuon
* @created on 04-Oct-17
*/
import java.util.Locale;
public class CountryUtils {
public static boolean getMonthAndDayFormate() {
Locale locale = Locale.getDefault();
String lang = locale.getLanguage();
S... | SopheakTuon/Smart-Bracelet | Application/src/main/java/com/example/android/bluetoothlegatt/ble_service/CountryUtils.java | Java | apache-2.0 | 812 |
# coding=utf8
from django.views.generic import ListView, DetailView, CreateView
from django.db.models import Q
from django.http import JsonResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.shortcuts import render
from pure_pagination.mixins import PaginationMixin
from django.contri... | 1032231418/python | lesson10/apps/books/publish/__init__.py | Python | apache-2.0 | 3,345 |
/*
* 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-workmailmessageflow/src/main/java/com/amazonaws/services/workmailmessageflow/model/transform/MessageRejectedExceptionUnmarshaller.java | Java | apache-2.0 | 2,934 |
"use strict";
var router_1 = require('@angular/router');
var authorize_component_1 = require('./authorize/authorize-component');
var user_component_1 = require('./User/user-component');
var welcome_component_1 = require('./welcome-component');
exports.routes = [
{ path: '', component: welcome_component_1.welcome },... | devilsuraj/openiddict-samples | Samples/resource-owner-password-credential/Angualar2-Client-ROPC/app/app.route.js | JavaScript | apache-2.0 | 586 |
<?php
namespace Home\Controller;
class EmptyController extends HomeController{
public function _empty($action){
$resource = strtolower(CONTROLLER_NAME);
$this->assign('type', $resource);
if(in_array($resource, array('text', 'picture', 'music', 'video'))){
if(in_array($action, array('new', 'edit'))){
if('... | cokeboL/freeblog | App/Home/Controller/EmptyController.class.php | PHP | apache-2.0 | 1,592 |
<?php
/*------------------------------------------------------------------------
# TZ Portfolio Extension
# ------------------------------------------------------------------------
# author DuongTVTemPlaza
# copyright Copyright (C) 2012 templaza.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses... | doomchocolate/dreame-mall | templates/tz_dreame/html/com_tz_portfolio/gallery/default_media.php | PHP | apache-2.0 | 4,020 |
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/
// Portions Copyright 2000-2004 Jonathan de Halleux
//
// 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.a... | citizenmatt/gallio | src/Gallio/Gallio/Model/Filters/FilterToken.cs | C# | apache-2.0 | 1,333 |
<?php
/**
* Unbind ...
*
* @phpstub
*
* @param resource $connection
* @param string $trigger_name
*
* @return bool
*/
function cyrus_unbind($connection, $trigger_name)
{
} | schmittjoh/php-stubs | res/php/cyrus/functions/cyrus-unbind.php | PHP | apache-2.0 | 182 |
ngDefine(
'cockpit.plugin.statistics-plugin.controllers',
function(module) {
module
.controller(
'processDefinitionCtrl',
[
'$scope',
'DataFactory',
'Uri',
function($scope, DataFactory, Uri) {
... | nagyistoce/camunda-cockpit-plugin-statistics | src/main/resources/plugin-webapp/statistics-plugin/app/controllers/processDefinitionCtrl.js | JavaScript | apache-2.0 | 3,679 |
/* Copyright 2015 ETH Zurich
*
* 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 wri... | dmpiergiacomo/scion | c/ssp/PathState.cpp | C++ | apache-2.0 | 23,627 |
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { UserData } from './user-data';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/observable/of';
@Injectable()
export class ConferenceData {
data: any;
constructor(public htt... | josephjohn136/logonfly | Ionic/src/providers/conference-data.ts | TypeScript | apache-2.0 | 4,422 |
/**
* Red Hat Open Innovation Labs API
* A generic model to support automation at all levels of the application and infrastructure lifecycle.
*
* OpenAPI spec version: 0.3.0-alpha
* Contact: rhc-open-innovation-labs@redhat.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https... | priley86/labs-console | app/automation/model/Service.js | JavaScript | apache-2.0 | 3,193 |
using System;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Threading.Tasks;
using RElmah.Common.Model;
using RElmah.Errors;
using RElmah.Services.Nulls;
namespace RElmah.Services.Inbox
{
public class SerializedErrorsInbox : IErrorsInbox
{
private readonly IErrorsBacklog _er... | wasphub/RElmah | relmah/src/RElmah/Services/Inbox/SerializedErrorsInbox.cs | C# | apache-2.0 | 1,105 |
/* Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | google/struct2tensor | struct2tensor/kernels/parquet/parquet_dataset_kernel.cc | C++ | apache-2.0 | 14,363 |
$(function () {
var controller = new ScrollMagic.Controller({
globalSceneOptions: {
triggerHook: 'onLeave',
reverse: true
}
});
// $('.homepage .panel').each(function () {
// var element = $(this);
// console.log(element);
// new ... | shamroze/squarespace-gulp-scaffolding | sqs_template/scripts/parallax.js | JavaScript | apache-2.0 | 4,557 |
/*
* ====================================================================
* 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... | ra0077/jmeter | src/protocol/http/org/apache/jmeter/protocol/http/sampler/JMeterClientConnectionOperator.java | Java | apache-2.0 | 3,341 |
angular.module('aac.controllers.main', [])
/**
* Main layout controller
* @param $scope
*/
.controller('MainCtrl', function($scope, $rootScope, $location, Data, Utils) {
$scope.go = function(v) {
$location.path(v);
}
$scope.activeView = function(view) {
return view == $rootScope.currentView ? 'ac... | smartcommunitylab/AAC | src/main/resources/public/js/account/main.js | JavaScript | apache-2.0 | 3,561 |
#!/bin/env python
import itertools
import collections
def read_table(filename):
with open(filename) as fp:
header = next(fp).split()
rows = [line.split()[1:] for line in fp if line.strip()]
columns = zip(*rows)
data = dict(zip(header, columns))
return data
table = read_table("../... | ketancmaheshwari/hello-goog | src/python/collectionsexample.py | Python | apache-2.0 | 718 |
package com.jota.patterns.singleton;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.jota.patterns.singleton.singleton.User;
public class MainActivity extends ... | jotaramirez90/Android-DesignPatterns | singleton/src/main/java/com/jota/patterns/singleton/MainActivity.java | Java | apache-2.0 | 1,406 |
# This file is part of the MapProxy project.
# Copyright (C) 2010 Omniscale <http://omniscale.de>
#
# 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... | Anderson0026/mapproxy | mapproxy/util/coverage.py | Python | apache-2.0 | 7,709 |
jQuery(function($) {
//smooth scroll
$('.navbar-nav > li.anchor').click(function(event) {
//event.preventDefault();
var target = $(this).find('>a').prop('hash');
$('#navbar .active').removeClass('active');
$(this).addClass('active');
$('html, body').animate({
scrollTop: $(target).offset().top
}, ... | clinm/visu-regions-autonomes-france | js/main.js | JavaScript | apache-2.0 | 656 |
<?php
namespace Academe\Instructions;
use Academe\Contracts\Mapper\Executable;
abstract class BaseExecutable implements Executable
{
} | AaronJan/Academe | src/Academe/Instructions/BaseExecutable.php | PHP | apache-2.0 | 147 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var STATIC_REG = /.*\.(png|jpe?g|gif|svg|woff2?|eot|ttf|otf)$/;
var VER_REG = /[\W][\d\w]+(?=\.\w+$)/;
var _default = function _default(req, res, next) {
var filePaths = req.url.split('/');
if (STATIC_REG.... | angrytoro/fetool | lib/server/middlewares/webpackStatic.js | JavaScript | apache-2.0 | 497 |
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
function toSnakeCase(camelCase) {
if (!camelCase) {
throw new Error("Please provide camelCase.");
}
return camelCase.replace(/([A-Z])/g, "-$1").toLowerCase();... | roelvanlisdonk/dev | apps/sportersonline/www/libraries/am/common/text/to.snake.case.js | JavaScript | apache-2.0 | 497 |
package com.gotcreations.emojilibrary.controller;
import android.animation.Animator;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Handler;
import androidx.annotation.DrawableRes;
import androidx.appcompat.widget.Toolbar;
import android.text.E... | ander7agar/emoji-keyboard | emoji-library/src/main/java/com/gotcreations/emojilibrary/controller/TelegramPanel.java | Java | apache-2.0 | 13,759 |
/**
* Copyright Pravega Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | pravega/pravega | controller/src/main/java/io/pravega/controller/server/eventProcessor/requesthandlers/AbortRequestHandler.java | Java | apache-2.0 | 5,395 |
# Copyright (c) 2019 Infortrend Technology, 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
#
# ... | openstack/manila | manila/tests/share/drivers/infortrend/fake_infortrend_nas_data.py | Python | apache-2.0 | 13,722 |
import { createStore, applyMiddleware, compose } from 'redux'
import logger from 'redux-logger'
import thunkMiddleware from 'redux-thunk'
import rootReducer from './reducers'
const configureStore = () => {
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
return createStore(rootReduc... | AleksandrRogachev94/chat-vote-go-frontend | src/configureStore.js | JavaScript | apache-2.0 | 471 |
(function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... | wdamron/duo-jsx | test/exp_react.js | JavaScript | apache-2.0 | 1,625 |
/**
* 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... | asakusafw/asakusafw | hive-project/core-v2/src/test/java/com/asakusafw/directio/hive/serde/ValueSerdeFactoryTest.java | Java | apache-2.0 | 11,792 |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | dremio/dremio-oss | dac/ui/src/modules.d.ts | TypeScript | apache-2.0 | 689 |
/**
* Copyright 2015 The AMP HTML 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 require... | aghassemi/amphtml | extensions/amp-instagram/0.1/amp-instagram.js | JavaScript | apache-2.0 | 7,111 |
import arez.Arez;
import arez.ArezContext;
import arez.Component;
import arez.Disposable;
import arez.ObservableValue;
import arez.SafeProcedure;
import arez.component.DisposeNotifier;
import arez.component.Identifiable;
import arez.component.internal.ComponentKernel;
import java.text.ParseException;
import javax.annot... | realityforge/arez | processor/src/test/fixtures/expected/Arez_ObservableWithSpecificExceptionModel.java | Java | apache-2.0 | 6,870 |
namespace RoslynPad.Roslyn.Snippets
{
public sealed class SnippetInfo
{
public string Shortcut { get; }
public string Title { get; }
public string Description { get; }
public SnippetInfo(string shortcut, string title, string description)
{
Shortcut = shortc... | aelij/roslynpad | src/RoslynPad.Roslyn/Snippets/SnippetInfo.cs | C# | apache-2.0 | 407 |
/**
* Licensing arrangement (from website FAQ):
*
* The software is completely free for any purpose, unless notes at the
* head of the program text indicates otherwise (which is rare). In any
* case, the notes about licensing are never more restrictive than the
* BSD License.
*
*/
package com.novartis.pcs... | Novartis/ontobrowser | src/main/java/com/novartis/pcs/ontology/service/mapper/PorterStemmer.java | Java | apache-2.0 | 13,830 |
# -*- coding: utf-8 -*-
# Copyright 2022 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-resource-manager | samples/generated_samples/cloudresourcemanager_v3_generated_tag_keys_get_tag_key_async.py | Python | apache-2.0 | 1,477 |
<?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
namespace Magento\Sales\Model\Grid;
class CollectionUpdater implements \Magento\Framework\View\Layout\Argument\UpdaterInterface
{
/**
* @var \Magento\Framework\Registry
*/
protected $registryManager;
... | webadvancedservicescom/magento | app/code/Magento/Sales/Model/Grid/CollectionUpdater.php | PHP | apache-2.0 | 1,062 |
// Copyright (C) 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 t... | Qining/gapid | gapis/resolve/resource_data.go | GO | apache-2.0 | 4,307 |
<style type="text/css">
.placeholder {
display: none;
}
</style>
<div class="contentRight">
<div class="sanpham" style=" height: 100%; margin-top: 0">
<div class="row" style="margin: 5px">
<div class="page-header">
<h2><?php echo lang('form_checkout'); ?></h2>
</div>
<?php if (validation_errors()... | CaoLP/tranhviet | Code/tranhviet/gocart/themes/default/views/checkout/address_form.php | PHP | apache-2.0 | 11,288 |
/*
* Copyright 2014-2021 Sayi
*
* 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... | Sayi/poi-tl | poi-tl/src/main/java/com/deepoove/poi/xwpf/ParagraphContext.java | Java | apache-2.0 | 3,416 |
/*
* 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 ... | avinogradovgg/ignite | modules/core/src/main/java/org/apache/ignite/internal/portable/PortableThreadLocalMemoryAllocator.java | Java | apache-2.0 | 4,612 |
var addressBar = element(by.css("#addressBar")),
url = 'http://www.example.com/base/ratingList.html#!/path?a=b#h';
it("should show fake browser info on load", function(){
expect(addressBar.getAttribute('value')).toBe(url);
expect(element(by.binding('$location.protocol()')).getText()).toBe('http');
expect(e... | lvkklemo/shopApp | library/angular-1.4.9/docs/examples/example-location-hashbang-mode/protractor.js | JavaScript | apache-2.0 | 2,038 |
/*
* Copyright 2006-2011 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless requi... | sbower/kuali-rice-1 | it/kew/src/test/java/org/kuali/rice/kew/xml/export/GroupXmlExporterTest.java | Java | apache-2.0 | 4,009 |
/**
* Copyright 2015 Smart Society Services B.V.
*
* 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
*/
package com.alliander.osgp.core.infra... | wernerb/Platform | osgp-core/src/main/java/com/alliander/osgp/core/infra/jms/protocol/in/ProtocolResponseMessageJmsTemplateFactory.java | Java | apache-2.0 | 2,471 |
package com.codedpoetry.maven.dockerplugin.templates;
import java.io.StringWriter;
import java.util.Map;
public interface TemplateRenderer {
StringWriter renderTemplate(String templateUrl, Map context);
} | fllaca/docker-maven-plugin | src/main/java/com/codedpoetry/maven/dockerplugin/templates/TemplateRenderer.java | Java | apache-2.0 | 209 |
package st.domain.quitanda.client.model.contract;
/**
* Created by Daniel Costa at 8/27/16.
* Using user computer xdata
*/
public interface TypePayment
{
public int getDataBaseId();
}
| danie555costa/Quitanda | app/src/main/java/st/domain/quitanda/client/model/contract/TypePayment.java | Java | apache-2.0 | 192 |