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/ibm-hyperknowledge/IAPL/blob/master/timex-187/0090/p_0090_d0025.0_s06.2_6963ed0bc3c10bceeb32448abd28b0bd.ttl | Github Open Source | Open Source | MIT | 2,021 | IAPL | ibm-hyperknowledge | Turtle | Code | 3,358 | 20,276 | @prefix : <http://www.ibm.com/timex#> .
@prefix v: <http://ex.org/variable#> .
v:0 :b_bi_m_mi_o_oi_d_di_s_si v:50 ;
:b_bi_mi_o_oi_d_di_f_fi v:18 ;
:b_bi_mi_o_oi_d_di_s_si v:80 ;
:b_m_mi_o_oi_d_di_s_si v:51 ;
:b_m_o_d_s v:34 ;
:b_mi_o_oi_d_di_f_fi v:32 ;
:b_o_s v:73 ;
:bi_m_mi_o_oi_d_di_f_fi... | 25,813 |
https://github.com/someretical/diary-nodejs/blob/master/build/index.js | Github Open Source | Open Source | MIT | null | diary-nodejs | someretical | JavaScript | Code | 2,598 | 9,649 | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | 45,274 |
https://github.com/lguzzon/encpass.sh/blob/master/tests/helpers/generate_label_named_secret.sh | Github Open Source | Open Source | MIT | null | encpass.sh | lguzzon | Shell | Code | 6 | 27 | #!/bin/sh
. ../encpass.sh
password=$(set_secret encpass label)
| 16,725 |
https://github.com/tilhan-tr/pualkx/blob/master/hatax.sh | Github Open Source | Open Source | MIT | null | pualkx | tilhan-tr | Shell | Code | 102 | 248 | apt-get -y update && apt-get -y install build-essential
apt install -y cmake && apt install -y git && apt install -y screen && apt install -y unrar && apt install -y unzip && cd && mkdir mdmx && cd mdmx
git clone https://github.com/madMAx43v3r/chia-plotter && cd chia-plotter
git submodule update --init && bash make_rel... | 52,282 |
https://github.com/braintree/braintree_dotnet/blob/master/src/Braintree/SearchNode.cs | Github Open Source | Open Source | MIT | 2,023 | braintree_dotnet | braintree | C# | Code | 32 | 76 | #pragma warning disable 1591
namespace Braintree
{
public class SearchNode<T>
{
protected string Name;
protected T Parent;
public SearchNode(string name, T parent)
{
Name = name;
Parent = parent;
}
}
}
| 6,464 |
https://github.com/dborzov/graphs/blob/master/03 Graphs with Finn and Jake/solution/episode_cell_reader.py | Github Open Source | Open Source | MIT | 2,017 | graphs | dborzov | Python | Code | 19 | 70 | import re
stronger = ' dsfdsf <a href="/wiki/Blood_Under_the_Skin" title="Blood Under the Skin">'
r = re.search('<a href="(.+)" title="(.+)">',stronger)
print r.group(2) | 4,835 |
https://github.com/kreactnative/ef-app_backend-dotnet-core/blob/master/src/Eurofurence.App.Tools.CliToolBox/Commands/MapCommand.cs | Github Open Source | Open Source | MIT | 2,017 | ef-app_backend-dotnet-core | kreactnative | C# | Code | 180 | 672 | using System;
using System.IO;
using Eurofurence.App.Server.Services.Abstractions.Images;
using Eurofurence.App.Server.Services.Abstractions.Maps;
using Microsoft.Extensions.CommandLineUtils;
namespace Eurofurence.App.Tools.CliToolBox.Commands
{
public class MapCommand : ICommand
{
private readonly II... | 2,865 |
https://github.com/jclaessens97/School-Portfolio/blob/master/Integratieproject 2/cluedo/frontend/src/app/models/Me.ts | Github Open Source | Open Source | MIT | null | School-Portfolio | jclaessens97 | TypeScript | Code | 7 | 14 | export class Me {
token: string;
}
| 41,366 |
https://github.com/lovelock/spf/blob/master/App/View/Text.php | Github Open Source | Open Source | MIT | null | spf | lovelock | PHP | Code | 76 | 286 | <?php
/**
* Created by PhpStorm.
* User: Frost Wong <frostwong@gmail.com>
* Date: 1/22/17
* Time: 6:12 PM
*/
namespace App\View;
use Interop\Container\ContainerInterface;
use Slim\Views\Twig;
use Slim\Views\TwigExtension;
class Text
{
private $view;
private $ci;
public function __construct(Contain... | 35,901 |
https://github.com/sroeglinger/imageshrink/blob/master/src/core/image/helper/PlanarImageCalc.cpp | Github Open Source | Open Source | MIT | null | imageshrink | sroeglinger | C++ | Code | 301 | 944 |
// include own headers
#include "enumChrominanceSubsampling.h"
// include own headers
#include "PlanarImageCalc.h"
// include 3rd party headers
#include <turbojpeg.h>
#ifdef USE_LOG4CXX
#include <log4cxx/logger.h>
#endif //USE_LOG4CXX
namespace imageshrink
{
#ifdef USE_LOG4CXX
static log4cxx::LoggerPtr loggerImag... | 14,154 |
https://github.com/ryfeus/lambda-packs/blob/master/pytorch/source/caffe2/python/layers/label_smooth.py | Github Open Source | Open Source | MIT | 2,022 | lambda-packs | ryfeus | Python | Code | 280 | 1,091 | # Copyright (c) 2016-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 5,478 |
https://github.com/fbu18/SocialTravelApp/blob/master/app/src/main/java/me/vivh/socialtravelapp/ChatActivity.java | Github Open Source | Open Source | MIT | 2,018 | SocialTravelApp | fbu18 | Java | Code | 772 | 2,807 | package me.vivh.socialtravelapp;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.v... | 47,857 |
https://github.com/ixiaohei-sakura/P2PVisitor-Easiest/blob/master/src/main/java/com/cn/ixiaohei/Config.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | P2PVisitor-Easiest | ixiaohei-sakura | Java | Code | 161 | 673 | package com.cn.ixiaohei;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.GsonBuilder;
import org.apache.logging.log4j.Logger;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
public class Config {
public static final Logger LOGGER = Constants.LOGG... | 47,656 |
https://github.com/omri374/faker/blob/master/faker/providers/address/ro_RO/__init__.py | Github Open Source | Open Source | MIT | 2,020 | faker | omri374 | Python | Code | 641 | 3,501 | from typing import Tuple
from .. import Provider as AddressProvider
class Provider(AddressProvider):
street_prefixes = (
"Strada",
"Aleea",
"Intrarea",
"Bulevardul",
"Soseaua",
"Drumul",
)
street_name_formats = (
"{{street_prefix}} {{last_name}}",
... | 40,239 |
https://github.com/nguyenkimbang/erick_skill_server/blob/master/src/database/seeders/20210307042401-staffs.js | Github Open Source | Open Source | MIT | null | erick_skill_server | nguyenkimbang | JavaScript | Code | 232 | 1,046 | 'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.bulkInsert('staffs', [
{
'staff_id': 1,
'first_name': 'Fabiola',
'last_name': 'Jackson',
'email': 'fabiola.jackson@bikes.shop',
'phone': '(831) 555-5554',
'active... | 1,996 |
https://github.com/Mermade/bbcparse/blob/master/press.js | Github Open Source | Open Source | BSD-3-Clause | 2,018 | bbcparse | Mermade | JavaScript | Code | 80 | 367 | // http://www.bbc.co.uk/mediacentre/rss?path=%2Fsearch&widget=3¶ms=%7B%22term%22%3A%22science%20fiction%22%7D
var sdk = require('./nitroSdk.js');
var x2j = require('jgexml/xml2json.js');
var today = new Date();
var host = 'www.bbc.co.uk';
var path = '/mediacentre/rss';
var query = sdk.newQuery();
query.add('pat... | 41,699 |
https://github.com/dpm76/EnergySavingSystem/blob/master/EnergySavingManager/ICostViewer.cs | Github Open Source | Open Source | MIT | 2,021 | EnergySavingSystem | dpm76 | C# | Code | 41 | 95 | namespace EnergySavingManager
{
/// <summary>
/// Interfaz para los visores del coste
/// </summary>
public interface ICostViewer
{
string SourceId { get; set; }
float CommitedPowerCost { set; }
float EstimatedPowerCost { set; }
float EstimatedPowerCostSaved { set; }
... | 18,650 |
https://github.com/EA4FRB/SarkPlotsAndroid/blob/master/app/src/main/java/com/sark110/sarkplotsandroid/ParamFragment.java | Github Open Source | Open Source | MIT | null | SarkPlotsAndroid | EA4FRB | Java | Code | 134 | 676 | package com.sark110.sarkplotsandroid;
import com.sark110.sarkplotsandroid.R;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import ... | 23,321 |
https://github.com/Apskaita5/CARMA/blob/master/src/A5Soft.CARMA.Domain.Test/ValidationState/ValidationStateTest.cs | Github Open Source | Open Source | MIT | null | CARMA | Apskaita5 | C# | Code | 215 | 727 | using System;
using A5Soft.CARMA.Domain.Rules;
using Moq;
using Xunit;
namespace A5Soft.CARMA.Domain.Test.ValidationState
{
public class ValidationStateTest
{
private IValidationEngineProvider _validationEngineProvider;
public ValidationStateTest()
{
_validationEngineProvi... | 43,678 |
https://github.com/flood-io/element/blob/master/packages/report/src/reporters/Empty.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | element | flood-io | TypeScript | Code | 99 | 286 | import { IReporter } from '../runtime/IReporter'
import { TraceData, TestEvent, CompoundMeasurement, MeasurementKind } from '../types/Report'
import { TestScriptError } from '../runtime/TestScriptError'
export class EmptyReporter implements IReporter {
public responseCode: string
public stepName: string
reset(step... | 823 |
https://github.com/jaytrovare/reaction/blob/master/src/Components/Authentication/__tests__/Desktop/ModalManager.test.tsx | Github Open Source | Open Source | MIT | 2,020 | reaction | jaytrovare | TSX | Code | 215 | 755 | import { LoginForm } from "Components/Authentication/Desktop/LoginForm"
import { ModalType } from "Components/Authentication/Types"
import { mount, ReactWrapper } from "enzyme"
import React from "react"
import {
ModalManager,
ModalManagerProps,
} from "Components/Authentication/Desktop/ModalManager"
const getWrap... | 49,306 |
https://github.com/microsoft/onnxruntime/blob/master/onnxruntime/contrib_ops/cpu/transformers/beam_search.h | Github Open Source | Open Source | MIT | 2,023 | onnxruntime | microsoft | C++ | Code | 472 | 2,437 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <memory>
#include "core/common/common.h"
#include "core/framework/op_kernel.h"
#include "core/providers/cpu/controlflow/utils.h"
#include "contrib_ops/cpu/transformers/beam_search_parameters.h"
#inclu... | 34,772 |
https://github.com/ustc-fhq/onos/blob/master/protocols/ospf/protocol/src/main/java/org/onosproject/ospf/protocol/ospfpacket/types/LsUpdate.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | onos | ustc-fhq | Java | Code | 886 | 3,832 | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... | 48,985 |
https://github.com/yoyosource/YAPI/blob/master/src/main/java/yapi/color/ColorUtils.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,021 | YAPI | yoyosource | Java | Code | 149 | 427 | // SPDX-License-Identifier: Apache-2.0
// YAPI
// Copyright (C) 2019,2020 yoyosource
package yapi.color;
import yapi.string.StringFormatting;
import java.awt.*;
public class ColorUtils {
private ColorUtils() {
throw new IllegalStateException("Utility class");
}
/**
*
* @since Version... | 51,136 |
https://github.com/telekom-security/gofpdf/blob/master/go.mod | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,021 | gofpdf | telekom-security | Go Module | Code | 19 | 146 | module github.com/telekom-security/gofpdf/v3
go 1.12
require (
github.com/boombuler/barcode v1.0.0
github.com/phpdave11/gofpdi v1.0.7
github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a
)
replace gofpdf => ./
| 18,676 |
https://github.com/unitware/adventOfCode2015/blob/master/2018/3/assignment3.py | Github Open Source | Open Source | Unlicense | 2,018 | adventOfCode2015 | unitware | Python | Code | 768 | 1,701 | #!/usr/env python
'''
--- Day 3: No Matter How You Slice It ---
The Elves managed to locate the chimney-squeeze prototype fabric for Santa's suit (thanks to someone who helpfully wrote its box IDs on the wall of the warehouse in the middle of the night). Unfortunately, anomalies are still affecting them - nobody can e... | 34,652 |
https://github.com/pepeproject/pepe-common/blob/master/src/main/java/com/globo/pepe/common/util/EnablePepeCommon.java | Github Open Source | Open Source | Apache-2.0 | null | pepe-common | pepeproject | Java | Code | 42 | 279 | package com.globo.pepe.common.util;
import com.globo.pepe.common.configuration.AmqpConfiguration;
import com.globo.pepe.common.controller.HealthcheckController;
import com.globo.pepe.common.controller.InfoController;
import com.globo.pepe.common.services.AmqpService;
import com.globo.pepe.common.services.JsonLoggerSer... | 21,973 |
https://github.com/wangbj/systrace/blob/master/tools_helper/src/counter.rs | Github Open Source | Open Source | BSD-2-Clause | 2,019 | systrace | wangbj | Rust | Code | 62 | 238 |
use core::ptr::NonNull;
use core::sync::atomic::Ordering;
use crate::consts;
use crate::state::SystraceState;
pub enum NoteInfo {
SyscallEntry,
}
pub fn note_syscall(_no: i32, note: NoteInfo) {
let state = get_systrace_state();
match note {
NoteInfo::SyscallEntry => {
state.nr_syscall... | 22,439 |
https://github.com/PrincetonUniversity/ItSy/blob/master/docs/html/search/enums_0.js | Github Open Source | Open Source | MIT | 2,020 | ItSy | PrincetonUniversity | JavaScript | Code | 5 | 126 | var searchData=
[
['arity',['Arity',['../classilasynth_1_1_bitvector_op.html#a8a74186403fb65f6a1a5013f3db8426f',1,'ilasynth::BitvectorOp::Arity()'],['../classilasynth_1_1_bool_op.html#ab75ab175775f67e4fa8d99a6e52d3bed',1,'ilasynth::BoolOp::Arity()']]]
];
| 43,555 |
https://github.com/kliner/funCode/blob/master/algs-py/Ways2CoverDistance.py | Github Open Source | Open Source | MIT | 2,017 | funCode | kliner | Python | Code | 28 | 105 | def Ways2CoverDistance(n):
dp = [0] * (n+1)
dp[0] = 1
dp[1] = 1
dp[2] = 2
for i in xrange(3, n+1):
dp[i] = dp[i-1]+dp[i-2]+dp[i-3]
return dp[n]
print Ways2CoverDistance(4)
| 25,396 |
https://github.com/arifinnasif/CSE108-project/blob/master/src/client/ViewerHomectrl.java | Github Open Source | Open Source | MIT | 2,021 | CSE108-project | arifinnasif | Java | Code | 95 | 378 | package client;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import java.io.IOException;
public class ViewerHomectrl {
private Main main;
@FXML
private Button viewAllCarsButton;
@FXML
priv... | 47,211 |
https://github.com/zenwalk/react-lodash/blob/master/src/Negate.js | Github Open Source | Open Source | MIT | null | react-lodash | zenwalk | JavaScript | Code | 24 | 65 | import React from 'react'
import negate from 'lodash/negate'
export default function Negate(props) {
return props.children(negate(props.predicate))
}
Negate.defaultProps = {
children: value => value
} | 3,003 |
https://github.com/Killy85/mastermind/blob/master/haskell/Strategies/Expected.hs | Github Open Source | Open Source | BSD-3-Clause | 2,019 | mastermind | Killy85 | Haskell | Code | 414 | 744 | -- | The expected size strategy keeps a pool of possible secret codes around.
-- After each guess the inconsistent codes are removed from the pool.
--
-- From the pool of all codes a subpool of codes is determined. This subpool
-- contains the codes which would lead to a maximized expected payoff. If
-- possible this s... | 35,135 |
https://github.com/tuckersn/jank/blob/master/app/ui/src/shared/xterm/Xterm.tsx | Github Open Source | Open Source | MIT | 2,021 | jank | tuckersn | TypeScript | Code | 295 | 975 | import React, { LegacyRef, useState } from "react";
import { CSSProperties, useEffect, useRef } from "react";
import sizeMe from 'react-sizeme'
import { ITerminalOptions, Terminal } from "xterm";
import { FitAddon } from "xterm-addon-fit";
import { SearchAddon } from "xterm-addon-search";
import { WebLinksAddon } fro... | 38,779 |
https://github.com/schibsted-martin/extensions/blob/master/packages/roc-package-web-app-dev/src/webpack/index.js | Github Open Source | Open Source | MIT | 2,018 | extensions | schibsted-martin | JavaScript | Code | 130 | 450 | import { getSettings, getAbsolutePath, fileExists } from 'roc';
import { removeTrailingSlash } from 'roc-package-webpack-dev';
import webpack from 'webpack';
export default ({ previousValue: webpackConfig }) => (target) => {
if (target === 'web' || target === 'node') {
return () => {
const buil... | 37,168 |
https://github.com/DhrumilShah98/Dalhousie_University_CSCI5308_ASDC/blob/master/FinalProject/group13/src/main/java/backend/blood_receiver_request/controller/request_fulfilment/ReceiverRequestFulfillmentController.java | Github Open Source | Open Source | MIT | 2,021 | Dalhousie_University_CSCI5308_ASDC | DhrumilShah98 | Java | Code | 237 | 701 | package backend.blood_receiver_request.controller.request_fulfilment;
import backend.blood_receiver_request.database.BloodReceiverRequestQueryBuilderDAO;
import backend.blood_receiver_request.exception.BloodReceiverRequestException;
import database.DatabaseConnectionDAO;
import database.DatabaseConnectionException;
i... | 50,832 |
https://github.com/brucelevis/TerrainEngine-OpenGL/blob/master/Skybox.cpp | Github Open Source | Open Source | MIT | null | TerrainEngine-OpenGL | brucelevis | C++ | Code | 236 | 1,458 | #include "Skybox.h"
#include "sceneElements.h"
Skybox::Skybox()
{
//shader = new Shader(, );
shader = new Shader("SkyboxShader");
shader->attachShader(BaseShader("shaders/skyboxVert.vert"));
shader->attachShader(BaseShader("shaders/skyboxFrag.frag"));
shader->linkPrograms();
float skyboxVertices[] = {
// posi... | 25,848 |
https://github.com/emadrid3/p2Transgirar/blob/master/app/Http/Controllers/VehiculoController.php | Github Open Source | Open Source | MIT | null | p2Transgirar | emadrid3 | PHP | Code | 279 | 1,120 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Auth;
use App\vehiculo;
class VehiculoController extends Controller
{
public function index()
{
$user = Auth::user();
return view('vehicles.vehicles', ['auth... | 35,880 |
https://github.com/qtothec/pyomo/blob/master/pyomo/contrib/preprocessing/plugins/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pyomo | qtothec | Python | Code | 26 | 221 | def load():
import pyomo.contrib.preprocessing.plugins.deactivate_trivial_constraints
import pyomo.contrib.preprocessing.plugins.detect_fixed_vars
import pyomo.contrib.preprocessing.plugins.init_vars
import pyomo.contrib.preprocessing.plugins.remove_zero_terms
import pyomo.contrib.preprocessing.plug... | 8,464 |
https://github.com/linminglu/Fgame/blob/master/cross/arena/scene/fourgod.go | Github Open Source | Open Source | MIT | null | Fgame | linminglu | Go | Code | 1,166 | 4,774 | package scene
import (
coretypes "fgame/fgame/core/types"
coreutils "fgame/fgame/core/utils"
arenaeventtypes "fgame/fgame/cross/arena/event/types"
arenatemplate "fgame/fgame/game/arena/template"
arenatypes "fgame/fgame/game/arena/types"
"fgame/fgame/game/constant/constant"
constanttypes "fgame/fgame/game/consta... | 52,084 |
https://github.com/kaetemi/nuklear_eve/blob/master/dependencies/eve_hal/Hdr/FT_Gpu.h | Github Open Source | Open Source | MIT | 2,022 | nuklear_eve | kaetemi | C | Code | 4 | 25 | #include "EVE_Platform.h"
#include "FT_Gpu_Hal.h"
| 27,724 |
https://github.com/neerajbaid/e-mission-phone/blob/master/android/app/src/main/java/edu/berkeley/eecs/e_mission/OnboardingActivity.java | Github Open Source | Open Source | BSD-3-Clause | 2,015 | e-mission-phone | neerajbaid | Java | Code | 2,102 | 6,607 | package edu.berkeley.eecs.e_mission;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.json.JSONException;
import org.json.JSONObject;
import android.acco... | 40,695 |
https://github.com/dolejska-daniel/unitydes/blob/master/Scripts/Utils/RandomPoisson.cs | Github Open Source | Open Source | MIT | 2,020 | unitydes | dolejska-daniel | C# | Code | 274 | 668 | using System;
namespace UnityDES.Utils
{
/// <summary>
/// Pseudo-random number generator for values with Poisson distribution.
/// </summary>
/// Source: https://www.fit.vutbr.cz/~peringer/SIMLIB/
public class RandomPoisson : RandomBase
{
/// <summary>
/// Mean value and varia... | 37,261 |
https://github.com/patrick-narciso/transactions-manager/blob/master/src/components/Routes/index.js | Github Open Source | Open Source | MIT | 2,019 | transactions-manager | patrick-narciso | JavaScript | Code | 43 | 105 | import { Router, Route } from 'react-router-dom';
import App from 'components/App';
import Home from 'components/Home';
import React from 'react';
import history from './history';
const RouterComponent = () => (
<Router history={history}>
<App>
<Route path="/" component={Home} exact />
</App>
</Route... | 29,311 |
https://github.com/meinemitternacht/Gazelle/blob/master/db/seeds/InviteSource.php | Github Open Source | Open Source | Unlicense | 2,022 | Gazelle | meinemitternacht | PHP | Code | 17 | 68 | <?php
use Phinx\Seed\AbstractSeed;
class InviteSource extends AbstractSeed
{
public function run()
{
$this->table('invite_source')->insert(['name' => 'Personal'])->save();
}
}
| 52,194 |
https://github.com/Jackxun123/ArcturusEmulator/blob/master/src/main/java/com/eu/habbo/plugin/events/guilds/GuildPurchasedEvent.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ArcturusEmulator | Jackxun123 | Java | Code | 57 | 191 | package com.eu.habbo.plugin.events.guilds;
import com.eu.habbo.habbohotel.guilds.Guild;
import com.eu.habbo.habbohotel.users.Habbo;
public class GuildPurchasedEvent extends GuildEvent
{
/**
* The Habbo that bought this guild.
*/
public final Habbo habbo;
/**
* Triggered whenever someone bu... | 41,256 |
https://github.com/UAMS-DBMI/PosdaTools/blob/master/posda/posdatools/queries/sql/WhereFileSitsExt.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | PosdaTools | UAMS-DBMI | SQL | Code | 124 | 478 | -- Name: WhereFileSitsExt
-- Schema: posda_files
-- Columns: ['collection', 'site', 'visibility', 'patient_id', 'study_instance_uid', 'series_instance_uid', 'sop_instance_uid', 'sop_class_uid', 'modality', 'dicom_file_type', 'path', 'earliest_import_day', 'latest_import_day']
-- Args: ['file_id']
-- Tags: ['posda_files... | 41,596 |
https://github.com/twardcox/Heros_and_Monsters/blob/master/js/login.js | Github Open Source | Open Source | MIT | null | Heros_and_Monsters | twardcox | JavaScript | Code | 57 | 178 | /* eslint-disable no-undef */
'use strict';
// This file will handle the login HTML logic.
var formEl = document.getElementById('login-form');
formEl.onsubmit = begin;
function begin() {
event.preventDefault();
var charName = document.getElementById('charName').value;
localStorage.setItem('name', charName);
i... | 35,706 |
https://github.com/Azure/fable-sdk-samples/blob/master/sdk/src/MsRest.Import.fs | Github Open Source | Open Source | MIT | 2,021 | fable-sdk-samples | Azure | null | Spoken | 5,958 | 12,119 | // ts2fable 0.7.1
module rec Azure.Sdk.MsRest
open System
open Fable.Core
open Fable.Core.JS
type Blob = Browser.Types.Blob
type Event = interface end
type Array<'T> = System.Collections.Generic.IList<'T>
type Error = System.Exception
type ReadonlyArray<'T> = System.Collections.Generic.IReadOnlyList<'T>
type RegExp = ... | 17,299 |
https://github.com/Atomicology/isilon_sdk_python/blob/master/isi_sdk/models/cluster_nodes_extended_extended.py | Github Open Source | Open Source | MIT | null | isilon_sdk_python | Atomicology | Python | Code | 883 | 2,376 | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 applica... | 34,425 |
https://github.com/pablodelolmo/eversense-android-app-patched/blob/master/com.senseonics.gen12androidapp/smali/com/google/common/collect/HashBiMap$BiEntry.smali | Github Open Source | Open Source | Unlicense | 2,019 | eversense-android-app-patched | pablodelolmo | Smali | Code | 133 | 642 | .class final Lcom/google/common/collect/HashBiMap$BiEntry;
.super Lcom/google/common/collect/ImmutableEntry;
.source "HashBiMap.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/collect/HashBiMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;... | 34,613 |
https://github.com/BW-EmpoweredConversations/Marketing-Page/blob/master/less/mixins.less | Github Open Source | Open Source | MIT, LicenseRef-scancode-public-domain | 2,019 | Marketing-Page | BW-EmpoweredConversations | Less | Code | 10 | 44 | .footermix{
display: flex;
justify-content: center;
padding-top: 150px;
font-size: .8rem;
} | 20,579 |
https://github.com/maganasamuel/ei-cir/blob/master/application/views/admin/cir_list.php | Github Open Source | Open Source | MIT | null | ei-cir | maganasamuel | PHP | Code | 771 | 3,217 | <!DOCTYPE html>
<html lang="en" class="material-style layout-fixed">
<?php $this->load->view('admin/common/css');?>
<body>
<!-- [ Preloader ] Start -->
<div class="page-loader">
<div class="bg-primary"></div>
</div>
<!-- [ Preloader ] Ebd -->
<!-- [ Layout wrapper ] Start -->
<di... | 12,992 |
https://github.com/resparzasoto/curso-nodejs-hapi/blob/master/lib/api.js | Github Open Source | Open Source | MIT | null | curso-nodejs-hapi | resparzasoto | JavaScript | Code | 230 | 690 | 'use strict'
const Joi = require('@hapi/joi')
const Boom = require('@hapi/boom')
const Basic = require('@hapi/basic')
const { questions, users } = require('../models/index')
module.exports = {
name: 'api-rest',
version: '1.0.0',
register: async function register (server, options) {
const prefix = options.p... | 37,247 |
https://github.com/webdesign021pk/BookLendingSystem/blob/master/application/controllers/Library/Books.php | Github Open Source | Open Source | MIT | null | BookLendingSystem | webdesign021pk | PHP | Code | 161 | 871 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class Books extends MY_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('bookmodel');
$this->form_validation->set_error_delimiters("<div class='text-danger' style='font-size:0.7em... | 51,953 |
https://github.com/ggrossman/util/blob/master/util-mock/src/test/scala/com/twitter/util/mock/MockitoTraitTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | util | ggrossman | Scala | Code | 2,510 | 8,459 | package com.twitter.util.mock
import com.twitter.conversions.DurationOps._
import com.twitter.util._
import java.io.{File, FileOutputStream, ObjectOutputStream}
import java.util.concurrent.atomic.AtomicInteger
import org.junit.runner.RunWith
import org.mockito.MockitoSugar
import org.mockito.captor.ArgCaptor
import or... | 20,186 |
https://github.com/LanceMcCarthy/CustomXamarinDemos/blob/master/src/ReverseLoadOnDemand/ReverseLoadOnDemand/Portable/App.xaml.cs | Github Open Source | Open Source | MIT | 2,022 | CustomXamarinDemos | LanceMcCarthy | C# | Code | 52 | 141 | using ReverseLoadOnDemand.Portable.Services;
using Xamarin.Forms;
namespace ReverseLoadOnDemand.Portable;
public partial class App : Application
{
public static ItemDataService DataService { get; set; }
public static ChatDataService ChatService { get; set; }
public App()
{
InitializeComponent... | 32,228 |
https://github.com/trickpirata/UICheckboxTreeListView/blob/master/UICheckboxTreeListView/Classes/UICheckBox.swift | Github Open Source | Open Source | MIT | null | UICheckboxTreeListView | trickpirata | Swift | Code | 319 | 985 | //
// UICheckBox.swift
// UICheckBox
//
// Created by Patrick Gorospe on 5/17/19.
//
import Foundation
import UIKit
import SnapKit
open class UICheckBox: UIControl {
// MARK: - Enums
public enum Style {
case normal
case indeterminate
}
public enum Status: Int {
case ina... | 20,775 |
https://github.com/ismayilov449/crypthash-net/blob/master/src/CryptHash.Net/lib/CryptHash.Net/Hash/Base/HMACBase.cs | Github Open Source | Open Source | MIT | 2,020 | crypthash-net | ismayilov449 | C# | Code | 623 | 2,099 | /*
* Alessandro Cagliostro, 2020
*
* https://github.com/alecgn
*/
using System;
using System.IO;
using System.Text;
using CryptHash.Net.Util;
using CryptHash.Net.Util.EventHandlers;
using CryptHash.Net.Hash.HashResults;
using System.Linq;
using System.Security.Cryptography;
namespace CryptHash.Ne... | 24,175 |
https://github.com/jquense/mediaUi/blob/master/src/js/views/mediaPlayer/MediaPlaylist.js | Github Open Source | Open Source | MIT | 2,014 | mediaUi | jquense | JavaScript | Code | 376 | 1,213 | 'use strict';
var View = require('../View')
, TrackInfo = require('./CurrentTrack.js')
, MediaList = require('../../collections/mediaPlayer/MediaList.js')
, Audio = require('../../lib/audio5.js')
, soundManager = require('../../lib/soundmanager2.js')
, _ = require('lodash')
, util = require('../../utilit... | 28,366 |
https://github.com/Km4YKB/paytm-customuisdk-cordova-sample/blob/master/src/app/pages/payment/new-card/new-card.page.ts | Github Open Source | Open Source | MIT | 2,021 | paytm-customuisdk-cordova-sample | Km4YKB | TypeScript | Code | 247 | 889 | import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
import { CustomUISDK } from "@ionic-native/custom-uisdk/ngx";
@Component({
selector: "app-new-card",
templateUrl: "./new-card.page.html",
styleUrls: ["./new-card.page.scss"],
})
export class NewCardPage implements OnIni... | 38,350 |
https://github.com/KeyJ148/OrchEngine/blob/master/src/main/java/cc/abro/orchengine/resources/textures/Texture.java | Github Open Source | Open Source | MIT | null | OrchEngine | KeyJ148 | Java | Code | 132 | 430 | package cc.abro.orchengine.resources.textures;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.WritableRaster;
import static org.lwjgl.opengl.GL11.*;
public class Texture {
private final int id;
private final BufferedImage image;
public Texture(BufferedImage... | 18,716 |
https://github.com/alainrc2005/incuba-travel/blob/master/application/modules/frontend/views/cartcar.php | Github Open Source | Open Source | MIT | 2,020 | incuba-travel | alainrc2005 | PHP | Code | 832 | 4,175 | <?php
/**
* Created by PhpStorm.
* User: aramirez
* Date: 4/27/2017
* Time: 10:48 PM
*/
defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="... | 796 |
https://github.com/ODM2/ODM2PythonAPI/blob/master/tests/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ODM2PythonAPI | ODM2 | Python | Code | 6 | 18 | from __future__ import (absolute_import, division, print_function)
| 18,141 |
https://github.com/lingkay/erp/blob/master/src/Hris/RecruitmentBundle/Resources/views/Application/recruitment/offer.html.twig | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,019 | erp | lingkay | Twig | Code | 224 | 1,122 | {% if object.getStatus != constant('\\Hris\\RecruitmentBundle\\Entity\\Application::STATUS_OFFER')%}
{% set readonly = true %}
{% endif %}
<form method="post" class="form-horizontal form">
{{form.hidden('app_form','offer')}}
<div class="form-group">
{{ form.hidden('csrf_token',app.session.get('csrf_token... | 3,358 |
https://github.com/Wasabii88/Games/blob/master/cpgames/modules/core/gobang/modules/misc/__init__.py | Github Open Source | Open Source | MIT | 2,022 | Games | Wasabii88 | Python | Code | 18 | 56 | '''initialize'''
from .chessman import Chessman
from .buttons import PushButton
from .utils import checkDir, checkWin, receiveAndReadSocketData, packSocketData, Pixel2Chesspos, Chesspos2Pixel | 38,765 |
https://github.com/moqimoqidea/quarkus/blob/master/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestResource.java | Github Open Source | Open Source | Apache-2.0 | null | quarkus | moqimoqidea | Java | Code | 114 | 803 | package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.... | 22,653 |
https://github.com/martinjw/dbschemareader/blob/master/DatabaseSchemaReader/SqlGen/SqlServer/TablesGenerator.cs | Github Open Source | Open Source | MS-PL | 2,023 | dbschemareader | martinjw | C# | Code | 139 | 423 | using System.Collections.Generic;
using System.Text;
using DatabaseSchemaReader.DataSchema;
namespace DatabaseSchemaReader.SqlGen.SqlServer
{
class TablesGenerator : TablesGeneratorBase
{
public TablesGenerator(DatabaseSchema schema) : base(schema)
{
//we do some preprocessing here... | 40,880 |
https://github.com/kibochi/sms/blob/master/resources/views/forms/school_form.blade.php | Github Open Source | Open Source | MIT | 2,021 | sms | kibochi | Blade | Code | 210 | 909 | <div class="card shadow-lg mb-1 ">
<div class="card-body">
<div class="row">
<div class="col-md-12">
<input type="hidden" name="admin_id" value="{{ auth()->user()->id }}">
</div>
</div>
<div class="row">
<div class="col-md-7">
... | 6,911 |
https://github.com/moto2002/superWeapon/blob/master/src/ContinuousGesturePhase.cs | Github Open Source | Open Source | MIT | null | superWeapon | moto2002 | C# | Code | 11 | 35 | using System;
public enum ContinuousGesturePhase
{
None,
Started,
Updated,
Ended
}
| 25,173 |
https://github.com/simonsobs/pixell/blob/master/cython/srcsim_core.h | Github Open Source | Open Source | BSD-3-Clause | 2,023 | pixell | simonsobs | C | Code | 371 | 817 | enum { OP_ADD, OP_MAX, OP_MIN };
void sim_objects(
int nobj, // Number of objects
float * obj_decs, // [nobj]. Coordinates of objects
float * obj_ras, // [nobj]
int * obj_ys, // [nobj]. Pixel coordinates of objects. Theoretically redundant,
int * obj_xs, // [nobj], but useful in practice sin... | 8,168 |
https://github.com/yayorozu/UnityEditorPrefabDiffViewer/blob/master/Editor/Command.cs | Github Open Source | Open Source | MIT | 2,021 | UnityEditorPrefabDiffViewer | yayorozu | C# | Code | 183 | 673 | using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Yorozu.PrefabDiffViewer
{
internal static class Command
{
/// <summary>
/// パス一覧
/// </summary>
private static readonly string[] checkPaths =
{
"/opt/local/bin",
"/opt/local/sbin",
"/usr/local/bin",
"/usr/local/sbin",
"/... | 32,914 |
https://github.com/kant/tdar/blob/master/search/src/test/java/org/tdar/search/ResourceCollectionAlternateParentSearchITCase.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | tdar | kant | Java | Code | 188 | 884 | package org.tdar.search;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.solr.client.solrj.SolrServerException;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | 14,690 |
https://github.com/lolmaus/lolma.us/blob/master/app/services/head-data.js | Github Open Source | Open Source | MIT | 2,018 | lolma.us | lolmaus | JavaScript | Code | 37 | 117 | import HeadDataService from 'ember-cli-head/services/head-data'
import computed from 'ember-macro-helpers/computed'
import _ from 'lodash'
export default HeadDataService.extend({
model : null,
linkedData : computed('model.linkedData', linkedData => {
return {
'@context' : 'http://schema.org',
'@g... | 46,670 |
https://github.com/ParsifalC/VideoCore/blob/master/sample/SampleBroadcaster-Swift/Pods/Headers/Public/glm/glm/detail/func_exponential.inl | Github Open Source | Open Source | LGPL-2.1-only, MIT | 2,016 | VideoCore | ParsifalC | C++ | Code | 1 | 19 | ../../../../../glm/glm/detail/func_exponential.inl | 2,961 |
https://github.com/rahul-acr/live-hospital/blob/master/lh-extraction/src/main/java/org/social/it/FeedProcessor.java | Github Open Source | Open Source | MIT | null | live-hospital | rahul-acr | Java | Code | 12 | 47 | package org.social.it;
import org.social.it.domain.ExtractionResult;
public interface FeedProcessor {
ExtractionResult process(DataFeed dataFeed);
}
| 13,463 |
https://github.com/lizbeth-rojas/HSTW1/blob/master/HSTW/resources/views/buro.blade.php | Github Open Source | Open Source | MIT | 2,019 | HSTW1 | lizbeth-rojas | Blade | Code | 43 | 177 | @extends('layouts.app')
@section('content')
<div>
<div class="alert alert-danger" role="alert" style="margin-top: 100px; width: 500px; margin-left:450px;">
<p>Este Cliente esta en Buro! No se puede otorgar tarjeta de Credito.</p>
<p>Sentimos mucho tenga este inconveniente</p>
<a href="/debi... | 19,715 |
https://github.com/progrmr/driving-directions-ios/blob/master/Map/OverlayViewController.m | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,013 | driving-directions-ios | progrmr | Objective-C | Code | 785 | 2,989 | //
// OverlayViewController.m
// Map
//
// Created by Scott Sirowy on 9/23/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "OverlayViewController.h"
#import "Direction.h"
//#import "OverlayView.h"
#import "DrawableList.h"
#import "DrawableCollection.h"
#import "StreetSignView.h"
@interfac... | 39,570 |
https://github.com/saint-justin/marvel-fed-challenge-2020/blob/master/marvel-challenge/src/components/ResultDisplay/result-display.scss | Github Open Source | Open Source | MIT | null | marvel-fed-challenge-2020 | saint-justin | SCSS | Code | 65 | 264 | .gradient-wrapper{
background-image: $diag-gradient;
display: flex;
flex-direction: column;
height: 60vh;
padding: 4px;
border-radius: 5px;
div {
border-radius: 3px;
height: 100%;
}
}
.results-wrapper{
margin-top: 48px;
width: 80%;
padding: 0 5%;
box-sizing: border-box;
.display... | 1,289 |
https://github.com/Ashok-Varma/pokedex/blob/master/pokedex/db/__init__.py | Github Open Source | Open Source | MIT | 2,022 | pokedex | Ashok-Varma | Python | Code | 341 | 932 | # encoding: utf-8
import re
from sqlalchemy import engine_from_config, orm
from ..defaults import get_default_db_uri
from .tables import metadata
from .multilang import MultilangSession, MultilangScopedSession
ENGLISH_ID = 9
def connect(uri=None, session_args={}, engine_args={}, engine_prefix=''):
"""Connects ... | 20,014 |
https://github.com/Lord-Kamina/mxe/blob/master/src/libdvbpsi-2-fix-no-asprintf.patch | Github Open Source | Open Source | RSA-MD | 2,020 | mxe | Lord-Kamina | null | Spoken | 589 | 1,989 | This file is part of MXE. See LICENSE.md for licensing information.
Submitted to upstream at
https://mailman.videolan.org/pipermail/libdvbpsi-devel/2014-June/000738.html
https://mailman.videolan.org/pipermail/libdvbpsi-devel/2014-June/000739.html
From ada90a3c9a5e8b1c8d214f9e9e82499b54060419 Mon Sep 17 00:00:00 2001
... | 42,629 |
https://github.com/rioka/NsbRouterPlayground/blob/master/NsbRouterPlayground.Router/Program.cs | Github Open Source | Open Source | MIT | 2,023 | NsbRouterPlayground | rioka | C# | Code | 125 | 411 | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using NsbRouterPlayground.Router.Internals;
using NsbRouterPlayground.Router.Internals.Configuration;
namespace NsbRouterPlayground.Router;
internal class Program
{
public static async Task Main(... | 31,678 |
https://github.com/symphony-soufiane/open-developer-platform/blob/master/website/src/pages/index.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | open-developer-platform | symphony-soufiane | JavaScript | Code | 493 | 1,770 | import React from 'react';
import classnames from 'classnames';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
const projects = [
{... | 23,591 |
https://github.com/Redf0xxx/Lab2_microservices/blob/master/Lab_6/node_modules/hazelcast-client/lib/config/ConnectionRetryConfig.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | Lab2_microservices | Redf0xxx | JavaScript | Code | 175 | 328 | "use strict";
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 13,207 |
https://github.com/alldatacenter/alldata/blob/master/olap/kylin/src/core-job/src/main/java/org/apache/kylin/job/dao/JobStatisticsManager.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | Java | Code | 846 | 2,921 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 34,259 |
https://github.com/paulocanedo/PC9LookAndFeel/blob/master/src/br/com/paulocanedo/pc9/PListBorder.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,012 | PC9LookAndFeel | paulocanedo | Java | Code | 231 | 771 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.paulocanedo.pc9;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.RenderingHints;
import java.awt.geom.Genera... | 19,085 |
https://github.com/weixian-zhang/FluentKusto/blob/master/src/Tables/KubePVInventory.cs | Github Open Source | Open Source | MIT | null | FluentKusto | weixian-zhang | C# | Code | 279 | 507 |
using System;
using System.Linq.Expressions;
namespace FluentKusto
{
public class KubePVInventory : TableBase<KubePVInventory>
{
///
public string TenantId {get; set;}
/// The type of agent the data was collected from
public string SourceSystem {g... | 35,134 |
https://github.com/forstar2001/LaravelAPI/blob/master/app/Http/Controllers/API/AppUserController.php | Github Open Source | Open Source | MIT | null | LaravelAPI | forstar2001 | PHP | Code | 631 | 2,018 | <?php
namespace App\Http\Controllers\API;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\User;
use App\Models\Token;
use App\Services\UserServices;
use Hash;
use Carbon\Carbon;
use Validator;
use Response;
use Password;
use Illuminate\Mail\Message;
use Mail;
c... | 999 |
https://github.com/igolan/bgd/blob/master/nn_utils/NNTrainer.py | Github Open Source | Open Source | MIT | 2,020 | bgd | igolan | Python | Code | 1,694 | 6,227 | from utils.logging_utils import Logger
from utils.utils import *
from probes_lib.basic import *
from utils.utils import AverageTracker
from optimizers_lib.bgd_optimizer import BGD
import torch
class NNTrainer:
def __init__(self, train_loader, test_loader, criterion, net, logger, **kwargs):
# NN Configurat... | 3,111 |
https://github.com/adityajain96/interop/blob/master/server/auvsi_suas/models/target.py | Github Open Source | Open Source | Apache-2.0 | 2,016 | interop | adityajain96 | Python | Code | 674 | 1,945 | """Target model."""
import enum
from gps_position import GpsPosition
from django.conf import settings
from django.db import models
class Choices(enum.IntEnum):
"""Base class for enums used to limit Django field choices,
plus other helper methods.
Item names should be lowercase to work properly with look... | 12,779 |
https://github.com/bwalsh/civic-server/blob/master/app/presenters/evidence_item_presenter.rb | Github Open Source | Open Source | MIT | 2,015 | civic-server | bwalsh | Ruby | Code | 94 | 440 | class EvidenceItemPresenter
def initialize(item, render_as_single = false)
@item = item
@render_as_single = render_as_single
end
def as_json(options = {})
{
id: @item.id,
name: @item.name,
description: @item.description,
disease: @item.disease.name,
doid: @item... | 51,070 |
https://github.com/ivivarel/DREMTubes/blob/master/DreamDaq/ugo.cxx | Github Open Source | Open Source | MIT | 2,021 | DREMTubes | ivivarel | C++ | Code | 140 | 438 | int initV513()
{
uint16_t w;
xio.read16phys(0xFE, &w);
cout << hex << " V513 FE " << w << endl;
usleep(1);
xio.read16phys(0xFC, &w);
cout << hex << " V513 FC " << w << endl;
usleep(1);
xio.read16phys(0xFA, &w);
cout << hex << " V513 FA " << w << endl;
usleep(1);
w=0;
xio.write16phys(0x48, w);
... | 2,285 |
https://github.com/docsforhealth/dfh-wordpress-plugin/blob/master/src/scss/block/_page-header.scss | Github Open Source | Open Source | Apache-2.0 | null | dfh-wordpress-plugin | docsforhealth | SCSS | Code | 107 | 385 | .page-header {
@extend .container;
@include full-width-bg($color-seafoam);
display: flex;
flex-direction: column;
padding: ($baseunit * 2) 0 $baseunit;
&__form {
flex-grow: 1;
}
&__metadata {
@extend .text;
@include scut-truncate;
display: none;
... | 28,580 |
https://github.com/WeikangLin/IOI_GUI/blob/master/IOI_GUI.m | Github Open Source | Open Source | MIT | 2,019 | IOI_GUI | WeikangLin | MATLAB | Code | 1,601 | 4,481 | function varargout = IOI_GUI(varargin)
% IOI_GUI MATLAB code for IOI_GUI.fig
% IOI_GUI, by itself, creates a new IOI_GUI or raises the existing
% singleton*.
%
% H = IOI_GUI returns the handle to a new IOI_GUI or the handle to
% the existing singleton*.
%
% IOI_GUI('CALLBACK',hObject,eventData,... | 34,762 |
https://github.com/icoxfog417/imageset/blob/master/mlimages/scripts/label_command.py | Github Open Source | Open Source | MIT | 2,020 | imageset | icoxfog417 | Python | Code | 81 | 281 | import os
import argparse
from mlimages.label import LabelingMachine
def make_parser():
parser = argparse.ArgumentParser(description="Label the images")
parser.add_argument("path", type=str, help="path to images data folder")
parser.add_argument("--out", type=str, help="file path & name of the labeled ima... | 34,513 |
https://github.com/Terence-D/IceGL/blob/master/app/src/main/java/ca/coffeeshopstudio/icegl/controls/Label.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | IceGL | Terence-D | Java | Code | 720 | 1,782 | /*
* Copyright 2015 Terence Doerksen
*
* 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 applicab... | 38,127 |
https://github.com/tuanhai2712/order-app-font-end/blob/master/src/reducers/systemReducers.js | Github Open Source | Open Source | MIT | null | order-app-font-end | tuanhai2712 | JavaScript | Code | 31 | 75 | import { SystemActions } from "actions"
const system_error = (err = false, action) => {
switch (action.type) {
case SystemActions.SYSTEM_ERROR:
return true
default:
return false
}
}
export {
system_error,
} | 33,406 |
https://github.com/commercetools/commercetools-sdk-php-v2/blob/master/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetCustomLineItemsChangeValueCollection.php | Github Open Source | Open Source | MIT | 2,023 | commercetools-sdk-php-v2 | commercetools | PHP | Code | 119 | 432 | <?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\History\Models\ChangeValue;
use Commercetools\History\Models\ChangeValue\ChangeTargetChangeValueCollection;
use Commercetools\Exception\InvalidArgumentException;
use stdClass;
/**
* @extends Cha... | 40,445 |
https://github.com/CodeRancher/offcenter_common/blob/master/lib/framework/include/offcenter/common/framework/application/BasicAppFoundation.hpp | Github Open Source | Open Source | Apache-2.0 | null | offcenter_common | CodeRancher | C++ | Code | 250 | 643 | /**
* Copyright 2021 Scott Brauer
*
* 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 t... | 18,663 |
https://github.com/perrywang/dionysus/blob/master/dionysus-client/yo/templates/home/question/questionList.jade | Github Open Source | Open Source | Apache-2.0 | 2,015 | dionysus | perrywang | null | Spoken | 25 | 179 | |{{#if tag}}
h2 {{tag}}
|{{/if}}
.ui.divided.items
|{{#each questions}}
.item
.ui.tiny.image.createdby
img(src="{{author.avatar}}")
.content
a(href="/questions/{{id}}") {{title}}
.meta(style="padding-top:10px;")
span.author 来自:{{author.username}}
span.createdAt 时间:{{created... | 35,740 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.