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/palash24/algorithms-and-data-structures/blob/master/leetcode/0-250/169-454. 4Sum II.py | Github Open Source | Open Source | MIT | 2,022 | algorithms-and-data-structures | palash24 | Python | Code | 101 | 263 | # 454. 4Sum II
import collections
class Solution:
def fourSumCount(self, A, B, C, D):
"""
:type A: List[int]
:type B: List[int]
:type C: List[int]
:type D: List[int]
:rtype: int
"""
ab = {}
for a in A:
for b in B:
ab... | 46,894 |
https://github.com/viert/Pyrr/blob/master/pyrr/euler.py | Github Open Source | Open Source | BSD-2-Clause-Views, MIT, BSD-2-Clause | 2,014 | Pyrr | viert | Python | Code | 181 | 371 | # -*- coding: utf-8 -*-
"""Provide functions for the creation and manipulation of Euler angles.
Eulers represent 3 rotations: Pitch, Roll and Yaw.
Eulers are represented using a numpy.array of shape (3,).
"""
import numpy
class index:
#: The index of the pitch value within the euler
pitch = 0
#: The in... | 5,219 |
https://github.com/logigator/logigator/blob/master/logigator-backend/resources/private/templates/views/my-account-delete.hbs | Github Open Source | Open Source | MIT | 2,020 | logigator | logigator | null | Spoken | 33 | 267 | {{> user-space-nav }}
{{> account-mobile-nav title=i18n.USERSPACE.ACCOUNT.NAV.DELETE showBack=true }}
<div class="view-my-account-delete">
<section class="view-my-account-delete__container">
<div class="view-my-account-delete__account-nav">
{{> account-nav }}
</div>
<div class="view-my-account-delete__main"... | 22,220 |
https://github.com/drickferreira/rastreador/blob/master/modules/Vehicles/Config/config.php | Github Open Source | Open Source | MIT | null | rastreador | drickferreira | PHP | Code | 7 | 19 | <?php
return [
'name' => 'Vehicles'
]; | 52,230 |
https://github.com/sarahtrop/dance-index/blob/master/db/migrate/20170510212423_remove_b_part_figures_from_contra.rb | Github Open Source | Open Source | MIT, Beerware, LicenseRef-scancode-unknown-license-reference | 2,017 | dance-index | sarahtrop | Ruby | Code | 12 | 43 | class RemoveBPartFiguresFromContra < ActiveRecord::Migration
def change
remove_column :contras, :b_part_figures, :string
end
end
| 20,056 |
https://github.com/axtens/tsl/blob/master/TSL2XX.MOD | Github Open Source | Open Source | MIT | 2,022 | tsl | axtens | null | Spoken | 1,919 | 7,060 | MODULE TextSubstitutionLanguage;
FROM ASCII IMPORT NUL, CR, LF;
FROM Strings IMPORT Copy, Assign, Append, Length, Pos, Insert, Delete, CompareStr;
FROM SLICE IMPORT Slice;
FROM XDOS IMPORT BlockReadCreate, BlockReadLine, BlockReadDestroy, ReadFileLine;
IMPORT Files;
FROM XString IMPORT IndexInList, Exact, UpperCase,
... | 26,197 |
https://github.com/shirakaba/rpstrackerrns/blob/master/app/core/contracts/services/pt-auth-service.contract.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | rpstrackerrns | shirakaba | TypeScript | Code | 29 | 105 | import { PtLoginModel, PtRegisterModel, PtUser } from '~/core/models/domain';
export interface PtAuthService {
getCurrentUser(): PtUser;
getCurrentUserId(): number | undefined;
isLoggedIn(): boolean;
login(loginModel: PtLoginModel): Promise<PtUser>;
register(registerModel: PtRegisterModel): Promise<PtUser>;
... | 35,699 |
https://github.com/SZeravic/Education/blob/master/_Examples/_KS/Gatsby_Ex3_AK/src/components/Header/index.js | Github Open Source | Open Source | MIT | 2,019 | Education | SZeravic | JavaScript | Code | 50 | 212 | import React from "react";
import NavLink from "./NavLink";
import styles from "./styles.module.css";
export default () => (
<div className={styles.nav}>
<span id={styles.title}>Money Today</span>
<span id={styles.login}>login / register </span>
<nav className={styles.navBar}>
<span className={st... | 8,127 |
https://github.com/weichenchao1004/wuf/blob/master/projects/kion/kg-ang-app-core/src/lib/submodule/imodule.ts | Github Open Source | Open Source | MIT | 2,018 | wuf | weichenchao1004 | TypeScript | Code | 24 | 55 | /*
* Copyright (c) 2018 Dematic, Corp.
* Licensed under the MIT Open Source: https://opensource.org/licenses/MIT
*/
export interface IModule {
readonly implIModule: boolean;
}
| 11,461 |
https://github.com/facebook/react/blob/master/scripts/release/shared-commands/test-packaging-fixture.js | Github Open Source | Open Source | MIT | 2,023 | react | facebook | JavaScript | Code | 187 | 558 | #!/usr/bin/env node
'use strict';
const {exec} = require('child-process-promise');
const {join} = require('path');
const puppeteer = require('puppeteer');
const server = require('pushstate-server');
const theme = require('../theme');
const {logPromise} = require('../utils');
const validate = async () => {
const br... | 27,660 |
https://github.com/bwkeller/WVTICs/blob/master/src/tree.c | Github Open Source | Open Source | MIT | 2,023 | WVTICs | bwkeller | C | Code | 1,437 | 3,528 | #include "globals.h"
#include "tree.h"
#define NODES_PER_PARTICLE 2
struct Tree_Node {
uint32_t Bitfield; // bit 0-5:level, 6-8:key, 9:local, 10:top, 11-31:free
int DNext; // Distance to the next node; or particle -DNext-1
double Pos[3]; // Node Center
int Npart; // Number of ... | 17,180 |
https://github.com/maidouofgithub/FreeSql/blob/master/FreeSql.Tests/FreeSql.Tests/Other/IdentityType.cs | Github Open Source | Open Source | MIT | 2,022 | FreeSql | maidouofgithub | C# | Code | 24 | 77 | using System;
using System.Collections.Generic;
using System.Text;
namespace Zeus.Domain.Enum
{
/// <summary>
/// 登录类型
/// </summary>
public enum IdentityType
{
Account,
Email,
Mobile
}
}
| 46,683 |
https://github.com/adamstruck/ga4ghr/blob/master/man/searchReads.Rd | Github Open Source | Open Source | Apache-2.0 | 2,016 | ga4ghr | adamstruck | R | Code | 224 | 467 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reads.R
\name{searchReads}
\alias{searchReads}
\title{Get reads from a GA4GH compliant server.}
\usage{
searchReads(base_url,
readGroupIds = list("MWtnLXAzLXN1YnNldDpIRzAwNTM0OkVSUjAyMDIzOA=="),
referenceId = "R1JDaDM4LXN1YnNldDoz", start... | 28,384 |
https://github.com/kurcob84/angular2backend/blob/master/database/seeds/ExperienceSkillTableSeeder.php | Github Open Source | Open Source | MIT | null | angular2backend | kurcob84 | PHP | Code | 61 | 232 | <?php
use Illuminate\Database\Seeder;
use App\Models\Misc\ExperienceSkill;
class ExperienceSkillTableSeeder extends Seeder {
public function run() {
//DB::table('experience_skill')->delete();
// Patrick Rogge
ExperienceSkill::create(array(
'experience_id' => 1,
'sk... | 22,686 |
https://github.com/proyectoadn/proyectoadn/blob/master/resources/views/PhpAuxiliares/categorias.php | Github Open Source | Open Source | MIT | null | proyectoadn | proyectoadn | PHP | Code | 53 | 237 | <?php
/**
* Carga las categorias que tiene el rol seleccionado.
* Created by PhpStorm.
* User: DAW2
* Date: 31/01/2017
* Time: 10:42
*/
require_once 'Conexion.php';
$conexion = new Conexion();
$vector=[];
$rol = json_decode($_POST['rol']);
if($conexion->conectar()){
$conexion->rellenar_categorias($rol);
... | 2,254 |
https://github.com/piyusharorawork/webstudio-designer/blob/master/app/shared/component/draggable.ts | Github Open Source | Open Source | MIT | 2,022 | webstudio-designer | piyusharorawork | TypeScript | Code | 36 | 82 | import type { XYCoord } from "react-dnd";
import { type Instance } from "@webstudio-is/sdk";
export type DragData = {
instance: Instance;
currentOffset: XYCoord;
};
export type DropData = {
instance: Instance;
position: number | "end";
};
| 2,577 |
https://github.com/jeremie1112/xmr/blob/master/build/release/src/crypto/CMakeFiles/obj_cncrypto.dir/DependInfo.cmake | Github Open Source | Open Source | BSD-3-Clause | null | xmr | jeremie1112 | CMake | Code | 150 | 2,096 | # The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"C"
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_C
"/home/torre/Desktop/monero-latest/monero/src/crypto/aesb.c" "/home/torre/Desktop/monero-latest/monero/build/release... | 52,697 |
https://github.com/bastianleicht/blackhost_cp/blob/master/resources/customer/kvm/option.php | Github Open Source | Open Source | MIT | 2,022 | blackhost_cp | bastianleicht | PHP | Code | 30 | 105 | <option <?php if($row['disabled'] == "1"){echo 'disabled';} ?>
data-price="<?= $row['price']; ?>"
value="<?= $row['value']; ?>">
<?= $row['name']; ?> (+ <?= $row['price']; ?>€)
<?php if($row['disabled'] == "1"){echo '- Zurzeit nicht verfügbar';} ?>
</option> | 43,526 |
https://github.com/wfb0902/Music/blob/master/Music-Client-iOS/NIMMuiscTeach/NIMMuiscTeach/Class/UI/Teachroom/View/NTESControlPanel.h | Github Open Source | Open Source | MIT | 2,019 | Music | wfb0902 | Objective-C | Code | 99 | 463 | //
// NTESControlPanel.h
// NIMMuiscTeach
//
// Created by emily on 2018/4/2.
// Copyright © 2018 netease. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, NTESVideoMode) {
NTESVideoModeVoice = 1,
NTESVideoModeSingle,
NTESVideoModeDuplex,
};
@class NTESControlPanel;
@protoco... | 24,902 |
https://github.com/alexsven/sdk-mcu-drivers/blob/master/cs47l15/cs47l15_ext.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | sdk-mcu-drivers | alexsven | C | Code | 1,248 | 4,116 | /**
* @file cs47l15_ext.c
*
* @brief The CS47L15 Driver Extended API module
*
* @copyright
* Copyright (c) Cirrus Logic 2020-2021 All Rights Reserved, http://www.cirrus.com/
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* Y... | 28,162 |
https://github.com/robolectric/robolectric/blob/master/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAudioManager.java | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | robolectric | robolectric | Java | Code | 2,931 | 9,491 | package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.LOLLIPOP;
import static android.os.Build.VERSION_CODES.M;
import static android.os.Build.VERSION_CODES.N;
import static android.os.Build.VERSION_CODES.O;
import static android.os.Build.VERSION_CODES.P;
import static android.os.Build.VERSION_... | 36,011 |
https://github.com/qq744788292/cnsoft/blob/master/3.0.1.0/CN-Framework-Core-1100/src/main/java/org/cnsoft/framework/log/LogDataSupport.java | Github Open Source | Open Source | BSD-3-Clause-Clear | null | cnsoft | qq744788292 | Java | Code | 117 | 525 | package org.cnsoft.framework.log;
import org.cnsoft.framework.beans.MyBeanFactoryHelper;
import org.cnsoft.framework.common.ISLog;
import org.cnsoft.framework.constants.ICBussinessConstants;
import org.cnsoft.framework.support.MyFrameWorkSupport;
import org.cnsoft.framework.utils.DateHelper;
import org.cnsoft.framewor... | 33,011 |
https://github.com/FAOSTAT/faostat/blob/master/ui/submodules/fenix-ui-map-creator/src/html/templates/custom_template.hbs | Github Open Source | Open Source | MIT | 2,021 | faostat | FAOSTAT | null | Spoken | 43 | 239 | <div class="fs-map panel panel-default fs-map hoverable {{#if class}}{{class}}{{/if}}" {{#if style}}style="{{style}}"{{/if}}>
<div class="panel-heading">
{{#if addExport}}
<div class="pull-right flip">
<a class="btn-floating waves-effect waves-light btn-default" data-role="export... | 19,987 |
https://github.com/vgillella/incovid19-react/blob/master/src/components/ScatterPlot.js | Github Open Source | Open Source | MIT | null | incovid19-react | vgillella | JavaScript | Code | 1,152 | 3,886 | import {STATE_NAMES} from '../constants';
import {useEffect} from 'react';
const VaccinationScatterPlot = (props) => {
const {data} = props;
const scatter = (json, id) => {
const margin = {top: 60, left: 35, bottom: 35, right: 50};
const heightValue = 400;
const widthValue = 800;
const getCurrentD... | 3,052 |
https://github.com/LaoKpa/Esper-Engine-Service/blob/master/src/org/ipvs_as/engine/Query.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Esper-Engine-Service | LaoKpa | Java | Code | 64 | 170 | package org.ipvs_as.engine;
import org.ipvs_as.event.adapter.DataConnector;
/**
* @author Ana Cristina Franco da Silva, University of Stuttgart
*
*/
public class Query {
private String query;
private DataConnector subscriber;
public Query() {
}
public String getQuery() {
return query;
}
... | 8,598 |
https://github.com/bazelbuild/rules_go/blob/master/tests/core/cgo/BUILD.bazel | Github Open Source | Open Source | Apache-2.0 | 2,023 | rules_go | bazelbuild | Starlark | Code | 1,000 | 4,308 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@io_bazel_rules_go//go/tools/bazel_testing:def.bzl", "go_bazel_test")
go_test(
name = "opts_test",
srcs = ["adder_test.go"],
embed = [":opts"],
)
genrule(
name = "generate_header_copts",
outs = ["generated_copts/gen... | 2,708 |
https://github.com/AnySoftKeyboard/AnySoftKeyboard/blob/master/ime/app/src/test/java/com/anysoftkeyboard/quicktextkeys/ui/QuickTextViewFactoryTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | AnySoftKeyboard | AnySoftKeyboard | Java | Code | 57 | 335 | package com.anysoftkeyboard.quicktextkeys.ui;
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
import static com.menny.android.anysoftkeyboard.AnyApplication.prefs;
import static org.mockito.Mockito.mock;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.anys... | 14,516 |
https://github.com/AlexanderSher/RTVS-Old/blob/master/src/Markdown/Editor/Impl/Commands/MdPackageCommandId.cs | Github Open Source | Open Source | MIT | 2,019 | RTVS-Old | AlexanderSher | C# | Code | 69 | 165 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
namespace Microsoft.Markdown.Editor.Commands {
public static class MdPackageCommandId {
public static readonly Guid MdCmdSetGuid = new Gui... | 32,536 |
https://github.com/BigWan/BigGame_RunRun/blob/master/Assets/Prefabs/Blocks/Ground_Middle_Long.prefab | Github Open Source | Open Source | MIT | 2,018 | BigGame_RunRun | BigWan | Unity3D Asset | Code | 695 | 3,130 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_SourcePrefab: {fileID: 0}
m_RootGameObject: {fileID: 1165414701006008}
m_IsPrefabAsset: 1... | 5,865 |
https://github.com/yeokm1/retro-configs/blob/master/laptops/thinkpad-t42/dos6driv/Ac97drvA/DRVPRC.PAS | Github Open Source | Open Source | MIT | 2,023 | retro-configs | yeokm1 | Pascal | Code | 638 | 3,727 | unit Drvprc;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
inifiles,khz,jeff,PCI,misc,AC97,ICH,ICHdma,{usbdefs,}mmsystem,wwrite,tintlist,{pci,}Forms, Dialogs, StdCtrls,mmddk,unit2;
var enh386:boolean;
function finish:byte; export;
function NewDriverProc(DriverIdentifier: Lon... | 20,986 |
https://github.com/Rezouce/selector/blob/master/src/Parser/ParserException.php | Github Open Source | Open Source | MIT | null | selector | Rezouce | PHP | Code | 9 | 25 | <?php
namespace Selector\Parser;
class ParserException extends \Exception
{
}
| 51,745 |
https://github.com/jimbeveridge/multithreading/blob/master/src/PrntWait.03/PrntWait.c | Github Open Source | Open Source | MIT | 2,022 | multithreading | jimbeveridge | C | Code | 1,487 | 5,111 | /*
* PrntWait.c
*
* Sample code for "Multithreading Applications in Win32"
* This is from Chapter 3, Listing 3-4
*
* Demonstrate background printing and
* using MsgWaitForMultipleObjects to
* wait for threads to exit.
*/
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#... | 4,831 |
https://github.com/xiaohaijin/AMPT/blob/master/src/rpiret.f90 | Github Open Source | Open Source | MIT | 2,021 | AMPT | xiaohaijin | null | Spoken | 114 | 444 | Subroutine rpiret(i1, i2, lbb1, lbb2, ei1, ei2, iblock, iseed)
Parameter (maxstr=150001)
Parameter (ap1=0.13496, ap2=0.13957, etam=0.5475, arho=0.77)
Common /ee/id(maxstr), lb(maxstr)
Common /ppb1/ene, factr2(6), fsum, ppinnb, s, wtot
Common /ppmm/pprr, ppee, pppe, rpre, xopoe, rree
Common /rndf77/nseed
S... | 38,095 |
https://github.com/rodleviton/rp-prototype/blob/master/reactive-pixels-app/src/modules/reactive-pixels-ui/components/IframeLoader/index.ts | Github Open Source | Open Source | MIT | 2,018 | rp-prototype | rodleviton | TypeScript | Code | 8 | 16 | export { default as IframeLoader } from './IframeLoader';
| 40,841 |
https://github.com/mynameisdongdada/deathearth/blob/master/wormhole-web/src/main/webapp/velocity/js/components/file-box.js | Github Open Source | Open Source | MIT | 2,022 | deathearth | mynameisdongdada | JavaScript | Code | 66 | 205 | define(['lodash', 'jquery'], function(_, $) {
var FileBox = function ($el) {
this.$el = $el
this.init()
}
FileBox.prototype.init = function () {
var $file = this.$el.find(':file')
var $text = this.$el.find('.file-text')
var defaultText = $text.text()
$file.on('change', ... | 27,285 |
https://github.com/qRdlvNqWw2Z1zTmj/twitchnot/blob/master/src/main/java/de/tobj/twitch/streamobserver/channel/result/Stream.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | twitchnot | qRdlvNqWw2Z1zTmj | Java | Code | 240 | 889 | package de.tobj.twitch.streamobserver.channel.result;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "_links", "is_playli... | 17,955 |
https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/providers/gumroad/tests.py | Github Open Source | Open Source | MIT | 2,023 | django-allauth | pennersr | Python | Code | 53 | 241 | # -*- coding: utf-8 -*-
from allauth.socialaccount.providers.gumroad.provider import GumroadProvider
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
class GumroadTests(OAuth2TestsMixin, TestCase):
provider_id = GumroadProvider.id
def get_mocked_resp... | 38,640 |
https://github.com/CreativeBuilds/cheese-scripts/blob/master/contracts/IERC20.sol | Github Open Source | Open Source | MIT | null | cheese-scripts | CreativeBuilds | Solidity | Code | 64 | 147 | interface WIERC20 {
function balanceOf(address _owner) external view returns (uint256);
function allowance(address _owner, address _spender) external view returns (uint256);
function transfer(address _to, uint256 _value) external returns (bool);
function transferFrom(address _from, address _to, uint256 _value) ... | 40,355 |
https://github.com/AXErunners/axewallet-ios/blob/master/AxeWallet/Sources/UI/Payments/Amount/DWSendAmountViewController.m | Github Open Source | Open Source | MIT | 2,020 | axewallet-ios | AXErunners | Objective-C | Code | 271 | 917 | //
// Created by Andrew Podkovyrin
// Copyright © 2019 Axe Core Group. All rights reserved.
//
// 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
//
// https://opensource.org/licenses/MIT
//
// Unless r... | 29,247 |
https://github.com/milandhore/TalendBigData/blob/master/components/components-azurestorage/src/main/java/org/talend/components/azurestorage/AzureConnectionWithSasService.java | Github Open Source | Open Source | Apache-2.0 | null | TalendBigData | milandhore | Java | Code | 222 | 640 | // ============================================================================
//
// Copyright (C) 2006-2017 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 53,141 |
https://github.com/Chandanil/useStepper/blob/master/example/.npmignore | Github Open Source | Open Source | MIT | 2,021 | useStepper | Chandanil | Ignore List | Code | 4 | 11 | node_modules
.cache
dist
example | 3,319 |
https://github.com/Rohzek/CSC435-635-NotesApp/blob/master/node_modules/aurelia-toolbelt/src/components/jquery/block-ui/sharedOptions.ts | Github Open Source | Open Source | MIT | 2,021 | CSC435-635-NotesApp | Rohzek | TypeScript | Code | 67 | 170 | import { singleton } from 'aurelia-dependency-injection';
// We save all options per conponent. [id, settings from component, option from plugin, default options]
@singleton()
export class SharedOptions {
private allOptions: any = {};
public getOption(id: string): any {
return this.allOptions[id];
... | 46,943 |
https://github.com/mozfet/twentytwenty/blob/master/imports/ui/components/transactions/updateForm.js | Github Open Source | Open Source | MIT | null | twentytwenty | mozfet | JavaScript | Code | 82 | 237 | import './updateForm.js'
// imports
import { Meteor } from 'meteor/meteor'
import { Template } from 'meteor/templating'
import './updateForm.html'
// on created
Template.updateTransactionForm.onCreated(() => {
const instance = Template.instance()
Log.log(['debug', 'transactions'], `Update transactions form:`, ins... | 44,319 |
https://github.com/akb89/pyfn/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,020 | pyfn | akb89 | Python | Code | 160 | 629 | #!/usr/bin/env python3
"""pyfn setup.py.
This file details modalities for packaging the pyfn application.
"""
from setuptools import setup
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setup(
name='pyfn',
description='A python module to process data for Frame Semantic... | 54,084 |
https://github.com/shawnsandy/jarvis/blob/master/gulpfile.js | Github Open Source | Open Source | MIT | 2,018 | jarvis | shawnsandy | JavaScript | Code | 311 | 1,165 | /**
* Created by shawnsandy on 8/14/16.
*/
var gulp = require("gulp");
var q = require("q");
var path = require("path");
var fs = require("fs");
var Grunticon = require("grunticon-lib");
var _ = require("underscore");
var imagemin = require("gulp-imagemin");
var sass = require("gulp-sass");
var notify = require("gulp... | 30,550 |
https://github.com/agiledevcl/challenge2017/blob/master/ch02/src/main/java/cl/agile/core/Application.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | challenge2017 | agiledevcl | Java | Code | 459 | 2,105 | package cl.agile.core;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfigurat... | 46 |
https://github.com/exigow/intellij-gdscript/blob/master/gen/gdscript/psi/ScriptExpression.java | Github Open Source | Open Source | MIT | 2,022 | intellij-gdscript | exigow | Java | Code | 47 | 200 | // This is a generated file. Not intended for manual editing.
package gdscript.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface ScriptExpression extends PsiElement {
@NotNull
List<ScriptArrayExpression> getArrayExpressionList();
@NotNull
Li... | 43,216 |
https://github.com/devict/magopie/blob/master/cmd/magopie/site_kat_test.go | Github Open Source | Open Source | MIT | 2,021 | magopie | devict | Go | Code | 154 | 1,120 | package main
import (
"os"
"reflect"
"testing"
mp "github.com/devict/magopie"
)
func TestKATParse(t *testing.T) {
data, err := os.Open("testdata/kat_ubuntu.xml")
if err != nil {
t.Fatal("Error opening fixture", err)
}
defer data.Close()
actual, err := katParse(data)
if err != nil {
t.Fatal("katParse e... | 32,210 |
https://github.com/1ilsang/Toy-Blind/blob/master/frontend/src/components/body/board/ListCards.vue | Github Open Source | Open Source | MIT | 2,022 | Toy-Blind | 1ilsang | Vue | Code | 1,004 | 3,680 | <template>
<ul class="lst">
<div v-for="(item, idx) in postList" :key="item.seq">
<li class="word-break">
<div class="mark">
<div class="tag_">
<a v-if="topic === 'Topics'" title="Tech Careers" class="topic">{{ item.topic }}</a>
... | 49,009 |
https://github.com/afcw/yelp/blob/master/fresh_yelp/BusinessViewController.swift | Github Open Source | Open Source | MIT | 2,014 | yelp | afcw | Swift | Code | 459 | 1,762 | //
// BusinessViewController.swift
// fresh_yelp
//
// Created by Wanda Cheung on 10/4/14.
//
import UIKit
class BusinessViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate, FiltersViewDelegate {
@IBOutlet weak var tableView: UITableView!
var searchBar: UISear... | 37,270 |
https://github.com/rmaldrix/DOC/blob/master/engine-plugins/giraph-plugins/src/main/scala/org/trustedanalytics/atk/giraph/config/lbp/LoopyBeliefPropagationArgs.scala | Github Open Source | Open Source | Apache-2.0 | null | DOC | rmaldrix | Scala | Code | 625 | 1,481 | /*
// Copyright (c) 2015 Intel Corporation
//
// 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... | 18,044 |
https://github.com/CoprHD/sds-controller/blob/master/controllersvc/src/main/test/com/emc/storageos/volumecontroller/impl/metering/plugins/smis/SMICommunicationInterfaceTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | sds-controller | CoprHD | Java | Code | 884 | 4,117 | /*
* Copyright (c) 2008-2011 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.volumecontroller.impl.metering.plugins.smis;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.... | 52,064 |
https://github.com/Definux/Emeraude/blob/master/samples/EmDoggo/src/EmDoggo/Views/Client/Shared/EmPages/Index.cshtml | Github Open Source | Open Source | Apache-2.0 | 2,021 | Emeraude | Definux | C# | Code | 20 | 146 | @model IInitialState
@{
Layout = "_Layout";
}
<div asp-emeraude-app="true" asp-server-bundle="/wwwroot/dist/bundle.server.js" asp-initial-state="Model"></div>
<script src="~/dist/vendors.client.js.gz" asp-append-version="true"></script>
<script src="~/dist/manifest.client.js.gz" asp-append-version="true"></script>... | 37,748 |
https://github.com/Iain05/fusliez-notes/blob/master/src/components/MapsContent/MapsContent.tsx | Github Open Source | Open Source | MIT | 2,020 | fusliez-notes | Iain05 | TSX | Code | 231 | 830 | // import Draggable from "react-draggable";
import React from "react";
import useStyles from "./MapsContent.styles";
import FeedbackForm from "../FeedbackForm";
import Button from "components/common/Button";
export default function MapsContent(): JSX.Element {
const [map, setMap] = React.useState("skeld");
const [... | 8,720 |
https://github.com/nategraf/snare/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,021 | snare | nategraf | Python | Code | 177 | 536 | import setuptools
import subprocess
import os
import re
root = os.path.dirname(os.path.realpath(__file__))
vexp = re.compile(r'v(\d+)(\.\d+)+([.-]\w+)?')
def cmd(*args):
return subprocess.check_output(args, cwd=root).decode().strip()
def tag():
t = cmd('git', 'tag', '-l', '--contains', 'HEAD') or "v0.0.dev0"
... | 46,417 |
https://github.com/kortsmit/picturesque/blob/master/resources/assets/sass/app.scss | Github Open Source | Open Source | MIT | 2,017 | picturesque | kortsmit | SCSS | Code | 45 | 244 |
// Fonts
//@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600);
// Variables
//@import "variables";
// Bootstrap
@import "../../../node_modules/bootstrap/scss/bootstrap";
.container {
padding-top: 20px
}
.list-group-item {
&.router-link-active,
&.router-link-active:hover,
&.router-link... | 21,092 |
https://github.com/yshinya6/ParserMark/blob/master/grammar/elkhound/elsa-and-friends-master/smbase/smbase.xcodeproj/xcuserdata/dctrotz.xcuserdatad/xcschemes/xcschememanagement.plist | Github Open Source | Open Source | LicenseRef-scancode-public-domain, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,017 | ParserMark | yshinya6 | XML Property List | Code | 57 | 497 | <?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>smbase lib.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
</dict>
... | 39,976 |
https://github.com/asudoh/delite/blob/master/mobile/themes/iphone/common.less | Github Open Source | Open Source | BSD-3-Clause | null | delite | asudoh | Less | Code | 96 | 528 | @import "variables.less";
@import "../common/common.less";
/* iOS 6 specific */
.dj_ios6 {
.duiColorBlue {
.background-image-linear-gradient-top-bottom(#89abec, #2057c1);
}
.duiColorBlue45 {
.background-image-linear-gradient-top-left-bottom-right(#89abec, #2057c1);
}
}
.dj_ios6.dj_phone {
body {
background-... | 17,403 |
https://github.com/deadlyicon/STDLIB.js/blob/master/src/Function/defer.js | Github Open Source | Open Source | MIT | 2,019 | STDLIB.js | deadlyicon | JavaScript | Code | 10 | 32 | //= require "Function/delay"
Function.prototype.defer = function(timeout) {
return this.delay();
};
| 11,596 |
https://github.com/sihrc/Personal-Code-Bin/blob/master/project-euler/problem_170.cpp | Github Open Source | Open Source | Apache-2.0 | 2,014 | Personal-Code-Bin | sihrc | C++ | Code | 126 | 202 | /*
Find the largest 0 to 9 pandigital that can be formed by concatenating products.
Problem 170
Take the number 6 and multiply it by each of 1273 and 9854:
6 1273 = 7638
6 9854 = 59124
By concatenating these products we get the 1 to 9 pandigital 763859124. We will call 763859124 the "concatenated product of 6 and (... | 31,729 |
https://github.com/ricardozanini/kogito-runtimes/blob/master/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows/CallbackStateIT.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | kogito-runtimes | ricardozanini | Java | Code | 173 | 578 | /*
* Copyright 2022 Red Hat, Inc. and/or its affiliates.
*
* 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... | 25,499 |
https://github.com/petrovicstefanrs/vr_library_interface/blob/master/src/components/forms/InputField.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | vr_library_interface | petrovicstefanrs | JavaScript | Code | 158 | 693 | import React, {Component} from 'react';
import TextField from '@material-ui/core/TextField';
import PropTypes from 'prop-types';
class InputField extends Component {
static propTypes = {
label: PropTypes.string,
multiline: PropTypes.bool,
onChange: PropTypes.func,
name: PropTypes.string,
id: PropTypes.strin... | 668 |
https://github.com/chrisgschon/M5Forecasting-Uncertainty/blob/master/main.py | Github Open Source | Open Source | MIT | null | M5Forecasting-Uncertainty | chrisgschon | Python | Code | 202 | 715 | import os
import warnings
warnings.filterwarnings('ignore')
import pandas as pd
import numpy as np
import argparse
from fbprophet import Prophet
import sqlite3
from modules import DataLoader, EQModel, Series, wpl, quantiles_list
datadir = './data/raw'
## define how you want to fit the model
def fit(s, **params):
... | 121 |
https://github.com/medns/Hippy/blob/master/packages/hippy-web-renderer/src/base/engine.ts | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | Hippy | medns | TypeScript | Code | 636 | 1,817 | /*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2022 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 551 |
https://github.com/janekbar5/lar-pest-control/blob/master/resources/views/_partials/3-left-sidebar.blade.php | Github Open Source | Open Source | MIT | null | lar-pest-control | janekbar5 | PHP | Code | 324 | 1,526 | <aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="index3.html" class="brand-link">
<img src="img/newlogo.png" alt="AdminLTE Logo" class="brand-image " style="opacity: .8">
<span class="brand-text font-weight-light"> </span>
</a>
... | 25,597 |
https://github.com/RinMinase/anidb-be/blob/master/tests/Feature/User/RegistrationTest.php | Github Open Source | Open Source | ISC | 2,023 | anidb-be | RinMinase | PHP | Code | 247 | 1,001 | <?php
namespace Tests\Feature\User;
use Tests\BaseTestCase;
use App\Models\User;
class RegistrationTest extends BaseTestCase {
public function test_user_registration() {
$test_email = "unit_testing@mail.com";
$test_password = "e9597119-8452-4f2b-96d8-f2b1b1d2f158";
// Clearing possible duplicate data... | 39,262 |
https://github.com/lypcore/Blade.Admin/blob/master/src/Blade.Util/DI/IScopeDependency.cs | Github Open Source | Open Source | MIT | 2,020 | Blade.Admin | lypcore | C# | Code | 15 | 56 | namespace Blade.Util
{
/// <summary>
/// 注入标记,生命周期为Scope
/// </summary>
public interface IScopedDependency
{
}
}
| 7,452 |
https://github.com/wmatterer-gcs/UnicornBattle/blob/master/UnicornBattle/Assets/Prefabs/Authenticate/FloatingStore.prefab | Github Open Source | Open Source | Apache-2.0 | 2,019 | UnicornBattle | wmatterer-gcs | Unity3D Asset | Code | 20,000 | 73,347 | %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &100890 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 22434462} - component: {fileID: 22288964} - component: {fileID: 11489634} -... | 1,698 |
https://github.com/waseems/inbox2_desktop/blob/master/Code/Client/Inbox2/UI/Helpers/ProgressGroupTemplateSelector.cs | Github Open Source | Open Source | BSD-3-Clause | 2,019 | inbox2_desktop | waseems | C# | Code | 61 | 174 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using Inbox2.Framework.Threading.Progress;
namespace Inbox2.UI.Helpers
{
public class ProgressGroupTemplateSelector : DataTemplateSelector
{
public DataTemplate ChannelTemplat... | 22,651 |
https://github.com/Acidburn0zzz/oyranos/blob/master/src/API_generated/oyFilterPlugs_s.h | Github Open Source | Open Source | BSD-3-Clause | null | oyranos | Acidburn0zzz | C | Code | 323 | 1,028 | /** @file oyFilterPlugs_s.h
[Template file inheritance graph]
+-> oyFilterPlugs_s.template.h
|
+-> BaseList_s.h
|
+-> Base_s.h
|
+-- oyStruct_s.template.h
* Oyranos is an open source Color Management System
*
* @par Copyright:
* 2004-2018 (C) Kai-Uwe Behrmann
*
* @author ... | 22,884 |
https://github.com/JINWOO-J/goloop/blob/master/common/trie/trie.go | Github Open Source | Open Source | Apache-2.0 | null | goloop | JINWOO-J | Go | Code | 246 | 793 | package trie
import (
"reflect"
"github.com/icon-project/goloop/common/db"
"github.com/icon-project/goloop/common/merkle"
)
type (
/*
*/
Immutable interface {
Empty() bool
// Get returns the value stored under the specified key, or nil if the key doesn't exist.
Get(k []byte) ([]byte, error)
Hash() []b... | 14,691 |
https://github.com/peter-ls/kylo/blob/master/plugins/sla-jira/src/main/java/com/thinkbiganalytics/metadata/sla/JiraServiceLevelAgreementActionConfiguration.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | kylo | peter-ls | Java | Code | 313 | 882 | package com.thinkbiganalytics.metadata.sla;
/*-
* #%L
* thinkbig-sla-jira
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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
*
* h... | 29,571 |
https://github.com/gkirok/ui/blob/master/src/components/FeatureSetsPanel/FeatureSetsPanelTargetStore/featureSetsPanelTargetStore.scss | Github Open Source | Open Source | Apache-2.0 | null | ui | gkirok | SCSS | Code | 62 | 214 | @import '../../../scss/colors';
.target-store {
&__checkbox-container {
display: flex;
width: 100%;
margin-bottom: 25px;
.checkbox {
margin-right: 50px;
.unchecked {
path {
fill: $malibu;
}
}
}
}
&__inputs-container {
display: flex;
width... | 31,511 |
https://github.com/tboulogne/jsxc.chat/blob/master/build/ajax/getUsers.php | Github Open Source | Open Source | MIT | 2,016 | jsxc.chat | tboulogne | PHP | Code | 21 | 80 | <?php
OCP\User::checkLoggedIn ();
OCP\JSON::callCheck ();
$limit = 10;
$offset = 0;
$users = OCP\User::getDisplayNames((string)$_GET['search'], $limit, $offset);
OCP\JSON::encodedPrint ( $users );
?>
| 4,925 |
https://github.com/rgm3/garagedoor/blob/master/.gitmodules | Github Open Source | Open Source | MIT | 2,015 | garagedoor | rgm3 | Git Config | Code | 8 | 52 | [submodule "blynk-library-spark"]
path = blynk-library-spark
url = https://github.com/vshymanskyy/blynk-library-spark
| 19,109 |
https://github.com/nicolasJacquier/Symfony2/blob/master/src/Ahe/gsbBundle/Entity/LigneFraisForfait.php | Github Open Source | Open Source | MIT | null | Symfony2 | nicolasJacquier | PHP | Code | 213 | 889 | <?php
namespace Ahe\gsbBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* LigneFraisForfait
*
* @ORM\Table(name="LigneFraisForfait", indexes={@ORM\Index(name="idVisiteur", columns={"idvisiteur", "mois"})})
* @ORM\Entity(repositoryClass="Ahe\gsbBundle\Entity\LigneFraisForfaitRepository")
*/
class LigneFraisFo... | 7,798 |
https://github.com/keeperlibofan/oapi-sdk-java/blob/master/larksuite-oapi/src/main/java/com/larksuite/oapi/service/im/v1/model/MessageUrgentMessageReadEventData.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | oapi-sdk-java | keeperlibofan | Java | Code | 58 | 194 | // Code generated by lark suite oapi sdk gen
package com.larksuite.oapi.service.im.v1.model;
import com.google.gson.annotations.SerializedName;
public class MessageUrgentMessageReadEventData {
@SerializedName("reader")
private EventMessageReader reader;
@SerializedName("message_id")
private String mess... | 17,924 |
https://github.com/song0827/samples/blob/master/Samples/DecodeVideo/main.cpp | Github Open Source | Open Source | BSD-3-Clause | null | samples | song0827 | C++ | Code | 824 | 2,406 | /**
* ============================================================================
*
* Copyright (C) 2019, Huawei Technologies Co., Ltd. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | 43,737 |
https://github.com/muneerqu/Cirq/blob/master/cirq/conftest.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | Cirq | muneerqu | Python | Code | 18 | 49 | import matplotlib.pyplot as plt
def pytest_configure(config):
# Use matplotlib agg backend which does not require a display.
plt.switch_backend('agg')
| 32,051 |
https://github.com/scarypine/omnipay-worldpay/blob/master/tests/Message/PurchaseRequestTest.php | Github Open Source | Open Source | MIT | 2,015 | omnipay-worldpay | scarypine | PHP | Code | 204 | 993 | <?php
namespace Omnipay\WorldPay\Message;
use Omnipay\Tests\TestCase;
class PurchaseRequestTest extends TestCase
{
public function setUp()
{
$this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest());
$this->request->initialize(
array(
'a... | 33,672 |
https://github.com/yhyuan/meteor-starter/blob/master/collections/posts.coffee | Github Open Source | Open Source | MIT | 2,015 | meteor-starter | yhyuan | CoffeeScript | Code | 167 | 655 | @Posts = new Meteor.Collection('posts');
Schemas.Geocoords = new SimpleSchema
lng:
type:Number
decimal: true
min: -180
max: 180
lat:
type:Number
decimal: true
min: -90
max: 90
Schemas.Point = new SimpleSchema
type:
type:String
autoValue: ->
"Point"
coordinate:
type: Schemas.Geocoords
Sc... | 26,558 |
https://github.com/serv-inc/privacybadger/blob/master/src/lib/basedomain.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | privacybadger | serv-inc | JavaScript | Code | 1,136 | 3,282 | /*!
* Parts of original code from ipv6.js <https://github.com/beaugunderson/javascript-ipv6>
* Copyright 2011 Beau Gunderson
* Available under MIT license <http://mths.be/mit>
*/
/* globals punycode:false */
const RE_V4 = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|0x[0-9a-f][0-9a-f]?|0[0-7]{3})\.){3}(?:25[0-5]|... | 17,543 |
https://github.com/graphisoft-python/DGLib/blob/master/Support/Extensions/APIOutputFramework/IAPIPseudoIterator.hpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | DGLib | graphisoft-python | C++ | Code | 65 | 182 | #ifndef __IAPIPSEUDOITERATOR_HPP__
#define __IAPIPSEUDOITERATOR_HPP__
namespace GSAPI {
/** @interface */
template <typename APIType, class FinalType>
class IAPIPseudoIterator {
public:
virtual FinalType operator++(int) = 0;
virtual FinalType& operator++() = 0;
virtual bool operator== (const FinalType& it) ... | 2,896 |
https://github.com/spoke-d/thermionic/blob/master/internal/db/database/db.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | thermionic | spoke-d | Go | Code | 983 | 1,632 | package database
import (
"database/sql"
"github.com/pkg/errors"
)
// DB represents a way for a database to start transactions
type DB interface {
// Begin starts a transaction. The default isolation level is dependent on
// the driver.
Begin() (Tx, error)
Ping() error
// Close closes the database, releasin... | 7,028 |
https://github.com/Dzmuh/MvcCodeRouting/blob/master/.gitmodules | Github Open Source | Open Source | Apache-2.0 | 2,018 | MvcCodeRouting | Dzmuh | Git Config | Code | 8 | 49 | [submodule "submodules/sandcastle-md"]
path = submodules/sandcastle-md
url = https://github.com/maxtoroq/sandcastle-md.git
| 52,093 |
https://github.com/ggf84/tupan/blob/master/tupan/lib/src/snap_crackle_kernel.c | Github Open Source | Open Source | MIT | 2,016 | tupan | ggf84 | C | Code | 332 | 878 | #include "snap_crackle_kernel_common.h"
#include "libtupan.h"
void snap_crackle_kernel(
const UINT ni,
const REAL * restrict _im,
const REAL * restrict _irx,
const REAL * restrict _iry,
const REAL * restrict _irz,
const REAL * restrict _ie2,
const REAL * restrict _ivx,
const REAL * res... | 23,978 |
https://github.com/hdr105/laravel_dashboard/blob/master/resources/views/footers/footer.blade.php | Github Open Source | Open Source | MIT | null | laravel_dashboard | hdr105 | PHP | Code | 15 | 66 | <footer id="xFooter" x-show="headerFooter" class="flex items-center justify-center h-8 bg-primary-dark">
<p class="text-center text-white text-sm">Copyrights © 2021</p>
</footer> | 50,982 |
https://github.com/fwb/TechnicSolder/blob/master/application/models/mod.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-dco-1.1 | 2,013 | TechnicSolder | fwb | PHP | Code | 20 | 55 | <?php
class Mod extends Eloquent {
public static $timestamps = true;
public function versions()
{
return $this->has_many('ModVersion');
}
}
?> | 36,417 |
https://github.com/ltoddy/daedalus/blob/master/src/daedalus.rs | Github Open Source | Open Source | MIT | null | daedalus | ltoddy | Rust | Code | 146 | 428 | use std::io;
use std::net::ToSocketAddrs;
use http::{HttpServer, Method, RawRequest, RawResponse};
use crate::icarus::Icarus;
use crate::request::Request;
use crate::response::Responder;
use crate::result::Result;
use crate::router::Routers;
use crate::url::Url;
pub struct Daedalus {
server: HttpServer,
rout... | 51,706 |
https://github.com/deepfield/a10sdk-python/blob/master/a10sdk/core/netflow/netflow_monitor_resend_template.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | a10sdk-python | deepfield | Python | Code | 170 | 484 | from a10sdk.common.A10BaseClass import A10BaseClass
class ResendTemplate(A10BaseClass):
"""Class Description::
Configure when to resend netflow template.
Class resend-template supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
... | 13,237 |
https://github.com/mpanpan/JD_SentimentAnalysis/blob/master/word_cloud.py | Github Open Source | Open Source | MIT | 2,020 | JD_SentimentAnalysis | mpanpan | Python | Code | 61 | 301 | from wordcloud import WordCloud
import jieba
import matplotlib.pyplot as plt
"""
Written by Zijun Xi
Date: 2019/9/28
"""
def word_cloud_creation(filename):
'''创建词云,并进行分词'''
text = open(filename).read()
word_list = jieba.cut(text, cut_all=True)
wl = ' '.join(word_list)
return wl
def word_... | 25,161 |
https://github.com/fjt7tdmi/rafi-1st/blob/master/src/hw/core/FetchUnitIF.sv | Github Open Source | Open Source | Apache-2.0 | 2,020 | rafi-1st | fjt7tdmi | null | Spoken | 158 | 397 | /*
* Copyright 2018 Akifumi Fujita
*
* 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 agre... | 16,681 |
https://github.com/marcelbuesing/esp-idf-hal/blob/master/src/mutex.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | esp-idf-hal | marcelbuesing | Rust | Code | 658 | 2,315 | use core::cell::UnsafeCell;
use core::ops::{Deref, DerefMut};
use core::ptr;
use core::time::Duration;
use esp_idf_sys::*;
// NOTE: ESP-IDF-specific
const PTHREAD_MUTEX_INITIALIZER: u32 = 0xFFFFFFFF;
pub struct Mutex<T>(UnsafeCell<pthread_mutex_t>, UnsafeCell<T>);
impl<T> Mutex<T> {
#[inline(always)]
pub co... | 43,315 |
https://github.com/JasmineZhen218/P-WL/blob/master/data/DD/0306.gml | Github Open Source | Open Source | MIT | 2,021 | P-WL | JasmineZhen218 | null | Spoken | 11,683 | 27,855 | graph [
directed 0
node [
id 117359
label "11"
]
node [
id 117452
label "13"
]
node [
id 117491
label "15"
]
node [
id 117502
label "4"
]
node [
id 117528
label "8"
]
node [
id 117590
label "7"
]
node [
id 117597
label "17"
]
node [... | 42,432 |
https://github.com/EightBitBoy/blinkstick-tool/blob/master/src/main/groovy/de/eightbitboy/BlinkStickTool.groovy | Github Open Source | Open Source | Apache-2.0 | null | blinkstick-tool | EightBitBoy | Groovy | Code | 192 | 539 | package de.eightbitboy
import blinkstick.*
class BlinkStickTool {
static int PAUSE = 20
static void main(String[] args) {
println('Hello world!')
BlinkStick device = BlinkStick.findFirst();
println(device)
int i = 1
while(true){
sleep(20)
int index0 = (i + 0) % 8
int index1 = (i + 1) % 8
i... | 27,450 |
https://github.com/wanglw/cf-abacus/blob/master/lib/cf/dashboard/src/db/DbController.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | cf-abacus | wanglw | JavaScript | Code | 96 | 340 | 'use strict';
const { isArray } = require('underscore');
const Promise = require('bluebird');
const dbClient = require('abacus-dbclient');
const config = require('../config');
const session = require('express-session');
const debug = require('abacus-debug')('abacus-dashboard');
const sessionStore = require('connect-mo... | 16,908 |
https://github.com/phaidra/fcrepo3/blob/master/fcrepo-server/src/main/java/org/fcrepo/server/storage/service/SOAPOperation.java | Github Open Source | Open Source | DOC, Apache-2.0 | 2,023 | fcrepo3 | phaidra | Java | Code | 126 | 247 | /* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.storage.service;
/**
* A data structure for holding WSDL SOAP binding for an ... | 27,842 |
https://github.com/coralisland-git/Quoterespond/blob/master/config/bitly.php | Github Open Source | Open Source | MIT | null | Quoterespond | coralisland-git | PHP | Code | 70 | 304 | <?php
/*
* (c) Wessel Strengholt <wessel.strengholt@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Access Token
|------... | 420 |
https://github.com/idiot50/start-reactjs/blob/master/gnoc-react/src/containers/Utils/CustomDatePicker.js | Github Open Source | Open Source | MIT | 2,019 | start-reactjs | idiot50 | JavaScript | Code | 530 | 1,992 | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Label } from 'reactstrap';
import { AvInput, AvFeedback, AvGroup } from 'availity-reactstrap-validation';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Config from '../../config';
import DatePick... | 10,316 |
https://github.com/Cichy3D/UP-201804/blob/master/Hello/src/pl/szkolenie/gemetria/model/Kolo.java | Github Open Source | Open Source | Apache-2.0 | null | UP-201804 | Cichy3D | Java | Code | 98 | 291 | package pl.szkolenie.gemetria.model;
public class Kolo extends Figura {
private Punkt a;
private Punkt b;
public Kolo() {
super();
}
public Kolo(Punkt a, Punkt b) {
super();
this.a = a;
this.b = b;
}
public Punkt getA() {
return a;
}
public void setA(Punkt a) {
this.a = a;
}
public Punkt g... | 36,722 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.