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/purpleyoung/rl-a3c/blob/master/A3C_class.py | Github Open Source | Open Source | MIT | 2,020 | rl-a3c | purpleyoung | Python | Code | 991 | 4,774 | # -*- coding: utf-8 -*-
from configs import EXTRA_DENSE, N_HIDDEN, DROPOUT, COOL_V, COOL_A, dep, gamma, training
s_size = 38 * dep
a_size = 3
model_path = 'model'
import os
import pandas as pd
import numpy as np
import scipy
import tensorflow as tf
import tensorflow.contrib.slim as slim
# %matplotlib inline
from rand... | 27,721 |
https://github.com/GTLugo/Chivalric/blob/master/chivalric/build/tmp/expandedArchives/forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-sources.jar_b77944a67449ffcc9dcc6ef1ff5cf49e/net/minecraft/entity/boss/dragon/phase/ChargingPlayerPhase.java | Github Open Source | Open Source | MIT | 2,020 | Chivalric | GTLugo | Java | Code | 194 | 642 | package net.minecraft.entity.boss.dragon.phase;
import javax.annotation.Nullable;
import net.minecraft.entity.boss.dragon.EnderDragonEntity;
import net.minecraft.util.math.vector.Vector3d;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class ChargingPlayerPhase extends Phas... | 46,845 |
https://github.com/xinyi-cx/logisticsManagement/blob/master/ruoyi-system/src/main/java/com/ruoyi/system/dpdservices/DeniedAccessWSException.java | Github Open Source | Open Source | MIT | null | logisticsManagement | xinyi-cx | Java | Code | 255 | 778 |
package com.ruoyi.system.dpdservices;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DeniedAccessWSException complex type.
*
* <p>The following schema fragment specifies the expected content cont... | 39,041 |
https://github.com/bingothon/bingothon-layouts/blob/master/src/extension/external-bingoboards/deusExBingoBoard.ts | Github Open Source | Open Source | MIT | 2,023 | bingothon-layouts | bingothon | TypeScript | Code | 268 | 889 | import * as RequestPromise from 'request-promise'
import * as nodecgApiContext from '../util/nodecg-api-context'
import { ExternalBingoboardManager } from "@/externalBingoboards"
import { ReplicantServer } from "nodecg/types/server"
import { ExternalBingoboard } from "schemas/externalBingoboard"
import { ExternalBingo... | 48,439 |
https://github.com/actransitorg/ACTransit.Training/blob/master/ACTransit.Entities/DataAccess.Maintenance/MaintenanceContext.cs | Github Open Source | Open Source | MIT | 2,016 | ACTransit.Training | actransitorg | C# | Code | 67 | 206 | using System.Data.Entity;
using ACTransit.Entities.Maintenance;
namespace ACTransit.DataAccess.Maintenance
{
public partial class MaintenanceContext : DbContext
{
public MaintenanceContext()
: base("name=MaintenanceEntities")
{
}
static MaintenanceContext()
... | 14,289 |
https://github.com/hungkinghsi/layaair/blob/master/src/plugins/debugtool/src/laya/debug/tools/CacheAnalyser.as | Github Open Source | Open Source | MIT | 2,021 | layaair | hungkinghsi | null | Spoken | 133 | 630 | package laya.debug.tools
{
import laya.debug.DebugTool;
import laya.display.Sprite;
import laya.debug.view.nodeInfo.DebugInfoLayer;
import laya.debug.view.nodeInfo.recinfos.ReCacheRecInfo;
/**
* ...
* @author ww
*/
public class CacheAnalyser
{
public function CacheAnalyser()
{
}
public st... | 33,436 |
https://github.com/TcavalcantiDesenv/RepasseApcd/blob/master/src/APCD/src/PlatinDashboard.Domain.Farmacia/Interfaces/Services/IVendaLojaPorHoraService.cs | Github Open Source | Open Source | Apache-2.0 | null | RepasseApcd | TcavalcantiDesenv | C# | Code | 22 | 113 | using PlatinDashboard.Domain.Farmacia.Entities;
using System.Collections.Generic;
using System.Data.Common;
namespace PlatinDashboard.Domain.Farmacia.Interfaces.Services
{
public interface IVendaLojaPorHoraService : IServiceBase<VendaLojaPorHora>
{
List<VendaLojaPorHora> BuscarPorLoja(int lojaId, DbCo... | 44,851 |
https://github.com/steffenjacobs/supersocial/blob/master/backend/src/main/java/me/steffenjacobs/supersocial/service/StatisticService.java | Github Open Source | Open Source | MIT | 2,021 | supersocial | steffenjacobs | Java | Code | 936 | 3,439 | package me.steffenjacobs.supersocial.service;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util... | 12,128 |
https://github.com/VinayakBagaria/baseui/blob/master/documentation-site/static/examples/checkbox/error.js | Github Open Source | Open Source | MIT | 2,019 | baseui | VinayakBagaria | JavaScript | Code | 24 | 67 | import * as React from 'react';
import {StatefulCheckbox} from 'baseui/checkbox';
export default () => (
<StatefulCheckbox onChange={console.log} isError>
Checkbox with an error
</StatefulCheckbox>
);
| 14,428 |
https://github.com/greydot/ghc/blob/master/testsuite/tests/pmcheck/should_compile/pmc009.hs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ghc | greydot | Haskell | Code | 57 | 125 | module HsUtils where
import GHC.Hs.Binds
import SrcLoc
-- | We have to be careful to normalise @SrcSpanLess (LHsBind)@ to
-- @LHsBindLR l r@ before passing the representative of @unLoc bind@ on to
-- @mkOneConFull@, otherwise this triggers a panic in @zipTvSubst@.
addPatSynSelector:: LHsBind p -> [a]
addPatSynSelecto... | 40,035 |
https://github.com/fbucek/tauri-yewprint-example/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,022 | tauri-yewprint-example | fbucek | Makefile | Code | 32 | 100 | .PHONY: dev yewprint-doc tauri run
all: yewprint-doc run
# Deploy yewprint-doc to public folder
yewprint-doc:
cd yewprint && ./build.sh
# Requirements: cargo install simple-http-server
dev:
cd yewprint && ./dev.sh
run: #yewprint-doc
scripts/build.sh
| 12,668 |
https://github.com/anrs07/Ordem-de-Servi-o-API/blob/master/src/main/java/edu/ifma/lpweb/andrew/ControleDeServicos/controller/response/Resposta.java | Github Open Source | Open Source | MIT | null | Ordem-de-Servi-o-API | anrs07 | Java | Code | 60 | 200 | package edu.ifma.lpweb.andrew.ControleDeServicos.controller.response;
import java.util.ArrayList;
import java.util.List;
public class Resposta<T> {
private T dados;
private List<Erro> erros = new ArrayList<>();
public T getDados() {
return dados;
}
public void setDados(T dados) {
... | 52,444 |
https://github.com/ChenglongChen/keras/blob/master/examples/reuters_mlp.py | Github Open Source | Open Source | MIT | 2,015 | keras | ChenglongChen | Python | Code | 222 | 897 | from __future__ import absolute_import
from __future__ import print_function
import numpy as np
from keras.datasets import reuters
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.layers.normalization import BatchNormalization
from keras.utils import np_utils
from... | 13,438 |
https://github.com/synercoder/PdfiumViewer/blob/master/src/Pdfium2BMP/PdfiumResolver.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | PdfiumViewer | synercoder | C# | Code | 16 | 51 | using System.Runtime.InteropServices;
namespace Pdfium2BMP
{
public static class PdfiumResolver
{
public static DllImportResolver? Resolve;
}
}
| 30,570 |
https://github.com/cahytinne/skosprovider/blob/master/skosprovider/tests/test_registry.py | Github Open Source | Open Source | MIT | 2,014 | skosprovider | cahytinne | Python | Code | 250 | 1,556 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
from test_providers import (
trees,
geo
)
from skosprovider.registry import (
Registry,
RegistryException
)
class RegistryTests(unittest.TestCase):
def setUp(self):
self.reg = Registry()
self.prov =... | 31,821 |
https://github.com/svmap/Angular-Starter-Kit/blob/master/src/app/components/partials/footer/footer.component.ts | Github Open Source | Open Source | MIT | 2,021 | Angular-Starter-Kit | svmap | TypeScript | Code | 202 | 523 | import { Component, OnInit } from '@angular/core';
import { Util } from '../../../helpers/util.helper';
import { User } from '../../../models/user.model';
export interface FooterLinks {
header: string;
links: [{
name: string;
route: string;
}];
}
@Component({
selector: 'app-footer',
templateUrl: './... | 47,281 |
https://github.com/haydeeR/iopa-bot/blob/master/src/index.ts | Github Open Source | Open Source | Apache-2.0, MIT | 2,020 | iopa-bot | haydeeR | TypeScript | Code | 73 | 218 | import {
default as IopaBotFramework,
// @ts-ignore
AppBotExtensions,
// @ts-ignore
DialogApp,
// @ts-ignore
SkillsCapability
} from './iopa-bot-framework'
import {
// @ts-ignore
ReactiveDialogsCapability,
// @ts-ignore
ReactiveDialogsSession,
useReactiveDialogs
} from './middleware/reactive-di... | 40,504 |
https://github.com/acc-cosc-1336-spring-2022/acc-cosc-1336-spring-2022-rObErT-a93/blob/master/src/examples/h_strings/strings.py | Github Open Source | Open Source | MIT | null | acc-cosc-1336-spring-2022-rObErT-a93 | acc-cosc-1336-spring-2022 | Python | Code | 66 | 186 | def test_config():
return True
def hello_world():
hello = 'Hello World!' # string = sequence of characters or symboles
print(hello[0]) # 0 = index
print(hello)
def loop_string(str):
for c in str: # hello
print(c)
def loop_string_while(str):
index = 0
while index < len(str):... | 53,487 |
https://github.com/Typescript-TDD/ts-auto-mock/blob/master/test/logs/missingTypeDefinition/missingTypeDefinition.warning.type.ts | Github Open Source | Open Source | MIT | 2,023 | ts-auto-mock | Typescript-TDD | TypeScript | Code | 16 | 60 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { NotExistingType } from 'aModule';
export type WrapperOfNotExistingType = NotExistingType;
| 45,107 |
https://github.com/Mrtnis/imunisasi_bayi/blob/master/kotajuang/cetak.php | Github Open Source | Open Source | MIT | null | imunisasi_bayi | Mrtnis | PHP | Code | 1,020 | 4,211 | <?php
$maxClusters = $_GET['cluster'];
session_start();
if ($_SESSION['status'] != 'login') {
header('Location: ../login.php?pesan=belum_login');
}
require_once '../clustering/vendor/autoload.php';
include "../config/koneksi.php";
$username = $_SESSION['username'];
$data = mysqli_query($koneksi,... | 16,930 |
https://github.com/mizne/management/blob/master/src/app/routes/resource-apply/services/resource-apply.service.ts | Github Open Source | Open Source | MIT | 2,019 | management | mizne | TypeScript | Code | 138 | 669 | import { HttpClient, HttpParams } from '@angular/common/http'
import { Injectable } from '@angular/core'
import { Observable } from 'rxjs/Observable'
import { of } from 'rxjs/observable/of'
import { delay } from 'rxjs/operators'
import {
ApplyInfo,
Approver,
RequirementApply,
FetchAddableApplyResourcePa... | 30,336 |
https://github.com/sally-akl/abar/blob/master/database/migrations/2020_11_04_175006_projects.php | Github Open Source | Open Source | Apache-2.0 | null | abar | sally-akl | PHP | Code | 71 | 446 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Projects extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('projects', function (Bluepr... | 21,686 |
https://github.com/LiYueqian-James/Chat-App/blob/master/src/hpn2_yl176/mini_mvc/view/package-info.java | Github Open Source | Open Source | MIT | null | Chat-App | LiYueqian-James | Java | Code | 12 | 34 | /**
*
*/
/**
* @author James Li
*
*/
package hpn2_yl176.mini_mvc.view; | 38,209 |
https://github.com/zhangzhepu/SXSDiTravel/blob/master/WebRoot/cloud.jsp | Github Open Source | Open Source | Apache-2.0 | 2,016 | SXSDiTravel | zhangzhepu | null | Spoken | 62 | 478 | <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<div class="cloud">
<h3>标签云</h3>
<ul>
<li><a href="/">世界第八大奇迹</a>
</li>
<li><a href="/">奇险天下第一山</a>
</li>
<li><a hre... | 30,416 |
https://github.com/EncoreJiang/presto/blob/master/presto-product-tests/src/main/resources/sql-tests/testcases/insert/insert_values_all_types.sql | Github Open Source | Open Source | Apache-2.0 | 2,016 | presto | EncoreJiang | SQL | Code | 33 | 137 | -- database: presto; groups: insert; mutable_tables: datatype|created
-- delimiter: |; ignoreOrder: true;
--!
insert into ${mutableTables.hive.datatype} values(1,2.34567,'a',cast('2014-01-01' as date), cast ('2015-01-01 03:15:16 UTC' as timestamp), TRUE);
select * from ${mutableTables.hive.datatype}
--!
1|2.34567|a|20... | 21,015 |
https://github.com/rutsky/bazel-gazelle/blob/master/vendor/github.com/pelletier/go-toml/WORKSPACE | Github Open Source | Open Source | Apache-2.0, MIT | 2,018 | bazel-gazelle | rutsky | Starlark | Code | 3 | 21 | workspace(name = "com_github_pelletier_go_toml")
| 47,704 |
https://github.com/danwatson00/crypto-charts/blob/master/src/components/Footer.tsx | Github Open Source | Open Source | MIT | null | crypto-charts | danwatson00 | TypeScript | Code | 106 | 319 | import React, { FC, ReactElement, useState, useContext } from 'react';
import Typography from '@mui/material/Typography';
import IconButton from '@mui/material/IconButton';
import Box from '@mui/material/Box';
import Brightness4Icon from '@mui/icons-material/Brightness4';
import Brightness7Icon from '@mui/icons-materia... | 7,276 |
https://github.com/plasma147/lorraine-dto-test-gen/blob/master/src/test/java/uk/co/optimisticpanda/gtest/dto/condition/CombinedConditionTest.java | Github Open Source | Open Source | Apache-2.0 | null | lorraine-dto-test-gen | plasma147 | Java | Code | 217 | 629 | /*
* Copyright 2009 Andy Lee.
*
* 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 ... | 20,623 |
https://github.com/MediaMath/gremlin/blob/master/lock/gremlin_local_lock.go | Github Open Source | Open Source | MIT | 2,022 | gremlin | MediaMath | Go | Code | 185 | 522 | package lock
import (
"fmt"
"sync"
"time"
c "github.com/patrickmn/go-cache"
)
// The LocalLock is an implementation of the LockClient_i/Lock_i structure
// That is designed to be used in a non-distributed environment
// It uses a cache of Mutexes which are locked and unlocked according to a specified key
type Lo... | 40,150 |
https://github.com/eechava6/Cpp-Calc/blob/master/Makefile | Github Open Source | Open Source | MIT | null | Cpp-Calc | eechava6 | Makefile | Code | 42 | 160 | CXXFLAGS=
cppcalc: calc.o scanner.o token.o ast.o parser.o calculator.o
$(CXX) ${CXXFLAGS} -o $@ $^
calc.o: calc.cpp scanner.h token.h
calculator.o: calculator.cpp calculator.h parser.h ast.h
scanner.o: scanner.cpp scanner.h token.h
token.o: token.cpp token.h
ast.o: ast.cpp ast.h
parser.o: parser.cpp pars... | 47,364 |
https://github.com/kengthong/SIA-App-Challenge-Operations-Dashboard/blob/master/src/components/cargo/flights-list-for-route/index.js | Github Open Source | Open Source | Apache-2.0 | null | SIA-App-Challenge-Operations-Dashboard | kengthong | JavaScript | Code | 503 | 1,817 | import React from 'react';
import { Button, Card, Col, Row, Table } from 'antd';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom'
import { getFlightsListForRoute } from './actions';
import './index.css';
import LoadPlanModal from './load-pla... | 15,793 |
https://github.com/swan8/m_adr_swan_biz_koala/blob/master/app/src/main/java/com/stephen/android/kaola/App.kt | Github Open Source | Open Source | Apache-2.0 | null | m_adr_swan_biz_koala | swan8 | Kotlin | Code | 25 | 123 | package com.stephen.android.kaola
import swan.atom.core.basectx.SwanAtomBaseApplication
/**
* Created by stephen on 09/03/2018.
*/
class App: SwanAtomBaseApplication() {
override fun initModuleApplicationImpl(module: MutableList<String>) {
module.add("swan.atom.core.AtomCoreApplicationImpl")
mo... | 16,206 |
https://github.com/willoughbyrm/tenor-android-core/blob/master/src/main/java/com/tenor/android/core/measurable/MeasurableViewHolder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | tenor-android-core | willoughbyrm | Java | Code | 472 | 1,729 | package com.tenor.android.core.measurable;
import android.support.annotation.CallSuper;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import com.tenor.android.core.model.imp... | 10,631 |
https://github.com/jared2501/encrypted-config-value/blob/master/encrypted-config-value/src/main/java/com/palantir/config/crypto/KeyPairFiles.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | encrypted-config-value | jared2501 | Java | Code | 164 | 310 | /*
* (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 36,339 |
https://github.com/partyoffice/spotifete/blob/master/resources/migrations/000040_add_song_requests_locked_column.up.sql | Github Open Source | Open Source | MIT | null | spotifete | partyoffice | SQL | Code | 13 | 34 | BEGIN;
ALTER TABLE song_requests
ADD COLUMN locked BOOLEAN NOT NULL DEFAULT FALSE;
COMMIT;
| 19,507 |
https://github.com/open-goal/jak-project/blob/master/goal_src/jak2/dgos/4aaron.gd | Github Open Source | Open Source | ISC | 2,023 | jak-project | open-goal | GDScript | Code | 5 | 39 | ("4AARON.DGO"
(
"4aaron-vis.go"
"tpage-2764.go"
))
| 9,734 |
https://github.com/DevChache/serverhub-mvc/blob/master/dist/lib/core/view/view.d.ts | Github Open Source | Open Source | MIT | 2,018 | serverhub-mvc | DevChache | TypeScript | Code | 8 | 18 | export declare function ApplyModel(view: string, model: Object): string;
| 29,811 |
https://github.com/abahnihi/kn-django-cookiecutter/blob/master/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/user/tests/test_urls.py | Github Open Source | Open Source | MIT | 2,020 | kn-django-cookiecutter | abahnihi | Python | Code | 49 | 210 | import pytest
from django.urls import resolve, reverse
from user.models import User
pytestmark = pytest.mark.django_db
def test_detail(user: User):
assert (
reverse("user:detail", kwargs={"username": user.username})
== f"/en/user/{user.username}/"
)
assert resolve(f"/en/user/{user.userna... | 40,448 |
https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/swift/ios/from-external-microphone/helloworld/helloworld/ViewController.swift | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,023 | cognitive-services-speech-sdk | Azure-Samples | Swift | Code | 452 | 1,515 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// <code>
import UIKit
import AVFoundation
import MicrosoftCognitiveServicesSpeech
extension AVAudioPCMBuffer {
func data() -> Data {
var nBytes =... | 7,346 |
https://github.com/mhcomm/pypeman/blob/master/examples/some_activity/tests.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | pypeman | mhcomm | Python | Code | 18 | 65 | from pypeman.test import PypeTestCase
# from pypeman.message import Message
class MyChanTest(PypeTestCase):
def test1_great_channel(self):
""" Test example """
self.get_channel("periodic")
| 19,977 |
https://github.com/Dmytro-Pashko/GdxSandbox/blob/master/core/src/com/dpashko/sandbox/shader/BoundingBoxShader.kt | Github Open Source | Open Source | Apache-2.0 | null | GdxSandbox | Dmytro-Pashko | Kotlin | Code | 159 | 925 | package com.dpashko.sandbox.shader
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.Camera
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.GL20
import com.badlogic.gdx.graphics.VertexAttribute
import com.badlogic.gdx.graphics.glutils.ShaderProgram
import com.badlogic.gdx.graphics.gl... | 15,893 |
https://github.com/bgrant/enaml/blob/master/enaml/tests/widgets/test_container.py | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,012 | enaml | bgrant | Python | Code | 95 | 338 | #------------------------------------------------------------------------------
# Copyright (c) 2012, Enthought, Inc.
# All rights reserved.
#------------------------------------------------------------------------------
from .enaml_test_case import EnamlTestCase
class TestContainer(EnamlTestCase):
""" Unit tes... | 1,413 |
https://github.com/bb4/bb4-experimentation/blob/master/scala-source/com/barrybecker4/experimentation/sedit/SimpleEditorFrame.scala | Github Open Source | Open Source | MIT | null | bb4-experimentation | bb4 | Scala | Code | 84 | 338 | package com.barrybecker4.experimentation.sedit
import com.barrybecker4.ui.util.GUIUtil
import javax.swing._
import java.awt._
object SimpleEditorFrame {
def main(args: Array[String]): Unit = {
new SimpleEditorFrame
}
}
class SimpleEditorFrame() extends JFrame("Simple Editor") {
GUIUtil.setCustomLookAndFee... | 36,195 |
https://github.com/armoty/rexom/blob/master/source/events/messageCreate.js | Github Open Source | Open Source | MIT | 2,021 | rexom | armoty | JavaScript | Code | 316 | 1,104 | const { MessageEmbed, Collection, Client, Message, MessageButton, MessageActionRow } = require('discord.js');
const { commands, player } = require('../index');
const db = require('quick.db');
const cooldowns = new Map();
const colors = require('../../config/colors.json');
/**
*
* @param {Client} client
* @param {... | 31,813 |
https://github.com/mysticaltech/sdk-js/blob/master/src/cid/fixedAssigner.ts | Github Open Source | Open Source | MIT | 2,021 | sdk-js | mysticaltech | TypeScript | Code | 30 | 88 | import {CidAssigner} from './assigner';
export class FixedAssigner implements CidAssigner {
private readonly cid: string;
public constructor(cid: string) {
this.cid = cid;
}
public assignCid(): Promise<string> {
return Promise.resolve(this.cid);
}
}
| 18,153 |
https://github.com/chreekat/advent_of_code/blob/master/2019/p1.hs | Github Open Source | Open Source | MIT | null | advent_of_code | chreekat | Haskell | Code | 53 | 91 | {-# LANGUAGE TypeApplications #-}
massFuel
:: Int -- ^ Mass
-> Int -- ^ Fuel
massFuel mass = blah !! mass
where blah = 0 : 0 : 0 : map go [3..]
go n = step n + (blah !! step n)
step n = max 0 (n `div` 3 - 2)
| 51,173 |
https://github.com/to-miz/tm/blob/master/src/tm_uint128/tm_uint128.mk | Github Open Source | Open Source | MIT | 2,021 | tm | to-miz | Makefile | Code | 63 | 445 | unmerged.tm_uint128.out := ${build_dir}unmerged.tm_uint128${exe_ext}
unmerged.tm_uint128.c.out := ${build_dir}unmerged.tm_uint128.c${exe_ext}
${unmerged.tm_uint128.out}: private link_libs.gcc += -lm
${unmerged.tm_uint128.out}: ${unmerged_deps} src/tm_uint128/*.cpp src/tm_uint128/*.h
${hide}echo Compiling $@.
${hide}... | 41,514 |
https://github.com/Easonle/ipfs-website/blob/master/tailwind.config.js | Github Open Source | Open Source | MIT, CC-BY-3.0 | 2,021 | ipfs-website | Easonle | JavaScript | Code | 380 | 1,643 | const breakpoints = { sm: 640, md: 768, lg: 1024, xl: 1280, xxl: 1440 };
const theme = {
extend: {
screens: Object.fromEntries(
Object.entries(breakpoints).map(([k, v]) => [k, `${v}px`])
),
colors: {
blueGreen: '#34797D',
blueGreenScreen: '#66989a',
blueGreenLight: '#6BC4CE',
... | 2,124 |
https://github.com/firmboy/keywords/blob/master/src/main/java/com/playboy/keywords/KeyWordsPlugin.java | Github Open Source | Open Source | Apache-2.0 | null | keywords | firmboy | Java | Code | 313 | 1,184 | package com.playboy.keywords;
import com.google.common.collect.Sets;
import com.playboy.util.ObjectUtils;
import org.apache.ibatis.cache.CacheKey;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.*;
... | 27,921 |
https://github.com/doraemon-ui/miniprogram/blob/master/demos/miniprogram.demo-page/src/index.ts | Github Open Source | Open Source | MIT | 2,021 | miniprogram | doraemon-ui | TypeScript | Code | 427 | 1,412 | import { defineComponentHOC, Doraemon, Component, Prop, Watch } from '@doraemon-ui/miniprogram.core-js'
const { classNames } = Doraemon.util
const themeJSON = {
'light': {
'backgroundColor': '#ffffff',
'backgroundTextStyle': 'light',
'navigationBarBackgroundColor': '#ffffff',
'navigationBarTextStyle'... | 6,866 |
https://github.com/yafare/botmm/blob/master/src/wx/WechatBundle/Command/ExportOpenIdCommand.php | Github Open Source | Open Source | MIT | 2,017 | botmm | yafare | PHP | Code | 75 | 357 | <?php
namespace Lilocon\WechatBundle\Command;
use Lilocon\WechatBundle\Export\Exporter;
use Lilocon\WechatBundle\Export\Source\OpenId;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Comp... | 8,144 |
https://github.com/Sympa-T/Character/blob/master/Assets/_Character/Animation/Animations/Talk/Talk - Stand Talking Left.anim | Github Open Source | Open Source | MIT | 2,021 | Character | Sympa-T | Unity3D Asset | Code | 20,000 | 68,316 | %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!74 &7400000 AnimationClip: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Talk - Stand Talking Left serializedVersion: 6 m_Legacy: 0 m_Compressed: 0 m_UseHighQualityCurve: 1 m_RotationCurves: ... | 35,453 |
https://github.com/Rklasens/DataBoss/blob/master/DataBoss.Specs/DataBossMappingSource.cs | Github Open Source | Open Source | MIT | 2,016 | DataBoss | Rklasens | C# | Code | 995 | 2,935 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data.Linq.Mapping;
using System.Data.Linq.SqlClient;
using System.Linq;
using System.Reflection;
using LinqTableAttribute = System.Data.Linq.Mapping.TableAttribute;
namespace DataBoss.Specs
{
class DataBossMappingSourc... | 12,545 |
https://github.com/knaxus/problem-solving-javascript/blob/master/src/_Searching_/TernarySearch/index.js | Github Open Source | Open Source | MIT | 2,023 | problem-solving-javascript | knaxus | JavaScript | Code | 232 | 515 | /**
* Note: Array must be sorted for ternary search
* Complexity:
* Worst case time complexity: O(log N)
* Average case time complexity: O(log N)
* Best case time complexity: O(1)
* Space complexity: O(1)
*/
function ternarySearch(arr, key) {
let low = 0;
let high = arr.length - 1;
while (low <= high) {
... | 52,951 |
https://github.com/bradleyg/django-s3direct/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,022 | django-s3direct | bradleyg | JavaScript | Code | 744 | 2,577 | import Cookies from "js-cookie";
import createHash from "sha.js";
import Evaporate from "evaporate";
import SparkMD5 from "spark-md5";
import "./css/bootstrap-progress.css";
import "./css/styles.css";
const request = (method, url, data, headers, el, cb) => {
let req = new XMLHttpRequest();
req.open(method, url, t... | 9,378 |
https://github.com/mbeynon/cytoscape.js/blob/master/gulpfile.js | Github Open Source | Open Source | MIT | 2,016 | cytoscape.js | mbeynon | JavaScript | Code | 1,653 | 6,370 | var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var path = require('path');
var exec = require('child_process').exec;
var fs = require('fs');
var runSequence = require('run-sequence');
var del = require('del');
var vinylPaths = require('vinyl-paths');
var clean = function(){ return vinylPaths(del) }... | 19,505 |
https://github.com/m5stack/HAT_8SERVO/blob/master/examples/servo_controller/servo_controller.ino | Github Open Source | Open Source | MIT | null | HAT_8SERVO | m5stack | null | Spoken | 226 | 888 | /*
*******************************************************************************
* Copyright (c) 2022 by M5Stack
* Equipped with M5StickC sample source code
*
* describe: HAT 8SERVO.
* date:2022/3/29
*******************************************************************************
Control the running... | 12,726 |
https://github.com/leochan1011/skyeye/blob/master/resources/views/auth/register.blade.php | Github Open Source | Open Source | MIT | 2,021 | skyeye | leochan1011 | Blade | Code | 241 | 1,066 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Create user') }}</div>
<div class="card-body">
<form method... | 43,234 |
https://github.com/bnejamin/BikeMaps/blob/master/mapApp/models/theft.py | Github Open Source | Open Source | MIT | 2,015 | BikeMaps | bnejamin | Python | Code | 469 | 1,350 | from django.conf import settings
from django.contrib.gis.db import models
from point import Point
##########
# Theft class.
# Class for Theft Reports. Contains all required, non-required, and spatial fields. Setup to allow easy export to a singular shapefile.
class Theft(Point):
THEFT_CHOICES = (
('Bike (v... | 36,003 |
https://github.com/jschmidt-1/loonjs/blob/master/public/scripts/entry.js | Github Open Source | Open Source | MIT | null | loonjs | jschmidt-1 | JavaScript | Code | 492 | 1,113 | // Copyright (c) 2017 Jannis Schmidt
//
// 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, copy, modify, merge, publish... | 37,702 |
https://github.com/grantwest/eventually-matchers/blob/master/src/main/java/com/github/grantwest/eventually/EventuallyLambdaMatcher.java | Github Open Source | Open Source | MIT | 2,021 | eventually-matchers | grantwest | Java | Code | 139 | 504 | package com.github.grantwest.eventually;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import java.time.Duration;
import java.time.Instant;
import java.util.function.Supplier;
public class EventuallyLambdaMatcher<T> extends TypeSafeMatcher<Supplier<T>> {
priva... | 27,046 |
https://github.com/gomson/TweetDuck/blob/master/Core/TweetDeckBrowser.cs | Github Open Source | Open Source | MIT | 2,017 | TweetDuck | gomson | C# | Code | 461 | 2,253 | using System;
using System.Drawing;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
using TweetDuck.Core.Bridge;
using TweetDuck.Core.Controls;
using TweetDuck.Core.Handling;
using TweetDuck.Core.Handling.General;
using TweetDuck.Core.Other.Management;
using TweetDuck.Core.Utils;
using TweetDuck.P... | 55,315 |
https://github.com/shiyouping/rtalpha/blob/master/server/ums-parent/ums-app/src/main/java/com/rtalpha/ums/app/mapper/AgentDtoDocMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | rtalpha | shiyouping | Java | Code | 30 | 124 | package com.rtalpha.ums.app.mapper;
import org.mapstruct.Mapper;
import com.rtalpha.base.mongo.document.Agent;
import com.rtalpha.base.mongo.mapper.DtoDocumentMapper;
import com.rtalpha.ums.kenel.dto.AgentDto;
/**
* @author Ricky
* @since Apr 8, 2017
*
*/
@Mapper
public interface AgentDtoDocMapper extends DtoDoc... | 35,561 |
https://github.com/laguirre12/react-calculator/blob/master/src/js/components/common/Alert.js | Github Open Source | Open Source | MIT | null | react-calculator | laguirre12 | JavaScript | Code | 96 | 222 | /**
* A component that displays an alert message.
* @module Alert
* @author laguirre <aguirreluis1234@gmail.com>
*/
const React = require('react');
const PropTypes = require('prop-types');
/**
* A functional component for an Alert messages. The alert message can either
* be of type 'failure', 'success', or 'neut... | 28,894 |
https://github.com/timsawyer/web-prototyping-tool/blob/master/src/app/routes/project/components/properties/project-properties/project-properties.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | web-prototyping-tool | timsawyer | TypeScript | Code | 417 | 1,276 | /*
* Copyright 2021 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 ... | 46,501 |
https://github.com/greyhwndz/ember-waypoints/blob/master/tests/dummy/app/components/waypoint.js | Github Open Source | Open Source | MIT | 2,015 | ember-waypoints | greyhwndz | JavaScript | Code | 7 | 26 | import WaypointComponent from 'ember-waypoints/components/waypoint';
export default WaypointComponent;
| 36,644 |
https://github.com/jokeofweek/thedrop-legacy/blob/master/app/views/admin/user/edit.blade.php | Github Open Source | Open Source | MIT | 2,018 | thedrop-legacy | jokeofweek | Blade | Code | 336 | 1,328 | @section('subContent')
<div class="container">
<ul class="breadcrumb">
<li>{{ link_to_action('AdminUserController@index', 'List Users') }} <span class="divider">/</span></li>
<li>{{ link_to_action('AdminUserController@show', 'Show User', array('user' => $user->id)) }} <span class="d... | 10,623 |
https://github.com/matanbroner/sharedb-monaco/blob/master/dist/bindings.d.ts | Github Open Source | Open Source | MIT | null | sharedb-monaco | matanbroner | TypeScript | Code | 95 | 297 | /**
* @fileOverview
* @name bindings.ts
* @author Carl Voller <carlvoller8@gmail.com>
* @license MIT
*/
import { editor } from "monaco-editor";
import sharedb from "sharedb/lib/client";
import { BindingsOptions } from "./types";
declare class Bindings {
private suppress;
private editor;
private path;
... | 21,307 |
https://github.com/diasRibeirao/FiapWebservicesRestfulTechnologies/blob/master/FiapWebservicesRestfulTechnologies/db/migrations/V17__Create_Table_Consultas.sql | Github Open Source | Open Source | Apache-2.0 | null | FiapWebservicesRestfulTechnologies | diasRibeirao | SQL | Code | 51 | 202 | CREATE TABLE `consultas` (
`id` bigint NOT NULL AUTO_INCREMENT,
`paciente_id` bigint NOT NULL,
`medico_id` bigint NOT NULL,
`telefone` varchar(20) not null,
`data` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `FK_CONSULTA_PACIENTE_ID` (`paciente_id`),
CONSTRAINT `FK_CONSULTA_PACIENTE` FOREIGN KEY (`p... | 30,300 |
https://github.com/zhangjihu0/react-react-router4-react-redux01/blob/master/app/components/OrderListComponent/index.jsx | Github Open Source | Open Source | MIT | null | react-react-router4-react-redux01 | zhangjihu0 | null | Spoken | 30 | 127 | import React,{Component} from 'react';
import OrderListItem from './orderListItem/index.jsx';
export default class OrderListComponent extends Component{
render(){
return(
<div>
<h3>订单列表</h3>
{this.props.data.map((item,index)=>{
return <OrderLis... | 9,655 |
https://github.com/GraniteDevices/SimpleMotionV2/blob/master/sm_consts.c | Github Open Source | Open Source | Apache-2.0 | 2,023 | SimpleMotionV2 | GraniteDevices | C | Code | 807 | 3,467 | #include "simplemotion_private.h"
/* Table of CRC16 values for high-order byte */
const smuint8 table_crc16_hi[] = {
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x01,... | 26,441 |
https://github.com/hillerlab/CESAR2.0/blob/master/kent/src/inc/cda.h | Github Open Source | Open Source | LicenseRef-scancode-other-permissive, LicenseRef-scancode-proprietary-license, MIT | 2,022 | CESAR2.0 | hillerlab | C | Code | 535 | 1,131 | /* cda.h - cDNA Alignment structure. This stores all the info except
* the bases themselves on an cDNA alignment.
*
* This file is copyright 2000 Jim Kent, but license is hereby
* granted for all use - public, private or commercial. */
#ifndef CDA_H
#define CDA_H
#ifndef MEMGFX_H
#include "memgfx.h"
#endif
#... | 24,836 |
https://github.com/ptitSeb/box64/blob/master/src/wrapped/generated/wrappedudev1undefs.h | Github Open Source | Open Source | MIT | 2,023 | box64 | ptitSeb | C | Code | 17 | 86 | /*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.2.0.18) *
*******************************************************************/
#ifndef __wrappedudev1UNDEFS_H_
#define __wrappedudev1UNDEFS_H_
#endif // __wrappedudev1UNDEFS_H_
| 26,440 |
https://github.com/ravendb/lucenenet/blob/master/src/Lucene.Net/Analysis/NumericTokenStream.cs | Github Open Source | Open Source | LicenseRef-scancode-unicode-mappings, BSD-3-Clause, Apache-2.0, Python-2.0 | 2,023 | lucenenet | ravendb | C# | Code | 1,278 | 3,594 | /*
* 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... | 8,443 |
https://github.com/marient/PelePhysics/blob/master/Support/Fuego/Pythia/pythia-0.4/packages/fuego/fuego/serialization/chemkin/unpickle/mechanisms/Declaration.py | Github Open Source | Open Source | BSD-3-Clause-LBNL | 2,019 | PelePhysics | marient | Python | Code | 61 | 207 | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2003 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~... | 7,682 |
https://github.com/iggyfisk/w3gjs/blob/master/dist/lib/ReplayParser.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | w3gjs | iggyfisk | JavaScript | Code | 536 | 1,760 | "use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... | 44,084 |
https://github.com/trebol-ecommerce/ngx-trebol-frontend/blob/master/src/models/entities/Image.ts | Github Open Source | Open Source | MIT | 2,022 | ngx-trebol-frontend | trebol-ecommerce | TypeScript | Code | 41 | 89 | /*
* Copyright (c) 2022 The Trebol eCommerce Project
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
export class Image{
filename: string;
url: string;
code?: string;
file?: File; // TODO refactor this out
targetUrl?: string;
}
| 23,145 |
https://github.com/etechi/ServiceFramework/blob/master/Projects/Server/Sys/SF.Sys.Entities.Implements/AutoEntityProvider/Internals/EntityModifierBuilders/PropertyModifiers/DefaultPropertyModifier.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | ServiceFramework | etechi | C# | Code | 232 | 734 | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2017 Yang Chen (cy2000@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http... | 28,329 |
https://github.com/Kirilliriks/BoosterCore/blob/master/src/net/minecraft/src/achievement/AchievementMap.java | Github Open Source | Open Source | MIT | 2,021 | BoosterCore | Kirilliriks | Java | Code | 101 | 398 | package net.minecraft.src.achievement;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Hash... | 31,932 |
https://github.com/AnkurSheel/RoutePlanner/blob/master/Engine/Source/AI/src/BTDecoratorNode.cpp | Github Open Source | Open Source | CC-BY-4.0 | null | RoutePlanner | AnkurSheel | C++ | Code | 97 | 382 | #include "stdafx.h"
#include "BTDecoratorNode.h"
using namespace AI;
using namespace Base;
// ********************************************************************************************************************
cBTDecoratorNode::cBTDecoratorNode()
: m_pChild(NULL)
, m_Initialized(false)
{
}
// ******************... | 28,002 |
https://github.com/alxndrtarasov/iroha-rest/blob/master/irohad/network/impl/block_loader_service.cpp | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,019 | iroha-rest | alxndrtarasov | C++ | Code | 299 | 1,088 | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "network/impl/block_loader_service.hpp"
#include "backend/protobuf/block.hpp"
#include "common/bind.hpp"
#include "logger/logger.hpp"
using namespace iroha;
using namespace iroha::ametsuchi;
using namespace ... | 16,045 |
https://github.com/tomstuart/govuk-exhibit/blob/master/mirror.js | Github Open Source | Open Source | MIT | 2,013 | govuk-exhibit | tomstuart | JavaScript | Code | 248 | 845 | /*global window, document, Faye */
/*jslint vars: true, indent: 2 */
(function () {
'use strict';
var begin = function (beginControlling, beginMirroring) {
var faye = new Faye.Client('/faye');
if (window.location.hostname.indexOf('mirror') === 0) {
beginMirroring(faye);
} else {
beginCont... | 53,388 |
https://github.com/kernsuite-debian/casalite/blob/master/lib/python2.7/carta_install.py | Github Open Source | Open Source | Python-2.0 | 2,021 | casalite | kernsuite-debian | Python | Code | 646 | 1,946 | import re
import sys
import os
import argparse
import urllib
import urllib2
from HTMLParser import HTMLParser
from subprocess import check_output
import platform
# Supported operating system versions
osVersions = ["el6", "el7", "osx1011", "osx1012"]
script_dir = os.path.dirname(os.path.realpath(__file__))
class MyH... | 31,577 |
https://github.com/sinri/Ark-SQLite3/blob/master/src/v2/ArkSqlite3.php | Github Open Source | Open Source | MIT | 2,022 | Ark-SQLite3 | sinri | PHP | Code | 1,682 | 4,610 | <?php
namespace sinri\ark\database\sqlite\v2;
use sinri\ark\database\sqlite\v2\exception\ArkSqlite3BindException;
use sinri\ark\database\sqlite\v2\exception\ArkSqlite3Exception;
use sinri\ark\database\sqlite\v2\exception\ArkSqlite3PrepareException;
use sinri\ark\database\sqlite\v2\exception\ArkSqlite3QueryException;
... | 23,608 |
https://github.com/hama111arbele/javascript-server/blob/master/index.js | Github Open Source | Open Source | Unlicense | 2,019 | javascript-server | hama111arbele | JavaScript | Code | 24 | 64 | export {default as Server} from './library/Server.js';
export {default as Router} from './library/Router.js';
export {default as Api} from './library/Api.js';
export {default as Socket} from './library/Socket.js';
| 10,234 |
https://github.com/ViewFaceCore/TenniS/blob/master/include/runtime/stack.h | Github Open Source | Open Source | BSD-2-Clause | null | TenniS | ViewFaceCore | C | Code | 1,312 | 3,003 | //
// Created by kier on 2018/5/25.
//
#ifndef TENSORSTACK_RUNTIME_STACK_H
#define TENSORSTACK_RUNTIME_STACK_H
#include "core/device.h"
#include "core/sync/sync_controller.h"
#include "core/dtype.h"
#include "core/tensor.h"
#include "global/hard_converter.h"
#include "utils/assert.h"
#include <vector>
#include <dequ... | 39,419 |
https://github.com/pomack/closure-templates/blob/master/java/src/com/google/template/soy/parsepasses/CheckDelegatesVisitor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | closure-templates | pomack | Java | Code | 733 | 2,197 | /*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 27,841 |
https://github.com/kunkunruye/charge/blob/master/charge-admin/src/main/java/net/inconnection/charge/extend/chargeDevice/protocol/topic/TopicUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | charge | kunkunruye | Java | Code | 79 | 320 | package net.inconnection.charge.extend.chargeDevice.protocol.topic;
import java.util.Vector;
import static net.inconnection.charge.extend.chargeDevice.protocol.ProtocolConstant.MQTT_TOPIC_SEPARATOR;
public class TopicUtil {
//字符串解析为topic vector
public static Vector decodeTopic(String topicStr){
S... | 34,749 |
https://github.com/TomasPilar/fitbit-http-php/blob/master/src/Friends/Friends.php | Github Open Source | Open Source | MIT | 2,022 | fitbit-http-php | TomasPilar | PHP | Code | 258 | 672 | <?php
declare(strict_types=1);
namespace Namelivia\Fitbit\Friends;
use Namelivia\Fitbit\Api\Fitbit;
class Friends
{
private $fitbit;
public function __construct(Fitbit $fitbit)
{
$this->fitbit = $fitbit;
}
/**
* Returns the data of a user's friends.
* The Fitbit privacy setti... | 30,996 |
https://github.com/php-api-clients/travis/blob/master/examples/specific-job-async.php | Github Open Source | Open Source | MIT | 2,021 | travis | php-api-clients | PHP | Code | 161 | 583 | <?php declare(strict_types=1);
use ApiClients\Client\Travis\AsyncClient;
use ApiClients\Client\Travis\Resource\Async\Build;
use ApiClients\Client\Travis\Resource\Async\Job;
use ApiClients\Client\Travis\Resource\Async\Repository;
use React\EventLoop\Factory;
use Rx\Observable;
require dirname(__DIR__) . DIRECTORY_SEPA... | 34,908 |
https://github.com/suclearnub/sac-rmv-calculator/blob/master/calc.py | Github Open Source | Open Source | MIT | null | sac-rmv-calculator | suclearnub | Python | Code | 61 | 184 | start_bar = int(input("Start pressure?: "))
end_bar = int(input("End pressure?: "))
bar = start_bar-end_bar
bottom_time = int(input("Bottom time (in min)?: "))
msw = float(input("Average depth?: "))
pressure = (msw*0.099376) + 1
sac = bar/bottom_time/pressure
print("SAC: " + str(sac) + " units/min")
service_pressu... | 44,643 |
https://github.com/miskoala/testqwondo/blob/master/testqwondoApi/src/test/java/org/mikala/testqwondo/api/tests/package-info.java | Github Open Source | Open Source | Apache-2.0 | null | testqwondo | miskoala | Java | Code | 11 | 35 | /**
*
*/
/**
* @author michal
*
*/
package org.mikala.testqwondo.api.tests; | 45,775 |
https://github.com/kesav7/RouteeSDK/blob/master/examples/accounts/retrieveAccountBal.php | Github Open Source | Open Source | MIT | 2,019 | RouteeSDK | kesav7 | PHP | Code | 36 | 139 | <?php
/* RETRIEVE THE BALANCE OF YOUR ACCOUNT */
require_once '../../vendor/autoload.php';
$config = array(
'application-id' => '57b5b7bde4b007f5ba82952b',
'application-secret' => '6k6sitD5hU',
);
use Routee\lib\Api as api;
$account = api\Accounts::getInstance($config);
echo '<pre>';
print_r( $account->ret... | 8,512 |
https://github.com/luck7710/sba-angular/blob/master/projects/components/autocomplete/public-api.ts | Github Open Source | Open Source | MIT | null | sba-angular | luck7710 | TypeScript | Code | 16 | 41 | export * from "./bootstrap/index";
export * from "./material/index";
export * from "./autocomplete.directive";
export * from "./suggest.service"; | 19,635 |
https://github.com/janimattiellonen/website/blob/master/src/Jme/UserBundle/Resources/less/login.less | Github Open Source | Open Source | MIT | 2,015 | website | janimattiellonen | Less | Code | 116 | 439 | #page {
margin-top: 100px;
width: 630px;
height: 790px;
background: url('/bundles/jmemain/images/login-background.png');
background-repeat: no-repeat;
padding: 300px 100px 200px 100px;
#login-box {
margin: 0 auto;
width: 257px;
height: 210px;
background:... | 43,399 |
https://github.com/miticc06/karaoke-frontend/blob/master/cypress/integration/module5/4.delete-room.spec.js | Github Open Source | Open Source | MIT | 2,020 | karaoke-frontend | miticc06 | JavaScript | Code | 116 | 452 | import setting from '../../../cypress.json'
const { wait } = setting
const link = Cypress.env('FRONTEND')
const restoreDB = async label => await cy.request('POST', Cypress.env('BACKEND'), { query: `mutation { restoreDB(label: "${label}") }` });
describe('viewport', () => {
beforeEach(() => {
cy.viewport(settin... | 49,901 |
https://github.com/ktgw0316/LightZone/blob/master/lightcrafts/test/src/com/lightcrafts/ui/editor/test/EditorLayout.java | Github Open Source | Open Source | 2,023 | LightZone | ktgw0316 | Java | Code | 496 | 1,465 | /* Copyright (C) 2005-2011 Fabio Riccardi */
package com.lightcrafts.ui.editor.test;
import com.lightcrafts.image.BadImageFileException;
import com.lightcrafts.image.ImageInfo;
import com.lightcrafts.image.UnknownImageTypeException;
import com.lightcrafts.image.UnsupportedColorProfileException;
import com.lightcrafts... | 44,756 | |
https://github.com/MrXploder/appMixtura/blob/master/node_modules/javascript-obfuscator/index.ts | Github Open Source | Open Source | MIT | 2,019 | appMixtura | MrXploder | TypeScript | Code | 11 | 41 | "use strict";
import { JavaScriptObfuscator } from './src/JavaScriptObfuscator';
module.exports = JavaScriptObfuscator;
| 16,914 |
https://github.com/Gustavo-daCosta/Dart/blob/master/ExerciseList/CEV-Algoritmos/EXC018.dart | Github Open Source | Open Source | MIT | null | Dart | Gustavo-daCosta | Dart | Code | 90 | 199 | import 'dart:io';
void main() {
stdout.write('Digite o ano do seu nascimento: ');
String? inputAnoNasc = stdin.readLineSync();
if (inputAnoNasc != null) {
int idade = 2022 - int.parse(inputAnoNasc);
if (idade < 16) {
print('Você ainda não tem idade suficiente para votar.');
} else if ((idade ... | 44,635 |
https://github.com/maceman1984/LerpzUnity5/blob/master/Assets/3D Platformer Tutorial/Scripts/Player/FalloutDeath.js | Github Open Source | Open Source | CC0-1.0 | 2,021 | LerpzUnity5 | maceman1984 | JavaScript | Code | 74 | 225 |
function OnTriggerEnter (other : Collider)
{
// Player fall out!
if (other.GetComponent (ThirdPersonStatus))
{
other.GetComponent (ThirdPersonStatus).FalloutDeath();
}
// Kill all rigidibodies flying through this area
// (Props that fell off)
else if (other.attachedRigidbody)
Destroy(other.attachedRigidbody... | 53,226 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.