Dataset Viewer
Auto-converted to Parquet Duplicate
hexsha
stringlengths
40
40
size
int64
140
1.03M
ext
stringclasses
94 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
663
max_stars_repo_name
stringlengths
4
120
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
663
max_issues_repo_name
stringlengths
4
120
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
663
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
140
1.03M
avg_line_length
float64
2.32
23.1k
max_line_length
int64
11
938k
alphanum_fraction
float64
0.01
1
score
float32
3
4.25
0c865092d1b024900a20974bf4805c2c027168ad
1,337
asm
Assembly
src/primes.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
src/primes.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
src/primes.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
; Calculate primes using the Sieve of Eratosthenes cpu 8086 bits 16 org 0x0100 table: equ 0x8000 table_size: equ 1000 jmp start %include 'library.inc' start: mov bx,table mov cx,table_size mov al,0 ; Initialize the memory in the table to zero .zero_loop: mov [bx],al ; ...
25.711538
93
0.615557
3.28125
284b2688717d354ae6e7444f223b3fae0698eee2
1,513
rb
Ruby
lib/cute_print/formatter.rb
wconrad/cute_print
9df8f056579324d329030ef0bd6621b3f0fa2aa8
[ "MIT" ]
2
2015-06-19T17:31:24.000Z
2017-09-27T19:44:50.000Z
lib/cute_print/formatter.rb
wconrad/cute_print
9df8f056579324d329030ef0bd6621b3f0fa2aa8
[ "MIT" ]
5
2015-02-25T20:51:57.000Z
2018-03-13T19:29:21.000Z
lib/cute_print/formatter.rb
wconrad/cute_print
9df8f056579324d329030ef0bd6621b3f0fa2aa8
[ "MIT" ]
null
null
null
require "pp" require "stringio" require_relative "format" require_relative "labeler" require_relative "location" require_relative "location_label" require_relative "source_label" require_relative "values" module CutePrint # @api private class Formatter def initialize(opts = {}) @method = opts.fetch(:me...
20.173333
64
0.611368
3.015625
0ce5d95f10a05417cb3b6fc154c24d7adc27cf45
1,877
py
Python
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
4
2017-11-11T18:16:22.000Z
2018-11-08T13:31:09.000Z
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
null
null
null
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
2
2019-09-04T12:28:58.000Z
2021-09-27T13:02:48.000Z
#!/usr/bin/env python """Calculate transformation matrices and broadcast transform from robot's base to head markers.""" import rospy import tf import math from PyKDL import Vector, Frame, Rotation if __name__ == '__main__': rospy.init_node('baxter_find_transformation') listener = tf.TransformListener() b...
39.93617
104
0.64731
3.140625
ade1192e66419a4f1a0f70babfae972e654e2cc0
13,712
lua
Lua
3DreamEngine/loader/dae.lua
sewbacca/3DreamEngine
d688b7d04fd7ffdbedaa55b0d26785e78304bbca
[ "MIT" ]
209
2019-04-01T20:58:05.000Z
2022-03-30T20:02:26.000Z
3DreamEngine/loader/dae.lua
sewbacca/3DreamEngine
d688b7d04fd7ffdbedaa55b0d26785e78304bbca
[ "MIT" ]
54
2019-03-30T23:58:34.000Z
2022-02-01T14:20:57.000Z
3DreamEngine/loader/dae.lua
sewbacca/3DreamEngine
d688b7d04fd7ffdbedaa55b0d26785e78304bbca
[ "MIT" ]
12
2019-03-31T09:50:25.000Z
2022-03-03T09:52:04.000Z
--[[ #dae - COLLADA --]] --load space seperated arrays as floats or as strings local function loadFloatArray(arr) local t = { } for w in arr:gmatch("%S+") do t[#t+1] = tonumber(w) end return t end local function loadArray(arr) local t = { } for w in arr:gmatch("%S+") do t[#t+1] = w end return t end --load...
26.573643
184
0.589192
3.296875
f024f2d1468cd63a89d1e5336dc2508a4542b04f
1,476
py
Python
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
1
2022-01-25T22:17:55.000Z
2022-01-25T22:17:55.000Z
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
null
null
null
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
null
null
null
class Stack: def __init__(self): self.array = [] self.top = -1 self.max = 100 def isEmpty(self): if(self.top == -1): return True else: return False def isFull(self): if(self.top == self.max -1): return True else: ...
20.219178
36
0.443767
3.5
2069a8783ef5257f23ae89a2c54877facee8a7e6
1,961
lua
Lua
lua/twilight/colors/init.lua
jzone1366/twilight.nvim
da72643da7b73745ce5b56dd79340446949acf7f
[ "MIT" ]
1
2022-03-14T23:15:29.000Z
2022-03-14T23:15:29.000Z
lua/twilight/colors/init.lua
jzone1366/twilight.nvim
da72643da7b73745ce5b56dd79340446949acf7f
[ "MIT" ]
1
2022-03-15T08:23:39.000Z
2022-03-15T14:31:22.000Z
lua/twilight/colors/init.lua
jzone1366/twilight.nvim
da72643da7b73745ce5b56dd79340446949acf7f
[ "MIT" ]
null
null
null
local M = {} M.styles = { "light", "dark", } -- Adds subtle and harsh colors depending if the colors are dark or light -- @param colors table -- @return table of colors local function construct(colors) colors.harsh = colors.meta.light and colors.black or colors.white colors.subtle = colors.meta.light and colors.w...
29.712121
87
0.720551
3.421875
43c9ae59a393ebfbeb768d3575fb36a4c0db3588
1,578
go
Go
storage/s3_func.go
OgreCase/kit
bebf00292e30262a2fc33b0c544e3e3de27194de
[ "Apache-2.0" ]
null
null
null
storage/s3_func.go
OgreCase/kit
bebf00292e30262a2fc33b0c544e3e3de27194de
[ "Apache-2.0" ]
null
null
null
storage/s3_func.go
OgreCase/kit
bebf00292e30262a2fc33b0c544e3e3de27194de
[ "Apache-2.0" ]
1
2022-01-10T09:13:38.000Z
2022-01-10T09:13:38.000Z
package storage import ( "bytes" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/globalsign/mgo/bson" "mime/multipart" "net/http" "path/filepath" ) func UploadFileToS3(s *session.Session, fileHeader *multipart.FileHeader) (string, erro...
32.204082
123
0.680608
3.140625
0cdcd31b1d541c0b2fc7fa87f9fe6a1fb877291b
4,997
py
Python
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
null
null
null
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
4
2018-02-15T12:32:26.000Z
2018-03-06T16:33:34.000Z
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
1
2018-03-13T19:38:54.000Z
2018-03-13T19:38:54.000Z
import json import logging from .errors import MaxRetriesExceededException, DecoratorApplyException MAX_ATTEMPTS = 6 class KinesisClient(object): def __init__(self, writer, reader): """ Writes and reads messages to and from Kinesis streams :param writer: handles writing of payloads to K...
39.346457
79
0.626976
3.34375
70b4a560218bd2b4ae7350c0aabd5d5072a724e9
2,089
go
Go
pkg/util/file/volatile_file/volatile_file.go
dizzy57/flow
cc1282eb8a54943686115a95468101835cdce481
[ "MIT" ]
null
null
null
pkg/util/file/volatile_file/volatile_file.go
dizzy57/flow
cc1282eb8a54943686115a95468101835cdce481
[ "MIT" ]
null
null
null
pkg/util/file/volatile_file/volatile_file.go
dizzy57/flow
cc1282eb8a54943686115a95468101835cdce481
[ "MIT" ]
null
null
null
package file import ( "fmt" "io/ioutil" "sync" log "github.com/sirupsen/logrus" event "github.com/awesome-flow/flow/pkg/util/file/event" "github.com/fsnotify/fsnotify" ) const ( VFPermDefault = 0644 ) type VolatileFile struct { path string once *sync.Once watcher *fsnotify.Watcher notify chan *ev...
20.281553
70
0.662518
3.03125
14992220885c7a8d417972337b8a383c2ae2eb5f
2,756
lua
Lua
Aetheri/aetheri/species/appearance.lua
cuteBoiButt/sb.StardustSuite
3c442c94192df257f46e08afc9f3ff8b5a6f2016
[ "MIT" ]
30
2016-09-17T21:28:00.000Z
2022-03-31T04:59:51.000Z
Aetheri/aetheri/species/appearance.lua
cuteBoiButt/sb.StardustSuite
3c442c94192df257f46e08afc9f3ff8b5a6f2016
[ "MIT" ]
22
2016-10-16T01:37:24.000Z
2021-11-29T20:47:52.000Z
Aetheri/aetheri/species/appearance.lua
cuteBoiButt/sb.StardustSuite
3c442c94192df257f46e08afc9f3ff8b5a6f2016
[ "MIT" ]
14
2016-12-17T18:59:03.000Z
2022-03-03T00:58:22.000Z
-- handles all appearance and animation apart from the HUD require "/lib/stardust/color.lua" appearance = { baseDirectives = "", } local bodyReplacePalette = { "dafafafa", "caeaeafa", "badadafa", "aacacafa" } local function generatePalette(tbl) local hue = tbl[1] local sat = tbl[2] local lumBright = tbl[3...
35.333333
177
0.714078
3.125
74d046024ccef2a8077c21d99f32704efcf988c9
6,818
js
JavaScript
myqq-webapp/src/views/Login/index.js
WHUT-XGP/chat-webapp
53eba4e223411ca5b988857c56a38cc962d3c27e
[ "MIT" ]
23
2020-12-25T08:39:11.000Z
2022-03-23T07:12:23.000Z
myqq-webapp/src/views/Login/index.js
WHUT-XGP/chat-webapp
53eba4e223411ca5b988857c56a38cc962d3c27e
[ "MIT" ]
1
2022-01-02T14:31:28.000Z
2022-01-02T14:31:28.000Z
myqq-webapp/src/views/Login/index.js
WHUT-XGP/chat-webapp
53eba4e223411ca5b988857c56a38cc962d3c27e
[ "MIT" ]
null
null
null
import React, { useState, useEffect, useCallback } from 'react' import { connect } from 'react-redux' // 导入store相关 import { actionCreator } from './store' // 导入CSS import { LoginStyle } from './style' // 导入组件 import Icon from '../../components/context/Icon' import LoginInput from '../../components/common/LoginInput' im...
35.510417
236
0.512174
3.078125
0be4094ec9c88b491ea00f03e9587e97033d9ed4
5,404
js
JavaScript
src/app/main/registros/Registros.js
lucianoarmoa98/indufar_prospeccion_medica-campos-recetas-main
bb075c325597be524f58a74f5a8ae6a9ba59291c
[ "MIT" ]
null
null
null
src/app/main/registros/Registros.js
lucianoarmoa98/indufar_prospeccion_medica-campos-recetas-main
bb075c325597be524f58a74f5a8ae6a9ba59291c
[ "MIT" ]
null
null
null
src/app/main/registros/Registros.js
lucianoarmoa98/indufar_prospeccion_medica-campos-recetas-main
bb075c325597be524f58a74f5a8ae6a9ba59291c
[ "MIT" ]
null
null
null
// React y Redux. import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as registrosActions from './store/actions'; // Material UI. import MaterialTable, {MTableToolbar} from 'material-table-hotfix-initial-page-remote-data'; // Otros. import {FusePageSimple} ...
33.358025
92
0.477979
3
f51ea74045d5aa8e7f16bc66c89fef08f2dc1661
677
lua
Lua
plugin/src/FormatScript/Vendor/Llama/List/zip.lua
howmanysmall/StyluaPlugin
a5f10432a82f68f2d746723007638e6240f759e9
[ "MIT" ]
null
null
null
plugin/src/FormatScript/Vendor/Llama/List/zip.lua
howmanysmall/StyluaPlugin
a5f10432a82f68f2d746723007638e6240f759e9
[ "MIT" ]
null
null
null
plugin/src/FormatScript/Vendor/Llama/List/zip.lua
howmanysmall/StyluaPlugin
a5f10432a82f68f2d746723007638e6240f759e9
[ "MIT" ]
null
null
null
local Debug = require(script.Parent.Parent.Parent.Debug) local Typer = require(script.Parent.Parent.Parent.Typer) local Debug_Assert = Debug.Assert local Typer_Array = Typer.Array local function zip(...) local new = {} local argCount = select("#", ...) if argCount <= 0 then return new end local firstList = D...
17.358974
60
0.661743
3.09375
e8e12c70a26b28e73712420fd03691434cb4267c
13,354
py
Python
adversarial-transfer-nlp/CW_attack.py
AI-secure/Uncovering-the-Connections-BetweenAdversarial-Transferability-and-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
8
2021-06-18T10:32:27.000Z
2022-01-16T06:46:25.000Z
adversarial-transfer-nlp/CW_attack.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
2
2021-08-25T15:14:12.000Z
2022-02-09T23:55:46.000Z
adversarial-transfer-nlp/CW_attack.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
null
null
null
import sys import torch import numpy as np from torch import optim from util import args class CarliniL2: def __init__(self, targeted=True, search_steps=None, max_steps=None, cuda=True, debug=False, num_classes=14): self.debug = debug self.targeted = targeted self.num_classes = num_class...
44.962963
126
0.543582
3.03125
85963afcca8eca6c1bb7832716a10d2260d05acc
1,474
js
JavaScript
client/src/components/utils/InfiniteScroll.js
palaumarc/flickr_gallery
e6a194955016fa696610176c897aca1f88ab7acd
[ "MIT" ]
null
null
null
client/src/components/utils/InfiniteScroll.js
palaumarc/flickr_gallery
e6a194955016fa696610176c897aca1f88ab7acd
[ "MIT" ]
null
null
null
client/src/components/utils/InfiniteScroll.js
palaumarc/flickr_gallery
e6a194955016fa696610176c897aca1f88ab7acd
[ "MIT" ]
null
null
null
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import Spin from './Spin'; class InfiniteScroll extends Component { static propTypes = { loadMore: PropTypes.func.isRequired, hasMore: PropTypes.bool } static defaultProps = { hasMore: true } state =...
24.163934
110
0.630258
3.265625
a8dbe5bd998d90d98e3c8c88c85874a068d84095
5,205
rs
Rust
rs/replicated_state/src/page_map/tests.rs
audieleon/ic
35dd8f93dec82662ed4df35664a9c0be6dbf203a
[ "Apache-2.0" ]
1
2021-07-20T21:44:44.000Z
2021-07-20T21:44:44.000Z
rs/replicated_state/src/page_map/tests.rs
AmoretAaron/ic
d9202bc7f6d16b2777d4e092ee1b7ad5899aae2b
[ "Apache-2.0" ]
null
null
null
rs/replicated_state/src/page_map/tests.rs
AmoretAaron/ic
d9202bc7f6d16b2777d4e092ee1b7ad5899aae2b
[ "Apache-2.0" ]
1
2022-01-13T13:37:41.000Z
2022-01-13T13:37:41.000Z
use super::{allocate_pages, checkpoint::Checkpoint, Buffer, PageDelta, PageIndex, PageMap}; use ic_sys::PAGE_SIZE; use std::fs::OpenOptions; #[test] fn can_debug_display_a_page_map() { let page_map = PageMap::new(); assert_eq!(format!("{:?}", page_map), "{}"); } #[test] fn can_create_an_empty_checkpoint() { ...
27.68617
99
0.578866
3.09375
71e68956d75edcf9698c155dfeb03a06cc6ecaee
1,472
kt
Kotlin
modules/drawing/src/main/kotlin/silentorb/mythic/drawing/drawText.kt
silentorb/mythic-kotlin
74462fcba9e7805dddec1bfcb3431665df7d0dee
[ "MIT" ]
1
2020-06-24T02:01:23.000Z
2020-06-24T02:01:23.000Z
modules/drawing/src/main/kotlin/silentorb/mythic/drawing/drawText.kt
silentorb/mythic-kotlin
74462fcba9e7805dddec1bfcb3431665df7d0dee
[ "MIT" ]
5
2019-12-24T17:14:43.000Z
2021-01-26T22:33:47.000Z
modules/drawing/src/main/kotlin/silentorb/mythic/drawing/drawText.kt
silentorb/mythic-kotlin
74462fcba9e7805dddec1bfcb3431665df7d0dee
[ "MIT" ]
null
null
null
package silentorb.mythic.drawing import silentorb.mythic.glowing.DrawMethod import silentorb.mythic.glowing.VertexSchema import silentorb.mythic.glowing.globalState import silentorb.mythic.spatial.Matrix import silentorb.mythic.spatial.Vector2 import silentorb.mythic.typography.TextConfiguration import silentorb.mythi...
36.8
119
0.796196
3.109375
f6743e007e18ef6144696c5a28916071fb960531
1,915
kt
Kotlin
src/main/kotlin/ui/util/swing/Tables.kt
marshallbrain/pulsar-java
fed43a0164421b27056045446f07982e0313452d
[ "MIT" ]
null
null
null
src/main/kotlin/ui/util/swing/Tables.kt
marshallbrain/pulsar-java
fed43a0164421b27056045446f07982e0313452d
[ "MIT" ]
null
null
null
src/main/kotlin/ui/util/swing/Tables.kt
marshallbrain/pulsar-java
fed43a0164421b27056045446f07982e0313452d
[ "MIT" ]
null
null
null
package ui.util.swing import java.awt.Dimension import javax.swing.BorderFactory import javax.swing.JScrollPane import javax.swing.JTable import javax.swing.ListSelectionModel import javax.swing.border.Border import javax.swing.table.DefaultTableModel fun createScrollTable( table: JTable, maxVisibleRows: Int = tabl...
23.641975
77
0.746214
3.140625
124f49977e548fd065352dda1813f453f87675ba
5,700
h
C
src/backgroundprocess/app.h
Skycoder42/QBackgroundProcess
9681aa736729ce1b7985e8664e0f05729235e0c4
[ "BSD-3-Clause" ]
10
2017-08-17T16:34:03.000Z
2021-02-16T17:42:30.000Z
src/backgroundprocess/app.h
Skycoder42/QBackgroundProcess
9681aa736729ce1b7985e8664e0f05729235e0c4
[ "BSD-3-Clause" ]
null
null
null
src/backgroundprocess/app.h
Skycoder42/QBackgroundProcess
9681aa736729ce1b7985e8664e0f05729235e0c4
[ "BSD-3-Clause" ]
4
2018-08-27T06:15:11.000Z
2021-03-08T10:10:34.000Z
#ifndef QTBACKGROUNDPROCESS_APP_H #define QTBACKGROUNDPROCESS_APP_H #include "QtBackgroundProcess/qtbackgroundprocess_global.h" #include <QtCore/qcommandlineparser.h> #include <QtCore/qcoreapplication.h> #include <QtCore/qexception.h> #include <functional> //! The Namespace containing all classes of the QtBackgroun...
41.605839
105
0.792982
3.140625
f037e3032ce0ce519e6e32edcbecb11a4130e35e
1,595
js
JavaScript
www/js/search_worker.js
xqqy/myfuzhong
25e7f6e79b65a4e2c550f4b8d43a35f5030fcf1b
[ "Apache-2.0" ]
1
2018-01-27T15:48:01.000Z
2018-01-27T15:48:01.000Z
www/js/search_worker.js
xqqy/myfuzhong
25e7f6e79b65a4e2c550f4b8d43a35f5030fcf1b
[ "Apache-2.0" ]
null
null
null
www/js/search_worker.js
xqqy/myfuzhong
25e7f6e79b65a4e2c550f4b8d43a35f5030fcf1b
[ "Apache-2.0" ]
null
null
null
var list,all; function dialogAlert(message, title, buttonname, callback) { //通知服务 title = title || "错误"; buttonname = buttonname || "确定"; callback = callback || function () { return; } if(navigator.notification){ navigator.notification.alert(message, callback, title, buttonname); ...
29
136
0.485893
3.140625
0bc6ef3ed241becc1afee395cbae4a3b843d3a02
1,342
js
JavaScript
app/components/layout/Header.js
yarikgenza/trello
a95f9418757aedd696ee24ee9c4be4fd4ab01a67
[ "MIT" ]
1
2017-01-07T23:57:15.000Z
2017-01-07T23:57:15.000Z
app/components/layout/Header.js
yarikgenza/trello
a95f9418757aedd696ee24ee9c4be4fd4ab01a67
[ "MIT" ]
null
null
null
app/components/layout/Header.js
yarikgenza/trello
a95f9418757aedd696ee24ee9c4be4fd4ab01a67
[ "MIT" ]
null
null
null
import React, {Component} from 'react'; import {Button} from 'react-bootstrap'; export default class Header extends Component { constructor() { super(); this.state = { text: '' } } componentDidMount() { const token = localStorage.getItem('token'); const {text} = this.state; if (t...
20.333333
81
0.481371
3.046875
11c17cffca45808b3ff136341eb793f249307f98
2,384
rs
Rust
src/pointer.rs
sim82/game1
e4cd03c91421dea3234eaf7b4f9fabbae30312be
[ "MIT" ]
null
null
null
src/pointer.rs
sim82/game1
e4cd03c91421dea3234eaf7b4f9fabbae30312be
[ "MIT" ]
null
null
null
src/pointer.rs
sim82/game1
e4cd03c91421dea3234eaf7b4f9fabbae30312be
[ "MIT" ]
null
null
null
use bevy::{ input::mouse::{MouseButtonInput, MouseMotion}, prelude::*, }; pub struct MouseGrabState { pub shall_grab: bool, known_state: bool, } fn mouse_grab_system( mut grab_state: ResMut<MouseGrabState>, mut windows: ResMut<Windows>, keyboard_input: Res<Input<KeyCode>>, ) { let updat...
26.786517
74
0.630453
3.078125
18bf1a0139d71e8ef2b676cb4ba44ba527cc0964
1,872
sql
SQL
Behavior_Analysis_Setup/StudentTimeAndPoints.sql
bbrub49/SQL-Code-Examples
8c4be22f31e52b906d324174a93486a1ace0c4eb
[ "MIT" ]
null
null
null
Behavior_Analysis_Setup/StudentTimeAndPoints.sql
bbrub49/SQL-Code-Examples
8c4be22f31e52b906d324174a93486a1ace0c4eb
[ "MIT" ]
null
null
null
Behavior_Analysis_Setup/StudentTimeAndPoints.sql
bbrub49/SQL-Code-Examples
8c4be22f31e52b906d324174a93486a1ace0c4eb
[ "MIT" ]
null
null
null
/* * Establishes the reason and minutes a student is absent * if the absence is excused in order to remove those * minutes from the students total time and total points * possible to earn that day */ DECLARE @yeartype as varchar(15) SET @yeartype = (SELECT [Type] FROM NSSEOPulse.dbo.ZM_TEST_BB_SchoolYear WHERE...
42.545455
143
0.76015
3.203125
f07411bf6835efa66845aedc9d0915e9f4597ba2
1,138
py
Python
UnitTests/FullAtomModel/CoordsTransform/test_forward.py
johahi/TorchProteinLibrary
b1fc9faa9b51c4550e5f754d075766ba38e0f8a0
[ "MIT" ]
null
null
null
UnitTests/FullAtomModel/CoordsTransform/test_forward.py
johahi/TorchProteinLibrary
b1fc9faa9b51c4550e5f754d075766ba38e0f8a0
[ "MIT" ]
null
null
null
UnitTests/FullAtomModel/CoordsTransform/test_forward.py
johahi/TorchProteinLibrary
b1fc9faa9b51c4550e5f754d075766ba38e0f8a0
[ "MIT" ]
null
null
null
import sys import os import torch import numpy as np from TorchProteinLibrary.FullAtomModel.CoordsTransform import CoordsTranslate, getRandomTranslation, getBBox, CoordsRotate, getRandomRotation from TorchProteinLibrary.FullAtomModel import Angles2Coords, Coords2TypedCoords def test_translation(coords, num_atoms): tr...
25.863636
141
0.748682
3.203125
a179af87613d1e41c4a92bf0b289fa58d5086d23
2,360
go
Go
server/server.go
asommer70/evergreeen-new-releases
ebf1a02a2b199d68a138ad4b5e3b76ae63aa272a
[ "MIT" ]
null
null
null
server/server.go
asommer70/evergreeen-new-releases
ebf1a02a2b199d68a138ad4b5e3b76ae63aa272a
[ "MIT" ]
null
null
null
server/server.go
asommer70/evergreeen-new-releases
ebf1a02a2b199d68a138ad4b5e3b76ae63aa272a
[ "MIT" ]
null
null
null
package main import ( "fmt" "github.com/anaskhan96/soup" "net/http" //"io/ioutil" "encoding/json" "os" "strconv" "strings" "time" ) type TitleSearchResult struct { Query string Results []TitleResult } type TitleResult struct { Name, Description, Url []string } func main() { // titles := getSearchPage()...
23.6
327
0.665254
3.09375
20f45f70e14928808cae9d38bd843ce4c03dd39d
2,739
lua
Lua
rot/rot/noise/simplex.lua
LJNIC/Collaborogue
9c333e790f043087045d9236ccde0e496ebfc96b
[ "MIT" ]
4
2020-11-09T23:33:48.000Z
2021-04-19T23:14:50.000Z
rot/rot/noise/simplex.lua
LJNIC/Collaborogue
9c333e790f043087045d9236ccde0e496ebfc96b
[ "MIT" ]
1
2021-11-13T15:53:53.000Z
2021-11-13T15:53:53.000Z
rot/rot/noise/simplex.lua
LJNIC/Collaborogue
9c333e790f043087045d9236ccde0e496ebfc96b
[ "MIT" ]
2
2021-11-11T03:25:30.000Z
2022-02-13T13:05:00.000Z
--- Simplex Noise Generator. -- Based on a simple 2d implementation of simplex noise by Ondrej Zara -- Which is based on a speed-improved simplex noise algorithm for 2D, 3D and 4D in Java. -- Which is based on example code by Stefan Gustavson (stegu@itn.liu.se). -- With Optimisations by Peter Eastman (peastman@drizzle....
25.12844
88
0.586345
3.328125
330bc2029c1246f778fe532317958ef2c30db80a
10,719
py
Python
touca/_case.py
trytouca/touca-python
dab4bb6760a173952b63ea14fd4bc30c3877744e
[ "Apache-2.0" ]
11
2021-06-29T04:51:28.000Z
2022-03-22T05:58:44.000Z
touca/_case.py
trytouca/touca-python
dab4bb6760a173952b63ea14fd4bc30c3877744e
[ "Apache-2.0" ]
null
null
null
touca/_case.py
trytouca/touca-python
dab4bb6760a173952b63ea14fd4bc30c3877744e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Touca, Inc. Subject to Apache-2.0 License. from ._types import IntegerType, VectorType, ToucaType from datetime import datetime, timedelta from enum import Enum from typing import Dict, Tuple class ResultCategory(Enum): """ """ Check = 1 Assert = 2 class ResultEntry: """ Wrapp...
35.376238
88
0.612184
3.21875
198f09ec70a864f74973126efad673b62438636e
2,138
lua
Lua
gateway/src/apicast/loader.lua
SpillChek2/apicast
55011497b6a2badd1ca1097c4d5221a842d80faf
[ "Apache-2.0" ]
null
null
null
gateway/src/apicast/loader.lua
SpillChek2/apicast
55011497b6a2badd1ca1097c4d5221a842d80faf
[ "Apache-2.0" ]
null
null
null
gateway/src/apicast/loader.lua
SpillChek2/apicast
55011497b6a2badd1ca1097c4d5221a842d80faf
[ "Apache-2.0" ]
1
2018-04-09T08:45:39.000Z
2018-04-09T08:45:39.000Z
--- APIcast source loader -- Loading this module will add a new source code loaders to package.searchers. -- The searcher is going to print deprecation warnings when apicast source is loaded -- through old or non prefixed paths. -- We can rename files and set up an alias here so we don't break customer's code and -- pr...
26.073171
111
0.717025
3.125
85cb68d2f275c7ab63531b3fa937fa3e509ed2a7
1,258
c
C
sdk/openrtos/boot/fa626/lcd_clear.c
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
1
2021-10-09T08:05:50.000Z
2021-10-09T08:05:50.000Z
sdk/openrtos/boot/fa626/lcd_clear.c
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
null
null
null
sdk/openrtos/boot/fa626/lcd_clear.c
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
null
null
null
#include "ite/ith.h" #define REMAP_ADDR 0x80000000 // _start is default function name of entry point. void _start(void) { uint32_t* ptr; uint32_t size; uint32_t color, i; asm volatile("mcr p15, 0, %0, c7, c14, 0" : : "r"(0)); // clean and invalidate D-Cache all asm volatile("mcr p15, 0, %0, c7,...
26.208333
125
0.556439
3.078125
0cc14f945ff11b1ec78d14d582d03623e82355fd
4,657
py
Python
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
5
2021-01-05T23:16:55.000Z
2021-07-23T12:26:06.000Z
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
null
null
null
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
1
2021-02-22T08:31:05.000Z
2021-02-22T08:31:05.000Z
import torch from shape_utils import Shape, load_shape_pair, scatter_shape_pair from torch_geometric.nn import knn from param import * from arap_potential import arap_vert def load_multiscale_shapes(folder_path, file_name, scales, offset=0.5*torch.ones([3], device=device, dtype=torch.float32)): """Like 'load_shap...
33.503597
126
0.665235
3.34375
f05bdaed59cf5073cab62db01710a16ba5ff7771
7,597
py
Python
app/views.py
PaulMurrayCbr/GameNight
838c19dda765027abbe8e12e331268b01cb859c2
[ "Unlicense" ]
null
null
null
app/views.py
PaulMurrayCbr/GameNight
838c19dda765027abbe8e12e331268b01cb859c2
[ "Unlicense" ]
null
null
null
app/views.py
PaulMurrayCbr/GameNight
838c19dda765027abbe8e12e331268b01cb859c2
[ "Unlicense" ]
null
null
null
from app import app, db from flask import render_template, flash, redirect, get_flashed_messages import forms import models import Character from flask.globals import request from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound def menugear() : return { 'pcs': models.Character.query.all() } @a...
26.939716
94
0.612874
3.03125
e73fffbbf34519bd85db2a58a307b41246e8a610
1,101
js
JavaScript
src/0648.replace-words.648/0648.replace-words.648.js
jiangshanmeta/meta
8f9d084cda91988d42208ac7a029612e9edc693b
[ "MIT" ]
221
2018-10-26T07:05:12.000Z
2022-03-30T03:23:10.000Z
src/0648.replace-words.648/0648.replace-words.648.js
ralap18/meta
82d660a6eabb15e398a7dcc2a0fa99342143bb12
[ "MIT" ]
23
2018-09-24T14:50:58.000Z
2020-09-17T14:23:45.000Z
src/0648.replace-words.648/0648.replace-words.648.js
ralap18/meta
82d660a6eabb15e398a7dcc2a0fa99342143bb12
[ "MIT" ]
45
2019-03-29T03:36:19.000Z
2022-03-25T20:57:13.000Z
/** * @param {string[]} dict * @param {string} sentence * @return {string} */ // 前缀树 function findRoot (trie, string) { const list = []; for (let i = 0; i < string.length; i++) { if (!trie) { break; } list.push(string[i]); trie = trie[string[i]]; } return...
26.214286
65
0.482289
3.234375
7a97019e955f84d6270a6a63776af848923fd024
2,666
rs
Rust
engine/src/math/vector4.rs
monadgroup/re19
80989ebf8ae2a3e203a443e583a7f359f0114333
[ "Apache-2.0" ]
47
2021-10-04T13:51:31.000Z
2022-03-27T17:23:50.000Z
engine/src/math/vector4.rs
monadgroup/re19
80989ebf8ae2a3e203a443e583a7f359f0114333
[ "Apache-2.0" ]
null
null
null
engine/src/math/vector4.rs
monadgroup/re19
80989ebf8ae2a3e203a443e583a7f359f0114333
[ "Apache-2.0" ]
null
null
null
use super::{Float, Vector3}; use core::ops; #[derive(Clone, Copy, PartialEq, PartialOrd, Default, Debug)] #[repr(C)] pub struct Vector4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, } impl Vector4 { pub fn with_x(self, x: f32) -> Self { Vector4 { x, ..self } } pub fn with_y(se...
19.895522
81
0.445236
3.078125
7541b62a34467e2119df5125dde81063db36ce24
2,467
rs
Rust
core/src/eval/arithmetic.rs
contractshark/rust-cevm
35cdefb760d41197ccfadc8c446343f20eba9080
[ "Apache-2.0" ]
47
2020-08-01T19:50:19.000Z
2022-03-29T16:23:40.000Z
core/src/eval/arithmetic.rs
gakonst/rust-cevm
35cdefb760d41197ccfadc8c446343f20eba9080
[ "Apache-2.0" ]
null
null
null
core/src/eval/arithmetic.rs
gakonst/rust-cevm
35cdefb760d41197ccfadc8c446343f20eba9080
[ "Apache-2.0" ]
4
2020-12-30T06:43:30.000Z
2021-09-08T11:41:14.000Z
use crate::utils::I256; use core::convert::TryInto; use core::ops::Rem; use primitive_types::{U256, U512}; pub fn div(op1: U256, op2: U256) -> U256 { if op2 == U256::zero() { U256::zero() } else { op1 / op2 } } pub fn sdiv(op1: U256, op2: U256) -> U256 { let op1: I256 = op1.into(); ...
23.495238
87
0.478719
3.21875
7f1887ad8207d20aadee5914b8aa3df9a823555d
5,156
go
Go
request/queue.go
KillianMeersman/wander
e8fab5fd01aad4be4cf835a6c6447e2491a51bc1
[ "MIT" ]
null
null
null
request/queue.go
KillianMeersman/wander
e8fab5fd01aad4be4cf835a6c6447e2491a51bc1
[ "MIT" ]
null
null
null
request/queue.go
KillianMeersman/wander
e8fab5fd01aad4be4cf835a6c6447e2491a51bc1
[ "MIT" ]
null
null
null
package request import ( "fmt" "io" "sync" ) type QueueResult struct { Error error Request *Request } // Queue is a prioritized FIFO queue for requests type Queue interface { io.Closer // Enqueue adds the request to the queue, returns an error if no more space is available. Enqueue(req *Request, priority i...
21.663866
100
0.662917
3.328125
b4e0e572c835c484c0f44eb853b3fc2721f8cb63
1,033
kt
Kotlin
roboquant-core/test/feeds/TestFeedTest.kt
jetonbacaj/roboquant
11136be3cb62870532dc7e1888c5ea88ba17bcab
[ "Apache-2.0" ]
null
null
null
roboquant-core/test/feeds/TestFeedTest.kt
jetonbacaj/roboquant
11136be3cb62870532dc7e1888c5ea88ba17bcab
[ "Apache-2.0" ]
null
null
null
roboquant-core/test/feeds/TestFeedTest.kt
jetonbacaj/roboquant
11136be3cb62870532dc7e1888c5ea88ba17bcab
[ "Apache-2.0" ]
null
null
null
package org.roboquant.feeds import kotlinx.coroutines.* import org.junit.Test import kotlin.test.* import org.roboquant.TestData import org.roboquant.common.Background import org.roboquant.common.TimeFrame import org.roboquant.feeds.test.TestFeed fun play(feed:Feed, timeFrame: TimeFrame = TimeFrame.FULL): EventChanne...
23.477273
81
0.631171
3.140625
af6f779fbe9f9d336e37d83d5ee4446277505939
1,614
rb
Ruby
features/step_definitions/work_unit_steps.rb
AdGitHub2023/xrono
1cdaebe285ee6115e948c7c0a43f34e2393d4b4a
[ "MIT" ]
11
2015-03-16T14:45:03.000Z
2019-02-09T08:03:41.000Z
features/step_definitions/work_unit_steps.rb
AdGitHub2023/xrono
1cdaebe285ee6115e948c7c0a43f34e2393d4b4a
[ "MIT" ]
3
2015-03-11T21:29:36.000Z
2018-06-26T17:38:05.000Z
features/step_definitions/work_unit_steps.rb
AdGitHub2023/xrono
1cdaebe285ee6115e948c7c0a43f34e2393d4b4a
[ "MIT" ]
2
2015-12-13T17:33:51.000Z
2019-07-21T20:20:18.000Z
Given /^I have (?:a|an) "([^\"]*)" work unit scheduled today for "([^\"]*)" hours$/ do |hours_type, hours| WorkUnit.make(:hours_type => hours_type, :scheduled_at => Date.current, :user => @current_user, :hours => hours) end Then /^I should see the following work_units:$/ do |expected_work_units_table| expected_wor...
40.35
121
0.703222
3.0625
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
23