text stringlengths 27 775k |
|---|
-- phpMyAdmin SQL Dump
-- version 2.10.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 23, 2011 at 06:47 AM
-- Server version: 5.0.41
-- PHP Version: 5.2.2
--
-- Database: `cecherthala`
--
-- --------------------------------------------------------
--
-- Table structure for table `1s... |
package com.refinedmods.refinedstorage.api.network.node
import net.minecraft.nbt.CompoundTag
import net.minecraft.util.math.BlockPos
import net.minecraft.world.World
/**
* Creates a network node.
*
* @param tag the tag on disk
* @param world the world
* @param pos the pos
* @return the network node
*/
type... |
// Copyright (c) 2017 Chef Software Inc. and/or applicable contributors
//
// 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 r... |
<?php
namespace core\libs;
class Controller {
function __construct () {
$this->view = new View();
}
/**
* loadModel - Loads the model associated with the Controller
* @param string $name Name of the Model
* @param string $path Location of the models
*/
public function loadModel ($name, $modelPath = 'mo... |
#photo_batch_resizing
Warning: It would modify the file itself, so plese backup first!
Author: Tang Xiaofei
Function: Batch resize photos, and also preserve original exif info.
Only for Python 3
照片缩放批处理
警告:会直接修改原文件本身,所以需要手动备份一下!
目的:数码相机拍摄的照片尺寸过大,存贮起来很不方便,所以缩小一下尺寸方便保存。
用其他软件处理时会往往会丢失exif信息(相机拍摄时间等文件属性信息),本程序
... |
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
_reserved0: [u8; 0x0100],
#[doc = "0x100..0x140 - Plaintext register %s"]
pub plain_: [crate::Reg<plain_::PLAIN__SPEC>; 16],
#[doc = "0x140 - Configures the size of target memory space"]
pub linesize: crate::Reg<linesize::LINESIZE_SPEC... |
namespace BraspagApiDotNetSdk.Contracts
{
public class CardOnFile
{
public string Usage { get; set; }
public string Reason { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;
using System.Linq;
using System.Reflection;
using System.Text;
using Bramble.Core;
using Microsoft.CSharp;
using Amaranth.Util;
namespace Amaranth.Engine
{
public class ItemScript
{
/// <summary>
... |
namespace DependencyInversion.Models.Strategies
{
using Contracts;
public abstract class Strategy : IStrategy
{
public abstract int Calculate(int firstOperand, int secondOperand);
}
}
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.... |
package main
import (
"log"
"time"
//"strings"
"os"
"fmt"
"strconv"
zmq "github.com/pebbe/zmq4"
"github.com/hashicorp/consul/api"
"github.com/golang/protobuf/proto"
"./OpWire"
)
var (
dialTimeout = 2 * time.Second
requestTimeout = 10 * time.Second
)
func put(cli *api.Client, op *OpWire.Operation_Put, i... |
# Reference
```@meta
CurrentModule = MLFlowClient
```
# Types
TODO: Document accessors.
```@docs
MLFlow
MLFlowExperiment
MLFlowRun
MLFlowRunInfo
MLFlowRunData
MLFlowRunDataMetric
MLFlowRunStatus
MLFlowArtifactFileInfo
MLFlowArtifactDirInfo
```
# Experiments
```@docs
createexperiment
getexperiment
getorcreateexper... |
module PicapMaps
class Configuration
attr_accessor :database_name
def initialize
@database_name = 'mongo_map'
end
end
end |
import { workerData, isMainThread, parentPort } from 'worker_threads';
/**
* Function to define what should be executed inside the worker thread.
* The async function will be executed as soon as the worker thread is created.
*
* @param {Function} job Async function to be executed in the worker
* @author Karan Ra... |
# GD32 系列 BSP 制作教程
## 1. BSP 框架介绍
BSP 框架结构如下图所示:

GD32的BSP架构主要分为三个部分:libraries、tools和具体的Boards,其中libraries包含了GD32的通用库,包括每个系列的HAL以及适配RT-Thread的drivers;tools是生成工程的Python脚本工具;另外就是Boards文件,当然这里的Boards有很多,我这里值列举了GD32407V-START。
## 2. 知识准备
制作一个 BSP 的过程就是构建一个新系统的过程,因此想要制作出好用的 BSP,要对 RT... |
---
name: New feature
about: Suggest an idea for this project
title: ''
labels: Feature
assignees: ''
---
### Problem
What problem this feature is going to solve. Why this problem is important
### Solution
Proposed solution: architecture, implementation details etc
|
class Order < ActiveRecord::Base
belongs_to :customer
belongs_to :status
has_many :line_items
validates :status_id, :presence => true
validates :order_total, :presence => true,
:numericality => { :greater_than_or_equal_to => 0 }
validates :gst_rate, :allow_nil => true,
... |
<?php
namespace User\Storage;
use Laminas\Authentication\AuthenticationService;
class IdentityManager implements IdentityManagerInterface
{
protected $authService;
public function __construct(AuthenticationService $authService)
{
$this->authService = $authService;
}
public function getA... |
package app.cn.extra.mall.merchant.event;
public class PendingOrderFragmentEvent {
}
|
package ru.job4j.comparator;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.lessThan;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* Test class.
*
*@author John Ivanov (johnivo@mail.ru)
*@version $Id$
... |
using System;
using System.IO;
using System.Linq;
namespace UnityDarkSkin.Lib
{
public class Patcher
{
public string FilePath { get; }
public Version CurrentVersion { get; set; }
public ThemeType CurrentTheme { get; private set; }
private bool IsLoaded
{
ge... |
package org.cartagena.tool.core.http.json4s
import org.cartagena.tool.core.http.json4s.Json4sTestUtil._
import org.cartagena.tool.core.registry.Json4sRegistryTest
import org.scalatest.{FlatSpec, Matchers}
class Json4sClientTest extends FlatSpec with Matchers with Json4sRegistryTest {
override private[core] val jso... |
package pathroute
import (
"fmt"
. "github.com/mailgun/vulcand/Godeps/_workspace/src/github.com/mailgun/vulcan/location"
. "github.com/mailgun/vulcand/Godeps/_workspace/src/github.com/mailgun/vulcan/netutils"
. "github.com/mailgun/vulcand/Godeps/_workspace/src/github.com/mailgun/vulcan/request"
"github.com/mailgu... |
package com.donetmvc.honey.miao
import com.donetmvc.honey.miao.business.home.HomeFragment
import com.donetmvc.honey.miao.core.activity.ProxyActivity
import com.donetmvc.honey.miao.core.fragments.BaseFragment
class MainActivity : ProxyActivity() {
override fun setRootFragment(): BaseFragment? {
return Hom... |
<?php
use Doctrine\Common\Collections\ArrayCollection;
/**
* @Entity
* @Table(name = "projects")
*/
class Project
{
/**
* @Id
* @Column(type = "integer")
* @GeneratedValue
*/
public $id;
/**
* @Column(type = "string")
*/
public $name;
/**
* @Column(type = "... |
import Tool from '../utils/Tools';
export default class AudioFileDrop {
public onMediaElementDropped: (source: string) => void;
constructor() {
const dropzone = Tool.$dom("dropzone");
dropzone.addEventListener("dragenter", this.handlerDragEnter, false);
dropzone.addEventListener("drag... |
truncate concept_relationship_stage
;
insert into concept_relationship_stage
(
concept_id_1,
concept_id_2,
concept_code_1,
concept_code_2,
vocabulary_id_1,
vocabulary_id_2,
relationship_id,
valid_start_date,
valid_end_date,
invalid_reason
)
select distinct
null :: int4,
null :: int4,
cs.concept... |
RSpec.describe Shopee::Api do
it "has a version number" do
expect(Shopee::VERSION).not_to be nil
end
describe "instance" do
it "invalid params" do
expect { Shopee::Api.new({}) }.to raise_error(ArgumentError)
end
it "valid params" do
Shopee::Api.new({
partner_id: ENV["PARTNER_... |
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicInteger
fun main() {
val latch = CountDownLatch(10_000)
val c = AtomicInteger()
val... |
<?php
function Import($class) {
include $class . '.php';
}
spl_autoload_register('autoload');
$file = new File();
$array = $file::readCSVtoArray("../data/shoe.csv");
$obj = new CreateSQLTable();
$obj->createTaskTable($array[1],$array[0]); |
package org.anowls.sys.domain
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.hibernate.validator.constraints.Length
import org.hibernate.validator.constraints.NotBlank
import javax.persistence.Column
import javax.persistence.Table
@ApiModel(value = "功能项")
@Table(name ... |
<ul>
<li>
<div class="image-wrap"><img src="bootstrap/img/mimos/nextflix-1.png"/></div>
<div class="info">
<span class="school">NEXTFLIX</span>
</div>
</li>
<li>
<div class="image-wrap"><img src="bootstrap/img/mimos/uber-1.png"/></div>
... |
# @type var x: Hash[Symbol, String?]
x = { foo: "foo" }
x = { foo: nil }
x = { foo: 3 }
|
describe FastlaneCI do
describe "docs" do
Dir["app/features/*"].each do |feature_directory|
next unless File.directory?(feature_directory)
it "#{feature_directory} has a README.md" do
readme_path = File.join(feature_directory, "README.md")
expect(File.exist?(readme_path)).to eq(true), ... |
<?php
/**
* Easy permissions for users.
* Copyright (c) 2017, Zdeněk Papučík
*/
namespace Component\Acl\Control;
use Component\Acl\Entity;
use Component\Acl\Repository;
use Nette\Application\UI;
/**
* Permissions control.
*/
class Permissions extends Base
{
/**
* @var Entity\Permissions
... |
---
layout: post
title: "About Me"
excerpt: "Tentang Nadia Gustiana"
tags: [sample post]
comments: true
image:
feature: web2.jpg
credit: Nadia Gustiana
creditlink: http://nadiagustiana.github.io/
---
<p>BIODATA</p>
<p>Nama : Nadia Gustiana</p>
<p>TTL : Rantauprapat, 24 Januari 1995</p>
<p>Jurusan : <a href= "http... |
const debug = require('debug')('user-service:initDb')
const path = require('path')
let migrationRetries = 2
const runMigrations = async db => {
try {
await db.migrate.latest({
directory: path.join(__dirname, '..', '..', 'migrations')
})
debug('DB Migrations Ran', `Environment: ${process.env.NODE_E... |
@testset "971.flip-binary-tree-to-match-preorder-traversal.jl" begin
@test flip_match_voyage(TreeNode(1, TreeNode(2), nothing), [2, 1]) == [-1]
@test flip_match_voyage(TreeNode(1, TreeNode(2), TreeNode(3)), [1, 3, 2]) == [1]
@test flip_match_voyage(TreeNode(1, TreeNode(2), TreeNode(3)), [1, 2, 3]) == Int[]
... |
maintainer "Heavy Water Software Inc."
maintainer_email "darrin@heavywater.ca"
license "Apache 2.0"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "3.1.2"
description "Installs/Configures graphite"
depends "python"
depends "apache2"
depe... |
#!/bin/sh
git clone -b 1.13.0 --depth=1 https://github.com/telefonicaid/iotagent-json.git
cd iotagent-json/docker
sudo docker build -t iotagent-json:1.13.0 .
sudo docker images | grep iotagent-json
|
# CentOS 7 Packaging
Packages for the latest stable release or the currently cloned source can be
built using GNU Make.
An RPM build environment will be created under the current users home directory.
Packages will reside in $(HOME)/rpmbuild/RPMS/x86_64.
## Prerequisites
$ sudo yum install rpm-build redhat-rp... |
module RETS4R
class Client
class ObjectHeader < Hash
include Net::HTTPHeader
def initialize(raw_header)
initialize_http_header( raw_header )
end
end
# Represents a RETS object (as returned by the get_object) transaction.
class DataObject
attr_accessor :header, :data
... |
plugins {
id("java.infra")
}
dependencies {
implementation("org.springframework.cloud:spring-cloud-starter-config")
implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-server")
}
tasks.bootJar {
archiveFileName.set("registry.jar")
launchScript()
}
|
package com.inari.experimental.maxonmoon;
import com.badlogic.gdx.Input;
import com.inari.commons.geom.PositionF;
import com.inari.commons.geom.Rectangle;
import com.inari.commons.graphics.RGBColor;
import com.inari.experimental.maxonmoon.TileLayerMapping.GameLayer;
import com.inari.firefly.asset.Asset;
import com.ina... |
<?php
/**
* Created by PhpStorm.
* User: macbook
* Date: 2020-02-15
* Time: 22:17
*/
namespace api\sns\controller;
use api\sns\model\SnsTopicFollowModel;
use api\sns\model\SnsTopicModel;
use api\sns\service\TopicService;
use api\sns\validate\IdMustValidate;
use api\sns\validate\TopicFiledValidate;
use cmf\contr... |
#!/usr/bin/env bash
set -euo pipefail
experiment_dir=$1
#"/home/joe/professional/research/NUFEB-cyanobacteria/data/exploratory/fourth_test_with_dist/"
find $experiment_dir -type d -wholename '*Run_[0-9]*_[0-9]*/Results/shape*' -exec echo {} > sim_dirs.txt \;
# choosing to do these as two separate blocks, one for ... |
<?php
namespace Victorlap\Mapp\Tests\Stubs;
use Victorlap\Mapp\Attributes\ListAttribute;
class Company
{
public string $name;
public Address $address;
/**
* @var Employee[]
*/
#[ListAttribute(Employee::class)]
public array $employees;
}
|
package org.watsi.device.factories
import org.threeten.bp.Clock
import org.threeten.bp.Instant
import org.watsi.device.db.daos.PriceScheduleDao
import org.watsi.device.db.models.PriceScheduleModel
import java.util.UUID
object PriceScheduleModelFactory {
fun build(
id: UUID = UUID.randomUUID(),
... |
class CreatePeople < ActiveRecord::Migration[5.2]
def change
create_table :people do |t|
t.string :document_number, index: { unique: true }, null: false
t.string :name, null: false
t.string :lastname, null: true
t.date :born_date, null: true
t.timestamp :deleted_at # soft deleted
... |
qm destroy 9000
qm create 9000 --name "ubuntu-2110-cloudinit-template" --memory 2048 --net0 virtio,bridge=vmbr0
qm importdisk 9000 ubuntu-21.10-server-cloudimg-amd64.qcow2 local-lvm
qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0
qm set 9000 --ide2 local-lvm:cloudinit
qm set 9000 --boot c --bootdi... |
package org.scalaide.extensions
package saveactions
import org.scalaide.core.text.Remove
import org.scalaide.util.eclipse.RegionUtils._
object RemoveDuplicatedEmptyLinesSetting extends SaveActionSetting(
id = ExtensionSetting.fullyQualifiedName[RemoveDuplicatedEmptyLines],
name = "Remove duplicated empty lines",
... |
-- file:plpgsql.sql ln:1337 expect:true
insert into PSlot values ('PS.first.tb2', 'PF1_2', '', '')
|
import { By, until } from 'selenium-webdriver';
import { imageSnapshotOptions, timeouts } from './constants.json';
import minNumActivitiesShown from './setup/conditions/minNumActivitiesShown';
import scrollToBottomCompleted from './setup/conditions/scrollToBottomCompleted';
import uiConnected from './setup/conditions... |
import numpy as np
from panel.planet_data import PLANET_DATA
from panel.telemetry.telemetry import Telemetry
class EllipseData(Telemetry):
@property
def _c(self):
return (self.apoapsis - self.periapsis) / 2.0
@property
def focus_x(self):
return self._c
@property
def focus_y... |
import { Manager, Socket } from 'socket.io-client';
import { Utils } from './Utils';
export default class SocketIOClient {
private static instance: SocketIOClient;
private socketIO: Socket;
// eslint-disable-next-line no-useless-constructor
private constructor() {}
public get socket() {
if (this.socke... |
package ru.otus.vsh.hw16.messagesystem.client;
import org.springframework.stereotype.Component;
import ru.otus.vsh.hw16.messagesystem.common.MessageData;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@Component
public class CallbackRegistryImpl implements CallbackRegistry {
private final ... |
# Twitter WikidataMeter Bot
I'm the code, and deployment of Twitter bot [WikidataMeter](https://twitter.com/WikidataMeter).
I tweet a few fun things about Wikidata as it grows.
## Tweets
Feel free to suggest more tweets by creating an Github issue.
### Everytime another 1,000,000 edits happens
Bot checks this data... |
import React, { useState } from "react";
import Slider from "@material-ui/core/Slider";
import { makeStyles, withStyles } from "@material-ui/core/styles";
import { useSelector } from "react-redux";
import Tooltip from "@material-ui/core/Tooltip";
import moment from "moment";
import { useTranslation } from "react-i18nex... |
import type { TileDocument } from '@ceramicnetwork/stream-tile'
import type { Schema } from '@glazed/types'
export type CollectionContent = {
sliceMaxItems: number
slicesCount: number
}
export type CollectionDoc = TileDocument<CollectionContent>
export type CollectionSchema = Schema<CollectionContent>
export type... |
/*
* @Date: 2021-04-04 19:01:23
* @Author: Mengsen Wang
* @LastEditors: Mengsen Wang
* @LastEditTime: 2021-04-04 19:15:06
*/
#[allow(non_snake_case)]
fn longest_common_subsequence(text1: String, text2: String) -> i32 {
let N = text1.len();
let M = text2.len();
let mut dp = vec![vec![0; M + 1]; N + 1];... |
<?php
namespace App\Http\Controllers;
use App\Label;
use App\Photo;
use App\Room;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Response;
class HomeController extends Controller {
function home() {
$data['title'] = 'My home page';
$data['cu... |
DROP TABLE IF EXISTS `persons`;
CREATE TABLE `persons` (
`email` varchar(100),
`id` int NOT NULL,
`nick` varchar(100),
PRIMARY KEY (`id`)
); |
module.exports = function ajaxRequest(conf) {
return new Promise((ok, ko) => {
conf.onerror = (err) => ko(err);
conf.onload = (res) => res.status < 400 ? ok(res) : ko(`${res.status} - ${res.statusText}`);
GM_xmlhttpRequest(conf);
})
.then(res=>res.response);
}; |
### Class in Production
import pickle
class RentPrices(object):
def __init__(self):
self.one_hot_enc = pickle.load(open('parameters/one_hot_enc.pkl','rb'))
self.stand_scaler = pickle.load(open('parameters/stand_scaler.pkl','rb'))
def data_preparation(self, df):
# One_Hot_Encoding
X1 ... |
package org.scaffoldeditor.cmd.commands;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.tree.LiteralCommandNode;
import static org.scaffoldeditor.cmd.CommandUtil.*;
import java.io.IOException;
import java.nio.file.Path;
import java... |
package model
import (
. "github.com/smartystreets/goconvey/convey"
"testing"
)
func TestRingConnected(t *testing.T) {
lines := []string{"abh", "acgi", "adfj", "aek", "bcde", "hgfe", "hijk"}
ring_connected := ringOrderConnected(lines)
Convey("TestRingConnected", t, func() {
Convey... |
# An irrational decimal fraction is created by concatenating the positive integers:
# 0.12345678910_1_112131415161718192021...
# It can be seen that the 12th digit of the fractional part is 1.
# If dn represents the nth digit of the fractional part, find the value of the following expression.
# d1 × d10 × d100 × ... |
package com.parimatch.codegenextension
import javax.lang.model.element.AnnotationMirror
import javax.lang.model.element.AnnotationValue
import kotlin.reflect.KProperty1
fun AnnotationMirror.getAnnotationValueAsString(property: KProperty1<*, *>): String? {
return this.getAnnotationValueAsString(property.name)
}
f... |
module FullMetalBody
module Internal
class InputStringValidator < ActiveModel::EachValidator
DEFAULT_MAX_LENGTH = 1024
def check_validity!
if options[:max_length]
value = options[:max_length]
raise ArgumentError, ":max_length must be a non-negative Integer" unless value.... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package pt.rupeal.invoicexpress;
public final class R {
public static final class attr {
}
public static final class color {
... |
---
title: A complete break down of
tags:
- May 1907
---
A complete break down of the wrecker's salvage from the Hannah M. Bell. [Details to each person involved.]
Newspapers: **Daily Miami Metropolis, The Miami Metropolis (daily), The Daily Metropolis or Miami Daily Metropolis**
Page: **1**, S... |
# frozen_string_literal: true
require 'rails_helper'
RSpec.feature 'Correction creation' do
given(:answer) { FactoryGirl.create(:answer) }
context 'When the user is not signed in' do
scenario "It doesn't have a correction creation button" do
visit_answer_path
within_answer do
expect(page).... |
/* ECMAScript 5 added a lot of new Object Methods to JavaScript: */
// Adding or changing an object property
Object.defineProperty(object, property, descriptor)
// Adding or changing many object properties
Object.defineProperties(object, descriptors)
// Accessing Properties
Object.getOwnPropertyDescriptor(obj... |
export class Float extends Number {
constructor(a) {
var temp = new Float32Array(1);
temp[0] = +a;
super(temp[0]);
this._f = temp[0];
this._d = a;
}
toString() {
var temp = new Float64Array(1);
temp[0] = +this._d;
return temp[0].toString();
}
valueOf() {
return this._f;
}
}
export default Float... |
require 'active_record' unless defined? ActiveRecord
module LoadMore
def self.configure(&block)
yield @config ||= LoadMore::Configuration.new
end
def self.config
@config
end
class Configuration
include ActiveSupport::Configurable
config_accessor :load_limit
config_accessor :sort_column... |
{!! Form::open([ 'url' => $url, 'method' => $method ]) !!}
{{ csrf_field() }}
<div class="form-group form-animate-text" style="margin-top:40px !important;">
{{Form::text('descripcion',$colegio->descripcion,['class' => 'form-text'])}}
<span class="bar"></span>
<label style="color:green">Descripción</label>
</div... |
'use strict'
const PersonalityInsightsV3 = require('watson-developer-cloud/personality-insights/v3')
const personalityInsights = new PersonalityInsightsV3({
version: '2016-10-19',
username: process.env.WATSON_PERSONALITY_USERNAME,
password: process.env.WATSON_PERSONALITY_PASSWORD,
url: process.env.WAT... |
package kiwi.widgets.equity;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import kiwi.api.content.ContentItemService;... |
# frozen_string_literal: true
# Delivers the magic links to let people join the site or log back in
class MagicLinkMailer < ApplicationMailer
default from: "Seasoning <magic@mail.seasoning.tv>"
def welcome_email(recipient, token)
@token = token
mail(
to: recipient,
subject: "Welcome to Season... |
(ns report-classifier.core
(:require [clojure.java.io :as io]
[clojure.edn :as edn]
[report-classifier.watson :as watson]
[clojure.string :as str]))
(def classifier-ids ["f33041x451-nlc-442" "f33041x451-nlc-450"])
(defn theme->clusters [theme]
(println "THEME" theme)
(let [ma... |
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
#set -o xtrace
# Get the repo and build directories
repo_dir=$(dirname $0)
build_dir=$1
mkdir -p $build_dir
### CODE MOBILITY SERVER
cd ${repo_dir}/src/mobility_server
make -f Makefile.linux_x86 clean all > /dev/null
mv ${repo_dir}/src/mobility_server/mobility... |
export default class TimeConversions{
constructor(unixTime) {
this.date = new Date(unixTime * 1000)
this.dayOfMonth = this.date.getDate();
this.month = this.date.getMonth() +1;
this.year = this.date.getFullYear();
}
formatTime() {
return `${this.month}/${this.dayOfMonth}/${this.year}`;
}
}
... |
function primeiraFuncao()
{
document.write(`Primeira função <br>`);
}
function mostrar(valor1, valor2){
window.alert(valor1);
document.write(valor2);
}
function campo(valor){
alert(valor)
}
function inicio(){
alert("Ola");
}
|
$here = Split-Path -Path $MyInvocation.MyCommand.Path -Parent;
$pluginRoot = Split-Path -Path $here -Parent;
$testRoot = Split-Path -Path $pluginRoot -Parent;
$moduleRoot = Split-Path -Path $testRoot -Parent;
Import-Module "$moduleRoot\PScribo.psm1" -Force;
InModuleScope 'PScribo' {
Describe 'Plugins\Html\Out-H... |
#include <iostream>
#include "List.h"
using namespace std;
List::List()
{
this->arr = new int[2];
this->capacity = 2;
this->index = 0;
}
List::List(const List& list)
{
this->arr = new int[list.capacity];
this->capacity = list.capacity;
this->index = list.index;
}
List::~List()
{
delete[] this->arr;
}
void Li... |
export function polyfill(runAppFn) {
// https://github.com/emmenko/redux-react-router-async-example/blob/master/lib/index.js
// https://github.com/babotech/react-intlable/blob/master/src/ready.js
document.addEventListener('DOMContentLoaded', () => {
if (!global.Intl) {
require.ensure([
'intl',
... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreCronTask extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* 获取适用于请求... |
#!/bin/sh
# Set your CLASSPATH variable to the directory where the TLA+ tools are
# installed.
# Number of worker threads
WORKERS=1
java tlc2.TLC criticalsection3.tla -config criticalsection3.cfg -workers $WORKERS -modelcheck -deadlock
|
/*
* @file define.go
* @brief 类型名称别名
*
* @author kunliu2
* @version 1.0
* @date 2017.12
*/
package xsf
import (
"git.xfyun.cn/AIaaS/xsf-external/utils"
)
type Logger = utils.Logger
type Span = utils.Span
type CfgMode = utils.CfgMode
type CfgOpt = utils.CfgOpt
type CfgOption = utils.CfgOption
... |
import {
DestinyCharacterProgressionComponent,
DestinyProgressionDefinition,
DestinySeasonDefinition
} from 'bungie-api-ts/destiny2';
import { D2ManifestDefinitions } from '../../destiny2/d2-definitions';
/**
* Figure out whether a character has the "well rested" buff, which applies a 2x XP boost
* for the fir... |
#------------------------------------------------------------------------
# (The MIT License)
#
# Copyright (c) 2008-2011 Rhomobile, Inc.
#
# 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 Software w... |
<?php
session_start();
$con = new mysqli('localhost', 'root', '', 'foog_db');
$email = $_POST['email'];
$pass = $_POST['password'];
$s = "select * from user where email = '$email'and password = '$pass'";
$result = mysqli_query($con, $s);
//Checking if the name is already used or not
$num = mysqli_num_rows($resul... |
package be.vlproject.egcevent.security.dto;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonTypeInfo(
use = JsonTypeInfo.Id.NONE,
include = JsonTypeInfo.As.EXISTING_PROPERTY
)
... |
import Cabin from "./Cabin"
export {ICabin} from "./Cabin"
export default Cabin
|
-module(case02).
-export([main/0]).
f_case(N) ->
case N of
N when is_number(N) -> {number, N};
N when is_atom(N) -> {atom, N};
N when is_list(N) -> {list, N};
N when is_tuple(N) -> {tuple, N};
Stg -> {something_else, Stg}
end.
my_map(_Mapper, []) ->
[];
my_map(Mapper, List) ->
my_map_impl(Mapper, List, ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Woc.Book.Base.BusinessEntity;
using Woc.Book.Base.Service;
namespace Woc.Book.Base
{
public class AccessLevelController
{
public List<AccessLevels> GetData()
{
AccessLe... |
package io.joern.kotlin2cpg.querying
import io.joern.kotlin2cpg.Kt2CpgTestContext
import io.shiftleft.semanticcpg.language._
import io.shiftleft.codepropertygraph.generated.Operators
import org.scalatest.freespec.AnyFreeSpec
import org.scalatest.matchers.should.Matchers
class ComparisonOperatorTests extends AnyFreeS... |
package net.leonini.passwordgrids
import org.scalatest._
class PasswordSpec extends FlatSpec with Matchers {
def randomString(n: Int): String = {
n match {
case 1 => util.Random.nextPrintableChar.toString
case _ => util.Random.nextPrintableChar.toString ++ randomString(n-1).toString
}
}
"A G... |
using System;
namespace Zw.EliteExx.Core.Config
{
public class Env
{
public string AppFolder { get; }
public Env(string appFolder)
{
this.AppFolder = appFolder;
}
}
}
|
package org.openstreetmap.atlas.tags.annotations.validation;
import java.util.Optional;
import org.junit.Assert;
import org.junit.Test;
import org.openstreetmap.atlas.tags.BuildingTag;
import org.openstreetmap.atlas.tags.annotations.Tag;
import org.openstreetmap.atlas.tags.annotations.TagKey;
import org.openstreetmap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.