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/thiagozupper/orange-talents-07-template-casa-do-codigo/blob/master/src/main/java/br/com/zupacademy/thiago/casadocodigo/controller/CategoriaController.java | Github Open Source | Open Source | Apache-2.0 | null | orange-talents-07-template-casa-do-codigo | thiagozupper | Java | Code | 48 | 298 | package br.com.zupacademy.thiago.casadocodigo.controller;
import br.com.zupacademy.thiago.casadocodigo.controller.dto.FormCategoria;
import br.com.zupacademy.thiago.casadocodigo.model.Categoria;
import br.com.zupacademy.thiago.casadocodigo.repository.CategoriaRepository;
import org.springframework.beans.factory.annota... | 36,470 |
https://github.com/Tinghui/UITableView-CellHeightCalculation/blob/master/Demo/Demo/ViewController.m | Github Open Source | Open Source | MIT | 2,017 | UITableView-CellHeightCalculation | Tinghui | Objective-C | Code | 321 | 1,307 | //
// ViewController.m
// Demo
//
// Created by ZhangTinghui on 16/7/12.
// Copyright © 2016年 www.morefun.mobi. All rights reserved.
//
#import "ViewController.h"
#import "BookCell.h"
#import "UITableView+CellHeightCalculation.h"
@interface ViewController () <UITableViewDataSource, UITableViewDelegate>
@property ... | 10,545 |
https://github.com/metaborg/java-front/blob/master/lang.java.statics.test/tests.unsupported/generics/classes/SuperParameters.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | java-front | metaborg | Java | Code | 11 | 25 | class A<X,Y> {}
class C {}
class B extends A<C,C> {}
| 51,826 |
https://github.com/ddanninger/officelife/blob/master/app/Services/Company/Employee/Timesheet/ApproveTimesheet.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | officelife | ddanninger | PHP | Code | 222 | 1,019 | <?php
namespace App\Services\Company\Employee\Timesheet;
use Carbon\Carbon;
use App\Helpers\DateHelper;
use App\Jobs\LogAccountAudit;
use App\Services\BaseService;
use App\Jobs\LogEmployeeAudit;
use App\Models\Company\Employee;
use App\Models\Company\Timesheet;
class ApproveTimesheet extends BaseService
{
privat... | 31,191 |
https://github.com/michaelbuerger/GLEngine/blob/master/examples/spike/Sizes.cpp | Github Open Source | Open Source | MIT | 2,019 | GLEngine | michaelbuerger | C++ | Code | 143 | 218 | void sizes() // These sizes are standard but are not always accurate depending on the compiler
{
// Integer types, adding unsigned gives one more bit to the actual number (however the negative range is given up)
char char1 = 'A'; // 1 byte
short short1 = 10; // 2 bytes
int int1 = 10; // 4 bytes
long long1 = 10; //... | 7,855 |
https://github.com/antonmil/m-best/blob/master/Sequential Re-ID/Functions_Codes/SMOT/initialize_smot.m | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,016 | m-best | antonmil | MATLAB | Code | 368 | 1,219 | %% COMMON PARAMETERS
param.similarity_method = method;
param.min_s = 1e-2; % minimum similarity for tracklets
param.mota_th = 0.5; % we want the detections to stay in width/2.
param.debug = false;
%% DATASET
seqPath = [datasetPath '/' seqName '/img'];
itlName = [datasetPath '/' seqName '/' seqName '.itl'];
sav... | 30,510 |
https://github.com/InjectorGames/Inject/blob/master/Source/Exception/OutOfRangeException.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Inject | InjectorGames | C++ | Code | 321 | 1,062 | #include "Injector/Exception/OutOfRangeException.hpp"
namespace Injector
{
OutOfRangeException::OutOfRangeException(
const std::string& functionName,
char value, char range) noexcept :
Exception( functionName,
"Out of range [" + std::to_string(value) + ", " + std::to_string(range) + "]")
{
}
OutOfRangeExc... | 32,407 |
https://github.com/bruceadowns/upena/blob/master/upena-amza/src/main/java/com/jivesoftware/os/amza/shared/RowWriter.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | upena | bruceadowns | Java | Code | 127 | 232 | /*
* Copyright 2013 Jive Software, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 4,882 |
https://github.com/chazeprasad/go-api-seed/blob/master/app/util/JwtUtil.go | Github Open Source | Open Source | MIT | null | go-api-seed | chazeprasad | Go | Code | 14 | 60 | package util
import "golang.org/x/crypto/bcrypt"
func Encode(password string) ([]byte, error) {
return bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
}
| 39,405 |
https://github.com/jhorology/nks-presets-collection/blob/master/src/Analog Lab/presets/MULTI/Electro/Rubber Blanket.meta | Github Open Source | Open Source | MIT | 2,022 | nks-presets-collection | jhorology | Unity3D Asset | Code | 26 | 118 | {
"author": "",
"bankchain": ["Analog Lab", "MULTI", ""],
"comment": "",
"deviceType": "INST",
"modes": ["Electro"],
"name": "Rubber Blanket",
"types": [
["Multi"]
],
"uuid": "20f8466b-69b8-4dcc-ae89-c00734fd659c",
"vendor": "Arturia"
} | 9,918 |
https://github.com/dataplumber/dmas/blob/master/middleware/manager/grails-app/conf/UrlMappings.groovy | Github Open Source | Open Source | Apache-2.0 | 2,016 | dmas | dataplumber | Groovy | Code | 198 | 871 | class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/ingest/$action?/$id?"(controller:"ingest", parseRequest:true)
"/"(view:"/index")
"500"(view:'/error')
/*
"/archive/granule/update"(controller: "archive",... | 44,511 |
https://github.com/javimontoyaq93/sgbe/blob/master/app/BolsaEmpleo/DireccionEmpleador.php | Github Open Source | Open Source | MIT | 2,017 | sgbe | javimontoyaq93 | PHP | Code | 50 | 195 | <?php
namespace App\BolsaEmpleo;
use App\BolsaEmpleo\Empleador;
use App\Core\Direccion;
class DireccionEmpleador extends Direccion
{
protected $table = 'bolsa_empleo_direcciones_empleadores';
protected $fillable = ['empleador_id', 'eliminado'];
/**
*
* Permite obtener el empleador de la di... | 46,828 |
https://github.com/thetodd/8085-Simulator/blob/master/8085-Simulator/src/de/thetodd/simulator8085/api/mnemonics/SHLDMnemonic.java | Github Open Source | Open Source | MIT | 2,020 | 8085-Simulator | thetodd | Java | Code | 112 | 473 | package de.thetodd.simulator8085.api.mnemonics;
import de.thetodd.simulator8085.api.Mnemonic;
import de.thetodd.simulator8085.api.exceptions.ProcessorError;
import de.thetodd.simulator8085.api.platform.Memory;
import de.thetodd.simulator8085.api.platform.Processor;
public class SHLDMnemonic extends Mnemonic {
publi... | 1,203 |
https://github.com/me-X-us/api-server/blob/master/src/main/java/com/mexus/homeleisure/security/exception/NicknameAlreadyExistsException.java | Github Open Source | Open Source | MIT | null | api-server | me-X-us | Java | Code | 59 | 200 | package com.mexus.homeleisure.security.exception;
/**
* 아이디 중복 예외
* ID: nickName 이미 사용중인 닉네임 입니다.
*
* @author always0ne
* @version 1.0
*/
public class NicknameAlreadyExistsException extends RuntimeException {
/**
* ID: nickName 이미 사용중인 닉네임 입니다.
*
* @param nickName 이미 사용중인 닉네임
*/
publi... | 19,435 |
https://github.com/sugarcrm/sucrose/blob/master/_dev/test-date-formatting.js | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,021 | sucrose | sugarcrm | JavaScript | Code | 183 | 787 |
d = new Date(0);
console.log(d, d.valueOf(), d.toISOString());
console.log(d3.timeMonth(d) < d);
d = new Date('1980');
console.log(d, d.valueOf(), d.toISOString());
console.log(d3.timeMonth(d) < d);
d = new Date('1980-01-01');
console.log(d, d.valueOf(), d.toISOString());
console.log(d3.timeMonth(d) < d);
d = new Date... | 39,041 |
https://github.com/LyuLumos/Reverse-Engineering-and-Software-Security/blob/master/code/dllInjection/injectAllTheThings/auxiliary.cpp | Github Open Source | Open Source | MIT | null | Reverse-Engineering-and-Software-Security | LyuLumos | C++ | Code | 262 | 1,082 | #include <stdio.h>
#include <Windows.h>
#include <tlhelp32.h>
VOID displayHelp()
{
wprintf(TEXT("injectAllTheThings - rui@deniable.org\n"));
wprintf(TEXT("Usage: injectAllTheThings.exe -t <option> <process name> <path/to/dll>\n"));
wprintf(TEXT("Options:\n"));
wprintf(TEXT(" 1\tDLL injection via CreateRemoteThrea... | 52,974 |
https://github.com/bloomreach-forge/jcr-shell/blob/master/src/main/java/org/onehippo/forge/jcrshell/core/commands/PropAllowed.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | jcr-shell | bloomreach-forge | Java | Code | 389 | 1,232 | /*
* Copyright 2008-2018 Hippo.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 13,305 |
https://github.com/tailflow/laravel-orion/blob/master/tests/Feature/Relations/BelongsToMany/BelongsToManyRelationStandardIndexFilteringOperationsTest.php | Github Open Source | Open Source | MIT | 2,023 | laravel-orion | tailflow | PHP | Code | 414 | 2,102 | <?php
declare(strict_types=1);
namespace Orion\Tests\Feature\Relations\BelongsToMany;
use Carbon\Carbon;
use Illuminate\Support\Facades\Gate;
use Orion\Tests\Feature\TestCase;
use Orion\Tests\Fixtures\App\Models\Role;
use Orion\Tests\Fixtures\App\Models\User;
use Orion\Tests\Fixtures\App\Policies\GreenPolicy;
class... | 50,967 |
https://github.com/flypigrmvb/YTThirdPlatformManager/blob/master/PTThirdPlatformKit/Example/PTThirdPlatformKit/CustomInjectPlatform/DingTalk/PTDingTalkManager.m | Github Open Source | Open Source | MIT | 2,018 | YTThirdPlatformManager | flypigrmvb | Objective-C | Code | 117 | 518 | //
// PTDingTalkManager.m
// PTThirdPlatformKit
//
// Created by aron on 2017/11/20.
// Copyright © 2017年 flypigrmvb. All rights reserved.
//
#import "PTDingTalkManager.h"
#import <DTShareKit/DTOpenKit.h>
#import "PTThirdPlatformKit.h"
#import "PTDingTalkRespManager.h"
#import "PTDingTalkRequestHandler.h"
@implem... | 29,084 |
https://github.com/OlekLolKek/gb0122/blob/master/Assets/Code/PhotonLogin.cs | Github Open Source | Open Source | MIT | null | gb0122 | OlekLolKek | C# | Code | 359 | 1,683 | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Photon.Pun;
using Photon.Realtime;
using UnityEngine;
using UnityEngine.UI;
public sealed class PhotonLogin : MonoBehaviourPunCallbacks
{
[Header("Managers")]
[SerializeField] private UiNavigationManager _uiNavigationManager;... | 32,171 |
https://github.com/jcbain/pink-plesiosaur-theme/blob/master/assets/scss/_footer.scss | Github Open Source | Open Source | MIT | null | pink-plesiosaur-theme | jcbain | SCSS | Code | 155 | 478 | // .footer-container{
// background-color: $color_dark_pink;
// height: 120px;
// display: grid;
// grid-template-columns: .5fr .5fr .5fr .5fr;
// grid-template-rows: 1fr;
// }
// .container-left{
// display: grid;
// grid-template-columns: 1fr;
// grid-template-rows: 1.5fr 1fr;
// }
//... | 19,576 |
https://github.com/Pro-Use/ACgraphs/blob/master/server/static/js/barSocket.js | Github Open Source | Open Source | MIT | 2,019 | ACgraphs | Pro-Use | JavaScript | Code | 82 | 349 | $(document).ready(function() {
namespace = '/graphSock';
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port + namespace);
socket.on('connect', function() {
console.log('I\'m connected!');
});
socket.on('update-bar', function(msg) {
... | 23,929 |
https://github.com/HD-010/Yii2-full/blob/master/vendor/tsy/phpqrcode/docs/html/search/functions_64.js | Github Open Source | Open Source | BSD-3-Clause | null | Yii2-full | HD-010 | JavaScript | Code | 5 | 60 | var searchData=
[
['debug',['debug',['../class_q_rspec.html#a2e597199e2a6a4e04ba44a1ec1a8f7be',1,'QRspec']]]
];
| 10,651 |
https://github.com/dawidplocki/generic-conversation-bot/blob/master/examples/exam/index.js | Github Open Source | Open Source | MIT | null | generic-conversation-bot | dawidplocki | JavaScript | Code | 31 | 116 | const { buildBot, ParserBuilder } = require('@dplocki/generic-conversation-bot');
const client = require('../BotClient');
const states = new ParserBuilder()
.addCustomStates(require('./states'))
.addPreParsers(require('./preParsers'))
.parse(require('./exam.json'));
const bot = buildBot(states);
console.... | 37,125 |
https://github.com/SZUE/xsoap/blob/master/src/java/soaprmi/util/soaprmi/util/bytecode/ClassReader.java | Github Open Source | Open Source | xpp | null | xsoap | SZUE | Java | Code | 1,803 | 4,057 | /*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002 The Apache Software Foundation. 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 sourc... | 18,155 |
https://github.com/keanuyaoo/loraserver/blob/master/api/gw/gw.pb.go | Github Open Source | Open Source | MIT | 2,020 | loraserver | keanuyaoo | Go | Code | 6,075 | 23,842 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: gw.proto
package gw // import "github.com/brocaar/loraserver/api/gw"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import common "github.com/brocaar/loraserver/api/common"
import duration "github.com/golang/protobuf/ptyp... | 39,692 |
https://github.com/versastylist/prelaunchr/blob/master/Gemfile | Github Open Source | Open Source | MIT | 2,015 | prelaunchr | versastylist | Ruby | Code | 90 | 350 | source 'https://rubygems.org'
ruby '2.1.5'
gem 'rails', '4.2.1'
gem 'pg'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'aws-sdk', '< 2.0'
gem 'bootstrap-sass'
gem ... | 48,130 |
https://github.com/aquawicket/DigitalKnob/blob/master/3rdParty/_DKIMPORTS/android-platforms/DKMAKE.cmake | Github Open Source | Open Source | MIT | 2,022 | DigitalKnob | aquawicket | CMake | Code | 21 | 202 | # https://dl.google.com/android/repository/platform-26_r02.zip
### VERSION ###
DKSET(ANDROIDPLATFORMS_FOLDER android-26)
DKSET(ANDROIDPLATFORMS_VERSION 26_r02)
DKSET(ANDROIDPLATFORMS_DL https://dl.google.com/android/repository/platform-${ANDROIDPLATFORMS_VERSION}.zip)
DKSET(ANDROIDPLATFORMS ${ANDROIDSDK}/platforms/${A... | 29,627 |
https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/cards/d/DispersalTechnician.java | Github Open Source | Open Source | MIT | 2,023 | mage | magefree | Java | Code | 103 | 432 |
package mage.cards.d;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
imp... | 27,161 |
https://github.com/jmhong-simulation/tbc-workbook/blob/master/Chapter14/Defining/main.c | Github Open Source | Open Source | Unlicense | 2,022 | tbc-workbook | jmhong-simulation | C | Code | 86 | 220 | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 41
/*
struct person {
...
};
*/
int main()
{
/* Structure variable */
/* dot(.) is structure membership operator (member access operator, member operator) */
// dot(.) has higher precedence than &
... | 42,557 |
https://github.com/jihyun-1101/LectureContents/blob/master/spring/testdemo/src/test/java/com/example/testdemo/TextTest.java | Github Open Source | Open Source | MIT | 2,022 | LectureContents | jihyun-1101 | Java | Code | 47 | 212 | package com.example.testdemo;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalToIgnoringCase;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.startsWit... | 44,846 |
https://github.com/hgmvier/EnergizingMiniQuest/blob/master/Assets/Scripts/Barrier.cs | Github Open Source | Open Source | MIT | null | EnergizingMiniQuest | hgmvier | C# | Code | 67 | 273 | using UnityEngine;
public class Barrier : MonoBehaviour
{
private QuestManager _questManager;
public PowerCore.Color requiredColor;
private void Start()
{
_questManager = FindObjectOfType<QuestManager>();
}
private void CheckRequirement()
{
switch (requiredColor)
... | 46,073 |
https://github.com/brunosabot/afkalc/blob/master/components/pages/Guild/ui/BackTiersList.tsx | Github Open Source | Open Source | MIT | 2,022 | afkalc | brunosabot | TypeScript | Code | 69 | 220 | import { mdiArrowLeft } from "@mdi/js";
import { useTranslation } from "next-i18next";
import Link from "next/link";
import React from "react";
import Svg from "../../../ui/Svg";
import styles from "./BackTiersList.module.css";
interface Props {
id: string;
}
const BackTiersList: React.FC<Props> = ({ id }) => {
c... | 7,606 |
https://github.com/blanet/sourcegraph/blob/master/client/shared/dev/mockPopper.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, MIT, BSD-3-Clause | 2,022 | sourcegraph | blanet | TypeScript | Code | 55 | 151 | /*
https://github.com/react-bootstrap/react-bootstrap/issues/4997
Popper causes "Warning: `NaN` is an invalid value for the `left` css style property."
This mock prevents that.
*/
jest.mock('popper.js', () => {
const StockPopperJs = jest.requireActual('popper.js')
return function PopperJs() {
... | 42,284 |
https://github.com/OPENAIRINTERFACE/mce/blob/master/build/mce/build/CMakeFiles/mce.dir/cmake_clean.cmake | Github Open Source | Open Source | Apache-2.0 | 2,022 | mce | OPENAIRINTERFACE | CMake | Code | 20 | 246 | file(REMOVE_RECURSE
"CMakeFiles/mce.dir/home/dbeken/Development/oai/mce/src/oai_mce/oai_mce_log.c.o"
"CMakeFiles/mce.dir/home/dbeken/Development/oai/mce/src/oai_mce/oai_mce.c.o"
"CMakeFiles/mce.dir/home/dbeken/Development/oai/mce/src/common/common_types.c.o"
"CMakeFiles/mce.dir/home/dbeken/Development/oai/mce/s... | 1,948 |
https://github.com/yyuguang/lnzz/blob/master/components/category-grid/index.js | Github Open Source | Open Source | MIT | null | lnzz | yyuguang | JavaScript | Code | 25 | 92 | // components/category-grid/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
grid: Array
},
/**
* 组件的初始数据
*/
data: {},
/**
* 组件的方法列表
*/
methods: {}
})
| 11,308 |
https://github.com/Keneral/apackages/blob/master/apps/Email/src/com/android/email/StopWatch.java | Github Open Source | Open Source | Unlicense | null | apackages | Keneral | Java | Code | 285 | 599 | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 39,893 |
https://github.com/htchepannou/academy-login-webui/blob/master/src/main/java/io/tchepannou/www/academy/login/backend/user/AuthException.java | Github Open Source | Open Source | MIT | 2,017 | academy-login-webui | htchepannou | Java | Code | 56 | 173 | package io.tchepannou.www.academy.login.backend.user;
public class AuthException extends Exception {
private int statusCode;
private String errorDetails;
public AuthException(int statusCode, String errorDetails, Throwable cause){
super(cause);
this.statusCode = statusCode;
this.er... | 48,988 |
https://github.com/ORASTARK/cloud-s4-sdk-pipeline-lib/blob/master/vars/checkDeploymentDescriptors.groovy | Github Open Source | Open Source | Apache-2.0 | null | cloud-s4-sdk-pipeline-lib | ORASTARK | Groovy | Code | 444 | 1,736 | import com.cloudbees.groovy.cps.NonCPS
import com.sap.cloud.sdk.s4hana.pipeline.BuildToolEnvironment
import com.sap.piper.ConfigurationLoader
import com.sap.piper.ConfigurationMerger
import static com.sap.cloud.sdk.s4hana.pipeline.EnvironmentAssertionUtils.assertPluginIsActive
def call(Map parameters = [:]) {
han... | 12,921 |
https://github.com/Cvarier/Wind_Turbine_Sim/blob/master/lib/org/math/plot/plotObjects/Editable.java | Github Open Source | Open Source | MIT | 2,022 | Wind_Turbine_Sim | Cvarier | Java | Code | 33 | 97 | package org.math.plot.plotObjects;
import org.math.plot.render.*;
/**
* BSD License
*
* @author Yann RICHET
*/
public interface Editable {
public double[] isSelected(int[] screenCoord, AbstractDrawer draw);
public void edit(Object editParent);
public void editnote(AbstractDrawer draw);
}
| 39,630 |
https://github.com/popov-vn/donotforget/blob/master/app/src/main/java/com/elsoftware/notificationreminder/utils/NotificationText.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | donotforget | popov-vn | Java | Code | 147 | 385 | package com.elsoftware.notificationreminder.utils;
/**
* Created by popovich on 01.10.2016.
*/
public class NotificationText
{
protected String mTitle;
protected String mDescription;
protected int mTitleLength = 20;
public NotificationText(String text)
{
mTitle = "";
mDescriptio... | 15,572 |
https://github.com/chcbaram/canDynamixRobot/blob/master/arduino/canDynamix_mpu9250/canDynamix_mpu9250.ino | Github Open Source | Open Source | Apache-2.0 | null | canDynamixRobot | chcbaram | null | Spoken | 217 | 692 | #include "motor.h"
#include "src/mpu9250/MPU9250-DMP.h"
MPU9250_DMP imu;
const signed char orientationMatrix[9] = {
0, 1, 0,
-1, 0, 0,
0, 0, 1
};
void setup()
{
inv_error_t err_code;
motorBegin();
Serial.begin(115200);
motorMoveSpeed(0, 0);
delay(1000);
if (imu.begin() != INV_SUCCESS)... | 49,460 |
https://github.com/hokaway/Thermocycle-library/blob/master/ThermoCycle/Media/DummyFluid/package.mo | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | Thermocycle-library | hokaway | Modelica | Code | 21 | 63 | within ThermoCycle.Media;
partial package DummyFluid "Empty fluid. Partial model, needs to be redeclared - ThermoCycle"
extends ExternalMedia.Media.CoolPropMedium;
annotation ();
end DummyFluid;
| 12,500 |
https://github.com/pulumi/pulumi-azure/blob/master/sdk/java/src/main/java/com/pulumi/azure/desktopvirtualization/ScalingPlan.java | Github Open Source | Open Source | BSD-3-Clause, MPL-2.0, Apache-2.0 | 2,023 | pulumi-azure | pulumi | Java | Code | 1,297 | 4,386 | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.desktopvirtualization;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.desktopvirtualization.ScalingPlanArgs;
import com.pulumi.azure.de... | 9,654 |
https://github.com/myrp-alexandre/bufunfa/blob/master/src/Bufunfa.Dominio/Entidades/CartaoCredito.cs | Github Open Source | Open Source | MIT | 2,018 | bufunfa | myrp-alexandre | C# | Code | 168 | 578 | using JNogueira.Bufunfa.Dominio.Comandos.Entrada;
namespace JNogueira.Bufunfa.Dominio.Entidades
{
/// <summary>
/// Classe que representa um cartão de crédito
/// </summary>
public class CartaoCredito
{
/// <summary>
/// Id do cartão
/// </summary>
public int Id { g... | 47,169 |
https://github.com/PeterEnevoldsen/angular-pipes/blob/master/test/array/flatten.pipe.spec.ts | Github Open Source | Open Source | MIT | 2,016 | angular-pipes | PeterEnevoldsen | TypeScript | Code | 131 | 412 | import { FlattenPipe, DeepPipe } from '../../src/index';
describe('FlattenPipe', () => {
let pipe: FlattenPipe;
let deep: DeepPipe;
beforeEach(() => {
pipe = new FlattenPipe();
deep = new DeepPipe();
});
it('Should return the flattened array', () => {
const value =... | 34,636 |
https://github.com/rust-lang/rustfmt/blob/master/tests/target/issue-2973.rs | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | rustfmt | rust-lang | Rust | Code | 220 | 1,034 | #[cfg(test)]
mod test {
summary_test! {
tokenize_recipe_interpolation_eol,
"foo: # some comment
{{hello}}
",
"foo: \
{{hello}} \
{{ahah}}",
"N:#$>^{N}$<.",
}
summary_test! {
tokenize_strings,
r#"a = "'a'" + '"b"' + "'c'" + '"d"'#echo hello"#,
r#"N="+'+"+... | 51,390 |
https://github.com/tenlastic/open-platform/blob/master/projects/javascript/angular/applications/home/src/app/modules/games/guards/index.ts | Github Open Source | Open Source | MIT | 2,022 | open-platform | tenlastic | TypeScript | Code | 8 | 23 | export * from './game/game.guard';
export * from './status/status.guard';
| 38,082 |
https://github.com/zhexiaoyang/xiaozhen/blob/master/app/Http/Controllers/Admin/SayController.php | Github Open Source | Open Source | MIT | null | xiaozhen | zhexiaoyang | PHP | Code | 97 | 414 | <?php
namespace App\Http\Controllers\Admin;
use App\Models\Say;
use SayRepository;
use App\Http\Requests;
use App\Http\Requests\SayRequest;
class SayController extends CommonController
{
public function index()
{
$list = Say::orderBy('id','desc')->paginate(12);
return view("admin.say.index",... | 1,065 |
https://github.com/brownd1978/FastSim/blob/master/CLHEP/config/TemplateFunctions.h | Github Open Source | Open Source | Apache-2.0 | null | FastSim | brownd1978 | C | Code | 158 | 460 | // -*- C++ -*-
// CLASSDOC OFF
// $Id: TemplateFunctions.h 192 2009-03-04 12:20:53Z stroili $
// ---------------------------------------------------------------------------
// CLASSDOC ON
//
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
//
// This file contains template definitions of s... | 41,095 |
https://github.com/codeteenager/lynx-native/blob/master/Core/base/android/android_jni.cc | Github Open Source | Open Source | MIT | 2,018 | lynx-native | codeteenager | C++ | Code | 257 | 857 | // Copyright 2017 The Lynx Authors. All rights reserved.
#include "base/android/android_jni.h"
namespace
{
JavaVM *g_jvm = nullptr;
}
namespace base
{
namespace android
{
void InitVM(JavaVM *vm)
{
g_jvm = vm;
}
JNIEnv *AttachCurrentThread()
{
JNIEnv *env = nullptr;
jint ret = g_jvm->AttachCurrentThread... | 14,240 |
https://github.com/jim-fx/plantarium/blob/master/backend/src/projects/entities/project.entity.ts | Github Open Source | Open Source | MIT | 2,023 | plantarium | jim-fx | TypeScript | Code | 120 | 336 | import { Collection, Entity, ManyToMany, ManyToOne, Property } from "@mikro-orm/core";
import type { Project as IProject } from "@plantarium/types";
import { BaseEntity } from "../../entities/BaseEntity";
import { User } from "../../user/user.entity";
export enum ProjectType {
OFFICIAL = 2,
APPROVED = 1,
USER = ... | 32,327 |
https://github.com/unoplatform/uno/blob/master/src/Uno.UI/UI/Xaml/Controls/CalendarView/CalendarView_Partial_Interaction.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | uno | unoplatform | C# | Code | 1,221 | 3,992 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using Windows.System;
using Windows.UI.Xaml.Input;
using DirectUI;
using DateTime = System.DateTimeOffset;
using Uno.UI.Xaml.Input;
namespace Windows.U... | 49,199 |
https://github.com/binoue/sabakan/blob/master/client/error.go | Github Open Source | Open Source | MIT | 2,022 | sabakan | binoue | Go | Code | 157 | 342 | package client
import (
"net/http"
)
type httpError struct {
code int
reason string
}
func (e *httpError) Error() string {
return http.StatusText(e.code) + ": " + e.reason
}
// Is4xx returns true if err contains 4xx status code
func Is4xx(err error) bool {
err2, ok := err.(*httpError)
if !ok {
return fals... | 13,979 |
https://github.com/adrianne-l/pycounts_al/blob/master/tests/test_pycounts_al.py | Github Open Source | Open Source | MIT | null | pycounts_al | adrianne-l | Python | Code | 4 | 12 | from pycounts_al import pycounts_al
| 49,189 |
https://github.com/RyanTalbot/spell/blob/master/src/modules/footer.js | Github Open Source | Open Source | CC0-1.0 | null | spell | RyanTalbot | JavaScript | Code | 52 | 276 | export default function buildFooter() {
const footer = document.createElement('footer');
footer.classList.add('footer');
const footerName = document.createElement('p');
footerName.textContent = 'by Ryan Talbot';
footerName.setAttribute('id', 'footer-name');
const iconNotice = document.createElement('p');
... | 10,001 |
https://github.com/qingqibing/iClient-JavaScript/blob/master/test/tool/GlobeParameter.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | iClient-JavaScript | qingqibing | JavaScript | Code | 65 | 1,171 | GlobeParameter = {
rootURL: "http://localhost:8090/iserver/services",
mapServiceURL: "http://localhost:8090/iserver/services/map-world/rest/maps/",
mapTemperatureURL:"http://localhost:8090/iserver/services/map-temperature/rest/maps/",
worldMapURL: "http://localhost:8090/iserver/services/map-world/rest/... | 51,132 |
https://github.com/iqbal115705/elegan/blob/master/resources/views/elements/structure/alerts.blade.php | Github Open Source | Open Source | MIT | null | elegan | iqbal115705 | PHP | Code | 1,692 | 6,569 | @extends('layouts.template')
@section('content')
<link rel="stylesheet" href="{{URL::to('/')}}/assets/examples/css/structure/alerts.css">
<div class="page-header">
<h1 class="page-title font_lato">Alerts </h1>
<div class="page-header-actions">
<ol class="breadcrumb">
<li><a href="{{URL::to('/dashboard')}}">{{ tr... | 30,138 |
https://github.com/rsmike/yii2-metafields/blob/master/src/Meta.php | Github Open Source | Open Source | MIT | null | yii2-metafields | rsmike | PHP | Code | 153 | 448 | <?php
namespace rsmike\metafields;
use yii\db\ActiveRecord;
/**
* This is the model class for table "meta".
*
* @property integer $owner_id
* @property string $owner
* @property string $meta_key
* @property string $meta_value
*
*/
class Meta extends ActiveRecord
{
/**
* @inheritdoc
*/
publi... | 42,173 |
https://github.com/ffinfo/cromwell/blob/master/engine/src/test/scala/cromwell/FileSizeWorkflowSpec.scala | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | null | cromwell | ffinfo | Scala | Code | 287 | 1,346 | package cromwell
import akka.testkit.EventFilter
import cromwell.util.SampleWdl
import wdl4s._
import wdl4s.values.WdlFloat
class FileSizeWorkflowSpec extends CromwellTestkitSpec {
object FileSize extends SampleWdl {
override def wdlSource(runtime: String = "") =
"""task file_size {
| File input... | 43,927 |
https://github.com/ghuntley/xamarin-macios/blob/master/src/Foundation/NSMetadataItem.cs | Github Open Source | Open Source | BSD-3-Clause | null | xamarin-macios | ghuntley | C# | Code | 345 | 1,176 | //
// Convenience methods for NSMetadataItem
//
// Copyright 2014 Xamarin Inc
//
// Author:
// Miguel de Icaza
//
using System;
namespace XamCore.Foundation {
public partial class NSMetadataItem {
public NSString FileSystemName {
get {
return ValueForAttribute (NSMetadataQuery.ItemFSNameKey) as NSString;
... | 1,295 |
https://github.com/danielhanchen/cuml/blob/master/cuML/src/glm/ridge.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | cuml | danielhanchen | C++ | Code | 718 | 2,420 | /*
* Copyright (c) 2018, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 25,360 |
https://github.com/RemigijusVainoris/GildedRose-Refactoring-Kata/blob/master/GildedRose/src/main/java/com/gildedrose/strategies/ConjuredItemQualityStrategyImpl.java | Github Open Source | Open Source | MIT | null | GildedRose-Refactoring-Kata | RemigijusVainoris | Java | Code | 42 | 138 | package com.gildedrose.strategies;
public class ConjuredItemQualityStrategyImpl implements QualityStrategy
{
private static final int QUALITY_DEGRADATION_NORMAL = 2;
private static final int QUALITY_DEGRADATION_AFTER_SELL_IN = 4;
@Override
public int getQuality(int quality, int sellIn) {
retur... | 26,044 |
https://github.com/gematik/ref-ePA-FdV-ModulKit/blob/master/generated/authz/src/EPA_FdV_AUTHZ_Error.swift | Github Open Source | Open Source | Apache-2.0 | 2,022 | ref-ePA-FdV-ModulKit | gematik | Swift | Code | 231 | 1,061 | //----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 5.7.0.0
//
// Created by Quasar Development
//
//---------------------------------------------------
import Foundation
public class EPA_FdV_AUTHZ_Error : NSObject ,EPA_FdV_AUTHZ_ISerializableObject
{
private v... | 12,143 |
https://github.com/shadowkrr/grav_cms_trial_implementation/blob/master/cache/compiled/files/794d1fc8013c64e508c6aa3b9fd9837b.yaml.php | Github Open Source | Open Source | MIT | null | grav_cms_trial_implementation | shadowkrr | PHP | Code | 56 | 195 | <?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'plugins://quick-tray-links/quick-tray-links.yaml',
'modified' => 1558196313,
'data' => [
'enabled' => true,
'links' => [
0 => [
'icon' => 'fa fa-book',
'link' => ... | 45,436 |
https://github.com/zenomt/rtmfp-cpp/blob/master/src/Address.cpp | Github Open Source | Open Source | MIT | 2,022 | rtmfp-cpp | zenomt | C++ | Code | 888 | 3,002 | // Copyright © 2021 Michael Thornburgh
// SPDX-License-Identifier: MIT
#include "../include/rtmfp/Address.hpp"
#include <arpa/inet.h>
#include <cstdio>
#include <cstring>
namespace com { namespace zenomt { namespace rtmfp {
Address::Address() : m_origin(ORIGIN_UNKNOWN)
{
erase();
}
Address::Address(const Address ... | 52,581 |
https://github.com/opencomputeproject/Rack-Manager/blob/master/Contrib-Inspur/bmcweb/redfish-core/lib/sensors.hpp | Github Open Source | Open Source | MIT | 2,022 | Rack-Manager | opencomputeproject | C++ | Code | 1,654 | 5,399 | /*
// Copyright (c) 2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 48,577 |
https://github.com/jorgelbg/grafana/blob/master/pkg/services/authn/clients/ldap.go | Github Open Source | Open Source | AGPL-3.0-only, Apache-2.0 | 2,023 | grafana | jorgelbg | Go | Code | 243 | 971 | package clients
import (
"context"
"errors"
"github.com/grafana/grafana/pkg/services/authn"
"github.com/grafana/grafana/pkg/services/ldap/multildap"
"github.com/grafana/grafana/pkg/services/login"
"github.com/grafana/grafana/pkg/setting"
)
var _ authn.ProxyClient = new(LDAP)
var _ authn.PasswordClient = new(LD... | 26,268 |
https://github.com/cameronhunter/glacier-cli/blob/master/src/main/java/uk/co/cameronhunter/aws/glacier/actions/Delete.java | Github Open Source | Open Source | MIT | 2,021 | glacier-cli | cameronhunter | Java | Code | 129 | 415 | package uk.co.cameronhunter.aws.glacier.actions;
import com.amazonaws.services.glacier.AmazonGlacier;
import com.amazonaws.services.glacier.model.DeleteArchiveRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.concurrent.Callable;
import static uk.co.camero... | 9,219 |
https://github.com/skylin008/micropython-1/blob/master/ports/nrf/build-pca10040/device/nrf52/startup_nrf52832.P | Github Open Source | Open Source | MIT | 2,018 | micropython-1 | skylin008 | OpenEdge ABL | Code | 33 | 739 | build-pca10040/device/nrf52/startup_nrf52832.o: \
device/nrf52/startup_nrf52832.c \
/usr/local/Cellar/arm-none-eabi-gcc/7-2017-q4-major/gcc/lib/gcc/arm-none-eabi/7.2.1/include/stdint.h \
/usr/local/Cellar/arm-none-eabi-gcc/7-2017-q4-major/gcc/arm-none-eabi/include/stdint.h \
/usr/local/Cellar/arm-none-eabi-gcc/7-20... | 50,866 |
https://github.com/number571/hidden-lake/blob/master/main.go | Github Open Source | Open Source | MIT | 2,021 | hidden-lake | number571 | Go | Code | 452 | 2,326 | package main
import (
"crypto/tls"
"encoding/json"
"fmt"
"github.com/number571/gopeer"
"github.com/number571/hiddenlake/api"
"github.com/number571/hiddenlake/db"
"github.com/number571/hiddenlake/handle"
"github.com/number571/hiddenlake/models"
"github.com/number571/hiddenlake/settings"
"github.com/number571/... | 9,143 |
https://github.com/partnernetsoftware/tccrun/blob/master/src/tests/test_c_dll.c | Github Open Source | Open Source | MIT | 2,022 | tccrun | partnernetsoftware | C | Code | 58 | 270 | typedef void* ffic_ptr;
typedef ffic_ptr (__attribute__((__stdcall__)) *ffic_func)();
extern ffic_func (*ffic())();
extern ffic_func (*ffic_raw())();
#define import0(c,m) ffic_func m = (ffic_func) ffic(#c,#m)
#define import1(m,c,...) import0(c,m)
#define import(m,...) import1(m,##__VA_ARGS__,c)
#define dump_d(x) prin... | 29,392 |
https://github.com/hoozi/myReact/blob/master/event/app2.js | Github Open Source | Open Source | MIT | null | myReact | hoozi | JavaScript | Code | 130 | 725 | /**
* React event
*/
/**
* 鼠标事件demo
*/
const data = new Map();
data.set("d_001","hoozi1");
data.set("d_002","hoozi2");
data.set("d_003","hoozi3");
data.set("d_004","hoozi4");
data.set("d_005","hoozi5");
const data2 = new Map();
data2.set("d_006","hoozi6");
data2.set("d_007","hoozi7");
data2.set("d_008","hoozi8")... | 6,437 |
https://github.com/gharishkumar/sync-party/blob/master/server/src/controllers/externalDataController.ts | Github Open Source | Open Source | MIT | 2,021 | sync-party | gharishkumar | TypeScript | Code | 151 | 451 | import { Logger } from 'winston';
import { Request, Response } from 'express';
import got from 'got';
import cheerio from 'cheerio';
const getLinkMetadata = async (req: Request, res: Response, logger: Logger) => {
let url;
try {
url = new URL(req.body.url);
} catch (error) {
return res.sta... | 31,037 |
https://github.com/yanjingyun/vue-element-demo/blob/master/vue-admin-template/src/views/excel/index.vue | Github Open Source | Open Source | MIT | 2,020 | vue-element-demo | yanjingyun | Vue | Code | 385 | 1,765 | <template>
<div class="app-container">
<div>
<button @click="exportExcel('tableData1', '导出结果1')">点击导出1</button>
<el-table
id="tableData1"
:data="tableData1"
style="width: 100%"
>
<el-table-column
prop="date"
label="日期"
width="180"
... | 42 |
https://github.com/Flagbit/catalog/blob/master/src/Import/Product/Exception/InvalidNumberOfSkusForImportedProductException.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | catalog | Flagbit | PHP | Code | 10 | 55 | <?php
declare(strict_types=1);
namespace LizardsAndPumpkins\Import\Product\Exception;
class InvalidNumberOfSkusForImportedProductException extends \OutOfBoundsException
{
}
| 19,178 |
https://github.com/nhatanh232/VIDCoder/blob/master/281118/blog/app/Http/Controllers/HomeController.php | Github Open Source | Open Source | MIT | 2,019 | VIDCoder | nhatanh232 | PHP | Code | 147 | 715 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\ThongbaoModel;
use App\HoatDongModel;
use App\ThanhLyModel;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->mi... | 3,932 |
https://github.com/caidevOficial/Php_UTN_PrograIII/blob/master/1_Ejercicios_Guia/Clase_09/Ejercicio_1/public/controllers/UsuarioController.php | Github Open Source | Open Source | MIT | null | Php_UTN_PrograIII | caidevOficial | PHP | Code | 662 | 1,759 | <?php
/**
* MIT License
*
* Copyright (C) 2021 <FacuFalcone - CaidevOficial>
*
* 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 rig... | 38,218 |
https://github.com/wultra/ssl-pinning-ios/blob/master/Tests/Helpers/AsyncHelper.swift | Github Open Source | Open Source | Apache-2.0 | 2,022 | ssl-pinning-ios | wultra | Swift | Code | 723 | 1,406 | //
// Copyright 2018 Wultra s.r.o.
//
// 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... | 34,098 |
https://github.com/Neusoft-Technology-Solutions/aws-sdk-cpp/blob/master/aws-cpp-sdk-quicksight/source/model/AmazonElasticsearchParameters.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-cpp | Neusoft-Technology-Solutions | C++ | Code | 93 | 371 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/quicksight/model/AmazonElasticsearchParameters.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
name... | 50,004 |
https://github.com/dansarina/robot/blob/master/io.h | Github Open Source | Open Source | LicenseRef-scancode-ietf | 2,018 | robot | dansarina | C | Code | 79 | 218 | #ifndef IO_H
#define IO_H
#define IO_OUTSIZE 8192
#define IO_INSIZE 8192
typedef struct io {
char *b;
unsigned int p;
unsigned int n;
int f;
int (*op)();
} io;
extern void io_set();
extern int io_flush();
extern int io_puts();
extern int io_put();
extern int io_feed();
extern void io_seek();
extern char *... | 16,696 |
https://github.com/SarahCreager/basic-express-server/blob/master/src/routes/api.js | Github Open Source | Open Source | MIT | null | basic-express-server | SarahCreager | JavaScript | Code | 178 | 491 | 'use strict';
const express =require('express');
const router = express.Router();
const { food, rest } = require('../models');
const Collection = require('../models/lib/Collection.js');
const modelMap = {
food: new Collection(food),
rest: new Collection(rest),
};
// middleware attaches the model to the req obje... | 3,131 |
https://github.com/muratsaygili/customer-support-system/blob/master/CustomerSupport/CustomerSupport.App/Models/VmCreateTicket.cs | Github Open Source | Open Source | MIT | null | customer-support-system | muratsaygili | C# | Code | 33 | 94 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CustomerSupport.Entities.Concrete;
namespace CustomerSupport.App.Models
{
public class VmCreateTicket
{
public List<Category> Categories { get; set; }
public Ticket Ticket { get; set; }
}... | 46,804 |
https://github.com/coderldt/codeGeneration/blob/master/src/store/modules/baseData.js | Github Open Source | Open Source | MIT | null | codeGeneration | coderldt | JavaScript | Code | 92 | 289 | import Cookies from 'js-cookie'
const state = {
result: {
header: {
title: 'form',
step: 1,
totalStep: 3,
config: {}
},
table: {
title: 'table',
step: 1,
totalStep: 2,
config: {}
},
pagination: {
title: 'pagination',
step: 1,
total... | 46,908 |
https://github.com/yanlili1992/paperplane3/blob/master/app/src/main/java/com/example/paperplane/search/SearchActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | paperplane3 | yanlili1992 | Java | Code | 39 | 177 | package com.example.paperplane.search;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.example.paperplane.R;
/**
* Created by liyanli on 2017/3/8.
*/
public class SearchActivity extends AppCompatActivity{
@Override
protected void onCreate(Bundle savedInstanceState){
... | 42,929 |
https://github.com/proofpeer/proofpeer-proofscript/blob/master/scripts/examples/Lnamespaces/uv/LV.thy | Github Open Source | Open Source | MIT | 2,017 | proofpeer-proofscript | proofpeer | Isabelle | Code | 14 | 48 | theory LV
extends LU
let 'x'
assert 'x' == 'LV\x' <> 'LU\x' == '\examples\Lnamespaces\uv\LU\x'
| 14,185 |
https://github.com/kwasmich/MailWidget/blob/master/MailWidget.wdgt/Classes/PopClient.js | Github Open Source | Open Source | MIT | 2,015 | MailWidget | kwasmich | JavaScript | Code | 2,126 | 5,551 | //ACTIVE_ACCOUNT must be an object of type Account
//REPORT_COUNT must be of type theCounter( mailCount )
//LAST_MAIL must be of type theLastMail( sender, subject, date )
//FAIL( ACTIVE_ACCOUNT ) is called on errors
//DONE( ACTIVE_ACCOUNT ) is called on finished communication
//public commands are void checkMail() and ... | 12,126 |
https://github.com/lijiancheng0614/Paddle/blob/master/paddle/fluid/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,018 | Paddle | lijiancheng0614 | CMake | Code | 23 | 111 | add_subdirectory(memory)
add_subdirectory(platform)
add_subdirectory(framework)
add_subdirectory(operators)
add_subdirectory(string)
if (NOT WIN32)
add_subdirectory(pybind)
add_subdirectory(recordio)
endif(NOT WIN32)
if(WITH_INFERENCE)
# NOTE: please add subdirectory inference at last.
add_subdirectory(inference)... | 38,691 |
https://github.com/apples/ludum-dare-26/blob/master/inugami/interface.hpp | Github Open Source | Open Source | MIT | 2,015 | ludum-dare-26 | apples | C++ | Code | 1,307 | 2,742 | /*******************************************************************************
* Inugami - An OpenGL framwork designed for rapid game development
* Version: 0.2.0
* https://github.com/DBRalir/Inugami
*
* Copyright (c) 2012 Jeramy Harrison <dbralir@gmail.com>
*
* This software is provided 'as-is', without any e... | 33,888 |
https://github.com/plopgrizzly/asi_vulkan/blob/master/src/vulkan.rs | Github Open Source | Open Source | MIT | null | asi_vulkan | plopgrizzly | Rust | Code | 1,879 | 7,597 | // "asi_vulkan" crate - Licensed under the MIT LICENSE
// * Copyright (c) 2017-2018 Jeron A. Lau <jeron.lau@plopgrizzly.com>
use ami::Parent;
use { std, std::{ mem, ptr::{ null, null_mut }, ffi::CString } };
use c_void;
use types::*;
// Windows
#[cfg(target_os = "windows")]
const DL: &'static str = "vulkan-1.dll";... | 47,133 |
https://github.com/marg51/re-bulma/blob/master/lib/dataComponent.js | Github Open Source | Open Source | MIT | 2,021 | re-bulma | marg51 | JavaScript | Code | 301 | 764 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... | 24,410 |
https://github.com/JimmyiZhang/Jazzy/blob/master/src/Jazzy.Library/Utility/RegexUtility.cs | Github Open Source | Open Source | MIT | null | Jazzy | JimmyiZhang | C# | Code | 47 | 236 | using System.Text.RegularExpressions;
namespace Jazzy.Library
{
public class RegexUtility
{
/// <summary>
/// 是否Email格式
/// </summary>
/// <returns></returns>
public static bool IsEmail(string input)
{
if (input.IsNullOrEmpty()) return false;
... | 41,428 |
https://github.com/allansrc/fuchsia/blob/master/src/graphics/tests/vkpriority/vkpriority.cc | Github Open Source | Open Source | BSD-2-Clause | 2,022 | fuchsia | allansrc | C++ | Code | 1,121 | 4,526 | // Copyright 2018 The Fuchsia 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 <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <chrono>
#include <future>
#include <thread>
#include <vector>
#i... | 53,198 |
https://github.com/willitscale/oaigatewayrelay/blob/master/src/uk/co/n3tw0rk/oaigatewayrelay/commands/pbx/MonitorStartAdvanced.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | oaigatewayrelay | willitscale | Java | Code | 615 | 1,159 | package uk.co.n3tw0rk.oaigatewayrelay.commands.pbx;
/**
*
* @author M00SEMARKTWO
MONITOR START ADVANCED – _MA
USE: Reduces the size of the Monitor Start command confirmation because the number of the
devices on a system keeps increasing. The current Monitor Start command (_MS) returns
all information in a single c... | 30,398 |
https://github.com/iwanb/ixnetwork_restpy/blob/master/ixnetwork_restpy/samples/object_from_obj_ref.py | Github Open Source | Open Source | MIT | 2,020 | ixnetwork_restpy | iwanb | Python | Code | 132 | 268 | """Demonstrates how to get an object given an href
The TestPlatform.Sessions class has a helper method that assists in returning an object given a valid href
"""
from ixnetwork_restpy.testplatform.testplatform import TestPlatform
# connect to a test tool platform
test_platform = TestPlatform('127.0.0.1')
test_platf... | 5,098 |
https://github.com/wspr-ncsu/acminer/blob/master/src/org/sag/acminer/phases/acminer/dw/StringVariable.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | acminer | wspr-ncsu | Java | Code | 69 | 240 | package org.sag.acminer.phases.acminer.dw;
import org.sag.acminer.database.defusegraph.id.Identifier;
public class StringVariable extends DataWrapper implements Variable {
public StringVariable(Identifier val) {
super(val);
}
private StringVariable(StringVariable p) {
this(p.getIdentifier().clone());
}
... | 42,020 |
https://github.com/ernestoho/template-giveaway-ruby2/blob/master/app/scss/pages/_front.scss | Github Open Source | Open Source | MIT | 2,020 | template-giveaway-ruby2 | ernestoho | SCSS | Code | 58 | 215 | .page-front {
.section-hero {
text-align: center;
background-position: center bottom;
background-repeat: no-repeat;
padding-top: 100px;
@include breakpoint(xl) {
background-size: contain;
}
@include breakpoint(sm) {
padding-top: 60px;
}
@include breakpoint(xs) {
p... | 48,668 |
https://github.com/rangell/BioSyn/blob/master/scripts/train-bc5cdr.sh | Github Open Source | Open Source | MIT | 2,021 | BioSyn | rangell | Shell | Code | 55 | 252 | #!/bin/bash
eval "$(conda shell.bash hook)"
conda activate biosyn
module load cudnn/7.6-cuda_9.0 cuda90
MODEL=biosyn-bc5cdr
BIOBERT_DIR=./pretrained/pt_biobert1.1
OUTPUT_DIR=./tmp/${MODEL}
DATA_DIR=./datasets/bc5cdr
python train.py \
--model_dir ${BIOBERT_DIR} \
--train_dictionary_path ${DATA_DIR}/train_dic... | 10,783 |
https://github.com/yeWangye/hiWeBlog/blob/master/entity/options.js | Github Open Source | Open Source | MIT | null | hiWeBlog | yeWangye | JavaScript | Code | 38 | 107 | /*!
* LetsBlog
* Entity model defination of options
* Released under MIT license
*/
'use strict';
var EntityModel = require('./_entity-model');
module.exports = new EntityModel([
'sitename',
'siteurl',
'keywords',
'description',
{ name: 'isopen', type: 'int' },
'tipstext',
'statcode'
]); | 10,335 |
https://github.com/juliopereirab/FlexDemo/blob/master/flex-demo/src/app/upload-model/upload-model.component.scss | Github Open Source | Open Source | MIT | 2,022 | FlexDemo | juliopereirab | SCSS | Code | 5 | 19 | .mat-raised-button {
margin: 12px;
}
| 34,464 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.