identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/Cryptum169/gpmp2/blob/master/gpmp2/obstacle/tests/testObstacleSDFFactorArm.cpp | Github Open Source | Open Source | BSD-3-Clause | null | gpmp2 | Cryptum169 | C++ | Code | 457 | 1,955 | /**
* @file testObstacleSDFFactorArm.cpp
* @author Jing Dong
**/
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/Matrix.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/numericalDerivative.h>
#include <gpmp2/kinematics/ArmModel.h>
#include <gpmp2/obstacle/ObstacleSDFFactor.h>
#include <iostream>... | 9,764 |
https://github.com/BinaryMuse/battlenet/blob/master/battlenet.gemspec | Github Open Source | Open Source | MIT | 2,017 | battlenet | BinaryMuse | Ruby | Code | 92 | 412 | # -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require 'battlenet/version'
Gem::Specification.new do |s|
s.name = "battlenet"
s.version = Battlenet::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Brandon Tilley"]
s.email = ["brandon@brandontilley.com"]... | 1,041 |
https://github.com/Servius/tfa_base_rp_friendly/blob/master/versions_copyoneortheotherinto_addonsfolder_/tfa-base-sv-ins2/lua/tfa/modules/tfa_particles_lua.lua | Github Open Source | Open Source | MIT | 2,017 | tfa_base_rp_friendly | Servius | Lua | Code | 274 | 979 | TFAFlareParts = {}
TFAVMAttachments = {}
local ply,vm,wep
if CLIENT then
hook.Add("PostDrawViewModel", "TFAMuzzleUpdate", function(vmod,plyv)
vm = vmod
ply = plyv
--local tbl = vmod:GetAttachments()
--for i = 1,attCount do
-- TFAVMAttachments[i] = vmod:GetAttachment(i)
-- i = i + 1
--end
TFAVMAttachm... | 35,563 |
https://github.com/kbens/rundeck/blob/master/core/src/test/java/com/dtolabs/rundeck/core/common/TestNodeEntryFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | rundeck | kbens | Java | Code | 337 | 1,360 | /*
Copyright 2014 SimplifyOps Inc, <http://simplifyops.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 applicable law o... | 4,668 |
https://github.com/Mr-Sheep/naiveproxy/blob/master/src/net/third_party/quiche/src/quic/core/http/quic_spdy_stream_body_manager.cc | Github Open Source | Open Source | BSD-3-Clause | null | naiveproxy | Mr-Sheep | C++ | Code | 397 | 1,419 | // Copyright (c) 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "quic/core/http/quic_spdy_stream_body_manager.h"
#include <algorithm>
#include "absl/strings/string_view.h"
#include "quic/platform/api/qui... | 10,618 |
https://github.com/xackery/tmx/blob/master/client/map.go | Github Open Source | Open Source | MIT | null | tmx | xackery | Go | Code | 73 | 224 | package client
import (
"context"
"os"
"github.com/pkg/errors"
"github.com/xackery/tmx/pb"
"github.com/xackery/tmx/tmx"
)
// NewMap creates a new map (*.tmx), using provided path
func NewMap(ctx context.Context, path string) (m *pb.Map, err error) {
f, err := os.Open(path)
if err != nil {
err = errors.Wrap(... | 40,342 |
https://github.com/oceaninsights/ember-material-table/blob/master/addon/templates/components/models-table.hbs | Github Open Source | Open Source | MIT | null | ember-material-table | oceaninsights | null | Spoken | 205 | 824 | <div class="models-table-wrapper {{classes.outerTableWrapper}}">
<nav class="navbar navbar-transparent md-table-header">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="example-navbar-icons">
<ul class="nav navbar-nav">
<li>
{{! global filter start }}
... | 25,833 |
https://github.com/NguyenThao2911/DoAnTotNghiep/blob/master/app/LoaiBanDoc.php | Github Open Source | Open Source | MIT | null | DoAnTotNghiep | NguyenThao2911 | PHP | Code | 28 | 83 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class LoaiBanDoc extends Model
{
protected $table = 'loaibandoc';
public $primaryKey = 'maloaibandoc';
// public $incrementing = false;
public $timestamps = false;
}
| 28,062 |
https://github.com/MaTriXy/Splitties/blob/master/samples/android-app/src/androidMain/kotlin/com/example/splitties/DemoApp.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | Splitties | MaTriXy | Kotlin | Code | 41 | 116 | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.example.splitties
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
class DemoApp : Application() {
companion object {
init {
AppCompat... | 18,732 |
https://github.com/bearking1069/openwrt-packages/blob/master/mt-drivers/mt7612e/src/mt76x2/include/crypt_biginteger.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | openwrt-packages | bearking1069 | C | Code | 343 | 1,113 | /****************************************************************************
* Ralink Tech Inc.
* Taiwan, R.O.C.
*
* (c) Copyright 2002, Ralink Technology, Inc.
*
* All rights reserved. Ralink's source code is an unpublished work and the
* use of a copyright notice does not imply otherwise. This source code
* ... | 18,270 |
https://github.com/punamsapkale/testng/blob/master/testng-core/src/test/kotlin/org/testng/reporters/jq/TimesPanelTest.kt | Github Open Source | Open Source | Apache-2.0 | null | testng | punamsapkale | Kotlin | Code | 80 | 295 | package org.testng.reporters.jq
import org.assertj.core.api.Assertions.assertThat
import org.testng.annotations.Test
import org.testng.internal.paramhandler.FakeSuite
import org.testng.reporters.XMLStringBuffer
import test.SimpleBaseTest
class TimesPanelTest : SimpleBaseTest() {
companion object {
const... | 42,201 |
https://github.com/spottedmahn/AspNetAuthorizationWorkshop/blob/master/src/Workshop_Suggested_Solution/Constants.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | AspNetAuthorizationWorkshop | spottedmahn | C# | Code | 27 | 81 | namespace AuthorizationWorkshop
{
public class Constants
{
public const string Issuer = "https://contoso.com";
public const string MiddlewareScheme = "Cookie";
public const string CompanyClaimType = "https://schemas.contoso.com/identity/claims/Company";
}
}
| 18,719 |
https://github.com/davidsean/WellnessBot/blob/master/app/scheduler/scheduler.py | Github Open Source | Open Source | MIT | 2,022 | WellnessBot | davidsean | Python | Code | 334 | 761 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Scheduler
=========
Modified: 2020-05-22
Dependencies:
-------------
```
import numpy as np
import time
import logging
```
Copyright © 2021 Incuvers. All rights reserved.
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidenti... | 26,672 |
https://github.com/Adyzng/gxpj/blob/master/resources/views/blank.blade.php | Github Open Source | Open Source | MIT | null | gxpj | Adyzng | PHP | Code | 12 | 57 | @extends('gxpj')
@section('main_content')
<!-- 空白页 -->
<div class="container">
<div class="blank_pg">
</div>
</div>
@endsection | 15,476 |
https://github.com/kicumkicum/intellij-pdf-viewer/blob/master/plugin/src/main/kotlin/com/firsttimeinforever/intellij/pdf/viewer/actions/view/PdfToggleScrollDirectionAction.kt | Github Open Source | Open Source | MIT | 2,022 | intellij-pdf-viewer | kicumkicum | Kotlin | Code | 118 | 638 | package com.firsttimeinforever.intellij.pdf.viewer.actions.view
import com.firsttimeinforever.intellij.pdf.viewer.PdfViewerBundle
import com.firsttimeinforever.intellij.pdf.viewer.actions.PdfDumbAwareAction
import com.firsttimeinforever.intellij.pdf.viewer.model.PageSpreadState
import com.firsttimeinforever.intellij.p... | 4,647 |
https://github.com/fsgo/smart-go-dl/blob/master/internal/remove.go | Github Open Source | Open Source | MIT | 2,022 | smart-go-dl | fsgo | Go | Code | 165 | 457 | // Copyright(C) 2022 github.com/fsgo All Rights Reserved.
// Author: fsgo
// Date: 2022/1/3
package internal
import (
"fmt"
"os"
"strings"
)
// Remove 删除指定的版本
func Remove(version string) error {
return remove(version)
}
func remove(version string) error {
v, err := parserVersion(version)
if err != nil {
re... | 6,556 |
https://github.com/lepszyweb/style_przewodnik/blob/master/src/global/global.scss | Github Open Source | Open Source | MIT | null | style_przewodnik | lepszyweb | SCSS | Code | 43 | 110 | // Użytkowe
//
// Importuj zmienne i wstawki
// Powinien zawierać wyjście NIE css.
// Tylko zmienne / wstawki / ustawienia.
// ========================================
@import 'utils/init';
// Base
//
// Zwykła stylizacja elementów html. Nie powinna wymagać
// żadnych klas.
// ========================================... | 26,403 |
https://github.com/adrianoviana87/dotvim/blob/master/configs/004-status-line.vim | Github Open Source | Open Source | MIT | null | dotvim | adrianoviana87 | null | Spoken | 59 | 312 | """"""""""""""""""""""""""""""
" => Status line
""""""""""""""""""""""""""""""
let g:airline_powerline_fonts = 0
set laststatus=2
let g:airline#extensions#tabline#enabled = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.space = "\ua0"
let g:airline#extensions#tabline#fnamemod... | 40,118 |
https://github.com/adnsv/go-build/blob/master/compiler/toolchain/chain.go | Github Open Source | Open Source | MIT | null | go-build | adnsv | Go | Code | 167 | 570 | package toolchain
import (
"fmt"
"io"
)
// Chain contains all the information discovered about a compiler
type Chain struct {
Compiler string `json:"compiler"`
FullVersion string `json:"full-version,omitempty"`
Version string `json:"version,omitempty"`
Target string `... | 10,215 |
https://github.com/Sveer/rrod/blob/master/src/Webapp/Services/XmlRepository.cs | Github Open Source | Open Source | MIT | 2,022 | rrod | Sveer | C# | Code | 121 | 491 | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Xml.Linq;
using GrainInterfaces;
using Microsoft.AspNetCore.DataProtection.Repositories;
using Orleans;
using Microsoft.AspNetCore.DataProtection.KeyManagement;
using Microsoft.Extensions.DependencyInjection;
using Mic... | 32,710 |
https://github.com/AbeerRehanKhan/openwsn-fw/blob/master/projects/scum/01bsp_action_timer_radio/01bsp_action_timer_radio.c | Github Open Source | Open Source | BSD-3-Clause | 2,021 | openwsn-fw | AbeerRehanKhan | C | Code | 678 | 2,748 | /**
\brief This program shows the use of the "radio" bsp module using action timer
that scum provide.
With this project, SLOT_FSM_IMPLEMENTATION_MULTIPLE_TIMER_INTERRUPT need to be
defined in board_info.h, or this project doesn't compile.
This project is to verify the StartOfFrame interrupt is not triggered when
s... | 38,858 |
https://github.com/costa-xdaniel/DBUtilAndroid/blob/master/zudamue-util/src/main/java/st/zudamue/support/android/util/MultiImplementation.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | DBUtilAndroid | costa-xdaniel | Java | Code | 24 | 75 | package st.zudamue.support.android.util;
/**
* Created by xdaniel on 5/26/17.
*
* @author Daniel Costa <costa.xdaniel@gmail.com>
*/
public interface MultiImplementation<T> {
public T getInstance();
}
| 37,054 |
https://github.com/mobilesec/cormorant/blob/master/cormorant-libsignal-service-fork/src/main/java/org/whispersystems/signalservice/api/push/exceptions/PushNetworkException.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | cormorant | mobilesec | Java | Code | 43 | 121 | /**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package org.whispersystems.signalservice.api.push.exceptions;
import java.io.IOException;
public class PushNetworkException extends IOException {
public PushNetworkException(Exception exception... | 32,161 |
https://github.com/ratul2f8/thoughtsalike_local/blob/master/client/src/graphql/queries/posts.graphql | Github Open Source | Open Source | MIT | null | thoughtsalike_local | ratul2f8 | null | Spoken | 12 | 37 | query Posts($limit: Int!, $after: String){
posts(limit: $limit after: $after){
...RegularPosts
}
} | 32,897 |
https://github.com/aogier/couchdb/blob/master/src/mem3/src/mem3_sup.erl | Github Open Source | Open Source | Apache-2.0 | 2,017 | couchdb | aogier | Erlang | Code | 143 | 395 | % 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 the ... | 27,155 |
https://github.com/marcs77/MuonEngine/blob/master/core/util/fileutils.h | Github Open Source | Open Source | MIT | null | MuonEngine | marcs77 | C | Code | 22 | 85 | #ifndef FILEUTILS_H
#define FILEUTILS_H
#include "../common.h"
#include <string.h>
namespace muon {
std::string read_file(const char* filepath);
std::string get_directory(std::string path);
}
#endif // !FILEUTILS_H
| 7,675 |
https://github.com/mitchdenny/tfsdeployer/blob/master/src/TfsDeployer.Data/DeploymentOutput.cs | Github Open Source | Open Source | MIT | null | tfsdeployer | mitchdenny | C# | Code | 26 | 61 | using System;
namespace TfsDeployer.Data
{
[Serializable]
public class DeploymentOutput
{
public string Content { get; set; }
public bool IsFinal { get; set; }
}
} | 22,406 |
https://github.com/bireports/nextreports-server/blob/master/src/ro/nextreports/server/distribution/SmbDistributor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | nextreports-server | bireports | Java | Code | 367 | 1,088 | /*
* 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 ... | 9,012 |
https://github.com/nguyenkhiem7789/DotLoadingView/blob/master/dotloading/src/main/java/com/nguyen/dotloading/DotLoadingDialog.kt | Github Open Source | Open Source | MIT | null | DotLoadingView | nguyenkhiem7789 | Kotlin | Code | 58 | 195 | package com.nguyen.dotloading
import android.app.AlertDialog
import android.app.Dialog
import android.content.Context
import android.util.Log
public object DotLoadingDialog {
var builder: AlertDialog.Builder? = null
var dialog: Dialog? = null
fun show(context: Context) {
val dotLoadingView = Do... | 30,709 |
https://github.com/plushugh/SP/blob/master/DogCar/UserInterface/ui.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | SP | plushugh | Python | Code | 251 | 1,664 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\carcontrols.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | 22,918 |
https://github.com/chen0123bin/MyToolsProject/blob/master/ToolsProject/Assets/Packages/LWFramework/Runtime/_UI/Widget/MessageBoxView.cs | Github Open Source | Open Source | Apache-2.0 | null | MyToolsProject | chen0123bin | C# | Code | 200 | 743 | using LWFramework.UI;
using UnityEngine.UI;
using UnityEngine;
using System;
[UIViewData("",FindType.Name, "LWFramework/Canvas/Top")]
public class MessageBoxView : BaseUIView
{
[UIElement("ImgBox/LytBtns/BtnCancel/TxtCancel")]
private Text _txtCancel = null;
[UIElement("ImgBox/LytBtns/BtnConfirm/TxtConfirm")]
... | 24,172 |
https://github.com/madiantech/tkcore/blob/master/Data/YJC.Toolkit.Data/Data/_Display/MaskDisplayConfig.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | tkcore | madiantech | C# | Code | 252 | 810 | using YJC.Toolkit.MetaData;
using YJC.Toolkit.Sys;
namespace YJC.Toolkit.Data
{
[CoreDisplayConfig(CreateDate = "2015-11-23", NamespaceType = NamespaceType.Toolkit,
Author = "YJC", Description = "加密显示内容")]
[ObjectContext]
internal class MaskDisplayConfig : IDisplay, IConfigCreator<IDisplay>
{
... | 41,252 |
https://github.com/nnatnichas/improvedPSO_VMallocation/blob/master/cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudbus/cloudsim/examples/power/planetlab/NonPowerAware.java | Github Open Source | Open Source | MIT | 2,022 | improvedPSO_VMallocation | nnatnichas | Java | Code | 317 | 1,089 | package org.cloudbus.cloudsim.examples.power.planetlab;
import java.io.IOException;
import java.util.List;
import java.util.Objects;
import org.cloudbus.cloudsim.cloudlets.Cloudlet;
import org.cloudbus.cloudsim.brokers.DatacenterBroker;
import org.cloudbus.cloudsim.examples.power.util.PlanetLabRunner;
import org.clo... | 30,547 |
https://github.com/Devteamproximity/LaravueJS/blob/master/app/Models/Etablissement.php | Github Open Source | Open Source | MIT | null | LaravueJS | Devteamproximity | PHP | Code | 54 | 274 | <?php
namespace App\Models;
use App\Models\User;
use App\Models\Session;
use App\Models\Assigners;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Etablissement extends Model
{
use HasFactory;
protected $fillable = [
'id', 'codeEtab', 'libelleEta... | 4,029 |
https://github.com/CedricPEPS/Scrapper-cineweek/blob/master/server.js | Github Open Source | Open Source | MIT | null | Scrapper-cineweek | CedricPEPS | JavaScript | Code | 53 | 177 | var express = require('express')
var fs = require('fs');
var app = express()
app.get('/', function(req, res){
fs.readFile('data.json', (err, data) => {
if (err) throw err;
json = JSON.parse(data);
res.json(json);
});
})
// 404
app.use (function(req, res, next){
res.setHeader('Content-Type', 'te... | 32,608 |
https://github.com/rietmann-nv/pmdarima/blob/master/pmdarima/arima/seasonality.py | Github Open Source | Open Source | MIT | 2,019 | pmdarima | rietmann-nv | Python | Code | 1,082 | 2,785 | # -*- coding: utf-8 -*-
#
# Author: Taylor Smith <taylor.smith@alkaline-ml.com>
#
# Tests for seasonal differencing terms
from __future__ import absolute_import, division
from sklearn.utils.validation import column_or_1d, check_array
from sklearn.linear_model import LinearRegression
from sklearn.externals import six
... | 24,191 |
https://github.com/edmundarmin/random_image_eraser_augmentation/blob/master/randomEraserAug.py | Github Open Source | Open Source | MIT | 2,021 | random_image_eraser_augmentation | edmundarmin | Python | Code | 134 | 477 | import cv2
import random
import math
import numpy as np
def random_erasing(img,mean = [0.4914, 0.4822, 0.4465],sl = 0.02,sh = 0.4,r1 = 0.3):
"""sl: min erasing area
sh: max erasing area
r1: min aspect ratio
mean: erasing value"""
img = img.copy()
for attempt in range(100):
area... | 2,739 |
https://github.com/themichaelhall/rss-feed/blob/master/src/Interfaces/RssImageInterface.php | Github Open Source | Open Source | MIT | null | rss-feed | themichaelhall | PHP | Code | 153 | 385 | <?php
/**
* This file is a part of the rss-feed package.
*
* Read more at https://github.com/themichaelhall/rss-feed
*/
declare(strict_types=1);
namespace MichaelHall\RssFeed\Interfaces;
use DataTypes\Net\UrlInterface;
use SimpleXMLElement;
/**
* Interface representing an RSS image.
*
* @since 2.1.0
*/
int... | 24,595 |
https://github.com/arapmelly/appspaza/blob/master/app/controllers/CampaignsController.php | Github Open Source | Open Source | MIT | null | appspaza | arapmelly | PHP | Code | 318 | 1,260 | <?php
class CampaignsController extends \BaseController {
/**
* Display a listing of campaigns
*
* @return Response
*/
public function index()
{
$campaigns = Campaign::all();
return View::make('campaigns.index', compact('campaigns'));
}
/**
* Show the form for creating a new campaign
*
* @ret... | 40,622 |
https://github.com/mtn/ml/blob/master/robotics/ekf/code/EKF.py | Github Open Source | Open Source | MIT | null | ml | mtn | Python | Code | 271 | 731 | import numpy as np
class EKF(object):
# Construct an EKF instance with the following set of variables
# mu: The initial mean vector
# Sigma: The initial covariance matrix
# R: The process noise covariance
# Q: The measuremen... | 5,872 |
https://github.com/hieptranquoc/blog/blob/master/sass/custom/_styles.scss | Github Open Source | Open Source | MIT | 2,017 | blog | hieptranquoc | SCSS | Code | 78 | 235 | // This File is imported last, and will override other styles in the cascade
// Add styles here to make changes without digging in too much
@import "better_tables";
// Thanks to http://hiltmon.com/blog/2013/05/08/octopress-now-has-footnotes/
.footnotes {
font-size: 13px;
line-height: 16px;
color: #666;
p {
... | 18,628 |
https://github.com/MakeSchool/Kobold2D/blob/master/docs/cocos2d-iphone-mac/html/interface_c_c_repeat_forever.js | Github Open Source | Open Source | MIT | null | Kobold2D | MakeSchool | JavaScript | Code | 25 | 198 | var interface_c_c_repeat_forever =
[
[ "actionWithAction:", "interface_c_c_repeat_forever.html#a411554b9ebf11782289f30032cf8f2e7", null ],
[ "initWithAction:", "interface_c_c_repeat_forever.html#a53dc06b36b3ff4550dcad1ad3ad96923", null ],
[ "_innerAction", "interface_c_c_repeat_forever.html#a87c05b2e40b71cd... | 26,889 |
https://github.com/i-m-Shahbaj/laravel_admin/blob/master/app/Http/Controllers/mobile/LibrariesController.php | Github Open Source | Open Source | MIT | null | laravel_admin | i-m-Shahbaj | PHP | Code | 968 | 5,709 | <?php
namespace App\Http\Controllers\mobile;
use App\Http\Controllers\BaseController;
use mjanssen\BreadcrumbsBundle\Breadcrumbs as Breadcrumb;
use App\Model\ProjectFolder;
use App\Model\ProjectFolderArticle;
use Auth,Blade,Config,Cache,Cookie,DB,File,Hash,Input,Mail,mongoDate,Redirect,Request,Response,Session,URL,View... | 31,281 |
https://github.com/Suman7495/rl-botics/blob/master/rl_botics/trpo/utils.py | Github Open Source | Open Source | MIT | 2,021 | rl-botics | Suman7495 | Python | Code | 221 | 645 | import numpy as np
import tensorflow as tf
def linesearch(f, x, fullstep, expected_improve_rate, kl_bound, max_backtracks=10, accept_ratio=.1):
"""
Backtracking linesearch, where expected_improve_rate is the slope dy/dx at the initial point
"""
fval = f(x)[0]
for stepfrac in (.5 ** np.arange(max_b... | 18,663 |
https://github.com/octansIt/environmentassessment/blob/master/EnvironmentAssessment.Wizard/Common/VimApi/V/VirtualMachineUsbInfo.cs | Github Open Source | Open Source | MIT | 2,020 | environmentassessment | octansIt | C# | Code | 144 | 493 | namespace EnvironmentAssessment.Common.VimApi
{
public class VirtualMachineUsbInfo : VirtualMachineTargetInfo
{
protected string _description;
protected int _vendor;
protected int _product;
protected string _physicalPath;
protected string[] _family;
protected string[] _speed;
protected VirtualMachineSum... | 7,324 |
https://github.com/Rasel673/Laravel-Vue-Ecommerce/blob/master/resources/js/components/backend/admin/adminSidebar.vue | Github Open Source | Open Source | MIT | null | Laravel-Vue-Ecommerce | Rasel673 | Vue | Code | 234 | 982 | <template>
<div >
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<router-link to="/home" class="brand-link"></router-link>
<!-- <img src="img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opaci... | 11,279 |
https://github.com/TaigaYamada/DigitalCulture/blob/master/src/sass/config/abstracts/_layout.scss | Github Open Source | Open Source | MIT | null | DigitalCulture | TaigaYamada | SCSS | Code | 16 | 46 | $margin : calc(5vw + .4rem);
$margin-modal : calc(10vw + .8rem);
$radius : 1rem;
$radius-large : 3rem; | 27,098 |
https://github.com/christoecker/gdi/blob/master/a48_bubblesort.c | Github Open Source | Open Source | CC0-1.0 | null | gdi | christoecker | C | Code | 133 | 331 | #include <stdio.h>
// Funktion zum Sortieren eines Arrays
void bubbleSort(int A[], int len) {
for (int i = 1; i < len; i++) {
for (int j = 0; j < len - i; j++) {
if (A[j] > A[j + 1]) {
//Vertausche die Elemente
int temp = A[j];
A[j] = A[j + 1];
A[j + 1] = temp;
}
}
}
}
// Funktion fuer die... | 35,633 |
https://github.com/aasmc/PetFinder/blob/master/common/src/main/java/ru/aasmc/petfinder/common/data/cache/model/cachedanimal/CachedTag.kt | Github Open Source | Open Source | Unlicense | null | PetFinder | aasmc | Kotlin | Code | 19 | 79 | package ru.aasmc.petfinder.common.data.cache.model.cachedanimal
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "tags")
data class CachedTag(
@PrimaryKey(autoGenerate = false)
val tag: String
) | 30,116 |
https://github.com/fauziabd26/pos_magang/blob/master/application/controllers/API/DetailTransaksi.php | Github Open Source | Open Source | MIT | null | pos_magang | fauziabd26 | PHP | Code | 1,129 | 4,759 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
// require APPPATH . '/libraries/RestController.php';
use chriskacerguis\RestServer\RestController;
class DetailTransaksi extends RestController
{
function __construct($config = 'rest')
{
parent::__construct($config);
$this->load->database();... | 14,897 |
https://github.com/dbrambilla/tablesaw/blob/master/core/src/main/java/tech/tablesaw/splitting/dates/LocalDateSplitter.java | Github Open Source | Open Source | Apache-2.0 | null | tablesaw | dbrambilla | Java | Code | 13 | 42 | package tech.tablesaw.splitting.dates;
/**
*
*/
public interface LocalDateSplitter {
int split(int packedLocalDate);
}
| 22,560 |
https://github.com/yop0/Temps_Reel/blob/master/projet_destijl_2016/xenomai/include/asm-blackfin/atomic_asm.h | Github Open Source | Open Source | MIT | 2,021 | Temps_Reel | yop0 | C | Code | 263 | 952 | /*
* Copyright (C) 2012 Philippe Gerum <rpm@xenomai.org>.
*
* Xenomai 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 2 of the License,
* or (at your option) any later version.
*
* Xenom... | 24,397 |
https://github.com/sayfulloev/RawRabbit/blob/master/src/RawRabbit/Common/ExclusiveLock.cs | Github Open Source | Open Source | MIT | null | RawRabbit | sayfulloev | C# | Code | 245 | 888 | using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using RawRabbit.Logging;
namespace RawRabbit.Common
{
public interface IExclusiveLock
{
Task<object> AquireAsync(object obj, CancellationToken token = default(CancellationToken));
Task ReleaseAsync(object ob... | 25,184 |
https://github.com/Ankitkurani1997/maya/blob/master/vendor/github.com/hashicorp/nomad/dist/client.hcl | Github Open Source | Open Source | Apache-2.0 | 2,022 | maya | Ankitkurani1997 | HCL | Code | 17 | 70 | bind_addr = "127.0.0.1"
data_dir = "/var/lib/nomad/"
client {
enabled = true
servers = ["10.1.0.1", "10.1.0.2", "10.1.0.3"]
} | 298 |
https://github.com/mokshmodi96/DiaMon-API/blob/master/medicine_insert.php | Github Open Source | Open Source | CC-BY-3.0 | null | DiaMon-API | mokshmodi96 | PHP | Code | 436 | 1,894 | <!DOCTYPE HTML>
<html lang="en">
<head>
<?php
session_start();
if(!isset($_SESSION["username"])) {
header('location:index.php');
}
include_once 'header.php';
include_once 'sidebar.php';
?>
<title>Medicine Insert</title>
<meta name="viewport" content="width=device-width, initi... | 44,578 |
https://github.com/codenicer/demo-system-public/blob/master/client/src/organisms/ModalHeader/ModalHeader.js | Github Open Source | Open Source | MIT | null | demo-system-public | codenicer | JavaScript | Code | 48 | 157 | import React from 'react';
import IconButton from '../../atoms/IconButton/IconButton';
import { faTimes } from '@fortawesome/free-solid-svg-icons'
const ModalHeader = (props) => {
const { label, onClick } = props;
return (
<div className='grd gtc-fm aic'>
<span className='header'>{label}</sp... | 15,638 |
https://github.com/Zanthed/yubioath-android/blob/master/app/src/main/java/com/yubico/yubikitold/application/oath/ListResponse.java | Github Open Source | Open Source | BSD-2-Clause | 2,022 | yubioath-android | Zanthed | Java | Code | 52 | 195 | package com.yubico.yubikitold.application.oath;
import com.yubico.yubikitold.application.Tlv;
import java.nio.charset.StandardCharsets;
public class ListResponse {
public final String name;
public final OathType oathType;
public final HashAlgorithm hashAlgorithm;
ListResponse(Tlv response) {
... | 11,677 |
https://github.com/c1c4/five-best_restaurants/blob/master/app.py | Github Open Source | Open Source | MIT | null | five-best_restaurants | c1c4 | Python | Code | 33 | 142 | from flask import Flask
from config.custom_exception import handle_not_acceptable
from controller.restaurants_controller import restaurants_blueprint
from documented_endpoints import blueprint as documented_endpoint
app = Flask(__name__)
app.config['RESTPLUS_MASK_SWAGGER'] = False
app.register_blueprint(restaurants_... | 17,072 |
https://github.com/dennned/jesus/blob/master/typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php | Github Open Source | Open Source | PostgreSQL | null | jesus | dennned | PHP | Code | 653 | 3,585 | <?php
namespace TYPO3\CMS\Core\Tests\Unit\Category;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and lice... | 16,422 |
https://github.com/asadmshah/rplace-android/blob/master/app/src/main/java/com/asadmshah/rplace/android/screens/main/MainPresenter.kt | Github Open Source | Open Source | Unlicense | null | rplace-android | asadmshah | Kotlin | Code | 194 | 832 | package com.asadmshah.rplace.android.screens.main
import android.graphics.Color
import android.os.Bundle
import android.util.Log
import com.asadmshah.rplace.android.Injector
import com.asadmshah.rplace.android.R
import com.asadmshah.rplace.android.client.EndpointEvents
import com.asadmshah.rplace.android.client.Endpoi... | 13,606 |
https://github.com/cartoonclouds/job-application-app-au-neutralino/blob/master/src/components/common/data-table/data-table.ts | Github Open Source | Open Source | MIT | null | job-application-app-au-neutralino | cartoonclouds | TypeScript | Code | 641 | 2,101 | import { bindable, BindingMode, inject } from "aurelia";
import { ISignaler } from "@aurelia/runtime-html";
import * as _ from "underscore";
import { FilterValueConverter } from "../../../resources/value-converters/array";
import { ArrayUtility } from "../../../utilities/array-utility";
export class DataTableHeader {... | 641 |
https://github.com/HuygensING/alexandria-lmnl/blob/master/main/src/main/java/nl/knaw/huygens/alexandria/data_model/Annotation.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | alexandria-lmnl | HuygensING | Java | Code | 232 | 514 | package nl.knaw.huygens.alexandria.data_model;
/*
* #%L
* alexandria-markup-core
* =======
* Copyright (C) 2016 - 2021 HuC DI (KNAW)
* =======
* 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 Lice... | 22,531 |
https://github.com/lnwazg/kryonet/blob/master/src/main/java/com/esotericsoftware/kryonet/Client.java | Github Open Source | Open Source | Apache-2.0 | null | kryonet | lnwazg | Java | Code | 2,420 | 6,657 | /* Copyright (c) 2008, Nathan Sweet
* 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 conditions and... | 28,290 |
https://github.com/sabbya2011/snippet-and-file-sharing-system/blob/master/src/assets/styles/responsive-breaks.scss | Github Open Source | Open Source | MIT | null | snippet-and-file-sharing-system | sabbya2011 | SCSS | Code | 8 | 44 | $break-xs-width: 320px;
$break-sm-width: 640px;
$break-md-width: 1800px;
$break-lg-width: 3000px; | 27,873 |
https://github.com/jeremieroy/bgfx_font/blob/master/src/text_buffer_manager.h | Github Open Source | Open Source | BSD-2-Clause | 2,019 | bgfx_font | jeremieroy | C | Code | 275 | 874 | /* Copyright 2013 Jeremie Roy. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#include "font_manager.h"
namespace bgfx_font
{
BGFX_HANDLE(TextBufferHandle);
/// type of vertex and index buffer to use with a TextBuffer
enum BufferType
{
STATIC,
DYNAMIC ,
TRANSIENT... | 21,818 |
https://github.com/sumomoshinqi/Jellyfish/blob/master/server/modules/message/router.js | Github Open Source | Open Source | MIT | 2,016 | Jellyfish | sumomoshinqi | JavaScript | Code | 89 | 270 | var express = require('express');
var message = require('./message');
var router = express.Router();
router.get('/', function(req, res, next) {
var status = 200,
response = {
'err_code': 0,
'err_msg': '',
'data': null
};
if (response.err_code === 0) {
... | 23,407 |
https://github.com/Muzsor/SqlSugar/blob/master/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom014.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | SqlSugar | Muzsor | C# | Code | 312 | 1,216 | using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public class UCustom014
{
public static void Init()
{
var db = new SqlSugarScope(new SqlSugar.ConnectionConfig()
{
... | 5,210 |
https://github.com/djanosik/Moon.Libraries/blob/master/src/Moon.Runtime/Time.cs | Github Open Source | Open Source | MIT | 2,021 | Moon.Libraries | djanosik | C# | Code | 402 | 1,008 | using System;
namespace Moon
{
/// <summary>
/// Provides helpers for dealing with time.
/// </summary>
public static class Time
{
/// <summary>
/// Gets the Coordinated Universal Time (UTC) zone.
/// </summary>
public static TimeZoneBase UtcZone { get; } = new UtcTi... | 11,076 |
https://github.com/Prakhar-Saxena/protoquill/blob/master/quill-sql/src/main/scala/io/getquill/context/SchemaMetaMacro.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | protoquill | Prakhar-Saxena | Scala | Code | 122 | 409 | package io.getquill.context
import scala.quoted._
import io.getquill.parser.ParserFactory
import io.getquill.metaprog.ExtractorsBundle
import io.getquill.MetaDsl
import io.getquill.SchemaMeta
import io.getquill.Unquote
import io.getquill.util.LoadObject
import io.getquill.querySchema
object SchemaMetaMacro {
// in... | 26,099 |
https://github.com/meledin/trap/blob/master/trap-js/src/main/javascript/util/set.js | Github Open Source | Open Source | BSD-3-Clause | null | trap | meledin | JavaScript | Code | 38 | 156 | //<needs(trap)
//<needs(list)
Trap.Set = function(){
Trap.List.prototype.constructor.call(this);
};
Trap.Set.prototype = new Trap.List;
Trap.Set.prototype.className = "set";
Trap.Set.prototype.add = function(a, b)
{
var key = a;
if (!!b && typeof(a) == "number")
key = b;
if (!this.contains(key))
Trap.L... | 38,507 |
https://github.com/AhmedRiahi/astronomvm/blob/master/RowFilterComponent/src/main/java/com/astronomvm/component/exception/UnsupportedOperationException.java | Github Open Source | Open Source | MIT | 2,021 | astronomvm | AhmedRiahi | Java | Code | 9 | 27 | package com.astronomvm.component.exception;
public class UnsupportedOperationException extends RuntimeException {
}
| 13,628 |
https://github.com/tdude92/nbody-tool/blob/master/doc/html/class_dynamics_engine.js | Github Open Source | Open Source | MIT | 2,022 | nbody-tool | tdude92 | JavaScript | Code | 25 | 171 | var class_dynamics_engine =
[
[ "pairAcceleration", "class_dynamics_engine.html#ad3e361aa533c674b4f89934739b5f646", null ],
[ "pairPotentialEnergy", "class_dynamics_engine.html#a4ec82b933c5770b3dd1274da24101531", null ],
[ "totalPotentialEnergy", "class_dynamics_engine.html#ae06dfaeee50918cc335862ed112d1274... | 18,042 |
https://github.com/KnowledgeCaptureAndDiscovery/wings/blob/master/planner/src/main/java/edu/isi/wings/planner/api/impl/kb/WorkflowGenerationKB.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | wings | KnowledgeCaptureAndDiscovery | Java | Code | 8,138 | 29,242 | /*
* 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 ... | 41,778 |
https://github.com/acasolla/common-widgets-gwt/blob/master/src/main/java/it/softphone/rd/gwt/client/resources/base/TabCommandLinkCss.java | Github Open Source | Open Source | MIT | null | common-widgets-gwt | acasolla | Java | Code | 44 | 152 | package it.softphone.rd.gwt.client.resources.base;
import it.softphone.rd.gwt.client.widget.base.tab.TabCommandLink;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.CssResource.Shared;
/**
* The css interface for tab command link
*
* for an explanation on styling see {@li... | 18,906 |
https://github.com/parduccinward/progressivewebapp/blob/master/download_model.py | Github Open Source | Open Source | Apache-2.0 | null | progressivewebapp | parduccinward | Python | Code | 12 | 43 | from keras import applications
from keras.applications import mobilenet
model = mobilenet.MobileNet()
model.save('./mobilenet-model.h5')
| 25,568 |
https://github.com/cai866/Jajodia-Mutchler-Voting-Algorithm/blob/master/bling/Socket/SocketManagerWithMessageCounter.java | Github Open Source | Open Source | MIT | 2,020 | Jajodia-Mutchler-Voting-Algorithm | cai866 | Java | Code | 80 | 246 | package bling.Socket;
public class SocketManagerWithMessageCounter extends SocketManager{
private int msgSent = 0;
private int msgReceive = 0;
public SocketManagerWithMessageCounter(int port){
super(port);
}
public SocketManagerWithMessageCounter(){
super();
}
@Override
... | 34,600 |
https://github.com/dereekb/dbx-components/blob/master/packages/dbx-web/src/lib/layout/list/list.view.value.ts | Github Open Source | Open Source | MIT | null | dbx-components | dereekb | TypeScript | Code | 303 | 1,009 | import { forwardRef, InjectionToken, Provider, StaticProvider, Type } from '@angular/core';
import { ClickableAnchor, DbxInjectionComponentConfig } from '@dereekb/dbx-core';
import { map, Observable, of } from 'rxjs';
import { Maybe } from '@dereekb/util';
export const DBX_VALUE_LIST_VIEW_ITEM = new InjectionToken<unk... | 31,386 |
https://github.com/VISTALL/consulo-kotlin/blob/master/j2k/testData/fileOrElement/enum/constantsWithBody2.kt | Github Open Source | Open Source | Apache-2.0 | null | consulo-kotlin | VISTALL | Kotlin | Code | 46 | 109 | // ERROR: Cannot access 'p': it is 'invisible_fake' in 'A'
public enum class E private constructor(private val p: Int) {
A(1) {
override fun bar() {
foo(this.p)
}
},
B(2) {
override fun bar() {
}
};
fun foo(p: Int) {
}
abstract fun bar()
} | 16,711 |
https://github.com/iBryguy/Drawception-ANBT/blob/master/src/newcanvas/js/functions/bindEvents/changeBrushSize.js | Github Open Source | Open Source | Unlicense | 2,021 | Drawception-ANBT | iBryguy | JavaScript | Code | 65 | 234 | import { anbt } from '../../anbt'
import { setSize } from '../anbt/setSize'
import { strokeBegin } from '../anbt/strokeBegin'
import { strokeEnd } from '../anbt/strokeEnd'
import { ID } from '../idSelector'
export function changeBrushSize(event) {
event.preventDefault()
const size = [...event.currentTarget.classLi... | 8,474 |
https://github.com/rwatts3/mura-heroku/blob/master/webroot/default/js/src/templates/checkbox.hbs | Github Open Source | Open Source | MIT | 2,020 | mura-heroku | rwatts3 | null | Spoken | 27 | 184 | <div class="{{{inputWrapperClass}}}" id="field-{{name}}-container">
<div class="mura-checkbox-group">
<div class="mura-group-label">{{label}}{{#if isrequired}} <ins>Required</ins>{{/if}}</div>
{{#eachCheck dataset.options selected}}
<label class="checkbox">
<input source="{{../dataset.source}}" type="c... | 36,647 |
https://github.com/PerfectusInc/shopfast-responsive-zencart-template/blob/master/Theme/Your-Admin-Folder-Name/includes/extra_datafiles/wishlist_database_tables.php | Github Open Source | Open Source | MIT | 2,018 | shopfast-responsive-zencart-template | PerfectusInc | PHP | Code | 11 | 64 | <?php
// Wishlist
define('UN_TABLE_WISHLISTS', DB_PREFIX . 'un_wishlists');
define('UN_TABLE_PRODUCTS_TO_WISHLISTS', DB_PREFIX . 'un_products_to_wishlists'); | 35,273 |
https://github.com/SaumoPal97/myspace3.0-frontend/blob/master/app/containers/HomePage/constants.js | Github Open Source | Open Source | MIT | null | myspace3.0-frontend | SaumoPal97 | JavaScript | Code | 22 | 104 | /*
*
* HomePage constants
*
*/
export const SAVE_ACCOUNT_DATA = 'app/HomePage/SAVE_ACCOUNT_DATA';
export const SAVE_ACCOUNT_DATA_SUCCESS =
'app/HomePage/SAVE_ACCOUNT_DATA_SUCCESS';
export const SAVE_ACCOUNT_DATA_FAILURE =
'app/HomePage/SAVE_ACCOUNT_DATA_FAILURE';
| 28,066 |
https://github.com/johncclayton/wakeup/blob/master/wakeup/motion_hdmi_service.py | Github Open Source | Open Source | MIT | null | wakeup | johncclayton | Python | Code | 208 | 776 | import zmq, time, sys, json, datetime
from prometheus_client import start_http_server, Gauge, Counter, Summary
from wakeup.configuration import get_pub_settings, get_sub_settings
from pkg_resources import resource_filename
import argparse
import os
(pub_sensor_pin, pub_bind_host, pub_bind_port, pub_prom_port, pub_time... | 27,744 |
https://github.com/platform-acceleration-lab/data-rental-trucks-code/blob/master/app/src/main/java/io/pivotal/pal/data/rentaltrucks/fleet/handler/TruckEnteredMaintenanceHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | data-rental-trucks-code | platform-acceleration-lab | Java | Code | 39 | 234 | package io.pivotal.pal.data.rentaltrucks.fleet.handler;
import io.pivotal.pal.data.framework.event.AsyncEventHandler;
import io.pivotal.pal.data.rentaltrucks.event.TruckEnteredMaintenanceEvent;
import io.pivotal.pal.data.rentaltrucks.fleet.domain.TruckService;
import org.springframework.stereotype.Component;
@Compone... | 27,544 |
https://github.com/GDI-HE/Mapbender2.8/blob/master/http/php/mod_exportMapbenderMetadata2Ckan.php | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | Mapbender2.8 | GDI-HE | PHP | Code | 1,720 | 6,771 | <?php
//mod_exportMapbenderMetadata2Ckan.php
//https://mb2wiki.mapbender2.org/SearchInterface
//
require_once(dirname(__FILE__)."/../../core/globalSettings.php");
require_once(dirname(__FILE__)."/../classes/class_connector.php");
require_once(dirname(__FILE__)."/../classes/class_iso19139.php");
require_once(dirname(__F... | 44,956 |
https://github.com/AntonC9018/FP/blob/master/sem2_2/4.cpp | Github Open Source | Open Source | MIT | 2,020 | FP | AntonC9018 | C++ | Code | 165 | 413 | // 7
// Se da un vector de lungime n de numere intregi.
// De gasit elementele, cele mai apropiate de medie.
#include "stdio.h"
float abs(float x) {
return x > 0 ? x : -x;
}
int main()
{
int n;
printf("Introduceti n:");
scanf("%i", &n);
int arr[n];
for (int i = 0; i < n; i++) {
pr... | 613 |
https://github.com/PacktPublishing/The-Art-of-Doing-Dive-Into-Android-Development-with-Kotlin/blob/master/Section 15/Click/app/src/main/java/com/example/click/ScoreViewModel.kt | Github Open Source | Open Source | MIT | null | The-Art-of-Doing-Dive-Into-Android-Development-with-Kotlin | PacktPublishing | Kotlin | Code | 72 | 222 | package com.example.click
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class ScoreViewModel(private val score: Int): ViewModel() {
//Set up live data
private val _finalScore = MutableLiveData<Int>()
val finalScore: LiveData<Int> get() = _... | 5,526 |
https://github.com/keyno63/intellij-elixir/blob/master/src/org/elixir_lang/structure_view/element/Exception.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | intellij-elixir | keyno63 | Java | Code | 538 | 1,898 | package org.elixir_lang.structure_view.element;
import com.intellij.ide.util.treeView.smartTree.TreeElement;
import com.intellij.navigation.ItemPresentation;
import com.intellij.openapi.util.Pair;
import com.intellij.psi.ElementDescriptionLocation;
import com.intellij.psi.PsiElement;
import com.intellij.usageView.Usag... | 26,399 |
https://github.com/CustomAgile/intellij-plugin/blob/master/src/test/groovy/com/rallydev/intellij/PlatformSpecification.groovy | Github Open Source | Open Source | MIT | null | intellij-plugin | CustomAgile | Groovy | Code | 116 | 356 | package com.rallydev.intellij
import com.intellij.testFramework.LightPlatformTestCase
import com.intellij.util.ui.UIUtil
import org.junit.Rule
import org.junit.rules.TestName
import spock.lang.Specification
/**
* todo: Something isn't quite right with this spec; only a single
* todo: class can extend it due to some... | 4,003 |
https://github.com/aslamz/appium/blob/master/projects/ruby_android/appium/android/specs/test.rb | Github Open Source | Open Source | Apache-2.0 | null | appium | aslamz | Ruby | Code | 24 | 69 | require_relative '../requires' # enable auto complete in RubyMine
describe 'spec home, accessibility, and animation' do
t 'spec' do
home.accessibility_click
back_click
home.animation_click
back_click
end
end | 46,223 |
https://github.com/fossbrandon/Crypto/blob/master/crypto/ciphers/aes/aes.py | Github Open Source | Open Source | MIT | null | Crypto | fossbrandon | Python | Code | 2,178 | 7,504 | # -*- coding: utf-8 -*-
from crypto import __version__
import sys
import base64
from crypto.cipher import Cipher
from hashlib import sha256
from copy import copy
from random import randint
class aes (Cipher):
"""
This is the AES module
Implementation largely based on the work by
... | 1,114 |
https://github.com/matheustf/tcc-oauth/blob/master/src/main/java/com/puc/tcc/oauth/security/service/TokenService.java | Github Open Source | Open Source | Apache-2.0 | null | tcc-oauth | matheustf | Java | Code | 25 | 120 | package com.puc.tcc.oauth.security.service;
import com.puc.tcc.oauth.dto.LoginDTO;
import com.puc.tcc.oauth.dto.TokenDTO;
import com.puc.tcc.oauth.exception.OAuthException;
public interface TokenService {
String getToken(String username, String password) throws OAuthException;
TokenDTO logar(LoginDTO login) th... | 11,941 |
https://github.com/kevmoo/widget.dart/blob/master/build/packages/barback/src/transform.dart | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | 2,021 | widget.dart | kevmoo | Dart | Code | 570 | 1,112 | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.transform;
import 'dart:async';
import 'dart:convert';
import 'package:source_maps/sp... | 38,147 |
https://github.com/sharpdeveloper1980/GPTS_BACKEND/blob/master/app/Http/Controllers/Admin/UniversityController.php | Github Open Source | Open Source | MIT | null | GPTS_BACKEND | sharpdeveloper1980 | PHP | Code | 378 | 2,034 | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
use App\Helpers\Helper;
use DB;
use Auth;
use App\Order;
use App\Product;
use App\Student;
use App\TteUsers;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use View;
class UniversityControl... | 45,554 |
https://github.com/MANI-programer/plugin-JQ/blob/master/Jaq.js | Github Open Source | Open Source | MIT | 2,021 | plugin-JQ | MANI-programer | JavaScript | Code | 331 | 896 | // // alert dialog
// alertify.alert("Message");
//
// // confirm dialog
// alertify.confirm("Message", function (e) {
// if (e) {
// // user clicked "ok"
// } else {
// // user clicked "cancel"
// }
// });
//
// // prompt dialog
// alertify.prompt("Message", function (e, str) {
// // st... | 1,412 |
https://github.com/zeljkot/fables-kotlin/blob/master/jee/idiomatic/src/main/kotlin/fables/kotlin/jee/business/KittenEntity.kt | Github Open Source | Open Source | MIT | 2,020 | fables-kotlin | zeljkot | Kotlin | Code | 78 | 193 | package fables.kotlin.jee.business
import fables.kotlin.jee.Kitten
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
/**
* Persistent kitten.
* Class and all public methods are opened by Kotlin compiler "allopen" plugin.
* Parameterless constructor generated by Kot... | 10,785 |
https://github.com/RealMrLogan/unwordle/blob/master/src/pages/Wordle/Keyboard/vectors/index.js | Github Open Source | Open Source | MIT | null | unwordle | RealMrLogan | JavaScript | Code | 16 | 29 | export { default as enter } from './enter.svg'
export { default as backspace } from './backspace.svg'
| 24,819 |
https://github.com/onap/ncomp-sirius-manager/blob/master/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ncomp-sirius-manager | onap | Java | Code | 553 | 1,915 |
/*-
* ============LICENSE_START==========================================
* OPENECOMP - DCAE
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================
* Licensed... | 22,054 |
https://github.com/kibatic/KibaticCmsBundle/blob/master/Twig/BlockExtension.php | Github Open Source | Open Source | MIT | null | KibaticCmsBundle | kibatic | PHP | Code | 139 | 484 | <?php
namespace Kibatic\CmsBundle\Twig;
use Kibatic\CmsBundle\Entity\Block;
use Kibatic\CmsBundle\Repository\BlockRepository;
use Symfony\Component\Routing\Router;
use Symfony\Component\Security\Core\Authorization\AuthorizationChecker;
class BlockExtension extends \Twig_Extension
{
private $blockRepository;
... | 28,334 |
https://github.com/KDriesen/slippy/blob/master/slippy/contact/tests/test_hertz_full.py | Github Open Source | Open Source | MIT | 2,021 | slippy | KDriesen | Python | Code | 1,095 | 3,599 | import numpy as np
import numpy.testing as npt
import pytest
import scipy.integrate as integrate
from slippy.contact.hertz import _sanitise_radii, hertz_full
def test_sanitise_radii():
npt.assert_allclose(_sanitise_radii(1), [1.0, 1.0])
npt.assert_allclose(_sanitise_radii((1,)), [1.0, 1.0])
npt.assert_... | 27,242 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.