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/dnys1/humbleme-archive/blob/master/lib/app/widgets/friendship_button.dart | Github Open Source | Open Source | BSD-3-Clause | 2,020 | humbleme-archive | dnys1 | Dart | Code | 1,225 | 4,335 | import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:redux/redux.dart';
import '../../auth/actions.dart';
import '../../auth/models.dart';
import '../../core/models.dart';
import '../../selectors.dart';
enum FriendshipStatu... | 21,415 |
https://github.com/rutgervandeelen/das/blob/master/src/main.f90 | Github Open Source | Open Source | MIT | null | das | rutgervandeelen | null | Spoken | 353 | 1,164 |
program main
!-----------------------------------------------------------
!
! Program:
! Doubling-adding solver
!
! Purpose:
! Solves radiative transfer in plane-parallel atmosphere
! in the scalar approximation and includes inelastic
! Raman scattering
!
! Authors:
! Rutger van Deelen
! SRON - Nether... | 270 |
https://github.com/cryptobuks/laravel-wallet/blob/master/src/Interfaces/Product.php | Github Open Source | Open Source | MIT | 2,021 | laravel-wallet | cryptobuks | PHP | Code | 41 | 116 | <?php
declare(strict_types=1);
namespace Bavix\Wallet\Interfaces;
interface Product extends Wallet
{
public function canBuy(Customer $customer, int $quantity = 1, bool $force = false): bool;
/**
* @return float|int|string
*/
public function getAmountProduct(Customer $customer);
/**
*... | 16,166 |
https://github.com/Hydro74000/Monocle/blob/master/Dockerfile | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | Monocle | Hydro74000 | Dockerfile | Code | 99 | 240 | # Basic docker image for Monocle
# Usage:
# docker build -t Monocle
# docker run -d --name Monocle -P Monocle
FROM python:3.6
# Default port the webserver runs on
EXPOSE 5000
# Working directory for the application
WORKDIR /usr/src/app
# Set Entrypoint with hard-coded options
ENTRYPOINT ["python3"]
CMD ["./scan... | 39,365 |
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/ThirdParty/llvm/3.5.0/include/llvm/Support/MemoryBuffer.h | Github Open Source | Open Source | NCSA, MIT, LicenseRef-scancode-proprietary-license | 2,022 | UnrealEngine_NVIDIAGameWorks | windystrife | C++ | Code | 795 | 1,674 | //===--- MemoryBuffer.h - Memory Buffer Interface ---------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 43,400 |
https://github.com/Dhrobalok/project/blob/master/ConstructionSite/resources/views/backend/admin/uploadproject/uploadsanitary/seesanitary.blade.php | Github Open Source | Open Source | MIT | 2,023 | project | Dhrobalok | Blade | Code | 108 | 614 | @extends('backend.admin.userdashboard.header')
@section('content')
@if($allsanitary!='[]')
<div class="row justify-content-start p-3">
@foreach ($allsanitary as $allsanitarys)
<div class="col-md-3 py-4">
<div class="card">
<div class="card-header">
@php
$c... | 21,349 |
https://github.com/Supamiu/ffxiv-teamcraft/blob/master/apps/client-e2e/src/integration/auth.spec.ts | Github Open Source | Open Source | MIT | 2,019 | ffxiv-teamcraft | Supamiu | TypeScript | Code | 46 | 238 | import { changeLanguage } from '../support/app.po';
import { fixtures } from '../fixtures/fixtures';
describe('Auth tests', () => {
before(() => {
indexedDB.deleteDatabase('firebaseLocalStorageDb');
cy.visit('/');
changeLanguage('EN');
});
it('should be able to register', () => {
cy.get('.ant-m... | 2,141 |
https://github.com/yii2-code/shop-for-review/blob/master/app/modules/image/tests/unit/services/Upload/CreateThumbsTest.php | Github Open Source | Open Source | BSD-3-Clause | null | shop-for-review | yii2-code | PHP | Code | 52 | 215 | <?php
/**
* Created by PhpStorm.
* User: cheremhovo
* Date: 04.02.18
* Time: 19:19
*/
namespace app\modules\image\tests\unit\services\Upload;
/**
* Class CreateThumbsTest
* @package app\modules\image\tests\unit\services\Image
*/
class CreateThumbsTest extends Unit
{
/**
* @group image
*/
pu... | 33,175 |
https://github.com/somostelam/somostelam/blob/master/public/assets/js/index.js | Github Open Source | Open Source | MIT | 2,018 | somostelam | somostelam | JavaScript | Code | 99 | 581 | var config = {
apiKey: "AIzaSyCyqG7Y0uK9et-yIp2XA4k-LgkwmyqEvTs",
authDomain: "somostelam2018.firebaseapp.com",
databaseURL: "https://somostelam2018.firebaseio.com",
projectId: "somostelam2018",
storageBucket: "somostelam2018.appspot.com",
messagingSenderId: "319669964621"
};
var dbf;
fireba... | 49,679 |
https://github.com/beaulian/dce-client/blob/master/dce/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | dce-client | beaulian | Python | Code | 4 | 13 | from .api.client import DCEAPIClient
| 15,583 |
https://github.com/hpierce1102/CLI-Backup/blob/master/src/Configuration.php | Github Open Source | Open Source | MIT | 2,019 | CLI-Backup | hpierce1102 | PHP | Code | 132 | 615 | <?php
/**
* @copyright Hayden Pierce (hayden@haydenpierce.com)
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Backup;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\Co... | 44,972 |
https://github.com/unparalleled-js/ape-kong/blob/master/ape_kong/_cli.py | Github Open Source | Open Source | MIT | null | ape-kong | unparalleled-js | Python | Code | 19 | 60 | import click
from ape import config
from .game import play
@click.command(short_help="Play Ape Kong")
def kong():
piece = config.get_config("kong").game_piece
play(piece)
| 18,559 |
https://github.com/cwjcsu/learning/blob/master/basic/src/main/java/com/cwjcsu/learning/tricks/CurrentExecutingMethod.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | learning | cwjcsu | Java | Code | 136 | 463 | /*$Id: $
* author date comment
* cwjcsu@gmail.com 2015年11月10日 Created
*/
package com.cwjcsu.learning.tricks;
/**
* 打印当前执行过程中的方法
*
* http://stackoverflow.com/questions/442747/getting-the-name-of-the-current-
* executing-method
*
* @author atlas
*
*/
public class CurrentExecutingMet... | 4,688 |
https://github.com/jonathanssm/test-wktec/blob/master/src/app/compartilhado/utils/app-formulario.util.ts | Github Open Source | Open Source | MIT | null | test-wktec | jonathanssm | TypeScript | Code | 97 | 228 | import { FormGroup, FormControl } from '@angular/forms';
export class AppFormularioUtil {
/*
* A partir do FormControl passado por parametro e recuperado o nome do mesmo
*
* @param control
*/
public static getNomeFormControl(control: FormControl): string {
let nomeFormControl = '';
... | 12,831 |
https://github.com/arturo-mazzoni/laravel-fashion-shop/blob/master/resources/views/home.blade.php | Github Open Source | Open Source | MIT | null | laravel-fashion-shop | arturo-mazzoni | PHP | Code | 38 | 118 | @extends('layouts.app')
@section('titolo')
Home Page
@endsection
@section('content')
<h1>Homepage</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus explicabo in optio pariatur, eum perferendis exercitationem hic provident fugiat quia ipsum. Vero illo fugit velit suscipit assumenda ali... | 43,085 |
https://github.com/ashurrafiev/ZoomUI_scala/blob/master/src/com/xrbpowered/scala/zoomui/UIZoomView.scala | Github Open Source | Open Source | MIT | null | ZoomUI_scala | ashurrafiev | Scala | Code | 198 | 557 | package com.xrbpowered.scala.zoomui
class UIZoomView(parent: UIContainer) extends UIPanView(parent) {
import UIElement._
protected var _scale = 1f
private var _scaleRange: (Float, Float) = (0.1f, 3.0f)
def scaleRange: (Float, Float) = _scaleRange
def scaleRange_= (range: (Float, Float)): Unit = {
_scaleRange =... | 51,403 |
https://github.com/couchbaselabs/couchbase-cloud-go-client/blob/master/model_v3_cluster.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | couchbase-cloud-go-client | couchbaselabs | Go | Code | 1,684 | 3,844 | /*
Couchbase Public API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package couchbasecapella
import (
"encoding/json"
"time"
)
// V3Cluster s... | 33,090 |
https://github.com/SSSDNSY/go/blob/master/src/cmd/compile/internal/noder/encoder.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | go | SSSDNSY | Go | Code | 770 | 2,461 | // UNREVIEWED
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package noder
import (
"bytes"
"encoding/binary"
"fmt"
"go/constant"
"io"
"math/big"
"runtime"
"cmd/compile/internal/base"
)
type pkgE... | 16,723 |
https://github.com/pradipfl/biodiv/blob/master/grails-app/views/observation/_addNotes.gsp | Github Open Source | Open Source | Apache-2.0 | 2,018 | biodiv | pradipfl | null | Spoken | 133 | 686 | <%@ page import="species.utils.Utils"%>
<%@page import="java.util.Arrays"%>
<div class="section" style="position: relative; overflow: visible;">
<h3><g:message code="observation.addnotes.additional.information" /> </h3>
<div class="span6 block">
<!--label for="notes"><g:message code="observation.notes.l... | 10,626 |
https://github.com/dmitry-litviak/inside/blob/master/application/views/mail/recovery.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | inside | dmitry-litviak | PHP | Code | 16 | 41 | <p>Follow this link to recover your password</p>
<a href="<?php echo $obj["recovery_url"] ?>" >Click to recover password</a>
| 27,867 |
https://github.com/SeptAlfauzan/covid-tracker/blob/master/src/Detail.js | Github Open Source | Open Source | MIT | 2,020 | covid-tracker | SeptAlfauzan | JavaScript | Code | 579 | 2,459 | import React from 'react';
import Loader from './Loader';
import Copyright from './Copyright';
import 'bootstrap/dist/css/bootstrap.css';
import './css/style.css';
import AOS from 'aos';
import 'aos/dist/aos.css';
const Chart = require("chart.js");
class Detail extends React.Component {
constructor(props) {
... | 17,608 |
https://github.com/skoba/rails-ehrbase/blob/master/spec/requests/covid19_self_moitoring_request_spec.rb | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | rails-ehrbase | skoba | Ruby | Code | 8 | 33 | require 'rails_helper'
RSpec.describe 'Covid19SelfMoitorings', type: :request do
end
| 49,257 |
https://github.com/nlewycky/x64asm/blob/master/src/xmm.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | x64asm | nlewycky | C | Code | 425 | 950 | /*
Copyright 2013-2015 Stanford University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 43,235 |
https://github.com/wangcaihua/serving/blob/master/common/src/main/java/com/tencent/angel/serving/apis/prediction/PredictionServiceGrpc.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | serving | wangcaihua | Java | Code | 1,554 | 8,831 | package com.tencent.angel.serving.apis.prediction;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import stati... | 18,106 |
https://github.com/Ahmsta/wura/blob/master/app/Http/Controllers/ReportController.php | Github Open Source | Open Source | MIT | 2,018 | wura | Ahmsta | PHP | Code | 362 | 1,279 | <?php
namespace App\Http\Controllers;
use Auth;
use Carbon\Carbon;
use App\Models\User;
use App\Models\Cards;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use App\Http\Validations\AuthValidation;
use Illuminate\Support\Facades\Validator;
class ReportController extends Controller
{
protected $... | 22,808 |
https://github.com/schhx/spring-boot-api-project-seed/blob/master/src/main/java/com/company/project/core/security/JwtUtil.java | Github Open Source | Open Source | MIT | null | spring-boot-api-project-seed | schhx | Java | Code | 192 | 685 | package com.company.project.core.security;
import com.alibaba.fastjson.JSON;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.*;
import com.auth0.jwt.interfaces.DecodedJWT;
import com.company.project.core.exception.BaseException;
imp... | 54,347 |
https://github.com/kucjac/clego/blob/master/database/es/esxsql/migrate.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | clego | kucjac | Go | Code | 2,005 | 6,418 | package esxsql
import (
"bytes"
"context"
"database/sql"
_ "embed"
"errors"
"fmt"
"strings"
"text/template"
"github.com/kucjac/cleango/cgerrors"
"github.com/kucjac/cleango/database/xsql"
"github.com/kucjac/cleango/ddd/events/eventstate"
"github.com/kucjac/cleango/pkg/xlog"
)
//go:embed mysql.tmpl
var my... | 47,973 |
https://github.com/ctti-clinicaltrials/aact-admin/blob/master/lib/capistrano/tasks/server_deploy.rake | Github Open Source | Open Source | MIT | 2,023 | aact-admin | ctti-clinicaltrials | Ruby | Code | 10 | 53 | task :server_deploy do
on "ctti-aact@ctti-web-dev-01.oit.duke.edu" do
execute "~/server_deploy"
end
end
| 46,260 |
https://github.com/Ashindustry007/competitive-programming/blob/master/codeforces/1228/f.cc | Github Open Source | Open Source | WTFPL | 2,022 | competitive-programming | Ashindustry007 | C++ | Code | 481 | 1,123 | // https://codeforces.com/contest/1228/problem/A
#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using si = unordered_set<int>;
using vsi = vector<si>;
using vvi = vector<vi>;
using qi = queue<int>;
int n, k, r, s = -1;
vi d, depth;
vsi h;
vvi g;
bool dfs(int u, int p) {
if (p == -1 && (d[u] ... | 48,032 |
https://github.com/delian1986/SoftUni-C-Sharp-repo/blob/master/Programming Fundamenals January 2018/11. Files And Exeptions/Files Exeptions/Files Exeptions.sln | Github Open Source | Open Source | MIT | 2,019 | SoftUni-C-Sharp-repo | delian1986 | null | Spoken | 263 | 1,715 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01. Most Frequent Number", "01. Most Frequent Number\01. Most Frequent Number.csproj", "{C48768F5-4603-4C2... | 45,714 |
https://github.com/Victoria-Butrym/culture-portal/blob/master/src/pages/page-2.jsx | Github Open Source | Open Source | MIT | 2,020 | culture-portal | Victoria-Butrym | JavaScript | Code | 73 | 216 | import React from 'react';
import { Link } from 'gatsby';
import Layout from '../components/layout';
import SEO from '../components/seo';
import Gallery from '../components/Gallery/gallery';
import TimelineElement from '../components/Timeline/timeline';
import YoutubeElement from '../components/Youtube/youtube';
impor... | 22,410 |
https://github.com/thailemeetai/dart-sdk/blob/master/lib/src/services/tools.dart | Github Open Source | Open Source | Apache-2.0 | 2,022 | dart-sdk | thailemeetai | Dart | Code | 457 | 1,110 | import 'dart:math';
import 'package:tinode/src/models/topic-names.dart' as topic_names;
import 'package:tinode/src/models/connection-options.dart';
import 'package:tinode/src/models/access-mode.dart';
import 'package:tinode/src/models/values.dart';
/// Initialize a random message Id
var messageId = Random().nextInt(0... | 32,177 |
https://github.com/tonalll/thinkphp/blob/master/52/runtime/temp/c637f3fc1649c590baea986bd8f7b46e.php | Github Open Source | Open Source | Apache-2.0 | 2,016 | thinkphp | tonalll | PHP | Code | 140 | 1,137 | <?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:58:"F:\wamp\www\tp\52/application/admin\view\button\index.html";i:1468220051;}*/ ?>
<div class="l-segment l-border-0 example-layout">
<h3>按钮</h3>
<div class="l-divider-50"></div>
<div class="l-row">
<div class="l-col-1"><span class="m-button">按钮</sp... | 12,480 |
https://github.com/kurtraschke/wsf-gtfsrealtime/blob/master/src/main/java/com/kurtraschke/wsf/gtfsrealtime/WSFRealtimeMain.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | wsf-gtfsrealtime | kurtraschke | Java | Code | 392 | 1,675 | /*
* Copyright (C) 2015 Kurt Raschke <kurt@kurtraschke.com>
* Copyright (C) 2012 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/LICENS... | 16,633 |
https://github.com/talmago/pyspark-loglikelihood/blob/master/pyspark_loglikelihood/options.py | Github Open Source | Open Source | MIT | 2,020 | pyspark-loglikelihood | talmago | Python | Code | 77 | 235 | def normalize_options(options):
"""Normalize docopt's options dictionary."""
_options = {}
for k, v in options.iteritems():
if k.startswith('<') and k.endswith('>') or k.startswith('--'):
if k.startswith('<') and k.endswith('>'):
k = k[1:-1]
elif k.startswith(... | 26,001 |
https://github.com/cart88/cas/blob/master/support/cas-server-support-acceptto-mfa/src/main/java/org/apereo/cas/mfa/accepto/web/flow/AccepttoMultifactorDetermineUserAccountStatusAction.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | cas | cart88 | Java | Code | 312 | 1,409 | package org.apereo.cas.mfa.accepto.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.mfa.accepto.AccepttoApiUtils;
import org.apereo.cas.mfa.accepto.AccepttoEmailCredential;
import org.apereo.cas.util.CollectionUtils;
import org.apereo.cas.web.flow.CasWebflowConstants;
imp... | 7,081 |
https://github.com/mhbeals/sap_reprints/blob/master/Outputs/titles/issuepercentage/AberdeenJournal/1865_02.tsv | Github Open Source | Open Source | CC-BY-4.0 | 2,017 | sap_reprints | mhbeals | TSV | Code | 8 | 72 | 1865.02.01_AberdeenJournal 0.021633
1865.02.08_AberdeenJournal 0.031391
1865.02.15_AberdeenJournal 0.022664
1865.02.22_AberdeenJournal 0.028352
| 41,082 |
https://github.com/nknguyengl/reochi-laravel/blob/master/resources/nuxt/pages/supplier/add.vue | Github Open Source | Open Source | MIT | 2,020 | reochi-laravel | nknguyengl | Vue | Code | 398 | 1,901 | <template>
<v-app class="pa-5">
<v-card class="card">
<v-card-title class="blue-grey lighten-4">Create Supplier</v-card-title>
<p class="px-5 pt-3 font-italic grey--text">
The field labels marked with
<span class="red--text">*</span> are required input fields.
</p>
<v-row class="px-5">
<v-col... | 37,927 |
https://github.com/Sherkyoung/kinbook/blob/master/src/main/java/com/kindle/kinbook/dao/UserPropertiesMapper.java | Github Open Source | Open Source | Apache-2.0 | null | kinbook | Sherkyoung | Java | Code | 194 | 473 | package com.kindle.kinbook.dao;
import java.util.Date;
import com.kindle.kinbook.bean.UserProperties;
public interface UserPropertiesMapper {
/**
* This method was generated by MyBatis Generator. This method corresponds to the database table user_properties
* @mbggenerated Tue Oct 20 22:18:39 CST 2015
*/
i... | 52,775 |
https://github.com/w3f-community/openbrush-contracts/blob/master/examples/payment_splitter/lib.rs | Github Open Source | Open Source | MIT | null | openbrush-contracts | w3f-community | Rust | Code | 55 | 251 | #![cfg_attr(not(feature = "std"), no_std)]
#![feature(min_specialization)]
#[brush::contract]
pub mod my_payment_splitter {
use brush::contracts::payment_splitter::*;
use ink_prelude::vec::Vec;
use ink_storage::traits::SpreadAllocate;
#[ink(storage)]
#[derive(Default, SpreadAllocate, PaymentSplitt... | 52,783 |
https://github.com/stfc-aeg/odin-inaira/blob/master/data/cmake/FindTensorflow.cmake | Github Open Source | Open Source | Apache-2.0 | null | odin-inaira | stfc-aeg | CMake | Code | 297 | 765 | #
# FindTensorflow.cmake
#
#
# The MIT License
#
# Copyright (c) 2016 MIT and Intel Corporation
#
# 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 limita... | 40,496 |
https://github.com/Skura23/eshop-426-admin/blob/master/src/views/order-manage/detail.vue | Github Open Source | Open Source | MIT | 2,021 | eshop-426-admin | Skura23 | Vue | Code | 385 | 2,051 | <!-- home -->
<template>
<div class="app-container page-order-detail">
<div class="_d0">
<el-row :gutter="20">
<el-col :span="8">
<div class="">
<el-card class="box-card">
<div
slot="header"
class="clearfix"
>
... | 43,798 |
https://github.com/llvmpy/llvmpy/blob/master/llvm/tests/test_type_hash.py | Github Open Source | Open Source | NCSA, BSD-3-Clause | 2,015 | llvmpy | llvmpy | Python | Code | 78 | 307 | import unittest
from llvm.core import Type
from .support import TestCase, tests
class TestTypeHash(TestCase):
def test_scalar_type(self):
i32a = Type.int(32)
i32b = Type.int(32)
i64a = Type.int(64)
i64b = Type.int(64)
ts = set([i32a, i32b, i64a, i64b])
self.assertTru... | 14,589 |
https://github.com/LGByte/MLMNetWork/blob/master/MLMNetWork/Protocol/Parsable.swift | Github Open Source | Open Source | MIT | null | MLMNetWork | LGByte | Swift | Code | 94 | 265 | //
// Parsable.swift
// MLMNetWork
//
// Created by 孟利明 on 2020/8/5.
//
import Foundation
import HandyJSON
public typealias MParsable = MLMNetWork.Parsable
public enum ParseError<T>: Error {
/// 无数据
case noData
/// 解析失败
case notJson(Any)
/// 未知
case unknown(Any)
/// 其他错误
case custo... | 23,763 |
https://github.com/sorrycc/vite/blob/master/packages/vite/src/node/optimizer/depAssetPlugin.ts | Github Open Source | Open Source | CC0-1.0, GPL-1.0-or-later, CC-BY-SA-4.0, JSON, BSD-3-Clause, MIT, ISC, GPL-2.0-only, Apache-2.0, BSD-2-Clause | 2,021 | vite | sorrycc | TypeScript | Code | 236 | 650 | import path from 'path'
import { Plugin } from 'rollup'
import { init, parse } from 'es-module-lexer'
import { isCSSRequest } from '../plugins/css'
import MagicString from 'magic-string'
import { normalizePath } from '../utils'
import { ResolvedConfig } from '../config'
import { idToPkgMap } from '../plugins/resolve'
... | 27,594 |
https://github.com/blobtoolkit/blobtoolkit/blob/master/src/api/package.sh | Github Open Source | Open Source | MIT | 2,023 | blobtoolkit | blobtoolkit | Shell | Code | 58 | 178 | #!/bin/bash
echo "Packaging blobtoolkit-api" &&
echo "Installing dependencies" &&
npm install --legacy-peer-deps &&
echo "Copying files" &&
mkdir -p src/api-docs &&
rm -rf src/api-docs/* &&
cp node_modules/swagger-ui-dist/* src/api-docs/ &&
cp node_modules/swagger-ui-express/* src/api-docs/ &&
mkdir -p demo &&... | 42,127 |
https://github.com/devsnek/wasm-feature-detect/blob/master/src/detectors/threads/module.wat | Github Open Source | Open Source | Apache-2.0 | null | wasm-feature-detect | devsnek | null | Spoken | 12 | 38 | (module
(memory 1 1 shared)
(func
i32.const 0
i32.atomic.load
drop
)
) | 30,404 |
https://github.com/yappy/ajlua/blob/master/android/app/src/main/java/io/github/yappy/androidlua/MainActivity.java | Github Open Source | Open Source | MIT | 2,021 | ajlua | yappy | Java | Code | 138 | 646 | package io.github.yappy.androidlua;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import io.github.yappy.lua.LuaEngine;
import io.github.yappy.lua.... | 567 |
https://github.com/leafo/weeklyloops/blob/master/loop6.go | Github Open Source | Open Source | MIT | 2,021 | weeklyloops | leafo | Go | Code | 186 | 822 | package main
import (
"image/color"
"math"
gl "github.com/go-gl/gl/v3.3-core/gl"
"github.com/leafo/weeklyloops/loops"
"github.com/leafo/weeklyloops/loops/ply"
)
var background = color.RGBA{128, 140, 255, 255}
func main() {
loop := loops.NewLoopWindow()
loop.Title = "loop6"
loop.Speed = 0.2
perspective := ... | 36,940 |
https://github.com/StanfordASL/AMoD-toolkit/blob/master/@AbstractEAMoDproblem/GetObjective.m | Github Open Source | Open Source | MIT | 2,021 | AMoD-toolkit | StanfordASL | MATLAB | Code | 34 | 123 | function objective = GetObjective(obj)
% GetObjective Returns the optimization objective for the electric AMoD problem
amod_cost_usd = obj.ComputeAMoDcost();
if ~isempty(obj.spec.charger_electricity_price_usd_per_j)
electricity_cost_usd = obj.ComputeElectricityCost();
else
electricity_cost_usd = 0;
end
objec... | 23,023 |
https://github.com/yzydeveloper/i18n-workbench/blob/master/src/core/Workbench.ts | Github Open Source | Open Source | MIT | 2,022 | i18n-workbench | yzydeveloper | TypeScript | Code | 241 | 780 | import type { WebviewPanel } from 'vscode'
import { join } from 'path'
import { window, ViewColumn, Uri, Disposable } from 'vscode'
import Config from './Config'
import { Global, CurrentFile } from '.'
import { findLanguage, getHtmlForWebview } from './../utils'
export interface Message {
type: string | number
... | 38,630 |
https://github.com/SystenceGames/TheMaestros-uScriptSource/blob/master/TheMaestrosGame/Classes/TMAIAbilityHelper.uc | Github Open Source | Open Source | MIT | 2,021 | TheMaestros-uScriptSource | SystenceGames | null | Spoken | 202 | 702 | /* TMAIAbilityHelper
Adds functionality that allows our bots to cast abilities
*/
class TMAIAbilityHelper extends Object;
var TMPawn mPawn;
var TMAbility mAbilityComponent;
function Setup( TMPawn inPawn )
{
mPawn = inPawn;
mAbilityComponent = inPawn.GetAbilityComponent();
}
function CastAbility( Vector ... | 12,575 |
https://github.com/robinWongM/attendance/blob/master/web/src/Home.tsx | Github Open Source | Open Source | MIT | null | attendance | robinWongM | TypeScript | Code | 29 | 106 | import React from "react";
import PunchInCard from "./PunchInCard";
function Home() {
return (
<div className="flex-1 bg-white rounded-l-3xl p-10 text-4xl">
<h1>👋 签个到吧,贾同学</h1>
<PunchInCard />
</div>
);
}
export default Home;
| 28,372 |
https://github.com/DronMDF/doors/blob/master/core/RawBytes.cpp | Github Open Source | Open Source | MIT | null | doors | DronMDF | C++ | Code | 69 | 203 | // Copyright (c) 2019 Andrey Valyaev <dron.valyaev@gmail.com>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include "RawBytes.h"
using namespace std;
RawBytes::RawBytes(const vector<uint8_t> &bytes)
: bytes(bytes)
{
}
RawBytes::RawByt... | 35,592 |
https://github.com/goldmansachs/obevo-kata/blob/master/kata-files/lesson2/hsql/expected/MYLARGESCHEMA/table/TABLE43.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | obevo-kata | goldmansachs | SQL | Code | 17 | 66 | //// CHANGE name=change0
CREATE MEMORY TABLE TABLE43(ID INTEGER NOT NULL PRIMARY KEY,FIELD1 VARCHAR(30),USERTYPE4FIELD USERTYPE4,USERTYPE3FIELD USERTYPE3,USERTYPE9FIELD USERTYPE9)
GO
| 34,325 |
https://github.com/DevotionZhu/OpenDrive-1/blob/master/MapConverter/MapConvertor.sln | Github Open Source | Open Source | MIT | 2,020 | OpenDrive-1 | DevotionZhu | null | Spoken | 80 | 451 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30621.155
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mapconvertor", "VissimCom\Mapconvertor.csproj", "{D7E2DCDB-2DA4-415E-BAC0-6176EF90873C}"
EndProject... | 51,315 |
https://github.com/datnc58/Uet_lamgiau/blob/master/application/views/products/products_search.php | Github Open Source | Open Source | MIT | 2,018 | Uet_lamgiau | datnc58 | PHP | Code | 170 | 1,069 |
<div class="container">
<div class="row">
<div class="col-main-left col-md-9">
<div class="block-nav">
<ol class="breadcrumb">
<li><a href="<?=base_url()?>">Trang chủ</a></li>
<li><a href="#">Tìm kiếm</a></li>
</ol>
... | 49,288 |
https://github.com/uberCad/uberCad/blob/master/src/components/PointInfo/pointInfoComponent.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | uberCad | uberCad | JavaScript | Code | 50 | 136 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './PointInfo.css';
export default class PointInfoComponent extends Component {
render() {
const { message, style } = this.props;
return (
<div className="pointInfo" style={style}>
{message}
</div>
);
... | 45,676 |
https://github.com/Neverblade/Maze-Creator/blob/master/MazeCreator.java | Github Open Source | Open Source | MIT | null | Maze-Creator | Neverblade | Java | Code | 939 | 3,071 | import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
public class MazeCreator
{
public static int size = 15;
public static int delay = 50;
public static Cell[][] grid = new Cell[45][45];
public static boolean ... | 45,578 |
https://github.com/mileskingston/easyjet-guidelines/blob/master/source/_patterns/02-organisms/form-elements/c-field-text--surname.hbs | Github Open Source | Open Source | MIT | null | easyjet-guidelines | mileskingston | null | Spoken | 3 | 25 | {{> molecules-c-field-text @root.content.c-field.text.surname}} | 44,300 |
https://github.com/gspu/bitkeeper/blob/master/src/progress.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | bitkeeper | gspu | C | Code | 2,043 | 5,835 | /*
* Copyright 2010-2013,2016 BitMover, 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 o... | 42,104 |
https://github.com/matbesancon/or-tools/blob/master/docs/cpp_routing/search/classes_4.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | or-tools | matbesancon | JavaScript | Code | 5 | 54 | var searchData=
[
['exchangesubtrip_2855',['ExchangeSubtrip',['../classoperations__research_1_1_exchange_subtrip.html',1,'operations_research']]]
];
| 32,548 |
https://github.com/13567370952/clouddisk/blob/master/src/main/java/com/dounine/clouddisk360/parser/UserSizeParser.java | Github Open Source | Open Source | MIT | 2,017 | clouddisk | 13567370952 | Java | Code | 99 | 491 | package com.dounine.clouddisk360.parser;
import com.dounine.clouddisk360.annotation.Dependency;
import com.dounine.clouddisk360.annotation.Parse;
import com.dounine.clouddisk360.parser.deserializer.login.LoginUserToken;
import com.dounine.clouddisk360.parser.deserializer.user.size.*;
import com.dounine.clouddisk360.ut... | 16,974 |
https://github.com/guuulemos/api-csharp-livraria/blob/master/Livraria/Livraria.Infra.Data/Repositories/Queries/LivroQueries.cs | Github Open Source | Open Source | MIT | null | api-csharp-livraria | guuulemos | C# | Code | 123 | 342 | namespace Livraria.Infra.Data.Repositories.Queries
{
public static class LivroQueries
{
public static string Inserir = @"Insert Into Livro(Nome, Autor, Edicao, Isbn, Imagem) Values (@Nome, @Autor, @Edicao, @Isbn, @Imagem);
Select SCOPE_IDENTITY();";
pub... | 29,450 |
https://github.com/spaykit/R4J/blob/master/src/main/java/no/stelar7/api/r4j/basic/exceptions/APIUnsupportedActionException.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | R4J | spaykit | Java | Code | 16 | 64 | package no.stelar7.api.r4j.basic.exceptions;
public class APIUnsupportedActionException extends RuntimeException
{
public APIUnsupportedActionException(final String data)
{
super(data);
}
}
| 28,766 |
https://github.com/JSONScript/jsonscript-js/blob/master/lib/executors/index.js | Github Open Source | Open Source | MIT | 2,016 | jsonscript-js | JSONScript | JavaScript | Code | 12 | 39 | 'use strict';
module.exports = {
array: require('./array'),
calc: require('./calc'),
str: require('./str')
};
| 25,821 |
https://github.com/pseudaimonia/PAR/blob/master/src/test/java/edu/ithaca/dragon/par/domainModel/QuestionPoolTest.java | Github Open Source | Open Source | MIT | 2,022 | PAR | pseudaimonia | Java | Code | 298 | 1,664 | package edu.ithaca.dragon.par.domainModel;
import edu.ithaca.dragon.par.io.JsonQuestionPoolDatastore;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Asse... | 1,304 |
https://github.com/kontent-ai/delivery-sdk-php/blob/master/tests/bootstrap.php | Github Open Source | Open Source | MIT | 2,023 | delivery-sdk-php | kontent-ai | PHP | Code | 23 | 101 | <?php
require_once __DIR__ . '/../vendor/autoload.php';
foreach (glob(__DIR__ . '/E2E/*Model.php') as $filename)
{
require_once $filename;
}
require_once __DIR__ . '/E2E/Utils/TestMapper.php';
require_once __DIR__ . '/E2E/Utils/CustomContentLinkUrlResolver.php'; | 11,479 |
https://github.com/dimitar-asenov/Envision/blob/master/OOModel/src/types/FunctionType.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Envision | dimitar-asenov | C++ | Code | 368 | 827 | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | 46,707 |
https://github.com/holvonix-open/solr-query-builder/blob/master/src/query.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | solr-query-builder | holvonix-open | TypeScript | Code | 450 | 1,385 | import * as t from 'io-ts';
import * as types from './types';
import { either } from 'fp-ts/lib/Either';
import {
Primitive,
Range,
LSpatial,
RangedPrimitive,
QueryElement,
} from './types';
import * as wktio from 'wkt-io-ts';
import { WKT } from 'wkt-io-ts';
import { isRight } from 'fp-ts/lib/Either';
impo... | 48,253 |
https://github.com/Prof-Bloodstone/ConfigMe/blob/master/src/test/java/ch/jalu/configme/properties/type/PrimitivePropertyTypeTest.java | Github Open Source | Open Source | MIT | 2,020 | ConfigMe | Prof-Bloodstone | Java | Code | 396 | 1,273 | package ch.jalu.configme.properties.type;
import ch.jalu.configme.properties.types.PrimitivePropertyType;
import ch.jalu.configme.properties.types.PropertyType;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import java.lang.reflect.Field;
import java.lang.re... | 15,187 |
https://github.com/drohmer/CGP/blob/master/library/cgp/drawable/segments_drawable/segments_drawable.cpp | Github Open Source | Open Source | MIT | null | CGP | drohmer | C++ | Code | 168 | 662 | #include "cgp/base/base.hpp"
#include "segments_drawable.hpp"
namespace cgp
{
GLuint segments_drawable::default_shader = 0;
segments_drawable::segments_drawable()
:vbo_position(0), vao(0), number_position(0), shader(0), transform(), color({0,0,0}), name("uninitialized")
{}
segments_drawable& segments_drawable:... | 40,355 |
https://github.com/Simske/exostriker/blob/master/source/swift_j/symba5/symba5_step_helio.f | Github Open Source | Open Source | MIT | 2,022 | exostriker | Simske | null | Spoken | 334 | 1,255 | c*************************************************************************
c SYMBA5_STEP_HELIO.F
c*************************************************************************
c This subroutine takes a step in helio coord.
c Does a KICK than a DRIFT than a KICK.
c ONLY DOES MASSIVE PARTICLES
c
... | 18,499 |
https://github.com/KyoZeus/fcc-ImageSearch/blob/master/app/routes/index.js | Github Open Source | Open Source | MIT | null | fcc-ImageSearch | KyoZeus | JavaScript | Code | 36 | 149 | module.exports = function(app, dirname) {
app.get('/', function(req, res) {
res.sendFile(dirname + '/client/views/index.html');
});
app.get('/LICENSE/', function(req, res) {
res.sendFile(dirname + '/LICENSE.md');
});
app.get('/search', function(req, res) {
res.redirect('/l... | 24,110 |
https://github.com/Zeroami/MusicBox/blob/master/app/src/main/java/com/lzb/musicbox/utils/RedirectUtils.java | Github Open Source | Open Source | Apache-2.0 | null | MusicBox | Zeroami | Java | Code | 55 | 232 | package com.lzb.musicbox.utils;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
public class RedirectUtils {
public static void redirect(Context context,Class<?> target,boolean isFinish){
Intent intent = new Intent(context,target);
context.st... | 27,616 |
https://github.com/thoughtbot/administrate/blob/master/spec/administrate/views/fields/has_one/_show_spec.rb | Github Open Source | Open Source | MIT | 2,023 | administrate | thoughtbot | Ruby | Code | 392 | 1,559 | require "rails_helper"
require "administrate/field/has_one"
describe "fields/has_one/_show", type: :view do
before do
view.extend Administrate::ApplicationHelper
allow(view).to receive(:accessible_action?).and_return(true)
allow(view).to receive(:namespace).and_return(:admin)
end
context "without a ... | 41,564 |
https://github.com/medismailben/llvm-project/blob/master/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm-project | medismailben | C++ | Code | 173 | 527 | // Emulate the behavior of the NVIDIA CUDA driver
// that mmaps memory inside the asan's shadow gap.
//
// REQUIRES: x86_64-target-arch, shadow-scale-3
//
// RUN: %clangxx_asan %s -o %t
// RUN: not %env_asan_opts=protect_shadow_gap=1 %t 2>&1 | FileCheck %s --check-prefix=CHECK-PROTECT1
// RUN: not ... | 47,119 |
https://github.com/obeattie/ohmyglob/blob/master/globset.go | Github Open Source | Open Source | MIT | 2,015 | ohmyglob | obeattie | Go | Code | 454 | 1,031 | package ohmyglob
import (
"io"
"strings"
)
// GlobSet represents an ordered set of Globs, and has the same matching capabilities as a Glob. Globbing is done
// in order, with later globs taking precedence over earlier globs in the set. A GlobSet is immutable.
type GlobSet interface {
GlobMatcher
// Globs returns ... | 35,116 |
https://github.com/crazyn2/hadoop-zookeeper-hbase/blob/master/config-spark/mysqlcnf.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | hadoop-zookeeper-hbase | crazyn2 | Shell | Code | 55 | 110 | #!/bin/bash
# initialize hive environment
# initialize mariadb with user root and password 123456
# but abort because root had no remote connection right
schematool -dbType mysql -initSchema &> /dev/null
# grant remote connection right to root
mysql -uroot -p123456 < sql.txt
# initialize again and finished
schemato... | 19,981 |
https://github.com/paveltrufi/dss-g203-awiten-fests/blob/master/database/seeds/ArtistFestivalTableSeeder.php | Github Open Source | Open Source | MIT | null | dss-g203-awiten-fests | paveltrufi | PHP | Code | 869 | 3,339 | <?php
use Illuminate\Database\Seeder;
class ArtistFestivalTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// Id festivales
$medusa = DB::table('festivals')->where('name', 'Medusa Sunbeach Festival')->first()->id;
... | 44,477 |
https://github.com/Anson-Doan/-CS537-Spring2021-P3b-xv6KernelThreads/blob/master/test_8.asm | Github Open Source | Open Source | MIT-0 | null | -CS537-Spring2021-P3b-xv6KernelThreads | Anson-Doan | Assembly | Code | 6,867 | 21,266 |
_test_8: file format elf32-i386
Disassembly of section .text:
00000000 <worker>:
free(p);
exit();
}
void
worker(void *arg1, void *arg2) {
0: f3 0f 1e fb endbr32
4: 55 push %ebp
5: 89 e5 mov %esp,%ebp
7: 83 ec 08 sub $0x8,%esp
... | 33,211 |
https://github.com/rafax/goeuler/blob/master/14.go | Github Open Source | Open Source | MIT | 2,014 | goeuler | rafax | Go | Code | 103 | 249 | package main
import "fmt"
func main() {
limit := 1000000
max := 1
maxInd := 1
clen := make(map[int]int, 2*limit)
for i := 1; i < limit; i++ {
len := chainLen(i, clen)
if len >= max {
max = len
maxInd = i
}
}
fmt.Println(maxInd)
}
func chainLen(n int, clen map[int]int) int {
if n == 1 {
return 1... | 46,949 |
https://github.com/riy/degraph/blob/master/degraph/src/test/scala/de/schauderhaft/degraph/app/CommandLineParserTest.scala | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,021 | degraph | riy | Scala | Code | 222 | 636 | package de.schauderhaft.degraph.app
import org.scalatest.FunSuite
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class CommandLineParserTest extends FunSuite {
import org.scalatest.Matchers._
test("default outputfile is 'output.graphml'") {
val config = ... | 36,838 |
https://github.com/smeenai/llvm-project/blob/master/llvm/test/MC/AArch64/SVE2p1/st2q.s | Github Open Source | Open Source | NCSA, LLVM-exception, Apache-2.0 | 2,023 | llvm-project | smeenai | Unix Assembly | Code | 367 | 1,407 | // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2p1 < %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 < %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: not llvm-mc -triple=aarch64 ... | 29,439 |
https://github.com/dmrschmidt/RxNimbleMatchers/blob/master/RXNimbleMatchers/RXNimbleMatchers.h | Github Open Source | Open Source | MIT | 2,016 | RxNimbleMatchers | dmrschmidt | Objective-C | Code | 64 | 175 | //
// RXNimbleMatchers.h
// RXNimbleMatchers
//
// Created by Dennis Schmidt on 24.08.16.
// Copyright © 2016 Dennis Schmidt. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for RXNimbleMatchers.
FOUNDATION_EXPORT double RXNimbleMatchersVersionNumber;
//! Project version string for RXN... | 12,759 |
https://github.com/kyranjamie/uk-inflation-calculator/blob/master/inflation.py | Github Open Source | Open Source | MIT | 2,014 | uk-inflation-calculator | kyranjamie | Python | Code | 76 | 186 | from datetime import datetime
import sys
import json
def main():
data = loadJson()
inputYear = input('Enter year to calculate from: ')
inputYear = int(inputYear)
amount = input('Amount of money then: ')
amount = int(amount)
currentYear = datetime.now().year
for year in range(input... | 45,920 |
https://github.com/meesokim/z88dk/blob/master/libsrc/_DEVELOPMENT/sound/bit/c/sdcc_iy/bit_click_di.asm | Github Open Source | Open Source | WTFPL, ClArtistic | 2,015 | z88dk | meesokim | Assembly | Code | 13 | 62 |
; void bit_click_di(void)
SECTION code_sound_bit
PUBLIC _bit_click_di
EXTERN asm_bit_click_di
defc _bit_click_di = asm_bit_click_di
| 28,282 |
https://github.com/renderbox/django-stubtools/blob/master/stubtools/management/commands/stubapi.py | Github Open Source | Open Source | MIT | 2,023 | django-stubtools | renderbox | Python | Code | 511 | 1,783 | # --------------------------------------------
# Copyright 2018 Grant Viklund
# @Author: Grant Viklund
# @Date: 2018-12-05 14:50:04
# @Last modified by: Grant Viklund
# @Last Modified time: 2018-12-21 15:13:05
# --------------------------------------------
import os
import os.path
from django.conf import settings
... | 22,705 |
https://github.com/Anomander/xi/blob/master/xi/core/signals.h | Github Open Source | Open Source | MIT | null | xi | Anomander | C | Code | 47 | 136 | #pragma once
#include "xi/core/shard.h"
#include <signal.h>
namespace xi {
namespace core {
class shard::signals : public poller {
unordered_map< i32, function< void() > > _handlers;
atomic< u64 > _pending_signals {0};
public:
signals();
~signals();
void handle(i32 signo, function< void() ... | 38,484 |
https://github.com/rahayusantoso12/sitespeed.io/blob/master/lib/support/filterRegistry.js | Github Open Source | Open Source | MIT | 2,021 | sitespeed.io | rahayusantoso12 | JavaScript | Code | 91 | 323 | 'use strict';
const clone = require('lodash.clonedeep'),
metricsFilter = require('./metricsFilter');
let filterForType = {};
module.exports = {
registerFilterForType(filter, type) {
filterForType[type] = filter;
},
getFilterForType(type) {
return filterForType[type];
},
addFilterForType(filter,... | 43,435 |
https://github.com/ornladios/ADIOS2/blob/master/scripts/ci/images/fedora-tsan/toolchain.cmake | Github Open Source | Open Source | Apache-2.0 | 2,023 | ADIOS2 | ornladios | CMake | Code | 25 | 223 | set(CMAKE_C_COMPILER /usr/bin/clang)
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
set(_link_flags "-stdlib=libc++ -L /opt/tsan/lib -Wl,-rpath,/opt/tsan/lib -Wno-unused-command-line-argument")
set(_compile_flags "-nostdinc++ -isystem /opt/tsan/include/c++/v1 -fsanitize=thread")
set(CMAKE_EXE_LINKER_FLAGS_INIT ${_link_flags}... | 34,179 |
https://github.com/VolkerH/ssi-code/blob/master/ssi/tv_restoration/convo_operators.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | ssi-code | VolkerH | Python | Code | 367 | 816 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015 Pierre Paleo <pierre.paleo@esrf.fr>
# License: BSD 2-clause Simplified
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of sourc... | 17,505 |
https://github.com/chuiizeet/stickers-daily-headers/blob/master/Headers/FBAdDebugOverlay.h | Github Open Source | Open Source | MIT | null | stickers-daily-headers | chuiizeet | C | Code | 106 | 452 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <UIKit/UIView.h>
@class NSString, UIButton, UILabel;
@interface FBAdDebugOverlay : UIView
{
UILabel *_debugContextLabel;
... | 4,422 |
https://github.com/torch2424/aesthetic-css/blob/master/src/effects/_crt.scss | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | aesthetic-css | torch2424 | SCSS | Code | 131 | 545 | // CRT Effect
// https://codepen.io/lbebber/pen/XJRdrV
$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
$screen-background: #121010;
@keyframes flicker{
$steps:20;
@for $i from 0 through $steps{
#{percentage($i*(1/$steps))}{
opacity:ran... | 14,312 |
https://github.com/icarephone/gcr.io/blob/master/gcr.io/google_containers/kube-controller-manager-ppc64le/v1.14.9 | Github Open Source | Open Source | Apache-2.0 | null | gcr.io | icarephone | null | Spoken | 1 | 31 | gcr.io/google_containers/kube-controller-manager-ppc64le:v1.14.9
| 5,326 |
https://github.com/sujoydc/java-data-structure/blob/master/src/main/java/org/sujoy/test/Trying.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | java-data-structure | sujoydc | Java | Code | 95 | 249 | package org.sujoy.test;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class Trying {
public static void main(String[] args) {
int row = 3;
int col = 3;
char[][] ttt = new char[row][col];
int num = 1;
for (int i = 0; i < row; i++) {
for (int j = 0; j... | 8,082 |
https://github.com/tlrobinson/node-jslinux/blob/master/jslinux.js | Github Open Source | Open Source | Unlicense | 2,022 | node-jslinux | tlrobinson | JavaScript | Code | 298 | 1,009 |
var fs = require("fs");
var path = require("path");
var tty = require('tty');
exports.USE_RAW_MODE = true;
function getExternalPath(filename) {
return path.join(path.dirname(module.filename), "external", filename);
}
var cpuX86Path;
try {
var typed_array = require('typed-array');
var ArrayBuffer = typed... | 8,602 |
https://github.com/Adminiuga/home-assistant/blob/master/tests/components/dnsip/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | home-assistant | Adminiuga | Python | Code | 5 | 11 | """Tests for the dnsip integration."""
| 46,809 |
https://github.com/rukano/cantina/blob/master/Sources/App/Models/Cantina+Elements.swift | Github Open Source | Open Source | MIT | 2,018 | cantina | rukano | Swift | Code | 566 | 1,700 | //
// Cantina+Elements.swift
// cantina
//
// Created by Romero, Juan, SEVEN PRINCIPLES on 02.09.17.
//
//
import Foundation
import Vapor
enum MealType: String {
case soup = "Suppe"
case basic = "Stammessen"
case special = "Aktion"
case salad = "Salat"
case vegetarian = "Vegetarisch"
case unknown = "???"
v... | 14,840 |
https://github.com/raulraja/jvaas-postgresql/blob/master/src/main/kotlin/Experiment1.kt | Github Open Source | Open Source | MIT | 2,020 | jvaas-postgresql | raulraja | Kotlin | Code | 125 | 339 |
object Experiment1 {
@JvmStatic
fun main(args: Array<String>) {
SELECT * FROM
SELECT DISTINCT FROM
SELECT (1, 2, 3) FROM
query {
SELECT * FROM (1, 2, 3) WHERE 1
}
}
private fun query(function: () -> QueryScope) {
}
p... | 31,031 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.