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/tchrikch/any/blob/master/src/netstandard2.0/TypeResolution/InterceptedInvocation.cs | Github Open Source | Open Source | MIT | 2,018 | any | tchrikch | C# | Code | 186 | 735 | using System;
using System.Linq;
using System.Reflection;
using Castle.DynamicProxy;
using TddXt.AnyExtensibility;
using TddXt.TypeResolution.CustomCollections;
namespace TddXt.TypeResolution
{
public class InterceptedInvocation
{
private readonly Func<Type, GenerationTrace, object> _instanceSource;
privat... | 9,402 |
https://github.com/jemayn/Skybrud.Social.Vimeo/blob/master/src/Skybrud.Social.Vimeo/Scopes/VimeoScope.cs | Github Open Source | Open Source | MIT | 2,018 | Skybrud.Social.Vimeo | jemayn | C# | Code | 483 | 1,128 | namespace Skybrud.Social.Vimeo.Scopes {
/// <summary>
/// Class representing a scope of the Vimeo API.
/// </summary>
/// <see>
/// <cref>https://developer.vimeo.com/api/authentication#supported-scopes</cref>
/// </see>
public class VimeoScope {
#region Properties
///... | 50,601 |
https://github.com/cranelv/truffle_MAN/blob/master/packages/truffle-contract/lib/reformatMatrix.js | Github Open Source | Open Source | MIT | null | truffle_MAN | cranelv | JavaScript | Code | 134 | 359 | /**
* Utilities for reformatting web3 outputs
*/
var manUtils = require("matrix_utils");
const manAddress = function(result, abiSegment) {
abiSegment.forEach((output, i) => {
// output is a number type (uint || int);
if (output.type.includes("address")) {
// output is an array type
if (output.t... | 37,551 |
https://github.com/ischanity/hpmes/blob/master/packages/ccore/core/src/Datatable.php | Github Open Source | Open Source | MIT | null | hpmes | ischanity | PHP | Code | 51 | 180 | <?php
namespace Ccore\Core;
class Datatable {
public static function of($query, $request, $config)
{
$query = $query->search($request->search['value'] ?? null, $config['searchable']);
$total = $query->getQuery()->getCountForPagination();
$limit = $request->length;
$offset = $... | 10,249 |
https://github.com/promisejohn/ecserver/blob/master/src/test/java/org/anyio/b2c/repository/CustomerRepositorySearchTest.java | Github Open Source | Open Source | Apache-2.0 | null | ecserver | promisejohn | Java | Code | 158 | 758 | package org.anyio.b2c.repository;
import org.anyio.b2c.config.JpaConfig;
import org.anyio.b2c.domain.jpa.QCustomer;
import org.anyio.b2c.repository.jpa.CustomerRepository;
import org.anyio.b2c.domain.jpa.Customer;
import org.apache.commons.collections4.IteratorUtils;
import org.junit.Before;
import org.junit.Test;
imp... | 21,182 |
https://github.com/hichameyessou/blip/blob/master/app/components/browserwarning/browserwarning.js | Github Open Source | Open Source | BSD-2-Clause | null | blip | hichameyessou | JavaScript | Code | 453 | 1,421 | /**
* Copyright (c) 2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in the... | 544 |
https://github.com/alexander-pimenov/lessons-job4j/blob/master/chapter_tutorial/src/main/java/ru/job4j/tutorial/queue/example1/Queue.java | Github Open Source | Open Source | Apache-2.0 | null | lessons-job4j | alexander-pimenov | Java | Code | 347 | 718 | package ru.job4j.tutorial.queue.example1;
/**
* Пример этих интерфейсов и классов взят по адресу
* https://gist.github.com/anonymous/6a64bd70922bd4b5fd59
*/
import java.util.NoSuchElementException;
public interface Queue<E> extends Iterable<E> {
/**
* Inserts the specified element into this queue.
... | 19,748 |
https://github.com/zhuangpeng-wtt/design-pattern/blob/master/src/main/java/com/zpwtt/state/People.java | Github Open Source | Open Source | Apache-2.0 | null | design-pattern | zhuangpeng-wtt | Java | Code | 32 | 90 | package com.zpwtt.state;
public class People {
String name;
State peopleState = new HappyState();
public void smile() {
peopleState.smile();
}
public void cry() {
peopleState.cry();
}
public void say() {
peopleState.say();
}
}
| 32,136 |
https://github.com/justanotheruser01001/HP_DA_T21/blob/master/sec/api/utils.py | Github Open Source | Open Source | MIT | null | HP_DA_T21 | justanotheruser01001 | Python | Code | 423 | 1,840 | import pandas as pd
from dotenv import load_dotenv
import os
import pymongo
from sklearn.linear_model import LinearRegression
from xml.etree import ElementTree as et
load_dotenv()
MONGODB_URI = os.environ['MONGODB_URI']
import numpy as np
import sys
import subprocess
headers={'user-agent':'Mozilla/5.0 (X11; Fedora; Lin... | 35,856 |
https://github.com/LogoFX/logofx-client-mvvm-navigation/blob/master/src/LogoFX.Client.Mvvm.Navigation.Middleware/src/NavigationMiddleware.cs | Github Open Source | Open Source | MIT | 2,021 | logofx-client-mvvm-navigation | LogoFX | C# | Code | 246 | 877 | using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using LogoFX.Bootstrapping;
using LogoFX.Client.Bootstrapping.Adapters.Contracts;
using Solid.Practices.IoC;
using Solid.Practices.Middleware;
namespace LogoFX.Client.Mvvm.Navigation
{
/// <summary>
/// Navigation middleware.
///... | 10,990 |
https://github.com/CRAFSS/control-max/blob/master/src/app/novogasto/novogasto.page.scss | Github Open Source | Open Source | MIT | null | control-max | CRAFSS | SCSS | Code | 62 | 218 | .arrow{
margin-left: 49%;
}
ion-footer{
position: static !important;
}
.caixa{
margin-top: 30%;
}
.title{
font-size: 30px;
text-align: center;
margin: 10% 10% 10% 10%;
}
ion-item{
margin-top: 3%;
}
ion-button{
margin-top: 20%;
}
ion-input{
width: 90%;
}
@media (min-width: 650p... | 31,824 |
https://github.com/cogtoolslab/iterated_number_cogsci2021/blob/master/experiments/classify_iternum/js/object_list.js | Github Open Source | Open Source | MIT | null | iterated_number_cogsci2021 | cogtoolslab | JavaScript | Code | 5 | 73 | var object_list = ['./sketches/0885-d57e4e9f-a2c5-4978-a12f-b219cafba17e•owl_3•15•shape•owl_4_064.png.png',
'./object/crow.png']
| 32,847 |
https://github.com/hubba180/PlacesBeen.Solution/blob/master/PlacesBeen/Views/Home/Index.cshtml | Github Open Source | Open Source | MIT | 2,020 | PlacesBeen.Solution | hubba180 | HTML+Razor | Code | 37 | 206 | <!Doctype html>
<html>
<head>
<title>Places I've Been</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body>
<h1>Welcome to th... | 18,485 |
https://github.com/explorable-viz/fluid/blob/master/src/SExpr.purs | Github Open Source | Open Source | MIT | 2,022 | fluid | explorable-viz | PureScript | Code | 334 | 667 | module SExpr where
import Prelude
import Bindings (Bindings, Var)
import Data.List (List)
import Data.List.NonEmpty (NonEmptyList)
import DataType (Ctr)
import Util (type (×), type (+))
-- Surface language expressions.
data Expr a =
Var Var |
Op Var |
Int a Int |
Float a Number |
Str a String |
Cons... | 35,320 |
https://github.com/XWxiaowei/tiny-spring/blob/master/src/main/java/us/codecraft/tinyioc/beans/AbstractBeanDefinitionReader.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | tiny-spring | XWxiaowei | Java | Code | 58 | 217 | package us.codecraft.tinyioc.beans;
import us.codecraft.tinyioc.beans.io.UrlResourceLoader;
import java.util.HashMap;
import java.util.Map;
/**
* 从配置中读取BeanDefinition
*
* @author yihua.huang@dianping.com
*/
public abstract class AbstractBeanDefinitionReader implements BeanDefinitionReader {
private Map<Str... | 2,251 |
https://github.com/turnUpTheChill/opbeans-go/blob/master/products.go | Github Open Source | Open Source | MIT | 2,021 | opbeans-go | turnUpTheChill | Go | Code | 437 | 1,290 | package main
import (
"context"
"fmt"
"github.com/jmoiron/sqlx"
"github.com/pkg/errors"
)
type Product struct {
SKU string `json:"sku"`
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Stock int `json:"stock"`
Cost int ... | 40,907 |
https://github.com/karrika/cc65/blob/master/libsrc/geos-common/disk/freeblock.s | Github Open Source | Open Source | Zlib | null | cc65 | karrika | GAS | Code | 37 | 140 | ;
; Maciej 'YTM/Elysium' Witkowiak
;
; 21.12.1999, 2.1.2003
; char FreeBlock (struct tr_se *TS);
.import gettrse, setoserror
.export _FreeBlock
.include "jumptab.inc"
.include "diskdrv.inc"
.include "geossym.inc"
_FreeBlock:
jsr gettrse
sta... | 3,410 |
https://github.com/Greenghostpc/vbnet/blob/master/TycTacToe/TicTacToe/TicTacToe/FormBoard.vb | Github Open Source | Open Source | MIT | null | vbnet | Greenghostpc | Visual Basic | Code | 405 | 1,271 | Public Class FormBoard
Private GameMaster As IGameMaster
Private P1_isAI, P2_isAI As Boolean
Private P1_Name, P2_Name As String
Private isPlayer1sTurn As Boolean
Private twoAIMode As Boolean 'used to control game speed-- game goes by in a fraction of a second, if two robots are playing
Public... | 12,372 |
https://github.com/theshka/Pico-Editor-Plugin/blob/master/PicoEditor.php | Github Open Source | Open Source | MIT | 2,022 | Pico-Editor-Plugin | theshka | PHP | Code | 1,310 | 3,506 | <?php
/**
* Pico Editor - a markdown editor plugin for Pico.
*
* How to use?
* 1) Extract the "PicoEditor" folder to your "plugins" dir
* 2) Copy & paste the following lines in your config/config.php file
*
* // Pico Editor Configuration
* $config['PicoEditor'] = array(
* 'enabled' => true,
* 'pas... | 25,521 |
https://github.com/fovea-org/fovea/blob/master/packages/lib/src/observe/take-observable-property-keys/take-observable-property-keys.ts | Github Open Source | Open Source | MIT | 2,020 | fovea | fovea-org | TypeScript | Code | 113 | 270 | import {canBeObserved} from "../can-be-observed/can-be-observed";
/**
* Loops through the given value and returns all the keys on which the corresponding values can be observed
* @param {T[] | T} value
* @returns {PropertyKey[]}
*/
export function takeObservablePropertyKeys<T extends object> (value: T|T[]): Proper... | 39,269 |
https://github.com/cxu60-zz/LeetCodeInPython/blob/master/jump_game.py | Github Open Source | Open Source | Apache-2.0 | 2,014 | LeetCodeInPython | cxu60-zz | Python | Code | 128 | 279 | #!/usr/bin/env python
# encoding: utf-8
"""
jump_game.py
Created by Shengwei on 2014-07-22.
"""
# https://oj.leetcode.com/problems/jump-game/
# tags: easy, array, greedy
"""
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents yo... | 33,390 |
https://github.com/ReeganExE/spring-boot-multitenant/blob/master/src/main/java/com/srai/model/Person.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | spring-boot-multitenant | ReeganExE | Java | Code | 136 | 414 | package com.srai.model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
im... | 13,689 |
https://github.com/fandridis/fantoastic/blob/master/src/index.tsx | Github Open Source | Open Source | ISC | 2,020 | fantoastic | fandridis | TSX | Code | 13 | 44 | import withToastProvider from "./fantoastic/ToastProvider";
import useToast from "./fantoastic/useToast";
export { withToastProvider, useToast }; | 48,176 |
https://github.com/tofu511/tutorial-cat/blob/master/src/main/scala/com/danielasfregola/tutorial/cat/Maybe.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | tutorial-cat | tofu511 | Scala | Code | 18 | 56 | package com.danielasfregola.tutorial.cat
sealed abstract class Maybe[+A]
final case class Just[A](a: A) extends Maybe[A]
case object Empty extends Maybe[Nothing]
| 7,353 |
https://github.com/nerijusdu/map-it/blob/master/cypress/integration/category.spec.js | Github Open Source | Open Source | MIT | 2,020 | map-it | nerijusdu | JavaScript | Code | 113 | 669 | import { generate } from 'shortid';
describe('Category tests', () => {
before(() => {
cy.seedDatabase();
cy.clearLocalStorageCache();
cy.login();
});
beforeEach(cy.restoreLocalStorageCache);
afterEach(cy.saveLocalStorageCache);
it('should create a category', () => {
cy.visit('http://localhos... | 3,631 |
https://github.com/fewagency/matchappen/blob/master/app/Http/Requests/StoreBookingRequest.php | Github Open Source | Open Source | MIT | null | matchappen | fewagency | PHP | Code | 153 | 507 | <?php
namespace Matchappen\Http\Requests;
use Matchappen\Http\Requests\Request;
class StoreBookingRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get ... | 10,337 |
https://github.com/artembox2020/yii-test/blob/master/console/migrations/m180618_223902_create_unit_alfa_table.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | yii-test | artembox2020 | PHP | Code | 109 | 415 | <?php
use yii\db\Migration;
use yii\db\Schema;
/**
* Handles the creation of table `unit_alfa`.
* Has foreign keys to the tables:
*
* - `device`
*/
class m180618_223902_create_unit_alfa_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('u... | 2,199 |
https://github.com/jaoss/Spring4-Introducing/blob/master/ch01/src/main/java/com/apress/isf/spring/Application.java | Github Open Source | Open Source | Apache-2.0 | null | Spring4-Introducing | jaoss | Java | Code | 48 | 172 | /**
*
*/
package com.apress.isf.spring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
/**
* @author Felipe Gutierrez
*
*/
public class Application {
@Bean
Messa... | 21,320 |
https://github.com/GiuntaJC/MusicOrg.Solution-ReFactor/blob/master/MusicOrg/Views/Vinyls/Edit.cshtml | Github Open Source | Open Source | MIT | 2,021 | MusicOrg.Solution-ReFactor | GiuntaJC | HTML+Razor | Code | 46 | 216 | @{
Layout = "_Layout";
}
@model MusicOrg.Models.Vinyl
<h1 class="capital-text">Edit Vinyl</h1>
<h4>Vinyl being edited: @Html.DisplayFor(model => model.Title)</h4>
@using (Html.BeginForm())
{
@Html.HiddenFor(model => model.VinylId)
@Html.LabelFor(model => model.Title)
@Html.EditorFor(model => model.T... | 17,064 |
https://github.com/RIKILT/CITESspeciesDetect/blob/master/bin/edirect/setup-deps.pl | Github Open Source | Open Source | BSD-3-Clause | 2,020 | CITESspeciesDetect | RIKILT | Perl | Code | 151 | 622 | #!/usr/bin/perl -w
use strict;
use CPAN::MyConfig;
use CPAN;
use CPAN::HandleConfig;
use CPAN::Shell;
my $root;
BEGIN {
$root = $INC[0];
if ($root !~ s:/_cpan$::) {
die "Please invoke this script via .../setup.sh."
}
if ( ! exists $CPAN::Config{cpan_home} ) {
$CPAN::Config = {
... | 37,655 |
https://github.com/isabella232/logging-site/blob/master/docs/projects/log4cxx/0.12.0/apidocs/classlog4cxx_1_1helpers_1_1_a_p_r_initializer.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, Apache-1.1 | 2,020 | logging-site | isabella232 | JavaScript | Code | 40 | 447 | var classlog4cxx_1_1helpers_1_1_a_p_r_initializer =
[
[ "~APRInitializer", "classlog4cxx_1_1helpers_1_1_a_p_r_initializer.html#a7f0cf72e29bfa3aea802e9dee9f79d10", null ],
[ "getRootPool", "classlog4cxx_1_1helpers_1_1_a_p_r_initializer.html#af2f765e47c647a092c398caf828f63ad", null ],
[ "getTlsKey", "classlog... | 46,847 |
https://github.com/nastusha-merry/ossmoss-hasher-database/blob/master/test-data/011 Подсчёт слов в строке/(anua)(2014-11-12_04:44:51)(PASSED_TESTS)(NOT_PLAG).c | Github Open Source | Open Source | MIT | 2,021 | ossmoss-hasher-database | nastusha-merry | C | Code | 85 | 216 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int wcount(char *s)
{
int k, i = 0 , a = strlen(s);
for ( k = 0; k <= a - 1; k++ )
if ( s[k] != ' ' && s[k+1] == ' ' ) i++;
else if ( s[k] != ' ' && s[k+1] == 0 )
{
i++;
break;
}
return i;... | 19,504 |
https://github.com/moutonjeremy/print-requests/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,021 | print-requests | moutonjeremy | Go Module | Code | 15 | 60 | module print-requests
go 1.16
require (
github.com/gofiber/fiber/v2 v2.13.0 // indirect
github.com/rs/zerolog v1.23.0 // indirect
)
| 17,694 |
https://github.com/pjworrall/solid-vc/blob/master/auth/generate_keypair.sh | Github Open Source | Open Source | MIT | 2,021 | solid-vc | pjworrall | Shell | Code | 71 | 242 | #!/bin/sh
# Generate key pair
# Read appropriate configuration parameters
configFile=$PWD/../config.json
jsonApi=$PWD/../api/json.js
pubKeyFileLocLocalKey=PUB_FILE_LOCAL
privKeyFileLocLocalKey=PRIV_FILE_LOCAL
pubKeyFileLocal=`node $jsonApi --read --key=$pubKeyFileLocLocalKey --json=$configFile`
privKeyFileLocal=`node... | 50,102 |
https://github.com/ITBE-Lab/ma/blob/master/libs/ma/src/container/fMIndex.cpp | Github Open Source | Open Source | MIT | 2,022 | ma | ITBE-Lab | C++ | Code | 2,384 | 5,159 | /**
* @file fMIndex.cpp
* @author Arne Kutzner
*/
#include "ma/container/fMIndex.h"
#include <cstdlib>
using namespace libMA;
#define complement( x ) ( uint8_t ) NucSeq::nucleotideComplement( x )
SAInterval SuffixArrayInterface::extend_backward(
// current interval
const SAInterval& ik,
// the charact... | 12,882 |
https://github.com/jgwill/lampyno/blob/master/www/wp-content/plugins/wp-file-manager/languages/wp-file-manager-te.po | Github Open Source | Open Source | GPL-2.0-or-later, GPL-1.0-or-later, GPL-2.0-only, MIT | 2,019 | lampyno | jgwill | Gettext Catalog | Code | 589 | 2,204 | msgid ""
msgstr ""
"Project-Id-Version: WP File Manager\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-06 09:29+0000\n"
"PO-Revision-Date: 2017-09-11 17:40+0530\n"
"Last-Translator: admin <munishthedeveloper48@gmail.com>\n"
"Language-Team: \n"
"Language: te\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"MI... | 10,977 |
https://github.com/karstenBehrendt/benchmarks_website/blob/master/benchmarks/llamas/urls.py | Github Open Source | Open Source | MIT | 2,023 | benchmarks_website | karstenBehrendt | Python | Code | 75 | 457 | from django.urls import path
from . import views
from django.contrib.auth.views import LoginView, PasswordResetView,\
PasswordResetDoneView, PasswordResetConfirmView
urlpatterns = [
path('', views.index, name='index'),
path('index', views.index, name='index'),
path('contact', views.contact, name='cont... | 43,026 |
https://github.com/yuxing666/XUCore.NetCore/blob/master/test/XUCore.NetCore.RazorTests/PageModelHtmlStaticAttribute.cs | Github Open Source | Open Source | MIT | 2,021 | XUCore.NetCore | yuxing666 | C# | Code | 391 | 1,569 | using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
using XUCore.NetCore.Extensions;
using XUCore.Extensions;
using XUCore.Helpers;
using XUCore.IO;
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Micr... | 21,040 |
https://github.com/brambg/anno4j/blob/master/anno4j-core/src/test/java/com/github/anno4j/io/ObjectParserTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | anno4j | brambg | Java | Code | 1,100 | 4,350 | package com.github.anno4j.io;
import com.github.anno4j.Anno4j;
import com.github.anno4j.model.Annotation;
import com.github.anno4j.model.Body;
import com.github.anno4j.model.Target;
import com.github.anno4j.model.impl.ResourceObject;
import com.github.anno4j.model.namespaces.DCTYPES;
import com.github.anno4j.model.nam... | 28,947 |
https://github.com/prosany/Plumber-Client/blob/master/src/components/Dashboard/Order.js | Github Open Source | Open Source | MIT | null | Plumber-Client | prosany | JavaScript | Code | 169 | 562 | import React, { useEffect, useState } from 'react';
import { useHistory, useParams } from 'react-router';
import { useAuth } from '../../customHooks/useAuth';
import ProcessPayment from './Payment/ProcessPayment';
const Order = () => {
document.title = 'Order | Dashboard';
const { id } = useParams();
cons... | 27,674 |
https://github.com/mostafabarmshory/JPluf/blob/master/jpluf-retrofit/src/main/java/ir/co/dpq/pluf/PWikiPageDaoRetrofit.java | Github Open Source | Open Source | MIT | 2,016 | JPluf | mostafabarmshory | Java | Code | 398 | 1,582 | package ir.co.dpq.pluf;
import static ir.co.dpq.pluf.retrofit.wiki.WUtil.*;
import java.util.List;
import ir.co.dpq.pluf.km.PCategory;
import ir.co.dpq.pluf.km.PLabel;
import ir.co.dpq.pluf.retrofit.RPaginatorParameter;
import ir.co.dpq.pluf.retrofit.Util;
import ir.co.dpq.pluf.retrofit.wiki.IRWikiPageService;
import... | 20,526 |
https://github.com/zengyujiao/git/blob/master/jdsx/sever/07.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | git | zengyujiao | PHP | Code | 26 | 129 | <?php
header("Content-type:text/html;charset=utf-8");
$db = mysqli_connect("127.0.0.1","root","","shengxian");
$sql = "SELECT * FROM sx4";
$res = mysqli_query($db,$sql);
$data = mysqli_fetch_all($res,MYSQLI_ASSOC);
$ponse = array("status" => "success","data" => $data);
print_r(json_encode($ponse,true));
?> | 49,961 |
https://github.com/projectx13/projectx/blob/master/migration.go | Github Open Source | Open Source | BSD-3-Clause | null | projectx | projectx13 | Go | Code | 89 | 364 | package main
import (
"github.com/projectx13/projectx/repository"
"github.com/projectx13/projectx/xbmc"
)
func checkRepository() bool {
if xbmc.IsAddonInstalled("repository.projectx") {
if !xbmc.IsAddonEnabled("repository.projectx") {
xbmc.SetAddonEnabled("repository.projectx", true)
}
return true
}
lo... | 26,810 |
https://github.com/joaomedeiros95/django-davinci-crawling/blob/master/davinci_crawling/example/bovespa/crawling_parts/crawl_listed_companies.py | Github Open Source | Open Source | MIT | 2,019 | django-davinci-crawling | joaomedeiros95 | Python | Code | 447 | 1,768 | # -*- coding: utf-8 -*-
# Copyright (c) 2019 BuildGroup Data Services Inc.
import logging
import re
import itertools
import traceback
from dateutil.parser import parse as date_parse
from bs4 import BeautifulSoup
from multiprocessing.pool import Pool
from selenium.webdriver.support.wait import WebDriverWait
from se... | 38,977 |
https://github.com/MyOnlineStore/rabbitmq-manager-bundle/blob/master/Process/ProcessBuilderInterface.php | Github Open Source | Open Source | MIT | 2,017 | rabbitmq-manager-bundle | MyOnlineStore | PHP | Code | 426 | 914 | <?php
namespace MyOnlineStore\Bundle\RabbitMqManagerBundle\Process;
use Symfony\Component\Process\Exception\InvalidArgumentException;
use Symfony\Component\Process\Exception\LogicException;
interface ProcessBuilderInterface
{
/**
* Adds an unescaped argument to the command string.
*
* @param strin... | 23,475 |
https://github.com/elyor0529/docker-explorer-windows/blob/master/DockerExplorer/Model/DockerImageHistory.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | docker-explorer-windows | elyor0529 | C# | Code | 109 | 277 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Docker.DotNet.Models;
namespace DockerExplorer.Model
{
public class DockerImageHistory : DockerEntity
{
public DockerImageHistory(string id, DateTime created, string createdBy, IList<s... | 16,140 |
https://github.com/rlmyandaa/laravel-auth/blob/master/Modules/Dosen/Resources/views/pages/management/dailyreport/detail/dailyreport-detail.blade.php | Github Open Source | Open Source | MIT | null | laravel-auth | rlmyandaa | PHP | Code | 88 | 431 | @extends('modules.layouts.app-f')
@section('pagetittle')
<div>
Program Kerja Kelompok KKN
</div>
@endsection
@section('contentori')
<div>
<div class="card">
<div class="card-header text-center" style="font-weight:bold;">
Detail Laporan Harian Kelompok {{ $gname }}
</div>
<... | 46,432 |
https://github.com/lovyan03/esp-idf/blob/master/components/xtensa/include/xt_trax.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | esp-idf | lovyan03 | C | Code | 293 | 510 | // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// 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... | 17,748 |
https://github.com/OasisLMF/OasisLMF/blob/master/oasislmf/execution/runner.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | OasisLMF | OasisLMF | Python | Code | 277 | 1,214 | import logging
import multiprocessing
import os
import shutil
import subprocess
from ..utils.exceptions import OasisException
from ..utils.log import oasis_log
from .bash import genbash
## NEW IMPORTS
from .bash import create_bash_outputs, create_bash_analysis, bash_params, bash_wrapper
@oasis_log()
def run(analysi... | 50,313 |
https://github.com/vergithi/tc349/blob/master/week9/portfolio/work/jscalc/calculate.js | Github Open Source | Open Source | MIT | 2,014 | tc349 | vergithi | JavaScript | Code | 262 | 1,114 | function calculate() {
'use strict';
var total;
var exweight=0;
var mpweight=0;
var fnweight=0;
var excount=0;
var mpcount=0;
var fncount=0;
var exs = document.getElementById('exercises');
var mps = document.getElementById('mps');
var fin = document.getElementById('final');
var ex1 = document.getElementB... | 13,763 |
https://github.com/zufrizalyordan/es6-bootstrap-sass-jquery-browserify-babelify-example/blob/master/index.php | Github Open Source | Open Source | Unlicense | null | es6-bootstrap-sass-jquery-browserify-babelify-example | zufrizalyordan | PHP | Code | 37 | 194 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Test</title>
<link rel="stylesheet" href="dist/style.css">
<script src="dist/bundle.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="container">
<div c... | 1,948 |
https://github.com/isabella232/pulumi-kubernetes-crds/blob/master/operators/elastic-cloud-eck/dotnet/Kubernetes/Crds/Operators/ElasticCloudEck/Elasticsearch/V1/Outputs/ElasticsearchSpecUpdateStrategyChangeBudget.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | pulumi-kubernetes-crds | isabella232 | C# | Code | 165 | 342 | // *** WARNING: this file was generated by crd2pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Kubernetes.Types.O... | 39,901 |
https://github.com/pier-robot/gaffer/blob/master/src/GafferSceneUI/CameraVisualiser.cpp | Github Open Source | Open Source | BSD-3-Clause | null | gaffer | pier-robot | C++ | Code | 1,375 | 4,725 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... | 13,542 |
https://github.com/emersongin/plugin-manage-forms/blob/master/includes/interface/interface-script-js-register.php | Github Open Source | Open Source | MIT | 2,020 | plugin-manage-forms | emersongin | PHP | Code | 28 | 77 | <?php
defined( 'ABSPATH' ) || exit;
interface Interface_Script_JS_Register {
public function enqueue( Interface_Script $script );
public function register( Interface_Script_JS $script );
public function include_params( Interface_Script_JS $script );
}
| 40,845 |
https://github.com/GuangTianLi/cache-alchemy/blob/master/tests/__init__.py | Github Open Source | Open Source | MIT | 2,021 | cache-alchemy | GuangTianLi | Python | Code | 35 | 166 | import unittest
from fakeredis import FakeStrictRedis
from cache_alchemy.config import DefaultConfig
class TestCacheConfig(DefaultConfig):
CACHE_ALCHEMY_CACHE_KEY_PREFIX = "test:"
def get_config():
config = TestCacheConfig()
config.cache_redis_client = FakeStrictRedis.from_url(config.CACHE_ALCHEMY_RED... | 1,116 |
https://github.com/rollr76518/Moxture/blob/master/MoxtureTests/FuncMockCommonTests.swift | Github Open Source | Open Source | MIT | 2,021 | Moxture | rollr76518 | Swift | Code | 719 | 2,168 | //
// Copyright (c) 2021 Moxture Contributors
//
// 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... | 3,935 |
https://github.com/mlakkadshaw/synapse/blob/master/tests/rest/client/test_directory.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | synapse | mlakkadshaw | Python | Code | 647 | 2,372 | # Copyright 2019 New Vector Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 23,048 |
https://github.com/KWReidABB/ServiceBusExplorer/blob/master/src/ServiceBusExplorer/Controls/TestQueueControl.Designer.cs | Github Open Source | Open Source | Apache-2.0 | null | ServiceBusExplorer | KWReidABB | C# | Code | 8,215 | 50,809 | namespace Microsoft.Azure.ServiceBusExplorer.Controls
{
partial class TestQueueControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
#region Component Designer generated code
/// <sum... | 35,445 |
https://github.com/fmwong77/js-data-structures-objects-lab-austin-web-102819/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,019 | js-data-structures-objects-lab-austin-web-102819 | fmwong77 | JavaScript | Code | 63 | 175 | // Write your solution in this file!
let driver = {};
function updateDriverWithKeyAndValue(driver, key, value) {
let newObject = Object.assign({}, driver, { [key]: value });
return newObject;
}
function destructivelyUpdateDriverWithKeyAndValue(driver, key, value) {
return Object.assign(driver, { [key]: value })... | 35,214 |
https://github.com/benstuijts/darkage-framework/blob/master/server/routes/test_routes.js | Github Open Source | Open Source | MIT | null | darkage-framework | benstuijts | JavaScript | Code | 636 | 2,559 | 'use strict';
const express = require('express');
const router = express.Router();
const jsonfile = require('jsonfile');
const config = require('../modules/config-magic/config-magic.js').load('./server/config/config.json');
const Player = require('../models/Player');
const Enemy = require('../models/Enemy... | 16,397 |
https://github.com/chromium/chromium/blob/master/components/policy/core/common/cloud/cloud_policy_constants.cc | Github Open Source | Open Source | BSD-3-Clause | 2,023 | chromium | chromium | C++ | Code | 789 | 2,929 | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include <stdint.h>
#include "base/command_line.h"
#include "build/build_config.h"
#include "build/chr... | 9,690 |
https://github.com/severin87/PhotographyAddicted/blob/master/source/Services/PhotographyAddicted.Services.Models/Images/AddImageViewModel.cs | Github Open Source | Open Source | MIT | 2,019 | PhotographyAddicted | severin87 | C# | Code | 88 | 233 | using PhotographyAddicted.Data.Models;
using PhotographyAddicted.Web.Areas.Identity.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace PhotographyAddicted.Services.Models.Images
{
publi... | 35,091 |
https://github.com/ssapo/3MatchGame_Hexa/blob/master/HexaMatch/Assets/Scripts/TargetGoal.cs | Github Open Source | Open Source | MIT | 2,022 | 3MatchGame_Hexa | ssapo | C# | Code | 80 | 247 | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class TargetGoal : MonoBehaviour
{
public List<GameObject> lives;
public Renderer targetRenderer;
private int hp;
public int HP
{
get
{
return hp;
}
set
{
hp = value;
UpdateHP(hp);
}
}
public vo... | 30,870 |
https://github.com/ZhongAnTech/zarm/blob/master/packages/zarm/src/use-click-away/__tests__/index.test.tsx | Github Open Source | Open Source | MIT | 2,023 | zarm | ZhongAnTech | TSX | Code | 174 | 641 | import { fireEvent, render, screen } from '@testing-library/react';
import React from 'react';
import useClickAway from '..';
const TestDemo = ({ onClickAway, ...rest }) => {
const ref = React.createRef<HTMLDivElement>();
useClickAway(ref, onClickAway);
return (
<div {...rest}>
<div title="child1" ref... | 32,338 |
https://github.com/fyanardi/tealight-api-oanda-v20/blob/master/src/main/java/io/tealight/api/oanda/v20/def/account/AccountConfigurationRequest.java | Github Open Source | Open Source | MIT | 2,021 | tealight-api-oanda-v20 | fyanardi | Java | Code | 59 | 157 | // This Java source file was generated on 2020-10-03 10:25:47 (Malay Peninsula Standard Time)
package io.tealight.api.oanda.v20.def.account;
public class AccountConfigurationRequest {
private String alias;
private Double marginRate;
public String getAlias() {
return alias;
}
public void s... | 17,113 |
https://github.com/tusharchoudhary0003/Custom-Football-Game/blob/master/sources/p002b/p003c/p062h/p070f/C1289a.java | Github Open Source | Open Source | MIT | 2,019 | Custom-Football-Game | tusharchoudhary0003 | Java | Code | 102 | 343 | package p002b.p003c.p062h.p070f;
import android.support.p001v7.widget.RecyclerView.C0970a;
/* renamed from: b.c.h.f.a */
/* compiled from: AdapterListUpdateCallback */
public final class C1289a implements C1298e {
/* renamed from: a */
private final C0970a f4097a;
public C1289a(C0970a adapter) {
... | 46,523 |
https://github.com/imjohnbo/gh-polls-bot-action/blob/master/node_modules/probot/lib/middleware/logging.d.ts | Github Open Source | Open Source | MIT, ISC | 2,019 | gh-polls-bot-action | imjohnbo | TypeScript | Code | 51 | 113 | import express from 'express';
import Logger from 'bunyan';
export declare const logRequest: ({ logger }: any) => express.RequestHandler<import("express-serve-static-core").ParamsDictionary>;
export interface Request extends express.Request {
id?: string | number | string[];
log?: Logger;
}
export interface Res... | 36,043 |
https://github.com/baldowl/gem_leaves/blob/master/README.rdoc | Github Open Source | Open Source | MIT | 2,016 | gem_leaves | baldowl | RDoc | Code | 140 | 297 | = GemLeaves
gem_leaves is a rather dumb tool which lists the _leaves_ of your system. I
call _leaves_ the gems with no reverse dependency which can be safely removed
without breaking anything.
== FEATURES/PROBLEMS:
* User can customize the tool's behaviour with a simple, YAML configuration
file.
* The tool can g... | 7,408 |
https://github.com/tyiannak/yeelight_audio/blob/master/color_map_2d.py | Github Open Source | Open Source | MIT | 2,022 | yeelight_audio | tyiannak | Python | Code | 460 | 1,254 | import numpy as np
import cv2
import scipy.spatial
def get_color_for_point(point_coords, list_of_point_centers, list_of_colors):
"""
get_color_for_point() computes an RGB color value for a point in the
(-1, 1) 2D plane, based on a set of RGB color values, defined on particular
points of the same 2D pl... | 41,057 |
https://github.com/RaphaelK12/IceRay/blob/master/src/IceRay/type/ray/trace.hpp | Github Open Source | Open Source | MIT-0 | 2,020 | IceRay | RaphaelK12 | C++ | Code | 179 | 864 | #ifndef Dh_DDMM_IceRay_type_ray__trace_HPP_
#define Dh_DDMM_IceRay_type_ray__trace_HPP_
// GS_DDMRM::S_IceRay::S_type::S_ray::GC_trace
#include "../basic/size.hpp"
#include "IceRay/geometry/_type/state.hpp"
#include "./simple.hpp"
namespace GS_DDMRM
{
namespace S_IceRay
{
namespace S_type
{... | 23,466 |
https://github.com/jsonxr/react-native-material-ui/blob/master/.prettierignore | Github Open Source | Open Source | MIT | 2,021 | react-native-material-ui | jsonxr | Ignore List | Code | 2 | 25 | src/styles/colorManipulator.js
src/styles/colorManipulator.d.ts
| 50,080 |
https://github.com/doublegunz/pddikti/blob/master/application/views/home/index_home.php | Github Open Source | Open Source | MIT | null | pddikti | doublegunz | PHP | Code | 153 | 569 | <div class="konten">
<!-- Start: banner -->
<div class="slider"><img src="<?php echo base_url('assets/images/banner.png'); ?>"></div>
<marquee>Selamat Datang di Pangkalan Data Pendidikan Tinggi Universitas Swasta Tangerang.
</marquee>
</div>
<!-- End: banner -->
<!-- Start: Berita Terbaru -->
<div class="clearfix"... | 35,725 |
https://github.com/ebi-uniprot/uniprot-website/blob/master/src/tools/components/AlignmentView.tsx | Github Open Source | Open Source | MIT | null | uniprot-website | ebi-uniprot | TypeScript | Code | 1,149 | 3,647 | import {
useState,
useEffect,
useMemo,
Dispatch,
SetStateAction,
useRef,
useCallback,
FC,
} from 'react';
import { TreeSelect, Loader } from 'franklin-sites';
import { formatTooltip } from 'protvista-feature-adapter';
import useEventListener from '@use-it/event-listener';
import Wrapped from './Wrapped... | 42,668 |
https://github.com/chromium/chromium/blob/master/ios/chrome/browser/language/language_model_manager_factory.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | chromium | C++ | Code | 192 | 1,000 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/chrome/browser/language/language_model_manager_factory.h"
#include "base/feature_list.h"
#include "base/no_destructor.h"
#include "componen... | 21,111 |
https://github.com/nondejus/hedera-cli/blob/master/src/main/java/com/hedera/cli/hedera/crypto/AccountBalance.java | Github Open Source | Open Source | Apache-2.0 | null | hedera-cli | nondejus | Java | Code | 183 | 664 | package com.hedera.cli.hedera.crypto;
import com.hedera.cli.config.InputReader;
import com.hedera.cli.hedera.Hedera;
import com.hedera.cli.models.AccountManager;
import com.hedera.cli.shell.ShellHelper;
import com.hedera.hashgraph.sdk.Client;
import com.hedera.hashgraph.sdk.account.AccountId;
import lombok.Getter;
imp... | 39,449 |
https://github.com/Baransu/jsengine/blob/master/src/editor/js/camera.js | Github Open Source | Open Source | MIT | 2,015 | jsengine | Baransu | JavaScript | Code | 684 | 2,469 | Class({
name: 'Camera',
_options: {
hide: true
},
properties: {
lastMousePos: { type: Vec2 },
done: false,
zoomSpeed: 1,
origin: { type: Vec2 },
maxZoom: 0.05,
minZoom: 4,
translate: { type: Vec2 },
zoom: 0,
mouse: { type: Vec2 },
selectedActor: null,
modifier:... | 50,688 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/s/stripe/src/main/scala/typingsJapgolly/stripe/anon/TypeofIssuing.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 56 | 202 | package typingsJapgolly.stripe.anon
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait TypeofIssuing extends StObject {
val Available: Any
}
object TypeofIssuing {
inline def apply(Available:... | 36,067 |
https://github.com/emilyhunt/ScenarioGen/blob/master/ScenarioGen/src/com/laurel/ScenarioGen/Util.java | Github Open Source | Open Source | MIT | null | ScenarioGen | emilyhunt | Java | Code | 29 | 87 | package com.laurel.ScenarioGen;
public class Util {
public Util() {
}
public static boolean isNumeric(String str) {
try {
Integer.parseInt(str);
return true;
} catch(NumberFormatException e){
return false;
}
}
}
| 44,640 |
https://github.com/solid-abstractions/cryptomate/blob/master/cryptomate/run.py | Github Open Source | Open Source | MIT | 2,021 | cryptomate | solid-abstractions | Python | Code | 41 | 102 | """ Entry points for cryptomate deployments """
import argparse
import sys
def parse_arguments(args=None):
''' Convert command-line arguments into usable options '''
parser = argparse.ArgumentParser()
return parser.parse_args(args)
def main(args=None):
''' Entry point, installed as cli command '''
... | 4,050 |
https://github.com/anhlbt/Facial-Recognition-and-Alignment/blob/master/notebooks/log_dir/projector_config.pbtxt | Github Open Source | Open Source | MIT | 2,019 | Facial-Recognition-and-Alignment | anhlbt | Protocol Buffer Text Format | Code | 27 | 134 | embeddings {
tensor_name: "default:00000"
tensor_path: "00000/default/tensors.tsv"
metadata_path: "00000/default/metadata.tsv"
}
embeddings {
tensor_name: "default:00000"
tensor_path: "00000/default/tensors.tsv"
metadata_path: "00000/default/metadata.tsv"
sprite {
image_path: "00000/default/sprite.png"
single_image_dim... | 6,578 |
https://github.com/bitaculous/webby/blob/master/public/stylesheets/bundle/media/screen/x-small/common/_components.css.sass | Github Open Source | Open Source | MIT | null | webby | bitaculous | Sass | Code | 8 | 32 | // _components.css.sass
//
// @package bundle/media/screen/x-small/common
@mixin components | 34,774 |
https://github.com/rochzp/kms_seo/blob/master/lib/kms_seo.rb | Github Open Source | Open Source | MIT | 2,017 | kms_seo | rochzp | Ruby | Code | 8 | 27 | require "kms/seo/engine"
module Kms
module Seo
end
end
| 43,895 |
https://github.com/palpurdue/unitime/blob/master/JavaSource/org/unitime/timetable/solver/CommitedClassAssignmentProxy.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | unitime | palpurdue | Java | Code | 1,492 | 6,042 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | 1,348 |
https://github.com/Ludy2015/HDBaseProject/blob/master/Example/Pods/Pods.xcodeproj/xcuserdata/denglibing.xcuserdatad/xcschemes/xcschememanagement.plist | Github Open Source | Open Source | MIT | 2,016 | HDBaseProject | Ludy2015 | XML Property List | Code | 91 | 909 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>AFNetworking.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
</dict>
<key>HDBa... | 24,961 |
https://github.com/meihuangdd/MyGame/blob/master/MyGame/app/src/main/java/com/goldze/mvvmhabit/data/DemoRepository.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | MyGame | meihuangdd | Java | Code | 86 | 364 | package com.goldze.mvvmhabit.data;
import com.goldze.mvvmhabit.data.source.HttpDataSource;
import com.goldze.mvvmhabit.entity.DemoEntity;
import io.reactivex.Observable;
import me.goldze.mvvmhabit.base.BaseModel;
import me.goldze.mvvmhabit.http.BaseResponse;
/**
* MVVM的model层,统一模块的数据仓库,包含网络数据和本地数据(一个应用可以有多个Reposito... | 11,100 |
https://github.com/JuanBalceda/java-testing/blob/master/demo-app/src/test/java/com/balceda/tdd/SalesReportRunnerTest.java | Github Open Source | Open Source | MIT | null | java-testing | JuanBalceda | Java | Code | 36 | 134 | package com.balceda.tdd;
import static org.hamcrest.Matchers.containsString;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class SalesReportRunnerTest {
@Test
public void ShouldPrintSotreReportForSampleData() {
ApplicationRunner runner = new ApplicationRunner();
String report =... | 11,827 |
https://github.com/laurafitzgerald/data-sync-ui/blob/master/test/ui/DataSourcesContainer.test.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | data-sync-ui | laurafitzgerald | JavaScript | Code | 76 | 203 | import React from "react";
import { render } from "enzyme";
import { MockedProvider } from "react-apollo/test-utils";
import { DataSourcesContainer } from "../../ui/components/data-sources";
let wrapper;
beforeEach(() => {
wrapper = render(
<MockedProvider>
<DataSourcesContainer />
</... | 6,139 |
https://github.com/superowner/FaceDetectionByDlibForWindows/blob/master/Projects/DlibSharp/FrontalFaceDetector.cs | Github Open Source | Open Source | BSD-3-Clause, BSL-1.0 | 2,018 | FaceDetectionByDlibForWindows | superowner | C# | Code | 273 | 904 | namespace DlibSharp
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Security;
using System.Diagnostics;
public class FrontalFaceDetector : IDisposable
{
IntPtr detector = IntPtr.Zero;
IntPtr dets = ... | 14,030 |
https://github.com/feed57005/librfl/blob/master/rfl/reflected_unittest.cc | Github Open Source | Open Source | BSD-3-Clause | 2,019 | librfl | feed57005 | C++ | Code | 57 | 184 | // Copyright (c) 2015 Pavel Novy. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gtest/gtest.h"
#include "rfl/reflected.h"
namespace rfl {
TEST(TestPackageManifest, Basic) {
PackageManifest mf;
mf.SetEntry("module.name", "tes... | 43,804 |
https://github.com/acuariol/beatz/blob/master/src/components/SearchResult/User/index.tsx | Github Open Source | Open Source | MIT | 2,020 | beatz | acuariol | TSX | Code | 19 | 50 | import React from 'react';
function User(props: any) {
return (
<div
>
User
</div>
);
}
export default User
| 41,145 |
https://github.com/MDShakibul/Job_exam/blob/master/resources/views/admin/send_to_employee.blade.php | Github Open Source | Open Source | MIT | null | Job_exam | MDShakibul | PHP | Code | 288 | 1,287 | @extends('admin.admin_layout')
@section('title', 'All Application')
@section('admin_content')
<form action="{{URL::to('/send_file')}}" method="post" enctype="multipart/form-data">
@csrf
<table id="dynamicTable">
<tr>
<th>
Positon
</th>
<th>
... | 39,192 |
https://github.com/Suenaa/agenda-go/blob/master/cmd/cancel.go | Github Open Source | Open Source | WTFPL | 2,017 | agenda-go | Suenaa | Go | Code | 83 | 306 | package cmd
import (
"errors"
"fmt"
"github.com/Suenaa/agenda-go/service"
"github.com/Suenaa/agenda-go/tools"
"github.com/spf13/cobra"
"github.com/Suenaa/agenda-go/logs"
)
// cancelCmd represents the cancel command
var cancelCmd = &cobra.Command{
Use: "cancel",
Short: "cancel a meeting",
Long: `cancel a ... | 32,995 |
https://github.com/matiullah-karimi/dart-number-to-words/blob/master/lib/locales/en.dart | Github Open Source | Open Source | MIT | 2,019 | dart-number-to-words | matiullah-karimi | Dart | Code | 93 | 217 | final tensNames = [
"",
" ten",
" twenty",
" thirty",
" forty",
" fifty",
" sixty",
" seventy",
" eighty",
" ninety"
];
final numNames = [
"",
" one",
" two",
" three",
" four",
" five",
" six",
" seven",
" eight",
" nine",
" ten",
" eleven",
" twelve",
" thirteen",
" ... | 40,214 |
https://github.com/MatijaOreski/racuni/blob/master/resources/views/start/pocetna.blade.php | Github Open Source | Open Source | MIT | null | racuni | MatijaOreski | PHP | Code | 113 | 711 | @extends('layouts.app')
@section('content')
<div>
<br>
<h1>Dobrodošli!</h1>
<h3>Online izdavanje računa</h3>
<br><br>
<h2 id="obv">
<strong>{{ session('msg')}}</strong>
</h2>
<script>
const obv = document.getElementById('obv');
setTimeout(() => obv.remove(), 30... | 4,165 |
https://github.com/tomdev2008/endwork/blob/master/hospital/public/login/base.js | Github Open Source | Open Source | MIT | 2,016 | endwork | tomdev2008 | JavaScript | Code | 365 | 1,439 | //所有页都会用到的funcs
//地区层开始=========
var prox;
var proy;
var proxc;
var proyc;
function show(id){/*--打开--*/
var d=document.getElementById('showdiv');
clearInterval(prox);
clearInterval(proy);
clearInterval(proxc);
clearInterval(proyc);
var o = document.getElementById(id);
o.style.display = "block";
o.style.width... | 15,293 |
https://github.com/yoshito-n-students/nlopt11/blob/master/include/nlopt11x.hpp | Github Open Source | Open Source | MIT | null | nlopt11 | yoshito-n-students | C++ | Code | 1,052 | 3,824 | #ifndef NLOPT11X_HPP
#define NLOPT11X_HPP
#include <algorithm>
#include <array>
#include <functional>
#include <stdexcept>
#include <vector>
#include <nlopt.hpp>
namespace nlopt {
///////////////////////////////////////////////////////////////
// An enhanced version of nlplot::opt in flavor of c++11.
// nlopt::opt1... | 1,432 |
https://github.com/garrettendi/mobius-strip/blob/master/mobius-strip/mobius-strip/Writers/ScreenWriter.cs | Github Open Source | Open Source | MIT | 2,018 | mobius-strip | garrettendi | C# | Code | 261 | 633 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mobius
{
public class ScreenWriter
{
MainForm form;
internal ScreenWriter(MainForm f)
{
form = f;
}
internal void AddFullLine(string pre, string post, string fi... | 10,911 |
https://github.com/ryanbonial/pico-biz/blob/master/client-angular/src/app/authentication/authentication.service.ts | Github Open Source | Open Source | MIT | 2,017 | pico-biz | ryanbonial | TypeScript | Code | 67 | 210 | import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
@Injectable()
export class AuthenticationService {
public loggedInStatus: Subject<boolean> = new BehaviorSubject<boolean>(null);
private isLoggedIn: boolean;
constructor() ... | 11,154 |
https://github.com/joedayz/javaee7-samples/blob/master/Ventas/src/main/java/pe/joedayz/ventas/model/Persona.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | javaee7-samples | joedayz | Java | Code | 160 | 486 | package pe.joedayz.ventas.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.No... | 19,932 |
https://github.com/mg14/desh-data/blob/master/scripts/download_data.sh | Github Open Source | Open Source | Unlicense | 2,022 | desh-data | mg14 | Shell | Code | 29 | 184 | #! bash
set -x
# Make directories
mkdir -p data/compressed
# Download metadata
curl -L https://github.com/robert-koch-institut/SARS-CoV-2-Sequenzdaten_aus_Deutschland/raw/master/SARS-CoV-2-Sequenzdaten_Deutschland.csv.xz \
> data/compressed/metadata.csv.xz
# Download lineage data
curl -L https://github.com/robert-k... | 9,891 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.