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/rodriguembah13/datasmart/blob/master/templates/customer_user/index.html.twig | Github Open Source | Open Source | MIT | null | datasmart | rodriguembah13 | Twig | Code | 280 | 1,114 | {% extends 'base.html.twig' %}
{% block title %}User index{% endblock %}
{% block page_title %} User Customer {% endblock %}
{% block page_subtitle %} list {% endblock %}
{% block page_content %}
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-4">
</div>
<d... | 9,523 |
https://github.com/Busboombot/ros_idx6dof/blob/master/src/idxconfig/scripts/test_api.py | Github Open Source | Open Source | MIT | 2,020 | ros_idx6dof | Busboombot | Python | Code | 119 | 545 | import vrep
import math
import time
print 'Program started'
vrep.simxFinish(-1) # just in case, close all opened connections
clientID=vrep.simxStart('127.0.0.1',19997,True,True,5000,5)
if clientID!=-1:
print 'Connected to remote API server'
opm = vrep.simx_opmode_blocking
#res,objects=vrep.simxGetObject... | 24,761 |
https://github.com/ory/sdk-generator/blob/master/clients/kratos/dart/lib/model/admin_create_identity_import_credentials_oidc_provider.dart | Github Open Source | Open Source | Apache-2.0 | null | sdk-generator | ory | Dart | Code | 205 | 829 | //
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.7
// ignore_for_file: unused_import
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
part 'admin_create_identity_import_credentials_oidc_provider.g.dart';
abstract class AdminCreateIdentityImportCredentialsOidcProvid... | 1,422 |
https://github.com/mglldjim/iget_website/blob/master/cms/magento/app/code/core/Mage/Payment/Model/Observer.php | Github Open Source | Open Source | MIT | null | iget_website | mglldjim | PHP | Code | 588 | 1,695 | <?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | 2,117 |
https://github.com/stevejackson/Game2Text/blob/master/web/ankisettings.js | Github Open Source | Open Source | Apache-2.0 | null | Game2Text | stevejackson | JavaScript | Code | 233 | 1,052 | const deckSelector = document.getElementById('deck_selector');
const cardModelSelector = document.getElementById('card_model_selector');
async function initDecks() {
const deckNames = await eel.invoke_anki('deckNames')();
if (deckNames) {
deckNames.forEach(deckName => {
const deckOption = d... | 13,081 |
https://github.com/sibis/pesy/blob/master/vendor/menhir/src/SortUnification.ml | Github Open Source | Open Source | MIT | null | pesy | sibis | OCaml | Code | 507 | 1,033 | (******************************************************************************)
(* *)
(* Menhir *)
(* ... | 31,892 |
https://github.com/hissy/saelos/blob/master/resources/assets/js/modules/headquarters/store/selectors.js | Github Open Source | Open Source | MIT | null | saelos | hissy | JavaScript | Code | 6 | 13 | import * as fromReducer from "./reducer";
| 9,822 |
https://github.com/Arnoldinya/sportmenu/blob/master/views/site/index.php | Github Open Source | Open Source | BSD-3-Clause | null | sportmenu | Arnoldinya | PHP | Code | 78 | 319 | <?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = 'Регистрация';
?>
<div class="site-index">
<div class="jumbotron">
<h1><?= Html::encode($this->title) ?></h1>
</div>
<?php if (Yii::$app->session->hasFlash('registerFormSubmitted')): ?>
<d... | 38,708 |
https://github.com/qqaatw/TensorQQ/blob/master/src/TensorQQ/QQTensor.py | Github Open Source | Open Source | MIT | null | TensorQQ | qqaatw | Python | Code | 177 | 674 | import numpy as np
class QQTensor(object):
def __init__(self, unit, name):
self._initialized = False
self.name = name
self.unit = unit
self.x = dict()
self.out = None
self.weight = dict()
self.bias = dict()
self.params_pool = list()
def __... | 41,960 |
https://github.com/yvoyer/game-engine/blob/master/src/Messaging/MessageLookup.php | Github Open Source | Open Source | MIT | 2,020 | game-engine | yvoyer | PHP | Code | 83 | 253 | <?php declare(strict_types=1);
namespace Star\GameEngine\Messaging;
use Star\GameEngine\Extension\GamePlugin;
use Star\GameEngine\GameVisitor;
use function array_search;
final class MessageLookup implements GameVisitor
{
/**
* @var string[]
*/
private $messages = [];
public function isRegister... | 25,457 |
https://github.com/maxinye/laps-mirror/blob/master/src/lib/bgdata/readavnpublic.f | Github Open Source | Open Source | Intel, Unlicense, OLDAP-2.2.1, NetCDF | 2,021 | laps-mirror | maxinye | null | Spoken | 1,219 | 4,942 | subroutine readavnpublicdims(fname,x,y,numIsoLevel,record,
+istatus)
include 'netcdf.inc'
integer numIsoLevel
integer record, x, y
integer nf_fid, nf_vid, nf_status
integer istatus
character*200 fname
C
istatus=0
C
C Open netcdf File for rea... | 27,786 |
https://github.com/Lesthad/clean-architecture-azure-cosmos-db/blob/master/src/CleanArchitectureCosmosDB.Core/Specifications/Base/CosmosDbSpecificationEvaluator.cs | Github Open Source | Open Source | MIT | 2,022 | clean-architecture-azure-cosmos-db | Lesthad | C# | Code | 56 | 140 | using Ardalis.Specification;
namespace CleanArchitectureCosmosDB.Core.Specifications.Base
{
/// <summary>
/// Specification Evaluator for Cosmos DB.
/// The evaluator implements methods to translate specifications into Cosmos DB IQueryables, which then allows us to build queryables with filters, p... | 10,472 |
https://github.com/Wildertrek/gamechanger-data/blob/master/dataPipelines/gc_ingest/tools/metadata/cli.py | Github Open Source | Open Source | MIT | 2,021 | gamechanger-data | Wildertrek | Python | Code | 82 | 296 | import click
from .metadata import create_metadata_from_manifest
import pandas as pd
import typing as t
from dataPipelines.gc_ingest.config import Config
from dataPipelines.gc_ingest.common_cli_options import pass_bucket_name_option
import datetime as dt
import functools
from pathlib import Path
import json
@click.co... | 19,412 |
https://github.com/dylan-lang/lsp-dylan/blob/master/lsp-internal.dylan | Github Open Source | Open Source | MIT | 2,022 | lsp-dylan | dylan-lang | null | Spoken | 61 | 119 | Module: lsp-dylan-impl
Synopis: General constants and globals for LSP
Author: Peter
Copyright: 2020
// Options etc.
// Server started with --debug command line option?
define variable *debug-mode* :: <boolean> = #f;
// LSP client asked to trace messages?
define variable *trace-messages* :: <boolean> = #f;
// LSP clien... | 2,382 |
https://github.com/yt-contributors/yt/blob/master/lib_ysize/ysize.h | Github Open Source | Open Source | BSD-3-Clause | 2,016 | yt | yt-contributors | C | Code | 911 | 2,147 | /* ========================================================================= */
/* ------------------------------------------------------------------------- */
/*!
\file ysize.h
\date June 2014
\author Nicu Tofan
*/
/* ------------------------------------------------------------------------- */
/* ========... | 34,715 |
https://github.com/thermokarst/gpx-web-utils/blob/master/src/utils.rs | Github Open Source | Open Source | MIT | null | gpx-web-utils | thermokarst | Rust | Code | 109 | 455 | pub fn set_panic_hook() {
#[cfg(feature = "console_error_panic_hook")]
console_error_panic_hook::set_once();
}
pub fn translate_js_to_rust(files: js_sys::Array) -> Vec<String> {
// https://github.com/rustwasm/wasm-bindgen/issues/111
files.iter().map(|f| f.as_string().unwrap()).collect()
}
pub fn join_... | 7,494 |
https://github.com/kahowell/curiosity-frontend/blob/master/src/components/chart/chartTooltip.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | curiosity-frontend | kahowell | JavaScript | Code | 667 | 1,553 | import React from 'react';
import { helpers } from '../../common';
/**
* Note: Victory Charts components require a form of extended "something" applied by the consuming component.
* This leads to odd implementations, like returning a function component.
*/
/**
* FixMe: The right graph boundary for tooltips is depe... | 20,529 |
https://github.com/woohoolabs/zen/blob/master/tests/Fixture/DependencyGraph/Preload/PreloadC.php | Github Open Source | Open Source | MIT | 2,021 | zen | woohoolabs | PHP | Code | 12 | 60 | <?php
declare(strict_types=1);
namespace WoohooLabs\Zen\Tests\Fixture\DependencyGraph\Preload;
interface PreloadC
{
public function preloadD(): PreloadD;
}
| 38,339 |
https://github.com/lyyau/ExamSystem/blob/master/ExamSystem/Controllers/SearchController.cs | Github Open Source | Open Source | MIT | 2,021 | ExamSystem | lyyau | C# | Code | 227 | 785 | using System.Linq;
using System.Web.Mvc;
using ExamSystem.Models;
using ExamSystem.Toolkit;
using ExamSystem.ViewModels;
using log4net;
namespace ExamSystem.Controllers
{
public class SearchController : Controller
{
private ILog log = LogManager.GetLogger(typeof(NewsController));
// GET: Sear... | 12,320 |
https://github.com/tenzyu/Nozomi/blob/master/src/cogs/assignRole.ts | Github Open Source | Open Source | MIT | 2,021 | Nozomi | tenzyu | TypeScript | Code | 23 | 76 | import { client } from '..'
import { ID_ROLE_EVERYONE2 } from '../constant'
client.on('guildMemberAdd', async (member) => {
if (member.user.bot) return
await member.roles.add(ID_ROLE_EVERYONE2)
})
| 2,512 |
https://github.com/JiaMingLin/dlcv_adda/blob/master/params.py | Github Open Source | Open Source | Apache-2.0 | null | dlcv_adda | JiaMingLin | Python | Code | 159 | 535 | """Params for ADDA."""
# params for dataset and data loader
data_root = "data"
usps_data = data_root + '/USPS'
mnistm_data = data_root + '/MNIST_M'
svhn_data = data_root + '/SVHN'
dataset_mean_value = 0.5
dataset_std_value = 0.5
dataset_mean = (dataset_mean_value, dataset_mean_value, dataset_mean_value)
dataset_std = ... | 32,289 |
https://github.com/Kenoshen/Winger/blob/master/src/test/java/com/winger/libgdx/main/sprite/TestTiledSprites2.java | Github Open Source | Open Source | MIT | null | Winger | Kenoshen | Java | Code | 215 | 977 | package com.winger.libgdx.main.sprite;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.Vector3;
import com.winger.draw.texture.CSprite;
import com.winger.draw.texture.CSpriteBatch;
import com.winger.input.raw.CKeyboard... | 37,937 |
https://github.com/imalimin/FilmKilns/blob/master/proj/hwvc_android/codec_native/src/main/java/com/lmy/hwvcnative/widget/AlTrackContainer.kt | Github Open Source | Open Source | MIT | 2,022 | FilmKilns | imalimin | Kotlin | Code | 541 | 1,898 | package com.lmy.hwvcnative.widget
import android.content.Context
import android.content.res.Resources
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.PointF
import android.util.AttributeSet
import android.util.TypedValue
import android.view.GestureDete... | 4,592 |
https://github.com/maberf/flask/blob/master/app/controllers/default.py | Github Open Source | Open Source | MIT | null | flask | maberf | Python | Code | 139 | 458 | from flask import render_template, flash, redirect, url_for
from flask_login import login_user, logout_user
from app import app, db, login_manager
from app.models.tables import User
from app.models.forms import LoginForm
@login_manager.user_loader
def load_user(id):
return User.query.filter_by(id=id).first()
@a... | 21,134 |
https://github.com/blockspacer/chromium_base_conan/blob/master/extensions/third_party/perfetto/protos/perfetto/trace/chrome/chrome_metadata.gen.h | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,022 | chromium_base_conan | blockspacer | C | Code | 924 | 4,080 | // DO NOT EDIT. Autogenerated by Perfetto cppgen_plugin
#ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_CHROME_CHROME_METADATA_PROTO_CPP_H_
#define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_CHROME_CHROME_METADATA_PROTO_CPP_H_
#include <stdint.h>
#include <bitset>
#include <vector>
#include <string>
#include <type_traits>
#... | 14,010 |
https://github.com/pkeuchel/oomph-lib/blob/master/demo_drivers/multi_physics/rayleigh_instability_surfactant/validate.sh | Github Open Source | Open Source | RSA-MD | 2,021 | oomph-lib | pkeuchel | Shell | Code | 410 | 1,086 | #! /bin/sh
# Get the OOPMH-LIB root directory from a makefile
OOMPH_ROOT_DIR=$(make -s --no-print-directory print-top_builddir)
#Set the number of tests to be checked
NUM_TESTS=3
# Setup validation directory
#---------------------------
touch Validation
rm -r -f Validation
mkdir Validation
# Validation for demo a... | 4,452 |
https://github.com/lukaszraczylo/salt-lint/blob/master/lib/salt-lint/printer.rb | Github Open Source | Open Source | MIT | 2,019 | salt-lint | lukaszraczylo | Ruby | Code | 176 | 385 | # Printer module
# ~~~~~~~~~~~~~~
# It's responsible for printing, duh.
require 'colorize'
module Printer
def self.print(msg_type = 'info', message = 'no message specified', debug_level = 0)
prefix = nil
show = true
kill = false
case msg_type
when 'debug'
prefix = '[d]'
... | 38,997 |
https://github.com/rainmanzj/alatastest/blob/master/app/controllers/manager.js | Github Open Source | Open Source | MIT | null | alatastest | rainmanzj | JavaScript | Code | 137 | 472 | var express = require('express');
var login = require('./login');
var router = express.Router();
const db = require("../db/");
router.get('/login', function (req, res, next) {
res.render('manager/login.ejs');
});
//登陆
router.post('/login', function (req, res, next) {
var username = req.body.username;
var... | 30,679 |
https://github.com/bk-rs/clickhouse-rs/blob/master/clickhouse_sqls/settings/set_date_time_output_format_to_unix_timestamp.sql | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | clickhouse-rs | bk-rs | SQL | Code | 4 | 17 | SET date_time_output_format = 'unix_timestamp'
| 32,787 |
https://github.com/Whitecoin-XWC/penguin_node/blob/master/pkg/manifest/simple/walker.go | Github Open Source | Open Source | BSD-3-Clause | 2,021 | penguin_node | Whitecoin-XWC | Go | Code | 98 | 199 | // Copyright 2020 The Penguin Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package simple
// WalkEntryFunc is the type of the function called for each entry visited
// by WalkEntry.
type WalkEntryFunc func(path string, entry Entr... | 11,522 |
https://github.com/joshaber/Marketplace/blob/master/Classes/JAKit/JAClickableText.h | Github Open Source | Open Source | BSD-2-Clause, Unlicense | 2,020 | Marketplace | joshaber | C | Code | 59 | 172 | //
// JAClickableText.h
//
// Created by Ben Haller on Tue Jul 15 2003.
//
// This code is hereby released into the public domain. Do with it as you wish.
//
#import <AppKit/AppKit.h>
@interface NSColor (ClickableTextColors)
+ (NSColor *)basicClickableTextColor;
+ (NSColor *)trackingClickableTextColor;
+ (NSCol... | 45,668 |
https://github.com/Kache/gapic-generator-python/blob/master/tests/unit/samplegen/test_manifest.py | Github Open Source | Open Source | Apache-2.0 | null | gapic-generator-python | Kache | Python | Code | 345 | 1,377 | # Copyright (C) 2019 Google LLC
#
# 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 writi... | 2,307 |
https://github.com/cryst-al/novoline/blob/master/src/net/minecraft/tileentity/TileEntityDispenser.java | Github Open Source | Open Source | Unlicense | 2,022 | novoline | cryst-al | Java | Code | 457 | 1,669 | package net.minecraft.tileentity;
import java.util.Random;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.ContainerDispenser;
import net.minecraft.inventory.IInventory;
import net.minecraft.it... | 36,317 |
https://github.com/ihtiht/dinger/blob/master/domain/src/main/kotlin/domain/recommendation/DomainRecommendationSchool.kt | Github Open Source | Open Source | MIT | null | dinger | ihtiht | Kotlin | Code | 25 | 55 | package domain.recommendation
data class DomainRecommendationSchool(val id: String?, val name: String) {
companion object {
val NONE = DomainRecommendationSchool(id = null, name = "")
}
}
| 14,783 |
https://github.com/bortsigan/kredo/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | kredo | bortsigan | PHP | Code | 116 | 621 | <?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\IndexController;
use App\Http\Controllers\CommentController;
use App\Http\Controllers\FollowController;
use App\Http\Controllers\SubCommentController;
/*
|--------------------------------------------------------------------------
| Web Routes
|-----... | 32,586 |
https://github.com/acs/google-cloud-hacking/blob/master/pubsub/create_topic.py | Github Open Source | Open Source | Apache-2.0 | null | google-cloud-hacking | acs | Python | Code | 40 | 174 | from google.cloud import pubsub_v1
import google.api_core.exceptions
PROJECT_ID = "k8strain-301514"
if __name__ == '__main__':
topic_creation_id = "acs2"
publisher = pubsub_v1.PublisherClient()
topic_path = publisher.topic_path(PROJECT_ID, topic_creation_id)
try:
topic = publisher.create_to... | 17,944 |
https://github.com/getdatakick/pricealert/blob/master/src/js/reducer.js | Github Open Source | Open Source | MIT | 2,021 | pricealert | getdatakick | JavaScript | Code | 343 | 835 | // @flow
import { assoc, clamp } from 'ramda';
import type { Settings, Attributes, State, Step } from 'types';
import type { Action } from 'actions';
import { Types } from 'actions';
import { getAttributes } from 'utils/url';
const show = (state: State, show: boolean): State => ({ ...state, show, step: show ? 'produc... | 17,360 |
https://github.com/210503-Reston-NET/Morales-Cesar-P0/blob/master/P0 Project/DatLog/Entities/Inventory.cs | Github Open Source | Open Source | MIT | null | Morales-Cesar-P0 | 210503-Reston-NET | C# | Code | 60 | 124 | using System;
using System.Collections.Generic;
#nullable disable
namespace DatLog.Entities
{
public partial class Inventory
{
public int InventoryId { get; set; }
public int InventoryQuantity { get; set; }
public int InventoryName { get; set; }
public int StoreId { get; set; ... | 33,459 |
https://github.com/cgebest/holoclean/blob/master/domain/domain.py | Github Open Source | Open Source | Apache-2.0 | null | holoclean | cgebest | Python | Code | 2,194 | 6,111 | import collections
from functools import lru_cache
import logging
import pandas as pd
import time
import numpy as np
from tqdm import tqdm
from holoclean.dataset import AuxTables, CellStatus
from .estimators import *
from .correlations import compute_norm_cond_entropy_corr
from holoclean.utils import NULL_REPR
clas... | 21,543 |
https://github.com/redding/assert/blob/master/test/unit/assertions/assert_true_false_tests.rb | Github Open Source | Open Source | MIT | 2,021 | assert | redding | Ruby | Code | 248 | 1,122 | # frozen_string_literal: true
require "assert"
require "assert/assertions"
require "assert/utils"
module Assert::Assertions
class AssertTrueTests < Assert::Context
include Assert::Test::TestHelpers
desc "`assert_true`"
subject do
args = args1
Factory.test do
assert_true(true) # pa... | 30,695 |
https://github.com/Jan-PieterBaert/config-files/blob/master/i3/i3scripts/uptime.sh | Github Open Source | Open Source | MIT | 2,020 | config-files | Jan-PieterBaert | Shell | Code | 107 | 303 | #!/bin/bash
uptime -p > /tmp/uptime
weeks="$(cat /tmp/uptime | grep -o '[0-9]* week' | grep -o '[0-9]*')"
days="$(cat /tmp/uptime | grep -o '[0-9]* day' | grep -o '[0-9]*')"
hrs="$(cat /tmp/uptime | grep -o '[0-9]* hour' | grep -o '[0-9]*')"
mins="$(cat /tmp/uptime | grep -o '[0-9]* minute' | grep -o '[0-9]*')"
str="... | 39,931 |
https://github.com/marmitoTH/be-the-hero/blob/master/web/src/components/Button/index.tsx | Github Open Source | Open Source | MIT | null | be-the-hero | marmitoTH | TypeScript | Code | 40 | 95 | import React from 'react'
import { Button as Btn } from './styles'
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
secondary?: boolean
}
const Button: React.FC<Props> = ({ children, secondary, ...rest }) => (
<Btn secondary={secondary || false} {...rest}>{children}</Btn>
)
export default ... | 19,619 |
https://github.com/ZiliasTheSaint/danfulea/blob/master/src/danfulea/phys/XRaySpectrum.java | Github Open Source | Open Source | BSD-3-Clause | null | danfulea | ZiliasTheSaint | Java | Code | 2,320 | 8,562 | package danfulea.phys;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.util.ResourceBundle;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import danfulea.math.Convertor;
import danfulea.math.Sort;
import org.jfree.chart.ChartPa... | 46,102 |
https://github.com/mhalaj1/vpp-agent/blob/master/pkg/idxvpp/clauses_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | vpp-agent | mhalaj1 | Go | Code | 812 | 2,016 | // Copyright (c) 2018 Cisco and/or its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | 9,042 |
https://github.com/twilek/njupiter/blob/master/Development/nJupiter.DataAccess.Users.Sql/Install/Database/4.DefaultDatabase.TableData.sql | Github Open Source | Open Source | X11, MIT | null | njupiter | twilek | SQL | Code | 414 | 1,762 | -- Insert default values
INSERT USER_DataType(DataTypeID, TypeName) VALUES(0, 'nJupiter.DataAccess.Users.Sql.StringProperty')
INSERT USER_DataType(DataTypeID, TypeName) VALUES(1, 'nJupiter.DataAccess.Users.Sql.IntProperty')
INSERT USER_DataType(DataTypeID, TypeName) VALUES(2, 'nJupiter.DataAccess.Users.Sql.BoolPropert... | 16,418 |
https://github.com/marcusklang/docforia/blob/master/src/main/java/se/lth/cs/docforia/io/multipart/MultipartMessages.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | docforia | marcusklang | Java | Code | 574 | 2,018 | package se.lth.cs.docforia.io.multipart;
/*
* Copyright 2016 Marcus Klang
*
* 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
*
* Unles... | 2,294 |
https://github.com/fosubo/sinatra-donotcall/blob/master/spec/import_spec.rb | Github Open Source | Open Source | MIT | null | sinatra-donotcall | fosubo | Ruby | Code | 29 | 115 | require './import'
RSpec.describe Importer do
it "successfully imports the test file" do
test_file = './doc/sample_donotcall/test.txt'
Importer.import(test_file + '.zip')
records_created = DoNotCallPhone.count
records_in_file = `wc #{test_file}`.to_i
expect(records_created).to eq(records_in_file)... | 40,203 |
https://github.com/Nessessif/coursework/blob/master/views/outSale.hbs | Github Open Source | Open Source | MIT | 2,021 | coursework | Nessessif | null | Spoken | 281 | 1,554 |
<style>
.input-field {
margin: 15px 0 !important;
}
</style>
<h1>Анкета</h1>
<div class=" photosPreview carousel carousel-slider"></div>
<div class="row s12" style="margin-top: 50px;">
<div class="input-field col s4">
<fieldset style="border-color: #EE6E73;">
<legend>Общая площадь</legend>
... | 18,293 |
https://github.com/ZenithEth/zenith-market-client/blob/master/src/components/AboutButton.js | Github Open Source | Open Source | MIT | null | zenith-market-client | ZenithEth | JavaScript | Code | 68 | 210 | import React from "react";
import styled from "styled-components";
const AboutButton = ({ title, onClick, style, variant }) => {
return (
<StyledAboutButton onClick={onClick} style={style}>
<h1>{title}</h1>
</StyledAboutButton>
);
};
const StyledAboutButton = styled.button`
display: flex;
align-i... | 21,749 |
https://github.com/DougBurke/IHaskell/blob/master/installation/update.sh | Github Open Source | Open Source | MIT | null | IHaskell | DougBurke | Shell | Code | 57 | 183 | #!/bin/bash
set -e
# Which virtualenv to use.
VIRTUALENV=$1
# Commit hash to install.
COMMIT=$2
# Find out current IPython commit hash.
cd $VIRTUALENV/src/ipython
CURRENT_COMMIT=`git rev-parse HEAD`
if [ $CURRENT_COMMIT != $COMMIT ]; then
# Activate the virtualenv.
source $VIRTUALENV/bin/activate
# Update IPy... | 38,448 |
https://github.com/human-analysis/3dfacefill/blob/master/main.py | Github Open Source | Open Source | MIT | 2,022 | 3dfacefill | human-analysis | Python | Code | 253 | 875 | # main.py
import sys
import traceback
import torch
import torch.nn as nn
import random
import config
import utils
from model import Model
from train import Trainer
from test import Tester
from dataloader import Dataloader
from models import UnetSeg
import faulthandler
faulthandler.enable()
def main():
# parse th... | 28,844 |
https://github.com/liupaul1220/Wenli.RtmpServer/blob/master/Wenli.Live.RtmpLib/Events/ChannelDataReceivedEventArgs.cs | Github Open Source | Open Source | MIT | 2,022 | Wenli.RtmpServer | liupaul1220 | C# | Code | 51 | 168 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wenli.Live.Common;
using Wenli.Live.RtmpLib.Rtmping;
namespace Wenli.Live.RtmpLib.Events
{
public delegate void ChannelDataReceivedEventHandler(object sender, ChannelDataReceivedEventArgs e);... | 40,938 |
https://github.com/TayStyles-AAP/ShopIt/blob/master/app/src/main/java/com/example/shopit/ui/maps/MapFragment.kt | Github Open Source | Open Source | Unlicense | null | ShopIt | TayStyles-AAP | Kotlin | Code | 194 | 712 | package com.example.shopit.ui.maps
import android.location.Address
import android.location.Geocoder
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.setFragmentRe... | 37,456 |
https://github.com/AnyMaker/TnJson/blob/master/src/a2u/tn/utils/json/TnJsonBuilder.java | Github Open Source | Open Source | Unlicense | 2,020 | TnJson | AnyMaker | Java | Code | 437 | 927 | package a2u.tn.utils.json;
/**
* json generation configurator
*/
public class TnJsonBuilder extends TnJson {
boolean isKeyQuoted = true;
char quoteSymbol = '"';
boolean isFormated = false;
boolean isStayReadable = false;
boolean isAllowMultiRowString = false;
boolean isKeepNull = false;
/**
* Inte... | 15,899 |
https://github.com/mattmeng/odd/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | MIT | null | odd | mattmeng | Ruby | Code | 51 | 166 | $LOAD_PATH.unshift File.expand_path( '../../lib', __FILE__ )
require 'odd'
require 'securerandom'
require 'fileutils'
RSpec.configure do |config|
config.add_setting :database_dir
config.before( :suite ) do
begin
dir = File.join( __dir__, SecureRandom.uuid )
unless File.directory?( dir )
D... | 24,371 |
https://github.com/wandns/axl/blob/master/include/axl_sys/axl_sys_Thread.h | Github Open Source | Open Source | MIT | null | axl | wandns | C | Code | 360 | 1,453 | //..............................................................................
//
// This file is part of the AXL library.
//
// AXL is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloads/archive/axl/... | 25,239 |
https://github.com/Pejo-306/freeman-newspaper/blob/master/test/integration/users_edit_test.rb | Github Open Source | Open Source | MIT | null | freeman-newspaper | Pejo-306 | Ruby | Code | 113 | 396 | require 'test_helper'
class UsersEditTest < ActionDispatch::IntegrationTest
setup do
@user = users(:john)
end
test 'unsuccessful edit' do
log_in_as @user
get edit_user_path(@user)
assert_template 'users/edit'
patch user_path(@user), params: { user: { name: '', surname: '',
... | 13,257 |
https://github.com/lijunchen/vim/blob/master/ftplugin/c/minic.vim | Github Open Source | Open Source | MIT | 2,021 | vim | lijunchen | null | Spoken | 19 | 72 | if exists('b:ftplugin_minic')
finish
endif
let b:ftplugin_minic = 1
setlocal commentstring=//\ %s
setlocal comments-=:// comments+=:///,://
let b:commentary_format = "// %s"
| 47,186 |
https://github.com/chrisodicho/article-archiver/blob/master/cypress/integration/scraper.ts | Github Open Source | Open Source | MIT | 2,021 | article-archiver | chrisodicho | TypeScript | Code | 99 | 373 | import { slugify } from '../../lib/utils/slugify';
const URLS = Cypress.env('ARTICLE_ARCHIVER_URLS') ? Cypress.env('ARTICLE_ARCHIVER_URLS').split(',') : [];
const TMP_DIR = Cypress.env('ARTICLE_ARCHIVER_TMP_DIR');
const currentTime = new Date();
URLS.forEach((url: string, idx: number) => {
describe(`Parsing site $... | 5,727 |
https://github.com/ramesh-kr/AcgClub/blob/master/component-acgcomic/src/main/java/com/rabtman/acgcomic/di/AcgComicModule.kt | Github Open Source | Open Source | MIT | 2,021 | AcgClub | ramesh-kr | Kotlin | Code | 147 | 772 | package com.rabtman.acgcomic.di
import com.rabtman.acgcomic.mvp.DmzjComicContract
import com.rabtman.acgcomic.mvp.OacgComicContract
import com.rabtman.acgcomic.mvp.OacgComicDetailContract
import com.rabtman.acgcomic.mvp.OacgComicEpisodeDetailContract
import com.rabtman.acgcomic.mvp.model.DmzjComicModel
import com.rabt... | 8,873 |
https://github.com/PlusToolkit/OvrvisionPro/blob/master/build/linux/ovrvision/ovrvision_v4l.h | Github Open Source | Open Source | MIT | null | OvrvisionPro | PlusToolkit | C | Code | 366 | 1,110 | // ovrvision_v4l.h
//
//MIT License
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM... | 30,742 |
https://github.com/stevenknox/azure-sdk-for-net/blob/master/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseAdvisorCollection.cs | Github Open Source | Open Source | MIT | null | azure-sdk-for-net | stevenknox | C# | Code | 1,005 | 3,532 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using A... | 25,521 |
https://github.com/lorensr/accounts/blob/master/packages/graphql-client/src/graphql/two-factor-unset.mutation.ts | Github Open Source | Open Source | MIT | 2,017 | accounts | lorensr | TypeScript | Code | 17 | 56 | import gql from 'graphql-tag';
export const twoFactorUnsetMutation = gql`
mutation twoFactorUnset($code: String!) {
twoFactorUnset(code: $code)
}
`;
| 44,838 |
https://github.com/oliviernotteghem/rules_kotlin/blob/master/src/test/kotlin/io/bazel/kotlin/integration/MixedSourceCompileTest.kt | Github Open Source | Open Source | Apache-2.0 | null | rules_kotlin | oliviernotteghem | Kotlin | Code | 124 | 593 | package io.bazel.kotlin.integration
import com.google.common.truth.Truth
import com.google.common.truth.Truth.assertWithMessage
import io.bazel.kotlin.integration.RulesKotlinWorkspace.Companion.build
import org.junit.Test
import java.nio.file.Files
class MixedSourceCompileTest {
@Test
fun `kotlin and java source... | 45,682 |
https://github.com/esp32f/timer_alarm/blob/master/main/main.c | Github Open Source | Open Source | MIT | null | timer_alarm | esp32f | C | Code | 318 | 1,379 | #include <stdio.h>
#include <esp_types.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/queue.h>
#include <driver/periph_ctrl.h>
#include <driver/timer.h>
#include "macros.h"
#define TIMER_DIVIDER 16
#define TIMER_SCALE (TIMER_BASE_CLK / TIMER_DIVIDER)
#define TIMER_IN... | 2,361 |
https://github.com/varunoberoi/CatchUp/blob/master/app/src/debug/kotlin/io/sweers/catchup/ui/bugreport/BugReportDialog.kt | Github Open Source | Open Source | Apache-2.0 | null | CatchUp | varunoberoi | Kotlin | Code | 190 | 555 | /*
* Copyright (c) 2017 Zac Sweers
*
* 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... | 28,951 |
https://github.com/kant/tdar/blob/master/core/src/main/java/org/tdar/core/service/ImportServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | tdar | kant | Java | Code | 2,371 | 9,076 | /**
* $Id$
*
* @author $Author$
* @version $Revision$
*/
package org.tdar.core.service;
import java.io.IOException;
import java.io.StringReader;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
impor... | 37,490 |
https://github.com/sugia/GA-for-TSP/blob/master/src/randomize.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | GA-for-TSP | sugia | C | Code | 101 | 257 | /*
* randomize.h
* created on: April 24, 2013
* last updated: May 10, 2020
* author: Shujia Liu
*/
#ifndef __RAND__
#define __RAND__
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <vector>
using namespace std;
extern void InitURandom( int );
extern void InitURandom( ... | 15,663 |
https://github.com/richardkippers/gym-checkers/blob/master/checkers/agents/alpha_beta.py | Github Open Source | Open Source | MIT | 2,021 | gym-checkers | richardkippers | Python | Code | 1,139 | 3,138 | # Minimax with alpha-beta pruning and a hand-crafted valuation function
from __future__ import absolute_import, division, print_function
from six.moves import range
import time
from functools import partial
from collections import defaultdict
import numpy as np
from checkers.game import Checkers
from checkers.agent... | 1,232 |
https://github.com/ValentinAlexandrovGeorgiev/fshop/blob/master/db/migrate/20170109221944_create_comments.rb | Github Open Source | Open Source | MIT | null | fshop | ValentinAlexandrovGeorgiev | Ruby | Code | 19 | 69 | class CreateComments < ActiveRecord::Migration[5.0]
def change
create_table :comments do |p|
p.string :pid
p.string :uname
p.text :comment
end
end
end
| 2,592 |
https://github.com/ll-kuma-ll/laravel-form-view/blob/master/tests/InputDateTimeTest.php | Github Open Source | Open Source | MIT | null | laravel-form-view | ll-kuma-ll | PHP | Code | 94 | 390 | <?php
namespace LLkumaLL\FormView\Tests;
use Carbon\Carbon;
use LLkumaLL\FormView\Contracts\InputDateTime as ContractsInputDateTime;
use LLkumaLL\FormView\{
InputDateTime,
InputText
};
use PHPUnit\Framework\TestCase;
class InputDateTimeTest extends TestCase
{
/**
* 継承テスト
*
* @return void
... | 40,136 |
https://github.com/rahul-kabra/say-thank-you/blob/master/src/app/components/send-message/send-message.component.scss | Github Open Source | Open Source | MIT | null | say-thank-you | rahul-kabra | SCSS | Code | 148 | 531 | .container {
min-height: 85vh;
position: relative;
padding-bottom: 100px;
}
.input-div-styles {
margin-bottom: 40px;
margin-top: 40px;
}
#send-guide-div {
text-align: center;
margin-top: 50px;
padding: 0 30px;
}
#textarea-div {
width: 250px;
height: 150px;
padding: 5px;
... | 34,877 |
https://github.com/shiner527/activemodel-object-info/blob/master/spec/lib/table_definition_spec.rb | Github Open Source | Open Source | MIT | null | activemodel-object-info | shiner527 | Ruby | Code | 560 | 2,744 | # frozen_string_literal: true
module ActivemodelObjectInfo
class TestTableDefinition
include TableDefinition
attr_accessor :columns
def column(*args)
# 将创建的内容参数放入单类属性中保存
if columns.blank?
self.columns = [args]
else
columns << args
end
end
end
end
RSpec.des... | 24,245 |
https://github.com/iluque95/m365dashboard_api/blob/master/data/scooter.js | Github Open Source | Open Source | MIT | null | m365dashboard_api | iluque95 | JavaScript | Code | 252 | 706 | module.exports = (scooterModel, request, fuel_api) => {
class Scooter {
async create(params) {
return new Promise(async (resolve, reject) => {
try {
//params.creationDate = this.formatDate(params.creationDate)
let model = new scooterModel(... | 41,978 |
https://github.com/dziewxc/plants/blob/master/src/Dogs/DogBundle/Resources/views/Default/header.html.twig | Github Open Source | Open Source | MIT | null | plants | dziewxc | Twig | Code | 232 | 1,314 | {% block stylesheets %}
<link href="{{ asset('bundles/dogs/public/css/base.css') }}" type="text/css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto:200' rel='stylesheet' type='text/css... | 20,537 |
https://github.com/brentsimmons/NetNewsWireLite4/blob/master/iPhone/Classes/NNWShowHideFeedsTableViewController.h | Github Open Source | Open Source | MIT | 2,018 | NetNewsWireLite4 | brentsimmons | C | Code | 38 | 138 | //
// NNWShowHideFeedsTableViewController.h
// nnwiphone
//
// Created by Brent Simmons on 9/6/09.
// Copyright 2009 NewsGator Technologies, Inc.. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface NNWShowHideFeedsTableViewController : UITableViewController {
@private
NSArray *_feedProxies;
}
+ (NNWSho... | 3,031 |
https://github.com/jschwartzentruber/dwmstatus/blob/master/src/media.rs | Github Open Source | Open Source | Apache-2.0 | null | dwmstatus | jschwartzentruber | Rust | Code | 169 | 440 | use crate::prelude::*;
use mpris::{PlaybackStatus, PlayerFinder};
static ICON: &str = "▶";
pub fn status() -> Option<String> {
match PlayerFinder::new() {
Ok(player_finder) => {
match player_finder.find_active() {
Ok(player) => {
match player.get_metadata() ... | 23,085 |
https://github.com/gcnyin/vproxy/blob/master/lib/src/main/kotlin/io/vproxy/lib/tcp/SocksHelpers.kt | Github Open Source | Open Source | MIT | 2,022 | vproxy | gcnyin | Kotlin | Code | 209 | 889 | package io.vproxy.lib.tcp
import io.vproxy.lib.common.__getCurrentNetEventLoopOrFail
import kotlinx.coroutines.CancellableContinuation
import kotlinx.coroutines.suspendCancellableCoroutine
import java.io.IOException
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
suspend fun CoroutineConn... | 13,420 |
https://github.com/752813687/PrivateHelloWorld/blob/master/Example/PrivateHelloWorld/ZLViewController.h | Github Open Source | Open Source | MIT | null | PrivateHelloWorld | 752813687 | C | Code | 28 | 80 | //
// ZLViewController.h
// PrivateHelloWorld
//
// Created by 752813687 on 09/18/2019.
// Copyright (c) 2019 752813687. All rights reserved.
//
@import UIKit;
@interface ZLViewController : UIViewController
@end
| 35,001 |
https://github.com/harvardinformatics/Augustus/blob/master/include/exon_seg.hh | Github Open Source | Open Source | Artistic-1.0 | null | Augustus | harvardinformatics | C++ | Code | 938 | 1,970 | /*
* exon_seg.hh
*
* License: Artistic License, see file LICENSE.TXT or
* https://opensource.org/licenses/artistic-license-1.0
*/
#ifndef _EXON_SEG_HH
#define _EXON_SEG_HH
#include<iostream>
#include<fstream>
#include<math.h>
#include<getopt.h>
#include<vector>
#include<map>
#include<stdlib.h>
#include... | 10,156 |
https://github.com/conversioaps/flynt/blob/master/Components/Navigation/NavigationMobile/Partials/_hamburger.twig | Github Open Source | Open Source | MIT | null | flynt | conversioaps | Twig | Code | 11 | 74 | <button class="hamburger" type="button" data-toggle-menu aria-expanded="false" aria-controls="navigation-burger-sidebar">
<span class="hamburger-bar-primary"></span>
<span class="hamburger-bar-secondary"></span>
</button>
| 28,938 |
https://github.com/https-github-com-tigareksaperdana-co-id/ant-easyant-core/blob/master/src/main/java/org/apache/easyant/tasks/ImportTestModule.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | ant-easyant-core | https-github-com-tigareksaperdana-co-id | Java | Code | 476 | 1,363 | /*
* 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... | 16,626 |
https://github.com/cahudson94/Raven-Valley-Forge-Shop/blob/master/RVFS/account/migrations/0031_auto_20181230_1243.py | Github Open Source | Open Source | MIT | 2,021 | Raven-Valley-Forge-Shop | cahudson94 | Python | Code | 48 | 237 | # Generated by Django 2.0 on 2018-12-30 12:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0030_auto_20181111_1714'),
]
operations = [
migrations.AddField(
model_name='account',
name='pre_order',
... | 37,648 |
https://github.com/Thalutn5/Ansha/blob/master/application/views/checkout.php | Github Open Source | Open Source | MIT | null | Ansha | Thalutn5 | PHP | Code | 153 | 686 | <div class="container-fluid">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<h3>Input Alamat Pengiriman dan Pembayaran</h3>
<form action="<?= base_url('dashboard/prosesPesanan') ?>" method="post">
<div class="form-group">
... | 9,976 |
https://github.com/Hsieh-1989/HSLayout/blob/master/HSLayout.playground/Pages/Alignment.xcplaygroundpage/Contents.swift | Github Open Source | Open Source | MIT | 2,022 | HSLayout | Hsieh-1989 | Swift | Code | 109 | 413 | //: [Previous](@previous)
import UIKit
import HSLayout
import PlaygroundSupport
extension HSLayout {
static let cubeSize: HSLayout = .size(.init(width: 120, height: 120))
}
let view = UIView(frame: .init(origin: .zero, size: .init(width: 400, height: 400)))
let cube1 = UIView.color(.orange)
let cube2 = UIView.co... | 13,324 |
https://github.com/syedhameed29/admin_escape_probelm/blob/master/database/migrations/2020_11_15_040229_create_customer_addresses_table.php | Github Open Source | Open Source | MIT | null | admin_escape_probelm | syedhameed29 | PHP | Code | 60 | 268 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCustomerAddressesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('custo... | 16,978 |
https://github.com/devibizsys/IBizSysRuntime/blob/master/saibz5jquery/src/main/java/net/ibizsys/paas/web/util/bootstrap/LeftMainMenuRender.java | Github Open Source | Open Source | Apache-2.0 | null | IBizSysRuntime | devibizsys | Java | Code | 97 | 447 | package net.ibizsys.paas.web.util.bootstrap;
import net.ibizsys.paas.control.menu.IAppMenuItem;
import net.ibizsys.paas.ctrlmodel.IAppMenuModel;
import net.ibizsys.paas.util.StringBuilderEx;
import net.ibizsys.paas.web.IWebContext;
/**
* 左侧主菜单绘制器
* @author Administrator
*
*/
public class LeftMainMenuRender extend... | 18,514 |
https://github.com/esauquevedo/crmverano/blob/master/app/Http/Controllers/usuariosController.php | Github Open Source | Open Source | MIT | null | crmverano | esauquevedo | PHP | Code | 374 | 2,250 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\recurso;
use App\puesto;
use App\usuarios_promociones;
use App\usuarios;
use Mail;
use DB;
class usuariosController extends Controller
{
public function registrar(){
$usuarios=usuarios::all();
return view('registroUsuario', ... | 33,048 |
https://github.com/mkinsner/llvm/blob/master/llvm/test/CodeGen/AArch64/GlobalISel/legalize-non-pow2-load-store.mir | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm | mkinsner | null | Spoken | 370 | 1,453 | # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -march=aarch64 -run-pass=legalizer %s -o - -verify-machineinstrs | FileCheck %s
---
name: load_store_test
alignment: 4
tracksRegLiveness: true
body: |
bb.1:
liveins: $x0, $x1
; CHECK-LABEL: n... | 39,815 |
https://github.com/pjjwpc/qcloud-sdk-dotnet/blob/master/QCloudCSharpSDK/COSXML/CosXml.cs | Github Open Source | Open Source | MIT | null | qcloud-sdk-dotnet | pjjwpc | C# | Code | 2,297 | 12,161 | using System;
using System.Collections.Generic;
using System.Text;
using COSXML.Model.Service;
using COSXML.Model.Bucket;
using COSXML.Model.Object;
using COSXML.Model;
using COSXML.Model.Tag;
namespace COSXML
{
/// <summary>
/// COS 接口类,实现 COS XML 的所有功能。
/// </summary>
public interface CosXml
{... | 29,170 |
https://github.com/unb-libraries/drupal-components/blob/master/modules/lib_unb_custom_entity/src/Form/EntityDeleteAllForm.php | Github Open Source | Open Source | MIT | null | drupal-components | unb-libraries | PHP | Code | 554 | 1,786 | <?php
namespace Drupal\lib_unb_custom_entity\Form;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Form t... | 38,371 |
https://github.com/Martin4Prog/warnings-plugin/blob/master/src/test/java/hudson/plugins/warnings/parser/PerlCriticParserTest.java | Github Open Source | Open Source | MIT | 2,022 | warnings-plugin | Martin4Prog | Java | Code | 284 | 891 | package hudson.plugins.warnings.parser;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.Collection;
import java.util.Iterator;
import org.junit.Test;
import hudson.plugins.analysis.util.model.FileAnnotation;
import hudson.plugins.analysis.util.model.Priority;
/**
* Tests the Perl::C... | 18,653 |
https://github.com/LjuArn/Programming-Java-Fundamentals---2021/blob/master/DataTypesAndVariablesEx/PokeMon2.java | Github Open Source | Open Source | MIT | 2,021 | Programming-Java-Fundamentals---2021 | LjuArn | Java | Code | 76 | 258 | package FundamentalsJava.DataTypesAndVariablesEx;
import java.util.Scanner;
public class PokeMon2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int pokePowerN = Integer.parseInt(scanner.nextLine());
int distanceM = Integer.parseInt(scanner.nextLine(... | 46,749 |
https://github.com/xiaofengOdk/1909phpatest/blob/master/app/Http/Controllers/Index/IndexController.php | Github Open Source | Open Source | MIT | null | 1909phpatest | xiaofengOdk | PHP | Code | 145 | 1,207 | <?php
namespace App\Http\Controllers\Index;
use App\Http\Controllers\Controller;
use App\Models\FootModel;
use Illuminate\Http\Request;
use App\Models\Cate;
use App\models\Goods;
use App\models\Slide;
use App\models\AdtgModel;
use App\Models\NavModel;
use App\models\Cary;
use App\Models\BrandModel;
class IndexControl... | 5,276 |
https://github.com/Wrennsun/SpaceEngineers/blob/master/Sources/Sandbox.Common/ObjectBuilders/MyObjectBuilder_ButtonPanel.cs | Github Open Source | Open Source | OML | 2,021 | SpaceEngineers | Wrennsun | C# | Code | 47 | 195 | using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VRage.Serialization;
namespace Sandbox.Common.ObjectBuilders
{
[ProtoContract]
[MyObjectBuilderDefinition]
public class MyObjectBuilder_ButtonPanel : MyObjectBuilder_TerminalBlock
{
[Pro... | 30,219 |
https://github.com/somebadcode/go-colorx/blob/master/hsl_test.go | Github Open Source | Open Source | MIT | 2,021 | go-colorx | somebadcode | Go | Code | 996 | 3,969 | package colorx
import (
"image/color"
"testing"
"github.com/somebadcode/go-colorx/v2/internal/mathx"
)
func TestHSLAModel(t *testing.T) {
type args struct {
c color.Color
}
tests := []struct {
name string
args args
want HSLA
}{
{
name: "rgba",
args: args{
c: color.RGBA{
R: 128,
G... | 28,380 |
https://github.com/rem42/scraper-prestashop/blob/master/src/Entity/PrestashopStockMovement.php | Github Open Source | Open Source | MIT | 2,020 | scraper-prestashop | rem42 | PHP | Code | 636 | 2,120 | <?php
namespace Scraper\ScraperPrestashop\Entity;
final class PrestashopStockMovement
{
private ?string $ean13;
private ?int $id = null;
private ?int $idProduct = null;
private ?int $idProductAttribute = null;
private ?int $idWarehouse = null;
private ?int $idCurrency = null;
private... | 1,865 |
https://github.com/fernandoj92/mvca-parkinson/blob/master/pltm-analysis/src/main/java/org/latlab/learner/geast/procedures/RefinementProcedure.java | Github Open Source | Open Source | Apache-2.0 | null | mvca-parkinson | fernandoj92 | Java | Code | 198 | 653 | package org.latlab.learner.geast.procedures;
import org.latlab.learner.geast.IModelWithScore;
import org.latlab.learner.geast.context.IProcedureContext;
import org.latlab.learner.geast.operators.GivenCandidate;
import org.latlab.learner.geast.operators.SearchCandidate;
import org.latlab.learner.geast.operators.SearchO... | 1,098 |
https://github.com/mgplanas/php_portalcb/blob/master/pages/getDispositivos.php | Github Open Source | Open Source | MIT | null | php_portalcb | mgplanas | PHP | Code | 57 | 206 | <?php
include("../conexion.php");
$dispositivos = "SELECT i.*, t.nombre FROM controls.dispositivo as i
INNER JOIN tipo_dispositivo as t on i.tipo = t.id_tipoDispositivo
WHERE borrado='0';";
$query = mysqli_query($con, $dispositivos) or die('Query failed: ' . mysql_er... | 45,705 |
https://github.com/rbenic-fer/progauthfp/blob/master/examples/google-code-jam/lazyBit/decietful_war.cpp | Github Open Source | Open Source | MIT | null | progauthfp | rbenic-fer | C++ | Code | 117 | 826 | #include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(0);cin.tie(0);
using namespace std;
double a[1010],b[1010],N;
int calc(int ai,int l,int r)
{
if(ai==N)
return 0;
int ans=0;
if(a[ai]>b[l]&&a[ai]>b[r]){
ans=1+calc(ai+1,l+1,r);
}
if(a[ai]<b[l]&&a[ai]<b[r]){
an... | 3,397 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.