text
stringlengths
232
16.3k
domain
stringclasses
1 value
difficulty
stringclasses
3 values
meta
dict
<|fim_suffix|>到这一刻自由之翼率先对对付发动导弹攻击,对面依旧是毫无动作。<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;……<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;“好吧,这个问题继续延后再论,报告最新情况。”<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;回到威尔士亲王号战列舰舰桥指挥室,讨论无果的胡毅只能将视线放回到当前,年轻的提督脸上也多了几分长久历练后的果断。<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;“还是不能锁定目标,标准6型导弹现距离对方海域13公里,45秒后接近目...
code_fim
hard
{ "lang": "javascript", "repo": "biqugeniubi/resource", "path": "/books/1959/1962776.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: biqugeniubi/resource path: /books/1959/1962776.js renderContent({"book":{"id":1959,"name":"舰娘之火力提督","keywords":"舰娘之火力提督,舰娘之火力提督最新章节","description":"舰娘之火力提督最新章节由网友提供,《舰娘之火力提督》情节跌宕起伏、扣人心弦,是一本情节与文笔俱佳的玄幻小说,爱看小说免费提供舰娘之火力提督最新清爽干净的文字章节在线阅读。","author":"紫色之翼","brief":"野生技术宅穿越到了舰娘的世界,然后……<br\/><br\/>&nbsp...
code_fim
hard
{ "lang": "javascript", "repo": "biqugeniubi/resource", "path": "/books/1959/1962776.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> function filterArray(array){ let s = array.split(" "); if (s[0] === "M" || s[0] === "L" || s[0] === "z" || s[0] === "5" || s[0] === "4"){ return array; } } function append(array, accumulator = []){ if (array.length === 0) { return accumulator; } if(array[0...
code_fim
hard
{ "lang": "javascript", "repo": "Matt-Woz/FunctionalGCode", "path": "/solarSystem.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Matt-Woz/FunctionalGCode path: /solarSystem.js //console.log(process.argv); const fs=require("fs"); //var filePath=process.argv[2]; var newS; let times = []; let lengths = []; let last="";//side effect , let start="X0 Y0"; //another side effect :-( let totalTime = 0; let moveTime = 0; let cutTim...
code_fim
hard
{ "lang": "javascript", "repo": "Matt-Woz/FunctionalGCode", "path": "/solarSystem.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>function gcodeXY(source){ source = source.split(','); source[0] = "X".concat(source[0]); source[1] = "Y".concat(source[1]); source = source.join(' '); return source; } function mapGroup(grp){ let s=grp.split(" "); let distance; let time; if (s[0]==="M"){ start...
code_fim
hard
{ "lang": "javascript", "repo": "Matt-Woz/FunctionalGCode", "path": "/solarSystem.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> style={{ width: 240 }} cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" />} > <Card.Meta title="Europe Street beat" description="www.instagram.com" /> </Card>, root); registerServiceWorker();<|fi...
code_fim
medium
{ "lang": "javascript", "repo": "wangxingchenyu/React_tech", "path": "/src/history/面板二.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: wangxingchenyu/React_tech path: /src/history/面板二.js import React, {Component} from 'react'; //React核心组件,用来创建虚拟DOM import ReactDOM, {render} from 'react-dom'; import registerServiceWorker from './registerServiceWorker'; import 'antd/dist/antd.less' //引入主方的 import '../index.css'; import {Card} ...
code_fim
medium
{ "lang": "javascript", "repo": "wangxingchenyu/React_tech", "path": "/src/history/面板二.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: umaaamm/pea2021 path: /front/flipbook/mobile/javascript/text_position[41].js positionForPages[41]={page:41,positions:[{w:"CUSTOMER FOCUS",p:[0.081316,0.386636,0.844421,0.386636,0.844421,0.306483,0.081316,0.306483,0.054841,0.061326,0.054044,0.044032,0.059278,0.073955,0.050859,0.059733,0.027534,0...
code_fim
hard
{ "lang": "javascript", "repo": "umaaamm/pea2021", "path": "/front/flipbook/mobile/javascript/text_position[41].js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>0.015255,0.018793,0.017245,0.013310,0.017245,0.018130,0.017245,0.018749,0.010701,0.015255,0.018130,0.016228,0.010435,0.017245,0.018749,0.017864,0.017864,0.017245,0.018749,0.010701,0.015255,0.015344,0.016228,0.019058,0.017245,0.017864,0.017245,0.010435,0.010701,0.015255,0.012691,0.016272,0.018130,0.018572,...
code_fim
hard
{ "lang": "javascript", "repo": "umaaamm/pea2021", "path": "/front/flipbook/mobile/javascript/text_position[41].js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> const newIds = ids.filter(id => !~Object.keys(viveros.all).indexOf(id)) if (newIds.length === 0) return dispatch({ type: SET_VISIBLE_VIVEROS, ids }) console.log('hay nuevos viveros', ids, Object.keys(viveros.all), newIds) const result = await fetch(`${config.API_ROOT}/viv...
code_fim
hard
{ "lang": "javascript", "repo": "franciclo/jsub-app", "path": "/actions/viveros.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: franciclo/jsub-app path: /actions/viveros.js import fetch from 'isomorphic-fetch' import config from '../config.json' import { setVisibleEspecies } from '../actions/especies' const mapVisibleViveros = viveros => (acc, id) => { acc[id] = viveros[id]; return acc } const loc = (key, array) => arr...
code_fim
hard
{ "lang": "javascript", "repo": "franciclo/jsub-app", "path": "/actions/viveros.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> console.log('hay nuevos viveros', ids, Object.keys(viveros.all), newIds) const result = await fetch(`${config.API_ROOT}/viveros/${newIds.join(',')}`) .then(res => res.ok && res.json()) if (!result) return console.error('viveros response not ok') dispatch({ type: ADD_VIVEROS, ...
code_fim
hard
{ "lang": "javascript", "repo": "franciclo/jsub-app", "path": "/actions/viveros.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: jacklorusso/nootab path: /app/scripts/nootab.js let notepad = document.getElementById("notepad"); let backgroundColorPicker = document.getElementById("background-color"); let textColorPicker = document.getElementById("text-color"); let fontFamilyInput = document.getElementById("font-family"); le...
code_fim
hard
{ "lang": "javascript", "repo": "jacklorusso/nootab", "path": "/app/scripts/nootab.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>backgroundColorPicker.addEventListener("input", function(e) { setCustomProperty("background-color", e.target.value); localStorage.setItem("background-color", e.target.value); }); textColorPicker.addEventListener("input", function(e) { setCustomProperty("text-color", e.target.value); localStorage....
code_fim
hard
{ "lang": "javascript", "repo": "jacklorusso/nootab", "path": "/app/scripts/nootab.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>textColorPicker.addEventListener("input", function(e) { setCustomProperty("text-color", e.target.value); localStorage.setItem("text-color", e.target.value); }); fontFamilyInput.addEventListener("input", function(e) { setCustomProperty("font-family", e.target.value); localStorage.setItem("font-fam...
code_fim
hard
{ "lang": "javascript", "repo": "jacklorusso/nootab", "path": "/app/scripts/nootab.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: tsdmrfth/digit-recognition-ann path: /web-client/src/service/prediction/reducer.js import { FEEDBACK_SUBMIT_SUCCESS, GET_PREDICTION_ERROR, GET_PREDICTION_SUCCESS, MODEL_TRAINED, RESET_STATE } from "./types"; <|fim_suffix|>export default (state, {type, payload}) => { swit...
code_fim
medium
{ "lang": "javascript", "repo": "tsdmrfth/digit-recognition-ann", "path": "/web-client/src/service/prediction/reducer.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>export default (state, {type, payload}) => { switch (type) { case GET_PREDICTION_ERROR: return {...state, error: payload} case GET_PREDICTION_SUCCESS: const {prediction, percentage} = payload return {...state, prediction, percentage: percentage.toFix...
code_fim
medium
{ "lang": "javascript", "repo": "tsdmrfth/digit-recognition-ann", "path": "/web-client/src/service/prediction/reducer.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: irislian199092/fastvideo_react path: /webpack.common.config.js const webpack = require('webpack'); const path = require('path'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const bootstrapEntryPoints=require('./webpack.boo...
code_fim
hard
{ "lang": "javascript", "repo": "irislian199092/fastvideo_react", "path": "/webpack.common.config.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }, { test: /bootstrap-sass\/assets\/javascripts\//, use: 'imports-loader?jQuery=jquery' } ] }, plugins: [ new HtmlWebpackPlugin({ template...
code_fim
hard
{ "lang": "javascript", "repo": "irislian199092/fastvideo_react", "path": "/webpack.common.config.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: isghe/daostats.github.io path: /tokendata/0xdf82b7f7965f058a77065b67aeed8d8543e174b0.js { "amount": 14194240820000000000, "transfers": [ { "amt": 1342707840000000000, "blk": 1481025, "out": 0, "tgt": "0x0000000000000000000000000000000000000<|fim_suffix|>00000000000000000000000000...
code_fim
medium
{ "lang": "javascript", "repo": "isghe/daostats.github.io", "path": "/tokendata/0xdf82b7f7965f058a77065b67aeed8d8543e174b0.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>lk": 1505624, "out": 0, "tgt": "0x0000000000000000000000000000000000000000", "txh": "0x8b178c633f19a5ba7d732fa4f324ca765215092129a12bbe26ceedd9c3577b1" } ] }<|fim_prefix|>// repo: isghe/daostats.github.io path: /tokendata/0xdf82b7f7965f058a77065b67aeed8d8543e174b0.js { "amount": 141942408200...
code_fim
medium
{ "lang": "javascript", "repo": "isghe/daostats.github.io", "path": "/tokendata/0xdf82b7f7965f058a77065b67aeed8d8543e174b0.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> constructor(props){ super(props); this.state = { caregiverID: props.toUserID, customerID: props.fromUserID, job: '', options: [] } getJobList(props.fromUserID) .then(json => {console.log(json); this.setState({load...
code_fim
hard
{ "lang": "javascript", "repo": "kristelfung/hlo-react", "path": "/src/components/Body/Profile/index.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: kristelfung/hlo-react path: /src/components/Body/Profile/index.js import React, { Component } from 'react'; import moment from 'moment'; import {Modal} from 'react-bootstrap'; import Select from 'react-select'; import placeholder from '../../../images/profile-placeholder.png' import coverPlaceh...
code_fim
hard
{ "lang": "javascript", "repo": "kristelfung/hlo-react", "path": "/src/components/Body/Profile/index.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>class Review extends Component{ render(){ return( <div> <div className="row reviewer-info"> <div className="col-xs-6"> <img src={(this.props.reviewByProfilePic === undefined || this.props.reviewByProfilePic === "") ? place...
code_fim
hard
{ "lang": "javascript", "repo": "kristelfung/hlo-react", "path": "/src/components/Body/Profile/index.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: AleemAlam/ds-masai path: /ds/Revision/FullMasai/CheckforSymmetry.js function runProgram(input) { input = input.trim().split("\n"); let testCase = +input[0]; for (let z = 0, line = 1; z < testCase; z++) { let row = input[line++].trim().split(" ").map(Number); let arr = []; for (...
code_fim
hard
{ "lang": "javascript", "repo": "AleemAlam/ds-masai", "path": "/ds/Revision/FullMasai/CheckforSymmetry.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> let i = 0; let j = arr.length - 1; let horizontal = true; let vertical = true; while (i < j) { if (arr[i] != arr[j]) { horizontal = false; } i++; j--; } const newArr = []; let temp = arr[i].length - 1; for (let i = 0; i < arr.length; i++) { for (let j = 0; j < a...
code_fim
hard
{ "lang": "javascript", "repo": "AleemAlam/ds-masai", "path": "/ds/Revision/FullMasai/CheckforSymmetry.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: biqugeniubi/resource path: /books/2437/2295891.js renderContent({"book":{"id":2437,"name":"你是我的军令如山","keywords":"你是我的军令如山,你是我的军令如山最新章节","description":"你是我的军令如山最新章节由网友提供,《你是我的军令如山》情节跌宕起伏、扣人心弦,是一本情节与文笔俱佳的玄幻小说,爱看小说免费提供你是我的军令如山最新清爽干净的文字章节在线阅读。","author":"安知晓","brief":"【甜宠+虐渣=爽文】娇媚小媳妇被扑倒,红着脸道:“顾少校不是说...
code_fim
hard
{ "lang": "javascript", "repo": "biqugeniubi/resource", "path": "/books/2437/2295891.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>了撑的吗?”<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;宋冉:“我看你眼里流露出了渴望的眼神。”<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;宋冉没看错,可是渴望的不是知识,而是爱情。<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;穆棉不说话。<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;宋冉终于察觉到她的失落了,咬着笔杆子,不敢置信道:“这么长时间了,你还没搞定我二哥?”<br\/>  <br\/>  &nbsp;&nbsp;&nbsp;&nbsp;不说还好,一说,穆棉...
code_fim
hard
{ "lang": "javascript", "repo": "biqugeniubi/resource", "path": "/books/2437/2295891.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>console.log(slasher([1, 2, 3], 2)); /* This solution uses the splice() function. First argument, arr is the array to be modified. Second argument, howMany is the number of elements to be removed starting with arr[0]. Modify the array with splice() and return it. */<|fim_prefix|>// repo: vpeshin/devnotes ...
code_fim
medium
{ "lang": "javascript", "repo": "vpeshin/devnotes", "path": "/front-end/projects/02_basic_algorithm_(js)/slasherFlick.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: vpeshin/devnotes path: /front-end/projects/02_basic_algorithm_(js)/slasherFlick.js /* Return the remaining elements of an array after chopping off n elements from the head. <|fim_suffix|>console.log(slasher([1, 2, 3], 2)); /* This solution uses the splice() function. First argument, arr is the...
code_fim
hard
{ "lang": "javascript", "repo": "vpeshin/devnotes", "path": "/front-end/projects/02_basic_algorithm_(js)/slasherFlick.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>/* This solution uses the splice() function. First argument, arr is the array to be modified. Second argument, howMany is the number of elements to be removed starting with arr[0]. Modify the array with splice() and return it. */<|fim_prefix|>// repo: vpeshin/devnotes path: /front-end/projects/02_basic_a...
code_fim
medium
{ "lang": "javascript", "repo": "vpeshin/devnotes", "path": "/front-end/projects/02_basic_algorithm_(js)/slasherFlick.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> }, viewApproval: { width: '100%', height: Scale(66), flexDirection: 'row', justifyContent: 'space-around', borderTopRightRadius: Scale(33), borderTopStartRadius: Scale(33), borderWidth: 0, position: 'relative', bottom: Scale(-...
code_fim
hard
{ "lang": "javascript", "repo": "huynhkhanh226/dhr-app-root", "path": "/src/screens/xac_nhan_de_xuat_vat_tu/ChiTietPhieuDeXuatScreen.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: huynhkhanh226/dhr-app-root path: /src/screens/xac_nhan_de_xuat_vat_tu/ChiTietPhieuDeXuatScreen.js import React, {Component} from 'react'; import { View, Text, } from 'react-native'; import {connect} from "react-redux"; import {bindActionCreators} from "redux"; import * as navigationActi...
code_fim
hard
{ "lang": "javascript", "repo": "huynhkhanh226/dhr-app-root", "path": "/src/screens/xac_nhan_de_xuat_vat_tu/ChiTietPhieuDeXuatScreen.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: dohafaridi/dental-clinic path: /client/modules/Testimonial/components/TestimonialList.js import React, { PropTypes } from 'react'; import { FormattedMessage } from 'react-intl'; import TestimonialListItem from './TestimonialListItem/TestimonialListItem'; import styles from './TestimonialList.cs...
code_fim
hard
{ "lang": "javascript", "repo": "dohafaridi/dental-clinic", "path": "/client/modules/Testimonial/components/TestimonialList.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>TestimonialList.propTypes = { testimonials: PropTypes.array, handleDeleteTestimonial: PropTypes.func.isRequired, handleEditTestimonial: PropTypes.func.isRequired, }; export default TestimonialList;<|fim_prefix|>// repo: dohafaridi/dental-clinic path: /client/modules/Testimonial/components/Testimon...
code_fim
hard
{ "lang": "javascript", "repo": "dohafaridi/dental-clinic", "path": "/client/modules/Testimonial/components/TestimonialList.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: devantenor/Api-back-end path: /server.js const express = require('express') const App = express() const porta = 3000 App.listen(porta,()=> { console.log(`servidor rodando na porta ${porta}`) }) <|fim_suffix|>App.get('/teste',(req,res) => { res.send('meu primeiro teste funcionando!!!!') ...
code_fim
medium
{ "lang": "javascript", "repo": "devantenor/Api-back-end", "path": "/server.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>App.get('/teste',(req,res) => { res.send('meu primeiro teste funcionando!!!!') })<|fim_prefix|>// repo: devantenor/Api-back-end path: /server.js const express = require('express') const App = express() const porta = 3000 App.listen(porta,()=> { console.log(`servidor rodando na porta ${porta}`) })...
code_fim
medium
{ "lang": "javascript", "repo": "devantenor/Api-back-end", "path": "/server.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: wangangaanng/zust_zs path: /zs-view/src/main/webapp/js/swyt/SWInfoBasic.js /** * Created by Xia Yu on 2019/11/04. * 三位一体基本信息 */ var imgType = "";//区分图片类型:身份证正反面 户籍 var idType="1";//上传身份证还是上传户籍证明 默认1身份证 2户籍证明 $(function () { //已经提交报名表 不可在修改与提交 if(processState>0){ $('#basicForm'...
code_fim
hard
{ "lang": "javascript", "repo": "wangangaanng/zust_zs", "path": "/zs-view/src/main/webapp/js/swyt/SWInfoBasic.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> //表单验证规则 $("#basicForm").validate({ rules: { xm: "required", sfzh: { required: true, isIdCardNo: true }, xb: "required", mz: "required", jtzz: "required", lxdh: { //联系电话 ...
code_fim
hard
{ "lang": "javascript", "repo": "wangangaanng/zust_zs", "path": "/zs-view/src/main/webapp/js/swyt/SWInfoBasic.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: leandroolivpint/desafioStrider path: /webservice/src/models/tarefa.js const bancodedados = require('../database'); const Sequelize = require('sequelize'); const tarefa = bancodedados<|fim_suffix|>RING }, flag: { // flag que representa se a tarefa ja foi concluida type: Sequelize...
code_fim
medium
{ "lang": "javascript", "repo": "leandroolivpint/desafioStrider", "path": "/webservice/src/models/tarefa.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>RING }, flag: { // flag que representa se a tarefa ja foi concluida type: Sequelize.BOOLEAN }, img64:{ // Titulo da tarefa type: Sequelize.TEXT } }); tarefa.sync(); module.exports = tarefa;<|fim_prefix|>// repo: leandroolivpint/desafioStrider path: /webservice/src/mo...
code_fim
medium
{ "lang": "javascript", "repo": "leandroolivpint/desafioStrider", "path": "/webservice/src/models/tarefa.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: TwinkleMehta/blockchain-nonFungibleTokens path: /test/ColorsERC721Test.js const contractDefinition = artifacts.require('./ColorsERC721.sol'); const BigNumber = web3.BigNumber; contract('ColorsERC721', accounts => { let owner= accounts[0] let colors; beforeEach(async function() { colo...
code_fim
hard
{ "lang": "javascript", "repo": "TwinkleMehta/blockchain-nonFungibleTokens", "path": "/test/ColorsERC721Test.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> describe('claim', () => { let secondOwner = accounts[1] let price = new BigNumber(web3.toWei(.001, "ether")) it ('owner mints the token and secondOwner claims it', async function(){ let token = await colors.mint(1, {from: owner, value: price}) let newPrice = new BigNumber(web3....
code_fim
hard
{ "lang": "javascript", "repo": "TwinkleMehta/blockchain-nonFungibleTokens", "path": "/test/ColorsERC721Test.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: rizap-crm/pwa-ninja-food path: /js/app.js if('serviceWorker' in navigator){ navigator.serviceWorker.register('./sw.js') .then(reg => console.log('service worker registered')) .catch(err => console.log('service worker not registered', err)); } var push; async function subscribe(){ co...
code_fim
hard
{ "lang": "javascript", "repo": "rizap-crm/pwa-ninja-food", "path": "/js/app.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> // find the max id var last_sub_id=0; var last_sub; const snapshot = await db.collection('Subscriptions').get(); snapshot.forEach((doc) => { console.log(doc.id, '=>', doc.data()); if (parseInt(doc.id) > last_sub_id) { last_sub_id = parseInt(doc.id); last_sub = doc.data() ...
code_fim
hard
{ "lang": "javascript", "repo": "rizap-crm/pwa-ninja-food", "path": "/js/app.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: tamaa011/gb path: /api/classes/Models/BaseModel.js const category = require('../../models/category'); const mongoose = require('mongoose'); class BaseModel { async isExist(params) { let modelRefObj = params.modelRef; let query = params.query let data = await model...
code_fim
hard
{ "lang": "javascript", "repo": "tamaa011/gb", "path": "/api/classes/Models/BaseModel.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> let fieldName = params.fieldName; let fieldValue = params.fieldValue; let modelRefObj = params.modelRef let sortField = params.sortField; let sortOrder = params.sortOrder let limit = params.limit; let skip = params.offset * limit let modelToJ...
code_fim
hard
{ "lang": "javascript", "repo": "tamaa011/gb", "path": "/api/classes/Models/BaseModel.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> } async getDataWithPaginationAndSort(params) { let limit = params.limit; let skip = params.offset * limit; let modelRefObj = params.modelRef; let sortField = params.sortField; let sortOrder = params.sortOrder let arrayOfData = await modelRefObj.fin...
code_fim
hard
{ "lang": "javascript", "repo": "tamaa011/gb", "path": "/api/classes/Models/BaseModel.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: lithodomos/lithodomos-recruitment-react-node-fullstack path: /api/src/graphql/schema/Tour/index.js // @flow import type { TourMongooseRecord } from '../../../mongoose/types/Tour'; import { purchased } from './purchased'; <|fim_suffix|>export const typeDef = /* GraphQL */ ` type Tour { id:...
code_fim
medium
{ "lang": "javascript", "repo": "lithodomos/lithodomos-recruitment-react-node-fullstack", "path": "/api/src/graphql/schema/Tour/index.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>export const typeDef = /* GraphQL */ ` type Tour { id: ID! name: String! priceUSDCents: Int! thumbnailURL: String purchased: Boolean! } `;<|fim_prefix|>// repo: lithodomos/lithodomos-recruitment-react-node-fullstack path: /api/src/graphql/schema/Tour/index.js // @flow import type ...
code_fim
medium
{ "lang": "javascript", "repo": "lithodomos/lithodomos-recruitment-react-node-fullstack", "path": "/api/src/graphql/schema/Tour/index.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>_0x5581b4,validationDuration:_0x2da3b3}=_0x4ab81b;switch(_0x52aa00){case'senlabt':_0x3d9355['parameters'][a0_0x4505('0x9')]({'id':a0_0x4505('0x7'),'value':_0x2fb147/0x10}),_0x3d9355[a0_0x4505('0x8')][a0_0x4505('0x9')]({'id':a0_0x4505('0x3'),'value':_0x5581b4/0x10}),_0x3d9355[a0_0x4505('0x8')][a0_0x4505('0...
code_fim
hard
{ "lang": "javascript", "repo": "AbelPouillet/lorabarail", "path": "/slcodec/codec/parser/utils/highThreshold2Configuration.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: AbelPouillet/lorabarail path: /slcodec/codec/parser/utils/highThreshold2Configuration.js const a0_0x5649=['temperature2_highthreshold_release','exports','senlabh','temperature2_highthreshold_validation_duration','temperature2_highthreshold_trigger','parameters','push','senlabo','humidity_highthr...
code_fim
hard
{ "lang": "javascript", "repo": "AbelPouillet/lorabarail", "path": "/slcodec/codec/parser/utils/highThreshold2Configuration.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>0x2da3b3});break;case a0_0x4505('0x5'):case a0_0x4505('0xa'):_0x3d9355['parameters'][a0_0x4505('0x9')]({'id':a0_0x4505('0x0'),'value':_0x2fb147}),_0x3d9355[a0_0x4505('0x8')]['push']({'id':a0_0x4505('0x1'),'value':_0x5581b4}),_0x3d9355['parameters'][a0_0x4505('0x9')]({'id':a0_0x4505('0x2'),'value':_0x2da3b...
code_fim
hard
{ "lang": "javascript", "repo": "AbelPouillet/lorabarail", "path": "/slcodec/codec/parser/utils/highThreshold2Configuration.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>module.exports.readBusStop = async(event, context, callback) => { const body = _.isObject(event) && event.hasOwnProperty("body") ? JSON.parse(event.body) : event ; return await getBusstopByLocation(body) .then(busstops => { callback(null, response(200, { results: busstops } )); }) .c...
code_fim
medium
{ "lang": "javascript", "repo": "lpbarcenas/bus-stops-sls", "path": "/handler.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: lpbarcenas/bus-stops-sls path: /handler.js 'use strict'; const _ = require('lodash'); const AWS = require('aws-sdk'); const db = new AWS.DynamoDB.DocumentClient({ apiVersion: '2012-08-10' }); const { createUser } = require("./db/user"); const { getBusstopByLocation } = require("./db/busstop")...
code_fim
hard
{ "lang": "javascript", "repo": "lpbarcenas/bus-stops-sls", "path": "/handler.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>module.exports.register = async (event, context, callback) => { const body = JSON.parse(event.body); return await createUser(body) .then(user => ({ statusCode: 200, body: JSON.stringify(user) })) .catch(err => { return { statusCode: err.statusCode || 500, ...
code_fim
hard
{ "lang": "javascript", "repo": "lpbarcenas/bus-stops-sls", "path": "/handler.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> //抛出消息 this.dispatch(UploadController.eventTypes.onProgress, 1, fileItem); if (this.checkIsComplete()) { this.dispatch(UploadController.eventTypes.onCompleteUpload, this.getFilesList()); } } /** * 检测是否上传完成 * @returns {boolean} */ checkIsComplete() { let isComplet...
code_fim
hard
{ "lang": "javascript", "repo": "lsy999/muse-ui-pro", "path": "/src/lib/utils/UploadController.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: lsy999/muse-ui-pro path: /src/lib/utils/UploadController.js import EventListener from "./EventListener"; import HttpClient, {EnContentType} from "../http/HttpClient"; import ArrayApi from "./ArrayApi"; import SystemApi from "../http/SystemApi"; const prefix = "file-item-"; //定义文件类型 export cons...
code_fim
hard
{ "lang": "javascript", "repo": "lsy999/muse-ui-pro", "path": "/src/lib/utils/UploadController.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: garp360/the441 path: /the441/WebContent/app/event/event.controller.js (function() { 'use strict'; angular .module('hb.the441') .controller('EventController', EventController); EventController.$inject = ['$scope', '$log', 'member', 'events', 'courses', 'EventS...
code_fim
hard
{ "lang": "javascript", "repo": "garp360/the441", "path": "/the441/WebContent/app/event/event.controller.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> function addTeeTime(selectedTeeTime) { var scheduledTeeTimes = angular.copy($scope.event.teeTimes); if(!teeTimeIsScheduled(selectedTeeTime)) { scheduledTeeTimes.push(selectedTeeTime); scheduledTeeTimes.sort(function(a,b) { return a.order - b.order; }); ...
code_fim
hard
{ "lang": "javascript", "repo": "garp360/the441", "path": "/the441/WebContent/app/event/event.controller.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: bloodyowl/talk-css-at-scale path: /web_modules/Slide08.js import React, {Component} from "react" import transitionChild from "bloody-react-transition-child" import Slide from "Slide" @transitionChild() export default class extends Component { render() { return ( <Slide {...this.pro...
code_fim
hard
{ "lang": "javascript", "repo": "bloodyowl/talk-css-at-scale", "path": "/web_modules/Slide08.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>/li> <li style={styles.listItem}> {"qui priorise les sélecteurs comme un ivrogne"} </li> <li style={styles.listItem}> {"qui est régression-friendly™"} </li> <li style={styles.listItem}> {"qui rend impossible la prédictab...
code_fim
hard
{ "lang": "javascript", "repo": "bloodyowl/talk-css-at-scale", "path": "/web_modules/Slide08.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>à grande échelle"} </li> </ul> </Slide> ) } } const styles = { title: { fontSize: "3rem", textAlign: "center", fontWeight: 700, }, subtitle: { fontSize: "2.5rem", textAlign: "center", }, list: { padding: "2rem", }, listItem: { fontSi...
code_fim
hard
{ "lang": "javascript", "repo": "bloodyowl/talk-css-at-scale", "path": "/web_modules/Slide08.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> <button>Back to Login</button> </div> </div> ) } export default ResetSuccess;<|fim_prefix|>// repo: NiiAmui/url-shortener-capstone path: /src/Components/ResetSuccess.js import React from "react"; const ResetSuccess =()=>{ return ( <div className="resetsuccess"> <...
code_fim
hard
{ "lang": "javascript", "repo": "NiiAmui/url-shortener-capstone", "path": "/src/Components/ResetSuccess.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: NiiAmui/url-shortener-capstone path: /src/Components/ResetSuccess.js import React from "react"; const ResetSuccess =()=>{ return ( <div className="resetsuccess"> <|fim_suffix|> <button>Back to Login</button> </div> </div> ) } export default ResetSuccess;<...
code_fim
hard
{ "lang": "javascript", "repo": "NiiAmui/url-shortener-capstone", "path": "/src/Components/ResetSuccess.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: spalaios/Unit-Converter path: /js/converter.js $(function(){ var fromObject; var toObject; //category filler code var $el = $('#categoryInput').val(); // console.log($el); //first request for subcategory filling $.ajax({ url:$el+'.json' }).done(function(value){ let basicObject = val...
code_fim
hard
{ "lang": "javascript", "repo": "spalaios/Unit-Converter", "path": "/js/converter.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> <div class="card-block"> <h3>${toObject['value']}${toObject['Symbol']} :</h3> <div id="valueOutput"></div> </div> </div> `; // conso...
code_fim
hard
{ "lang": "javascript", "repo": "spalaios/Unit-Converter", "path": "/js/converter.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: mia0421/react-flux-try path: /src/js/components/car/app-CarIceQty.js var React = require('react'); var appAction=require('../../actions/app-actions.js'); <|fim_suffix|>}); module.exports = appCarIceQty<|fim_middle|>/*購物車 增加某商品數量*/ var appCarIceQty = React.createClass({ iceQty:f...
code_fim
hard
{ "lang": "javascript", "repo": "mia0421/react-flux-try", "path": "/src/js/components/car/app-CarIceQty.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> }, render: function() { return ( <button onClick={this.iceQty}>+</button> ); } }); module.exports = appCarIceQty<|fim_prefix|>// repo: mia0421/react-flux-try path: /src/js/components/car/app-CarIceQty.js var React = require('react'); var appAction=require('../../actions/app-ac...
code_fim
medium
{ "lang": "javascript", "repo": "mia0421/react-flux-try", "path": "/src/js/components/car/app-CarIceQty.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>console.log(sortNumArr([3, 8, 7, 6, 5, -4, 3, 2, 1]));<|fim_prefix|>// repo: Debraj-Kundu/js-programs path: /arrays/sortNumArr.js /* Q7. Write a JavaScript program to sort the items of an array. File name suggestion: sortNumArr.js TestData: console.log(sortNumArr([3, 8, 7, 6, 5, -4, 3, 2, 1])); // [-4,-3...
code_fim
easy
{ "lang": "javascript", "repo": "Debraj-Kundu/js-programs", "path": "/arrays/sortNumArr.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Debraj-Kundu/js-programs path: /arrays/sortNumArr.js /* Q7. Write a JavaScript program to sort the items of an array. File name suggestion: sortNumArr.js TestData: console.log(sortNumArr([3, 8, 7, 6, 5, -4, 3, 2, 1])); // [-4,-3,1,2,3,5,6,7,8] */ <|fim_suffix|>console.log(sortNumArr([3, 8, 7, 6...
code_fim
easy
{ "lang": "javascript", "repo": "Debraj-Kundu/js-programs", "path": "/arrays/sortNumArr.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>export default withSession(Landing);<|fim_prefix|>// repo: miloofcroton/simple-apollo-full-stack path: /client-cra/src/views/content/messages/index.js import React from 'react'; import withSession from '../../lib/session/withSession'; import Display from './Display'; import Create from './Create'; <|fim...
code_fim
medium
{ "lang": "javascript", "repo": "miloofcroton/simple-apollo-full-stack", "path": "/client-cra/src/views/content/messages/index.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: miloofcroton/simple-apollo-full-stack path: /client-cra/src/views/content/messages/index.js import React from 'react'; import withSession from '../../lib/session/withSession'; import Display from './Display'; import Create from './Create'; const Landing = ({ session }) => ( <div> <h2>Mess...
code_fim
medium
{ "lang": "javascript", "repo": "miloofcroton/simple-apollo-full-stack", "path": "/client-cra/src/views/content/messages/index.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>sageBatchResponse> <SendMessageBatchResult> <SendMessageBatchResultEntry> <Id>ONE</Id> <MessageId>0a5231c7-8bff-4955-be2e-8dc7c50a25fa</MessageId> <MD5OfMessageBody>8b2f30468657cfc118bbbebb6ad52b5a</MD5OfMessageBody> </SendMessageBatchResultEntry> <SendMessageBatchRes...
code_fim
hard
{ "lang": "javascript", "repo": "newrelic/node-newrelic-aws-sdk", "path": "/tests/versioned/aws-server-stubs/response-server/sqs/responses/send-message-batch-response.js", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Avendril/Node-SmartHive-Website path: /app.js var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); <|fim_suffix|>// view engine ...
code_fim
hard
{ "lang": "javascript", "repo": "Avendril/Node-SmartHive-Website", "path": "/app.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>var app = express(); // view engine setup app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'jade'); // uncomment after placing your favicon in /public //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); app.use(logger('dev')); app.use(bodyParser.json()); app.use(bod...
code_fim
hard
{ "lang": "javascript", "repo": "Avendril/Node-SmartHive-Website", "path": "/app.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>// error handler app.use(function(err, req, res, next) { // set locals, only providing error in development res.locals.message = err.message; res.locals.error = req.app.get('env') === 'development' ? err : {}; // render the error page res.status(err.status || 500); res.render('error'); }); m...
code_fim
hard
{ "lang": "javascript", "repo": "Avendril/Node-SmartHive-Website", "path": "/app.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>": "1042015:abilityTag_384", "name": "插画艺术" }, { "tagid": "1042015:abilityTag_385", "name": "网页UI" }, { "tagid": "1042015:abilityTag_386", "name": "景观设计" }, { "tagid": "1042015:abilityTag_387", "name": "室内设计" }, { "tagid": "1042015:abilityTag_388", "name": "服饰设计" }, { "tagid": "1042015...
code_fim
hard
{ "lang": "javascript", "repo": "P79N6A/ug_push", "path": "/src/utils/temp.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> }, { "tagid": "1042015:abilityTag_558", "name": "帅哥图片" }, { "tagid": "1042015:abilityTag_640", "name": "美胸" }, { "tagid": "1042015:abilityTag_641", "name": "美腿" }, { "tagid": "1042015:abilityTag_11434", "name": "葡萄酒" }, { "tagid": "1042015:abilityTag_353", "name": "川菜" }, { "tagid...
code_fim
hard
{ "lang": "javascript", "repo": "P79N6A/ug_push", "path": "/src/utils/temp.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: P79N6A/ug_push path: /src/utils/temp.js tyTag_552", "name": "测字算名" }, { "tagid": "1042015:abilityTag_1014", "name": "占卜师" }, { "tagid": "1042015:abilityTag_538", "name": "孕事" }, { "tagid": "1042015:abilityTag_10206", "name": "产检" }, { "tagid": "1042015:abilityTag_10207", "name": ...
code_fim
hard
{ "lang": "javascript", "repo": "P79N6A/ug_push", "path": "/src/utils/temp.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>,我这么说,只是想让你明白,这呆子是值得相信的,无论你有任何话,都可以当着他说,不必有什么顾忌。”<br\/>  <br\/>  见气氛有些压抑,萧梦雨又急忙岔开了话题。<br\/>  <br\/>  朱天和古怪的打量了王寒一眼,这才点了点头,一脸凝重道:“大小姐,看到您还活着,小人就算是死,也瞑目了,只是周围有很多欧阳鸿的眼线,恐怕您的行踪……”<br\/>  <br\/>  “放心,这里是万恶域,他们也不敢把我们怎么样。”<br\/>  <br\/>  朱天和的话还没说完,便被萧梦雨挥手打断,“而且有呆子在,只要不出万恶域,就没人能奈何得了我们。”<br\/>  <br\/>  “以王公子的战力,确实...
code_fim
hard
{ "lang": "javascript", "repo": "biqugeniubi/resource", "path": "/books/2513/2343269.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>天和便满脸焦急道:“我虽逃到万恶域,但欧阳鸿的爪牙依旧尾随而来,他们正恨不得从我身上套出更多隐密呢,你现在当众与我相认,恐怕要不了多久,欧阳鸿会派出更多的强者前来捉拿你呀。”<br\/>  <br\/>  “欧阳鸿这个老匹夫!”<br\/>  <br\/>  萧梦雨恶狠狠道:“他借我是天凤命格之名作乱也就罢了,居然连其他人也不放过,简直毫无人性。”<br\/>  <br\/>  “大小姐,现在不是说这些的时候,您还是赶紧……”<br\/>  <br\/>  说到这里,朱天和似乎才发现旁边还有个人。<br\/>  <br\/>  “这位是……?”<br\/>  <br\/>  “我叫王寒,是梦雨的朋友!”<...
code_fim
hard
{ "lang": "javascript", "repo": "biqugeniubi/resource", "path": "/books/2513/2343269.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: biqugeniubi/resource path: /books/2513/2343269.js renderContent({"book":{"id":2513,"name":"一念诛天","keywords":"一念诛天,一念诛天最新章节","description":"一念诛天最新章节由网友提供,《一念诛天》情节跌宕起伏、扣人心弦,是一本情节与文笔俱佳的玄幻小说,爱看小说免费提供一念诛天最新清爽干净的文字章节在线阅读。","author":"慕月","brief":"若非一时冲动,又如何能冲破九霄,斗得满天神佛跪地求饶?<br\/>  若非一时头脑发热,高不可攀的圣女又如何会低...
code_fim
hard
{ "lang": "javascript", "repo": "biqugeniubi/resource", "path": "/books/2513/2343269.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>387 -122 q 303 -156 335 -156 q 258 -147 279 -156 l 272 -108 "},"ı":{"x_min":97,"x_max":139,"ha":236,"o":"m 97 745 l 97 0 l 139 0 l 139 745 l 97 745 "},"Ć":{"x_min":76.390625,"x_max":650.046875,"ha":720,"o":"m 650 0 q 597 -3 626 -2 q 547 -4 569 -4 q 341 38 429 -4 q 193 149 252 80 q 105 306 134 218 q 76 486...
code_fim
hard
{ "lang": "javascript", "repo": "kliqkliq/kielce360", "path": "/lib/existence_light.typeface.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: kliqkliq/kielce360 path: /lib/existence_light.typeface.js 6 755 633 704 q 525 846 579 807 q 391 910 472 886 q 204 934 311 934 m 191 1088 l 400 1239 l 425 1205 l 216 1055 l 191 1088 "},"ñ":{"x_min":91.671875,"x_max":672.28125,"ha":756,"o":"m 133 744 l 133 683 q 243 738 181 719 q 368 758 305 758 q...
code_fim
hard
{ "lang": "javascript", "repo": "kliqkliq/kielce360", "path": "/lib/existence_light.typeface.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: kliqkliq/kielce360 path: /lib/existence_light.typeface.js 00 q 111 375 111 383 q 137 252 111 312 q 217 143 163 191 q 352 66 270 95 q 543 37 433 37 q 627 41 583 37 l 627 0 m 400 716 q 309 700 355 716 q 224 651 263 684 q 156 568 184 618 q 116 450 127 518 l 666 450 q 649 540 666 493 q 598 627 632 5...
code_fim
hard
{ "lang": "javascript", "repo": "kliqkliq/kielce360", "path": "/lib/existence_light.typeface.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Leask/HefuMuye path: /bin/Site/QYRY-EN_files/QYRY-EN.js // Created by iWeb 2.0.3 local-build-20080704 setTransparentGifURL('Media/transparent.gif');function applyEffects() {var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_0:new IWShadow({blurRadius:4,offset:new IWPoint(1.4...
code_fim
medium
{ "lang": "javascript", "repo": "Leask/HefuMuye", "path": "/bin/Site/QYRY-EN_files/QYRY-EN.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>{loadMozillaCSS('QYRY-EN_files/QYRY-ENMoz.css') adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');detectBrowser();fixAllIEPNGs('Media/transparent.gif');Widget.onload();ap...
code_fim
medium
{ "lang": "javascript", "repo": "Leask/HefuMuye", "path": "/bin/Site/QYRY-EN_files/QYRY-EN.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Nahasean94/Fundcast-client path: /src/components/podcasts/modals/EditPodcastModal.js hql-react" let hostOptions, tagOptions, checked class EditPodcastModal extends React.Component { constructor(props) { super(props) this.state = { title: this.props.podcast.title...
code_fim
hard
{ "lang": "javascript", "repo": "Nahasean94/Fundcast-client", "path": "/src/components/podcasts/modals/EditPodcastModal.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> </div> {isPayable && <div> <TextFieldGroup label="Amount ($)" type="number" ...
code_fim
hard
{ "lang": "javascript", "repo": "Nahasean94/Fundcast-client", "path": "/src/components/podcasts/modals/EditPodcastModal.js", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Nahasean94/Fundcast-client path: /src/components/podcasts/modals/EditPodcastModal.js fetchOptionsOverride: fundcastFetchOptionsOverride, resetOnLoad: true, operation: { variables: { id: this.prop...
code_fim
hard
{ "lang": "javascript", "repo": "Nahasean94/Fundcast-client", "path": "/src/components/podcasts/modals/EditPodcastModal.js", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> if (zymc == null) { zymc = ""; } if (bjmc == null) { bjmc = ""; } var view = njdm_id + " " + bmmc + " " + zymc + " " + bjmc; jQuery("#bjView").html(view); }<|fim_prefix|>// repo: bellmit/niutal path: /niutal-core-web/src/main/webapp/js/zfxg/comp/xsxxgl/ckXsxx.js var gndm = "jcsj_xsxxgl_ckxsxx"...
code_fim
hard
{ "lang": "javascript", "repo": "bellmit/niutal", "path": "/niutal-core-web/src/main/webapp/js/zfxg/comp/xsxxgl/ckXsxx.js", "mode": "spm", "license": "Apache-2.0", "source": "the-stack-v2" }
<|fim_suffix|>private: /** * Interface utilisateur */ Ui::MainWindow *ui; }; #endif // MAINWINDOW_H<|fim_prefix|>// repo: quentin-pla/Projet-Courbes-Surfaces-3D path: /mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "point.h" namespace Ui { class MainWind...
code_fim
hard
{ "lang": "cpp", "repo": "quentin-pla/Projet-Courbes-Surfaces-3D", "path": "/mainwindow.h", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> /** * À la sauvegarde d'un fichier OBJ * @param data */ void onSaveOBJFile(const std::stringstream &data); private: /** * Interface utilisateur */ Ui::MainWindow *ui; }; #endif // MAINWINDOW_H<|fim_prefix|>// repo: quentin-pla/Projet-Courbes-Surfaces-3D path: /m...
code_fim
hard
{ "lang": "cpp", "repo": "quentin-pla/Projet-Courbes-Surfaces-3D", "path": "/mainwindow.h", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: quentin-pla/Projet-Courbes-Surfaces-3D path: /mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "point.h" namespace Ui { class MainWindow; <|fim_suffix|>Q_OBJECT public: /** * Constructeur * @param parent parent */ explicit MainW...
code_fim
medium
{ "lang": "cpp", "repo": "quentin-pla/Projet-Courbes-Surfaces-3D", "path": "/mainwindow.h", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: zinon/HiggsAnalysis path: /trunk/MainAnalysis/MainAnalysis/MainAnalysisIncludes.h #ifndef MainAnalysis_MainAnalysisIncludes_H #define MainAnalysis_MainAnalysisIncludes_H //event info #include "xAODEventInfo/EventInfo.h" //============ //STD includes //============ #include <iostream> #include ...
code_fim
hard
{ "lang": "cpp", "repo": "zinon/HiggsAnalysis", "path": "/trunk/MainAnalysis/MainAnalysis/MainAnalysisIncludes.h", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|>std::unique_ptr<CP::MuonCalibrationAndSmearingTool> m_muonCalibrationAndSmearingTool; std::unique_ptr<CP::MuonSelectionTool> m_muonSelectionTool; std::unique_ptr<CP::MuonEfficiencyScaleFactors> m_muonEfficiencyScaleFactorsTool; // list of systematics std::vector<CP::SystematicSet> m_sysList; //MET tools...
code_fim
hard
{ "lang": "cpp", "repo": "zinon/HiggsAnalysis", "path": "/trunk/MainAnalysis/MainAnalysis/MainAnalysisIncludes.h", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> node = head->next; ComplexListNode *new_head = head->next; while (node) { ComplexListNode *new_node = node->next; node->next = new_node->next; if (new_node->next) new_node->next = new_node->next->next; } return new_head; }<|fim_prefix|>// repo: ...
code_fim
hard
{ "lang": "cpp", "repo": "Garrybest/coding-interviews", "path": "/src/q35.cpp", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_suffix|> node = head->next; while (node) { if (node->random) node->random = node->random->next; node = node->next->next; } node = head->next; ComplexListNode *new_head = head->next; while (node) { ComplexListNode *new_node = node->next; n...
code_fim
hard
{ "lang": "cpp", "repo": "Garrybest/coding-interviews", "path": "/src/q35.cpp", "mode": "spm", "license": "unknown", "source": "the-stack-v2" }
<|fim_prefix|>// repo: Garrybest/coding-interviews path: /src/q35.cpp /* * 复杂链表的复制 * @Author: garryfang * @Date: 2019-09-04 21:19:46 * @Last Modified by: garryfang * @Last Modified time: 2019-09-04 21:34:50 */ <|fim_suffix|>ComplexListNode *cloneNodes(ComplexListNode *head) { if (!head) return nul...
code_fim
medium
{ "lang": "cpp", "repo": "Garrybest/coding-interviews", "path": "/src/q35.cpp", "mode": "psm", "license": "unknown", "source": "the-stack-v2" }