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/neeyongliang/backup/blob/master/scripts/build-python-dev.sh | Github Open Source | Open Source | MIT | null | backup | neeyongliang | Shell | Code | 81 | 177 | #!/bin/sh
# Program:
# Run this shell script to get Python develop environment.
# History:
# 2019/01/30 yongliang First release
echo " Now, install python develop environment..."
echo "udate source list..."
sudo apt update
echo "udate source list end"
echo "install packages..."
sudo apt install python3-pip python3... | 47,920 |
https://github.com/c3rebro/EventMessenger/blob/master/EventMessenger/3rdParty/Itinerary/Expl.Itinerary/Schedule/Composite/UnionSchedule.cs | Github Open Source | Open Source | MIT | 2,021 | EventMessenger | c3rebro | C# | Code | 366 | 933 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Expl.Auxiliary;
namespace Expl.Itinerary {
/// <summary>
/// Union collection of ISchedule objects.
/// </summary>
[Description("Union")]
[Serializable]
public class UnionSchedule ... | 3,904 |
https://github.com/chuanlei/hustle/blob/master/profile.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | hustle | chuanlei | Python | Code | 500 | 1,368 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 30,892 |
https://github.com/walkccc/LeetCode/blob/master/solutions/1144. Decrease Elements To Make Array Zigzag/1144.py | Github Open Source | Open Source | MIT | 2,023 | LeetCode | walkccc | Python | Code | 56 | 128 | class Solution:
def movesToMakeZigzag(self, nums: List[int]) -> int:
decreasing = [0] * 2
for i, num in enumerate(nums):
l = nums[i - 1] if i > 0 else 1001
r = nums[i + 1] if i + 1 < len(nums) else 1001
decreasing[i % 2] += max(0, num - min(l, r) + 1)
return min(decreasing[0], decreasi... | 3,964 |
https://github.com/GridProtectionAlliance/go2cs/blob/master/src/go-src-converted/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.cs | Github Open Source | Open Source | MIT, BSD-3-Clause, CC-BY-3.0 | 2,022 | go2cs | GridProtectionAlliance | C# | Code | 352 | 851 | // Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// package typeutil -- go2cs converted at 2022 March 13 06:42:44 UTC
// import "cmd/vendor/golang.org/x/tools/go/types/typeutil" ==> using typeutil = go.cmd.ven... | 41,160 |
https://github.com/egouletlang/Ethos/blob/master/EthosUI/EthosUI/Controller/Navigation/Button/ImageNavigationBarItem.swift | Github Open Source | Open Source | MIT | null | Ethos | egouletlang | Swift | Code | 166 | 462 | //
// ImageNavigationBarItem.swift
// EthosUI
//
// Created by Etienne Goulet-Lang on 4/20/19.
// Copyright © 2019 egouletlang. All rights reserved.
//
import Foundation
import EthosImage
open class ImageNavigationBarItem: BaseNavigationBarItem {
open func with(imageUri: String?) -> ImageNavigationBarIte... | 38,249 |
https://github.com/agunghimura11/Laravel_QA/blob/master/app/Question2.php | Github Open Source | Open Source | MIT | 2,020 | Laravel_QA | agunghimura11 | PHP | Code | 12 | 36 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Question2 extends Model
{
//
}
| 1,992 |
https://github.com/Xirzag/Wasp-Swarm-Generative-Algorithm/blob/master/Code/Assets/Scripts/Generative/StructureRenderer.cs | Github Open Source | Open Source | MIT | null | Wasp-Swarm-Generative-Algorithm | Xirzag | C# | Code | 73 | 238 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StructureRenderer : MonoBehaviour
{
public GameObject brickPrefab;
List<GameObject> renderedBricks = new List<GameObject>();
public void Render(BrickStructure structure)
{
var bricks = structure.GetBr... | 2,340 |
https://github.com/tavii/SQSJobQueueBundle/blob/master/Command/WorkerStopCommand.php | Github Open Source | Open Source | MIT | 2,017 | SQSJobQueueBundle | tavii | PHP | Code | 68 | 347 | <?php
namespace Tavii\SQSJobQueueBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface... | 12,799 |
https://github.com/shang-demo/static-tools/blob/master/copy/stylie/src/model/actor.js | Github Open Source | Open Source | MIT | 2,020 | static-tools | shang-demo | JavaScript | Code | 443 | 1,957 | define([
'jquery'
,'underscore'
,'backbone'
,'src/constants'
,'src/collection/keyframes'
,'src/model/keyframe'
,'src/view/keyframe-forms'
,'src/view/crosshairs'
], function (
$
,_
,Backbone
,constant
,KeyframeCollection
,KeyframeModel
,KeyframeFormsView
,CrosshairsView
) {
// TO... | 7,677 |
https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/app/vmui/packages/vmui/src/components/Chart/GraphTips/GraphTips.tsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | VictoriaMetrics | VictoriaMetrics | TSX | Code | 120 | 419 | import React, { FC } from "preact/compat";
import "./style.scss";
import Button from "../../Main/Button/Button";
import { TipIcon } from "../../Main/Icons";
import Tooltip from "../../Main/Tooltip/Tooltip";
import Modal from "../../Main/Modal/Modal";
import useBoolean from "../../../hooks/useBoolean";
import tips from ... | 15,958 |
https://github.com/mastermnd-io/cortex/blob/master/translator/run.sh | Github Open Source | Open Source | MIT | 2,021 | cortex | mastermnd-io | Shell | Code | 15 | 51 | #!/bin/bash
rm -rf ../content/*/
mkdir ./courses
node content-builder.js && cp -r ./courses/* ../content/
rmdir ./courses
| 7,798 |
https://github.com/BoniLindsley/phile/blob/master/phile/watchdog/observers.py | Github Open Source | Open Source | MIT | null | phile | BoniLindsley | Python | Code | 599 | 2,027 | #!/usr/bin/env python3
"""
-----------------------------------------------------------------
Convenience module for using :attr:`~watchdog.observers.Observer`
-----------------------------------------------------------------
"""
# Standard library.
import asyncio
import collections.abc
import contextlib
import pathlib... | 569 |
https://github.com/OpenIoTHub/utils/blob/master/vendor/github.com/klauspost/reedsolomon/go.mod | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,022 | utils | OpenIoTHub | Go Module | Code | 7 | 43 | module github.com/klauspost/reedsolomon
go 1.14
require github.com/klauspost/cpuid/v2 v2.0.6
| 19,772 |
https://github.com/clay/amphora-fs/blob/master/lib/getComponentPackage/index.js | Github Open Source | Open Source | MIT | null | amphora-fs | clay | JavaScript | Code | 83 | 211 | 'use strict';
const _ = require('lodash'),
path = require('path');
let getComponentPath = require('../getComponentPath'),
tryRequire = require('../tryRequire');
/**
* Load a component's package
*
* Should only occur once per name!
*
* NOTE: This includes local components as well as npm components
*
* @para... | 28,402 |
https://github.com/1and1/camunda-bpm-platform/blob/master/webapps/camunda-webapp/webapp/src/main/webapp/assets/vendor/camunda-common/directives/notificationsPanel.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | camunda-bpm-platform | 1and1 | JavaScript | Code | 172 | 582 | ngDefine('camunda.common.directives.notificationsPanel', [
'angular',
'jquery',
'module:ngSanitize'
], function(module, angular, $) {
var notificationsTemplate =
'<div class="notifications">' +
' <div ng-repeat="notification in notifications" class="alert" ng-class="notificationClass(notification)">' +
' <... | 47,028 |
https://github.com/zengming00/unicorn_engine_tutorial/blob/master/1.c | Github Open Source | Open Source | MIT | 2,021 | unicorn_engine_tutorial | zengming00 | C | Code | 84 | 589 | #include <stdio.h>
#include <stdint.h>
#include "./unicorn-1.0.2-win32/include/unicorn/unicorn.h"
// 指令数据在内存中的地址,你可以放在内存地址范围内的任何一个地方,
// 但是每个CPU架构都有一些特殊的内存地址区间是有特殊作用的,
// 并且unicorn要求地址必需4k对齐,因此这里我用的是0x8000
#define ADDRESS 0x8000
int main() {
uc_engine *uc;
uint32_t r2;
// 汇编代码 指令
// mov r0,... | 21,700 |
https://github.com/bertrandg/angular2-app-demo/blob/master/src/app/components/app.ts | Github Open Source | Open Source | MIT | null | angular2-app-demo | bertrandg | TypeScript | Code | 135 | 361 | /// <reference path="../../../typings/tsd.d.ts" />
/// <reference path="../../custom_typings/ng2.d.ts" />
import {Component, View, Directive, ElementRef} from 'angular2/angular2';
// Simple example directive
@Directive({
selector: '[x-large]' // using [ ] means selecting attributes
})
class XLarge {
constructor(p... | 44,151 |
https://github.com/Laneglos/error-tracker/blob/master/tests/DjangoTest/tests/test_basic.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | error-tracker | Laneglos | Python | Code | 159 | 954 | # -*- coding: utf-8 -*-
#
# Basic test case test, this tests basic part of application
#
# :copyright: 2019 Sonu Kumar
# :license: BSD-3-Clause
#
import unittest
from django.test import LiveServerTestCase
from util import TestBase
class BasicTests(object):
def no_exception(self):
result = self.c... | 33,734 |
https://github.com/alezandr/geohash-explorer/blob/master/src/extended-leaflet.ts | Github Open Source | Open Source | MIT | 2,021 | geohash-explorer | alezandr | TypeScript | Code | 485 | 1,657 | // Copyright 2019 Alexander Berezovsky
// License: http://opensource.org/licenses/MIT
import * as L from 'leaflet'
interface Cell {
midX: number
midY: number
width: number
height: number
}
export let ExtendSVG = L.SVG.extend({
initialize(options) {
L.Renderer.prototype['initialize'].call(... | 46,327 |
https://github.com/Sinalma/SINCycleView/blob/master/SINCycleView/SINCycleView/Demo/CycleView/SINImageView.h | Github Open Source | Open Source | MIT | null | SINCycleView | Sinalma | C | Code | 32 | 96 | //
// SINImageView.h
// SINCycleView
//
// Created by apple on 30/04/2017.
// Copyright © 2017 sinalma. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SINImageView : UIImageView
@property (nonatomic,assign) NSInteger identify;
@end
| 43,050 |
https://github.com/canonical/postgresql-operator/blob/master/tests/unit/test_charm.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | postgresql-operator | canonical | Python | Code | 647 | 3,108 | # Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
import re
import subprocess
import unittest
from unittest.mock import Mock, patch
from charms.operator_libs_linux.v0 import apt
from ops.model import ActiveStatus, BlockedStatus, WaitingStatus
from ops.testing import Harness
from charm import ... | 43,694 |
https://github.com/velialarm/FancyApps/blob/master/FancyApps/FancyApps.Services/Controllers/FriendController.cs | Github Open Source | Open Source | MIT | null | FancyApps | velialarm | C# | Code | 264 | 912 | namespace FancyApps.Services.Controllers
{
using System;
using System.Linq;
using System.Web.Http;
using Model;
using Model.Entities;
using Models;
using Models.Request;
using Models.Response;
public class FriendController : AbstractApiController
{
[Route("api/add-frien... | 39,106 |
https://github.com/lynings/tdd-kata/blob/master/src/main/java/pers/lyning/kata/conferencetrack/Track.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | tdd-kata | lynings | Java | Code | 47 | 127 | package pers.lyning.kata.conferencetrack;
/**
* @author lyning
*/
public class Track {
private final Session afternoon;
private final Session morning;
public Track(Session morning, Session afternoon) {
this.morning = morning;
this.afternoon = afternoon;
}
public Session getAfte... | 42,210 |
https://github.com/Olga-Sh1/jsm-ars/blob/master/src/JSMBase.Medicine/RWServices/Excel/Converters/LogicalThreeConverter.cs | Github Open Source | Open Source | MIT | null | jsm-ars | Olga-Sh1 | C# | Code | 129 | 398 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BFSettings;
using JSMBase.RNK;
namespace JSMBase.Medicine.RWServices.Excel.Converters
{
public sealed class LogicalThreeConverter : BaseConverter<BFSettings.LogicalTreePropS... | 39,138 |
https://github.com/condast/AieonF/blob/master/Workspace/org.aieonf.commons.ui/src/org/aieonf/commons/ui/wizard/PageActionEvent.java | Github Open Source | Open Source | Apache-2.0 | null | AieonF | condast | Java | Code | 106 | 333 | package org.aieonf.commons.ui.wizard;
import java.util.EventObject;
import org.aieonf.commons.ui.flow.IFlowControl;
import org.aieonf.commons.ui.wizard.IAddWizardPageListener.PageActions;
import org.eclipse.jface.wizard.IWizard;
public class PageActionEvent extends EventObject {
private static final long serialVers... | 31,896 |
https://github.com/beatgrabe/absync-todo/blob/master/public/js/todo/todos.js | Github Open Source | Open Source | MIT | 2,016 | absync-todo | beatgrabe | JavaScript | Code | 63 | 204 | "use strict";
angular
.module( "todomvc" )
.config( registerTodoService )
.run( configureService );
/* @ngInject */
function registerTodoService( absyncProvider ) {
absyncProvider.collection( "todos",
{
model : "Todo",
collectionName : "todos",
collectionUri : "/api/todos",
entityName ... | 173 |
https://github.com/jwpf100/essential-coaching-gatsby/blob/master/src/components/BlogPostFooter/index.js | Github Open Source | Open Source | 0BSD | 2,021 | essential-coaching-gatsby | jwpf100 | JavaScript | Code | 6 | 14 | export { default } from './BlogPostFooter'
| 13,686 |
https://github.com/RodrigoHolztrattner/Wonderland/blob/master/Wonderland/Wonderland/Editor/Modules/Flux/Box/Function/DynamicMemberFunction/DynamicMemberFunctionCreator.cpp | Github Open Source | Open Source | MIT | 2,021 | Wonderland | RodrigoHolztrattner | C++ | Code | 136 | 423 | ////////////////////////////////////////////////////////////////////////////////
// Filename: DynamicMemberFunctionCreator.cpp
////////////////////////////////////////////////////////////////////////////////
#include "DynamicMemberFunctionCreator.h"
#include "DynamicMemberFunctionRegister.h"
#include "DynamicMemberFunc... | 5,378 |
https://github.com/RobPethick/Favrobot/blob/master/lib/models/card.py | Github Open Source | Open Source | MIT | 2,017 | Favrobot | RobPethick | Python | Code | 20 | 76 | class Card(object):
def __init__(self, json):
self.cardId = json['cardId']
self.organizationId = json['organizationId']
self.widgetId = json['widgetCommonId']
self.columnId = json['columnId']
self.name = json['name']
| 25,082 |
https://github.com/yunfzhan/Xit/blob/master/Xit/Changes/RepositorySelection.swift | Github Open Source | Open Source | Apache-2.0 | 2,022 | Xit | yunfzhan | Swift | Code | 286 | 644 | import Cocoa
typealias FileChangesRepo =
BasicRepository & CommitReferencing & FileDiffing & FileContents &
FileStaging & FileStatusDetection
/// Protocol for a commit or commit-like object, with metadata, files, and diffs.
protocol RepositorySelection: AnyObject
{
var repository: any FileChangesRepo { get... | 8,831 |
https://github.com/AsahiOS/gate/blob/master/usr/src/lib/pam_modules/krb5_migrate/krb5_migrate_authenticate.c | Github Open Source | Open Source | MIT | null | gate | AsahiOS | C | Code | 1,257 | 4,136 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 33,867 |
https://github.com/djFooFoo/aws-lambda-add-article/blob/master/src/application.py | Github Open Source | Open Source | Apache-2.0 | null | aws-lambda-add-article | djFooFoo | Python | Code | 39 | 171 | import os
from images import image_service
from rss import feed_reader
from scraping import scraper
def handler(event, context):
latest_article_url = feed_reader.get_latest_article_url(os.environ['ARTICLE_RSS_FEED_URL'])
article = scraper.get_article(latest_article_url)
image_id = image_service.store_art... | 38,254 |
https://github.com/Dunku1/Danil_Web/blob/master/app/Http/Controllers/ArticleController.php | Github Open Source | Open Source | MIT | null | Danil_Web | Dunku1 | PHP | Code | 29 | 100 | <?php
namespace App\Http\Controllers;
use App\Product;
use Illuminate\Http\Request;
class ArticleController extends Controller
{
public function show()
{
return Product::all();
}
public function search($title)
{
return Product::where('title', 'like', '%'.$title.'%')->get();
}
}
| 3,291 |
https://github.com/dejan2609/Android/blob/master/app/src/main/java/com/duckduckgo/app/email/EmailJavascriptInterface.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Android | dejan2609 | Kotlin | Code | 178 | 446 | /*
* Copyright (c) 2020 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 47,037 |
https://github.com/ShawnAndrews/ConnectWithGamers/blob/master/client/src/games/home/horrorgamesbanner/HorrorGamesBannerContainer.tsx | Github Open Source | Open Source | MIT | 2,019 | ConnectWithGamers | ShawnAndrews | TypeScript | Code | 78 | 336 | import * as React from 'react';
import { withRouter, RouteComponentProps } from 'react-router';
import HorrorGamesBanner from './HorrorGamesBanner';
import { SidenavEnums, GameResponse } from '../../../../client-server-common/common';
interface IHorrorGamesBannerContainerProps extends RouteComponentProps<any> {
go... | 23,136 |
https://github.com/johansantri/bess/blob/master/application/views/backand/setup/sidebar.php | Github Open Source | Open Source | MIT | null | bess | johansantri | PHP | Code | 83 | 480 | <div class="app-sidebar__overlay" data-toggle="sidebar"></div>
<aside class="app-sidebar">
<div class="app-sidebar__user">
<div id="image_sementara">
</div>
<p class="app-sidebar__user-name"><?php echo $this->session->userdata('nama_depan');?> </p>
</d... | 28,321 |
https://github.com/tekktonic/programming/blob/master/scheme/test.scm | Github Open Source | Open Source | 0BSD | null | programming | tekktonic | Scheme | Code | 28 | 89 | (use ncurses srfi-25)
(initscr)
(define w 0)
(define h 0)
(let-values (((height width) (getmaxyx stdscr)))
(set! h height)
(set! w width))
(endwin)
(display w)
(newline)
(display h)
(newline)
| 6,435 |
https://github.com/yu3mars/proconVSCodeGcc/blob/master/atcoder/abc/abc159/f.cpp | Github Open Source | Open Source | MIT | null | proconVSCodeGcc | yu3mars | C++ | Code | 149 | 524 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1... | 43,098 |
https://github.com/Crouching-Tiger-Hidden-Dragon/sfi-hackathon-july-2021/blob/master/pages/404.js | Github Open Source | Open Source | MIT | 2,021 | sfi-hackathon-july-2021 | Crouching-Tiger-Hidden-Dragon | JavaScript | Code | 36 | 101 | import Head from 'next/head';
import Layout from '../components/Layout/Layout';
const Custom404 = () => {
return (
<>
<Head>
<title>404 - Not Found</title>
</Head>
<Layout>
<h1>404 - Page Not Found</h1>
</Layout>
</>
);
};
export default Custom404;
| 45,053 |
https://github.com/MoonStarCZW/py2rb/blob/master/run_tests.py | Github Open Source | Open Source | MIT | null | py2rb | MoonStarCZW | Python | Code | 102 | 406 | #! /usr/bin/python
import optparse
import testtools.runner
import testtools.util
import testtools.tests
def main():
option_parser = optparse.OptionParser(
usage="%prog [options] [filenames]",
description="py2rb unittests script."
)
option_parser.add_option(
"-a",
"--run... | 11,772 |
https://github.com/utahnlp/lapa-mrp/blob/master/utility/eds_utils/test_mrp_eds.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | lapa-mrp | utahnlp | Python | Code | 344 | 1,456 | #!/usr/bin/env python3.6
# coding=utf-8
'''
Load eds transformed mrp, and load into AMRGraph as gold label, test the output with the gold AMRGraph
@author: Jie Cao (jiessie.cao@gmail.com)
@since: 2019-06-23
'''
import parser
import os
import sys
from torch import cuda
from parser.EDSProcessors import *
from utility.e... | 915 |
https://github.com/gabbinguyen/lifeOfTheParty/blob/master/trash/frontendmain/node_modules/react-tiny-link/src/rules/Image/ScrapImage.ts | Github Open Source | Open Source | MIT | 2,021 | lifeOfTheParty | gabbinguyen | TypeScript | Code | 41 | 129 | import { ReactTinyLinkType } from '../../ReactTinyLinkTypes'
import { isEmpty } from '../utils'
export default async (url: string, defaultMedia: string[]) => ({
title: url.substring(url.lastIndexOf('/') + 1),
description: url.substring(url.lastIndexOf('/') + 1),
url: url,
video: [],
image: [url, defaultMedia... | 39,495 |
https://github.com/WASdev/sample.async.jaxrs/blob/master/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,020 | sample.async.jaxrs | WASdev | Gradle | Code | 217 | 808 | apply plugin: 'maven'
apply plugin: 'war'
apply plugin: 'liberty'
group = 'liberty.samples'
version = '1'
description = "WAS Liberty Sample - JAX-RS 2.0 Asynchronous processing Sample"
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
buildscript {
... | 29,461 |
https://github.com/TeroJokela/Web-Mania/blob/master/Init.js | Github Open Source | Open Source | MIT | null | Web-Mania | TeroJokela | JavaScript | Code | 45 | 81 | //Add code and function calls here that need to be executed on start.
//Add event listener for browser window resizes and fullscreen changes and resize the canvas's container when it occurs
addEventListener("resize", ReSize);
addEventListener("fullscreenchange", ReSize);
//Create global game object
var game = new Gam... | 230 |
https://github.com/npgsql/efcore.pg/blob/master/test/EFCore.PG.FunctionalTests/Query/InheritanceRelationshipsQueryNpgsqlFixture.cs | Github Open Source | Open Source | 2,023 | efcore.pg | npgsql | C# | Code | 17 | 91 | using Npgsql.EntityFrameworkCore.PostgreSQL.TestUtilities;
namespace Npgsql.EntityFrameworkCore.PostgreSQL.Query;
public class InheritanceRelationshipsQueryNpgsqlFixture : InheritanceRelationshipsQueryRelationalFixture
{
protected override ITestStoreFactory TestStoreFactory => NpgsqlTestStoreFactory.Instance;
} | 33,716 | |
https://github.com/nfrechette/acl-js/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | acl-js | nfrechette | Ignore List | Code | 9 | 32 | # Temporary data rules
bin/
build/
staging/
**/__pycache__/
.vscode/
| 26,799 |
https://github.com/zkn1163691192/DAPPLE/blob/master/vgg19/tf-keras-dapple.py | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,020 | DAPPLE | zkn1163691192 | Python | Code | 1,442 | 5,759 | #!/usr/bin/env python2
import tensorflow as tf
import numpy as np
import glob
import subprocess
import argparse
import os
import sys
import json
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense,Flatten,Dropout
from tensorflow.keras.layers import Conv2D
from tensorflow.keras.layer... | 861 |
https://github.com/gabrielchl/tfsec/blob/master/internal/app/tfsec/rules/aws/athena/enable_at_rest_encryption_rule.go | Github Open Source | Open Source | MIT | null | tfsec | gabrielchl | Go | Code | 164 | 869 | package athena
import (
"strings"
"github.com/aquasecurity/defsec/rules"
"github.com/aquasecurity/defsec/rules/aws/athena"
"github.com/aquasecurity/tfsec/internal/app/tfsec/block"
"github.com/aquasecurity/tfsec/internal/app/tfsec/scanner"
"github.com/aquasecurity/tfsec/pkg/rule"
)
func init() {
scanner.Regist... | 10,297 |
https://github.com/daodao10/chart/blob/master/sg/FSTM_d.js | Github Open Source | Open Source | MIT | 2,021 | chart | daodao10 | JavaScript | Code | 5,333 | 58,542 | var data=[['19990831',498.5900],
['19990901',498.5900],
['19990902',491.7000],
['19990903',486.5300],
['19990906',486.9900],
['19990907',485.9400],
['19990908',481.9400],
['19990909',483.2900],
['19990910',481.8500],
['19990913',479.9300],
['19990914',478.2500],
['19990915',477.5600],
['19990916',471.8000],
['19990917'... | 36,732 |
https://github.com/shamankingrokas/phase-0/blob/master/week-6/guessing-game/my_solution.rb | Github Open Source | Open Source | MIT | 2,016 | phase-0 | shamankingrokas | Ruby | Code | 367 | 836 | # # Build a simple guessing game
# # I worked on this challenge [by myself, with: ].
# # I spent [#] hours on this challenge.
# # Pseudocode
# # Initial Solution
# class GuessingGame
# attr_reader :low
# attr_reader :high
# attr_reader :correct
# def initialize(answer)
# # Your initialization code g... | 14,343 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/QQ空间-杨洋代言全民社交平台-7.7.6(越狱应用)_headers/QzonePhotoManager_Feed.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 327 | 1,417 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <Foundation/NSObject.h>
#import "QzoneNewPhotoManagerDelegate-Protocol.h"
#import "QzonePhotoManager-Protocol.h"
@class NSDat... | 41,765 |
https://github.com/dhylands/upy-examples/blob/master/boot-msc.py | Github Open Source | Open Source | MIT | 2,022 | upy-examples | dhylands | Python | Code | 115 | 373 | # boot.py -- run on boot-up
#
# This is some common initialization that I like to keep around.
import pyb
import micropython
import sys
#pyb.main('main.py') # main script to run after this one
#pyb.usb_mode('CDC') # act as a serial only
pyb.usb_mode('CDC+MSC') # act as a serial and a storage device
#pyb.usb_mode('CDC+... | 3,845 |
https://github.com/phaza/BaGet/blob/master/src/BaGet.Protocol/Registration/PackageMetadata.cs | Github Open Source | Open Source | MIT | 2,018 | BaGet | phaza | C# | Code | 398 | 1,001 | using System;
using System.Collections.Generic;
using BaGet.Protocol.Converters;
using Newtonsoft.Json;
using NuGet.Versioning;
namespace BaGet.Protocol
{
public class PackageMetadata
{
public PackageMetadata(
string catalogUri,
string packageId,
NuGetVersion versio... | 17,581 |
https://github.com/Sefora-Code/svuotArmadio/blob/master/database/seeders/DatabaseSeeder.php | Github Open Source | Open Source | MIT | null | svuotArmadio | Sefora-Code | PHP | Code | 37 | 220 | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(RoleSeeder::class);
$this->call(SuperAdminSeeder::class);
$t... | 8,123 |
https://github.com/WyTcorporation/yii2.shop.loc/blob/master/frontend/controllers/CartController.php | Github Open Source | Open Source | BSD-3-Clause | null | yii2.shop.loc | WyTcorporation | PHP | Code | 640 | 2,880 | <?php
/**
* Created by PhpStorm.
* User: WyTcorp
* Date: 16.03.2020
* Time: 12:15
* Email: wild.savedo@gmail.com
* Site : http://lockit.com.ua/
*/
namespace frontend\controllers;
use backend\models\np\NpCities;
use backend\models\np\NpRegion;
use backend\models\orders\Orders;
use backend\models\orders\OrdersIt... | 18,678 |
https://github.com/akoeplinger/roslyn/blob/master/src/Interactive/EditorFeatures/VisualBasic/Interactive/VisualBasicRepl.vb | Github Open Source | Open Source | Apache-2.0 | 2,021 | roslyn | akoeplinger | Visual Basic | Code | 103 | 340 | ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Interactive
Imports Microsoft.CodeAnalysis.Scripting
Imports Microsoft.CodeAnalysis.Scripting.VisualBasic
Namespace Microsoft.C... | 10,307 |
https://github.com/reactivespace/Steemit-Fork-2.0/blob/master/python_scripts/tests/api_tests/list_account.py | Github Open Source | Open Source | MIT | 2,021 | Steemit-Fork-2.0 | reactivespace | Python | Code | 217 | 600 | #!/usr/bin/env python3
"""
Create list of all clout accounts in file.
Usage: create_account_list.py <server_address> [<output_filename>]
"""
import sys
import json
from jsonsocket import JSONSocket
from jsonsocket import cloutd_call
def list_accounts(url):
"""
url in form <ip_address>:<port>
"""
last_account =... | 297 |
https://github.com/viniciusdacal/generator-angular-rockr/blob/master/test/template/mock-model.js | Github Open Source | Open Source | MIT | null | generator-angular-rockr | viniciusdacal | JavaScript | Code | 70 | 269 | 'use strict';
require('yeoman-generator');
var _ = require('lodash');
var mockPrompts = require('../../app/src/mock-prompts');
module.exports = function () {
var props = _.extend(_.cloneDeep(mockPrompts.defaults), {
paths: {
src: null,
tmp: null,
e2e: null,
dist: null
}
});
return _.cloneDeep({
a... | 45,648 |
https://github.com/mapr-demos/mapr-streams-sample-programs/blob/master/src/main/java/com/mapr/examples/Run.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | mapr-streams-sample-programs | mapr-demos | Java | Code | 87 | 211 | package com.mapr.examples;
import java.io.IOException;
/**
* Pick whether we want to run as producer or consumer. This lets us
* have a single executable as a build target.
*/
public class Run {
public static void main(String[] args) throws IOException {
if (args.length < 1) {
throw new Ill... | 44,937 |
https://github.com/durulhoda/aims2017/blob/master/aims_sms_system/controllers/systemaccess/Expensesadd.php | Github Open Source | Open Source | MIT | null | aims2017 | durulhoda | PHP | Code | 51 | 164 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* Project Name: Aims
* Author: Adventure Soft
* Author url: http://www.adventure-soft.com
*/
class Expensesadd extends MY_Controller{
public function __construct() {
parent::__construct();
$this->my_admin();
... | 28,078 |
https://github.com/fengyinws/django_blog/blob/master/comment/migrations/0005_auto_20190503_1657.py | Github Open Source | Open Source | MIT | null | django_blog | fengyinws | Python | Code | 54 | 295 | # Generated by Django 2.1 on 2019-05-03 08:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comment', '0004_auto_20190502_2050'),
]
operations = [
migrations.AddField(
model_name='comment',
name='level',
... | 47,691 |
https://github.com/findy-network/findy-wrapper-go/blob/master/pool/dto.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | findy-wrapper-go | findy-network | Go | Code | 29 | 59 | package pool
// Config is pool creating config structure used by indy.
type Config struct {
// GenesisTxn is full filename of the genesis file.
GenesisTxn string `json:"genesis_txn,omitempty"`
}
| 49,670 |
https://github.com/nimasrn/book-managment-server/blob/master/src/books/dto/update.dto.ts | Github Open Source | Open Source | MIT | null | book-managment-server | nimasrn | TypeScript | Code | 27 | 88 | import { IsString, IsInt, IsOptional, IsObject, IsArray } from 'class-validator';
export class UpdateBookDto {
@IsString()
title: string;
@IsString()
ISBN: string;
@IsArray()
authors: string[];
@IsObject()
cover: string;
} | 47,024 |
https://github.com/spring-based-solutions/repeat-read-stream-demo/blob/master/src/main/java/com/rjh/web/filter/InputStreamRequest.java | Github Open Source | Open Source | BSD-3-Clause | null | repeat-read-stream-demo | spring-based-solutions | Java | Code | 140 | 441 | package com.rjh.web.filter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.StreamUtils;
import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.io.ByteArrayInputStream;... | 20,900 |
https://github.com/onyonkaclifford/data-structures-and-algorithms/blob/master/data_structures/trees/tree.py | Github Open Source | Open Source | MIT | null | data-structures-and-algorithms | onyonkaclifford | Python | Code | 2,011 | 4,616 | from abc import ABC, abstractmethod
from typing import Any, Generator, Iterable, List, Union
class Empty(Exception):
pass
class Tree(ABC):
"""A tree is a hierarchical collection of nodes containing items, with each node having a unique parent and zero,
one or many children items. The topmost element in ... | 46,795 |
https://github.com/Anguei/OI-Codes/blob/master/LuoguCodes/P1135.cpp | Github Open Source | Open Source | MIT | null | OI-Codes | Anguei | C++ | Code | 127 | 325 | //【P1135】奇怪的电梯 - 洛谷 - Uk
#include <iostream>
#include <algorithm>
const int N = 200 + 5;
int n, a, b;
int k[N];
bool vis[N];
int ans = 2147483647;
void dfs(int now, int depth)
{
if (now == b)
{
ans = std::min(ans, depth);
return;
}
if (depth >= ans)
return;
vis[now] = true;
if (now + k[now] <= n and ... | 21,001 |
https://github.com/hvy/models/blob/master/multi-label-classification/lib/eval_multi_label_classification.py | Github Open Source | Open Source | MIT | 2,018 | models | hvy | Python | Code | 177 | 610 | from __future__ import division
import numpy as np
from collections import defaultdict
from chainercv.evaluations import calc_detection_voc_ap
def eval_multi_label_classification(
pred_labels, pred_scores, gt_labels):
prec, rec = calc_multi_label_classification_prec_rec(
pred_labels, pred_score... | 41,846 |
https://github.com/gabriel84k/vanger/blob/master/resources/js/components/Footer/Footer.vue | Github Open Source | Open Source | MIT | null | vanger | gabriel84k | Vue | Code | 40 | 182 | <template>
<footer v-show="visible" class="footer">
<div v-show="visible" class="d-sm-flex justify-content-center justify-content-sm-between">
<span class="float-none float-sm-right d-block mt-1 mt-sm-0">
<img :src="imgLougemedia.path" alt="" class="footerimg">
... | 30,821 |
https://github.com/shaynjay/scaling-apps-with-kafka/blob/master/microservices/frontend/app.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | scaling-apps-with-kafka | shaynjay | JavaScript | Code | 93 | 207 | /*eslint-env node*/
//------------------------------------------------------------------------------
// node.js starter application for Bluemix
//------------------------------------------------------------------------------
// This application uses express as its web server
// for more info, see: http://expressjs.co... | 14,889 |
https://github.com/smajohusic/passlawl.js/blob/master/src/locale/en/verbs.js | Github Open Source | Open Source | MIT | 2,016 | passlawl.js | smajohusic | JavaScript | Code | 51 | 265 | 'use strict';
module.exports = [
'bore',
'became',
'began',
'bit',
'broke',
'brought',
'caught',
'chose',
'came',
'did',
'drank',
'drove',
'ate',
'fell',
'felt',
'flew',
'froze',
'got',
'went',
'knew',
'laid',
'led',
'lent',
'lay',
'lost',
'rode',
'rang',
'rose',... | 34,665 |
https://github.com/ygtfrdes/Program/blob/master/Engineering/boards/contiki/emma-node/contiki/tools/cooja/apps/avrora/src/avrora/Defaults.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | Program | ygtfrdes | Java | Code | 2,033 | 5,251 | /**
* Copyright (c) 2004-2005, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright ... | 19,467 |
https://github.com/GabrielTrossero/CAOV/blob/master/resources/views/pagoAlquiler/ingresarPagoInmueble.blade.php | Github Open Source | Open Source | MIT | null | CAOV | GabrielTrossero | PHP | Code | 629 | 2,949 | @extends('layouts.master')
@section('content')
<div class="cuadro">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Ingresar N° de Recibo para el Alquiler de Inmueble') }}</div>
<div class="card... | 39,863 |
https://github.com/lmgginspace/PokeWorld/blob/master/Source/PokeWorld/PokeWorld/Quests/LegendaryQuestsTracker.cs | Github Open Source | Open Source | MIT | null | PokeWorld | lmgginspace | C# | Code | 100 | 385 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RimWorld.Planet;
using RimWorld;
using RimWorld.QuestGen;
using Verse;
namespace PokeWorld
{
public class LegendaryQuestsTracker : WorldComponent
{
private DefMap<QuestConditionDef... | 28,677 |
https://github.com/techtastet/deno-jampstack/blob/master/src/article.ts | Github Open Source | Open Source | MIT | 2,020 | deno-jampstack | techtastet | TypeScript | Code | 197 | 621 | import { join, Marked, __dirname } from "../deps.ts";
import {
ELEMENTS,
encoder,
decoder,
replaceAssets,
} from "./functions.ts";
/**
* READ /posts dir for posts
*/
async function processArticle(file: string): Promise<object> {
let article: any = {
markdown: "",
html: "",
handle: "",
};
... | 12,732 |
https://github.com/traal-devel/udacity-p02-vehicles-starter/blob/master/vehicles-api/src/test/java/ch/traal/vehicles/VehiclesApiApplicationTests.java | Github Open Source | Open Source | MIT | null | udacity-p02-vehicles-starter | traal-devel | Java | Code | 62 | 283 | package ch.traal.vehicles;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframe... | 5,121 |
https://github.com/sillywalk/grazz/blob/master/tests/binutils-2.30/src/ld/testsuite/ld-arm/attr-merge-incompatibleb.s | Github Open Source | Open Source | Apache-2.0 | 2,020 | grazz | sillywalk | GAS | Code | 4 | 19 | .eabi_attribute Tag_compatibility, 1, "gnu"
| 16,809 |
https://github.com/sakusimu/mh4-skillsimu/blob/master/test/unit/40_deco/10_normalizer.js | Github Open Source | Open Source | MIT | 2,017 | mh4-skillsimu | sakusimu | JavaScript | Code | 850 | 2,644 | 'use strict';
var assert = require('power-assert'),
Normalizer = require('../../../lib/deco/normalizer.js'),
util = require('../../../lib/util.js'),
myapp = require('../../../test/lib/driver-myapp.js');
describe('40_deco/10_normalizer', function () {
var got, exp;
beforeEach(function () {
... | 47,105 |
https://github.com/ibis-project/ibis/blob/master/ibis/expr/types/relations.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | ibis | ibis-project | Python | Code | 16,840 | 73,226 | from __future__ import annotations
import collections
import contextlib
import functools
import itertools
import operator
import re
from keyword import iskeyword
from typing import TYPE_CHECKING, Callable, Iterable, Literal, Mapping, Sequence
import toolz
from public import public
import ibis
import ibis.common.exce... | 11,002 |
https://github.com/GoFightNguyen/programming-in-csharp/blob/master/2.CreateAndUseTypes/2.85_WeakReference/Program.cs | Github Open Source | Open Source | MIT | null | programming-in-csharp | GoFightNguyen | C# | Code | 72 | 194 | using System;
namespace _2._85_WeakReference
{
class Program
{
static WeakReference data;
public static void Run()
{
object result = GetData();
//GC.Collect(); uncommenting this line will make data.Target null
result = GetData();
}
... | 7,317 |
https://github.com/Jono120/PlayMe/blob/master/SpotiFire.SpotifyLib/Interfaces/IPlaylistContainer.cs | Github Open Source | Open Source | MIT | 2,022 | PlayMe | Jono120 | C# | Code | 36 | 128 | namespace SpotiFire.SpotifyLib
{
public interface IPlaylistContainer : ISpotifyObject
{
//IUser User {get;}
IPlaylistList Playlists { get; }
bool IsLoaded { get; }
event PlaylistContainerHandler Loaded;
event PlaylistContainerHandler<PlaylistEventArgs> PlaylistAdded;
... | 9,775 |
https://github.com/asuttles/euler/blob/master/problem26.py | Github Open Source | Open Source | Unlicense | null | euler | asuttles | Python | Code | 208 | 472 | # A unit fraction contains 1 in the numerator.
# The decimal representation of the unit fractions
# with denominators 2 to 10 are given:
#
# 1/2 = 0.5
# 1/3 = 0.(3)
# 1/4 = 0.25
# 1/5 = 0.2
# 1/6 = 0.1(6)
# 1/7 = 0.(142857)
# 1/8 = 0.125
# 1/9 = 0.(1)
# 1/10 = 0.1
#
# Where 0.1(6) ... | 46,022 |
https://github.com/mthistle/SendHapticSwift/blob/master/MicrosoftBandKit_iOS.framework/Versions/Current/Headers/MSBMargins.h | Github Open Source | Open Source | MIT | 2,016 | SendHapticSwift | mthistle | Objective-C | Code | 40 | 149 | //----------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//----------------------------------------------------------------
#import <Foundation/Foundation.h>
@interface MSBMargins : NSObject
@property(nonatomic, assign) UInt16 left... | 45,552 |
https://github.com/jasoncypret/animate.sass-rails/blob/master/vendor/assets/stylesheets/animate/animations/bouncing-exits/_bounceOutRight.sass | Github Open Source | Open Source | MIT | null | animate.sass-rails | jasoncypret | Sass | Code | 44 | 293 | =bounceOutRight($prefix)
0%
+transform(translateX(0), $prefix)
20%
opacity: 1
+transform(translateX(-20px), $prefix)
100%
opacity: 0
+transform(translateX(2000px), $prefix)
@if $experimental-support-for-webkit
@-webkit-keyframes bounceOutRight
+bounceOutRight(webkit)
@if $experimental-... | 28,853 |
https://github.com/fancylou/o2oa/blob/master/x_processplatform_assemble_bam/src/main/java/com/x/processplatform/assemble/bam/factory/TaskFactory.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | o2oa | fancylou | Java | Code | 1,626 | 6,232 | package com.x.processplatform.assemble.bam.factory;
import java.util.Date;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.R... | 21,014 |
https://github.com/deyvisgc/SysConta/blob/master/application/controllers/Cuentas/Asientos.php | Github Open Source | Open Source | MIT | null | SysConta | deyvisgc | PHP | Code | 141 | 897 | <?php
/**
* Created by PhpStorm.
* User: Deyvis G
* Date: 30/03/2019
* Time: 4:06 AM
*/
class Asientos extends CI_Controller
{
function __construct() {
parent::__construct();
$this->load->library('session');
$this->load->database();
$this->load->model('cuentas_contables_model');
$this->load->model('r... | 19,577 |
https://github.com/7eXx/LiteDbExplorer/blob/master/source/LiteDbExplorer/Modules/ApplicationInteraction.cs | Github Open Source | Open Source | MIT | 2,019 | LiteDbExplorer | 7eXx | C# | Code | 879 | 3,166 | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Threading.Tasks;
using System.Windows;
using Caliburn.Micro;
using CSharpFunctionalExtensions;
using Forge.Forms;
using LiteDbExplorer.Controls;
using LiteDbExplorer.Core;
using LiteDbExplorer.Framewo... | 16,108 |
https://github.com/wooksong/api/blob/master/java/android/nnstreamer/src/main/jni/Android-flatbuf.mk | Github Open Source | Open Source | Apache-2.0 | 2,023 | api | wooksong | Makefile | Code | 181 | 806 | #------------------------------------------------------
# flatbuffers
#
# This mk file defines the flatbuffers-module with the prebuilt static library.
#------------------------------------------------------
LOCAL_PATH := $(call my-dir)
ifndef NNSTREAMER_ROOT
$(error NNSTREAMER_ROOT is not defined!)
endif
include $(N... | 38,407 |
https://github.com/fathurwalkers/project-pendataan-siswa/blob/master/app/Http/Controllers/PrintController.php | Github Open Source | Open Source | MIT | null | project-pendataan-siswa | fathurwalkers | PHP | Code | 81 | 323 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use App\Login;
use App\Detail;
use App\Absensi;
use App\Kelas;
use App\Matapelajaran;
use App\Nilai;
use App\Semester;
use App\Pengajar;
use Illuminate\Support\Str;
use Faker\Factory as Faker;
use Illuminate\Suppor... | 4,245 |
https://github.com/ErikChanHub/rosedb/blob/master/rosedb_test.go | Github Open Source | Open Source | MIT | 2,021 | rosedb | ErikChanHub | Go | Code | 623 | 2,160 | package rosedb
import (
"encoding/json"
"fmt"
"github.com/roseduan/rosedb/storage"
"github.com/stretchr/testify/assert"
"io/ioutil"
"log"
"os"
"testing"
"time"
)
var dbPath = "/tmp/rosedb_server"
func InitDb() *RoseDB {
config := DefaultConfig()
//config.DirPath = dbPath
config.IdxMode = KeyOnlyMemMode
... | 38,142 |
https://github.com/vamshipalle/leave-management-system/blob/master/client/src/data/leaveStatuses.js | Github Open Source | Open Source | MIT | 2,019 | leave-management-system | vamshipalle | JavaScript | Code | 38 | 176 | export const leaveStatuses = Object.freeze({
WAITING: 'WAITING',
EXPIRED: 'EXPIRED',
ACCEPTED: 'ACCEPTED',
REJECTEDBYHOD: 'REJECTEDBYHOD',
AUTOREJECTED: 'AUTOREJECTED',
REJECTEDBYALT: 'REJECTEDBYALT'
});
export const leaveStatusSelectOptions = Object.keys(leaveStatuses).map(
(key, index) => {
return ... | 34,043 |
https://github.com/galvez/fastify-esm-loader/blob/master/example/routes/stagingOnly.js | Github Open Source | Open Source | MIT | 2,020 | fastify-esm-loader | galvez | JavaScript | Code | 11 | 25 | export default (request, reply) => {
reply.send({ status: 'ok' })
}
| 26,062 |
https://github.com/vcellmike/Biosimulators_VCell/blob/master/vcell-client/src/main/java/org/vcell/util/gui/EnhancedLabelUI.java | Github Open Source | Open Source | MIT | 2,022 | Biosimulators_VCell | vcellmike | Java | Code | 168 | 551 | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
*/
package org.vcell.uti... | 12,684 |
https://github.com/stratosger/glGA-edu/blob/master/_thirdPartyLibs/include/vsr/z_deprecated/vsr_manifold.h | Github Open Source | Open Source | BSD-4-Clause-UC | 2,021 | glGA-edu | stratosger | C | Code | 98 | 307 | /*
* =====================================================================================
*
* Filename: vsr_manifold.h
*
* Description: 3d combo of smart objects and graphs (like halfedge)
*
* Version: 1.0
* Created: 11/15/2013 13:47:08
* Revision: none
* Compiler: gc... | 26,276 |
https://github.com/alibaba/graph-learn/blob/master/dynamic_graph_service/src/service/actor_ref_builder.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | graph-learn | alibaba | C++ | Code | 121 | 395 | /* Copyright 2022 Alibaba Group Holding Limited. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 29,826 |
https://github.com/LunarRed/tfjs/blob/master/tfjs-core/src/ops/confusion_matrix.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | tfjs | LunarRed | TypeScript | Code | 515 | 1,104 | /**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 39,581 |
https://github.com/mtcarvalho/docs-connectors/blob/master/hl7/4.2/modules/ROOT/nav.adoc | Github Open Source | Open Source | BSD-3-Clause | 2,022 | docs-connectors | mtcarvalho | AsciiDoc | Code | 41 | 186 | .xref:index.adoc[HL7 EDI Connector]
* xref:index.adoc[About HL7 EDI Connector]
* xref:hl7-connector-reference.adoc[HL7 EDI Connector Reference]
* xref:hl7-connector-studio.adoc[Use Anypoint Studio to Configure HL7 EDI Connector]
* xref:hl7-connector-config-topics.adoc[HL7 Schema Configuration]
* xref:hl7-connector-exam... | 3,820 |
https://github.com/novakge/project-parsers/blob/master/data/mmlib100/J10057_5.mm | Github Open Source | Open Source | MIT | 2,021 | project-parsers | novakge | Objective-C++ | Code | 2,992 | 5,904 | jobs (incl. supersource/sink ): 102
RESOURCES
- renewable : 2 R
- nonrenewable : 2 N
- doubly constrained : 0 D
************************************************************************
PRECEDENCE RELATIONS:
jobnr. #modes #successors successors
1 1 16 2 3 4 5 6 7 8 9 10 11 12 ... | 7,223 |
https://github.com/xopr/gigatron-rom/blob/master/Utils/lcc/src/stab.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | gigatron-rom | xopr | C | Code | 621 | 1,567 | /* @(#)stab.h 1.11 92/05/11 SMI */
/* $Id$ */
/*
* Copyright (c) 1990 by Sun Microsystems, Inc.
*/
/*
* This file gives definitions supplementing <a.out.h>
* for permanent symbol table entries.
* These must have one of the N_STAB bits on,
* and are subject to relocation according to the masks in <a.out... | 3,338 |
https://github.com/nfleet/java-sdk/blob/master/fi/cosky/sdk/TaskEventUpdateRequest.java | Github Open Source | Open Source | MIT | 2,015 | java-sdk | nfleet | Java | Code | 201 | 538 | package fi.cosky.sdk;
import java.util.List;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
public class TaskEventUpdateRequest extends BaseData {
private int TaskEventId;
private Type Type;
private List<TimeWindowData> ... | 40,786 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.