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/sotaoverride/backup/blob/master/openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/resolve/resolved-resolv-conf.h | Github Open Source | Open Source | Apache-2.0 | null | backup | sotaoverride | C | Code | 18 | 80 | /* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include "resolved-manager.h"
int manager_check_resolv_conf(const Manager* m);
int manager_read_resolv_conf(Manager* m);
int manager_write_resolv_conf(Manager* m);
| 39,618 |
https://github.com/Safewhere/Safewhere-Identify-samples/blob/master/STS/Safewhere.Samples.STS.Common/IdentifyStsServiceCommon.cs | Github Open Source | Open Source | MIT | 2,023 | Safewhere-Identify-samples | Safewhere | C# | Code | 79 | 322 | using System;
using System.IdentityModel.Protocols.WSTrust;
using System.IdentityModel.Tokens;
using System.Security.Cryptography.X509Certificates;
using System.ServiceModel;
using System.ServiceModel.Security;
namespace Safewhere.Samples.STS.Common
{
public class IdentifyStsServiceCommon
{
... | 34,489 |
https://github.com/CNinnovation/TechConference2016/blob/master/VisualStudio2015/BooksSampleCS5/BooksSampleCS6/Contracts/IBooksRepository.cs | Github Open Source | Open Source | Apache-2.0 | 2,015 | TechConference2016 | CNinnovation | C# | Code | 16 | 52 | using BooksSample.Models;
namespace BooksSample.Contracts
{
public interface IBooksRepository : IQueryRepository<Book, int>, IUpdateRepository<Book, int>
{
}
}
| 12,120 |
https://github.com/rberrelleza/dagster/blob/master/examples/legacy_examples/dagster_examples_tests/event_pipeline_demo_tests/test_airflowized.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | dagster | rberrelleza | Python | Code | 45 | 256 | # pylint: disable=unused-import
import pytest
from dagster_airflow.test_fixtures import dagster_airflow_python_operator_pipeline
from dagster_examples.event_pipeline_demo.pipelines import event_ingest_pipeline
from dagster.core.definitions.reconstructable import ReconstructableRepository
from dagster.utils import scr... | 6,587 |
https://github.com/roduriel/Pokemon/blob/master/storage/framework/views/3c40c202e89d99d35f84898559eadc4dae6ace13.php | Github Open Source | Open Source | MIT | 2,021 | Pokemon | roduriel | PHP | Code | 222 | 1,071 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pokechallenge</title>
<link rel="stylesheet" href="<?php echo e(asset('css/app.css')); ?>">
<link re... | 6,924 |
https://github.com/graphile/graphile-engine/blob/master/packages/postgraphile-core/__tests__/queries/base/simple-procedure-computed-fields.sql | Github Open Source | Open Source | MIT | 2,023 | graphile-engine | graphile | SQL | Code | 2,173 | 9,570 | select to_json(
json_build_array(__local_0__."id")
) as "__identifiers",
to_json((__local_0__."person_full_name")) as "name",
to_json(
(
select to_json(__local_1__) as "value"
from "c"."person_first_name"(__local_0__) as __local_1__
where (TRUE) and (TRUE)
)
) as "@firstName",
to_json(
(
with __... | 15,662 |
https://github.com/HexaTeam6/setClass/blob/master/application/models/Menu_level_model.php | Github Open Source | Open Source | MIT | null | setClass | HexaTeam6 | PHP | Code | 124 | 591 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Menu_level_model extends CI_Model{
public function __construct()
{
parent::__construct();
}
function tampil_data(){
return $this->db->query("SELECT * FROM menu_hak_akses ORDER BY kode_akses DESC");
}
... | 35,802 |
https://github.com/cloudfoundry-incubator/app-autoscaler-ci/blob/master/autoscaler/scripts/run-acceptance-tests.sh | Github Open Source | Open Source | Apache-2.0 | null | app-autoscaler-ci | cloudfoundry-incubator | Shell | Code | 111 | 650 | #!/bin/bash
set -euo pipefail
system_domain="${SYSTEM_DOMAIN:-autoscaler.ci.cloudfoundry.org}"
service_name="${SERVICE_NAME:-autoscaler}"
deployment_name="${DEPLOYMENT_NAME:-autoscaler}"
bbl_state_path="${BBL_STATE_PATH:-bbl-state/bbl-state}"
autoscaler_dir="${AUTOSCALER_DIR:-app-autoscaler-release}"
skip_teardown="$... | 23,310 |
https://github.com/hpi-swa-teaching/TogglClient/blob/master/packages/TogglClient-Core.package/TogglAccountSettings.class/instance/defaultExtent.st | Github Open Source | Open Source | MIT | 2,019 | TogglClient | hpi-swa-teaching | null | Spoken | 6 | 14 | accessing
defaultExtent
^ 200 @ 60 | 26,742 |
https://github.com/lfmanga/notas02/blob/master/src/notas02-react-app/src/app/containers/cliente/reducer.js | Github Open Source | Open Source | MIT | null | notas02 | lfmanga | JavaScript | Code | 60 | 166 | import { FETCH_ALL, FETCH_FILTER, FETCH_BY_ID } from './actionsType'
const initialState = {
list: [],
model: {}
}
export default (state = initialState, action) => {
switch (action.type) {
case FETCH_ALL:
return Object.assign({}, state, { list: action.payload })
case FETCH_FILTE... | 47,137 |
https://github.com/intel/compute-runtime/blob/master/level_zero/api/sysman/ze_sysman_loader.cpp | Github Open Source | Open Source | MIT | 2,023 | compute-runtime | intel | C++ | Code | 1,041 | 6,532 | /*
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/source/inc/ze_intel_gpu.h"
#include <level_zero/ze_api.h>
#include <level_zero/ze_ddi.h>
#include <level_zero/zes_api.h>
#include <level_zero/zes_ddi.h>
#include <level_zero/zet_api.h>
#include <level_zero/ze... | 47,342 |
https://github.com/andersnylund/alkoselain/blob/master/backend/src/constants.ts | Github Open Source | Open Source | MIT | 2,019 | alkoselain | andersnylund | TypeScript | Code | 47 | 328 | export const alkoHeaders = [
'id',
'nimi',
'valmistaja',
'pullokoko',
'hinta',
'litrahinta',
'uutuus',
'hinnastojarjestys',
'tyyppi',
'alatyyppi',
'erityisryhma',
'oluttyyppi',
'valmistusmaa',
'alue',
'vuosikerta',
'etikettimerkintoja',
'huomautus',
'rypaleet',
'luonnehdinta',
'p... | 26,788 |
https://github.com/mulesoft/docs-connectors/blob/master/microsoft-azure-sb/3.1/modules/ROOT/nav.adoc | Github Open Source | Open Source | LicenseRef-scancode-generic-cla | 2,023 | docs-connectors | mulesoft | AsciiDoc | Code | 41 | 162 | .xref:index.adoc[Azure Service Bus Connector]
* xref:index.adoc[About Azure Service Bus Connector]
* xref:azure-service-bus-connector-studio.adoc[Using Anypoint Studio to Configure Azure Service Bus Connector]
* xref:azure-service-bus-connector-xml-maven.adoc[Azure Service Bus Connector XML and Maven Support]
* xref:az... | 35,741 |
https://github.com/quantumVector/Calendar-to-Progress-Tracking/blob/master/routes/post-log.js | Github Open Source | Open Source | MIT | 2,020 | Calendar-to-Progress-Tracking | quantumVector | JavaScript | Code | 181 | 579 | const { Router } = require('express');
const { check, validationResult } = require('express-validator');
const UserCalendar = require('../models/UserCalendar');
const router = Router();
router.post('/login', [
check('name', 'Имя должно состоять от 3 до 16 символов и содержать только цифры, латиницу, нижнее подчерки... | 44,162 |
https://github.com/MohamedSaidHamed/WorldMap/blob/master/src/main/java/com/mycompany/worldmap/WorldmapApplication.java | Github Open Source | Open Source | MIT | 2,021 | WorldMap | MohamedSaidHamed | Java | Code | 21 | 87 | package com.mycompany.worldmap;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class WorldmapApplication {
public static void main(String[] args) {
SpringApplication.run(WorldmapApplication.class, args);
}
}
| 22,059 |
https://github.com/andreivisan/Personal_Finance_Project/blob/master/views/dashboard.jade | Github Open Source | Open Source | MIT | null | Personal_Finance_Project | andreivisan | null | Spoken | 183 | 835 | extends dashboard_layout
block content
nav.navbar.navbar-inverse.navbar-fixed-top
div.container-fluid
div.navbar-header
button.navbar-toggle.collapsed(type="button" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar")
span.sr-only Toggle navigation
... | 18,754 |
https://github.com/TigerBSD/FreeBSD-Custom-ThinkPad/blob/master/FreeBSD/contrib/smbfs/lib/smb/nls.c | Github Open Source | Open Source | 0BSD | 2,017 | FreeBSD-Custom-ThinkPad | TigerBSD | C | Code | 731 | 2,023 | /*
* Copyright (c) 2000-2001, Boris Popov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | 5,767 |
https://github.com/404clovis/pilot/blob/master/webapp/src/containers/Order/Client/index.js | Github Open Source | Open Source | CC-BY-4.0, LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,017 | pilot | 404clovis | JavaScript | Code | 81 | 273 | import React from 'react'
import ReactJson from 'react-json-view'
class Client extends React.Component {
constructor (props) {
super(props)
this.state = {
client: {},
errors: {},
}
}
componentDidMount () {
fetch('http://localhost:8000/clients/REX-CLIENT-594aa41259f4a100208e89bf')
... | 43,895 |
https://github.com/Piromancer/ANARI-SDK/blob/master/libs/anari_test_scenes/scenes/textured_cube_samplers.h | Github Open Source | Open Source | Apache-2.0 | null | ANARI-SDK | Piromancer | C | Code | 55 | 187 | // Copyright 2021 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "scene.h"
namespace anari {
namespace scenes {
TestScene *sceneTexturedCubeSamplers(anari::Device d);
struct TexturedCubeSamplers : public TestScene
{
TexturedCubeSamplers(anari::Device d);
~TexturedCubeSamplers();... | 18,801 |
https://github.com/paulnguyen/cmpe279/blob/master/eclipse/Roller/src/org/apache/roller/ui/core/struts/actions/YourProfileAction.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | cmpe279 | paulnguyen | Java | Code | 545 | 1,696 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. The ASF licenses this file to You
* 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
*
* ... | 33,998 |
https://github.com/maysamyabandeh/algebra/blob/master/src/main/java/com/twitter/algebra/nmf/CompositeDMJ.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | algebra | maysamyabandeh | Java | Code | 1,157 | 3,967 | /*
Copyright 2014 Twitter, 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 to in writing, software
distr... | 26,147 |
https://github.com/Mcluckinson/lemin_viz/blob/master/src/draw_map.c | Github Open Source | Open Source | WTFPL | null | lemin_viz | Mcluckinson | C | Code | 261 | 1,122 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* draw_map.c :+: :+: :+: ... | 32,579 |
https://github.com/wso2/product-is/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/sts/TestPassiveSTSFederation.java | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0, EPL-1.0, BSD-3-Clause, GPL-2.0-only, LGPL-2.0-only, CDDL-1.0, LicenseRef-scancode-unknown | 2,023 | product-is | wso2 | Java | Code | 1,399 | 7,139 | package org.wso2.identity.integration.test.sts;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.CookieStore;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.htt... | 43,644 |
https://github.com/yongtiger/yii2-user/blob/master/src/views/preference/view.php | Github Open Source | Open Source | MIT | 2,017 | yii2-user | yongtiger | PHP | Code | 126 | 518 | <?php ///[Yii2 uesr:preference]
use yii\helpers\Html;
use yii\widgets\DetailView;
use yongtiger\user\Module;
/* @var $this yii\web\View */
/* @var $model yongtiger\user\models\Preference */
$this->title = Module::t('message', 'View User Preference') . ': ID ' . $model->user_id;
///[v0.18.5 (isAdminEnd)]
if (!empty(... | 13,742 |
https://github.com/cv-lang/virual-machine/blob/master/Cvl.VirtualMachine/Cvl.VirtualMachine.UnitTest/Proces/RequestContract.cs | Github Open Source | Open Source | MIT | 2,022 | virual-machine | cv-lang | C# | Code | 18 | 45 | namespace Cvl.VirtualMachine.UnitTest.Proces
{
public class RequestContract
{
public int ApplicationId { get; set; } = 3;
}
} | 7,452 |
https://github.com/stakwork/sphinx-relay/blob/master/dist/src/builtin/utill/sentiment.js | Github Open Source | Open Source | MIT | 2,023 | sphinx-relay | stakwork | JavaScript | Code | 772 | 2,119 | "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... | 27,321 |
https://github.com/hernanmd/pharo/blob/master/src/Refactoring-Core.package/RBExpandReferencedPoolsRefactoring.class/instance/poolVariableNamesIn..st | Github Open Source | Open Source | MIT | 2,019 | pharo | hernanmd | null | Spoken | 17 | 46 | transforming
poolVariableNamesIn: poolName
^(Smalltalk globals at: poolName ifAbsent: [Dictionary new]) classPool keys
collect: [:name | name asString] | 45,854 |
https://github.com/magical-l/magicall-util/blob/master/src/main/java/me/magicall/coll/CollectionFactory.java | Github Open Source | Open Source | Apache-2.0 | null | magicall-util | magical-l | Java | Code | 34 | 136 | package me.magicall.coll;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
public interface CollectionFactory {
<E> Collection<E> newColl();
<E> ArrayList<E> newArrayList();
<E> LinkedList<E> newLinkedList();
<E> Set<E> newSet();... | 21,508 |
https://github.com/SimonVT/cathode/blob/master/cathode/src/main/java/net/simonvt/cathode/settings/link/SyncThread.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | cathode | SimonVT | Java | Code | 197 | 661 | /*
* Copyright (C) 2016 Simon Vig Therkildsen
*
* 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 ... | 34,588 |
https://github.com/ric2b/Vivaldi-browser/blob/master/chromium/content/browser/attribution_reporting/attribution_metrics.cc | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Vivaldi-browser | ric2b | C++ | Code | 52 | 160 | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/attribution_reporting/attribution_metrics.h"
#include "base/metrics/histogram_functions.h"
namespace content {
void RecordRegisterConversionAllowed... | 9,563 |
https://github.com/miguelesco/webpack-project/blob/master/src/app/modules/__mocks__/remove.js | Github Open Source | Open Source | MIT | 2,021 | webpack-project | miguelesco | JavaScript | Code | 77 | 277 | /* eslint-disable */
import storage from './storage.js';
const reload = (ul) => {
ul.innerHTML = '';
storage.get().forEach((element, i) => {
const newLi = `
<li data-id="${i}" draggable="true" class="item">
<input type="checkbox" class="checkbox">
<label class="text-task" contenteditabl... | 33,573 |
https://github.com/lol768/wss-case-management/blob/master/app/controllers/ClientMessagesController.scala | Github Open Source | Open Source | ISC | null | wss-case-management | lol768 | Scala | Code | 444 | 1,943 | package controllers
import domain.AuditEvent._
import java.time.OffsetDateTime
import java.util.UUID
import controllers.MessagesController.MessageFormData
import controllers.refiners.{ClientIssueActionFilters, IssueSpecificRequest}
import domain._
import warwick.core.helpers.ServiceResults
import javax.inject.{Inject... | 43,641 |
https://github.com/not522/CompetitiveProgramming/blob/master/old/AtCoder/agc007/B.cpp | Github Open Source | Open Source | Unlicense | 2,023 | CompetitiveProgramming | not522 | C++ | Code | 79 | 182 | #include "vector.hpp"
#include "string/join.hpp"
int main() {
int n;
cin >> n;
vector<int> p(n), a(n);
cin >> p;
iota(a, 1);
auto b = a;
reverse(b);
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
if (j < p[i] - 1) b[j] += n - i;
if (j > p[i] - 1) a[j] += n - i;
}
}
... | 1,918 |
https://github.com/tz-lom/TrustedForms/blob/master/tests/autoload.php | Github Open Source | Open Source | MIT | 2,011 | TrustedForms | tz-lom | PHP | Code | 29 | 213 | <?php
spl_autoload_register(function($classname){
if(strpos($classname,'TrustedForms\\')===0)
{
if(file_exists(__DIR__.'/../library/'.str_replace('\\', DIRECTORY_SEPARATOR, substr($classname, 13)).'.php'))
{
require_once __DIR__.'/../library/'.str_replace('\\', DIRECTORY_SEPARATOR, ... | 38,327 |
https://github.com/ramy-ahmed/grommet-cms/blob/master/src/js/containers/Dashboard/DashboardBlockForm/ImageForm.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | grommet-cms | ramy-ahmed | JavaScript | Code | 194 | 622 | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Assets } from 'grommet-cms/containers';
import { BlockImageForm } from 'grommet-cms-content-blocks';
export class ImageForm extends Component {
constructor(props) {
super(props);
this.state = {
image: p... | 23,206 |
https://github.com/ohuio/swoolefy/blob/master/score/Core/Cache/Predis.php | Github Open Source | Open Source | MIT | null | swoolefy | ohuio | PHP | Code | 250 | 845 | <?php
/**
+----------------------------------------------------------------------
| swoolefy framework bases on swoole extension development, we can use it easily!
+----------------------------------------------------------------------
| Licensed ( https://opensource.org/licenses/MIT )
+--------------------------------... | 1,464 |
https://github.com/UnofficialJuliaMirrorSnapshots/SCIP.jl-82193955-e24f-5292-bf16-6f2c5261a85f/blob/master/src/wrapper/pub_disp.jl | Github Open Source | Open Source | MIT | null | SCIP.jl-82193955-e24f-5292-bf16-6f2c5261a85f | UnofficialJuliaMirrorSnapshots | Julia | Code | 146 | 720 | # Julia wrapper for header: /usr/include/scip/pub_disp.h
# Automatically generated using Clang.jl wrap_c
function SCIPdispGetData(disp)
ccall((:SCIPdispGetData, libscip), Ptr{SCIP_DISPDATA}, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispSetData(disp, dispdata)
ccall((:SCIPdispSetData, libscip), Cvoid, (Ptr{S... | 16,760 |
https://github.com/idsme/exclusives2/blob/master/node_modules/plato/node_modules/escomplex-js/node_modules/check-types/src/check-types.js | Github Open Source | Open Source | MIT | 2,016 | exclusives2 | idsme | JavaScript | Code | 1,569 | 3,977 | /**
* This module exports functions for checking types
* and throwing exceptions.
*/
/*globals define, module */
(function (globals) {
'use strict';
var messages, predicates, functions, assert, not, maybe, either;
messages = {
like: 'Invalid type',
instance: 'Invalid type',
em... | 14,222 |
https://github.com/standardgalactic/slipbox/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | slipbox | standardgalactic | Ignore List | Code | 12 | 70 | *.egg-info/
*.pyc
.coverage
.hypothesis/
/docs-src/.slipbox/
slipbox/data/*.js
slipbox/data/filter.lua
__pycache__/
build/
dist/
env/
node_modules/
| 4,144 |
https://github.com/Costava/beljs/blob/master/test/contexts.js | Github Open Source | Open Source | MIT | 2,021 | beljs | Costava | JavaScript | Code | 84 | 254 |
const contexts = require('../lib/contexts');
exports['get unknown variable'] = function (test) {
const context = contexts.context();
test.strictEqual(context.get('foo'), null);
};
exports['set and get variable'] = function (test) {
const context = contexts.context();
context.set('answer', 4... | 40,422 |
https://github.com/oashnic/dxvk/blob/master/src/d3d9/d3d9_stateblock.h | Github Open Source | Open Source | Zlib | 2,022 | dxvk | oashnic | C | Code | 808 | 4,168 | #pragma once
#include "d3d9_device_child.h"
#include "d3d9_device.h"
#include "d3d9_state.h"
#include "../util/util_bit.h"
namespace dxvk {
enum class D3D9CapturedStateFlag : uint32_t {
VertexDecl,
Indices,
RenderStates,
SamplerStates,
VertexBuffers,
Textures,
VertexShader,
PixelSh... | 27,138 |
https://github.com/wakemaster39/request-log-analyzer/blob/master/lib/cli/tools.rb | Github Open Source | Open Source | MIT | 2,012 | request-log-analyzer | wakemaster39 | Ruby | Code | 194 | 540 | # Try to determine the terminal with.
# If it is not possible to to so, it returns the default_width.
# <tt>default_width</tt> Defaults to 81
def terminal_width(default_width = 81)
begin
tiocgwinsz = 0x5413
data = [0, 0, 0, 0].pack("SSSS")
if !RUBY_PLATFORM.include?('java') && @out.ioctl(tiocgwinsz, da... | 37,519 |
https://github.com/LarryStanley/ark-lab/blob/master/resources/views/crazybull.blade.php | Github Open Source | Open Source | MIT | null | ark-lab | LarryStanley | PHP | Code | 314 | 2,101 | @extends("default")
@section("head")
<link rel="stylesheet" href="/css/products.css">
@stop
@section("body")
@include("nav")
<div class="crazybull">
<div class="intro valign-wrapper">
<div class="valign center-align" style="width:100%">
<h1>Crazybull</h1>
<p>NTD 1700 起</p>
</div>
<img src="http:... | 732 |
https://github.com/thorakmedichi/Sketchpad-Travel/blob/master/resources/views/admin/content/locations/index.blade.php | Github Open Source | Open Source | MIT | null | Sketchpad-Travel | thorakmedichi | PHP | Code | 72 | 334 | @extends('admin.content.single-form-panel')
{{-- Web site Title --}}
@section('title', 'Locations')
@section('panel-content')
<table class="table table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Country</th>
<th>Created</th>
<th>... | 16,218 |
https://github.com/Legyver/logmire/blob/master/src/main/java/com/legyver/logmire/ui/tabs/LogViewSkin.java | Github Open Source | Open Source | Apache-2.0 | null | logmire | Legyver | Java | Code | 509 | 2,811 | package com.legyver.logmire.ui.tabs;
import com.legyver.fenxlib.core.impl.context.ApplicationContext;
import com.legyver.fenxlib.extensions.tuktukfx.task.adapter.JavaFxAdapter;
import com.legyver.fenxlib.extensions.tuktukfx.task.exec.TaskExecutor;
import com.legyver.logmire.event.ResetType;
import com.legyver.logmire.... | 23,203 |
https://github.com/phpbench/phpbench/blob/master/lib/Expression/NodePrinter/NumberPrinter.php | Github Open Source | Open Source | MIT | 2,023 | phpbench | phpbench | PHP | Code | 55 | 200 | <?php
namespace PhpBench\Expression\NodePrinter;
use PhpBench\Expression\Ast\Node;
use PhpBench\Expression\Ast\NumberNode;
use PhpBench\Expression\NodePrinter;
use PhpBench\Expression\Printer;
class NumberPrinter implements NodePrinter
{
/**
* @var int
*/
private $precision;
public function __... | 51,447 |
https://github.com/ngiasim/realtime/blob/master/src/migrations/0000_00_00_000000_create_timezones_table.php | Github Open Source | Open Source | Apache-2.0 | null | realtime | ngiasim | PHP | Code | 38 | 168 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTimezonesTable extends Migration
{
public function up()
{
//schema migrations here
Schema::create('timezones', function(Blueprint $t)
{
$t->increments('id')->unsigned();
$t->string('name', 255);
$t... | 6,828 |
https://github.com/gnoliyil/fuchsia/blob/master/src/connectivity/wlan/drivers/third_party/intel/iwlwifi/platform/pcie-device.cc | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, BSD-2-Clause | 2,022 | fuchsia | gnoliyil | C++ | Code | 445 | 2,139 | // Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/connectivity/wlan/drivers/third_party/intel/iwlwifi/platform/pcie-device.h"
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/de... | 51,332 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/w/wonka/src/main/scala/typingsSlinky/wonka/wonkaJsMod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 171 | 868 | package typingsSlinky.wonka
import org.scalajs.dom.raw.HTMLElement
import typingsSlinky.wonka.wonkaCallbagMod.Callbag
import typingsSlinky.wonka.wonkaObservableMod.JsObservable
import typingsSlinky.wonka.wonkaTypesMod.Operator
import typingsSlinky.wonka.wonkaTypesMod.Source
import org.scalablytyped.runtime.StObject
im... | 5,777 |
https://github.com/Annelisebx/emerald/blob/master/service/routers/uploadsRouter.js | Github Open Source | Open Source | MIT | 2,021 | emerald | Annelisebx | JavaScript | Code | 82 | 201 | const express = require('express');
const multer = require('multer');
const upload = multer({ dest: '../resources/uploads' });
const uploadsRouter = express.Router();
uploadsRouter.route('/')
.post(upload.single('featImage'), (req, res, next) => {
try {
const featuredImage = req.file;
// by this poin... | 31,266 |
https://github.com/UnimaidElectrical/PythonForBeginners/blob/master/Random_code_store/Questions.py | Github Open Source | Open Source | MIT | 2,021 | PythonForBeginners | UnimaidElectrical | Python | Code | 2,376 | 6,370 | #What is the output of this code?
print(6+5-4*3/2%1)
#what is the output of this code?
def at(func,arg):
return func(func(arg))
def af(x):
return x + 5
print(at(af,10))
# What is the most probable output of this code?
import random
a =[1,2,3,4,5]
sum = 0
for i in range(1000):
b = random.choice(a)
s... | 12,336 |
https://github.com/qdwang/dawn.js/blob/master/src/services/local.coffee | Github Open Source | Open Source | MIT | 2,021 | dawn.js | qdwang | CoffeeScript | Code | 93 | 279 | if typeof self == 'undefined'
util = require './../util.js'
else
util = self.util
localService = (dir_path) ->
@dir_path = dir_path
@
localService::generate = (parser, only=[], reparse=false) ->
_this = @
util.fileWalk(@dir_path, (file_path) ->
for o in only
if o != file_p... | 24,093 |
https://github.com/madebyrogal/cisnienienazycie/blob/master/src/Acard/FrontendBundle/Resources/views/_Partials/calendarium.html.twig | Github Open Source | Open Source | MIT | 2,016 | cisnienienazycie | madebyrogal | Twig | Code | 75 | 411 | <aside class="col-sm-4 m-aside">
<div class="m-aside-inside">
<div class="m-aside--box">
<div class="m-box-img-wrapper">
<a href="{{ url('acard_frontend_page_view', {'pageUrl': 'kalendarium'}) }}"><img src="{{ asset('bundles/acardfrontend/img/aside-map.jpg') }}" alt="Kalendarium ... | 47,082 |
https://github.com/DiamondLightSource/SynchWeb/blob/master/docs/assets/css/modules/_utility.scss | Github Open Source | Open Source | Apache-2.0 | 2,023 | SynchWeb | DiamondLightSource | SCSS | Code | 128 | 418 | // Mixins
// Flexible grid
@mixin cols($n, $pad: 1%, $marg: 0, $multi: 1) {
$p: 0;
$m: 0;
@if length($pad) == 1 {
$p: $pad*2;
} @else if length($pad) == 2 {
$p: nth($pad, 2)*2;
} @else if length($pad) == 4 {
$p: nth($pad, 2) + nth($pad, 4);
}
@if length($... | 15,059 |
https://github.com/shaojiankui/iOS10-Runtime-Headers/blob/master/PrivateFrameworks/HomeKitDaemon.framework/HMDCameraSnapshotIDSRelay.h | Github Open Source | Open Source | MIT | 2,018 | iOS10-Runtime-Headers | shaojiankui | C | Code | 83 | 319 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon
*/
@interface HMDCameraSnapshotIDSRelay : NSObject <IDSServiceDelegate> {
IDSService * _idsStreamService;
HAPOSTransaction * _snapshotRelayTransaction;
NSUUID * _uniqueIdentifier;
NSObject<... | 40,185 |
https://github.com/gbtyy/sharding-jdbc/blob/master/sharding-core/src/main/java/io/shardingsphere/core/merger/dal/show/ShowDatabasesMergedResult.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | sharding-jdbc | gbtyy | Java | Code | 257 | 625 | /*
* Copyright 2016-2018 shardingsphere.io.
* <p>
* 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 l... | 23,028 |
https://github.com/WallaceLiu/springboot-learning-example/blob/master/springboot-mybatis/src/main/java/org/spring/springboot/domain/City.java | Github Open Source | Open Source | Apache-2.0 | null | springboot-learning-example | WallaceLiu | Java | Code | 56 | 178 | package org.spring.springboot.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 城市实体类
* <p>
* Created by bysocket on 07/02/2017.
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class City {
/**
* 城市编号
*/
private Long id;
/**
* ... | 9,753 |
https://github.com/youzan/vant/blob/master/packages/vant/src/row/index.less | Github Open Source | Open Source | MIT | 2,023 | vant | youzan | Less | Code | 42 | 179 | .van-row {
display: flex;
flex-wrap: wrap;
&--nowrap {
flex-wrap: nowrap;
}
&--justify-center {
justify-content: center;
}
&--justify-end {
justify-content: flex-end;
}
&--justify-space-between {
justify-content: space-between;
}
&--justify-space-around {
justify-content: ... | 32,700 |
https://github.com/vany-oss/python/blob/master/pasta para baixar/netcha/exr54 grupo de maior de idade.py | Github Open Source | Open Source | MIT | null | python | vany-oss | Python | Code | 54 | 137 | from datetime import date
ac = date.today().year
tmaior = 0
tmenor =0
for pes in range(1, 8):
nasc = int(input('ano da {}° pessoa? '.format(pes)))
idade = ac - nasc
if idade >= 18:
tmaior += 1
else:
tmenor +=1
print(f'ao todo tivemos {tmaior} pessoas maior de idade')
print(f'e tevemos {tmenor} pesoas menores ... | 3,972 |
https://github.com/18F/identity-idp/blob/master/spec/services/key_rotator/hmac_fingerprinter_spec.rb | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,023 | identity-idp | 18F | Ruby | Code | 134 | 601 | require 'rails_helper'
RSpec.describe KeyRotator::HmacFingerprinter do
describe '#rotate' do
let(:pii_hash) do
{
first_name: 'Tony',
last_name: 'Tiger',
dob: '1980-12-31',
zipcode: '20001',
}
end
it 'changes email and ssn fingerprints' do
rotator = descr... | 39,065 |
https://github.com/ethanneff/iOS-ObjC-Fundamentals/blob/master/10_array_length/MyFirstCProgram/MyFirstCProgram/main.c | Github Open Source | Open Source | MIT | null | iOS-ObjC-Fundamentals | ethanneff | C | Code | 24 | 94 | #include <stdio.h>
int main()
{
float number[] = {1.11,3.21321,4.00};
printf("float %ld bytes\n", sizeof(float));
printf("numbers %ld bytes\n", sizeof(number));
printf("array length %ld\n", sizeof(number)/sizeof(float));
return 0;
}
| 45,316 |
https://github.com/ieeehyd/cishyd-ss/blob/master/grav-1.4.6/grav-admin/vendor/rockettheme/toolbox/File/src/PhpFile.php | Github Open Source | Open Source | MIT | null | cishyd-ss | ieeehyd | PHP | Code | 315 | 792 | <?php
namespace RocketTheme\Toolbox\File;
/**
* Implements PHP File reader.
*
* @package RocketTheme\Toolbox\File
* @author RocketTheme
* @license MIT
*/
class PhpFile extends File
{
/**
* @var string
*/
protected $extension = '.php';
/**
* @var array|File[]
*/
static protect... | 48,792 |
https://github.com/ardop/Matlab/blob/master/kinematics/3d_simulation/calc_theta.m | Github Open Source | Open Source | BSD-3-Clause | 2,017 | Matlab | ardop | MATLAB | Code | 155 | 451 | function theta = calc_theta(type, angles, coord)
%We need to calculate the FK matrix (T) that translates and
%orients points from the end effector coordinate to the base
%coordinate
%First we find the orientation matrix
orientation_matrix = eye(3);
for i=1:3
k = type(i);... | 18,622 |
https://github.com/psvensson/magma/blob/master/src/Magma-Client.package/MagmaHashTable.class/instance/slowlyDo.pageBoundariesDo..st | Github Open Source | Open Source | MIT | 2,022 | magma | psvensson | null | Spoken | 48 | 99 | enumeration
slowlyDo: oneArgBlock pageBoundariesDo: aBlock
"Enumerate all objects of the receiver, value oneArgBlock with each object."
| count |
count := 0.
table do:
[ : each | oneArgBlock value: each.
count := count + 1.
count \\ self enumerationPageSize = 0 ifTrue: [ aBlock value ] ] | 7,131 |
https://github.com/fangnx/rview/blob/master/server/routes/rssSourceAPI.js | Github Open Source | Open Source | MIT | 2,019 | rview | fangnx | JavaScript | Code | 155 | 466 | /**
* rssSourceAPI.js
*
* @author nxxinf
* @github https://github.com/fangnx
* @created 2019-07-04 20:00:48
* @last-modified 2019-07-10 00:41:12
*/
import express from 'express';
import Source from '../models/Source';
const router = express.Router();
// Returns all Source objects.
router.post('/all', (req, re... | 15,222 |
https://github.com/ekkodale/speckle-sharp/blob/master/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertAnalyticalStick.cs | Github Open Source | Open Source | Apache-2.0 | null | speckle-sharp | ekkodale | C# | Code | 1,276 | 8,011 | using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Structure;
using Objects.BuiltElements.Revit;
using Objects.Structural.Geometry;
using Objects.Structural.Materials;
using Objects.Structural.Properties;
using Objects.Structural.Properties.Profiles;
using Speckle.Core.Models;
using System;
using System.Collections.Gene... | 46,358 |
https://github.com/prepare/Tektosyne.NET/blob/master/Tektosyne.Core/Graph/PathNode.cs | Github Open Source | Open Source | MIT | null | Tektosyne.NET | prepare | C# | Code | 750 | 1,730 | using System;
using System.Diagnostics;
using Tektosyne.Collections;
namespace Tektosyne.Graph {
/// <summary>
/// Provides a node for <see cref="AStar{T}"/> search paths.</summary>
/// <typeparam name="T">
/// The type of all nodes in the graph. If <typeparamref name="T"/> is a reference type, nodes... | 4,761 |
https://github.com/iotoi-project/winiot-app/blob/master/Common/ZWave/ZWaveAdapter/ZWaveAdapterLib/ApplicationState.cs | Github Open Source | Open Source | MIT | 2,019 | winiot-app | iotoi-project | C# | Code | 110 | 323 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Enumeration;
namespace ZWaveAdapterLib
{
public class ApplicationState
{
static ApplicationState _st... | 8,930 |
https://github.com/T-R0D/Past-Courses/blob/master/CS660/JST/bin/generate_ast_node_classes.py | Github Open Source | Open Source | MIT | 2,021 | Past-Courses | T-R0D | Python | Code | 618 | 1,823 | # This file is part of JST.
#
# JST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# JST is distributed in the hope that it will be ... | 27,646 |
https://github.com/c-mueller/MBP/blob/master/resources/adapter-scripts/ultrasonic_adapter/adapter_distance.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | MBP | c-mueller | Python | Code | 226 | 664 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from signal import *
import os, fnmatch
import sys, getopt
import json
from neopixel import *
from os.path import expanduser
from datetime import datetime
import time
import re
# --- Custom LIB imports
from mqttLIB import Client as mqttClient
from esp12e import ESP12e_Pus... | 38,303 |
https://github.com/Infoss/conf-profile-4-android/blob/master/ConfProfile/jni/strongswan/src/libstrongswan/plugins/test_vectors/test_vectors/md5_hmac.c | Github Open Source | Open Source | MIT | 2,019 | conf-profile-4-android | Infoss | C | Code | 381 | 2,994 | /*
* Copyright (C) 2009 Martin Willi
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the Licenseor (at your
* option) any later ... | 36,990 |
https://github.com/joelin14/psjava/blob/master/src/main/java/org/psjava/algo/sort/Sort.java | Github Open Source | Open Source | MIT | 2,013 | psjava | joelin14 | Java | Code | 17 | 70 | package org.psjava.algo.sort;
import java.util.Comparator;
import org.psjava.ds.array.MutableArray;
public interface Sort {
<T> void sort(MutableArray<T> a, Comparator<T> comparator);
} | 11,792 |
https://github.com/imrui/spring-restful-auth/blob/master/src/main/java/com/xxicon/exception/CodeMsgException.java | Github Open Source | Open Source | Apache-2.0 | null | spring-restful-auth | imrui | Java | Code | 36 | 102 | package com.xxicon.exception;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class CodeMsgException extends Exception {
private int code;
private String msg;
public CodeMsgException(int code, String msg) {
this.code = code;
this.msg... | 15,036 |
https://github.com/thinkgem/openwan/blob/master/lib/qeephp-2.1/library/core/exception.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | openwan | thinkgem | PHP | Code | 171 | 530 | <?php
// $Id: exception.php 2159 2009-01-25 12:43:25Z dualface $
/**
* 定义 QException 类
*
* @link http://qeephp.com/
* @copyright Copyright (c) 2006-2009 Qeeyuan Inc. {@link http://www.qeeyuan.com}
* @license New BSD License {@link http://qeephp.com/license/}
* @version $Id: exception.php 2159 2009-01-25 12:43:25... | 24,908 |
https://github.com/YoLung-Lu/MontageMoment/blob/master/app/src/main/java/com/example/luyolung/montage/moment/activity/MyTakePhotoDelegateActivity.java | Github Open Source | Open Source | MIT | 2,017 | MontageMoment | YoLung-Lu | Java | Code | 1,125 | 3,357 | package com.example.luyolung.montage.moment.activity;
/**
* Created by luyolung on 07/04/2017.
*/
// Copyright (c) 2017-present boyw165
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Softwa... | 47,910 |
https://github.com/adityagupta1089/ComputeLibrary/blob/master/documentation/reference_2_channel_combine_8cpp.js | Github Open Source | Open Source | MIT | 2,021 | ComputeLibrary | adityagupta1089 | JavaScript | Code | 15 | 113 | var reference_2_channel_combine_8cpp =
[
[ "channel_combine", "reference_2_channel_combine_8cpp.xhtml#ad2b7a225c81e58726bad28af5f8d84c3", null ],
[ "channel_combine", "reference_2_channel_combine_8cpp.xhtml#a15a83291552130a09c9725895fa1f677", null ]
]; | 26,155 |
https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans/blob/master/antlr-editing-plugins/antlr-project-extensions/src/main/java/org/nemesis/antlr/project/extensions/actions/PostGenerate.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,019 | ANTLR4-Plugins-for-NetBeans | timboudreau | Java | Code | 347 | 923 | /*
* Copyright 2016-2019 Tim Boudreau, Frédéric Yvon Vinet
*
* 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 ... | 39,929 |
https://github.com/severest/question-cove/blob/master/app/controllers/answers_controller.rb | Github Open Source | Open Source | MIT | 2,018 | question-cove | severest | Ruby | Code | 285 | 881 | class AnswersController < LoggedinController
before_action :set_answer, only: [:voteup, :votedown, :edit, :update, :destroy]
before_action :can_edit_redirect, only: [:edit, :update, :destroy]
# POST /questions
# POST /questions.json
def create
@answer = Answer.new(answer_params)
@answer.user = curren... | 11,033 |
https://github.com/tanbinh123/open-social/blob/master/cmd/backend/Dockerfile | Github Open Source | Open Source | MIT | 2,021 | open-social | tanbinh123 | Dockerfile | Code | 121 | 404 | FROM golang:alpine AS base
RUN apk update && apk add --no-cache ca-certificates tzdata && update-ca-certificates
ENV USER=app
ENV UID=10001
RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistant" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "${UID}" \
"${USER}"
FRO... | 20,490 |
https://github.com/diegoferraribruno/liberation/blob/master/.import/1f44f-1f3fe.png-de497df2684ade449557aefdbb751ebc.md5 | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,021 | liberation | diegoferraribruno | null | Spoken | 2 | 55 | source_md5="6bd54cdf5d9d6519d8c1368b01a45324"
dest_md5="fd7586919f83e08dc544422d5bc7d257"
| 23,344 |
https://github.com/ygarrot/plantcv/blob/master/tests/utils/test_json2csv.py | Github Open Source | Open Source | MIT | 2,022 | plantcv | ygarrot | Python | Code | 66 | 400 | import pytest
import os
from plantcv.utils import json2csv
def test_json2csv(utils_test_data, tmpdir):
"""Test for PlantCV."""
# Create tmp directory
tmp_dir = tmpdir.mkdir("cache")
json2csv(json_file=utils_test_data.plantcv_results_file, csv_file=os.path.join(str(tmp_dir), "exports"))
assert all(... | 2,095 |
https://github.com/sibvrv/sketch/blob/master/Sources/editor/render/canvas.ts | Github Open Source | Open Source | MIT | null | sketch | sibvrv | TypeScript | Code | 139 | 446 | import {TPoint} from 'editor/Shapes/TPoint';
import {Vec2} from '@Framework/math/Vec2';
export function disk(ctx: CanvasRenderingContext2D, x: number, y: number, radius: number) {
ctx.beginPath();
ctx.arc(x, y, radius, 0, Math.PI * 2);
ctx.fill();
}
export function line(ctx: CanvasRenderingContext2D, x1: number... | 10,463 |
https://github.com/soleil-taruto/Factory/blob/master/Meteor/RSA.h | Github Open Source | Open Source | MIT | 2,019 | Factory | soleil-taruto | C | Code | 27 | 177 | #pragma once
#include "C:\Factory\Common\all.h"
#include "C:\Factory\Common\Options\Collabo.h"
#include "C:\Factory\Common\Options\xml.h"
#include "C:\Factory\Common\Options\RingCipher2.h"
#include "C:\Factory\Common\Options\CRandom.h"
extern uint RSA_PlainSizeMax;
void RSA_GenerateKey(void);
autoBlock_t *RSA_GetPub... | 21,349 |
https://github.com/robbratton/AdoTools.Ado/blob/master/AdoTools.Ado/SourceTools/GitSourceTool.cs | Github Open Source | Open Source | MIT | null | AdoTools.Ado | robbratton | C# | Code | 1,055 | 4,132 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
using System.Threading;
using Microsoft.TeamFoundation.SourceControl.WebApi;
using Microsoft.VisualStudio.Services.Common... | 49,789 |
https://github.com/pgruening/dlbio/blob/master/examples/ds_cifar.py | Github Open Source | Open Source | MIT | 2,020 | dlbio | pgruening | Python | Code | 146 | 641 | import torchvision
from torch.utils.data import DataLoader, SubsetRandomSampler, Dataset
# best practice: keep all constants in one config file
#from config import DATA_FOLDER, CIFAR10_RESIZE
DATA_FOLDER = '/data' # change me
CIFAR10_RESIZE = 224 # so you can eval a imagenet pre-trained network
def get_dataloader... | 19,601 |
https://github.com/ondrejdyck/sidpy/blob/master/sidpy/sid/translator.py | Github Open Source | Open Source | MIT | 2,021 | sidpy | ondrejdyck | Python | Code | 334 | 844 | # -*- coding: utf-8 -*-
"""
Abstract :class:`~sidpy.io.translator.Translator` base-class
Created on Tue Nov 3 15:07:16 2015
@author: Suhas Somnath
"""
from __future__ import division, print_function, absolute_import, unicode_literals
import abc
import sys
import os
from warnings import warn
from sidpy.base.string_u... | 2,026 |
https://github.com/kryptine/ghilbert/blob/master/js/prover/evaluator/greaterThanEqual.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | ghilbert | kryptine | JavaScript | Code | 158 | 681 | GH.ProofGenerator.evaluatorGreaterThanEqual = function(prover) {
this.prover = prover;
this.operators = ['>='];
};
GH.ProofGenerator.evaluatorGreaterThanEqual.prototype.variableAction = function(sexp) {
return null;
};
GH.ProofGenerator.evaluatorGreaterThanEqual.prototype.action = function(sexp) {
var leftNum ... | 30,046 |
https://github.com/xin-xinhanggao/railgun/blob/master/railgun/website/static/js/hwcharts.js | Github Open Source | Open Source | MIT | 2,016 | railgun | xin-xinhanggao | JavaScript | Code | 640 | 2,552 | $(document).ready(function() {
// Set global options
Chart.defaults.global.animation = false;
Chart.defaults.global.animateRotate = false;
// Utility to do translation
function msg(text) {
return window.chart_i18n[text] || text;
}
// Utility to create a chart
function legend(pa... | 7,474 |
https://github.com/weltonrodrigo/origin/blob/master/vendor/github.com/google/certificate-transparency/cpp/monitoring/gauge.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | origin | weltonrodrigo | C | Code | 187 | 685 | #ifndef CERT_TRANS_MONITORING_GAUGE_H_
#define CERT_TRANS_MONITORING_GAUGE_H_
#include <chrono>
#include <mutex>
#include <string>
#include "base/macros.h"
#include "monitoring/labelled_values.h"
#include "monitoring/metric.h"
namespace cert_trans {
// A metric whose values can go down as well as up (e.g. memory u... | 15,404 |
https://github.com/MrLoNee/C3/blob/master/01_src/org/capcaval/c3/commandline/command/CommandJar.java | Github Open Source | Open Source | MIT | 2,015 | C3 | MrLoNee | Java | Code | 113 | 536 | package org.capcaval.c3.commandline.command;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
import org.capcaval.ccoutils.file.FileSeekerResult;
import org.capcaval.c... | 26,878 |
https://github.com/HassanBahati/vue-map/blob/master/src/components/Navbar.vue | Github Open Source | Open Source | MIT | 2,022 | vue-map | HassanBahati | Vue | Code | 41 | 126 | <template>
<div class="heading">
<h1>This is my map App</h1>
</div>
</template>
<script>
export default {
name: 'Navbar'
}
</script>
<style scoped>
.heading {
margin: 0;
padding: 0px;
background-color: black;
color: white;
}
.heading > h1 {
padding: 20px;
margin: 0;
}
</style> | 46,918 |
https://github.com/jctwarren/gatsby_site/blob/master/src/components/ResourceComponent.tsx | Github Open Source | Open Source | MIT | 2,021 | gatsby_site | jctwarren | TypeScript | Code | 202 | 1,015 | import * as React from 'react'
import Img from 'gatsby-image'
import { MarkdownRemark, MarkdownRemarkConnection, ImageSharp } from '../graphql-types'
import {
Card,
CardContent,
CardHeader,
CardHeaderTitle,
CardImage,
Content,
Modal,
ModalBackground,
ModalCard,
ModalCardBody,
ModalCardFooter,
Mo... | 18,004 |
https://github.com/Web3verse/bcdhub/blob/master/cmd/indexer/scripts/series_paid_storage_diff_by_month_view.sql | Github Open Source | Open Source | MIT | null | bcdhub | Web3verse | SQL | Code | 52 | 146 | create materialized view if not exists series_paid_storage_size_diff_by_month_%s AS
with f as (
select generate_series(
date_trunc('month', date '2018-06-25'),
date_trunc('month', now()),
'1 month'::interval
) as val
)
select
extract(epoch from f.val),
sum(paid_st... | 19,038 |
https://github.com/frodoking/GithubAndroidApp/blob/master/websource/src/main/java/com/frodo/github/bean/dto/response/GitReference.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | GithubAndroidApp | frodoking | Java | Code | 89 | 308 | package com.frodo.github.bean.dto.response;
import android.os.Parcel;
import android.os.Parcelable;
public class GitReference implements Parcelable {
public static final Creator<GitReference> CREATOR =
new Creator<GitReference>() {
public GitReference createFromParcel(Parcel source) {... | 974 |
https://github.com/exfly/pubsub/blob/master/events_test.go | Github Open Source | Open Source | MIT | null | pubsub | exfly | Go | Code | 346 | 1,395 | package pubsub
import (
"testing"
"time"
"github.com/stretchr/testify/require"
"golang.org/x/xerrors"
)
func TestEventsSubscribe(t *testing.T) {
e := NewEvents()
_, l1 := e.Subscribe()
_, l2 := e.Subscribe()
defer e.Evict(l1)
defer e.Evict(l2)
count := e.SubscribersCount()
require.Equal(t, 2, count, "Mus... | 27,343 |
https://github.com/codyNog/Gatsby_template/blob/master/src/pages/index.tsx | Github Open Source | Open Source | MIT | null | Gatsby_template | codyNog | TypeScript | Code | 77 | 192 | import * as React from "react"
import { Link, graphql } from "gatsby"
import { IndexHogeQuery } from "../../types/graphql-types"
import PrimaryButton from "../components/atoms/Button/primary"
// ______________________________________________________
//
type Props = {
data: IndexHogeQuery
}
// ________________________... | 23,992 |
https://github.com/kra5h/alpaca/blob/master/alpaca/models/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | alpaca | kra5h | Python | Code | 4 | 7 | from .ensemble import *
| 26,191 |
https://github.com/Shopify/unity-buy-sdk/blob/master/Assets/NativeTesting/Native/PaymentNetworkSerializationTester.cs | Github Open Source | Open Source | MIT | 2,023 | unity-buy-sdk | Shopify | C# | Code | 106 | 588 | namespace Shopify.Tests {
using System;
using System.Collections.Generic;
using UnityEngine;
using Shopify.Unity;
using Shopify.Unity.MiniJSON;
using Shopify.Unity.SDK;
public partial class PaymentNetworkSerializationTester : MonoBehaviour {}
#if UNITY_IOS
public partial class Payme... | 867 |
https://github.com/chenyan19209219/gitlab-ce/blob/master/db/migrate/20180208183958_schedule_populate_untracked_uploads_if_needed.rb | Github Open Source | Open Source | MIT, CC-BY-SA-4.0, LicenseRef-scancode-unknown-license-reference | 2,023 | gitlab-ce | chenyan19209219 | Ruby | Code | 83 | 394 | # See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class SchedulePopulateUntrackedUploadsIfNeeded < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
FOLLOW_UP_MIGRATION = 'PopulateUntrackedU... | 41,013 |
https://github.com/fusioncharts/asp-net-wrapper/blob/master/samples/Pages/SpecialChartTypeAPI.aspx | Github Open Source | Open Source | MIT | 2,021 | asp-net-wrapper | fusioncharts | null | Spoken | 176 | 906 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SpecialChartTypeAPI.aspx.cs" Inherits="Pages_SpecialChartTypeAPI" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="../Styles/SampleStyleSheet.css" rel="stylesheet" />
<title>FusionCharts | shocasing use sp... | 50,423 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.