text stringlengths 27 775k |
|---|
package br.senac.tads4.piiv.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EnumType;
i... |
package dev.matrix.corx
import io.reactivex.Completable
import io.reactivex.Maybe
import io.reactivex.Observable
import io.reactivex.Single
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.flow.count
import kotlinx.coroutines.flow.single
import kotlinx.coroutines.flow.toL... |
package gorequests
import (
"bytes"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
"os"
)
func checkerr(err error) {
if err != nil {
panic(err)
}
}
type Response struct {
body *[]byte
http.Response
}
func new_Response(resp *http.Response, body *[]byte) *Response {
response := Respo... |
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class Counter extends Thread{
private Condition playPressedCondition;
private Player player;
private boolean stopRequested;
public Counter(Condition playPressedCo... |
# frozen_string_literal: true
require_relative './lib/intelligence/api.rb'
Intelligence::API.compile!
run Intelligence::API
|
FERRET_USE_LOCAL_INDEX=1
RAILS_ENV=production
chmod 0755 /var/www/apps/molten/current/script/*
cd /var/www/apps/molten/current
ruby script/ferret_start
|
import {Either, fold, left, right} from "fp-ts/lib/Either";
import {NonEmptyArray} from "fp-ts/lib/NonEmptyArray";
import {ErrorList} from "./ErrorList";
export function combine<A, B>(vs: NonEmptyArray<Validated<A>>,
f: (items: NonEmptyArray<A>) => B): Validated<B> {
let errorList: Er... |
#pragma once
#include <optional>
namespace itd
{
class FileSystem
{
public:
static void Initialize( );
static std::string ReadAsText( const std::string& path );
static std::string GetAbsolutePath( const std::string& relativePath );
private:
static std::string BaseDirectory_;
static std::string DirectoryS... |
package page.smirnov.wallestertest.domain.interactor
import page.smirnov.wallester.core_persistence.data.model.Beer
import page.smirnov.wallestertest.data.model.SortingMode
interface SortBeers {
fun exec(beers: List<Beer>, sortingMode: SortingMode): List<Beer>
}
class SortBeersImpl : SortBeers {
/**
* ... |
package br.com.planilha.gastos.parse;
import org.springframework.stereotype.Component;
import br.com.planilha.gastos.dto.AccessTokenDtoi;
import br.com.planilha.gastos.entity.AccessToken;
@Component
public class AccessTokenIntegrationParse {
public AccessToken toAccessToken(AccessTokenDtoi accessTokenDtoi) {
Acc... |
use std::fmt;
use std::fmt::Formatter;
use std::str::FromStr;
use anyhow::anyhow;
use serde::{Deserialize, Serialize};
pub mod api;
pub mod resolver;
const QUEUED_STR: &str = "Queued";
const WATCHED_STR: &str = "Watched";
const DELETED_STR: &str = "Deleted";
#[derive(Debug, Deserialize, Serialize)]
pub enum MovieDe... |
#!/bin/bash
set -e
export PATH=${HOME}/.local/bin:${PATH}
# install python packages
pip install .[dev,test,torch] --user --no-cache-dir --progress-bar=off --use-feature=in-tree-build
pre-commit install --install-hooks
# install nodejs packages
cd website
npm install --no-progress
cd -
# try superbench cli
sb
|
package main
import (
"fmt"
"strings"
)
func main() {
str := "this is a string containing a big string and small string"
subStr := "big string"
if strings.Contains(str, subStr) {
fmt.Printf("Found subStr in str \n")
} else {
fmt.Printf("subStr is not in str \n")
}
subStr2 := "another string"
if stri... |
package main
import (
"fmt"
"io"
"log"
"math/rand"
"net/http"
"os"
"strings"
"github.com/joho/godotenv"
"github.com/slack-go/slack"
)
// cache client object when service starts
var api *slack.Client
func main() {
err := godotenv.Load(".env")
// do not break code if .evn not found
if err != nil {
fmt... |
BEGIN TRANSACTION;
CREATE TABLE DUAL (value INTEGER);
INSERT INTO DUAL (value) VALUES (NULL);
COMMIT;
|
package com.elouyi.bely.data.internal.repository
import com.elouyi.bely.data.internal.repository.impl.LiveRepositoryImpl
internal object BElyRepository {
val video: VideoRepository get() = TODO()
val live: LiveRepository by lazy {
LiveRepositoryImpl()
}
} |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Analytics\Model\Connector\Http\Client;
use Magento\Analytics\Model\Connector\Http\ConverterInterface;
use Psr\Log\LoggerInterface;
use Magento\Framework\HTTP\Adapter\CurlFactory;
use Magento\Analyt... |
/* Mode: -*- C++ -*- */
// vim: set ai ts=4 sw=4 expandtab
/* @BC
* Copyright (c) 1993
* by Microelectronics and Computer Technology Corporation (MCC)
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without... |
#!/bin/sh
# 1.8.7-p374\
for ruby in \
rbx-2.2.6\
1.9.3-p547\
2.1.5\
2.2.2\
2.3.3\
2.4.1 \
do
echo "\n********************************************************************************"
echo "Building $ruby\n"
cd ext/ox
rbenv local $ruby
ruby extconf.rb
make clean
find . -name "*.rbc" -... |
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:therapy_calendar/generated/l10n.dart';
import 'package:therapy_calendar/model/contact/body_mass.dart';
class AddBodyMassFormField extends StatelessWidget {
const AddBodyMassFormFi... |
package com.liftric.octopusdeploy.task
import com.liftric.octopusdeploy.shell
import org.gradle.api.DefaultTask
import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.TaskAction
import org.gradle.k... |
import asyncio
from pyslobs import SelectionService
#import formatters as pp
#from preservers import StudioModeDisabled, NotStreamingPreserver, TestScene
async def display_status(conn) -> None:
sts = SelectionService(conn)
model = await sts.get_model()
print(model)
async def exercise_selection_ro(conn):
... |
#require './tangle.rb'
require_relative 'tangle'
b=Book.new
puts b.print_to_screen
puts "relative,it is over."
|
# bash script to check for software
# Insert your name where indicated below, then type
# $ bash test2.sh
# When it looks good, redirect output to a file:
# $ bash test2h.sh > test2output.txt
echo
echo Code run by **insert your name here**
echo Environment variable UWHPSC is $UWHPSC
echo Environment variable... |
=begin
react-component-generator
Author: sadano.katsuya <sadafield@gmail.com>
=end
require 'erb'
require 'fileutils'
class String
def to_kebab
self.gsub(/([A-Z]+)([A-Z][a-z])/, '\1-\2')
.gsub(/([a-z\d])([A-Z])/, '\1-\2')
.downcase
end
end
$url_path = []
class Component
attr_rea... |
@extends('layouts.front.candidate')
{{-- Page Title --}}
@section('pageTitle', 'Mi Curriculum')
{{-- Section Title --}}
@section('sectionTitle', 'Mi Curriculum')
{{-- Content --}}
@section('content')
<div class="row">
{{-- Profile Picture --}}
@include('front.candidate.dashboard.curriculum.partials._profile-pi... |
namespace Projector.Specs
{
using System;
using System.Reflection;
using Projector.ObjectModel;
public abstract class TraitSpec
{
internal TraitSpec() { }
internal static TraitSpec CreateInstance(Type type)
{
TraitSpec spec;
try
{
... |
import React from "react"
import { Text as ChakraText } from "@chakra-ui/react"
import { motion } from "framer-motion"
import { IText } from "@src/@interfaces"
const ChakraTextWithMotion = motion.custom(ChakraText)
const Text: React.FC<IText> = ({ children, type, ...props }) => {
switch (type) {
case "heading.f... |
package graphql.nadel.engine.transform.artificial
import graphql.introspection.Introspection.TypeNameMetaFieldDef
import graphql.nadel.engine.transform.query.NadelQueryPath
import graphql.nadel.engine.util.toBuilder
import graphql.normalized.ExecutableNormalizedField
/**
* Artificial fields are fields that do not ex... |
// The delegation pattern has proven to be a good alternative to implementation inheritance.
// It allows a flexible object composition free of problems caused by inheritance.
// Kotlin supports it natively requiring zero boilerplate code.
interface Base {
fun eval(): Int
}
class BaseImpl(val x: Int) : Base {
... |
/**
* @fileoverview Provides a directive used to show a popup over the page with
* a title and content.
*
*
* Things to know about this directive:
*
* - This directive is intented to be used along with the popup service.
*
* - By default the directive uses "popup.html" as its templateUrl. This can be
* chan... |
#!/bin/sh
sqlplus / as sysdba <<EOF
shutdown immediate
exit
EOF
|
using System.Security.Claims;
using Volo.Abp;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Security.Claims;
namespace Sample.DiscordBot.Authentication
{
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(ICurrentPrincipalAccessor))]
public class DiscordCurrentPrincipalAccessor : ICurrentPri... |
# 高级启动器
Snap Genshin 可以用作游戏启动器,直接启动游戏本体,而不加载原神用于更新版本的启动器
- 点击左侧菜单栏的`启动游戏`
- 在弹出的窗口中,进入原神的安装目录,找到原神官方名为`launcher.exe`的启动器程序
- 当然,你也可以选择启动器的快捷方式
- 设置完成后,此时再次点击`启动游戏`按钮,你将看到完整的启动器菜单
- 启动菜单:
- 点击`游戏本体`将直接按下方选定的配置启动游戏
- 点击`官方启动器`将运行用于更新版本的官方启动器程序
- 常规菜单:
- 常规设置允许用户切换账号
- 切换至B站服务... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestConsoleApplication
{
class CustomDict<K, V> : IEnumerable<KeyValuePair<K, V>>
{
private readonly int Initial_Size = 16;
Link... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.conformance.tests.performance.update;
import org.odpi.openmetadata.conformance.tests.performance.OpenMetadataPerformanceTestCase;
import org.odpi.openmetadata.conformance.workbenches.perform... |
class ModelsData
include CsvUploadData
include CsvVerticalUploadData
DATA_CLASS = Model
PROPERTY_NAMES = [
:abbreviation,
:full_name,
:current_version,
:maintainer_institute,
:description,
:url,
:programming_language,
:license,
:expertise,
:platform,
:publications_a... |
require "rails_helper"
describe SerializeCourseService do
let(:serializers_stub) { { ClassToRender: double } }
let(:serializers_service_spy) { spy(execute: serializers_stub) }
let(:rendered_stub) { double }
let(:renderer_spy) { spy(render: rendered_stub) }
let(:service) do
described_class.new(
seri... |
package jp.cordea.ikameshi.di
import jp.cordea.ikameshi.MusicListItem
import jp.cordea.ikameshi.screen.FavoriteScreen
import jp.cordea.ikameshi.screen.MainScreen
import jp.cordea.ikameshi.screen.MusicScreen
import jp.cordea.ikameshi.screen.PlayerScreen
import org.koin.dsl.module
val screenModule = module {
factor... |
<?php
interface Iresponse{
const singlePageJsSrc = "<script src='SinglePageJS/out/singlePageJS.js'>
</script>";
const wrapper = "<script>
serverCall = function(endPoint, args) {
return singlePageJsRequest(endPoint, args );
};
</script>";
public function getInitialRes... |
package com.shimizukenta.secssimulator.swing;
import java.awt.Frame;
import javax.swing.JButton;
import javax.swing.JDialog;
public class EntryDialog extends AbstractSwingDialog {
private static final long serialVersionUID = 5613631321377387725L;
private final JButton toLoadConfig;
private final JButton toSet... |
package io.questions.model.questionnaire.integrity
import io.questions.model.questionnaire.QuestionnaireNode
object Integrity {
def check(questionnaireNode: QuestionnaireNode): Set[IntegrityError] =
PredicateKeyIntegrityCheck(questionnaireNode) ++
TypeIntegrityCheck(questionnaireNode) ++
UniqueKeyIntegr... |
import {Injectable} from "@angular/core";
import "rxjs/add/operator/toPromise";
import Project from "./project";
import {BehaviorSubject} from "rxjs";
import {HttpClient} from "@angular/common/http";
import {ChecklistItem} from "../checklist/checklist-item";
@Injectable()
export class ProjectService {
private pro... |
package com.usal.jorgeav.sportapp.events.eventrequest;
import android.database.Cursor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.constraint.ConstraintLayout;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.... |
# frozen_string_literal: true
# @see Source::URL::Newgrounds
module Source
class Extractor
class Newgrounds < Source::Extractor
def match?
Source::URL::Newgrounds === parsed_url
end
def image_urls
if parsed_url.image_url?
[url]
else
urls = []
... |
module Errapi::Validations
class Presence < Base
class Factory < ValidationFactory
build Presence
end
def validate value, context, options = {}
if reason = check(value, options.fetch(:value_set, true))
context.add_error reason: reason
end
end
private
BLANK_REGEXP =... |
export 'src/board_assets.dart';
export 'src/board_config.dart';
export 'src/board_context.dart';
export 'src/markdown_helper.dart';
export 'src/menu_page_arguments.dart';
export 'src/page_arguments.dart';
export 'src/route_generator.dart';
|
using System;
using System.Collections.Generic;
using Cosmos.IL2CPU.Plugs;
using System.Threading;
namespace Cosmos.Kernel.Plugs {
[Plug(Target=typeof(System.Threading.Thread))]
public static class ThreadImpl {
private static bool running = true;
public static IntPtr InternalGetCurrentThread(... |
package io.github.nullptrx.pangleflutter.dialog
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentManager
import and... |
// Type definitions for bleno 0.4
// Project: https://github.com/sandeepmistry/bleno
// Definitions by: Manuel Francisco Naranjo <naranjo.manuel@gmail.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
type State = 'poweredOn' | 'poweredOff' | 'unauthorized' | 'unsu... |
import { Component, Input } from '@angular/core';
@Component({
selector: 'error-list',
template: `
<ul *ngIf="errors">
<li *ngFor="let error of errors" class="text-danger">{{error}}</li>
</ul>
`
})
export class ErrorListComponent {
@Input() errors:string[]=[];
} |
exports.errorMiddleware = (error, req, res, next) => {
console.log('Error middleware', error);
res.send('Error');
}
|
module StaticPagesHelper
def select_ad
n = Random.rand(0 .. 3)
p = Random.rand
if (p < 0.5)
{img: "ad_slide0.png", url: "http://itunes.apple.com/ja/app/pocket-accounting-standard/id581530923"}
elsif (p < 0.75)
{img: "ad_slide1.png", url: "http://itunes.apple.com/jp/app/flex-accounting-standards/id48356... |
4.911465 0.500000 1.320359e-04 -3.513274e+01 2.329844e-02 1.000000e+00
4.914395 0.500000 1.320869e-04 -3.511547e+01 2.330146e-02 1.000000e+00
4.917326 0.500000 1.323161e-04 -3.510857e+01 2.331651e-02 1.000000e+00
4.920260 0.500000 1.323591e-04 -3.509347e+01 2.332097e-02 1.000000e+00
4.923195 0.500000 1.324255e-04 -... |
create or replace function get_cards_in_antisupport(input varchar)
returns setof cards
as $$
begin
return query
select c.* from cards c
inner join card_to_antisupports ca on ca.cardantisupportsid = c.antisupports
inner join antisupports a on a.id = ca.antisupportsid
where a.name ~~* input
order by c.name ... |
<?php
namespace Modules\Api\Http\Controllers\Admin;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Modules\Api\Entities\Api;
use Modules\Api\Http\Requests\CreateApiRequest;
use Modules\Api\Http\Requests\UpdateApiRequest;
use Modules\Api\Repositories\ApiRepository;
use Modules\Core\Http\Controllers\Adm... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using Modix.Services.CodePaste;
namespace Modix.WebServer.Controllers
{
[Route("~/api")]
public class PasteController : Controller
{
private ICodePasteRepository _codePasteReposito... |
using Newtonsoft.Json;
using PostSharp.Patterns.Contracts;
using ThreatsManager.Interfaces.ObjectModel;
namespace ThreatsManager.AutoGenRules.Engine
{
[JsonObject(MemberSerialization.OptIn)]
public class TruismRuleNode : SelectionRuleNode
{
public TruismRuleNode()
{
Name = "TRU... |
require 'roar/decorator'
require 'roar/json/hal'
require 'pact_broker/api/pact_broker_urls'
require 'pact_broker/api/decorators/decorator_context'
require 'pact_broker/api/decorators/format_date_time'
module PactBroker
module Api
module Decorators
class BaseDecorator < Roar::Decorator
include Roar:... |
// src/test/scala/progscala2/fp/categories/MonadProperties.scala
package progscala2._6_fp.categories
import org.scalatest.FunSpec
import org.scalatest.prop.PropertyChecks
class MonadProperties extends FunSpec with PropertyChecks {
// Arbitrary function:
val f1: Int => Seq[Int] = i => 0 until 10 by ((math.abs(i) %... |
pub struct Memory
{
mem: [u8; 4096],
}
impl Memory
{
pub fn new() -> Memory {
Memory { mem:[0;4096] }
}
pub fn loadrom(&mut self, rombuffer : Vec<u8>)
{
let offset = 0x200;
for i in 0..rombuffer.len()
{
self.mem[offset+i as usize] = rombuffer[i as usize];... |
This cop checks for pipes for empty block parameters. Pipes for empty
block parameters do not cause syntax errors, but they are redundant.
### Example:
# bad
a do ||
do_something
end
# bad
a { || do_something }
# good
a do
end
# good
a { do_something } |
package com.glancebar.apiboilerplate.service
import com.glancebar.apiboilerplate.entity.RoleEntity
import com.glancebar.apiboilerplate.entity.UserEntity
import com.glancebar.apiboilerplate.repository.UserRepository
import org.springframework.cache.annotation.Cacheable
import org.springframework.security.core.GrantedAu... |
import { Controller, UseGuards, Get, Query, DefaultValuePipe, ParseIntPipe } from '@nestjs/common';
import dayjs from 'dayjs';
import { AuthGuard, MuilAdminOnly } from 'shared/guards';
import { KpisService } from './kpis.service';
@Controller('kpis')
export class KpisController {
constructor(private readonly kpisSer... |
import 'dart:convert';
import 'package:pusher_dart/Channel.dart';
import 'package:pusher_dart/Connection.dart';
class PresenceChannel extends Channel {
Members members;
PresenceChannel(String name, Connection connection, [String data]) : super(name, connection, data);
Future<bool> connect() async {
this.m... |
/* -*- mode: C++; indent-tabs-mode: nil; -*-
*
* This file is a part of LEMON, a generic C++ optimization library.
*
* Copyright (C) 2003-2010
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
*
* Permission to use, modify and distribut... |
using System;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.IdentityModel.Tokens.Jwt;
using Microsoft.AspNetCore.Mvc;
using Microsoft.IdentityModel.Tokens;
using Microsoft.AspNetCore.Authorization;
using AuthServer.Data;
using AuthServer.Contracts.V2;
namespace AuthServer.... |
package com.qingchi.base.store;
import com.qingchi.base.model.system.DistrictDO;
import com.qingchi.base.redis.DistrictRedis;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.Optional;
@Repository
public clas... |
/*
* Copyright 2003,2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
-- file:cluster.sql ln:109 expect:true
CREATE TABLE clstr_1 (a INT PRIMARY KEY)
|
# pylint: disable=no-self-use
# flake8: noqa
"""Record custom management command."""
from django.core.management.base import BaseCommand
from ... import app_settings
class Command(BaseCommand):
"""Listen all instruments and store data in database."""
help = "Listen to all instruments and store data in data... |
import { createAction } from '@reduxjs/toolkit';
/**
* Экшен удаления студента
*/
const deleteStudent = createAction<string>('deleteStudent');
export const actions = {
deleteStudent,
};
|
namespace FinancialPortal.Models
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public class Budget
{
public int Id { get; set; }
public string Name { get; set; }
public float Cap { get; set; }
//
//virtual
... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\Sylius\Bundle\ThemeBundle\Settings;
use org\bovigo\vfs\vfsStream as VfsStream;
use org... |
using Godot;
using System;
public class DefaultObject : StandardObject {
public uint gID { get; private set; }
public Property[] properties { get; private set; }
public DefaultObject(
int id,
Point position,
ObjectType type,
StandardObjectInfo objectInfo,
uint g... |
using System;
using System.Collections.Generic;
using System.Linq;
using Cofoundry.Core.AutoUpdate;
using Cofoundry.Core;
using System.Reflection;
namespace Cofoundry.Domain.Installation
{
/// <summary>
/// Factory for creating all packages that will be used at
/// startup to install/update the applicati... |
package com.sd.lib.viewanim.creator.obj;
import android.animation.Animator;
import android.view.View;
import com.sd.lib.viewanim.creator.AnimatorCreator;
import com.sd.lib.viewanim.creator.BaseAnimatorCreator;
/**
* 在动画开始的时候修改view的锚点,动画结束后还原view的锚点
*/
public class PivotPercentCreator extends BaseAnimatorCreator
{
... |
export {default as Dashboard} from './Dashboard'
export {default as SimulationParameterCard} from './SimulationParameterCard'
export {default as SimulationProfileCard} from './SimulationProfileCard'
export {default as SimulationFunctionalityCard} from './SimulationFunctionalityCard'
export {default as RoomCard} from '.... |
version = "1.2.0"
description = "Adds a ccmoddb slash command to search the CrossCode mod database."
aliucord {
changelog.set(
"""
# 1.2.0
* Updated for v101.3
""".trimIndent()
)
} |
module Data.Apiary.Document
( Documents(..)
, Route(..)
, PathDoc(..)
, MethodDoc(..)
, QueryDoc(..)
) where
import Data.Apiary.Document.Internal
|
{-# LANGUAGE DeriveDataTypeable #-}
{-|
Module : Numeric.ER.Real.Base.Rational
Description : rational numbers with infinities
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
Unlimited... |
// Test that different values of -mfpu pick correct ARM FPU target-feature(s).
// RUN: %clang -target arm-linux-eabi %s -### -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-DEFAULT %s
// CHECK-DEFAULT-NOT: "-target-feature" "+vfp2"
// CHECK-DEFAULT-NOT: "-target-feature" "+vfp3"
// CHECK-DEFAULT-NOT: "-targe... |
/* bug seen in Transformations/eval.c */
int foo(int j, int n)
{
return (2*n+1)*0;
}
|
#!/bin/bash
# File: ./inc/install_git.sh
# Info: Install Git from the Git Repository rather than Ubuntu's repository.
# Usage: source ./inc/install_git.sh
# Note: install_github.sh is different from install_git.sh
# install_git.sh installs the SCM
# install_github.sh applies settings for using git with github.com p... |
import 'dart:core';
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/dart/element/nullability_suffix.dart';
import 'package:build/build.dart';
import 'package:build/src/builder/build_step.dart';
import 'package:code_builder/code_builder.dart';
import 'package:dart_style/dart_style.dart';
i... |
use crate::{
io::{global::IO_ERROR, IO_MODULE_PATH},
native_with_error,
support::load_class_from_package,
support::{default_class_inheritance, export_and_insert, load_instance_from_module},
StdResult,
};
use laythe_core::{
hooks::{GcHooks, Hooks},
managed::Trace,
managed::{Gc, GcObj},
module::{Module,... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BLTools.UnitTest {
[TestClass]
public class TRepeatActionTest {
#region --- Test... |
#!/bin/bash
# copy over the tpm2-tools to /usr/local/sbin
chmod 0755 sbin/*
cp -f sbin/* /usr/local/sbin/
chmod 0755 /usr/local/sbin/tpm2* |
## separate-hangul-emoji-script
The utility script to separate hangul from mixed locales database.
## Getting started
```
$ pip install -r requirements.txt
$ python main.py
```
## License
MIT © [Emoji Generator](https://emoji-gen.ninja)
|
import { max, min } from 'lodash'
import { DomainPrimitive } from '@core/common/domain/interfaces/domain-primitive.interface'
import { ValueObject } from '@core/common/domain/value-objects/base.value-object'
import { ArgumentInvalidException } from '@core/common/exceptions/argument-invalid.exception'
export class Pro... |
3MT Heat - Results (Well done to all our semi-finalists)
---
```
Eren Bilgen [F.ErenBilgen@bham.ac.uk]
This message was sent with High importance.
You replied on 5/4/2018 6:35 PM.
Sent: Friday, May 04, 2018 12:57 PM
To: Eren Bilgen
Dear All,
Thank you for participating in this year’s 3MT competition and
well don... |
package fdb
import (
"context"
"github.com/apple/foundationdb/bindings/go/src/fdb"
uuid "github.com/satori/go.uuid"
"github.com/teaelephant/TeaElephantMemory/common"
"github.com/teaelephant/TeaElephantMemory/common/key_value/encoder"
common2 "github.com/teaelephant/TeaElephantMemory/pkg/fdb/common"
"github.co... |
# Contributing
Feel free to make a pull request. I'd love to see your suggestions!
|
name := "SlickGenerator"
version := "2.0.0"
scalaVersion := "2.12.2"
libraryDependencies += "com.typesafe.slick" %% "slick-codegen" % "3.2.2"
libraryDependencies += "org.postgresql" % "postgresql" % "42.2.2"
scalaSource in Compile := baseDirectory.value / "."
|
package julienrf.course
object Failure {
/**
* Write a method that takes a Mat as parameter, tries to get a smaller mat and returns its area only
* if it is higher than 1000
*/
// def smallerButLargeEnough(mat: Mat): Option[Int] = ???
}
|
package com.sthoray.allright.data.api
import com.sthoray.allright.BuildConfig
import com.sthoray.allright.utils.Constants.Companion.BASE_API_URL
import okhttp3.HttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import r... |
package eu.yeger.apollo.model_checker.model.api
import eu.yeger.apollo.shared.model.api.ApiGraph
import eu.yeger.apollo.shared.model.api.Feedback
import kotlinx.serialization.*
/**
* Request of the ModelChecking algorithm. Contains the necessary data to execute the algorithm.
*
* @property formula The for... |
./core1.bash & ./core1.bash & ./core1.bash & ./core1.bash & ./core1.bash && fg |
package com.mrper.crashcatcher.main
import android.content.Context
import android.os.Build
import com.j256.ormlite.dao.Dao
import com.mrper.crashcatcher.model.ExceptionInfoEntry
import com.mrper.crashcatcher.util.database.SQLiteHelper
import java.io.PrintWriter
import java.io.StringWriter
import java.text.SimpleDateFo... |
package com.haroncode.gemini
sealed class TestAction {
object Unfulfillable : TestAction()
object FulfillableInstantly : TestAction()
data class FulfillableAsync(val delayMs: Long) : TestAction()
object TranslatesTo3Effects : TestAction()
object MaybeFulfillable : TestAction()
object ActionForE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.