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/KlubsNFT/klubs-app/blob/master/lib/component/arttrade/ArtCreateAuctionPopup.d.ts | Github Open Source | Open Source | MIT | 2,021 | klubs-app | KlubsNFT | TypeScript | Code | 33 | 102 | import { DomNode, Popup } from "@hanul/skynode";
export default class ArtCreateAuctionPopup extends Popup {
private id;
content: DomNode;
private loading;
private info;
private startPriceInput;
private endBlockInput;
constructor(id: number);
private load;
}
//# sourceMappingURL=ArtCreate... | 39,823 |
https://github.com/Mossop/docker-dns/blob/master/src/dns/record.rs | Github Open Source | Open Source | MIT | null | docker-dns | Mossop | Rust | Code | 1,287 | 4,281 | use std::{
collections::{
hash_map::{IntoValues, Values},
HashMap, HashSet,
},
fmt::{self, Display},
hash::Hash,
iter::{empty, once, Flatten},
net::{IpAddr, Ipv4Addr, Ipv6Addr},
str::FromStr,
};
use serde::{Deserialize, Serialize};
use trust_dns_server::{
client::rr::{DN... | 44,734 |
https://github.com/Dmiri/Xamarin.google-apis/blob/master/src/Externals/google-api-dotnet-client/Src/GoogleApis.Tests/Apis/Utils/StringValueAttributeTest.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Xamarin.google-apis | Dmiri | C# | Code | 153 | 329 | /*
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 in writing, software
dis... | 53,453 |
https://github.com/beerriot/woodworking-plans/blob/master/laundry-rack/laundry-rack.scad | Github Open Source | Open Source | MIT | null | woodworking-plans | beerriot | null | Spoken | 908 | 2,975 | // Folding Laundy Rack
use <../common/common.scad>
// TODO: animate open/close?
// finer faceting on small cylinders
$fs = 0.1;
// INPUT MEASUREMENTS
include <params.scad>
// COMPUTED MEASUREMENTS
function dowel_radius() = dowel_diameter / 2;
function short_dowel_length() =
long_dowel_length - (square_stock_th... | 47,493 |
https://github.com/nuetzliches/spocr/blob/master/src/DataContext/Queries/TableTypeQueries.cs | Github Open Source | Open Source | MIT | 2,022 | spocr | nuetzliches | C# | Code | 172 | 607 | using System.Collections.Generic;
using System.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using SpocR.DataContext.Models;
namespace SpocR.DataContext.Queries
{
public static class TableTypeQueries
{
public static Task<List<TableType>> TableTypeListAsync(this DbContext context... | 43,598 |
https://github.com/CraigAndrew/titanium4j/blob/master/src/com/emitrom/ti4j/mobile/client/cloudpush/CloudPush.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | titanium4j | CraigAndrew | Java | Code | 1,409 | 3,367 | /**************************************************************************
CloudPush.java is part of Titanium4j Mobile 3.0. Copyright 2012 Emitrom 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 ... | 49,884 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_ubercab/app/smali/eee.smali | Github Open Source | Open Source | Apache-2.0, LGPL-2.0-or-later | 2,019 | AndroidPermissions | iantal | Smali | Code | 21 | 79 | .class public final Leee;
.super Lrc;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrc<",
"Ljava/lang/Object;",
"Landroid/graphics/drawable/Drawable;",
">;"
}
.end annotation
| 37,528 |
https://github.com/ScalablyTyped/Distribution/blob/master/w/wix-style-react/src/main/scala/typings/wixStyleReact/distTypesDragDropContextProviderMod.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 86 | 342 | package typings.wixStyleReact
import typings.react.mod.Component
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object distTypesDragDropContextProviderMod {
@JSImport("wix-style-react/dist/types/Dra... | 15,431 |
https://github.com/s4-2/scancode-toolkit/blob/master/tests/cluecode/data/ics/iptables-extensions/libxt_TCPOPTSTRIP.c | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,022 | scancode-toolkit | s4-2 | C | Code | 32 | 73 | /*
* Shared library add-on to iptables to add TCPOPTSTRIP target support.
* Copyright (c) 2007 Sven Schnelle <svens@bitebene.org>
* Copyright © CC Computer Consultants GmbH, 2007
* Jan Engelhardt <jengelh@computergmbh.de>
*/ | 16,042 |
https://github.com/dandelin/YOLOS/blob/master/datasets/coco.py | Github Open Source | Open Source | MIT | null | YOLOS | dandelin | Python | Code | 616 | 2,153 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""
COCO dataset which returns image_id for evaluation.
Mostly copy-paste from https://github.com/pytorch/vision/blob/13b35ff/references/detection/coco_utils.py
"""
from pathlib import Path
import torch
import torch.utils.data
import torchvision
f... | 20,485 |
https://github.com/mycrazycc/ocean_manager/blob/master/src/api/user.js | Github Open Source | Open Source | MIT | 2,021 | ocean_manager | mycrazycc | JavaScript | Code | 26 | 80 | import request from '@/api/public'
export function login(data) {
return request.post('/admin/login', data)
}
export function logout() {
return request.post('/admin/logout')
}
export function getUserInfo() {
return request.get('/admin/info')
}
| 9,850 |
https://github.com/jroperto/gaeBase/blob/master/src/main/java/com/github/jroperto/gaebase/service/ArticleService.java | Github Open Source | Open Source | MIT | 2,014 | gaeBase | jroperto | Java | Code | 85 | 366 | package com.github.jroperto.gaebase.service;
import com.github.jroperto.gaebase.model.Article;
import com.github.jroperto.gaebase.repository.ArticleRepository;
import com.google.common.base.Preconditions;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
impo... | 6,860 |
https://github.com/hslayers/hslayers-ng/blob/master/projects/hslayers-cesium-app/custom-webpack.config.js | Github Open Source | Open Source | MIT | 2,023 | hslayers-ng | hslayers | JavaScript | Code | 43 | 139 | var webpack = require('webpack');
module.exports = {
devtool: false,
resolve: {
fallback: {
fs: false,
Buffer: false,
http: false,
https: false,
zlib: false,
url: false
},
},
module: {
unknownContextCritical: false,
},
plugins: [
new webpack.SourceMapDevT... | 23,094 |
https://github.com/SunJackson/lottery/blob/master/cloudfunctions/help/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | lottery | SunJackson | JavaScript | Code | 68 | 243 | // 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
env: cloud.DYNAMIC_CURRENT_ENV
});
const db = cloud.database();
// 云函数入口函数
exports.main = async (event, context) => {
console.log(event);
let lotteryId = event.lotteryId;
let parentOpenid = event.parentOpenid;
const { OPENID } = cloud.getWXConte... | 9,781 |
https://github.com/janpreet/effective-dollop/blob/master/Makefile | Github Open Source | Open Source | MIT | null | effective-dollop | janpreet | Makefile | Code | 68 | 241 | NS ?= janpreet
VERSION ?= latest
IMAGE_NAME ?= latex
CONTAINER_NAME ?= resume
CONTAINER_INSTANCE ?= default
PWD ?= ${PWD}
.PHONY: build run stop rmi
build: Dockerfile
docker build -t $(NS)/$(IMAGE_NAME):$(VERSION) -f Dockerfile .
run:
docker run --rm --name $(CONTAINER_NAME)-$(CONTAINER_INSTANCE) -i -v $(PWD):/d... | 27,365 |
https://github.com/convoy-studio/havana-eliott-erwitt/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,016 | havana-eliott-erwitt | convoy-studio | Ignore List | Code | 9 | 52 | .sass-cache
node_modules
.DS_Store
npm-debug*.log*
app/php/vendor/*
static
/.env
/docker-compose.yml
supervisord.*
| 48,872 |
https://github.com/AlbertBaffour/vinyl_shop/blob/master/app/Http/Controllers/ShopController.php | Github Open Source | Open Source | MIT | null | vinyl_shop | AlbertBaffour | PHP | Code | 437 | 1,513 | <?php
namespace App\Http\Controllers;
use App\Genre;
use App\Record;
use Facades\App\Helpers\Json;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
class ShopController extends Controller
{
// Master Page: http://vinyl_shop.test/shop or http://localhost:3000/shop
public function index(Reques... | 12,989 |
https://github.com/bgue/wiql-editor/blob/master/extension/scripts/wiqlEditor/hoverProvider.ts | Github Open Source | Open Source | MIT | 2,018 | wiql-editor | bgue | TypeScript | Code | 406 | 1,235 | import { FieldType } from "TFS/WorkItemTracking/Contracts";
import { fieldsVal } from "../cachedData/fields";
import { getWitsByProjects } from "../cachedData/workItemTypes";
import { IParseResults, parse } from "./compiler/parser";
import * as Symbols from "./compiler/symbols";
import { symbolsAtPosition } from "./pa... | 6,718 |
https://github.com/ScalablyTyped/Distribution/blob/master/g/googleapis/src/main/scala/typings/googleapis/cloudsearchV1Mod/cloudsearchV1/SchemaUploadMetadata.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 654 | 1,919 | package typings.googleapis.cloudsearchV1Mod.cloudsearchV1
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait SchemaUploadMetadata extends StObject {
/**
* Opaque token. Clients shall simply pa... | 21,012 |
https://github.com/isabella232/rspub-gui/blob/master/rsapp/gui/fselect.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | rspub-gui | isabella232 | Python | Code | 1,275 | 7,814 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import os
from PyQt5.QtCore import QEvent
from PyQt5.QtCore import QThread
from PyQt5.QtCore import QUrl
from PyQt5.QtCore import Qt
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtGui import QDesktopServices
from PyQt5.QtGui import QFont
from PyQt5.QtWid... | 39,704 |
https://github.com/GOFIRST-Robotics/NASA-RMC-2020-NorthstarRobotics/blob/master/documentation/examples/src/example_node.cpp | Github Open Source | Open Source | MIT | 2,021 | NASA-RMC-2020-NorthstarRobotics | GOFIRST-Robotics | C++ | Code | 356 | 1,689 | /*
* example_node.cpp // // Note, global FILE_NAME is "example_node"
* INSERT_DESC_HERE
* VERSION: VERSION_NO
* Last changed: 2018-09-24
* Authors: My Name <myname@umn.edu>
* Maintainers: Goldy <goldy@umn.edu>
* MIT License
* Copyright (c) 2018 GOFIRST-Robotics
*/
// ROS Libs
#include <ros/ros.h>
#include "AU... | 24,139 |
https://github.com/dragpure00/ttt-8-turn-ruby-intro-000/blob/master/lib/turn.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | ttt-8-turn-ruby-intro-000 | dragpure00 | Ruby | Code | 134 | 429 | def display_board(board)
puts " #{board[0]} | #{board[1]} | #{board[2]} "
puts "-----------"
puts " #{board[3]} | #{board[4]} | #{board[5]} "
puts "-----------"
puts " #{board[6]} | #{board[7]} | #{board[8]} "
end
# code your input_to_index and move method here!
def input_to_index(current)
new_input=current... | 7,947 |
https://github.com/zhangfu-git/cat-scrollView/blob/master/src/pages/demo1/index.jsx | Github Open Source | Open Source | MIT | 2,021 | cat-scrollView | zhangfu-git | null | Spoken | 169 | 504 | /**
* 无限加载demo
*/
import Taro, { Component } from '@tarojs/taro'
import CatScrollView from '../../components/CatScrollView';
import MyItem from '../../components/MyItem/index';
export default class Index extends Component {
config = {
navigationBarTitleText: '滚动无限加载'
}
state = {
listData: []
}
com... | 11,873 |
https://github.com/cjsmeele/Kvasir/blob/master/Lib/Chip/CM0+/NXP/LPC11E6x_v0.8/SYSCON.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | Kvasir | cjsmeele | C++ | Code | 4,676 | 24,329 | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//System configuration (SYSCON)
namespace SysconSysmemremap{ ///<System memory remap
using Addr = Register::Address<0x40048000,0x00000000,0x00000000,unsigned>;
///System memory remap. Value 0x3 is reserved.
enum class MapVal... | 51,233 |
https://github.com/3merge/q/blob/master/packages/q3-admin/src/components/__tests__/app.test.jsx | Github Open Source | Open Source | MIT | 2,020 | q | 3merge | null | Spoken | 110 | 326 | import { first } from 'lodash';
import {
addRedirectWhenMissingHome,
makePath,
} from '../app';
const component = () => null;
const stub = {
index: true,
component,
};
describe('makePath', () => {
test.each([
[{ home: true }, '/'],
[{ index: true, resourceName: 'users' }, 'users'],
[{ id: true,... | 46,774 |
https://github.com/SrinivasDhulipalla/scap-security-guide/blob/master/RHEL/5/templates/static/bash/file_permissions_extended_etc_at_deny.sh | Github Open Source | Open Source | Unlicense | 2,017 | scap-security-guide | SrinivasDhulipalla | Shell | Code | 3 | 15 | setfacl --remove-all /etc/at.deny | 23,286 |
https://github.com/layby42/dependent_protect/blob/master/test/dependent_protect_test.rb | Github Open Source | Open Source | MIT | 2,019 | dependent_protect | layby42 | Ruby | Code | 206 | 854 | require 'test/unit'
require File.join(File.dirname(__FILE__), '..', 'lib', 'dependent_protect')
require File.join(File.dirname(__FILE__), 'company')
class DependentProtectTest < Test::Unit::TestCase
def test_destroy_protected_with_companies
protected_firm = Company.new(:with_companies)
assert_raises(ActiveRe... | 17,682 |
https://github.com/LeonardsonCC/xbright/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | xbright | LeonardsonCC | Makefile | Code | 225 | 721 | TARGET := xbright
OBJDIR := obj
SRC := $(wildcard *.c)
OBJ := $(addprefix $(OBJDIR)/,$(notdir $(SRC:.c=.o)))
CC ?= cc
INSTALL := install
INSTALL_ARGS := -o root -g root -m 4755 # Installs with SUID set
INSTALL_DIR := /usr/local/bin/
BUILD_HOST := build_... | 39,563 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Health_com.huawei.health/smali_classes8/o/ess.smali | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Smali | Code | 368 | 1,814 | .class public Lo/ess;
.super Landroid/widget/LinearLayout;
.source "SourceFile"
# instance fields
.field private a:Landroid/widget/ListView;
.field private b:Landroid/content/Context;
.field private c:Lo/faq;
.field private d:Lo/exo;
.field private e:Ljava/util/List;
.annotation system Ldalvik/annotation/Sign... | 35,618 |
https://github.com/manjot556/backend/blob/master/src/constants/redis-inject-token.ts | Github Open Source | Open Source | MIT | 2,020 | backend | manjot556 | TypeScript | Code | 5 | 16 | export const REDIS_INJECT_TOKEN = 'redis'; | 16,742 |
https://github.com/sillsdev/libpalaso/blob/master/SIL.Core/Keyboarding/UnsupportedKeyboardDefinition.cs | Github Open Source | Open Source | MIT | 2,023 | libpalaso | sillsdev | C# | Code | 100 | 273 | using System;
using System.Collections.Generic;
using System.Text;
namespace SIL.Keyboarding
{
/// <summary>
/// This class represents an unsupported or unrecognized keyboard definition.
/// It allows round tripping unrecognized keyboard formats to ldml
/// </summary>
public class UnsupportedKeyboardDefinition : ... | 31,561 |
https://github.com/fpelliccioni/Tao/blob/master/casablanca/Release/tests/Functional/streams/Makefile | Github Open Source | Open Source | BSL-1.0 | 2,015 | Tao | fpelliccioni | Makefile | Code | 36 | 273 | CXXFLAGS=$(LAX_BASE_CXXFLAGS) -I. -I$(CASABLANCA_INCLUDE_DIR) -I$(CASABLANCA_TESTS_DIR)/Common/UnitTestpp/ -I$(CASABLANCA_TESTS_DIR)/Common/utilities/include
LDFLAGS=-L$(CASABLANCA_TESTS_DIR)/Common/UnitTestpp/lib/linux_gcc/ -L"$(OUTPUT_DIR)" $(BASE_LDFLAGS)
LDLIBS=-lcasablanca -lunittestpp -lboost_system -lboost_threa... | 38,568 |
https://github.com/tntan796/hobbies/blob/master/front-end/src/store/modules/info.js | Github Open Source | Open Source | MIT | 2,020 | hobbies | tntan796 | JavaScript | Code | 221 | 590 | import axios from 'axios'
import config from '@/helpers/config'
const state = {
movieInfo: {
title: '',
posterUrl: '',
plot: ''
},
movieProgress: false,
movieError: ''
}
const mutations = {
setMovieInfo (state, response) {
if (response.found) {
state.movieInfo = {
title: respon... | 3,187 |
https://github.com/codyd51/BareText/blob/master/ports.h | Github Open Source | Open Source | MIT | 2,017 | BareText | codyd51 | C | Code | 49 | 158 | #ifndef PORTS_H
#define PORTS_H
#include <stdint.h>
//standard in/out port communication helper functions
//output byte
void outb(uint16_t port, uint8_t val);
//output word
void outw(uint16_t port, uint16_t val);
//output long
void outl(uint16_t port, uint32_t val);
//read byte
uint8_t inb(uint16_t port);
//read wo... | 52,820 |
https://github.com/cproc/genode-world/blob/master/src/app/stubby/target.mk | Github Open Source | Open Source | MIT | 2,022 | genode-world | cproc | Makefile | Code | 47 | 266 | TARGET = stubby
LIBS += libc posix libgetdns getdns-gldns libcrypto libyaml
STUBBY_DIR := $(call select_from_ports,getdns)/src/lib/getdns/stubby
STUBBY_SRC_DIR := $(STUBBY_DIR)/src
SRC_C += stubby.c convert_yaml_to_json.c
INC_DIR += $(PRG_DIR) $(STUBBY_SRC_DIR)
INC_DIR += $(STUBBY_SRC_DIR)/../../src
INC_DIR += ... | 28,583 |
https://github.com/tobiasdigital/commerce-cif-commercetools/blob/master/test/resources/sample-shippingmethods-for-cart.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | commerce-cif-commercetools | tobiasdigital | JavaScript | Code | 438 | 1,855 | /*******************************************************************************
*
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you 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
* ... | 55,125 |
https://github.com/NoamDev/rust-tvm/blob/master/src/types.rs | Github Open Source | Open Source | Apache-2.0 | 2,021 | rust-tvm | NoamDev | Rust | Code | 621 | 1,926 | /*
* Copyright 2018-2020 TON DEV SOLUTIONS LTD.
*
* Licensed under the SOFTWARE EVALUATION License (the "License"); you may not use
* this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASI... | 23,703 |
https://github.com/go-clang/bootstrap/blob/master/clang/idxloc_gen.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | bootstrap | go-clang | Go | Code | 131 | 332 | package clang
// #include "./clang-c/Index.h"
// #include "go-clang.h"
import "C"
// IdxLoc source location passed to index callbacks.
type IdxLoc struct {
c C.CXIdxLoc
}
// IndexLoc_getFileLocation retrieve the CXIdxFile, file, line, column, and offset represented by
// the given CXIdxLoc.
//
// If the location re... | 24,093 |
https://github.com/li-kunrong/AmusingPythonCodes/blob/master/mnist_dataset_training_examples/.ipynb_checkpoints/mnist_maxout_nll_loss-checkpoint.ipynb | Github Open Source | Open Source | MIT | 2,017 | AmusingPythonCodes | li-kunrong | Jupyter Notebook | Code | 809 | 3,210 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import tensorflow as tf\n",
"from tensorflow.examples.tutorials.mnist import input_data\n",
"import numpy as np\n",
"import warnings\n",
"warnings.filterwarnings('ignore')\n",
... | 18,767 |
https://github.com/meiheW/leetcode-practice/blob/master/src/main/java/com/tomster/leetcode/entity/ListNode.java | Github Open Source | Open Source | MIT | null | leetcode-practice | meiheW | Java | Code | 46 | 111 | package com.tomster.leetcode.entity;
/**
* @author meihewang
* @date 2020/12/13 23:33
*/
public class ListNode {
public int val;
public ListNode next;
public ListNode() {}
public ListNode(int val) { this.val = val; }
public ListNode(int val, ListNode next) { this.val = val; this.next = next; }
... | 52,289 |
https://github.com/Blueprint-Marketing/sendgrid-python/blob/master/Makefile | Github Open Source | Open Source | MIT | null | sendgrid-python | Blueprint-Marketing | Makefile | Code | 26 | 83 | venv:
virtualenv venv
install: venv
. venv/bin/activate; pip install .
test: venv
. venv/bin/activate; pip install -r test/requirements.txt; nosetests
clean:
rm -rf venv/
.PHONY: test clean
| 42,230 |
https://github.com/zhch/como/blob/master/lib/glib/glib-2.50.2/glib/tests/unicode.c | Github Open Source | Open Source | BSD-2-Clause | null | como | zhch | C | Code | 3,574 | 16,274 | /* Unit tests for utilities
* Copyright (C) 2010 Red Hat, Inc.
* Copyright (C) 2011 Google, Inc.
*
* This work is provided "as is"; redistribution and modification
* in whole or in part, in any medium, physical or electronic is
* permitted without restriction.
*
* This work is distributed in the hope that it wi... | 28,596 |
https://github.com/cienciascontic/NovaStelo/blob/master/filetree/Stelo-Tests.package/SteloBytecodeGeneratorTest.class/instance/testHere.st | Github Open Source | Open Source | MIT | 2,020 | NovaStelo | cienciascontic | null | Spoken | 153 | 360 | test
testHere
| w b t |
w := self newWorld.
w createPatch: 3.
w create: 3 turtles: 1.
"1 2 3
4 5 6
7 8 9"
w var: STurtleVarDef xVarNo breed: SBreedId turtleBreedNo at: 1 put: 0.
w var: STurtleVarDef yVarNo breed: SBreedId turtleBreedNo at: 1 put: 0.
b := self newGenerator.
b here.
t := self newThread: w.
... | 9,350 |
https://github.com/vinzk/home-gallery/blob/master/packages/api-server/src/tensorflow/models/mobilenet.js | Github Open Source | Open Source | MIT | 2,022 | home-gallery | vinzk | JavaScript | Code | 136 | 424 | const path = require('path');
const mobilenet = require('@tensorflow-models/mobilenet');
const loadCachedModel = require('../utils/load-cached-model')
const toCachedConfig = (config, cacheDir) => {
if (config.modelUrl) {
return config;
}
const version = config.version || 1;
const alpha = ((config.alpha ||... | 6,961 |
https://github.com/ColmanOB/SessionBuddy/blob/master/SessionBuddy/src/sessionbuddy/utils/PageCountValidator.java | Github Open Source | Open Source | MIT | 2,017 | SessionBuddy | ColmanOB | Java | Code | 129 | 215 | package sessionbuddy.utils;
public class PageCountValidator {
/**
* Validate that the user has specified between 1-50 results per page
*
* @param resultsPerPage the number of results to be returned per page in the JSON response
* @return true if a valid number of results per page has been provided (i... | 31,135 |
https://github.com/guyver-dash/iit/blob/master/resources/assets/js/components/forms/selects/balances.vue | Github Open Source | Open Source | MIT | 2,019 | iit | guyver-dash | Vue | Code | 56 | 218 | <template>
<v-flex xl12 lg12 md12 sm12 xs12>
<v-select
:items="balances"
v-model="balance_ids"
label="As Payment for"
chips
item-text="name"
item-value="id"
required
:rules="[v => !!v || 'As Payment for is required']"
... | 16,007 |
https://github.com/goofmint/ncmb-ruby-client/blob/master/lib/ncmb/relation.rb | Github Open Source | Open Source | MIT | 2,018 | ncmb-ruby-client | goofmint | Ruby | Code | 45 | 143 | # frozen_string_literal: true
module NCMB
class Relation < Array
include NCMB
def initialize
end
def to_json(a = '')
params = {
'__op': 'AddRelation'
}
params['objects'] = []
self.each do |obj|
params['objects'] << {
'__type': 'Pointe... | 21,998 |
https://github.com/hkgunawan/skripsihendra/blob/master/app/Http/Controllers/penjualancontroller.php | Github Open Source | Open Source | MIT | null | skripsihendra | hkgunawan | PHP | Code | 596 | 2,754 | <?php
namespace App\Http\Controllers;
use Auth;
use App\pelanggan;
use App\barang;
use App\penjualan;
use App\dpenjualan;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class penjualancontroller extends Controller
{
/**
... | 37,354 |
https://github.com/amsaljs/Koperasi-Simpan-Pinjam/blob/master/Koperasi Simpan Pinjam/adminlte/Models/AkunModel.cs | Github Open Source | Open Source | MIT | 2,019 | Koperasi-Simpan-Pinjam | amsaljs | C# | Code | 45 | 101 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace adminlte.Models
{
public class AkunModel
{
public int id_akun { get; set; }
public string nama_akun { get; set; }
public string email { get; set; }
public string password { get; set; ... | 53,603 |
https://github.com/V-Fib/FlurryClone/blob/master/MMOCoreORB/bin/scripts/mobile/conversations/junk_dealer/junk_dealer_sheani_conv.lua | Github Open Source | Open Source | Zlib, OpenSSL | 2,021 | FlurryClone | V-Fib | Lua | Code | 334 | 877 | junkDealerSheaniConvoTemplate = ConvoTemplate:new {
initialScreen = "init",
templateType = "Lua",
luaClassHandler = "JunkDealerSheaniConvoHandler",
screens = {}
}
init = ConvoScreen:new {
id = "init",
leftDialog = "@conversation/junk_sheani_lake:s_d3c4bb84", -- Welcome traveler, I am Sheani, buyer and seller of ... | 35,840 |
https://github.com/rublin/SmartSpace/blob/master/src/test/java/org/rublin/UserTestData.java | Github Open Source | Open Source | MIT | 2,017 | SmartSpace | rublin | Java | Code | 171 | 623 | package org.rublin;
import org.rublin.matcher.ModelMatcher;
import org.rublin.model.user.Role;
import org.rublin.model.user.User;
import org.rublin.util.PasswordUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Collections;
import java.util.Objects;
/**
* Created by Ruslan Sheremet (ru... | 9,777 |
https://github.com/zoltan-dulac/enable-a11y/blob/master/content/body/status.php | Github Open Source | Open Source | MIT | 2,022 | enable-a11y | zoltan-dulac | PHP | Code | 274 | 869 | <h2>Visually Hidden Alert</h2>
<p>This example is based on <a href="https://gist.github.com/nichtich/674522">this wiktionary lookup gist</a> by
<a lang="de" href="https://gist.github.com/nichtich">Jakob Voß</a>,
modified to add accessibility features, including an <code>alert</code> that will tell screen reader us... | 47,625 |
https://github.com/Poukah-/lierogbg/blob/master/lierogbg/index/admin.py | Github Open Source | Open Source | MIT | 2,014 | lierogbg | Poukah- | Python | Code | 43 | 231 | from django.contrib import admin
from index.models import Player, PlayedGame, Subgame, Tournament, TournamentPlacingAnte, PointsChanged
class PlayerAdmin(admin.ModelAdmin):
pass
class PlayedGameAdmin(admin.ModelAdmin):
pass
class SubgameAdmin(admin.ModelAdmin):
pass
class TournamentAdmin(admin.ModelAdmi... | 9,693 |
https://github.com/benryan1790/pertax-frontend/blob/master/app/services/AddressMovedService.scala | Github Open Source | Open Source | Apache-2.0 | null | pertax-frontend | benryan1790 | Scala | Code | 245 | 793 | /*
* Copyright 2020 HM Revenue & Customs
*
* 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 a... | 10,213 |
https://github.com/chika-kasymov/LinSpell/blob/master/LinSpell/Models/ObjC/DamerauLevenshtein.h | Github Open Source | Open Source | MIT | 2,022 | LinSpell | chika-kasymov | C | Code | 36 | 129 | //
// DamerauLevenshtein.h
// LinSpell
//
// Created by Shyngys Kassymov on 23.01.2018.
// Copyright © 2018 Shyngys Kassymov. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DamerauLevenshtein : NSObject
+ (int)damerauLevenshteinDistance:(NSString *)string1 string2:(NSString *)string2 maxDis... | 13,758 |
https://github.com/angel-zm/practica-8-poo/blob/master/src/main/java/com/mycompany/practica8/Triangulo.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | practica-8-poo | angel-zm | Java | Code | 196 | 483 |
package com.mycompany.practica8;
public class Triangulo extends PoligonoC {
private int alfa,beta,gama;
private float a,b,c,base,alt;
public Triangulo() {
}
public int getAlfa() {
return alfa;
}
public void setAlfa(int alfa) {
this.alfa = alfa;
}
public int get... | 12,354 |
https://github.com/yoophi/api-template-celery/blob/master/app/main/tasks.py | Github Open Source | Open Source | MIT | null | api-template-celery | yoophi | Python | Code | 135 | 418 | import random
import time
from flask import current_app
from flask_mail import Message
from app.extensions import mail
from app.tasks import celery
@celery.task
def send_async_email(msgd):
"""Background task to send an email with Flask-Mail."""
msg = Message(msgd['subject'], sender=current_app.config['MAIL_... | 53,870 |
https://github.com/fuse-open/fuselibs/blob/master/Source/Fuse.Controls.CameraView/iOS/NativePhoto.uno | Github Open Source | Open Source | MIT | 2,023 | fuselibs | fuse-open | null | Spoken | 1,288 | 5,865 | using Uno;
using OpenGL;
using Uno.Graphics;
using Uno.UX;
using Uno.Compiler.ExportTargetInterop;
using Fuse.Android.Permissions;
using Uno.Threading;
using Uno.Collections;
using Fuse;
using Fuse.Controls;
using Fuse.Controls.Native;
using Fuse.Controls.CameraView;
using Fuse.Resources.Exif;
namespace Fuse.Controls... | 47,383 |
https://github.com/William-Krug/redux-feedback-loop/blob/master/src/components/Comments/Comments.jsx | Github Open Source | Open Source | MIT | null | redux-feedback-loop | William-Krug | null | Spoken | 228 | 536 | /* Import Libraries */
import { useState } from 'react';
import { useDispatch } from 'react-redux';
import { useHistory } from 'react-router-dom';
/* Import CSS */
import './Comments.css';
/**
* Function prompts the survey to leave any additional
* comments and stores their responses in the surveyResponses
* reduc... | 29,049 |
https://github.com/zealoussnow/chromium/blob/master/components/feed/core/v2/web_feed_subscriptions/subscribe_to_web_feed_task.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | zealoussnow | C | Code | 165 | 697 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_FEED_CORE_V2_WEB_FEED_SUBSCRIPTIONS_SUBSCRIBE_TO_WEB_FEED_TASK_H_
#define COMPONENTS_FEED_CORE_V2_WEB_FEED_SUBSCRIPTIONS_SUBSCRIBE_TO_W... | 38,173 |
https://github.com/corinnekrych/hashing-perf/blob/master/node_modules/json-stable-stringify/index.js | Github Open Source | Open Source | MIT | 2,017 | hashing-perf | corinnekrych | JavaScript | Code | 271 | 660 | var json = typeof JSON !== 'undefined' ? JSON : require('jsonify');
module.exports = function (obj, opts) {
if (!opts) opts = {};
var cycles = false;
var cmp = opts.cmp && (function (f) {
return function (node) {
return function (a, b) {
var aobj = { key: a, value: node[... | 48,457 |
https://github.com/AlexGarrixen/TrelloServer/blob/master/db/config.js | Github Open Source | Open Source | MIT | 2,020 | TrelloServer | AlexGarrixen | JavaScript | Code | 52 | 196 | const mongoose = require('mongoose');
const { mongoUser, mongoPassword, mongoDbName } = require('../config/env');
const uri = `mongodb+srv://${mongoUser}:${mongoPassword}@trello.lslge.mongodb.net/${mongoDbName}?retryWrites=true&w=majority`;
const connection = () => {
try {
mongoose.connect(uri, {
useNewUr... | 12,074 |
https://github.com/bartprokop/fps-demo/blob/master/src/main/java/name/prokop/bart/fps/datamodel/VATRate.java | Github Open Source | Open Source | MIT | 2,014 | fps-demo | bartprokop | Java | Code | 328 | 862 | /*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
*
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIA... | 206 |
https://github.com/z0r1k/textchat-acc-pack/blob/master/android/TextChatAccPackKit/settings.gradle | Github Open Source | Open Source | MIT | 2,017 | textchat-acc-pack | z0r1k | Gradle | Code | 2 | 16 | include ':text-chat-acc-pack-kit'
| 8,651 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/devel/2011/06/9390.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 510 | 2,125 | <?
$subject_val = "Re: [OMPI devel] RFC: Bring in Shared Memory Backing Facility Framework (shmem)";
include("../../include/msg-header.inc");
?>
<!-- received="Tue Jun 21 11:43:15 2011" -->
<!-- isoreceived="20110621154315" -->
<!-- sent="Tue, 21 Jun 2011 09:43:10 -0600" -->
<!-- isosent="20110621154310" -->
<!-- name=... | 56,885 |
https://github.com/Najmun-Nafiz/Simple-Ecomerce-Site-With-Laravel-VueJS/blob/master/app/Http/Resources/Backend/Product/ProductResource.php | Github Open Source | Open Source | MIT | 2,020 | Simple-Ecomerce-Site-With-Laravel-VueJS | Najmun-Nafiz | PHP | Code | 68 | 246 | <?php
namespace App\Http\Resources\Backend\Product;
use Illuminate\Http\Resources\Json\JsonResource;
class ProductResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($req... | 13,141 |
https://github.com/alanktwong/algorithms-scala/blob/master/fundamentals/src/test/scala/org/awong/fundamentals/FundamentalsData.scala | Github Open Source | Open Source | MIT | null | algorithms-scala | alanktwong | Scala | Code | 1,103 | 7,204 | package org.awong.fundamentals
object FundamentalsData extends org.awong.stdlib.ModuleData {
def testTransactions: Seq[Transaction] = {
Seq(
Transaction("Turing", "6/17/1990", 655.08),
Transaction("vonNeumann", "3/26/2002 ", 4121.85),
Transaction("vonNeumann","3/26/2002",4121.85),
Transac... | 36,640 |
https://github.com/USGS-R/MMSD_trends/blob/master/1_get_raw_data/src/get_raw_data.R | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-warranty-disclaimer, CC0-1.0, LicenseRef-scancode-public-domain-disclaimer | 2,019 | MMSD_trends | USGS-R | R | Code | 120 | 547 | library(readxl)
get_sample <- function(file){
sheet.names <- excel_sheets(file)
data.full <- data.frame()
for(i in sheet.names){
data.sheet <- read_excel(file,
sheet = i,col_types = c("text","date",
rep("text",7)))
... | 36,370 |
https://github.com/Code-Inside/Sloader/blob/master/src/Sloader.Config/Crawler/Twitter/TwitterUserCrawlerConfig.cs | Github Open Source | Open Source | MIT | 2,020 | Sloader | Code-Inside | C# | Code | 90 | 266 | namespace Sloader.Config.Crawler.Twitter
{
/// <inheritdoc />
/// <summary>
/// Loads twitter user info from one twitter handle.
/// <para>Uses this API https://dev.twitter.com/rest/reference/get/users/lookup </para>
/// </summary>
/// <seealso cref="T:Sloader.Config.SloaderSecrets" />
/// <... | 46,686 |
https://github.com/robcleghorn/one-page-web-app-starter/blob/master/src/www/about.jsp | Github Open Source | Open Source | Apache-2.0 | 2,014 | one-page-web-app-starter | robcleghorn | null | Spoken | 6 | 32 | <%@ page contentType="text/plain"%><%--
--%>@name@
@rel@
@buildlabel@ | 13,114 |
https://github.com/couchfault/email/blob/master/app/controllers/EmailController.php | Github Open Source | Open Source | MIT | 2,015 | email | couchfault | PHP | Code | 231 | 854 | <?php
class EmailController extends BaseController {
/*
|--------------------------------------------------------------------------
| Default Home Controller
|--------------------------------------------------------------------------
|
| You may wish to use controllers instead of, or in addition to, Closure
|... | 26,248 |
https://github.com/factioninc/snmp-unity-agent/blob/master/snmpagent_unity/unity_impl/PoolUsedCapacity.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | snmp-unity-agent | factioninc | Python | Code | 18 | 89 | class PoolUsedCapacity(object):
def read_get(self, name, idx_name, unity_client):
return unity_client.get_pool_size_used(idx_name)
class PoolUsedCapacityColumn(object):
def get_idx(self, name, idx, unity_client):
return unity_client.get_pools()
| 607 |
https://github.com/mikaelengstrom/step-sequencer/blob/master/src/components/Controller.js | Github Open Source | Open Source | MIT | null | step-sequencer | mikaelengstrom | JavaScript | Code | 89 | 293 | import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import PlayButton from './PlayButton'
import { play, pause, increaseTempo, decreaseTempo } from '../actions/index'
let Controller = ({isPlaying, onClickPlay, onClickPause, dispatch, tempo}) => (
... | 11,606 |
https://github.com/krahman/pspdfkit-web-example-vue/blob/master/node_modules/pspdfkit/dist/types/typescript/unload.d.ts | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pspdfkit-web-example-vue | krahman | TypeScript | Code | 25 | 43 | import Instance from './Instance';
declare type TargetType = string | HTMLElement | Instance;
export declare function unload(target: TargetType | null | undefined): boolean;
export {};
| 31,924 |
https://github.com/digitalsatori/elm-vega/blob/master/test-gallery/src/GalleryBar.elm | Github Open Source | Open Source | BSD-3-Clause | 2,022 | elm-vega | digitalsatori | null | Spoken | 2,474 | 5,575 | port module GalleryBar exposing (elmToJS)
import Browser
import Html exposing (Html, div, pre)
import Html.Attributes exposing (id)
import Json.Encode
import Vega exposing (..)
-- NOTE: All data sources in these examples originally provided at
-- https://vega.github.io/vega-datasets/
-- The examples themselves repr... | 5,718 |
https://github.com/fhwang/sample_models/blob/master/test/setup/models.rb | Github Open Source | Open Source | MIT | 2,015 | sample_models | fhwang | Ruby | Code | 486 | 1,762 |
class Appointment < ActiveRecord::Base
belongs_to :calendar
belongs_to :category
belongs_to :user
validates_presence_of :calendar_id, :user_id
validates_uniqueness_of :start_time
validate :validate_calendar_has_same_user_id
def validate_calendar_has_same_user_id
if calendar.user_id != user_id
... | 32,728 |
https://github.com/ggozad/petmail/blob/master/petmail/client.py | Github Open Source | Open Source | MIT | 2,013 | petmail | ggozad | Python | Code | 589 | 2,015 | import os.path, json
from twisted.application import service
from nacl.signing import SigningKey
from nacl.encoding import HexEncoder as Hex
from . import invitation, rrid
from .rendezvous import localdir
from .errors import CommandError
from .mailbox import channel, retrieval
class Client(service.MultiService):
d... | 13,851 |
https://github.com/korykaai717/RN-MeetNative-App-GraphQL-APOLLO/blob/master/react-native/src/components/profile/ProfileScreen.tsx | Github Open Source | Open Source | MIT | null | RN-MeetNative-App-GraphQL-APOLLO | korykaai717 | TypeScript | Code | 633 | 2,389 | import { Formik, FormikActions, InjectedFormikProps } from "formik";
import {
Button,
Icon,
Input,
Item as FormItem,
Label,
Picker,
Spinner,
Text,
View
} from "native-base";
import * as React from "react";
import * as Yup from "yup";
import LogoutButton from "./LogoutButton";
import { defaultProfile... | 50,521 |
https://github.com/Absoas/Daeduk_final_project/blob/master/dongHang/src/main/webapp/js/freeReplyProcess.js | Github Open Source | Open Source | MIT | 2,019 | Daeduk_final_project | Absoas | JavaScript | Code | 332 | 1,827 | /**
* 게시글 상세조회의 덧글 처리
*/
function replyListMaker(resp) {
if (resp.errors) {
alert(resp.errors.message);
} else { // 등록 성공
var html = "";
if(resp.dataList){
$.each(resp.dataList, function(idx, reply){
html += "<div class='comment__avatar'>";
html +... | 39,636 |
https://github.com/micromaomao/bellclone/blob/master/core/src/ec/systems/max_player_y.rs | Github Open Source | Open Source | CC-BY-3.0, LicenseRef-scancode-public-domain | 2,021 | bellclone | micromaomao | Rust | Code | 58 | 227 | use specs::{ReadStorage, System, Write, Join};
use std::borrow::BorrowMut;
use crate::ec::components::{player::PlayerComponent, transform::WorldSpaceTransform};
pub struct MaxPlayerYSystem;
#[derive(Default)]
pub struct MaxPlayerY(pub Option<f32>);
impl<'a> System<'a> for MaxPlayerYSystem {
type SystemData = (
... | 28,818 |
https://github.com/Priytam/statemachine/blob/master/src/main/java/com/smms/example/state/LockedState.java | Github Open Source | Open Source | MIT | 2,021 | statemachine | Priytam | Java | Code | 84 | 292 | package com.smms.example.state;
import com.smms.example.DoorStates;
import com.smms.example.StateFactory;
import com.smms.example.event.UnlockEvent;
import com.smms.statemachine.State;
import com.smms.statemachine.StateException;
import org.apache.log4j.Logger;
public class LockedState extends AbstractState{
priv... | 28,735 |
https://github.com/mattwright324/youtube-comment-suite/blob/master/src/main/java/io/mattw/youtube/commentsuite/refresh/ChannelProducer.java | Github Open Source | Open Source | MIT | 2,022 | youtube-comment-suite | mattwright324 | Java | Code | 313 | 1,195 | package io.mattw.youtube.commentsuite.refresh;
import com.google.api.client.googleapis.json.GoogleJsonResponseException;
import com.google.api.services.youtube.YouTube;
import com.google.api.services.youtube.model.ChannelListResponse;
import io.mattw.youtube.commentsuite.CommentSuite;
import io.mattw.youtube.commentsu... | 36,124 |
https://github.com/santiagoidu/CursoWebModerno/blob/master/01-JavaScript/exercicios/ex002.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | CursoWebModerno | santiagoidu | JavaScript | Code | 282 | 663 | /*Os triângulos podem ser classificados em 3 tipos quanto ao tamanho de seus lados:
-Equilátero: Os três lados são iguais.
-Isósceles: Dois lados iguais.
-Escaleno: Todos os lados são diferentes.
Crie uma função que recebe os comprimentos dos três lados de um triângulo e retorne s... | 34,752 |
https://github.com/clkbit123/TheOpenHarmony/blob/master/Openharmony v1.0/vendor/hisi/hi35xx/hi3518ev300/config/board/Makefile | Github Open Source | Open Source | MIT | null | TheOpenHarmony | clkbit123 | Makefile | Code | 139 | 308 | # Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
# 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 ap... | 32,195 |
https://github.com/byuubackup/ares/blob/master/luna/emulator/platform.cpp | Github Open Source | Open Source | ISC | 2,020 | ares | byuubackup | C++ | Code | 652 | 2,085 | auto Emulator::attach(ares::Node::Object node) -> void {
if(interface && node->is<ares::Node::Screen>()) {
screens = root->find<ares::Node::Screen>();
}
if(interface && node->is<ares::Node::Stream>()) {
streams = root->find<ares::Node::Stream>();
}
}
auto Emulator::detach(ares::Node::Object node) -> v... | 22,091 |
https://github.com/tomkenner/pluto_grid/blob/master/lib/src/pluto_grid_popup.dart | Github Open Source | Open Source | MIT | 2,021 | pluto_grid | tomkenner | Dart | Code | 135 | 511 | import 'package:flutter/material.dart';
import 'package:pluto_grid/pluto_grid.dart';
class PlutoGridPopup {
final BuildContext context;
final List<PlutoColumn> columns;
final List<PlutoRow> rows;
final PlutoGridMode mode;
final PlutoOnLoadedEventCallback onLoaded;
final PlutoOnChangedEventCallback onChange... | 22,631 |
https://github.com/Open-Vent-Bristol/Open-Vent-Bristol/blob/master/code/drivers/actuator/actuator.h | Github Open Source | Open Source | MIT | 2,020 | Open-Vent-Bristol | Open-Vent-Bristol | C | Code | 237 | 427 | // Copyright (c) 2021 <OpenVent-Bristol, Donald Robson>
#ifndef ACTUATOR_H
#define ACTUATOR_H
#include <stdint.h>
/**
* @brief Update scalar parameters used for pid control
* @note The actuator will *not* be usable until this function has been called, as it also sets the
* max and min outputs to those defined in ... | 44,379 |
https://github.com/sinsai/Sahana_eden/blob/master/modules/hs/analysis/db.py | Github Open Source | Open Source | MIT | 2,011 | Sahana_eden | sinsai | Python | Code | 675 | 1,780 | """
Healthscapes Geolytics Module
... | 27,479 |
https://github.com/goapt/dbunit/blob/master/fixtures/fixture_file.go | Github Open Source | Open Source | MIT | 2,021 | dbunit | goapt | Go | Code | 32 | 99 | package fixtures
import (
"path/filepath"
"strings"
)
type fixtureFile struct {
path string
fileName string
content []byte
insertSQL insertSQL
}
func (f *fixtureFile) fileNameWithoutExtension() string {
return strings.Replace(f.fileName, filepath.Ext(f.fileName), "", 1)
}
| 17,140 |
https://github.com/michellemurray/deltaspike/blob/master/site/pom.xml | Github Open Source | Open Source | Apache-2.0 | 2,014 | deltaspike | michellemurray | null | Spoken | 309 | 1,709 | <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
con... | 42,296 |
https://github.com/AYESDIE/mlpack/blob/master/src/mlpack/methods/preprocess/scaling_model.hpp | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | mlpack | AYESDIE | C++ | Code | 379 | 1,354 | /**
* @file scaling_model.hpp
* @author Jeffin Sam
*
* A serializable Scaling model, used by the main program.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. I... | 33,186 |
https://github.com/ricortiz/OpenTissue/blob/master/OpenTissue/collision/collision_sphere_sdf.h | Github Open Source | Open Source | Zlib | 2,022 | OpenTissue | ricortiz | C | Code | 341 | 940 | #ifndef OPENTISSUE_COLLISION_COLLISION_SPHERE_SDF_H
#define OPENTISSUE_COLLISION_COLLISION_SPHERE_SDF_H
//
// OpenTissue Template Library
// - A generic toolbox for physics-based modeling and simulation.
// Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
//
// OTTL is licensed under zlib: h... | 32,024 |
https://github.com/Sirttas/AlchemyTech/blob/master/src/main/java/sirttas/alchemytech/block/instrument/extractor/BlockExtractor.java | Github Open Source | Open Source | Apache-2.0 | null | AlchemyTech | Sirttas | Java | Code | 174 | 747 | package sirttas.alchemytech.block.instrument.extractor;
import static sirttas.alchemytech.block.BlockAT.BIT_SIZE;
import java.util.Random;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import ... | 43,964 |
https://github.com/flyfloor/react-component/blob/master/demo/example/DatePickerDemo.jsx | Github Open Source | Open Source | MIT | null | react-component | flyfloor | null | Spoken | 245 | 1,117 | import React, { Component } from 'react';
import {DatePicker} from './index';
import {formatDate} from '../../component/util/datetime';
export default class DatePickerDemo extends Component {
constructor(props){
super(props);
this.state = {
value: undefined,
};
}
handl... | 55,726 |
https://github.com/adamtiger/NNSharp/blob/master/NNSharp/KernelDescriptors/Reshape2D.cs | Github Open Source | Open Source | MIT | 2,019 | NNSharp | adamtiger | C# | Code | 103 | 219 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NNSharp.KernelDescriptors
{
public class Reshape2D : IKernelDescriptor
{
public Reshape2D(int height, int width, int channel, int batch)
{
// The paramters ... | 44,501 |
https://github.com/jfuruness/lib_bgp_data/blob/master/lib_bgp_data/utils/database/generic_table.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | lib_bgp_data | jfuruness | Python | Code | 462 | 1,166 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""This module contains class Generic Table
The Generic Table class can interact with a database. It can also be
inherited to allow for its functions to be used for specific tables in
the database. Other Table classes inherit the database class to be used
in utils functi... | 25,456 |
https://github.com/weblate/aircraft-logbook/blob/master/src/routes/organizations/routes/invite/module/sagas.spec.js | Github Open Source | Open Source | MIT | 2,022 | aircraft-logbook | weblate | JavaScript | Code | 365 | 1,181 | import { all, takeEvery, call, select } from 'redux-saga/effects'
import { expectSaga } from 'redux-saga-test-plan'
import {
addArrayItem,
getDoc,
updateDoc
} from '../../../../../util/firestoreUtils'
import { getFirestore } from '../../../../../util/firebase'
import * as actions from './actions'
import * as saga... | 52,503 |
https://github.com/meta-rti/Wuji-Flutter-SDK/blob/master/android/src/main/java/co/meta/rtc/base/MediaObserver.kt | Github Open Source | Open Source | MIT | null | Wuji-Flutter-SDK | meta-rti | Kotlin | Code | 99 | 335 | package co.meta.rtc.base
import androidx.annotation.IntRange
import co.meta.rtc.IMetadataObserver
import java.util.*
import java.util.concurrent.atomic.AtomicInteger
class MediaObserver(
private val emit: (data: Map<String, Any?>?) -> Unit
) : IMetadataObserver {
private var maxMetadataSize = AtomicIntege... | 6,806 |
https://github.com/Miha-x64/Mikes_IDEA_extensions/blob/master/src/main/kotlin/net/aquadc/mike/plugin/kotlin/BackingPropertyFolding.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | Mikes_IDEA_extensions | Miha-x64 | Kotlin | Code | 513 | 1,823 | package net.aquadc.mike.plugin.kotlin
import com.intellij.application.options.CodeStyle
import com.intellij.lang.ASTNode
import com.intellij.lang.folding.FoldingBuilderEx
import com.intellij.lang.folding.FoldingDescriptor
import com.intellij.openapi.editor.Document
import com.intellij.openapi.editor.FoldingGroup
impor... | 10,125 |
https://github.com/mersoit/OasisVR/blob/master/src/App.js | Github Open Source | Open Source | CC-BY-3.0 | null | OasisVR | mersoit | JavaScript | Code | 57 | 150 | import React from "react";
import logo from "./logo.svg";
import "./App.css";
import { createStore, combineReducers } from "redux";
import { Provider, connect } from "react-redux";
import { Transitioner } from "./components/Transitioner";
class App extends React.Component {
render() {
return (
<Counter>
... | 52,217 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.