text
stringlengths
1
1.05M
require File.expand_path(File.dirname(__FILE__) + '/test_helper') class CountryTest < Phonie::TestCase def test_find_by_country_name country = Phonie::Country.find_by_name('canada') assert_equal "Canada", country.name country = Phonie::Country.find_by_name('Canada') assert_equal "Canada", country.na...
#!/bin/bash # Copyright 2013 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 # This script allows you to specify a 'segments' file with segments # relative to existing utterances, with lines like # utterance_foo-1 utterance_foo 7.5 8.2 # utterance_foo-2 utterance_foo 8.9 10.1 # and a 'text' file with...
<filename>common/tests/integrations/test_redirect_mobile.py from django.conf import settings from django.test import override_settings from common.tests.core import BaseLivePhoneTestCase, BaseLiveTestCase class RedirectMobileTestMixin(object): @override_settings( SITE_INFO={ 'domain': 'cpdb.l...
def max_sum(arr): n = len(arr) max_sum_so_far = 0 for i in range(n): max_ending_here = 0 for j in range(i, n): max_ending_here += arr[j] if (max_sum_so_far < max_ending_here): max_sum_so_far = max_ending_here return max_sum_...
#!/bin/bash ( IFS=' ' for line in `ipcs | grep 644`; do ipcrm shm `echo $line | cut -f2 -d' '` done )
/** * 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...
package org.telegram.telegrambots.meta.api.objects; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import org.telegram.telegrambots.meta.api.interfaces.InputBotApiObject; import org.telegram.telegrambots.meta.api.interfaces.Validable; import org.tele...
wget https://huggingface.co/datasets/princeton-nlp/datasets-for-simcse/resolve/main/senteval.tar tar xvf senteval.tar
<reponame>DevopsChina/conf export {}; //# sourceMappingURL=temp-any.js.map
from django.shortcuts import render from django_redis import get_redis_connection from django import http from decimal import Decimal import json, http from meiduo_mall.utils.views import LoginRequiredView from user.models import Address from goods.models import SKU from orders.models import OrderInfo class OrderSett...
function arraySum(arr: number[]): number { let sum: number = 0; // Iterate through array elements // and add them to sum for (let i of arr) { sum += i; } return sum; } let arr = [1, 2, 3, 4, 5]; console.log(arraySum(arr)); // Output: 15
<reponame>dogballs/battle-city import { GameObject, Subject } from '../../../core'; import { GameUpdateArgs } from '../../../game'; import { MenuInputContext } from '../../../input'; import * as config from '../../../config'; import { SpriteText } from '../../text'; import { MenuItem } from '../MenuItem'; // TODO: c...
module Fog module Compute class OpenStack class Real def get_server_volumes(server_id) request( :expects => 200, :method => 'GET', :path => "/servers/#{server_id}/os-volume_attachments" ) end end class Mock ...
<gh_stars>10-100 import pytest from bayesian_testing.experiments import BinaryDataTest @pytest.fixture def conv_test(): cv = BinaryDataTest() cv.add_variant_data("A", [0, 1, 0, 1, 0, 0, 0, 0, 0, 1]) cv.add_variant_data("B", [0, 0, 0, 1, 0, 0, 0, 0, 0, 1]) cv.add_variant_data_agg("C", 11, 2, a_prior=1...
#!/bin/bash # The MIT License (MIT) # # Copyright (c) 2010 Technische Universitaet Berlin # # 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 without restriction, including without limitatio...
SCRIPT_DIR=$(cd $(dirname $0); pwd) #####FTPサーバ Vsftpd環境の作成 echo '-----------install vsftpd-----------' sudo apt -y install vsftpd #FTPサーバのインストール FTP_CONFIG_TRGET=/etc/vsftpd.conf if [ ! -e $FTP_CONFIG_TRGET'-default' ];then sudo cp $FTP_CONFIG_TRGET $FTP_CONFIG_TRGET'-default' fi TIME=$(date) echo "#-----------chang...
<gh_stars>10-100 /*---------------------------------------------------------------------------*\ | Subject: document.cookie | NameSpace: System.Net.MzCookie | Author: meizz | Created: 2004-12-07 | Version: 2006-04-03 |------------------------------------------------------------- | MSN: <EMAIL...
<reponame>hhaip/langtaosha<gh_stars>1-10 package cn.lts.common.util; import java.awt.BasicStroke; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Shape; import java.awt.geom.RoundRectangle2D; import java.awt.image.BufferedImage; import java.io.File; import java.util.Hashtab...
package vectorwing.farmersdelight.data; import net.minecraft.data.DataGenerator; import net.minecraft.data.tags.BlockTagsProvider; import net.minecraft.data.tags.ItemTagsProvider; import net.minecraft.resources.ResourceLocation; import net.minecraft.tags.BlockTags; import net.minecraft.world.item.Items; import net.min...
#!/bin/bash -e # # Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
<gh_stars>100-1000 /* * Copyright © 2021 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modi...
/* * 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 ...
<reponame>openharmony-gitee-mirror/ark_runtime_core<gh_stars>1-10 /* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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...
'use strict'; // Imports const {commandUtils} = require('@gkalpak/cli-utils'); const chalk = require('chalk'); // Constants const _PR_REMOTE_ALIAS_PREFIX = 'gcoghpr'; const _PR_LOCAL_BRANCH_PREFIX = 'gcoghpr'; const GH_TOKEN_NAME = 'GITHUB_ACCESS_TOKEN'; const PR_LOCAL_BRANCH_TOP = `${_PR_LOCAL_BRANCH_PREFIX}-top`; ...
#!/bin/sh rm -rf docs/ mkdir docs # copy all files in src/ to docs/ cp -r src/. docs # compile .ts file in docs folder tsc -p docs && echo '[build: success]' # remove unnecessary files rm -rf docs/*.ts docs/tsconfig.json
<filename>components/Post/PostHeader/style.ts import { StyleSheet } from "react-native"; const styles = StyleSheet.create({ postHeaderContainer: { flexDirection: 'row', alignItems: 'center', marginBottom: 10 }, middle: { marginHorizontal: 10, flex: 1, }, user...
#include <iostream> #include <thread> #include <chrono> class TrafficLight { public: void run() { bool running = true; while (running) { // Set the traffic light to Green std::cout << "Green" << std::endl; std::this_thread::sleep_for(std::chrono::seconds(10)); ...
/* * 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 ...
#!/usr/bin/env -S bash -euET -o pipefail -O inherit_errexit SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT") # --- Script Init --- mkdir -p log rm -R -f log/* touch log/stderror.err ktools_monitor.sh $$ & pid0=$! exit_handler(){ exit_code=$? kill -9 $pid0 2> /dev/null if [ "$exit_code" -gt 0 ]; then ...
// Copyright (c) 2021 The Jaeger Authors. // // 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 agree...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_transform = void 0; var ic_transform = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0z", "fill": "none" }, "children": [] }, { "name": "path", "a...
<gh_stars>0 "use strict"; const child_process = require("child_process"); const path = require("path"); const transform = require.resolve("./transform"); it("transforms correctly", () => { const result = child_process.spawnSync( path.join(__dirname, "node_modules", ".bin", "jscodeshift"), [ "--dry", ...
#!/usr/bin/env bash ufw_enable() { belt_remote_exec "ufw --force enable &>/dev/null" } ufw_disable() { belt_remote_exec "ufw --force disable &>/dev/null" } ufw_allow() { local port="$1" belt_remote_exec "ufw allow \"$port\" &>/dev/null" } ufw_deny() { local port="$1" belt_remote_exec "ufw deny \"$port\" &>/de...
import fetchMock from 'fetch-mock'; import { SignupAPI } from '@authenticator/requests'; import config from '@authenticator/config'; describe('SignupAPI Test', (): void => { afterEach((): void => { fetchMock.restore(); }); test('registers a new user', async (): Promise<void> => { const url = `${config....
<filename>app/actions/action-browse.js<gh_stars>0 import itemsService from 'services/items'; export const PREFIX = 'actionBrowse'; export const ACTION_SEND_REQ = `${PREFIX}.ACTION_SEND_REQ`; export const ACTION_SEND_RES = `${PREFIX}.ACTION_SEND_RES`; export const DESTROY = `${PREFIX}.DESTROY`; export function getItem...
package com.dam.provider; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import com.dam.provider.res...
<gh_stars>0 import { ErrorResponse, Response } from "@webiny/handler-graphql"; import { CmsModelCreateInput, CmsModelUpdateInput, CmsContext, CmsModelCreateFromInput } from "~/types"; import { GraphQLSchemaPlugin } from "@webiny/handler-graphql/plugins/GraphQLSchemaPlugin"; import { Resolvers } from "@w...
<gh_stars>0 import os.path name = 1 potato = {} while os.path.isfile(str(name) + ".in"): inp = open(str(name) + ".in", "r") size = inp.readline() size = size[:-1] try: i = int(size) if i < 15: print str(name) + " : " + str(i) except ValueError: pass if size n...
<gh_stars>10-100 var _euler_transform_sensor_8cs = [ [ "EulerTransformSensor", "classdroid_1_1_runtime_1_1_prototyping_1_1_sensors_1_1_transform_1_1_euler_transform_sensor.html", "classdroid_1_1_runtime_1_1_prototyping_1_1_sensors_1_1_transform_1_1_euler_transform_sensor" ], [ "ObservationSpace", "_euler_transf...
/** * This file was generated by the JPA Modeler */ package com.example.demo.model; import lombok.Getter; import lombok.Setter; import java.io.Serializable; import java.util.List; /** * @author dzni0816 */ @Getter @Setter public class CustomerDto implements Serializable { private String id; private Strin...
<filename>lib/graphql/execution/typecast.rb # frozen_string_literal: true module GraphQL module Execution # GraphQL object `{value, current_type}` can be cast to `potential_type` when: # - `current_type == potential_type` # - `current_type` is a union and it contains `potential_type` # - `potential_ty...
<filename>src/daemon/event/signal.c #include <inttypes.h> #include <signal.h> #include <stdio.h> #include <sys/signalfd.h> #include <unistd.h> #include "daemon/event.h" #include "daemon/log.h" #include "daemon/supervisor.h" void daemon_event_signal_handle(struct daemon_supervisor *const sv) { struct signalfd_siginfo...
/* Copyright © 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applic...
<gh_stars>1-10 ##### # BA Amadou 16 187 314 # YING Xu 18 205 032 # ABOU Hamza 17 057 836 ### import os, sys sys.path.append(os.path.dirname(os.path.join(os.getcwd()))) from sklearn.ensemble import RandomForestClassifier from classifiers.abstract_classifier import AbstractClassifier class ...
package plugin.album; import android.content.ContentResolver; import android.database.Cursor; import android.os.AsyncTask; import android.provider.MediaStore; import android.util.Size; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.Lis...
#!/bin/bash __dir="$(dirname "$0")" source $__dir/config.sh # Pushes all web sources to remote machine # DBG+=" --dry-run" # testing FLAGS+=$DBG FLAGS+=" -avr" FLAGS+=" --delete" # excludes+="--exclude=bootstrap/cache/ " # excludes+="--exclude=storage/framework/cache/ " # excludes+="--exclude=storage/logs/ " # exclu...
import {test} from "rome"; import {testLintMultiple} from "../testHelpers"; test( "jsx-a11y anchor has content", async (t) => { await testLintMultiple( t, [ // INVALID "<a />", "<a><TextWrapper aria-hidden /></a>", // VALID "<a>Anchor Content!</a>", "<a><TextWrapper /></a>", "<a d...
#!/bin/sh # run prettier for each javascript files SCRIPT_DIR=$(dirname $0) PRETTIER=${SCRIPT_DIR}/../node_modules/.bin/prettier find ${SCRIPT_DIR} -name '*.mjs' | while read i; do (${PRETTIER} ${i} --write &); done
def get_nth_element(list_input, n): return list_input[n] print(get_nth_element(list_input, n))
<filename>blosc/trunc-prec.h /********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and r...
<reponame>stefb965/JRAW<gh_stars>1-10 package net.dean.jraw.endpoints; import com.google.common.base.Joiner; import net.dean.jraw.Endpoint; import java.io.File; import java.io.IOException; import java.lang.reflect.Method; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.uti...
#!/usr/bin/env python """ Extract and print all 'To:' addresses from a mailbox """ import mailbox def main(mailbox_path): addresses = {} mb = mailbox.PortableUnixMailbox(file(mailbox_path)) for msg in mb: toaddr = msg.getaddr('To')[1] addresses[toaddr] = 1 addresses = addresses.keys() ...
const ResponseStatus = { SUCCESS: 0, FAILED: 4, }; const ResponseStatusMsg = { SUCCESS: 'success', FAILED: 'failed', }; const ResponseBody = { generate: (status, message, payload) => { return { status, message, data: payload } } }; const HttpUtil = { ResponseStatus, ResponseStatusMsg, ...
#!/usr/bin/env bash set -e function assert_code { set +e $1 >/dev/null 2>&1 CODE="$?" set -e if [ "$CODE" != "$2" ]; then echo "exit code of '$1' is $CODE (expected $2)" false fi } echo abcd | pgspawn examples/id.yml | ./stdin-eq 'abcd\n' echo abcd | pgspawn examples/id_explicite.yml | ./stdin-eq 'abcd\n' ...
#!/bin/bash #cp node_modules/socket.io-client/dist/socket.io.min.js ../web/js/socket.io.min.js
#!/bin/bash /opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyCORE2 __name:=serial_node_2 cmd_vel:=rosbot2/cmd_vel pose:=rosbot2/pose
# Move to project directory cd App/ # Build Maven project #mvn package # Dump output to terminal FILE=sorted/part-r-00000 if test -f "$FILE"; then cat sorted/part-r-00000 rm -rf output rm -rf sorted else cat output/part-r-00000 rm -rf output fi
<gh_stars>1-10 // Import packages const Discord = require('discord.js'); const client = new Discord.Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION'] }) const fs = require('fs'); // Set variables client.commands = new Discord.Collection(); client.events = new Discord.Collection(); client.config = require('./config...
#!/bin/bash # note, TDNN is the same as what we used to call multisplice. # This version of the script, nnet3/chain/train_tdnn.sh, is for 'chain' systems. # Copyright 2012-2015 Johns Hopkins University (Author: Daniel Povey). # 2013 Xiaohui Zhang # 2013 Guoguo Chen # 2014 Vimal Manoh...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.sistemalojaroupas.view.util; import br.sistemalojaroupas.model.entities.Brand; import br.sistemalojaroupas.model.entities.C...
#include <iostream> #include <string> class FileAsset { private: std::string path; public: void setPath(const std::string& newPath) { if (!newPath.empty()) { path = newPath; } else { std::cout << "Error: File path cannot be empty." << std::endl; } } std...
#!/bin/bash export PROJECT_NAME=$CFG_PROJECT if [ "${MAKEJOBS}" = "" ]; then export MAKEJOBS=1 fi function buildProject { export CFG_PROJECT=$1 if [ ! -d $CFG_PROJECT ]; then mkdir $CFG_PROJECT fi pushd $CFG_PROJECT if [ -f CMakeCache.txt ]; then cmake -G"Unix Makefiles" $CM...
require 'date' def string_to_date(string) Date.strptime(string, '%d %B %Y') end string_to_date("01 April 2020") # Output: 2020-04-01
import requests import re def scrape_phone_numbers(urls): phone_numbers = [] for url in urls: response = requests.get(url) numbers = re.findall("([+]\d{2}\s?0?\d{10})", response.text) phone_numbers.extend(numbers) return phone_numbers
<filename>netket/machine/torch.py from .abstract_machine import AbstractMachine import torch as _torch import numpy as _np import warnings def _get_number_parameters(m): r"""Returns total number of variational parameters in a torch.nn.Module.""" return sum(map(lambda p: p.numel(), _get_differentiable_paramete...
<filename>src/app/pages/incident/incident.module.ts<gh_stars>1-10 import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IonicModule } from '@ionic/angular'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { Routes, RouterModule } from '@angular/rout...
#!/bin/bash # # Based mostly on the WSJ/Librispeech recipe. The training database is #####, # it consists of 95hrs korean speech with cleaned automatic transcripts: # # http://www.openslr.org/resources (Mirror). # # Copyright 2017 Atlas Guide (Author : Lucas Jo) # 2017 Gridspace Inc. (Author: Wonkyum Lee)...
def process_query(sentence, query_on_field, nominal_groupL): if not query_on_field or query_on_field == 'QUERY_ON_DIRECT_OBJ': if not query_on_field: sentence.sn = [ng for [prep, ngL] in nominal_groupL for ng in ngL] sentence.sv = [] elif query_on_field == 'QUERY_ON_DIRECT_OB...
#!/usr/bin/env bash set -e if cargo --version | grep -q "nightly"; then CARGO_CMD="cargo" else CARGO_CMD="cargo +nightly" fi CARGO_INCREMENTAL=0 RUSTFLAGS="-C link-arg=--export-table" $CARGO_CMD build --target=wasm32-unknown-unknown --release for i in daqiao_runtime_wasm do wasm-gc target/wasm32-unknown-unknown/rel...
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import GeSvg from '@rsuite/icon-font/lib/legacy/Ge'; const Ge = createSvgIcon({ as: GeSvg, ariaLabel: 'ge', category: 'legacy', displayName: 'Ge' }); export default Ge;
#!/usr/bin/env bash set -euo pipefail GOOS="linux" go build -ldflags='-s -w' -o bin/helper github.com/paketo-buildpacks/libjvm/cmd/helper GOOS="linux" go build -ldflags='-s -w' -o bin/main github.com/paketo-buildpacks/adoptium/cmd/main if [ "${STRIP:-false}" != "false" ]; then strip bin/helper bin/main fi if [ "$...
<html> <head> <title>Top 10 Employees</title> </head> <body> <table> <tr> <th>Employee</th> <th>Performance</th> </tr> <tr> <td>Employee 1</td> <td>8</td> </tr> <tr> <td>Employee 2</td> <td>7</td> </tr> <tr> <td>Employee 3</td> <td>9</td> </tr> <tr> <td>Employee 4</td> <td>5</td> </tr> <tr> <td>E...
#!/bin/bash cat $TARGET_EMAIL | bundle exec ruby app.rb
<filename>src/test/java/com/datasift/client/behavioural/PylonGetSteps.java package com.datasift.client.behavioural; import com.datasift.client.pylon.PylonRecording; import com.datasift.client.pylon.PylonRecordingList; import com.fasterxml.jackson.databind.JsonNode; import cucumber.api.java.en.Given; import cucumber.ap...
func installOrder(_ packages: [Package]) -> [String] { var graph: [String: Set<String>] = [:] var indegree: [String: Int] = [:] // Build the dependency graph and calculate indegrees for package in packages { graph[package.name] = Set(package.dependencies) indegree[package.name] = 0 ...
<gh_stars>1-10 <?hh // strict namespace Waffle\Router; use namespace HH\Lib\Str; use namespace HH\Lib\Vec; use namespace HH\Lib\C; use type Waffle\Contract\Http\Message\ResponseInterface; use type Waffle\Contract\Http\Message\ServerRequestInterface; use type Waffle\Contract\Http\Server\MiddlewareInterface; use type W...
#!/bin/bash # # Description : Alacritty # Author : Jose Cerrejon Gonzalez (ulysess@gmail_dot._com) # Version : 1.0.0 (09/Novp/20) # Compatible : Raspberry Pi 4 (tested) # Repository : https://github.com/alacritty/alacritty # . ../helper.sh || . ./scripts/helper.sh || . ./helper.sh || wget -q 'https://github....
package com.projet.voiture.repository; import com.projet.voiture.model.Adresse; import com.projet.voiture.model.Marque; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import javax.persistence.EntityMan...
#!/bin/bash # Compile Virginia echo -n "[virginia] Compiling Virginia... " gcc virginia.c -o virginia echo "done"
<gh_stars>1-10 const app = require('./app'); app.listen(process.env.APP_PORT || 3333, () => { return console.log('Server listening'); });
#!/bin/bash ## ## Copyright (c) 2015-2025 Industrial Technology Research Institute. ## ## 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 license...
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import CountVectorizer from sklearn.linear_model import LogisticRegression # read in the dataset emails = pd.read_csv("emails.csv") # split the emails into a training and testing set X_train, X_test, y_train,...
<!DOCTYPE html> <html> <head> <title>Navigation Bar</title> </head> <body> <nav> <a href="index.html">Home</a> <a href="about.html">About</a> <a href="contact.html">Contact</a> </nav> </body> </html>
#!/bin/bash rm -rf build mkdir build cd build cmake -DBUILD_TESTS=ON .. cmake --build .
from __future__ import absolute_import, division, print_function, unicode_literals # TODO - Support multi-language errors ERROR_LOOKUP = {'address_invalid': 'Invalid addresses attribute: %s. Party ID %s for Asset Manager %s', 'address_primary': 'Must set exactly one address as primary. Party ID %s for ...
<filename>fuzzers/oatpp/parser/json/mapping/ObjectMapper.cpp #include "oatpp/parser/json/mapping/ObjectMapper.hpp" #include "oatpp/core/macro/codegen.hpp" typedef oatpp::parser::Caret ParsingCaret; typedef oatpp::parser::json::mapping::Serializer Serializer; typedef oatpp::parser::json::mapping::Deserializer Deseriali...
#!/bin/bash # Copyright by Shlomi Fish, 2018 under the Expat licence # https://opensource.org/licenses/mit-license.php seq 2 50000000 | perl -lane 'print +(($_*$_)<<1)-1' | xargs factor | perl -Mbytes -lane 'unless (/: [0-9]+ [0-9]/) { $c++; } print "$.: $c"' | tee euler_216.dump
<reponame>MikeJfromVA/Database-Demo package mybatis; public class Customer { public int code; public String lastName; public String firstName; public char initial; public int areaCode; public int phone; // Should combine these two public int balance; //numeric (9,2) }
#!/bin/bash if [ -z "$1" ] then echo "please provide a bucket to upload artifacts required for the cloudformation template" exit 1 fi aws cloudformation package --template-file cf.yml --s3-bucket $1 --output-template .packaged-template.yml $2 $3 aws cloudformation deploy --template-file .packaged-template.y...
def monthlyInterest(balance, interestRate): return balance * interestRate / 12
<gh_stars>0 import React, { Component } from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; //import ReactDOM from 'react-dom'; import Home from '../containers/Home'; import Car from '../containers/Car'; import Checkout from '../containers/Checkout'; import Register from '../containers/Register'; i...
public class Factorial{ public static int factorial(int n) { if(n == 0) return 1; else return n * factorial(n-1); } }
<reponame>douyy/cakeManage<filename>app/view3/view3.js 'use strict'; angular.module('myApp.view3', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/view3', { templateUrl: 'view3/view3.html', controller: 'View3Ctrl' }); }]) .controller('View3Ctrl',function($http,$sc...
#!/bin/bash set -e echo "" > coverage.txt for d in $(go list ./... | grep -v vendor); do race="" if [ $GOARCH == "amd64" ]; then race="-race" fi go test $race -coverprofile=profile.out -covermode=atomic $d if [ -f profile.out ]; then cat profile.out >> coverage.txt rm profile.out fi done ex...
from .authorization import Authorization from .configuration import Configuration from .endpoint import Endpoint
'use strict'; const ChildProcess = require('child_process'); const Fs = require('fs'); const Os = require('os'); const Path = require('path'); const Boom = require('@hapi/boom'); const Code = require('@hapi/code'); const File = require('@hapi/file'); const Hapi = require('@hapi/hapi'); const Hoek = require('@hapi/hoe...
<filename>generator/generator.go package generator import ( "bytes" "context" "fmt" "time" "github.com/wzshiming/profile_stats" "github.com/wzshiming/profile_stats/generator/activities" "github.com/wzshiming/profile_stats/generator/charts" "github.com/wzshiming/profile_stats/generator/now" "github.com/wzshim...
TERMUX_PKG_HOMEPAGE=https://webkitgtk.org TERMUX_PKG_DESCRIPTION="A full-featured port of the WebKit rendering engine" TERMUX_PKG_LICENSE="LGPL-2.1" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=2.32.3 TERMUX_PKG_SRCURL=https://webkitgtk.org/releases/webkitgtk-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=c1f496f...
package com.example.tour; import java.util.zip.Inflater; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; ...
var application = require("application"); var common = require("utils/utils-common"); require("utils/module-merge").merge(common, exports); var layout; (function (layout) { var density = -1; var metrics; var MODE_SHIFT = 30; var MODE_MASK = 0x3 << MODE_SHIFT; var sdkVersion = -1; var useOldMeasu...