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/qwe321/Animation-Sequencer/blob/master/Scripts/Runtime/Core/DOTweenActions/ScaleDOTweenAction.cs.meta | Github Open Source | Open Source | MIT | 2,021 | Animation-Sequencer | qwe321 | Unity3D Asset | Code | 6 | 37 | fileFormatVersion: 2
guid: 42df807e3af3422dad2b10e0bf70811e
timeCreated: 1614207401 | 44,323 |
https://github.com/bchuntley/rex-api/blob/master/src/module/user/model/UserNote.model.ts | Github Open Source | Open Source | MIT | 2,021 | rex-api | bchuntley | TypeScript | Code | 45 | 137 | import { MongoService } from "@athenajs/core";
import { prop } from "@typegoose/typegoose";
export class UserNote {
@MongoService.idProp()
_id!: string;
@prop({ required: true })
title!: string;
@prop({ required: true })
body!: string;
@prop({ required: true })
createdAt!: Date;
constructor(init?... | 26,142 |
https://github.com/ismail-codar/fidan/blob/master/packages/fidan-jsx/src/_demo/index.tsx | Github Open Source | Open Source | MIT | 2,021 | fidan | ismail-codar | TypeScript | Code | 52 | 146 | import { compute, value } from "@fidanjs/runtime";
var _r$ = require("..");
const selected = value(false);
const div1 = (
<div
class={computed(() => {
return selected() ? "selected" : "";
})}
>
<button onClick={() => selected(!selected.$val as any)}>Selected</button>
{selected}
<hr />
... | 29,642 |
https://github.com/abrarrobotics/OpenCVForUnity/blob/master/Assets/OpenCVForUnity/Examples/MainModules/shape.meta | Github Open Source | Open Source | BSD-3-Clause | 2,018 | OpenCVForUnity | abrarrobotics | Unity3D Asset | Code | 14 | 65 | fileFormatVersion: 2
guid: 76819244201a27843af151de93d480c8
folderAsset: yes
timeCreated: 1503402859
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 22,628 |
https://github.com/rudrapratap10/firstproject/blob/master/onlinetest/job_code_master.php | Github Open Source | Open Source | MIT | 2,016 | firstproject | rudrapratap10 | PHP | Code | 226 | 1,067 | <?php
session_start();
if($_SESSION['hr1'] == session_id())
{?>
<!DOCTYPE HTML>
<html>
<head>
<link href="info.css" rel="stylesheet" type="text/css"></link>
<style>
#office{
background-color: #00ffff;
}
#job_code{
background-color: #ccff... | 5,102 |
https://github.com/bobdm4/goit-fe-course/blob/master/hw-11/src/sass/styles.scss | Github Open Source | Open Source | MIT | 2,019 | goit-fe-course | bobdm4 | SCSS | Code | 23 | 92 | /*
Import partials below
*/
@import './helpers/constants';
@import './components/mixin';
@import './components/placeholder.scss';
@import './normalize';
@import './components/base';
@import './components/header';
@import './components/section_1';
@import './components/section_2';
@import './components/footer';
| 48,479 |
https://github.com/jensfischerhh/edison-microservice/blob/master/examples/example-status/src/main/java/de/otto/edison/example/ExampleStatusServer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | edison-microservice | jensfischerhh | Java | Code | 27 | 124 | package de.otto.edison.example;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;
import static org.springframework.boot.SpringApplication.run;
@PropertySource("version.properties")
@SpringBootApplication(scanBasePackages = "de.otto.edi... | 28,178 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/lang/gambc/hacks.mk | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 73 | 189 | # $NetBSD: hacks.mk,v 1.3 2019/11/03 19:03:57 rillig Exp $
###
.if !defined(GAMBC_HACKS_MK)
GAMBC_HACKS_MK= # empty
.include "../../mk/compiler.mk"
###
### It looks as if the developers don't think O2 is a win. Considering how
### much memory and time this package takes to build the more optimization
### is enabled, l... | 23,728 |
https://github.com/qr4/wpn/blob/master/server/vector.h | Github Open Source | Open Source | MIT | 2,018 | wpn | qr4 | C | Code | 334 | 723 | #ifndef VECTOR_H
#define VECTOR_H
/*
* This file includes the vector_t datastructure and provides rudimentary
* vector functions.
*/
#ifdef __SSE2__
#include <x86intrin.h>
#endif
#include <stdlib.h>
#include <math.h>
typedef double v2d __attribute__ ((vector_size (16)));
typedef union {
v2d v;
struct {
doub... | 1,202 |
https://github.com/gatsbyjs/gatsby/blob/master/examples/using-redux-w-page-code-splitting/src/redux/reducers.js | Github Open Source | Open Source | MIT | 2,023 | gatsby | gatsbyjs | JavaScript | Code | 20 | 54 | import { combineReducers } from "redux"
import darkMode from "./reducers/darkMode"
import dummy from "./reducers/dummy"
export default combineReducers({ darkMode, dummy })
| 17,787 |
https://github.com/Talend/apache-camel/blob/master/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_21.adoc | Github Open Source | Open Source | Apache-2.0 | 2,023 | apache-camel | Talend | AsciiDoc | Code | 917 | 2,123 | = Apache Camel 3.x Upgrade Guide
This document is for helping you upgrade your Apache Camel application
from Camel 3.x to 3.y. For example if you are upgrading Camel 3.0 to 3.2, then you should follow the guides
from both 3.0 to 3.1 and 3.1 to 3.2.
== Upgrading Camel 3.20 to 3.21
=== camel-core
XML parsers & XML tr... | 1,247 |
https://github.com/roothybrid7/XcodeSnippets/blob/master/pragma_-_ignored_arc_performselector_leaks.m | Github Open Source | Open Source | MIT | 2,015 | XcodeSnippets | roothybrid7 | Objective-C | Code | 41 | 169 | // Pragma - Ignored ARC performSelector leaks
//
//
// IDECodeSnippetCompletionPrefix: ignoredperformselectorleaks
// IDECodeSnippetCompletionScopes: [CodeBlock]
// IDECodeSnippetIdentifier: FFFDDC2A-FB00-4944-96AD-4FD4C569C563
// IDECodeSnippetLanguage: Xcode.SourceCodeLanguage.Objective-C
// IDECodeSnippetUserSnippe... | 10,990 |
https://github.com/apache/tvm/blob/master/rust/tvm-sys/src/device.rs | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT, LicenseRef-scancode-unknown-license-reference, Unlicense, Zlib, LLVM-exception, BSD-2-Clause | 2,023 | tvm | apache | Rust | Code | 871 | 2,486 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 36,881 |
https://github.com/IZVARYCHEV/ember-octane-course/blob/master/Lesson-8/Examples/Authentication-And-Validation/books-demo/app/components/register-form.js | Github Open Source | Open Source | MIT | 2,020 | ember-octane-course | IZVARYCHEV | JavaScript | Code | 45 | 158 | import Component from '@glimmer/component';
import { action } from '@ember/object';
export default class RegisterFormComponent extends Component {
email = this.args.user.email;
username = this.args.user.username;
password = this.args.user.password;
passwordConfirmation = this.args.user.passwordConfirmation;
... | 48,449 |
https://github.com/markelog/eclectica/blob/master/versions/versions.go | Github Open Source | Open Source | MIT | 2,022 | eclectica | markelog | Go | Code | 776 | 2,181 | // Package versions provides helpful methods
// for anything related to the versions in eclectica
package versions
import (
"regexp"
"sort"
"strings"
"github.com/go-errors/errors"
"github.com/blang/semver"
hversion "github.com/hashicorp/go-version"
)
var (
majorPattern = `^\d+$`
rMajor = regexp.MustCom... | 16,587 |
https://github.com/lucasralves/cep_future_null_safety/blob/master/lib/cep_future.dart | Github Open Source | Open Source | MIT | 2,021 | cep_future_null_safety | lucasralves | Dart | Code | 156 | 613 | library cep_future;
import 'dart:async';
import 'package:cep_future/error.dart';
import 'package:cep_future/models/cep.dart';
import 'package:cep_future/services/correios.dart';
import 'package:cep_future/services/via_cep.dart';
const CEP_SIZE = 8;
Future<Cep> fetchCepFromServices(String cepWithLeftPad) {
final c... | 30,677 |
https://github.com/Dallanosm/TFM-MulticinesCc-MPP/blob/master/frontend/src/main/kotlin/com/nosmurf/web/presentation/app/App.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | TFM-MulticinesCc-MPP | Dallanosm | Kotlin | Code | 63 | 188 | package com.nosmurf.web.presentation.app
import com.nosmurf.web.presentation.navigator.Screen
import com.nosmurf.web.presentation.screen.movies
import react.*
import react.dom.div
abstract class App : RComponent<RProps, AppState>() {
init {
state = AppState()
}
override fun RBuilder.render() {
... | 26,094 |
https://github.com/cnfuture123/Big-Data-Tutorial/blob/master/学习笔记/Kafka/代码/ProducerCallBack.java | Github Open Source | Open Source | MIT | 2,019 | Big-Data-Tutorial | cnfuture123 | Java | Code | 91 | 413 | package cn.kafka.producer;
import org.apache.kafka.clients.producer.*;
import org.apache.kafka.common.serialization.StringSerializer;
import java.util.Properties;
public class ProducerCallBack {
public static void main(String[] args) throws Exception {
Properties props = new Properties();
props.... | 4,394 |
https://github.com/JetBrains/intellij-community/blob/master/java/java-psi-api/src/com/intellij/lang/jvm/source/JvmDeclarationSearch.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Java | Code | 385 | 1,233 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.lang.jvm.source;
import com.intellij.lang.jvm.JvmElement;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiNa... | 18,796 |
https://github.com/lab-sb/tcrepsrv-dev/blob/master/run/stop-Consumer.sh | Github Open Source | Open Source | BSD-2-Clause | null | tcrepsrv-dev | lab-sb | Shell | Code | 9 | 29 | ps -ef|grep onsumer|grep -v grep |awk '{print "kill "$2}'|sh
| 38,096 |
https://github.com/Iuri-Gomes/projeto-final-nutriapp/blob/master/lib/views/screen_2.dart | Github Open Source | Open Source | MIT | 2,021 | projeto-final-nutriapp | Iuri-Gomes | Dart | Code | 252 | 1,064 | import 'package:bloc_imc/app/app.dart';
import 'package:bloc_imc/app/app_routes.dart';
import 'package:bloc_imc/model/model.dart';
import 'package:flutter/material.dart';
import '../constant.dart';
class Screen2 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
... | 6,041 |
https://github.com/Coreteks/automated-test-generator-samples/blob/master/Laravel Framework/src/Illuminate/Auth/Access/GateTest.php | Github Open Source | Open Source | MIT | 2,018 | automated-test-generator-samples | Coreteks | PHP | Code | 1,369 | 4,017 | <?php
namespace tests\Illuminate\Auth\Access;
use Illuminate\Auth\Access\Gate;
use Illuminate\Contracts\Container\Container;
use Mockery as m;
class GateTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Mockery\MockInterface
*/
protected $_container;
/**
* @var mixed
*/
protected $_userResolver = null;
/**
* @v... | 30,911 |
https://github.com/luke7oaks/berty/blob/master/js/packages/components/modals/ImageView.tsx | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | berty | luke7oaks | TSX | Code | 565 | 2,232 | import React, { useEffect, useState, useCallback } from 'react'
import { useStyles } from '@berty-tech/styles'
import { View, Modal, Image, TouchableOpacity } from 'react-native'
import { Text, Icon } from '@ui-kitten/components'
import { useTranslation } from 'react-i18next'
import { ScrollView } from 'react-native-ge... | 48,786 |
https://github.com/levenx/levenx-shop/blob/master/levenx-shop-admin/src/store/action/home.ts | Github Open Source | Open Source | MIT | 2,020 | levenx-shop | levenx | TypeScript | Code | 78 | 181 | import { Dispatch } from 'redux';
import { HOME_INIT, NEW_ORDER, ACCEPET_ORDER } from '../types';
import * as Api from 'src/services/home';
export const homeInit = () => {
return async (dispatch: Dispatch) => {
let result = await Api.homeInit();
dispatch({
type: HOME_INIT,
pa... | 27,636 |
https://github.com/chiro2001/xsocket/blob/master/mysocket/src/mysocket.cpp | Github Open Source | Open Source | MIT | null | xsocket | chiro2001 | C++ | Code | 660 | 2,511 | #include <mysocket.h>
// #include "../includes/mysocket.h"
// mySocket.cpp
// 实现两个功能:服务端和终端
// 按照格式解析字符串到Json
// 格式:
/*
{
"type": "client", // 指示了发出信息的地方
"message": "...",
"code": 0,
"data": {...}
}
{
"type": "server",
"message": "...",
"code": 0,
"data": {...}
}
*/
Json::Value message_parser(std::s... | 39,371 |
https://github.com/marnick-hartgers/CodeEnvolved/blob/master/Arduino/Onderzoek/exampleCode.ino | Github Open Source | Open Source | MIT | null | CodeEnvolved | marnick-hartgers | null | Spoken | 174 | 562 | struct MatrixDisplayController {
int firLatch = 2;//ROW
int firClock = 4;
int firData = 6;
int secLatch = 3;//COL
int secClock = 5;
int secData = 7;
byte colIndex = 0;
byte data[7];
void init() {
pinMode(firLatch, OUTPUT);
pinMode(firClock, OUTPUT);
pinMode(firData, OUTPUT);
pinMode... | 35,758 |
https://github.com/DavidTheFighter/StarlightEngine/blob/master/Rendering/Vulkan/VulkanCommandPool.cpp | Github Open Source | Open Source | MIT | 2,018 | StarlightEngine | DavidTheFighter | C++ | Code | 354 | 995 | /*
* MIT License
*
* Copyright (c) 2017 David Allen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 557 |
https://github.com/nyambati/concourse-aws/blob/master/setup/Makefile | Github Open Source | Open Source | MIT | null | concourse-aws | nyambati | Makefile | Code | 40 | 281 | ELASTIC_IP = $@[1]
bosh_init:
./bin/make_manifest_bosh-init.sh
bosh_deploy:
bosh-init deploy bosh-director.yml
cloud_config:
./bin/make_cloud_config.sh
update_config:
bosh update cloud-config aws-cloud.yml
concourse_config:
./bin/make_manifest_concourse.sh
upload_stemcell:
bosh upload stemcell https://bosh.i... | 19,144 |
https://github.com/dawood0/SeniorDesign/blob/master/MSP432/Debug/subdir_vars.mk | Github Open Source | Open Source | MIT | 2,016 | SeniorDesign | dawood0 | Makefile | Code | 77 | 342 | ################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
CMD_SRCS += \
../timer_a_continuous... | 34,279 |
https://github.com/DataONEorg/d1_libclient_java/blob/master/src/main/java/org/dataone/client/exception/NotCached.java | Github Open Source | Open Source | Apache-2.0 | null | d1_libclient_java | DataONEorg | Java | Code | 198 | 332 | /**
* This work was created by participants in the DataONE project, and is
* jointly copyrighted by participating institutions in DataONE. For
* more information on DataONE, see our web site at http://dataone.org.
*
* Copyright ${year}
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... | 17,906 |
https://github.com/halfnelson/svelte-native-preprocessor/blob/master/test/preprocessFixture.ts | Github Open Source | Open Source | MIT | 2,021 | svelte-native-preprocessor | halfnelson | TypeScript | Code | 284 | 919 | import preprocess, { SveltePreprocessorDefinition } from "../src"
import * as assert from 'assert';
describe("preprocess", function () {
let p: SveltePreprocessorDefinition;
function testMarkup(input: string, expected: string) {
let res = p.markup({ content: input, filename: 'Index.svelte' });
... | 35,706 |
https://github.com/fyysikkokilta/ilmomasiina/blob/master/packages/ilmomasiina-backend/src/mail/config.ts | Github Open Source | Open Source | MIT | 2,023 | ilmomasiina | fyysikkokilta | TypeScript | Code | 172 | 532 | import nodemailer, { Transporter } from 'nodemailer';
import SMTPTransport from 'nodemailer/lib/smtp-transport';
import mailgun from 'nodemailer-mailgun-transport';
import config from '../config';
const mailTransporter: Transporter = (() => {
if (config.mailgunApiKey) {
if (!config.mailgunDomain) {
throw ... | 17,132 |
https://github.com/ptrk00/Ecommerce-WebApp/blob/master/src/main/java/com/example/EcommerceApp/order/ProductNotAvailableException.java | Github Open Source | Open Source | MIT | null | Ecommerce-WebApp | ptrk00 | Java | Code | 20 | 88 | package com.example.EcommerceApp.order;
import org.springframework.http.HttpStatus;
import org.springframework.web.server.ResponseStatusException;
public class ProductNotAvailableException extends ResponseStatusException {
public ProductNotAvailableException(String reason) {
super(HttpStatus.UNPROCESSABL... | 45,269 |
https://github.com/febit/febit-rectify/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | febit-rectify | febit | Makefile | Code | 34 | 111 |
.PHONY: test
test:
./gradlew test
.PHONY: check
check:
./gradlew check
.PHONY: clean
clean:
./gradlew clean
.PHONY: licenseFormat
licenseFormat:
./gradlew licenseFormat
.PHONY: build
build:
./gradlew build
.PHONY: build-fast
build-fast:
./gradlew build -x check -x test
| 11,046 |
https://github.com/sidharthpunathil/dig/blob/master/.pi/dig.service | Github Open Source | Open Source | MIT, LicenseRef-scancode-other-permissive | 2,021 | dig | sidharthpunathil | null | Spoken | 14 | 267 | # /etc/systemd/system/gaia.service
[Unit]
Description=Dig
After=firstboot.service
[Service]
WorkingDirectory=/dig
ExecStart=/usr/bin/dig start --p2p.seeds bf8328b66dceb4987e5cd94430af66045e59899f@public-seed.cosmos.vitwit.com:26656,cfd785a4224c7940e9a10f6c1ab24c343e923bec@164.68.107.188:26656,d72b3011ed46d783e369fdf8a... | 55,353 |
https://github.com/schelleg/PYNQ/blob/master/pynq/lib/logictools/tests/test_boolean_generator.py | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,023 | PYNQ | schelleg | Python | Code | 1,058 | 3,823 | # Copyright (c) 2016, Xilinx, Inc.
# SPDX-License-Identifier: BSD-3-Clause
from random import sample
from random import choice
from copy import deepcopy
import re
import pytest
from pynq import Overlay
from pynq.tests.util import user_answer_yes
from pynq.lib.logictools import LogicToolsController
from pynq.lib.l... | 41,923 |
https://github.com/mvshmakov/junk/blob/master/frontend/MailRuAngular4Example/src/styles/less/blocks/nc-select.less | Github Open Source | Open Source | WTFPL | null | junk | mvshmakov | Less | Code | 13 | 43 | .nc-select {
&_domain {
border: 1px solid #9ba3a9;
}
&_option {
}
} | 4,191 |
https://github.com/sallamyemen/railscasts-episodes/blob/master/episode-326/messenger-before/config/routes.rb | Github Open Source | Open Source | MIT | 2,022 | railscasts-episodes | sallamyemen | Ruby | Code | 8 | 29 | Messenger::Application.routes.draw do
resources :messages
root to: "messages#new"
end
| 52,391 |
https://github.com/waja/pkg-nagios-plugins-contrib/blob/master/check_hpasm/check_hpasm-4.8.0.2/plugins-scripts/HP/BladeSystem/Component/CommonEnclosureSubsystem/FuseSubsystem.pm | Github Open Source | Open Source | Artistic-1.0-Perl | null | pkg-nagios-plugins-contrib | waja | Perl | Code | 348 | 1,565 | package HP::BladeSystem::Component::CommonEnclosureSubsystem::FuseSubsystem;
our @ISA = qw(HP::BladeSystem::Component::CommonEnclosureSubsystem);
use strict;
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
sub new {
my $class = shift;
my %params = @_;
my $self = {
runtime => $params{run... | 32,805 |
https://github.com/andraspatka/dsp-labs/blob/master/exam/docs/.gitignore | Github Open Source | Open Source | Unlicense | 2,020 | dsp-labs | andraspatka | Ignore List | Code | 5 | 19 | *.synctex.gz
*.log
*.lof
*.aux
*.toc | 24,069 |
https://github.com/chathamabate/peru/blob/master/src/test/java/com/github/chathamabate/peru/fa/TestFAutomatonUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | peru | chathamabate | Java | Code | 389 | 1,925 | package com.github.chathamabate.peru.fa;
import com.github.chathamabate.peru.lexer.charlexer.CharSimpleContext;
import com.github.chathamabate.peru.lexer.charlexer.CharSimpleDLexer;
import io.vavr.Function1;
import io.vavr.Tuple;
import io.vavr.Tuple2;
import io.vavr.collection.*;
import org.junit.jupiter.api.Assertio... | 3,148 |
https://github.com/WebReflection/polpetta/blob/master/node_modules/wru/src/wru.console.variables.js | Github Open Source | Open Source | MIT | 2,019 | polpetta | WebReflection | JavaScript | Code | 21 | 82 |
// these variables are used on console version only
ERROR = "\033[1;31mERROR\033[0m",
FAILURE = "\033[0;31mFAILURE\033[0m",
OK = "\033[0;32mOK\033[0m",
OUTPUT_SEPARATOR = "------------------------------", | 27,062 |
https://github.com/reod/i18n-cleaner/blob/master/src/i18n-manager.ts | Github Open Source | Open Source | MIT | null | i18n-cleaner | reod | TypeScript | Code | 105 | 376 | #!/usr/bin/env node
import * as program from 'commander';
import { listLocales } from './command-handlers/list-locales';
import { cleanLocales } from './command-handlers/clean-locales';
import { translateLocales } from './command-handlers/translate-locales';
program
.command('list [directory]')
.description('Li... | 26,869 |
https://github.com/iascchen/node-cognitive-services/blob/master/src/vision/computerVision.d.ts | Github Open Source | Open Source | MIT | 2,021 | node-cognitive-services | iascchen | TypeScript | Code | 949 | 2,270 | import { ContentTypeHeaders, CommonConstructorOptions } from "..";
export class computerVision {
constructor(options: CommonConstructorOptions);
analyzeImage(options: AnalyzeImageOptions): Promise<AnalyzeImageReturnValue>;
describeImage(options: DescribeImageOptions): Promise<DescribeImageReturnValue>;
getHandwrit... | 8,381 |
https://github.com/Techmaster21/ffs/blob/master/src/main/java/com/WS/Service/SecurityContextServiceImpl.java | Github Open Source | Open Source | MIT | null | ffs | Techmaster21 | Java | Code | 65 | 274 | /*
Code courtesy of Jakub Remenec (https://blog.davincisoftware.sk/blog-angular-and-spring-security-integration-part1)
with modifications by Adrian Bolt
*/
package com.WS.Service;
import com.WS.Entity.User;
import com.WS.Repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
imp... | 20,145 |
https://github.com/scottheng96/monopoly_game/blob/master/resources/loadable_games/MonApr2911:21:19EDT2019/board/go_to_blue_death.properties | Github Open Source | Open Source | MIT | 2,019 | monopoly_game | scottheng96 | null | Spoken | 13 | 46 | #Mon Apr 29 11:21:24 EDT 2019
DESTINATION=10
TYPE=TELEPORTSPACE
NAME=GO TO BLUE DEATH
LOCATION_NUMBER=30
| 28,347 |
https://github.com/dr3y/BioPick/blob/master/physical/stl/frame/fooyabt_r15_puller.stl | Github Open Source | Open Source | MIT | 2,021 | BioPick | dr3y | null | Spoken | 20,000 | 61,591 | solid OpenSCAD_Model facet normal 0.221413 0.449698 -0.865302 outer loop vertex 5.82535 9.15561 22.999 vertex 5.82156 9.15937 23 vertex 5.82627 9.15705 23 endloop endfacet facet normal 0.221442 0.449722 -0.865283 outer loop vertex 5.82156 9.15937 23 vertex 5.82535 9.15561 22.999 vertex 5.82112 9.15868 22.9995 endloop e... | 21,718 |
https://github.com/zahedbri/react-simple-chat/blob/master/src/reducers/windowReducer.test.js | Github Open Source | Open Source | MIT | 2,017 | react-simple-chat | zahedbri | JavaScript | Code | 67 | 235 | import { expect } from 'chai';
import reducer from './windowReducer';
import * as types from '../constants/window';
describe('windowReducer', function() {
beforeEach(function() {
this.initialState = {
title: 'React Simple Chat',
meta: 'Have fun!'
};
});
it('should return initial state', function() {
e... | 18,543 |
https://github.com/msatrionugraha/oktaviastudio/blob/master/pages/transaksi/pembelian.php | Github Open Source | Open Source | MIT | null | oktaviastudio | msatrionugraha | PHP | Code | 484 | 2,296 | <?php
include '././koneksi.php';
$tgl_daftar = date("Y-m-d");
$tgl_id = date("Ymd");
$query = mysqli_query($koneksi, "SELECT max(id_beli) FROM pembelian_head_oktavia");
$data = mysqli_fetch_array($query);
if ($data) {
$idbaru = substr($data[0], 11);
$idku = $idbaru+1;
if ($idku<10) {
$kode_otomat... | 13,140 |
https://github.com/bghayad/taxi/blob/master/taxi/taxi/doctype/commission_rule/commission_rule.py | Github Open Source | Open Source | MIT | null | taxi | bghayad | Python | Code | 93 | 236 | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Bilal Ghayad and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document, _
class CommissionRule(Document):
# pass
def validate(self):
any_commi... | 16,505 |
https://github.com/djacquel/react-svg-clock/blob/master/app/components/nixie/NixieBackground.jsx | Github Open Source | Open Source | MIT | null | react-svg-clock | djacquel | null | Spoken | 32 | 101 | import React, { PropTypes } from "react";
const NixieBackground = ({clockWidth}) => (
<g>
<rect x="0" y="0" height="80" width={clockWidth} className="nixieBackground" />
</g>
);
NixieBackground.PropTypes = {
clockWidth: PropTypes.number.isRequired,
}
export default NixieBackground;
| 13,654 |
https://github.com/ebanx/benjamin/blob/master/tests/Unit/Services/Gateways/PixTest.php | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,021 | benjamin | ebanx | PHP | Code | 108 | 704 | <?php
namespace Tests\Unit\Services\Gateways;
use Ebanx\Benjamin\Models\Configs\Config;
use Ebanx\Benjamin\Models\Country;
use Ebanx\Benjamin\Models\Currency;
use Ebanx\Benjamin\Services\Gateways\Pix;
use Tests\Helpers\Builders\BuilderFactory;
class PixTest extends GatewayTestCase
{
public function testBusinessP... | 13,601 |
https://github.com/fr33z3/grape-admin/blob/master/lib/grape/admin/render.rb | Github Open Source | Open Source | MIT | 2,018 | grape-admin | fr33z3 | Ruby | Code | 36 | 151 | require 'erb'
module Grape
module Admin
module Render
def render
_render(layout_file) do
_render(template)
end
end
private
def _render(template)
template_path = File.join(template_root, template)
ERB.new(File.read(template_path)).result(binding)... | 51,230 |
https://github.com/COINiD/COINiDWallet/blob/master/src/components/Graph.js | Github Open Source | Open Source | MIT | 2,022 | COINiDWallet | COINiD | JavaScript | Code | 545 | 1,763 | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, TouchableOpacity, View } from 'react-native';
import { LineChart } from 'react-native-svg-charts';
import * as shape from 'd3-shape';
import { Text, FontScale } from '.';
import TranslatedText from './TranslatedText'... | 32,370 |
https://github.com/jbenden/elfi/blob/master/tests/unit/test_methods.py | Github Open Source | Open Source | BSD-3-Clause | 2,017 | elfi | jbenden | Python | Code | 588 | 2,358 | import numpy as np
from distributed import Client
from functools import partial
import GPy
import elfi
from elfi.storage import DictListStore
# Test case
class MockModel():
def mock_simulator(self, p, n_sim=1, prng=None):
self.mock_sim_calls += np.atleast_2d(p).shape[0]
print(self.mock_sim_calls,... | 174 |
https://github.com/babuin1996/grand_budapest/blob/master/views/site/book.php | Github Open Source | Open Source | BSD-3-Clause | null | grand_budapest | babuin1996 | PHP | Code | 84 | 371 | <?php
use app\models\HotelNumbers;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Bookings */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="bookings-form">
<?php $form = ActiveForm::begin(); ?>
<?= Html::activeLabel($model, 'hotel_number_i... | 18,226 |
https://github.com/victor-timoshin/SWAY-GameFramework/blob/master/Makefile | Github Open Source | Open Source | MIT | null | SWAY-GameFramework | victor-timoshin | Makefile | Code | 84 | 424 | DEPENDENCIES_DIR = Dependencies/
SOURCE_DIR = Src/
BUILD_DIR = Build/
OUTPUT_DIR = $(BUILD_DIR)Bin/
VS_INC_VC = /I"$(VS_INSTALL_DIR)\VC\include" /I"$(VS_INSTALL_DIR)\VC\PlatformSDK\include"
VS_LIB_VC = /LIBPATH:"$(VS_INSTALL_DIR)\VC\PlatformSDK\Lib" /LIBPATH:"$(VS_INSTALL_DIR)\VC\lib"
ADD_COMPILER_OPTS = /Od /D "WIN... | 40,364 |
https://github.com/MootezSaaD/CheckerGamesCS102/blob/master/src/Main.java | Github Open Source | Open Source | MIT | null | CheckerGamesCS102 | MootezSaaD | Java | Code | 78 | 327 | import java.awt.Font;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
public class Main {
public static void main(String[] args) {
JFrame f = new JFrame();
JMenuBar m = new JMenuBar();
Font font = new Font("Serif",Font.BOLD,24);
f.setTitle("Checkers Game");
JMenu exitMe... | 13,472 |
https://github.com/strassek/chromiumos-platform2/blob/master/camera/hal/mediatek/mtkcam/main/hal/module/devicemgr/CamDeviceManagerBase.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | chromiumos-platform2 | strassek | C++ | Code | 385 | 1,498 | /*
* Copyright (C) 2019 MediaTek 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 agr... | 42,107 |
https://github.com/acervenky/oostrinity/blob/master/smali/androidx/leanback/widget/ShadowOverlayContainer.smali | Github Open Source | Open Source | MIT | null | oostrinity | acervenky | Smali | Code | 540 | 2,955 | .class public Landroidx/leanback/widget/ShadowOverlayContainer;
.super Landroid/widget/FrameLayout;
.source "ShadowOverlayContainer.java"
# static fields
.field private static final sTempRect:Landroid/graphics/Rect;
# instance fields
.field private mFocusedZ:F
.field private mInitialized:Z
.field mOverlayColor:I
... | 10,332 |
https://github.com/rabinadk1/Yeti/blob/master/map-test/js/map.js | Github Open Source | Open Source | MIT | null | Yeti | rabinadk1 | JavaScript | Code | 33 | 184 | const map = L.map("map").setView([51.505, -0.09], 13);
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution:
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
GetGeoLocation(({ coords }) => {
const curLoc = new L.LatLng(coords.l... | 48,823 |
https://github.com/bstaijen/mariadb-for-microservices/blob/master/vote-service/app/http/routes/routes_test.go | Github Open Source | Open Source | MIT | 2,021 | mariadb-for-microservices | bstaijen | Go | Code | 824 | 2,639 | package routes
import (
"bytes"
"database/sql"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
"time"
sqlmock "gopkg.in/DATA-DOG/go-sqlmock.v1"
"github.com/bstaijen/mariadb-for-microservices/vote-service/config"
jwt "github.com/dgrijalva/jwt-go"
sharedModels "github.com/bstaijen/mariadb-for-micr... | 9,408 |
https://github.com/excursiones/excursions-front-end/blob/master/src/views/Admin/ShowInfo/Field.jsx | Github Open Source | Open Source | MIT | null | excursions-front-end | excursiones | null | Spoken | 38 | 154 | import React from "react";
import GridItem from "../../../components/Grid/GridItem";
import CustomInput from "../../../components/CustomInput/CustomInput";
export default class Field extends React.Component {
render() {
return (
<GridItem xs={12} sm={12} md={4} key={this.props.index}>
<CustomInput
... | 46,606 |
https://github.com/Jblew/marinesmud-3d/blob/master/Assets/UMA.meta | Github Open Source | Open Source | CC-BY-3.0, CC-BY-4.0, MIT | 2,019 | marinesmud-3d | Jblew | Unity3D Asset | Code | 8 | 46 | fileFormatVersion: 2
guid: f408ca2c4be9b48cf877f2b9e642ad52
folderAsset: yes
DefaultImporter:
userData:
| 6,940 |
https://github.com/johnrabbit687/Holtzman/blob/master/imports/deprecated/database/collections/likes.js | Github Open Source | Open Source | ECL-2.0 | 2,019 | Holtzman | johnrabbit687 | JavaScript | Code | 69 | 186 | import { Mongo } from "meteor/mongo";
const Likes = new Mongo.Collection("likes");
// Likes.schema = {
// userId: String,
// entryId: String,
// title: String,
// image: String,
// link: String,
// icon: String,
// category: String,
// date: Date
// status: String,
// dateLiked: Date
// }
// Apol... | 49,677 |
https://github.com/bwlang/galaxy/blob/master/lib/tool_shed/util/readme_util.py | Github Open Source | Open Source | CC-BY-2.5, AFL-2.1, AFL-3.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference | 2,019 | galaxy | bwlang | Python | Code | 453 | 1,687 | import json
import logging
import os
from mako.template import Template
import tool_shed.util.shed_util_common as suc
from galaxy import web
from galaxy.util import rst_to_html, unicodify, url_get
from tool_shed.util import basic_util
from tool_shed.util import common_util
from tool_shed.util import hg_util
from tool... | 28,530 |
https://github.com/jamie-dainton/MailKit/blob/master/samples/ImapClientDemo.iOS/ImapClientDemo.iOS/Mail.cs | Github Open Source | Open Source | MIT | 2,021 | MailKit | jamie-dainton | C# | Code | 57 | 137 | using System;
using UIKit;
using MailKit;
using MailKit.Net.Imap;
namespace ImapClientDemo.iOS
{
public static class Mail
{
static Mail ()
{
Client = new ImapClient ();
}
public static ImapClient Client { get; set; }
public static void MessageBox (string... | 12,042 |
https://github.com/jesubiag/play2-basic-crud/blob/master/app/managers/CarManager.java | Github Open Source | Open Source | Apache-2.0 | null | play2-basic-crud | jesubiag | Java | Code | 46 | 109 | package managers;
import models.Car;
/**
* Created by jesu on 23/10/2015.
*/
public class CarManager extends DataManager<Car> {
private static CarManager instance;
private CarManager() {
super(Car.class);
}
public static CarManager instance() {
if ( instance == null ) instance = new CarManager();
retu... | 39,343 |
https://github.com/vladchebotarev/git-repos-compare/blob/master/app/Http/Controllers/ApiController.php | Github Open Source | Open Source | MIT | null | git-repos-compare | vladchebotarev | PHP | Code | 204 | 960 | <?php
namespace App\Http\Controllers;
use App\Http\Requests\CompareRequest;
use GrahamCampbell\GitHub\Facades\GitHub;
use Illuminate\Http\Request;
class ApiController extends Controller
{
/**
* @param Request $request
* @return \Illuminate\Http\JsonResponse
*/
public function compare (CompareR... | 49,828 |
https://github.com/swingflip/C64_mini_VICE/blob/master/src/arch/sdl/winmips-msvc/vic20.mak | Github Open Source | Open Source | Apache-2.0 | 2,022 | C64_mini_VICE | swingflip | Makefile | Code | 1,080 | 6,341 | # Microsoft Developer Studio Generated NMAKE File, Based on vic20.dsp
!IF "$(CFG)" == ""
CFG=vic20 - Win32 Release
!MESSAGE No configuration specified. Defaulting to vic20 - Win32 Release.
!ENDIF
!IF "$(CFG)" != "vic20 - Win32 Release" && "$(CFG)" != "vic20 - Win32 Debug"
!MESSAGE Invalid configuration "$(CFG)" speci... | 29,207 |
https://github.com/wiajs/f7/blob/master/components/autocomplete/autocomplete-class.js | Github Open Source | Open Source | MIT | 2,021 | f7 | wiajs | JavaScript | Code | 2,422 | 9,134 | /** @jsx jsx */
/* eslint "no-useless-escape": "off" */
import {Utils, Event, Device, jsx} from '@wiajs/core';
class Autocomplete extends Event {
constructor(app, params = {}) {
super(params, [app]);
const ac = this;
ac.app = app;
const device = Device;
const defaults = Utils.extend({
o... | 51,783 |
https://github.com/CodeAsm/PS1Linux/blob/master/linux/include/linux/if_tun.h | Github Open Source | Open Source | CC0-1.0 | 2,021 | PS1Linux | CodeAsm | C | Code | 293 | 789 | /*
* Universal TUN/TAP device driver.
* Copyright (C) 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... | 29,872 |
https://github.com/ReCodEx/worker/blob/master/tests/broker_connection.cpp | Github Open Source | Open Source | MIT | 2,022 | worker | ReCodEx | C++ | Code | 179 | 1,244 | #ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "config/worker_config.h"
#include "broker_connection.h"
#include "mocks.h"
using namespace testing;
TEST(broker_connection, sends_init)
{
auto config = std::make_shared<mock_worker_config>();
... | 30,319 |
https://github.com/hype-ecosystem/atomicswapwallet.io/blob/master/shared/redux/reducers/api.js | Github Open Source | Open Source | MIT | 2,020 | atomicswapwallet.io | hype-ecosystem | JavaScript | Code | 59 | 145 | import config from 'app-config'
export const initialState = {
servers: config.api,
checked: false,
errors: null,
}
export const setChecked = (state, checked) => ({
...state,
checked,
})
export const setErrors = (state, errors) => ({
...state,
errors,
checked: true,
})
export const setApiServer = (s... | 16,356 |
https://github.com/slava-basko/yandex-api-webmaster/blob/master/src/Http/Client.php | Github Open Source | Open Source | MIT | 2,016 | yandex-api-webmaster | slava-basko | PHP | Code | 220 | 1,129 | <?php
/**
* Created by Slava Basko <basko.slava@gmail.com>
* Date: 9/5/16
*/
namespace YandexWebmaster\Http;
use Psr\Log\LoggerInterface;
use Yandex\Http\Curl;
use Yandex\Http\CurlInterface;
use YandexWebmaster\Action\AddOriginalTextAction;
use YandexWebmaster\Action\AddSiteAction;
use YandexWebmaster\Action\AddSi... | 55,339 |
https://github.com/vovimayhem/numeric_type_column/blob/master/test/dummy/test/functional/unsigned_columns_tests_controller_test.rb | Github Open Source | Open Source | MIT | 2,013 | numeric_type_column | vovimayhem | Ruby | Code | 122 | 543 | require 'test_helper'
class UnsignedColumnsTestsControllerTest < ActionController::TestCase
setup do
@unsigned_columns_test = unsigned_columns_tests(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:unsigned_columns_tests)
end
test "should get ... | 7,561 |
https://github.com/jekhokie/IfSimply/blob/master/app/views/devise/confirmations/new.js.coffee | Github Open Source | Open Source | MIT | 2,015 | IfSimply | jekhokie | CoffeeScript | Code | 30 | 116 | $(".modal").addClass "devise-modal" unless $(".modal").hasClass("devise-modal")
$(".modal .modal-header").remove()
$(".modal .modal-body").html "<%= escape_javascript(render :template => 'devise/confirmations/new',
:formats => [ :html ],
... | 1,334 |
https://github.com/UDBIAWDIF/5ihzp/blob/master/Admin/Lib/Action/PicAction.class.php | Github Open Source | Open Source | Apache-2.0 | 2,014 | 5ihzp | UDBIAWDIF | PHP | Code | 6 | 16 | <?php
class PicAction extends GlobalAction{
}
| 20,929 |
https://github.com/zhengchubo/starcoin-explorer/blob/master/src/utils/client.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | starcoin-explorer | zhengchubo | TypeScript | Code | 199 | 547 | import axios from 'axios';
const apiUrl = process.env.REACT_APP_STARCOIN_API_URL;
const baseURL = `${apiUrl}`;
const clientConfig = {
baseURL,
timeout: 120000, // 2 minutes, xhr status will be 'canceled'
headers: {
'Content-Type': 'application/json; charsett=UTF-8',
accept: 'application/json'
}
};
con... | 4,779 |
https://github.com/HI4KenyaBootcamp/kmhfl_pwa/blob/master/src/views/Facilities/FacilitiesOld.jsx | Github Open Source | Open Source | MIT | 2,019 | kmhfl_pwa | HI4KenyaBootcamp | null | Spoken | 501 | 1,992 | import React from "react";
import Select from "react-select";
import 'react-dropdown/style.css';
import axios from "axios";
import { Card, CardHeader, CardBody, CardTitle, Row, Col } from "reactstrap";
import { PanelHeader } from "components";
import ReactTable from "react-table";
import 'react-table/react-table.css';
... | 49,829 |
https://github.com/droidark/comixtorm-front/blob/master/src/app/shared/model/role.model.ts | Github Open Source | Open Source | MIT | null | comixtorm-front | droidark | TypeScript | Code | 15 | 39 | import {Author} from './author.model';
export class Role {
id: number;
description: string;
authors: Author[];
}
| 53,630 |
https://github.com/qixiang-mft/aliyun-tpp-solution-protocol/blob/master/src/main/java/com/aliyun/tpp/solution/protocol/ContextLogger.java | Github Open Source | Open Source | MIT | 2,022 | aliyun-tpp-solution-protocol | qixiang-mft | Java | Code | 22 | 74 | package com.aliyun.tpp.solution.protocol;
/**
* 输出用户方案日志
*/
public interface ContextLogger {
void info(String log);
void warn(String log);
void error(String log, Throwable t);
}
| 22,632 |
https://github.com/electrikhq/electrik/blob/master/config/plans.php | Github Open Source | Open Source | MIT | 2,023 | electrik | electrikhq | PHP | Code | 297 | 1,093 | <?php
return [
'billables' => [
'team' => [
'model' => Team::class,
'trial_days' => 15,
'plans' => [
[
'id' => 'prod_MOurX66bBOn5oD',
'slug' => 'lorem',
'name' => 'Lorem',
'short_description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'trial_days' => 0,
... | 40,755 |
https://github.com/dotnet/Scaffolding/blob/master/src/Scaffolding/VS.Web.CG.Msbuild/ProjectContextWriter.cs | Github Open Source | Open Source | MIT | 2,023 | Scaffolding | dotnet | C# | Code | 457 | 1,436 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.Json;
using Microsoft.Build.Framework;
using Microsoft.DotNet.Scaffolding.Shared... | 28,857 |
https://github.com/hongyuanjia/OpenStudio/blob/master/openstudiocore/src/model_editor/InspectorDialog.hpp | Github Open Source | Open Source | MIT | 2,019 | OpenStudio | hongyuanjia | C++ | Code | 736 | 2,137 | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... | 20,076 |
https://github.com/yangfancoming/spring-5.1.x/blob/master/spring-beans/src/test/java/org/springframework/beans/factory/support/ManagedPropertiesTests.java | Github Open Source | Open Source | Apache-2.0 | null | spring-5.1.x | yangfancoming | Java | Code | 179 | 654 |
package org.springframework.beans.factory.support;
import java.util.Map;
import org.junit.Test;
import static org.junit.Assert.*;
@SuppressWarnings("rawtypes")
public class ManagedPropertiesTests {
@Test
public void mergeSunnyDay() {
ManagedProperties parent = new ManagedProperties();
parent.setProperty("one... | 22,386 |
https://github.com/sakibnm/NotesAPI-NodeJS/blob/master/node_modules/@aws-sdk/util-buffer-from/dist-types/index.d.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | NotesAPI-NodeJS | sakibnm | TypeScript | Code | 59 | 125 | import { Buffer } from "buffer";
/**
* @internal
*/
export declare const fromArrayBuffer: (input: ArrayBuffer, offset?: number, length?: number) => Buffer;
/**
* @internal
*/
export type StringEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "latin1" | "binary" | "hex";
/**
* @internal
*/
export decl... | 18,040 |
https://github.com/Takishima/cmake-pre-commit-hooks/blob/master/cmake_pc_hooks/cppcheck.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | cmake-pre-commit-hooks | Takishima | Python | Code | 262 | 632 | # -*- coding: utf-8 -*-
# Copyright 2021 Damien Nguyen
#
# 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... | 32,340 |
https://github.com/xaviergoh/xaviergoh.github.io/blob/master/assets/js/3dtypo.js | Github Open Source | Open Source | MIT | 2,022 | xaviergoh.github.io | xaviergoh | JavaScript | Code | 348 | 1,034 | //ninivert, September 2016
/*VARIABLES*/
canvas = document.getElementsByTagName('canvas')[0];
canvas.width = document.body.clientWidth;
canvas.height = document.body.clientHeight;
var ctx = canvas.getContext('2d');
/*Modify options here*/
//possible characters that will appear
var characterList = ['a', 'b', 'c',... | 22,933 |
https://github.com/clilystudio/NetBook/blob/master/smali/com/ushaqi/zhuishushenqi/ui/post/F.smali | Github Open Source | Open Source | Unlicense | 2,018 | NetBook | clilystudio | Smali | Code | 564 | 4,269 | .class final Lcom/ushaqi/zhuishushenqi/ui/post/F;
.super Lcom/ushaqi/zhuishushenqi/a/c;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/ushaqi/zhuishushenqi/a/c",
"<",
"Ljava/lang/String;",
"Lcom/ushaqi/zhuishushenqi/model/PostPub... | 52,493 |
https://github.com/mafernandez-stratio/heron/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | null | heron | mafernandez-stratio | Scala | Code | 52 | 246 | name := "heron"
version := "0.1"
scalaVersion := "2.12.6"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % "2.5.13",
"com.typesafe.akka" %% "akka-stream-testkit" % "2.5.13" % Test,
"com.typesafe.akka" %% "akka-http" % "10.1.3",
"com.typesafe.akka" %% "akka-http-testkit" % "10.1.3" % Test,
... | 19,019 |
https://github.com/shoma-mano/prisma_graphql/blob/master/src/@generated/prisma-nestjs-graphql/detail-on-option/detail-on-option-create-nested-many-without-option.input.ts | Github Open Source | Open Source | MIT | null | prisma_graphql | shoma-mano | TypeScript | Code | 66 | 329 | import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { DetailOnOptionCreateWithoutOptionInput } from './detail-on-option-create-without-option.input';
import { DetailOnOptionCreateOrConnectWithoutOptionInput } from './detail-on-option-create-or-connect-without-option.input';
impo... | 41,001 |
https://github.com/TWalk007/MDS_VRStore_0.18/blob/master/Assets/Prefabs/Paste Boxes_4.2oz_HealthyClean.prefab | Github Open Source | Open Source | MIT | 2,019 | MDS_VRStore_0.18 | TWalk007 | Unity3D Asset | Code | 11,508 | 54,419 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_SourcePrefab: {fileID: 0}
m_RootGameObject: {fileID: 1667864892092986}
m_IsPrefabAsset: 1... | 41,344 |
https://github.com/ArjunSharma580/car/blob/master/js/Teacher.js | Github Open Source | Open Source | MIT | 2,020 | car | ArjunSharma580 | JavaScript | Code | 276 | 1,053 | class Teacher {
constructor() {
this.generateSecretWord = createButton("Genrate Secret Word");
this.message = createElement("h3");
this.secretWord = createElement("h3");
this.nameInput = createInput("").attribute("placeholder", "Name");
this.greeting = createElement("h2");
this.greeting2 = cr... | 26,872 |
https://github.com/dazinator/DotNet.Glob/blob/master/src/DotNet.Glob.Benchmarks/BaselineRegexGlobCompileBenchmarks.cs | Github Open Source | Open Source | MIT | 2,022 | DotNet.Glob | dazinator | C# | Code | 114 | 508 | using System.Text.RegularExpressions;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Columns;
using BenchmarkDotNet.Attributes.Jobs;
using DotNet.Glob.Benchmarks.Utils;
using DotNet.Globbing;
namespace DotNet.Glob.Benchmarks
{
[ClrJob, CoreJob, MemoryDiagnoser, MinColumn, MaxColumn]
publi... | 15,120 |
https://github.com/phuonganhle0312/MonsTerra/blob/master/views/index.handlebars | Github Open Source | Open Source | MIT | 2,020 | MonsTerra | phuonganhle0312 | null | Spoken | 173 | 575 | <nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="https://res.cloudinary.com/dw2l5yiim/image/upload/v1595382885/MonsTerraLogo_i3nctc.png" width="112" height="28">
</a>
</div>
<div class="navbar-end">
<div cl... | 47,851 |
https://github.com/MobMaxime/xamarin-android-samples/blob/master/SlidingMenu/Sample/ExampleListActivity.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | xamarin-android-samples | MobMaxime | C# | Code | 156 | 604 | using System;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Preferences;
namespace Sample
{
[Activity(Label = "SlidingMenu Demo", Theme = "@style/ExampleTheme")]
public class ExampleListActivity : PreferenceActivity
{
protected override void OnCreate(Bundle savedInstanc... | 47,723 |
https://github.com/RafaelSdm/React-todo/blob/master/todo-app-frontend/src/components/Logo/Logo.tsx | Github Open Source | Open Source | MIT | null | React-todo | RafaelSdm | TypeScript | Code | 19 | 51 | export const Logo: React.FC = () => {
return(
<img src="logo.svg" width="228px" height="56px" alt="Logo do App" />
)
}
| 36,584 |
https://github.com/xxfast/fabric-witness/blob/master/src/main/kotlin/com/xfastgames/witness/blocks/decorations/Drape.kt | Github Open Source | Open Source | CC0-1.0 | 2,021 | fabric-witness | xxfast | Kotlin | Code | 613 | 2,054 | package com.xfastgames.witness.blocks.decorations
import com.xfastgames.witness.utils.above
import com.xfastgames.witness.utils.neighbours
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.minecraft.block.*
import net.minecraft.entity.LivingEntity
import net.minecraft.entity.playe... | 39,016 |
https://github.com/JinsongCV/Supervised-Versus-Self-supervised-Assistant-for-Surveillance-of-Harbor-Fronts/blob/master/self-supervised/evaluate.py | Github Open Source | Open Source | MIT | 2,020 | Supervised-Versus-Self-supervised-Assistant-for-Surveillance-of-Harbor-Fronts | JinsongCV | Python | Code | 419 | 1,873 | import cv2
import numpy as np
import matplotlib.pyplot as plt
import os
def load_data(data_dir,group):
losses = np.load(os.path.join(data_dir,'{}_losses.npy'.format(group)))
#images = np.load(os.path.join(data_dir,'{}_inputs.npy'.format(group)))
#recs = np.load(os.path.join(data_dir,'recs.npy'))
names ... | 2,290 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.