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/ccatto/expressmongomlab/blob/master/src/routes/noteRoutes.js | Github Open Source | Open Source | MIT | 2,018 | expressmongomlab | ccatto | JavaScript | Code | 21 | 62 | // routes/noteRoutes.js
module.exports = function(app, db) {
app.post('/notes', (req, res) => {
// You'll create your note here.
res.send('Hello')
});
}; | 23,670 |
https://github.com/mazheyckoivan/card-game/blob/master/src/pages/Login/index.ts | Github Open Source | Open Source | MIT | null | card-game | mazheyckoivan | TypeScript | Code | 6 | 11 | export { default } from "./LoginContainer";
| 24,513 |
https://github.com/abunadi/phalcon-cp-sample/blob/master/controlpanel/app/models/Items.php | Github Open Source | Open Source | BSD-3-Clause | 2,017 | phalcon-cp-sample | abunadi | PHP | Code | 401 | 1,372 | <?php
use Phalcon\Mvc\Model;
use Phalcon\Mvc\Model\Relation;
use Phalcon\Mvc\Model\Message as Message;
use Phalcon\Mvc\Model\Validator\Uniqueness;
/**
* Items
*/
class Items extends Model
{
protected $id;
protected $name;
protected $description;
protected $last_update;
/**
* Items initiali... | 44,706 |
https://github.com/wpycs/abplus/blob/master/src/Samples/FileStorage/Sample.LocalFileSystem/SampleLocalFileSystemBootstrap.cs | Github Open Source | Open Source | MIT | 2,019 | abplus | wpycs | C# | Code | 34 | 123 | using Abp;
namespace Sample.LocalFileSystem
{
internal class SampleLocalFileSystemBootstrap
{
private static readonly AbpBootstrapper _bs = AbpBootstrapper.Create<SampleLocalFileSystemModule>();
public void Start()
{
//LogManager.Configuration = new XmlLoggingConfiguration... | 29,572 |
https://github.com/CorleoneZeca/messages-api/blob/master/src/messages/messages.service.ts | Github Open Source | Open Source | MIT | null | messages-api | CorleoneZeca | TypeScript | Code | 51 | 150 | import { Injectable } from '@nestjs/common';
import { MessageRepository } from './messages.repository';
@Injectable()
export class MessagesService {
// public means messagesRepo is automaticly assing to this class
constructor(public messagesRepo: MessageRepository) {}
async findOne(id: string) {
return this... | 25,307 |
https://github.com/a5566baga/FitBodyMerchantApp/blob/master/FItBodyMerchant/FItBodyMerchant/Class/Orders/ZZQUser.m | Github Open Source | Open Source | Apache-2.0 | 2,017 | FitBodyMerchantApp | a5566baga | Objective-C | Code | 89 | 333 | //
// ZZQUser.m
// FItBodyUser
//
// Created by ben on 17/5/3.
// Copyright © 2017年 张增强. All rights reserved.
//
#import "ZZQUser.h"
@implementation ZZQUser
- (ZZQUser *)setUserForObj:(AVObject *)obj{
ZZQUser * user = [[ZZQUser alloc] init];
user.objectId = [obj objectId];
user.age = [obj objectForKe... | 50,660 |
https://github.com/Pigbibi/GdeiAssistant/blob/master/src/main/webapp/WEB-INF/view/Delivery/tradeDetail.jsp | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,022 | GdeiAssistant | Pigbibi | null | Spoken | 246 | 1,756 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<meta charset="UTF-8">
<title>全民快递</title>
<meta content="width=device-width, initial-scale=1.0, ... | 35,122 |
https://github.com/fredonweb/Leaflet.LayersManager/blob/master/docs/basias.js | Github Open Source | Open Source | CC-BY-3.0 | 2,020 | Leaflet.LayersManager | fredonweb | JavaScript | Code | 5 | 285 | https://www.georisques.gouv.fr/api/v1/sis?rayon=2000&latlon=4.8589028%2C45.7699061&page=1&page_size=100
https://www.georisques.gouv.fr/services?LANGUAGE=fre&SERVICE=WFS&typenames=BASIAS_ADRESSE&service=WFS&request=GetFeature&version=2.0.0&outputFormat=GEOJSON&projection=WGS84&BBOX=44.00,4.90,45.00,5.00
https://georis... | 19,897 |
https://github.com/michaeltroger/feature-matching-android/blob/master/opencv-3-4-15/native/jni/OpenCV-x86_64.mk | Github Open Source | Open Source | MIT | 2,022 | feature-matching-android | michaeltroger | Makefile | Code | 17 | 69 | OPENCV_3RDPARTY_COMPONENTS:=quirc libprotobuf tbb cpufeatures ittnotify libjpeg-turbo libwebp libpng libtiff libjasper IlmImf ippiw ippicv
OPENCV_EXTRA_COMPONENTS:=z dl m log
| 29,250 |
https://github.com/CaelestisZ/IrisCore/blob/master/drivers/misc/bhy/Makefile | Github Open Source | Open Source | MIT | 2,020 | IrisCore | CaelestisZ | Makefile | Code | 17 | 81 | #
# Makefile for Bosch sensor driver.
#
obj-$(CONFIG_SENSORS_BHI) += bstclass.o
obj-$(CONFIG_SENSORS_BHI) += bhy_core.o
obj-$(CONFIG_SENSORS_BHI) += bhy_i2c.o
| 43,773 |
https://github.com/rtxu/cp/blob/master/leetcode/binary-tree-postorder-traversal/binary_tree_traversal_recursive.go | Github Open Source | Open Source | MIT | null | cp | rtxu | Go | Code | 138 | 423 | /**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
func postorderTraversal(root *TreeNode) []int {
if root == nil {
return []int{}
}
left := postorderTraversal(root.Left)
right := postorderTraversal(root.... | 30,064 |
https://github.com/SPIL-stephanep/angular-intro/blob/master/test/PortalFactory.js | Github Open Source | Open Source | MIT | 2,014 | angular-intro | SPIL-stephanep | JavaScript | Code | 23 | 96 | describe('Portal Factory', function() {
beforeEach(module('intro'));
it('returns an array', inject(function(Portals) {
expect(Portals).to.be.an('array');
}));
it('has a fixed amount of items', inject(function(Portals) {
expect(Portals).to.have.length(5);
}));
}); | 25,106 |
https://github.com/windywany/wulacms/blob/master/modules/media/classes/MimageFieldWidget.php | Github Open Source | Open Source | MIT | 2,017 | wulacms | windywany | PHP | Code | 601 | 1,664 | <?php
/**
* 多文件上传器.
* @author ngf
*
*/
class MimageFieldWidget implements IFieldWidget, IFieldWidgetDataProvidor {
private $options;
private static $data = array ('extensions' => 'jpg,gif,png,jpeg','water' => 1,'locale' => false,'msize' => '','fullurl' => 0,'userType' => '' );
public function getDataProvidor($op... | 42,634 |
https://github.com/BestAndroidTeam/date-picker/blob/master/library/src/main/java/com/afollestad/date/view/DatePickerSavedState.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | date-picker | BestAndroidTeam | Kotlin | Code | 198 | 493 | /**
* Designed and developed by Aidan Follestad (@afollestad)
*
* 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 b... | 47,660 |
https://github.com/iondv/ion-old-java-version-20140819/blob/master/ion-modeler/src/ion/modeler/resources/IonListViewResource.java | Github Open Source | Open Source | Apache-2.0 | null | ion-old-java-version-20140819 | iondv | Java | Code | 20 | 82 | package ion.modeler.resources;
import org.eclipse.core.resources.IFile;
public class IonListViewResource extends IonViewResource {
public IonListViewResource(IFile src, IonViewsResource node, IonEntityResource entity){
super(src,node,entity,"список");
}
}
| 45,544 |
https://github.com/erik/fuzzy/blob/master/fuzzy/ast/NumericNode.hx | Github Open Source | Open Source | MIT | 2,013 | fuzzy | erik | Haxe | Code | 34 | 89 | package fuzzy.ast;
class NumericNode extends ValueNode
{
public function new(num : String)
{
super();
this.num = Std.parseInt(num);
}
public override function toString() : String
{
return Std.string(num);
}
public var num : Int;
} | 11,095 |
https://github.com/ReliefApplications/bms_api/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | bms_api | ReliefApplications | Ignore List | Code | 41 | 230 | /.web-server-pid
/app/config/parameters.yml
/docker-compose.yml
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/
/web/bundles/
.DS_Store
# Elastic Beanstalk File... | 36,850 |
https://github.com/kattiperk/week-5/blob/master/daos/user.js | Github Open Source | Open Source | MIT | null | week-5 | kattiperk | JavaScript | Code | 89 | 224 | const User = require('../models/user');
module.exports = {};
module.exports.getUser = async (email) => {
try {
const foundUser = await User.findOne({ email: email }).lean();
return foundUser;
} catch (e) {
next(e);
}
};
module.exports.updateUserPassword = async (userId, password) ... | 38,042 |
https://github.com/FusionInspector/FusionInspector/blob/master/util/get_pfam_domain_info.pl | Github Open Source | Open Source | BSD-3-Clause | 2,022 | FusionInspector | FusionInspector | Perl | Code | 588 | 2,478 | #!/usr/bin/env perl
use strict;
use warnings;
use Carp;
use Getopt::Long qw(:config posix_default no_ignore_case bundling pass_through);
use Data::Dumper;
use JSON::XS;
use FindBin;
use lib ("$FindBin::Bin/../PerlLib");
use TiedHash;
use Overlap_piler;
my $DEBUG = 0;
my $usage = <<__EOUSAGE__;
#####################... | 27,128 |
https://github.com/mnipper/AndroidSurvey/blob/master/assets/migrations/13.sql | Github Open Source | Open Source | MIT | 2,015 | AndroidSurvey | mnipper | SQL | Code | 28 | 64 | ALTER TABLE AdminSettings ADD COLUMN ShowSkip BOOLEAN;
ALTER TABLE AdminSettings ADD COLUMN ShowNA BOOLEAN;
ALTER TABLE AdminSettings ADD COLUMN ShowRF BOOLEAN;
ALTER TABLE AdminSettings ADD COLUMN ShowDK BOOLEAN; | 43,195 |
https://github.com/behaispkt2010/nsg/blob/master/resources/views/reports/pdf/orders/inventory_delivery_voucher.blade.php | Github Open Source | Open Source | MIT | 2,018 | nsg | behaispkt2010 | Blade | Code | 312 | 1,499 | @extends('layouts.pdf.render')
@section('title')
In phiếu xuất kho
@stop
@section('content')
<div class="container">
<div class="row">
<!-- icon logo Lien -->
<?php
$image = "/images/logo_pnsg.png";
?>
<div style="text-align: center;">
<img src="{!! url('/') !!}/images/logo_pnsg.png"... | 5,353 |
https://github.com/raquo/url-dsl/blob/master/shared/src/main/scala/urldsl/language/Tupler.scala | Github Open Source | Open Source | MIT | 2,022 | url-dsl | raquo | Scala | Code | 1,005 | 2,280 | package urldsl.language
/**
*The following code has been stolen at
* https://github.com/julienrf/endpoints/blob/7d0af49bc7a83b5985815d936201616ed8a3fa5d/json-schema/json-schema/src/main/scala/endpoints/Tupler.scala
* by julienrf
*/
/**
* The original LICENSE:
*
* The MIT License (MIT)
*
* Copyright (... | 3,464 |
https://github.com/muellan/generic/blob/master/examples/Makefile | Github Open Source | Open Source | MIT | 2,021 | generic | muellan | Makefile | Code | 69 | 227 | .PHONY: clean
INCLUDE = ../include
CXX = g++
FILTER = *
SOURCES = $(wildcard $(FILTER).cpp)
EXECS = $(notdir $(SOURCES:.cpp=))
FLAGS = -I $(INCLUDE) -std=c++14 -O3 -Wall
.PHONY: all clean
all: $(EXECS)
clean:
find -type f -not -name "*.cpp" -not -name "*.h" -not -name "Makefile" -not -name "runall... | 8,895 |
https://github.com/ghayth82/mltb/blob/master/mltb/shap.py | Github Open Source | Open Source | BSD-2-Clause | 2,020 | mltb | ghayth82 | Python | Code | 96 | 256 | """Shap tools."""
import shap
import numpy as np
def tree_feature_importance(model, x):
"""Calculate feature importance for tree models based on SHAP values.
Parameters
----------
model : model object
The tree based machine learning model that we want to explain. XGBoost, LightGBM, CatBoost,... | 52,658 |
https://github.com/rydockman/YouPick/blob/master/node_modules/@iconify/icons-mdi/src/heart-settings.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | YouPick | rydockman | JavaScript | Code | 47 | 195 | let data = {
"body": "<path d=\"M15 22h2v2h-2v-2m-4 2h2v-2h-2v2m-4 0h2v-2H7v2m9.5-21c-1.74 0-3.41.81-4.5 2.08C10.91 3.81 9.24 3 7.5 3C4.42 3 2 5.41 2 8.5c0 3.77 3.4 6.86 8.55 11.53L12 21.35l1.45-1.32C18.6 15.36 22 12.27 22 8.5C22 5.41 19.58 3 16.5 3z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
export de... | 11,273 |
https://github.com/fkorotkov/buck/blob/master/tools/ideabuck/src/com/facebook/buck/intellij/ideabuck/format/DependenciesOptimizer.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | buck | fkorotkov | Java | Code | 840 | 2,457 | /*
* Copyright 2015-present Facebook, 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... | 13,304 |
https://github.com/aliyun/alibabacloud-csharp-sdk/blob/master/cbn-20170912/core/Models/CreateTransitRouterPeerAttachmentRequest.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-csharp-sdk | aliyun | C# | Code | 809 | 1,782 | // This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.Cbn20170912.Models
{
public class CreateTransitRouterPeerAttachmentRequest : TeaModel {
/// <summary>
/// Specifies whether to enable the l... | 44,481 |
https://github.com/ralexrivero/BASH_f/blob/master/009-for_loop.sh | Github Open Source | Open Source | Apache-2.0 | null | BASH_f | ralexrivero | Shell | Code | 22 | 48 | #!/usr/bin/env bash
# for loop
NAMES=$@
for NAME in $NAMES
do
echo "Hello $NAME"
done
echo "For loop finished successfully"
exit 0
| 31,963 |
https://github.com/tommybee/teeworlds/blob/master/bam-0.4.0/src/session.h | Github Open Source | Open Source | Zlib | null | teeworlds | tommybee | C | Code | 66 | 144 | /* session - holds all the settings for this bam session */
struct SESSION
{
const char *exe;
const char *name;
int threads;
int verbose;
int simpleoutput;
unsigned int cache_hash;
int lua_backtrace;
int lua_locals;
int report_color;
int report_bar;
int report_steps;
volatile int abort; /* raised to ... | 30,654 |
https://github.com/iangitongaig/deepnet/blob/master/deepnet/nn/layers/__init__.py | Github Open Source | Open Source | MIT | null | deepnet | iangitongaig | Python | Code | 36 | 86 | from .conv import ConvolutionLayer
from .data_norm import InputNormLayer
from .dropout import Dropout
from .fcl import FullyConnectedLayer
from .flatten import FlattenLayer
from .input import InputLayer
from .pool import MaxPoolLayer
from .relu import ReluLayer
from .softmax_crossentropy import SoftmaxCrossEntropyLayer... | 24,651 |
https://github.com/jbwatkins/elmer/blob/master/src/Elmer/Html/Element/Internal.elm | Github Open Source | Open Source | MIT | 2,020 | elmer | jbwatkins | null | Spoken | 352 | 749 | module Elmer.Html.Element.Internal exposing
( tag
, elementId
, classList
, allAttrs
, attributes
, attribute
, properties
, property
, styles
, hasProperty
, isCheckbox
, isSubmitButton
, isSubmitInput
, texts
, childElements
)
import Json.Decode as Json
import Elmer.Html.Types exposin... | 7,440 |
https://github.com/bhupinder177/bnbtoronto/blob/master/resources/views/listing/location.blade.php | Github Open Source | Open Source | MIT | null | bnbtoronto | bhupinder177 | PHP | Code | 536 | 2,778 | @extends('template')
@section('main')
<div class="margin-top-85">
<div class="row m-0">
@include('users.sidebar')
<div class="col-md-10">
<div class="main-panel min-height mt-4">
<div class="row justify-content-center">
<div class="col-md-3 pl-4 pr-4">
@include('listing.sidebar')
</div>
... | 14,250 |
https://github.com/ponelat/fusion/blob/master/app/assets/javascripts/components/layer_selection.jsx | Github Open Source | Open Source | MIT | 2,017 | fusion | ponelat | null | Spoken | 44 | 157 | // export var LayerSelection = React.createClass({
var LayerSelection = React.createClass({
handleChange: function() {
this.props.onSelectLayer(this.refs.selectedLayer.value);
},
render: function() {
var options = this.props.layers.map(function (layer, i) {
return (
<option value={i} key={i... | 7,585 |
https://github.com/NETponents/code.me/blob/master/views/accountLoginInfo.slim | Github Open Source | Open Source | MIT | 2,015 | code.me | NETponents | null | Spoken | 117 | 244 | div class="row"
div class="col-sm-12"
h1 Login instructions
h4 If you have logged in before, click "log in" to continue.
hr
p If you are logging in for the first time, please follow these steps:
ul
li - If you do not already have a GitHub account, please create one at <a href="http://github.... | 35,534 |
https://github.com/HouChenggong/blog-md/blob/master/leetcode/src/main/java/org/xiyou/leetcode/xx/TemplateChild.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | blog-md | HouChenggong | Java | Code | 51 | 211 | package org.xiyou.leetcode.xx;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* Description
* <p>
* </p>
* DATE 2020/12/2.
*
* @author houchenggong.
* AC自动机中每个词的类型和下一个词的类型
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TemplateC... | 31,257 |
https://github.com/TeaInside/tea-inside-bot-s6.2/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | tea-inside-bot-s6.2 | TeaInside | Ignore List | Code | 12 | 53 | *.o
*.so
*.swo
*.swp
*.tmp
*.lock
/testdir
/build/
/.phpintel/
/config.php
/backup.sql
/public/adminer.php | 52,825 |
https://github.com/meongithub2017/coin-bot-Dotnet/blob/master/CoinBot/CoinBot.Business/BotEntities/BollingerBand.cs | Github Open Source | Open Source | MIT | 2,021 | coin-bot-Dotnet | meongithub2017 | C# | Code | 36 | 84 | using System;
using System.Collections.Generic;
using System.Text;
namespace CoinBot.Business.Entities
{
public class BollingerBand
{
public decimal topBand { get; set; }
public decimal movingAvg { get; set; }
public decimal bottomBand { get; set; }
}
}
| 39,796 |
https://github.com/tomtclai/learning/blob/master/sui-materials-editions-3.0/12-accessibility/projects/final/Kuchi/Shared/Practice/ChallengesViewModel.swift | Github Open Source | Open Source | Apache-2.0 | 2,023 | learning | tomtclai | Swift | Code | 688 | 1,546 | /// Copyright (c) 2020 Razeware LLC
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, modify, merge, pub... | 53,874 |
https://github.com/SMYALTAMASH/sunbird-learning-platform/blob/master/platform-modules/content-manager/src/main/java/org/sunbird/content/mimetype/mgr/package-info.java | Github Open Source | Open Source | MIT | null | sunbird-learning-platform | SMYALTAMASH | Java | Code | 2 | 17 | package org.sunbird.content.mimetype.mgr; | 46,888 |
https://github.com/eldercs/Diplom/blob/master/src/css/button.less | Github Open Source | Open Source | MIT | null | Diplom | eldercs | Less | Code | 51 | 211 |
.red__button{
cursor: pointer;
background-color:@red;
padding:14px 22px 12px;
color:white;
border:none;
font-size:16px;
border-radius: 3px;
}
.red__button:hover{
background: darken(#cc201a, 1.5%);
//background: darken(rgb(224, 34, 34), 1.5%);
/* border: 1px solid rgba(#000, .05); */
... | 46,986 |
https://github.com/RazPopov/odata.net/blob/master/test/EndToEndTests/Services/ODataWCFLibrary/DataSource/InMemoryCLRTypes.cs | Github Open Source | Open Source | MIT | 2,015 | odata.net | RazPopov | C# | Code | 299 | 841 | //---------------------------------------------------------------------
// <copyright file="InMemoryCLRTypes.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//----------------------------------------... | 20,508 |
https://github.com/MochalovaAn/llvm/blob/master/llvm/test/Transforms/SPIRITTAnnotations/itt_atomic_store.ll | Github Open Source | Open Source | Apache-2.0 | null | llvm | MochalovaAn | LLVM | Code | 903 | 4,891 | ;; The test serves a purpose to check if Atomic store instruction is being
;; annotated by SPIRITTAnnotations pass
;;
;; Compiled from https://github.com/intel/llvm-test-suite/blob/intel/SYCL/AtomicRef/load.cpp
;; with following commands:
;; clang++ -fsycl -fsycl-device-only load.cpp -o load.bc
; RUN: opt < %s --SPIRI... | 39,986 |
https://github.com/razvr/AgentMains-Bot/blob/master/src/plugins/autoban/config/enable.js | Github Open Source | Open Source | MIT | null | AgentMains-Bot | razvr | JavaScript | Code | 82 | 240 | const {RuleNotFoundError} = require("../errors");
module.exports = {
name: 'enable',
description: 'Enables an auto ban rule',
args: [
{
name: 'rule',
description: `the rule to enable or disable`,
required: true,
},
],
async run(context) {
let autoBanService = this.chaos.getSer... | 48,221 |
https://github.com/theapache64/pewdiepie-vs-tseries/blob/master/src/com/theah64/pdpts/responses/GetDataResponse.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | pewdiepie-vs-tseries | theapache64 | Java | Code | 99 | 316 | package com.theah64.pdpts.responses;
import com.google.gson.annotations.SerializedName;
/**
* Generated using MockAPI (https://github.com/theapache64/Mock-API) : Sun Dec 09 17:59:41 UTC 2018
*/
public class GetDataResponse {
@SerializedName("t_series")
private final String tSeries;
@SerializedName("p... | 49,794 |
https://github.com/mischcon/Clustering/blob/master/scripts/jar_uploader.py | Github Open Source | Open Source | Apache-2.0 | null | Clustering | mischcon | Python | Code | 27 | 132 | #!/usr/bin/env python3
import requests
import sys
if(len(sys.argv) < 3):
print('usage: jar_uploader.py IP_OF_CLUSTER PATH_TO_JAR')
exit(1)
data = open(sys.argv[2], 'rb').read()
res = requests.post(url='http://%s:8080/api/upload' % sys.argv[1], data=data, headers={'Content-Type': 'application/octet-stream'})
p... | 38,702 |
https://github.com/manishkumar1601/haruno/blob/master/plugins/toko.js | Github Open Source | Open Source | MIT | 2,021 | haruno | manishkumar1601 | JavaScript | Code | 71 | 250 | let fetch = require('node-fetch')
const fs = require('fs')
let handler = async(m, { conn, usedPrefix, command }) => {
let toko = JSON.parse(fs.readFileSync(`./src/toko.json`))
let json = toko[Math.floor(Math.random() * toko.length)]
let caption = `
*NAMA PRODUK*: ${json.name}
*DESKRIPSI*: ${json.desc}
*PE... | 46,038 |
https://github.com/srdjanfurman/Python_code_snippets/blob/master/seven_segment_display/.gitignore | Github Open Source | Open Source | MIT | 2,023 | Python_code_snippets | srdjanfurman | Ignore List | Code | 10 | 53 | .idea/
__pycache__/
venv/
*.pyc
.coverage
polygon.py
SevenSegDisplay.egg-info
build
dist
seven_segment_display.egg-info
| 53,572 |
https://github.com/mariodavid/cuba-component-loggable/blob/master/modules/web/src/de/diedavids/cuba/loggable/web/WithLogEntriesSupportExecutionBean.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | cuba-component-loggable | mariodavid | Java | Code | 52 | 337 | package de.diedavids.cuba.loggable.web;
import com.haulmont.cuba.core.global.Messages;
import com.haulmont.cuba.gui.ScreenBuilders;
import com.haulmont.cuba.gui.components.ListComponent;
import com.haulmont.cuba.gui.screen.FrameOwner;
import com.haulmont.cuba.gui.screen.OpenMode;
import de.diedavids.cuba.loggable.serv... | 42,840 |
https://github.com/chenjiji/vuepress/blob/master/packages/@vuepress/core/lib/plugin-api/util.js | Github Open Source | Open Source | MIT | 2,019 | vuepress | chenjiji | JavaScript | Code | 274 | 680 | 'use strict'
/**
* Module dependencies.
*/
const { logger, chalk, datatypes: { assertTypes }} = require('@vuepress/shared-utils')
/**
* flatten your plugin config by passing in name, options and context.
*
* @param {function|object} module
* @param {string} name
* @param {string} hortcut
* @param {object} pl... | 17,829 |
https://github.com/tedyhy/SCI/blob/master/kissy-1.4.9/src/base/coverage/runner/test.jss | Github Open Source | Open Source | MIT | 2,017 | SCI | tedyhy | JavaScript | Code | 15 | 65 | module.exports = function (req, res, utils) {
res.send(utils.render('coverage', {
component: 'base',
jss: '/kissy/src/base/tests/runner/test.jss'
}));
}; | 17,152 |
https://github.com/ScalablyTyped/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/clientsIoteventsMod/OnExitLifecycle.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 98 | 308 | package typings.awsSdk.clientsIoteventsMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait OnExitLifecycle extends StObject {
/**
* Specifies the actions that are performed when the state i... | 21,768 |
https://github.com/duanduan2288/vr/blob/master/views/role/setting.php | Github Open Source | Open Source | BSD-3-Clause | null | vr | duanduan2288 | PHP | Code | 317 | 1,382 | <style>
.col-md-3 {width: auto;}
.col-md-9 .checkbox-list .checkbox-inline{margin-left: 0;padding-left: 0}
</style>
<div class="row">
<div class="col-md-12">
<div class="portlet">
<div class="portlet-title">
<div class="caption cap-head">
<i class="icon icon-c... | 25,491 |
https://github.com/AospExtended/platform_frameworks_av/blob/master/media/libeffects/lvm/lib/Common/src/BP_1I_D16F32Cll_TRC_WRA_01_Init.cpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unicode | 2,021 | platform_frameworks_av | AospExtended | C++ | Code | 357 | 820 | /*
* Copyright (C) 2004-2010 NXP Software
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/... | 23,721 |
https://github.com/emkk/text2dna/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,021 | text2dna | emkk | Makefile | Code | 64 | 172 | SRCS = srcs/*.c
OBJECTS = *.o
# Builds both services
all: encode decode
# Builds the encoder
encode:
gcc -Wall -Wextra -Werror -I./includes -c $(SRCS)
gcc $(OBJECTS) -o encode
# Builds the decoder (WIP)
decode:
gcc -Wall -Wextra -Werror -I./includes -c $(SRCS)
gcc $(OBJECTS) -o decode
# Utilities
clean:
rm -... | 39,799 |
https://github.com/nickjazz/radi/blob/master/dist/radi.js | Github Open Source | Open Source | MIT | 2,018 | radi | nickjazz | JavaScript | Code | 5,000 | 14,618 | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { 'use strict';
var GLOBALS = {
HEADLESS_COMPONENTS: {},
FROZEN_STATE: false,
VERSION: '0.3.23',
... | 50,783 |
https://github.com/maikschneider/deployer-extended-media/blob/master/src/Utility/ConsoleUtility.php | Github Open Source | Open Source | MIT | null | deployer-extended-media | maikschneider | PHP | Code | 251 | 808 | <?php
namespace SourceBroker\DeployerExtendedMedia\Utility;
use Symfony\Component\Console\Output\OutputInterface;
use function Deployer\input;
use function Deployer\output;
/**
* Class ConsoleUtility
*
* @package SourceBroker\DeployerExtendedMedia\Utility
*/
class ConsoleUtility
{
/**
* Returns OutputI... | 25,992 |
https://github.com/andrewprovis/studious-memory/blob/master/easy/lowercase/lowercase.rb | Github Open Source | Open Source | Unlicense | 2,016 | studious-memory | andrewprovis | Ruby | Code | 28 | 75 | =begin
Sample code to read in test cases:
File.open(ARGV[0]).each_line do |line|
# Do something with line, ignore empty lines
#...
end
=end
File.open(ARGV[0]).each_line do |line|
puts line.downcase
end
| 21,486 |
https://github.com/gpertea/gscripts/blob/master/gff2tab.pl | Github Open Source | Open Source | Unlicense | 2,023 | gscripts | gpertea | Perl | Code | 904 | 3,486 | #!/usr/bin/perl
use strict;
use Getopt::Std;
use FindBin;use lib $FindBin::Bin;
my $usage = q/Usage:
gff2tab.pl [-T|-I|-C|-E] [-m <minlen>] [-K] <gff_data_stream..>
Extract feature coordinates from given GFF data stream.
Output has this tab delimited fomat:
<chr> <feature> <start> <end> <strand> <transcript_info... | 53,082 |
https://github.com/andresmgot/dispatch/blob/master/pkg/entity-store/store_test.go | Github Open Source | Open Source | Apache-2.0 | null | dispatch | andresmgot | Go | Code | 1,237 | 4,890 | ///////////////////////////////////////////////////////////////////////
// Copyright (c) 2017 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
///////////////////////////////////////////////////////////////////////
package entitystore
import (
"fmt"
"io/ioutil"
"os"
"reflect"
"testing"
"... | 31,505 |
https://github.com/ozthekoder/map_editor/blob/master/app/js/modules/CreateUser.js | Github Open Source | Open Source | MIT | 2,017 | map_editor | ozthekoder | JavaScript | Code | 203 | 884 | const React = require('react');
const $ = require('jquery');
var CreateUser = React.createClass({
getInitialState: function(){
return {
userNameValid: false,
labelCls: "label error",
labelText: "no good!",
gameCount: null,
userCount: null
}
},
componentDidMount: function () {
let handler = this... | 5,639 |
https://github.com/anki/avs-device-sdk/blob/master/ESP/include/ESP/ESPDataModifierInterface.h | Github Open Source | Open Source | LicenseRef-scancode-pml-2020, Apache-2.0 | 2,019 | avs-device-sdk | anki | C++ | Code | 195 | 470 | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "licen... | 27,954 |
https://github.com/vlang/v/blob/master/vlib/v/tests/match_expr_with_last_branch_aggregate_test.v | Github Open Source | Open Source | MIT | 2,023 | v | vlang | null | Spoken | 93 | 257 | type MyT = f32 | f64 | i64 | int | rune | string | u32 | u64
type FnMyT = fn (MyT)
fn (any []MyT) each(fun FnMyT) {
for x in any {
fun(x)
}
}
fn (myt MyT) to_s() string {
return match myt {
string { myt }
rune { rune(myt).str() }
int, u32, i64, u64, f32, f64 { myt.str() } // FAIL compilation
}
}
fn test_... | 35,850 |
https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/app/assets/javascripts/actions/campaign_actions.js | Github Open Source | Open Source | MIT | 2,023 | WikiEduDashboard | WikiEducationFoundation | JavaScript | Code | 412 | 1,195 | import { RECEIVE_COURSE_CAMPAIGNS, SORT_CAMPAIGNS_WITH_STATS, DELETE_CAMPAIGN, API_FAIL, RECEIVE_ALL_CAMPAIGNS, ADD_CAMPAIGN, RECEIVE_CAMPAIGNS_WITH_STATS } from '../constants';
import logErrorMessage from '../utils/log_error_message';
import request from '../utils/request';
const fetchCampaignsPromise = async (course... | 26,501 |
https://github.com/mbendandour/immersive/blob/master/resources/views/emails/account_deletion.blade.php | Github Open Source | Open Source | MIT | null | immersive | mbendandour | PHP | Code | 25 | 45 | Hey there {{$yourName->name}},
Your account has been marked for deletion. If you believe you received this message in error, please
contact an administrator
Thanks,
M'benda
| 22,135 |
https://github.com/Tomekske/Picturebot-v2-depricated/blob/master/e2e/steps/common_steps.py | Github Open Source | Open Source | MIT | 2,021 | Picturebot-v2-depricated | Tomekske | Python | Code | 160 | 576 | from e2e.api.components.menu_component import Menu
from e2e.api.components.snackbar_component import Snackbar
from behave import *
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import T... | 52,100 |
https://github.com/PWN-Hunter/mesa3d/blob/master/src/mesa/state_tracker/st_gen_mipmap.c | Github Open Source | Open Source | MIT | null | mesa3d | PWN-Hunter | C | Code | 569 | 1,521 | /**************************************************************************
*
* Copyright 2008 VMware, Inc.
* All Rights Reserved.
*
* 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 w... | 46,960 |
https://github.com/hoanghai31299/CDIO4-ECOMMERCE-RADIUS/blob/master/Server/controllers/auth.controller.js | Github Open Source | Open Source | MIT | 2,021 | CDIO4-ECOMMERCE-RADIUS | hoanghai31299 | JavaScript | Code | 808 | 2,456 | const express = require("express");
const User = require("../models/user.model");
const jwt = require("jsonwebtoken");
const bcrypt = require("bcrypt");
const {
sendMail,
verifyEmailTemplate,
forgotPasswordTemplate,
} = require("../helpers/verifyEmail");
exports.signup = async (req, res, next) => {
try {
c... | 41,786 |
https://github.com/leanbs/php2/blob/master/public/assets/js/map-create-script.js | Github Open Source | Open Source | MIT | null | php2 | leanbs | JavaScript | Code | 49 | 250 | (function(window, google, $) {
//var for laravel
var latField = $('input#lat'),
lngField = $('input#lng');
var $maperizer = $('#map-canvas').maperizer(Maperizer.MAP_OPTIONS_GEOLOCATION);
$maperizer.maperizer('attachEventsToMap', [{
name: 'click',
callback: function(eve... | 50,203 |
https://github.com/Logicalshift/Reason/blob/master/LogicalShift.Reason/Solvers/BasicQueryResult.cs | Github Open Source | Open Source | Apache-2.0 | null | Reason | Logicalshift | C# | Code | 109 | 275 | using LogicalShift.Reason.Api;
using System;
using System.Threading.Tasks;
namespace LogicalShift.Reason.Solvers
{
/// <summary>
/// Represents a simple succeeded/failed query result
/// </summary>
public class BasicQueryResult : IQueryResult
{
/// <summary>
/// True if the query w... | 47,254 |
https://github.com/hwaterke/react-redux-crud/blob/master/src/providers/ResourceListProvider.js | Github Open Source | Open Source | MIT | null | react-redux-crud | hwaterke | JavaScript | Code | 246 | 807 | /* eslint-disable react/no-unused-prop-types */
import PropTypes from 'prop-types'
import React from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import {select} from '../selectors/select'
const mapStateToProps = (state, ownProps) => ({
entities: select(ownProps.resource).asAr... | 4,954 |
https://github.com/xiaonuonuo/blog/blob/master/FE/Prototype/Demo.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | blog | xiaonuonuo | JavaScript | Code | 63 | 178 | /**
* Created by cc on 17/8/16.
*/
/* class extends*/
function Parent(name,age){
this.name = name
this.age = age
this.say = function(name,age){
console.log(name+' 1 '+age)
}
}
Parent.prototype = {
speakSometing:function(){
console.log("I can speek chinese");
}
}
function C... | 39,856 |
https://github.com/melexis-fir/mlx90641-driver-mcp2221-py/blob/master/mcp2221/__init__.py | Github Open Source | Open Source | Apache-2.0 | null | mlx90641-driver-mcp2221-py | melexis-fir | Python | Code | 8 | 33 | from .mcp2221 import load_driver
load_driver()
__version__ = "1.2.0"
| 27,301 |
https://github.com/glqstrauss/oopsgenie/blob/master/clean.py | Github Open Source | Open Source | MIT | 2,020 | oopsgenie | glqstrauss | Python | Code | 101 | 347 | import csv
from utils import get_valid_colum_indices
class Cleaner():
def clean(file, clean_columns, remove):
print ("Cleaning {}".format(file))
print ("For columns {}".format(clean_columns))
new_file = file[0:-7] + "clean.csv"
with open(file, 'r') as raw_file:
reader... | 29,755 |
https://github.com/anuraghazra/Electron_experiments/blob/master/VerletDrawing_app(outdated)/src/js/verlet.js | Github Open Source | Open Source | MIT | null | Electron_experiments | anuraghazra | JavaScript | Code | 4,038 | 13,500 | /*Verlet*/
"use strict";
function Verlet() {
/* ===== _PRIVATE FUNCTIONS ===== */
/*Private Functions Will Start With _name*/
/*
* Compute Distance Between Two Object
* @PRIVATE_method _distance()
* @param {object} p0
* @param {object} p1
* @return {number} distance
*/
this._distance = function _distan... | 20,126 |
https://github.com/mengtest/home3/blob/master/core/clientLaya/game/src/commonGame/constlist/generate/LoginHttpResponseResultType.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | home3 | mengtest | TypeScript | Code | 35 | 120 | namespace Shine
{
/** (generated by shine) */
export class LoginHttpResponseResultType
{
/** 起始 */
public static off:number=3300;
/** 计数 */
public static count:number=3304;
public static ClientGetVersion:number=3300;
public static ClientLogin:number=3301;
public static ClientLoginSelect:num... | 56,200 |
https://github.com/mewbak/co/blob/master/src/pathmap.ts | Github Open Source | Open Source | MIT | 2,022 | co | mewbak | TypeScript | Code | 663 | 2,345 |
// PathMap is a map-like container which can map
// lists of values (i.e. "paths") of any type.
// It's implemented as a trie.
//
export class PathMap<K,V> {
readonly size :int = 0
_root :PathMapNode<K,V>|null = null
get(keys :Iterable<K>) :V|undefined {
let n :PathMapNode<K,V>|null|undefined = this._root
... | 17,541 |
https://github.com/atteo/classindex/blob/master/classindex-osgi-tests/pom.xml | Github Open Source | Open Source | Apache-2.0 | 2,022 | classindex | atteo | null | Spoken | 124 | 1,225 | <?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.atteo.classindex</... | 53,668 |
https://github.com/clkbit123/TheOpenHarmony/blob/master/Openharmony v1.0/third_party/ltp/lib/newlib_tests/test16.c | Github Open Source | Open Source | MIT | 2,022 | TheOpenHarmony | clkbit123 | C | Code | 345 | 994 | // SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2017 Richard Palethorpe <rpalethorpe@suse.com>
*/
/* Basic functionality test for tst_fuzzy_sync.h similar to the atomic tests
* (test15.c). One thread writes to the odd indexes of an array while the
* other writes to the even. If the threads are not s... | 52,638 |
https://github.com/thermasol/mesa3d/blob/master/src/compiler/glsl/glcpp/tests/142-defined-within-macro.c | Github Open Source | Open Source | MIT | 2,022 | mesa3d | thermasol | C | Code | 211 | 484 | /* Macro using defined with a hard-coded identifier (no parentheses) */
#define is_foo_defined defined /*...*/ foo
#undef foo
#if is_foo_defined
failure
#else
success
#endif
#define foo
#if is_foo_defined
success
#else
failure
#endif
/* Macro using defined with a hard-coded identifier within parentheses */
#define is_... | 66 |
https://github.com/cloudconductor-patterns/tomcat_cluster_pattern/blob/master/site-cookbooks/pgpool-II_part/libraries/helpers.rb | Github Open Source | Open Source | Apache-2.0 | 2,016 | tomcat_cluster_pattern | cloudconductor-patterns | Ruby | Code | 166 | 653 | #
# Cookbook Name:: pgpool-II_part
# Library:: helpers
#
#
require 'timeout'
require 'mixlib/shellout'
class Pgpool2Part
module Helpers
def servers(role)
node['cloudconductor']['servers'].select { |_name, server| server['roles'].include?(role) }
end
def conf(key)
node['pgpool_part'][key]
... | 8,693 |
https://github.com/18225846106/teamwork/blob/master/src/main/java/cn/edu/ahut/teamwork/dao/StudentMapper.java | Github Open Source | Open Source | Apache-2.0 | null | teamwork | 18225846106 | Java | Code | 73 | 349 | package cn.edu.ahut.teamwork.dao;
import cn.edu.ahut.teamwork.entity.Student;
import cn.edu.ahut.teamwork.entity.StudentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StudentMapper {
//增加学生
int insertStudent(Student student);
//根据id删除学生
int deleteStudentById(@Para... | 29,466 |
https://github.com/Gitpeabody/EContract/blob/master/android/app/src/main/java/com/example/android/RegisterActivity.java | Github Open Source | Open Source | MIT | 2,022 | EContract | Gitpeabody | Java | Code | 603 | 3,265 | package com.example.android;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
impo... | 23,164 |
https://github.com/programmer2514/SnowRealMagic/blob/master/src/main/java/snownee/snow/block/SnowTile.java | Github Open Source | Open Source | MIT | null | SnowRealMagic | programmer2514 | Java | Code | 394 | 1,402 | package snownee.snow.block;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.NBTUtil;
import net.minecraft.tileentity.TileEntityType;
import net.minecraft.util.ResourceLocation;
import net.minecraf... | 6,886 |
https://github.com/uk-gov-mirror/dvsa.olcs-common/blob/master/test/Common/src/Common/Service/Table/Formatter/DocumentDescriptionTest.php | Github Open Source | Open Source | MIT | 2,021 | dvsa.olcs-common | uk-gov-mirror | PHP | Code | 267 | 1,075 | <?php
namespace CommonTest\Service\Table\Formatter;
use Mockery\Adapter\Phpunit\MockeryTestCase;
use Mockery as m;
use Common\Service\Table\Formatter\DocumentDescription;
/**
* Document Description Formatter Test
*
* @author Rob Caiger <rob@clocal.co.uk>
*/
class DocumentDescriptionTest extends MockeryTestCase
{... | 27,307 |
https://github.com/wudongqiji/sheepProject/blob/master/office-bulletin-web/src/containers/display/Display.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | sheepProject | wudongqiji | JavaScript | Code | 571 | 2,027 | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Animated } from "react-animated-css";
import { Icon, Card, Table, Row, Col } from 'antd';
import 'moment-timezone';
import HeaderContent from '../common/headercontent/HeaderContent';
i... | 26,902 |
https://github.com/tencentyun/serverless-demo/blob/master/Nodejs12.16-COSAnalyzeInventory/src/node_modules/tencentcloud-sdk-nodejs/tencentcloud/cfg/v20210820/cfg_client.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | serverless-demo | tencentyun | JavaScript | Code | 572 | 1,760 | /*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 6,402 |
https://github.com/stepankuzmin/grcov/blob/master/src/coverage.ts | Github Open Source | Open Source | MIT | 2,020 | grcov | stepankuzmin | TypeScript | Code | 310 | 822 | const os = require('os');
const fs = require('fs');
const fsPromises = require('fs').promises;
const path = require('path');
const archiver = require('archiver');
const glob = require('fast-glob');
const toml = require('@iarna/toml');
import * as core from '@actions/core';
/**
* Find all crate names for this one pr... | 1,318 |
https://github.com/Emberwalker/ProjectAide/blob/master/src/main/scala/io/drakon/aide/tile/TileGenerator.scala | Github Open Source | Open Source | MIT | 2,014 | ProjectAide | Emberwalker | Scala | Code | 519 | 1,845 | package io.drakon.aide.tile
import scala.collection.mutable
import scala.concurrent._
import scala.concurrent.ExecutionContext.Implicits.global
import scala.util.Random
import java.util
import org.apache.logging.log4j.LogManager
import net.minecraft.block.{BlockSapling, IGrowable}
import net.minecraft.init.Blocks
im... | 35,166 |
https://github.com/Sondro/triad/blob/master/dev/com/ludamix/triad/audio/SFZCompressor.hx | Github Open Source | Open Source | MIT | 2,013 | triad | Sondro | Haxe | Code | 311 | 1,047 | package com.ludamix.triad.audio;
import sys.FileSystem;
import sys.io.File;
import sys.io.FileOutput;
/**
* This utility class allows the compression of the SFZ directory
* into one binary
*
* NOTE: Compile triad with the neko target and run this class.
*/
class SFZCompressor
{
public static function compr... | 11,054 |
https://github.com/dmarino/notMissileCommand/blob/master/Game/Public/Target.h | Github Open Source | Open Source | MIT | null | notMissileCommand | dmarino | C | Code | 48 | 139 | #pragma once
#include "Game/Public/GameObject.h"
class exEngineInterface;
//class parent of all the objects that are going to be render
class Target: public GameObject{
public:
Target(exEngineInterface* pEngine);
~Target();
//radius methods
void setHitRadius(float radius);
float giveRadius();
//hitting me... | 43,368 |
https://github.com/18201181477/yang/blob/master/app/Models/Jilu.php | Github Open Source | Open Source | MIT | 2,017 | yang | 18201181477 | PHP | Code | 40 | 168 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Title;
class Jilu extends Model
{
public $timestamps = false;
static public function hasNo($ip,$tid)
{
$res = self::where(['ip'=>$ip,'tid'=>$tid])->first();
// var_dump($res);
if ($res) {
return false;... | 17,673 |
https://github.com/cooljeanius/DragonFlyBSD/blob/master/contrib/gcc-4.7/gcc/cp/decl2.c | Github Open Source | Open Source | BSD-3-Clause | 2,015 | DragonFlyBSD | cooljeanius | C | Code | 17,025 | 46,305 | /* Process declarations and variables for C++ compiler.
Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010,
2011 Free Software Foundation, Inc.
Hacked by Michael Tiemann (tiemann@cygnus.com)
This file is part of GCC.
GCC is free s... | 48,946 |
https://github.com/samarthmaniar/node-measured/blob/master/packages/measured-node-metrics/test/unit/TestReporter.js | Github Open Source | Open Source | MIT | 2,020 | node-measured | samarthmaniar | JavaScript | Code | 36 | 117 | const { Reporter } = require('measured-reporting');
/**
* @extends Reporter
*/
class TestReporter extends Reporter {
constructor(options) {
super(options);
this._reportedMetrics = [];
}
getReportedMetrics() {
return this._reportedMetrics;
}
_reportMetrics(metrics) {
this._reportedMetrics... | 53,662 |
https://github.com/samuelfer/lara-stock/blob/master/app/TipoUnidade.php | Github Open Source | Open Source | MIT | 2,018 | lara-stock | samuelfer | PHP | Code | 30 | 105 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TipoUnidade extends Model
{
protected $table = 'tipo_unidade';
protected $fillable = [
'nome'
];
public function produto()
{
return $this->belongsTo(TipoUnidade::class, 'tipo_unidade_id', 'id');
}
}
| 43,979 |
https://github.com/nicolae-lupei/GEAR/blob/master/src/GR.Extensions/GR.Identity.Extension/GR.Identity/Filters/ModelValidationFilter.cs | Github Open Source | Open Source | MIT | 2,020 | GEAR | nicolae-lupei | C# | Code | 143 | 454 | using GR.Core.Helpers;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Newtonsoft.Json;
using System.Linq;
using System.Net;
namespace GR.Identity.Filters
{
/// <inheritdoc />
/// <summary>
/// Filter of <see cref="T:Microsoft.AspNetCore.Mvc.Filters.IActionFilter" /> type... | 21,442 |
https://github.com/luite/jsaddle-dom/blob/master/src/JSDOM/Generated/Worker.hs | Github Open Source | Open Source | MIT | 2,021 | jsaddle-dom | luite | Haskell | Code | 213 | 693 | {-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.Worker
(newWorker, terminate, postMessage, message, Worker(..),
gTypeWorker)
where
import Prelude ... | 15,474 |
https://github.com/VincentWeichen/Repository/blob/master/VaultMan/WebContent/Scripts/ControlTime.js | Github Open Source | Open Source | MIT | 2,015 | Repository | VincentWeichen | JavaScript | Code | 1,370 | 6,419 | var dropdownButton = new DropdownButton();
$(document).ready(function(){
InitMultiple();
//alert("a");
//alert(dropdownButton);
dropdownButton.Init();
//alert("b");
/*
$("#dataList .edit").each(function(i, object) {
var wTop = ($(window).height() - 370) / 2;
var wLeft = ($(window).width() - 760) / 2;
$(... | 36,027 |
https://github.com/tineo/clinicapsicologica/blob/master/src/main/java/service/ObservacionServiceImpl.java | Github Open Source | Open Source | MIT | null | clinicapsicologica | tineo | Java | Code | 91 | 262 | package service;
import dao.FactoryDAO;
import dao.ObservacionDAO;
import entity.Observacion;
public class ObservacionServiceImpl implements ObservacionService {
FactoryDAO factory = FactoryDAO.getFactory(FactoryDAO.MYSQL_FACTORY);
ObservacionDAO observacionDAO = factory.getObservacionDAO();
public Obje... | 39,926 |
https://github.com/frenkelor/material-ui/blob/master/packages/material-ui-icons/src/PermIdentityOutlined.js | Github Open Source | Open Source | MIT | 2,018 | material-ui | frenkelor | JavaScript | Code | 48 | 215 | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 9c2.7 0 5.8 1.29 6 2v1H6v-.99c.2-.72 3.3-2.01 6-2.01m0-11C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v... | 46,216 |
https://github.com/bchandle/cogexmachina/blob/master/src/main/scala/toolkit/filtering/steerablepyramid/SteerablePyramid.scala | Github Open Source | Open Source | Apache-2.0 | null | cogexmachina | bchandle | Scala | Code | 290 | 695 | /*
* (c) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* 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 requir... | 44,741 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.