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/edelmoedig/ProcessEnacting-IAIB2020/blob/master/processes/include/form_edit_decision.php | Github Open Source | Open Source | MIT | null | ProcessEnacting-IAIB2020 | edelmoedig | PHP | Code | 441 | 1,980 | <?php
$decisionOptions = $process->getDecisionOptions($_GET['step']);
try {
if (isset($_POST['edit-step-btn']) && !empty($_POST['step-description'])) {
$process->changeStepDescription($step['step_id'], htmlspecialchars($_POST['step-description']));
notifications\set('Successfully edited', 'Step ha... | 28,751 |
https://github.com/x-ahmed/bloggle-api/blob/master/resources/views/frontend/index.blade.php | Github Open Source | Open Source | MIT | 2,021 | bloggle-api | x-ahmed | Blade | Code | 202 | 890 | @extends('layouts.app')
@section('content')
<!-- Start Blog Area -->
<div class="page-blog bg--white section-padding--lg blog-sidebar right-sidebar">
<div class="container">
<div class="row">
<div class="col-lg-9 col-12">
@isset($posts)
<div class="blog-page">
... | 43,139 |
https://github.com/basimf/inputex/blob/master/src/form/lang/inputex-form_pt-BR.js | Github Open Source | Open Source | MIT | 2,015 | inputex | basimf | JavaScript | Code | 7 | 19 | {
"ajaxWait": "Por favor aguarde ..."
} | 16,254 |
https://github.com/AAI-USZ/FixJS/blob/master/input/100+/before/e54bc27a18451a07ddca7243fa937f5edabe3ddd_0_1.js | Github Open Source | Open Source | MIT | 2,022 | FixJS | AAI-USZ | JavaScript | Code | 70 | 262 | function (center, zoom, centerOffset) {
if (this._animatingZoom) {
return true;
}
if (!this.options.zoomAnimation) {
return false;
}
var scale = Math.pow(2, zoom - this._zoom),
offset = centerOffset.divideBy(1 - 1 / scale);
// if offset does not exceed half of the view
if (!this._offsetIsWithi... | 41,953 |
https://github.com/openca/openca-easypki/blob/master/mods/templates.js | Github Open Source | Open Source | MIT | 2,019 | openca-easypki | openca | JavaScript | Code | 875 | 2,159 | /*
* Langs Handler(s)
* Copyright (c) 2016 Massimiliano Pala and Teza Realty
* All Rights Reserved
*/
// This Object
var me = this;
var handlers = [];
const path = require('path');
// Auth Parameters
var params = { login: false };
// Shortcut to the getHandler method (w/ auth)
var getHandler = lib.tools.getHand... | 3,811 |
https://github.com/hameister/ItemStore/blob/master/src/main/java/org/hameister/service/ItemService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | ItemStore | hameister | Java | Code | 150 | 543 | package org.hameister.service;
import org.hameister.model.Item;
import org.hameister.repository.ItemRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
... | 26,405 |
https://github.com/mikhail-khalizev/max/blob/master/source/MikhailKhalizev.Max/source/Program/Auto/z-1019-b1ce-sys.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | max | mikhail-khalizev | C# | Code | 1,127 | 4,682 | using System;
using MikhailKhalizev.Processor.x86.BinToCSharp;
namespace MikhailKhalizev.Max.Program
{
public partial class RawProgram
{
[MethodInfo("0x1019_b1ce-55ececc1")]
public void /* sys */ Method_1019_b1ce()
{
ii(0x1019_b1ce, 1); push(ecx); ... | 44,756 |
https://github.com/onap/dcaegen2-analytics-tca/blob/master/dcae-analytics-cdap-plugins/src/test/java/org/onap/dcae/apod/analytics/cdap/plugins/validator/DMaaPMRSinkPluginConfigValidatorTest.java | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,020 | dcaegen2-analytics-tca | onap | Java | Code | 242 | 923 | /*
* ===============================LICENSE_START======================================
* dcae-analytics
* ================================================================================
* Copyright © 2017 AT&T Intellectual Property. All rights reserved.
* =====================================================... | 48,004 |
https://github.com/igordejanovic/parglare/blob/master/tests/func/grammar/test_repeatable.py | Github Open Source | Open Source | MIT, Python-2.0 | 2,023 | parglare | igordejanovic | Python | Code | 549 | 1,760 | # -*- coding: utf-8 -*-
import pytest
from parglare import Parser, Grammar
from parglare.exceptions import GrammarError, ParseError, RRConflicts
def test_repeatable_zero_or_more():
"""
Tests zero or more repeatable operator.
"""
grammar = """
S: "2" b* "3";
terminals
b: "1";
"""
... | 22,433 |
https://github.com/wanderself/DataStoreService/blob/master/src/main/java/com/gree/grih/datstore/jsonsBean/AirConData.java | Github Open Source | Open Source | MIT | null | DataStoreService | wanderself | Java | Code | 1,172 | 3,361 | package com.gree.grih.datstore.jsonsBean;
/**
* AirConData
* Created by root on 22th.四月.2017
*/
public class AirConData {
public String mac;
public String mid;
public String rowKey;
public String ctime;
public String svrCtime;
public CtlStatus CtlStatus;
public CtlResponse CtlResponse;
... | 19,827 |
https://github.com/kazuare/pnpm/blob/master/packages/pnpmfile/test/pnpmfiles/globalFilterLog.js | Github Open Source | Open Source | MIT | 2,022 | pnpm | kazuare | JavaScript | Code | 14 | 38 | module.exports = {
hooks: {filterLog}
}
function filterLog(log) {
return log.level === 'error'
}
| 11,513 |
https://github.com/Bronko-Inc/hunt-rng/blob/master/src/app/app.component.scss | Github Open Source | Open Source | MIT | 2,021 | hunt-rng | Bronko-Inc | SCSS | Code | 156 | 568 | #main-container {
width: 100vw;
height: 100vh;
background: url("/assets/img/bg.png");
background-size: cover;
display: flex;
flex-direction: column;
#main-card {
align-self: center;
padding-top: 35px;
justify-content: space-evenly;
box-sizing: border-box;
width: 80%;
@media only s... | 48,964 |
https://github.com/tsimeunovic/BerryForms/blob/master/test/unit/client/components/dateFieldControllerTests.ts | Github Open Source | Open Source | MIT | 2,020 | BerryForms | tsimeunovic | TypeScript | Code | 362 | 1,525 | /// <reference path="../../../jasmine.d.ts" />
/// <reference path="../../mocks/scopeMock.ts" />
/// <reference path="../../../../client/extensions/stringExtensions.ts" />
/// <reference path="../../../../client/angular/models/core/entityModel.ts" />
/// <reference path="../../../../client/angular/components/fieldTypes... | 14,082 |
https://github.com/fatkhur1960/pandemia/blob/master/src/models.rs | Github Open Source | Open Source | MIT | 2,021 | pandemia | fatkhur1960 | Rust | Code | 865 | 2,809 | //! Definisi struct untuk model-model yang ada di dalam database.
use crate::{result::Result, schema::user_settings, types::RecordDiff};
use chrono::NaiveDateTime;
use diesel::prelude::*;
use serde::Serialize;
use std::fmt;
use crate::ID;
/// Interface untuk model yang pasti memiliki id
/// sehingga bisa dijadikan ... | 31,196 |
https://github.com/vijme/senchaapp/blob/master/app/view/Firstcontainer.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | senchaapp | vijme | JavaScript | Code | 192 | 618 | /*
* File: app/view/Firstcontainer.js
*
* This file was generated by Sencha Architect version 3.1.0.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Sencha Touch 2.3.x library, under independent license.
* License of Sencha Architect does not include license for Sencha Touch 2.3.x. ... | 18,737 |
https://github.com/suztomo/java-billingbudgets/blob/master/grpc-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceGrpc.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | java-billingbudgets | suztomo | Java | Code | 2,417 | 10,293 | /*
* 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 ... | 20,420 |
https://github.com/k896152374/limax_5.16/blob/master/java/auany/src/limax/auany/HttpClientManager.java | Github Open Source | Open Source | MIT | 2,021 | limax_5.16 | k896152374 | Java | Code | 86 | 321 | package limax.auany;
import java.util.function.BiConsumer;
import org.w3c.dom.Element;
import limax.http.HttpHandler;
import limax.util.ElementHelper;
import limax.util.HttpClientService;
public final class HttpClientManager {
private static HttpClientService service;
static void initialize(Element self, BiConsu... | 18,117 |
https://github.com/liuhuaxian/http-client/blob/master/common/http_list.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | http-client | liuhuaxian | C | Code | 157 | 618 | /*
* @Author: jiejie
* @Github: https://github.com/jiejieTop
* @Date: 2019-12-11 22:46:33
* @LastEditTime: 2020-04-27 23:28:12
* @Description: the following code references TencentOS tiny, please keep the author information and source code according to the license.
*/
# include "http_list.h"
static void _http_l... | 19,327 |
https://github.com/guillep/pharo/blob/master/src/OpalCompiler-Core.package/IRBytecodeGenerator.class/instance/addLastLiteral..st | Github Open Source | Open Source | MIT | 2,017 | pharo | guillep | null | Spoken | 46 | 96 | private
addLastLiteral: object
lastLiteral ifNil: [ ^ lastLiteral := object ].
((lastLiteral literalEqual: object)
or: [
"case of metaclass, they have no unique association"
(lastLiteral isKindOf: Association) and: [ lastLiteral key isNil ] ])
ifFalse: [ self error: 'there can only be one last literal' ] | 11,422 |
https://github.com/sumocoders/fork-cms-module-generator/blob/master/src/CLI/Console/Generate/Backend/Action/DetailAction.php | Github Open Source | Open Source | MIT | 2,019 | fork-cms-module-generator | sumocoders | PHP | Code | 73 | 418 | <?php
namespace ModuleGenerator\CLI\Console\Generate\Backend\Action;
use ModuleGenerator\CLI\Console\GenerateCommand;
use ModuleGenerator\Module\Backend\Actions\BackendActionDataTransferObject;
use ModuleGenerator\Module\Backend\Actions\BackendActionType;
use ModuleGenerator\Module\Backend\Actions\Detail\Detail;
use ... | 38,228 |
https://github.com/evilfer/riacms/blob/master/src/server/bundles/request-location/request-location-bundle.ts | Github Open Source | Open Source | MIT | 2,018 | riacms | evilfer | TypeScript | Code | 180 | 564 | import * as Promise from "bluebird";
import * as extend from "extend";
import {LocationData, LocationStore} from "../../../common/bundles/location/location-data";
import {ServerBundle, ServerBundleDataInitMap, ServerRequestContext} from "../server-bundle";
export interface RequestLocationBundleServices extends ServerB... | 37,230 |
https://github.com/Abdsaddik/Hotel-Reservation-System/blob/master/include/Date.hpp | Github Open Source | Open Source | MIT | null | Hotel-Reservation-System | Abdsaddik | C++ | Code | 64 | 240 | #ifndef Date_HPP
#define Date_HPP
#include "HotelException.hpp"
#include <iostream>
#include <regex>
const std::regex date_expr("^\\s*[0-9]{2}\\s*.\\s*[0-9]{2}\\s*.\\s*(19|20)[0-9]{2}\\s*$");
class Date {
private:
std::string day_;
std::string month_;
std::string year_;
static const int monthDays[];
... | 13,228 |
https://github.com/carlitador/MachUpX/blob/master/dev/obsolete/client.py | Github Open Source | Open Source | MIT | null | MachUpX | carlitador | Python | Code | 21 | 94 | import requests
import json
url = "http://aero.go.usu.edu:8080"
data = {'data':[{'key1':'val1'}, {'key2':'val2'}]}
headers = {'content-type': 'application/json'}
r = requests.post(url, data=json.dumps(data), headers=headers)
print(r.content) | 21,776 |
https://github.com/beltrachi/antlr-3/blob/master/src/org/antlr/tool/DefineGrammarItemsWalker.java | Github Open Source | Open Source | BSD-3-Clause | 2,016 | antlr-3 | beltrachi | Java | Code | 7,282 | 30,041 | // $ANTLR 2.7.7 (2006-01-29): "define.g" -> "DefineGrammarItemsWalker.java"$
/*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistr... | 48,790 |
https://github.com/Badokas/max-api/blob/master/script/cmakepp/source/cmake/cmakelists/cmakelists_open.cmake | Github Open Source | Open Source | MIT | 2,022 | max-api | Badokas | CMake | Code | 42 | 174 | ## `([<path>])-><cmakelists>|<null>`
##
## opens a the closests cmakelists file (anchor file) found in current or parent directory
## returns nothing if no cmakelists file is found.
function(cmakelists_open)
file_find_anchor("CMakeLists.txt" ${ARGN})
ans(cmakelists_path)
if(NOT cmakelists_path)
return()
el... | 26,320 |
https://github.com/stopmachine/sg-sesame/blob/master/setup.py | Github Open Source | Open Source | Apache-2.0 | null | sg-sesame | stopmachine | Python | Code | 101 | 438 | #!/usr/bin/env python
from setuptools import setup, find_packages # type: ignore
with open("README.md") as readme_file:
readme = readme_file.read()
with open("requirements.txt") as req_file:
requirements = req_file.readlines()
with open("src/sg_sesame/_version.py") as ver_file:
version = ver_file.read(... | 28,631 |
https://github.com/x5y/SparkNZ-Xposed/blob/master/TelecomApp_Decompiled/smali/org/codehaus/jackson/util/JsonParserDelegate.smali | Github Open Source | Open Source | MIT | 2,016 | SparkNZ-Xposed | x5y | Smali | Code | 1,113 | 6,418 | .class public Lorg/codehaus/jackson/util/JsonParserDelegate;
.super Lorg/codehaus/jackson/JsonParser;
.source "JsonParserDelegate.java"
# instance fields
.field protected delegate:Lorg/codehaus/jackson/JsonParser;
# direct methods
.method public constructor <init>(Lorg/codehaus/jackson/JsonParser;)V
.locals 0
... | 26,616 |
https://github.com/tefra/xsdata-w3c-tests/blob/master/output/models/nist_data/atomic/unsigned_short/schema_instance/nistschema_sv_iv_atomic_unsigned_short_total_digits_2_xsd/__init__.py | Github Open Source | Open Source | MIT | 2,021 | xsdata-w3c-tests | tefra | Python | Code | 9 | 114 | from output.models.nist_data.atomic.unsigned_short.schema_instance.nistschema_sv_iv_atomic_unsigned_short_total_digits_2_xsd.nistschema_sv_iv_atomic_unsigned_short_total_digits_2 import NistschemaSvIvAtomicUnsignedShortTotalDigits2
__all__ = [
"NistschemaSvIvAtomicUnsignedShortTotalDigits2",
]
| 4,686 |
https://github.com/pajay-media/test/blob/master/test/admin_action.js | Github Open Source | Open Source | Apache-2.0 | null | test | pajay-media | JavaScript | Code | 343 | 1,295 | const display= (params1,params2,params3) =>{
if(params1=="mentee"){
let user= document.getElementById('user');
let ment=document.getElementById(params1);
let resp=document.getElementById(params3);
let find=document.getElementById('find');
find.style.display="none";
//fetch infos from database here
var xml = ... | 22,531 |
https://github.com/guancgsuccess/petsvalley/blob/master/src/main/resources/static/js/claim/claim.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | petsvalley | guancgsuccess | JavaScript | Code | 754 | 4,139 | //创建XMLHttpRequest对象
var xhr = null;
//获取所有认领信息链接
var url_getClaimList = "claim/getClaimList/page/";
//页面加载时显示第一页认领信息
window.onload = function() {
getClaimList(url_getClaimList+1);
}
//通过认领状态获取认领信息链接
var url_getByState = "claim/getClaimList/claimState/";
//认领状态
var claimState;
//链接中页码
var url_page="/page/";
//所有认... | 44,610 |
https://github.com/ferjorosa/bayesian-latent-forests/blob/master/src/main/java/voltric/learning/structure/hillclimbing/efficientlocal/EffLocalDeleteArc.java | Github Open Source | Open Source | Apache-2.0 | null | bayesian-latent-forests | ferjorosa | Java | Code | 484 | 1,270 | package voltric.learning.structure.hillclimbing.efficientlocal;
import voltric.data.DiscreteData;
import voltric.graph.Edge;
import voltric.learning.score.ScoreType;
import voltric.model.DiscreteBayesNet;
import voltric.model.DiscreteBeliefNode;
import voltric.variables.DiscreteVariable;
import voltric.variables.Varia... | 40,831 |
https://github.com/qinting513/Learning-QT/blob/master/2016 Plan/数据结构/13 BiTNodeIterator非递归遍历/BiTNodeIterator/BiTNode.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | Learning-QT | qinting513 | C | Code | 52 | 177 | //
// BiTNode.h
// BiTNodeIterator
//
// Created by Qinting on 2016/12/18.
// Copyright © 2016年 QT. All rights reserved.
//
#ifndef BiTNode_h
#define BiTNode_h
#include <stdio.h>
// 定义一个二叉树
typedef struct _tag_BiTNode
{
struct _tag_BiTNode *lchild,*rchild;
int data;
}BiTNode;
// 中序遍历 LDR
void inOrder(Bi... | 22,223 |
https://github.com/tokera-com/ate/blob/master/tokera/src/model/wallet_instance.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | ate | tokera-com | Rust | Code | 71 | 155 | use serde::*;
use ate::prelude::ChainKey;
/// Running instance of a particular web assembly application
/// within the hosting environment
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct WalletInstance {
/// Name of the instance attached to the identity
pub name: String,
/// ID of this instance ... | 37,716 |
https://github.com/makaw/Fotik/blob/master/src/gui/photoview/PhotoPanel.java | Github Open Source | Open Source | MIT | null | Fotik | makaw | Java | Code | 908 | 3,325 | /*
* Fotik
* Przeglądarka zdjęć, przekształcenia obrazu, filtry, FFT 2D
* Maciej Kawecki 01/2016
*/
package gui.photoview;
import gui.GUI;
import gui.ImageRes;
import gui.dialogs.InfoDialog;
import fotik.History;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
im... | 24,835 |
https://github.com/zigszigsdk/FTP2Azure/blob/master/Source/Ftp/NoopCommandHandler.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | FTP2Azure | zigszigsdk | C# | Code | 39 | 127 | using AzureFtpServer.Ftp;
namespace AzureFtpServer.FtpCommands
{
/// <summary>
/// NOOP command handler
/// </summary>
internal class NoopCommandHandler : FtpCommandHandler
{
public NoopCommandHandler(FtpConnectionObject connectionObject)
: base("NOOP", connectionObject)
... | 3,651 |
https://github.com/mingracle2/VRPhone/blob/master/FittsLawUnity/Assets/Scripts/TestData/TestSequence.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | VRPhone | mingracle2 | C# | Code | 542 | 1,341 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
/// <summary>
/// This class collects all data needed to create a TestSequenceDTO. Data includes the
/// targets' base and effective amplitude, width and index of difficulty, start time,
/// the block tha... | 49,711 |
https://github.com/pgaines937/GeoSparkModified/blob/master/src/main/java/org/datasyslab/geospark/utils/RectangleYMinComparator.java | Github Open Source | Open Source | MIT | 2,016 | GeoSparkModified | pgaines937 | Java | Code | 59 | 245 | package org.datasyslab.geospark.utils;
/**
*
* @author Arizona State University DataSystems Lab
*
*/
import com.vividsolutions.jts.geom.Envelope;
import java.io.Serializable;
import java.util.Comparator;
public class RectangleYMinComparator extends GeometryComparator implements Comparator<Envelope>, Serializab... | 23,143 |
https://github.com/zhanglong11/vue-manage/blob/master/src/views/device/equipmentManage/checkRecord/checkRecordDetail.vue | Github Open Source | Open Source | MIT | null | vue-manage | zhanglong11 | Vue | Code | 271 | 1,236 | <!--
* @任务编号: 2824 || 详情接口对接
* @开发人员:张龙
* @日期:2020-03-03
* @任务类型:修改代码
-->
<template>
<div>
<!-- 流程图 start -->
<ViewFlow :id="id" />
<!-- 流程图 end -->
<div style="text-align: right; padding-top: 20px;">
<span style="color: #c1c1c1; font-size: 12px;">状态</span><br />
<span>{{ _.get(_.find(para... | 5,716 |
https://github.com/SpencerPark/mellowd-gradle-plugin/blob/master/src/main/groovy/cas/cs4tb3/mellowd/gradle/MellowDPlugin.groovy | Github Open Source | Open Source | MIT | null | mellowd-gradle-plugin | SpencerPark | Groovy | Code | 427 | 1,115 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Spencer Park
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use,... | 30,553 |
https://github.com/ivogabe/TypeScript/blob/master/src/services/syntax/syntaxUtilities.ts | Github Open Source | Open Source | Apache-2.0 | 2,015 | TypeScript | ivogabe | TypeScript | Code | 716 | 3,096 | ///<reference path='references.ts' />
module TypeScript {
export class SyntaxUtilities {
public static isAnyFunctionExpressionOrDeclaration(ast: ISyntaxElement): boolean {
switch (ast.kind()) {
case SyntaxKind.SimpleArrowFunctionExpression:
case SyntaxKind.Parent... | 10,334 |
https://github.com/tongzx/e.net/blob/master/plugin/common.net.h | Github Open Source | Open Source | MIT | 2,016 | e.net | tongzx | C++ | Code | 327 | 1,334 | #pragma once
using namespace System;
using namespace System::Collections::Generic;
using namespace System::Runtime::InteropServices;
using namespace Mono::Cecil;
using namespace Mono::Cecil::Cil;
const System::Reflection::BindingFlags BINDING_ALL = System::Reflection::BindingFlags::Public | System::Reflection::Bindin... | 9,347 |
https://github.com/sonecabr/nodejs-swagger-doc/blob/master/api/mock/users.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | nodejs-swagger-doc | sonecabr | JavaScript | Code | 108 | 266 | const records = [
{
id: 1,
username: 'myuser',
token: 'nMUbjkA8KcgAjAqmAFeSsarn',
displayName: 'MockUser',
emails: [ { value: 'mock@localhost.com' } ],
}
];
const findOne = (token, next) => {
process.nextTick(() => {
for (let i = 0, len = records.length; i < le... | 10,336 |
https://github.com/downtownjakebrown/DefaultUtils/blob/master/Sources/DefaultUtils/Utils+Time.swift | Github Open Source | Open Source | MIT | null | DefaultUtils | downtownjakebrown | Swift | Code | 130 | 267 | //
// See LICENSE file for this package’s licensing information.
//
import Foundation
extension TimeInterval {
/// Converts milliseconds to seconds.
public mutating func millsToSecs() {
self /= 1000
}
/// Converts seconds to milliseconds.
public mutating func secsToMills() {
... | 7,620 |
https://github.com/tylert88/unfamiliar-environment/blob/master/app/controllers/cohort_epics_controller.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | unfamiliar-environment | tylert88 | Ruby | Code | 65 | 322 | class CohortEpicsController < ApplicationController
after_action :verify_authorized
before_action do
@epic = Epic.find(params[:epic_id])
authorize(@epic)
end
def create
@cohort_epic = CohortEpic.new(
epic: @epic,
cohort: Cohort.find(params[:cohort_id])
)
if @cohort_epic.save
... | 43,646 |
https://github.com/SXTSOFT/bloc/blob/master/examples/flutter_firebase_login/lib/login/bloc/login_bloc.dart | Github Open Source | Open Source | MIT | 2,019 | bloc | SXTSOFT | Dart | Code | 204 | 784 | import 'dart:async';
import 'package:bloc/bloc.dart';
import 'package:meta/meta.dart';
import 'package:rxdart/rxdart.dart';
import 'package:flutter_firebase_login/login/login.dart';
import 'package:flutter_firebase_login/user_repository.dart';
import 'package:flutter_firebase_login/validators.dart';
class LoginBloc ex... | 28,109 |
https://github.com/Hoofoo-WHU/semon-ui/blob/master/src/component/Tabs/Tab.tsx | Github Open Source | Open Source | MIT | 2,019 | semon-ui | Hoofoo-WHU | TSX | Code | 188 | 668 | import * as React from 'react'
import classMerge from '../../until/class-merge'
import * as PropTypes from 'prop-types'
import SemonPropTypes from '../../until/semon-prop-types'
import styled from '@/style/component/Tabs/Tab.scss'
import TabsContext, { ITabsContext } from './TabsContext'
class Tab extends React.Compon... | 39,863 |
https://github.com/dubbogo/dubbo-go-benchmark/blob/master/3.0/dubbo/stress/client.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | dubbo-go-benchmark | dubbogo | Go | Code | 214 | 558 | /*
* 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 ... | 23,237 |
https://github.com/vanderleik/Java_Basico/blob/master/ExemploString/src/ExemploTamanhoString.java | Github Open Source | Open Source | MIT | 2,021 | Java_Basico | vanderleik | Java | Code | 26 | 73 |
public class ExemploTamanhoString {
public static void main(String[] args) {
String texto = "Curso de Java Fundamentos";
System.out.println("Tamanho: " + texto.length() + " caracteres");
}
}
| 25,581 |
https://github.com/alexandragushchina-d/messager/blob/master/src/Config.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | messager | alexandragushchina-d | Java | Code | 23 | 41 | public class Config {
public static String FILE_PATH = "";
public static boolean DEBUG = false;
public static String HOST = "localhost";
}
| 10,557 |
https://github.com/mmbase/natmm/blob/master/templates/natmm/includes/shoppingcart/update.jsp | Github Open Source | Open Source | DOC, Unlicense | null | natmm | mmbase | null | Spoken | 279 | 1,032 | <%@include file="../getresponse.jsp" %>
<%@include file="vars.jsp" %>
<%
String actionId = request.getParameter("t"); if (actionId==null) {actionId=""; }
String totalitemsId = (String) session.getAttribute("totalitems");
if(totalitemsId==null) totalitemsId = "0";
String postingStr = request.getParameter("pst");
if(post... | 30,992 |
https://github.com/WeGdufe/SmallGdufe-Server/blob/master/controllers/CardController.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | SmallGdufe-Server | WeGdufe | PHP | Code | 350 | 1,861 | <?php
/**
* User: xiaoguang
* Date: 2017/2/7
*/
namespace app\controllers;
use Yii;
use yii\web\Controller;
//校园卡
class CardController extends AuthBaseController
{
/**
* @api {post} card/current-cash 获取校园卡余额
* @apiVersion 1.0.0
* @apiName current-cash
* @apiGroup Card
*
* @apiDes... | 19,799 |
https://github.com/geoware/goojs/blob/master/test/unit/entities/systems/LightDebugSystem-test.js | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause, MIT, Zlib | 2,016 | goojs | geoware | JavaScript | Code | 4 | 24 | define(['goo/debugpack/systems/LightDebugSystem'], function (LightDebugSystem) {});
| 42,869 |
https://github.com/AndrewPla/TOPdeskPS/blob/master/TOPdeskPS/functions/Asset Management/Send-TdAssetImportFile.ps1 | Github Open Source | Open Source | MIT | 2,022 | TOPdeskPS | AndrewPla | PowerShell | Code | 357 | 862 | function Send-TdAssetImportFile {
<#
.SYNOPSIS
Sends a file to containing assets to be uploaded to asset management.
.DESCRIPTION
In order to upload assets using this endpoint you need to first configure an import inside TOPdesk.
As an operator, go to Settings -> Import Settings ->... | 40,453 |
https://github.com/TTcoinDeveloper/HomeSchool/blob/master/source/EduCATS/Data/Models/Subjects/SubjectModel.cs | Github Open Source | Open Source | MIT | 2,021 | HomeSchool | TTcoinDeveloper | C# | Code | 95 | 274 | using Newtonsoft.Json;
namespace EduCATS.Data.Models
{
/// <summary>
/// Subject ID.
/// </summary>
public class SubjectModel
{
/// <summary>
/// Subject name.
/// </summary>
[JsonProperty("Name")]
public string Name { get; set; }
/// <summary>
/// Subject ID.
/// </summary>
[JsonProperty("Id"... | 23,019 |
https://github.com/fafhrd91/pyramid_amdjs/blob/master/pyramid_amdjs/tests/base.py | Github Open Source | Open Source | MIT | 2,015 | pyramid_amdjs | fafhrd91 | Python | Code | 135 | 574 | import sys
from pyramid import testing
from pyramid.interfaces import IRequest
from pyramid.interfaces import IRouteRequest
from pyramid.interfaces import IRequestExtensions
if sys.version_info[:2] == (2, 6):
from unittest2 import TestCase
TestCase
else:
from unittest import TestCase
class BaseTestCase(T... | 53,632 |
https://github.com/lurodrigo/solved-problems/blob/master/obi/2012-nivel2-fase2/bomba/bomba.2.in | Github Open Source | Open Source | MIT | 2,012 | solved-problems | lurodrigo | null | Spoken | 16 | 22 | 4 0 3 4
0 1 1
1 2 0
2 3 1
2 0 0
| 13,773 |
https://github.com/saitbnzl/flutter_paycards/blob/master/android/src/main/cpp/crossplatform/jniImpl/RecognitionCoreDelegate.h | Github Open Source | Open Source | MIT | 2,021 | flutter_paycards | saitbnzl | C++ | Code | 88 | 362 | //
// RecognitionCoreDelegate.h
// CardRecognizer
//
// Created by Vladimir Tchernitski on 13/01/16.
// Copyright © 2016 Vladimir Tchernitski. All rights reserved.
//
#include <memory>
#include <jni.h>
#include "IRecognitionCoreDelegate.h"
#include "IRecognitionResult.h"
#include "Public/Enums.h"
class CRecognit... | 28,118 |
https://github.com/masanam/maxon/blob/master/application/controllers/eshop_admin_mv/Dashboard.php | Github Open Source | Open Source | MIT | 2,021 | maxon | masanam | PHP | Code | 197 | 1,180 | <?php if(!defined('BASEPATH')) exit('No direct script access allowd');
class Dashboard extends CI_Controller {
private $success=false;
private $message="";
function __construct()
{
parent::__construct();
$this->load->helper(array('url','form'));
$this->load->library('template_eshop_admin');
}
function in... | 42,164 |
https://github.com/rustedwizard/BuildXL/blob/master/Public/Src/Cache/ContentStore/Distributed/NuCache/MachineId.cs | Github Open Source | Open Source | MIT | 2,022 | BuildXL | rustedwizard | C# | Code | 359 | 830 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Diagnostics.ContractsLight;
using System.IO;
namespace BuildXL.Cache.ContentStore.Distributed.NuCache
{
/// <summary>
/// Represents id of a machine.
/// </summary>
public readonly struct MachineId : ... | 23,565 |
https://github.com/t-triobox/incubator-mxnet/blob/master/src/operator/quantization/dnnl/dnnl_quantized_reshape.cc | Github Open Source | Open Source | Apache-2.0 | 2,022 | incubator-mxnet | t-triobox | C++ | Code | 280 | 957 | /*
* 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 ... | 9,010 |
https://github.com/litejs/functional-lite/blob/master/ip.js | Github Open Source | Open Source | MIT | null | functional-lite | litejs | JavaScript | Code | 46 | 164 |
!function(S){
//** IP helpers
S.ip2int = function() {
var t = (this+".0.0.0").split(".")
return ((t[0] << 24) | (t[1] << 16) | (t[2] << 8 ) | (t[3]))>>>0
}
S.int2ip = N.int2ip = function() {
var t = +this
return [t>>>24, (t>>>16)&0xFF, (t>>>8)&0xFF, t&0xFF].join(".")
}
//*/
}(String.prototype)
| 10,459 |
https://github.com/ayaromenok/YaSchengenCalc/blob/master/src/mainCon.cpp | Github Open Source | Open Source | MIT | 2,019 | YaSchengenCalc | ayaromenok | C++ | Code | 47 | 328 | #include <QCoreApplication>
#include <QDebug>
#include <QDate>
#include "yaschengencalc.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "YaSchengenCalc/console";
YaSchengenCalc sc;
// sc.addDateRange(QDate(2018,1,10), QDate(2017,11,25)); //test: swap
// sc.addDateR... | 42,155 |
https://github.com/prideloki/universal-translator/blob/master/resources/locales/en_GH/currency.go | Github Open Source | Open Source | MIT | 2,016 | universal-translator | prideloki | Go | Code | 15 | 65 | package en_GH
import "github.com/go-playground/universal-translator"
var currencies = ut.CurrencyFormatValue{"GHS": ut.Currency{Currency: "GHS", DisplayName: "Ghanaian Cedi", Symbol: "GH₵"}}
| 11,668 |
https://github.com/kevinzakka/pytorch_sac/blob/master/torchsac/agent/sac.py | Github Open Source | Open Source | MIT | 2,021 | pytorch_sac | kevinzakka | Python | Code | 400 | 1,872 | import numpy as np
import torch
import torch.nn.functional as F
from torchsac.agent import Agent
from torchsac import utils
from torchsac.agent.critic import DoubleQCritic
from torchsac.agent.actor import DiagGaussianActor
class SACAgent(Agent):
"""SAC algorithm."""
def __init__(self, cfg, device):
... | 19,093 |
https://github.com/zhengj2007/bfo/blob/master/docs/OWL-TIME/tests/tcq-counterexample-1.owl | Github Open Source | Open Source | CC-BY-4.0 | null | bfo | zhengj2007 | null | Spoken | 348 | 2,439 | <?xml version="1.0"?>
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/example/alanr/untitled-ontology-440#"
xml:base="http://purl.obolibrary.org/obo/example/alanr/untitled-ontology-440"
xmlns:obo="http://purl.obolibrary.org/obo/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://ww... | 7,111 |
https://github.com/hartley9/jacdac-docs/blob/master/src/components/hooks/useLocationSearchParam.ts | Github Open Source | Open Source | MIT | 2,022 | jacdac-docs | hartley9 | TypeScript | Code | 118 | 271 | import { useMemo } from "react"
export function useLocationSearchParamString(key: string): string {
return useMemo(() => {
if (typeof window !== "undefined") {
const url = new URL(window.location.href)
return url.searchParams.get(key)
}
return undefined
}, [key])... | 29,563 |
https://github.com/will1001/simanis_web/blob/master/resources/views/pages/chartDetails.blade.php | Github Open Source | Open Source | MIT | null | simanis_web | will1001 | PHP | Code | 243 | 1,544 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simanis</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/boot... | 43,439 |
https://github.com/eschriek/TM2Stat/blob/master/tm/Input.cs | Github Open Source | Open Source | MIT | null | TM2Stat | eschriek | C# | Code | 114 | 321 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.DirectX.DirectInput;
namespace tm
{
class Input
{
public static string[] FindJoysticks()
{
string[] systemJoysticks = null;
try
... | 20,425 |
https://github.com/BeePerNet/SizeOnDisk/blob/master/WinProps/PropertyStore.cs | Github Open Source | Open Source | MIT | 2,022 | SizeOnDisk | BeePerNet | C# | Code | 1,690 | 4,985 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using static WinProps.PInvoke;
namespace WinProps {
/// <summary>
/// Represents the store of properties associated with an item. This class encapsulates the <a href="... | 266 |
https://github.com/eltociear/abracadabra/blob/master/src/refactorings/extract-class/EXTRACT_CLASS_COMMAND.ts | Github Open Source | Open Source | MIT | 2,022 | abracadabra | eltociear | TypeScript | Code | 10 | 51 | export const EXTRACT_CLASS_COMMAND = "extractClass";
export const ABRACADABRA_EXTRACT_CLASS_COMMAND = `abracadabra.${EXTRACT_CLASS_COMMAND}`;
| 18,288 |
https://github.com/batsatt/helidon-build-tools/blob/master/ide-support/lsp/jdt/io.helidon.jdt.extension.test/src/main/java/io/helidon/jdt/extension/test/HelidonPropertiesProviderTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | helidon-build-tools | batsatt | Java | Code | 401 | 1,565 | /*
* Copyright (c) 2021 Oracle and/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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 42,065 |
https://github.com/Williampaz/FarmSystem/blob/master/postgresDataSet4.Designer.cs | Github Open Source | Open Source | MIT | null | FarmSystem | Williampaz | C# | Code | 4,892 | 27,239 | //------------------------------------------------------------------------------
// <auto-generated>
// O código foi gerado por uma ferramenta.
// Versão de Tempo de Execução:4.0.30319.42000
//
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for gerado... | 38,715 |
https://github.com/orange-form/orange-admin/blob/master/orange-demo-single/orange-demo-single-service/application-webadmin/src/main/java/com/orangeforms/webadmin/app/controller/StudentClassController.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | orange-admin | orange-form | Java | Code | 1,105 | 5,646 | package com.orangeforms.webadmin.app.controller;
import com.orangeforms.common.log.annotation.OperationLog;
import com.orangeforms.common.log.model.constant.SysOperationLogType;
import com.github.pagehelper.page.PageMethod;
import com.orangeforms.webadmin.app.vo.*;
import com.orangeforms.webadmin.app.dto.*;
import com... | 37,559 |
https://github.com/hp6120c/webpack/blob/master/template/src/main.js | Github Open Source | Open Source | MIT | null | webpack | hp6120c | JavaScript | Code | 137 | 509 | {{#if_eq build "standalone"}}
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
{{/if_eq}}
import Vue from 'vue'
import App from './App'
import http from './api/api.js'
import router from './router'
import axios from 'axios'
{{#vu... | 10,996 |
https://github.com/YJBeetle/QtAndroidAPI/blob/master/android-31/android/hardware/lights/LightState_Builder.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | QtAndroidAPI | YJBeetle | C++ | Code | 66 | 351 | #include "./LightState.hpp"
#include "./LightState_Builder.hpp"
namespace android::hardware::lights
{
// Fields
// QJniObject forward
LightState_Builder::LightState_Builder(QJniObject obj) : JObject(obj) {}
// Constructors
LightState_Builder::LightState_Builder()
: JObject(
"android.hardware.lights.Light... | 47,536 |
https://github.com/MUDV587/UnityFx.Tasks/blob/master/Assets/Plugins/UnityFx.Tasks/Runtime/Scripts/Extensions/AnimatorExtensions.cs | Github Open Source | Open Source | MIT | 2,019 | UnityFx.Tasks | MUDV587 | C# | Code | 328 | 889 | // Copyright (c) Alexander Bogarsukov.
// Licensed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
namespace UnityFx.Tasks
{
/// <summary>
/// Extensions methods... | 18,476 |
https://github.com/LCLPYT/LauncherLogic/blob/master/src/main/java/work/lclpnet/launcherlogic/util/LoggingPrintStream.java | Github Open Source | Open Source | MIT | null | LauncherLogic | LCLPYT | Java | Code | 324 | 1,145 | package work.lclpnet.launcherlogic.util;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.nio.charset.StandardCharsets;
import java.util.Locale;
public class LoggingPrintStream extends PrintStream {
public static PrintStream origErr = null;
protected OutputStre... | 9,208 |
https://github.com/UtoYuri/tagee/blob/master/web/utils/common_test.go | Github Open Source | Open Source | Apache-2.0 | null | tagee | UtoYuri | Go | Code | 89 | 239 | package utils
import (
"testing"
)
func TestValidOrDefault(t *testing.T) {
var testCases = []struct{
inputValue interface{}
defaultValue interface{}
expectResult interface{}
}{
{ nil, 1, 1 },
{ 0, 1, 0 },
{ 1, 2, 1 },
{ true, false, true },
{ false, true, false },
{ "", "a", "a" },
{ "a", "b",... | 32,036 |
https://github.com/pengwenbo/jenkinstest/blob/master/TopGISWeb/jimu.js/cronosgis/utils/ArrayUtil.js | Github Open Source | Open Source | BSD-3-Clause, MIT, LicenseRef-scancode-public-domain-disclaimer, Apache-2.0 | 2,019 | jenkinstest | pengwenbo | JavaScript | Code | 52 | 179 | /**
* Created by alwin on 2016/8/31.
*/
/**
* Created by alwin on 2016/8/31.
*/
define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/date',
'dojo/topic',
'dojo/json'
],
function(declare, lang, array, dojoDate, topic, dojoJson) {
... | 14,180 |
https://github.com/isabella232/formatic/blob/master/docs/snippets/plugin-api-renderTag.js | Github Open Source | Open Source | MIT | 2,022 | formatic | isabella232 | JavaScript | Code | 210 | 474 | import React from 'react';
/** @jsx jsx */
import { css, jsx } from '@emotion/core';
import styled from '@emotion/styled';
const labelCss = css(`
border: 1px solid black;
`);
const RemoveItemButton = styled.button`
color: red;
`;
const passwordCss = css(`
color: red;
`);
// A helper function to render childre... | 22,810 |
https://github.com/hamatoma/dart_bones/blob/master/lib/src/base/logger_html.dart | Github Open Source | Open Source | CC0-1.0 | 2,021 | dart_bones | hamatoma | Dart | Code | 56 | 241 | import 'dart:convert' as convert;
import 'memory_logger.dart';
class HtmlLogger extends MemoryLogger {
HtmlLogger(String filename, [int logLevel = 1]) : super(logLevel);
String asDiv() {
var buffer = StringBuffer();
if (messages.isNotEmpty) {
buffer.write('<div class="logger">');
messages.for... | 18,662 |
https://github.com/dda119141/mp3tags/blob/master/include/3rd-party/lyra/tests/unrecognized_opts_run_test.cpp | Github Open Source | Open Source | BSL-1.0, MIT | 2,022 | mp3tags | dda119141 | C++ | Code | 78 | 227 | /*
Copyright Rene Rivera 2019
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#include <lyra/lyra.hpp>
#include "mini_test.hpp"
int main()
{
using namespace lyra;
bfg::mini_test::scope test;
{
bool a... | 53,628 |
https://github.com/cloud-barista/cb-spider/blob/master/api-runtime/common-runtime/VMSpecHandler.go | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | cb-spider | cloud-barista | Go | Code | 407 | 1,245 | // Cloud Control Manager's Rest Runtime of CB-Spider.
// The CB-Spider is a sub-Framework of the Cloud-Barista Multi-Cloud Project.
// The CB-Spider Mission is to connect all the clouds with a single interface.
//
// * Cloud-Barista: https://github.com/cloud-barista
//
// by CB-Spider Team, 2020.
package commonru... | 11,538 |
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/CoreUpdates/5643-fixFor5640And5642-JuanVuletich-2023Jan20-19h47m-jmv.001.cs.st | Github Open Source | Open Source | MIT | 2,023 | Cuis-Smalltalk-Dev | Cuis-Smalltalk | null | Spoken | 87 | 217 | 'From Cuis 6.0 [latest update: #5642] on 20 January 2023 at 7:47:47 pm'!
!Encoder methodsFor: 'encoding' stamp: 'jmv 1/20/2023 19:47:04'!
encodeLiteral: literalObject
| object |
object _ literalObject.
"Prefer String over UnicodeString for literals, if ASCII only."
(object isUnicodeString and: [ object isSymbol no... | 46,663 |
https://github.com/Hengle/Houdini-Toolbox/blob/master/python/ht/nodes/styles/event.py | Github Open Source | Open Source | MIT | 2,022 | Houdini-Toolbox | Hengle | Python | Code | 74 | 228 | """This module contains an event to style nodes based on events."""
# =============================================================================
# IMPORTS
# =============================================================================
# Houdini Toolbox
from ht.nodes.styles.manager import STYLE_MANAGER
# =========... | 46,571 |
https://github.com/d2p/learning-kotlin-hw/blob/master/app/src/main/java/com/ouluuni21/assistedreminder/GeofenceReceiver.kt | Github Open Source | Open Source | MIT | 2,021 | learning-kotlin-hw | d2p | Kotlin | Code | 317 | 1,090 | package com.ouluuni21.assistedreminder
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.AsyncTask
import android.util.Log
import androidx.room.Room
import com.google.android.gms.location.Geofence
import com.google.android.gms.location.GeofencingEve... | 6,844 |
https://github.com/cibotech/bedrock/blob/master/js/src/main/scala/com/cibo/uidocumentation/example/IndicatorExamplePage.scala | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause | 2,021 | bedrock | cibotech | Scala | Code | 710 | 1,775 | /*
* Copyright (c) 2018, CiBO Technologies, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* lis... | 32,020 |
https://github.com/markiewb/fakereplace/blob/master/core/src/test/java/a/org/fakereplace/test/replacement/staticmethod/StaticAccessingMethodTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | fakereplace | markiewb | Java | Code | 543 | 1,676 | /*
* Copyright 2016, Stuart Douglas, and individual contributors as indicated
* by the @authors tag.
*
* 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/lice... | 39,113 |
https://github.com/ita-social-projects/SoftServeCar-Front-End/blob/master/Car/src/components/badge-slider/BadgeSliderProps.tsx | Github Open Source | Open Source | MIT | null | SoftServeCar-Front-End | ita-social-projects | TypeScript | Code | 14 | 49 | import BadgeProps from "../badge/BadgeProps";
interface BadgeSliderProps{
badges: BadgeProps[]
style?: object
}
export default BadgeSliderProps; | 3,281 |
https://github.com/Noah1989/CodeConverter/blob/master/Tests/CSharp/TypeCastTests.cs | Github Open Source | Open Source | MIT | null | CodeConverter | Noah1989 | C# | Code | 4,149 | 11,902 | using System;
using System.Threading.Tasks;
using ICSharpCode.CodeConverter.Tests.TestRunners;
using Xunit;
namespace ICSharpCode.CodeConverter.Tests.CSharp;
public class TypeCastTests : ConverterTestBase
{
[Fact]
public async Task NumericStringToEnumAsync()
{
await TestConversionVisualBasicToCSh... | 22,711 |
https://github.com/koen-serneels/knooppuntnet/blob/master/client/src/app/analysis/overview/overview.service.ts | Github Open Source | Open Source | MIT | 2,019 | knooppuntnet | koen-serneels | TypeScript | Code | 25 | 79 | import {Injectable} from "@angular/core";
import {List} from "immutable";
import {StatisticConfiguration} from "./statistic-configuration";
@Injectable({
providedIn: "root"
})
export class OverviewService {
statisticConfigurations: List<StatisticConfiguration> = null;
}
| 31,275 |
https://github.com/homer-hq/react-native-dialog/blob/master/src/Input.js | Github Open Source | Open Source | MIT | null | react-native-dialog | homer-hq | JavaScript | Code | 169 | 572 | import PropTypes from "prop-types";
import React from "react";
import { Platform, StyleSheet, Text, TextInput, View } from "react-native";
export default class DialogInput extends React.PureComponent {
static propTypes = {
...TextInput.propTypes,
label: PropTypes.string,
style: PropTypes.any,
textInp... | 30,131 |
https://github.com/lta-disco-unimib-it/BCT_TOOLSET/blob/master/BctJavaEclipsePlugin/src/it/unimib/disco/lta/bct/bctjavaeclipse/ui/logAnalysis/widgets/ViolationPropertySource.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | BCT_TOOLSET | lta-disco-unimib-it | Java | Code | 1,096 | 4,305 | /*******************************************************************************
* Copyright 2019 Fabrizio Pastore, Leonardo Mariani, and other authors indicated in the source code below.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance... | 35,788 |
https://github.com/juchem/fatal/blob/master/fatal/type/test/pointer_selector_test.cpp | Github Open Source | Open Source | BSD-3-Clause | null | fatal | juchem | C++ | Code | 580 | 2,726 | /*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <fata... | 6,824 |
https://github.com/sahandMg/ariaelec/blob/master/app/Repository/Slugger.php | Github Open Source | Open Source | MIT | 2,018 | ariaelec | sahandMg | PHP | Code | 116 | 367 | <?php
/**
* Created by PhpStorm.
* User: Sahand
* Date: 5/4/18
* Time: 12:59 PM
*/
namespace App\Repository;
class Slugger
{
// Send an object instance as a function argument
public static function setSlug($class)
{
$names = $class->pluck('product_name')->toArray();
$slugs = $class->... | 16,987 |
https://github.com/OpSimple/jhcbot/blob/master/src/main/java/org/simplelabz/jhcbot/store/SqliteStore.java | Github Open Source | Open Source | MIT | 2,020 | jhcbot | OpSimple | Java | Code | 349 | 1,313 | package org.simplelabz.jhcbot.store;
import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.loggin... | 22,723 |
https://github.com/Mitchell3514/scambio/blob/master/src/structures/client.test.ts | Github Open Source | Open Source | MIT | null | scambio | Mitchell3514 | TypeScript | Code | 64 | 236 | import test from 'ava';
import {Client} from './client';
test('Client', t => {
const options = {token: 'token', currencyID: 'ABC'};
const client = new Client(options.token, options.currencyID);
t.is(client.transactions.client, client, 'Transaction store client is this client');
t.is(client.token, options.token, ... | 17,155 |
https://github.com/aungkhanthtoo/PADC-MVP-Assignment/blob/master/app/src/main/java/com/padcmyanmar/sfc/viewholders/TopNewsViewHolder.java | Github Open Source | Open Source | Apache-2.0 | null | PADC-MVP-Assignment | aungkhanthtoo | Java | Code | 82 | 465 | package com.padcmyanmar.sfc.viewholders;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.padcmyanmar.sfc.R;
import com.padcmyanmar.sfc.data.vo.NewsVO;
import com.padcmyanmar.sfc.delegates.NewsItemDelegate;
import butterknife.BindV... | 28,870 |
https://github.com/benjaminmestdagh/expenses/blob/master/Expenses/src/main/java/benjaminmestdagh/expenses/data/OpenExchangeRatesClient.java | Github Open Source | Open Source | MIT | 2,013 | expenses | benjaminmestdagh | Java | Code | 314 | 1,075 | package benjaminmestdagh.expenses.data;
import android.content.Context;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.Http... | 52,207 |
https://github.com/0xch4z/colornary/blob/master/build/conversions/rgba.js | Github Open Source | Open Source | MIT | 2,020 | colornary | 0xch4z | JavaScript | Code | 305 | 734 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.toRgba = exports.toRgb = exports.toHex = exports.toHsla = exports.toHsl = undefined;
var _rgb = require('./rgb');
var rgb = _interopRequireWildcard(_rgb);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { retur... | 7,205 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.