added stringdate 2024-11-18 17:59:49 2024-11-19 03:44:43 | created int64 0 2,086B | id stringlengths 40 40 | int_score int64 2 5 | metadata dict | score float64 2.31 5.5 | source stringclasses 1
value | text stringlengths 258 23.4k | num_lines int64 16 649 | avg_line_length float64 15 61 | max_line_length int64 31 179 | ast_depth int64 8 40 | length int64 101 3.8k | lang stringclasses 1
value | sast_codeql_findings stringlengths 2 265k | sast_codeql_findings_count int64 0 45 | sast_codeql_success bool 1
class | sast_codeql_error stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2024-11-19T02:07:23.278965+00:00 | 1,564,018,274,000 | 9cde0dd579b40846a087029e32dc8bd516e245b0 | 4 | {
"blob_id": "9cde0dd579b40846a087029e32dc8bd516e245b0",
"branch_name": "refs/heads/master",
"committer_date": 1564018274000,
"content_id": "c903ffe3bbfb4ab35a28c91d0824986a68298b74",
"detected_licenses": [
"MIT"
],
"directory_id": "ae7a59e6bb2d2406741e326e2b472609c9fe23e9",
"extension": "py",
"fi... | 4.09375 | stackv2 | """
Model of the memory unit of the Neural Virtual Machine (NVM).
The unit is made up of two components:
1. Registers
2. Memory space
Registers contain a vocabulary that is used to create pointers into the memory
space, and to create labeled connections between memory states. In turn,
memory states ca... | 161 | 28.32 | 80 | 16 | 1,088 | python | [] | 0 | true | |
2024-11-19T02:07:23.513091+00:00 | 1,553,250,369,000 | 2e8e169655bcc4982afbe6e25b2f2c57647c3329 | 3 | {
"blob_id": "2e8e169655bcc4982afbe6e25b2f2c57647c3329",
"branch_name": "refs/heads/master",
"committer_date": 1553250369000,
"content_id": "97073c4d8a1fa6075b016067177eb65113c4cbd4",
"detected_licenses": [
"MIT"
],
"directory_id": "ec4df4550c59dfd9cbd1becd71d20508da779f88",
"extension": "py",
"fi... | 2.6875 | stackv2 | import cv2 as cv
import numpy as np
import matplotlib.pyplot as plt
def apply_brightness_contrast(input_img, brightness = 0, contrast = 0):
if brightness != 0:
if brightness > 0:
shadow = brightness
highlight = 255
else:
shadow = 0
highlight = 255 + ... | 65 | 24.14 | 79 | 13 | 523 | python | [] | 0 | true | |
2024-11-19T02:07:23.646206+00:00 | 1,632,241,562,000 | 373161d64b0f2afbb42d6719f5669991a074a576 | 2 | {
"blob_id": "373161d64b0f2afbb42d6719f5669991a074a576",
"branch_name": "refs/heads/main",
"committer_date": 1632241562000,
"content_id": "7c58bd298f3a534d488a4b4f9043c99e58401df0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3caf41bf0c9335a5682bcfaadf1e74711e1d289e",
"extension": "py",
... | 2.46875 | stackv2 | '''
Implements neural model of the BiLSTM sequence tagger component.
'''
import spacy
from typing import List
from thinc.api import Model, chain, TensorFlowWrapper, PyTorchLSTM, LSTM
from thinc.layers import list2padded, list2array, with_padded, Softmax, with_list, with_debug
from thinc.api import strings2arrays, wit... | 87 | 44.56 | 103 | 14 | 1,067 | python | [] | 0 | true | |
2024-11-19T02:07:23.704057+00:00 | 1,555,607,516,000 | f85be664a0d1edf5fa4fc0c7871a9274431f9001 | 4 | {
"blob_id": "f85be664a0d1edf5fa4fc0c7871a9274431f9001",
"branch_name": "refs/heads/master",
"committer_date": 1555607516000,
"content_id": "a20bd7aff53b8ac8ca4414540b8c6e32c80d202c",
"detected_licenses": [
"MIT"
],
"directory_id": "fd244225c3d82b4e02c5b58b5589d49c1ed5a9ed",
"extension": "py",
"fi... | 3.65625 | stackv2 | # --------------
#Code starts here
def palindrome(num):
" function that calculates the next palindrome "
num += 1
while(True):
string = str(num)
flag = 0
for i in range(len(string)):
if(string[i] != string[len(string) - i - 1]):
flag = 1
... | 137 | 17.49 | 70 | 16 | 692 | python | [] | 0 | true | |
2024-11-19T02:07:23.817681+00:00 | 1,593,420,898,000 | 88834c1931913d0e6f77dd10ab1cd873bf7f20d8 | 3 | {
"blob_id": "88834c1931913d0e6f77dd10ab1cd873bf7f20d8",
"branch_name": "refs/heads/master",
"committer_date": 1593420898000,
"content_id": "0829118f934329a0e534a05fb6c78760645d0199",
"detected_licenses": [
"MIT"
],
"directory_id": "934228b4eb46f56115d34dcaa2f664271d394c1a",
"extension": "py",
"fi... | 2.5625 | stackv2 | # coding=utf-8
from database_functions import check_notify
def handle_bot_not_admin(bot, chat_id):
bot_is_admin = False
for _ in bot.get_chat_administrators(chat_id):
if _.user.username == bot.username:
bot_is_admin = True # error was raised because no modification occurs
notify = ch... | 35 | 46.66 | 87 | 12 | 371 | python | [] | 0 | true | |
2024-11-19T02:07:23.939762+00:00 | 1,563,675,133,000 | ee6f1c79f1025c45dae9168c820c5898d4571bd2 | 3 | {
"blob_id": "ee6f1c79f1025c45dae9168c820c5898d4571bd2",
"branch_name": "refs/heads/master",
"committer_date": 1563675133000,
"content_id": "5d41ec10057a2af9f63c5ddbe23cd4a8bfd4baee",
"detected_licenses": [
"MIT"
],
"directory_id": "59b7f5344b264ba25c2dea5f42a969848a76ab2b",
"extension": "py",
"fi... | 3.03125 | stackv2 | import random
N = 10000
na = nb = 0
b = list(range(3))
for i in range(N):
# init
a = [0]*3
a[random.randint(0, 2)] = 1
# first choose
valid_choice = b[:]
first_index = random.randint(0, 2)
valid_choice.remove(first_index)
for j in valid_choice:
if(a[j] == 1):
valid_ch... | 26 | 24.73 | 65 | 13 | 202 | python | [] | 0 | true | |
2024-11-19T02:07:24.032503+00:00 | 1,617,282,853,000 | cc8361dff6bf183acfa06d796757832ba3ce0d16 | 4 | {
"blob_id": "cc8361dff6bf183acfa06d796757832ba3ce0d16",
"branch_name": "refs/heads/main",
"committer_date": 1617282853000,
"content_id": "14f3985edb2e92d0bff62f85742477d33d43e8ff",
"detected_licenses": [
"MIT"
],
"directory_id": "8f0601ecf39fce673e8a969df8bf8b42fa407e75",
"extension": "py",
"file... | 3.5625 | stackv2 | '''
Средний балл по классам
'''
def midScore():
sum_nine = 0
c_nine = 0
sum_ten = 0
c_ten = 0
sum_eleven = 0
c_eleven = 0
with open('input.txt', 'r', encoding='utf-8') as file:
for line in file:
arr = line.split()
score = int(arr[3])
sClass = int... | 29 | 23.28 | 70 | 13 | 213 | python | [] | 0 | true | |
2024-11-19T02:07:24.132594+00:00 | 1,549,509,908,000 | 3b802fc24e0268dd6e4189f4e7f0c31aa61f78b0 | 3 | {
"blob_id": "3b802fc24e0268dd6e4189f4e7f0c31aa61f78b0",
"branch_name": "refs/heads/master",
"committer_date": 1549509908000,
"content_id": "626816db0f1b0e8e8c9c44a6277b3139d591f91f",
"detected_licenses": [
"MIT"
],
"directory_id": "5fd6127c55a4306b2adbb5cc33dea8a945a16e2d",
"extension": "py",
"fi... | 2.703125 | stackv2 | import keras
from keras.models import Sequential, Model, model_from_json
from keras.layers import Dense, Activation, Conv2D, MaxPooling2D, Dropout, Flatten, Input, LeakyReLU
from keras.regularizers import l2
from keras.callbacks import ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
import keras.backend as K
from hel... | 95 | 34.15 | 104 | 12 | 907 | python | [] | 0 | true | |
2024-11-19T02:07:24.189406+00:00 | 1,590,787,989,000 | 5ad79f1e124d0be07c7d57c0356e2c7fb5897c86 | 2 | {
"blob_id": "5ad79f1e124d0be07c7d57c0356e2c7fb5897c86",
"branch_name": "refs/heads/master",
"committer_date": 1590787989000,
"content_id": "0a54ee25551dc43e11aa0027f01b9a68395b7e3d",
"detected_licenses": [
"MIT"
],
"directory_id": "7f18b6df7d93322f5dfc4783f314171f1ce3196f",
"extension": "py",
"fi... | 2.359375 | stackv2 | import os
import argparse
import os.path as osp
import numpy as np
from data_utils.kitti_util import Calibration, load_velo_scan, load_image
from data_utils.kitti_object import get_lidar_in_image_fov
from tqdm.auto import tqdm
from multiprocessing import Process, Queue, Pool
def get_ptc_in_image(ptc, calib, img):
... | 81 | 37.19 | 79 | 18 | 830 | python | [] | 0 | true | |
2024-11-19T02:07:24.247631+00:00 | 1,615,422,809,000 | 3c45540d0b401ec3d4766985f1b0c6cfdba688b8 | 3 | {
"blob_id": "3c45540d0b401ec3d4766985f1b0c6cfdba688b8",
"branch_name": "refs/heads/main",
"committer_date": 1615422809000,
"content_id": "6b7568ddcb2fa14519c9236c8f7ee5462cf576ba",
"detected_licenses": [
"MIT"
],
"directory_id": "00cde8621c4a42b4945c0356467448af6b1a00fa",
"extension": "py",
"file... | 2.625 | stackv2 | import requests
import json
import glob
# EXHIBITION ENDPOINT/DATA
# work in progress! not working yet...
# this script loops through the downloaded json files to see which exhibitions have artist data
# new file created called "exhibitions_artistdata.json" listing all exhibitions containing artist data
artist_id_co... | 32 | 31.78 | 102 | 15 | 254 | python | [] | 0 | true | |
2024-11-19T02:07:24.408821+00:00 | 1,380,274,687,000 | ade90ce7f6247117e2b68f6eaa06383453cbad1b | 3 | {
"blob_id": "ade90ce7f6247117e2b68f6eaa06383453cbad1b",
"branch_name": "refs/heads/master",
"committer_date": 1380274687000,
"content_id": "3feac7f1b86d57fc6387deef0fa29ab7a1b85da8",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "3c426bb4b3ee1aa0b9d43b6cb562f2bcc97c250d... | 2.59375 | stackv2 | import AppKit
import QTKit
import Quartz
import os
from drawBot.misc import DrawBotError
from pdfContext import PDFContext
class MOVContext(PDFContext):
fileExtensions = ["mov"]
_saveMovieAttributes = {
QTKit.QTAddImageCodecType : "png "
}
_frameLength = 100
_frameScale = 1000
... | 52 | 31.92 | 104 | 15 | 409 | python | [] | 0 | true | |
2024-11-19T02:07:24.591634+00:00 | 1,664,732,624,000 | c7713a17f00862a62233a87bedd9e65f5cf930e1 | 3 | {
"blob_id": "c7713a17f00862a62233a87bedd9e65f5cf930e1",
"branch_name": "refs/heads/master",
"committer_date": 1664732624000,
"content_id": "71bd946c20cb569cf7d4c1e02195df4edfbffb0d",
"detected_licenses": [
"MIT",
"Unlicense"
],
"directory_id": "029637643a5d526f59876e3fac6903ded0037f66",
"extens... | 2.796875 | stackv2 | #!/usr/bin/env python3
# vim: ts=2 sw=2 sts=2 et tw=81 fdm=indent:
"""
(c) 2021, Tim Menzies, MIT license.
https://choosealicense.com/licenses/mit/
"""
def dist(r1, r2, cols):
def norms(col, x): x=col.norm(x); return x,(1 if x<0 else 0)
d,n = 0,1E-32
for col in cols.y:
a,b = r1[col.pos], r2[col.pos]
... | 46 | 25.78 | 77 | 14 | 454 | python | [] | 0 | true | |
2024-11-19T02:07:24.797472+00:00 | 1,624,601,074,000 | 642234e013f7cf1cd112470da922a785b1119848 | 3 | {
"blob_id": "642234e013f7cf1cd112470da922a785b1119848",
"branch_name": "refs/heads/main",
"committer_date": 1624601074000,
"content_id": "7f313681a09b1c2c9e882316fd155439e010411c",
"detected_licenses": [
"MIT"
],
"directory_id": "5c6f6c7e293259f01f2aa2df49cff62e969a32ac",
"extension": "py",
"file... | 2.609375 | stackv2 | import torch.utils.data as data
from PIL import Image
import os
import os.path
from io import BytesIO
import lmdb
from torch.utils.data import Dataset
class MultiResolutionDataset(Dataset):
def __init__(self, path, transform, resolution=256):
self.env = lmdb.open(
path,
max_reade... | 167 | 29.41 | 110 | 19 | 1,138 | python | [] | 0 | true | |
2024-11-19T02:07:24.978617+00:00 | 1,464,623,211,000 | c9a01aac0bb69f13f2f3f653e9b5e193f10527e9 | 4 | {
"blob_id": "c9a01aac0bb69f13f2f3f653e9b5e193f10527e9",
"branch_name": "refs/heads/master",
"committer_date": 1464623211000,
"content_id": "1ff492d9ad7c53d77beb4c20d1fe3ee9dcbdccd2",
"detected_licenses": [
"MIT"
],
"directory_id": "023552555f4a413f714c07443b483686feb20033",
"extension": "py",
"fi... | 4.5 | stackv2 | """
Author: Aishwarya Sharma
Question: Next Prime Number - Have the program find prime numbers until the user chooses to stop asking for
the next one.
"""
from typing import List
SIZE = 5
# Tests if a number is prime or not. Uses simple formula for test.
def is_prime(n: int)->bool:
if n <= 1:
... | 66 | 19.11 | 107 | 13 | 369 | python | [] | 0 | true | |
2024-11-19T02:07:25.098032+00:00 | 1,576,684,339,000 | 0641aab2c3c8b158c1d59bff3677994a305793a3 | 3 | {
"blob_id": "0641aab2c3c8b158c1d59bff3677994a305793a3",
"branch_name": "refs/heads/master",
"committer_date": 1576684355000,
"content_id": "247ba1e75d75d9a4764bae02b545c181feef7b90",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "7612c1cd1e0f98e42d3864f02d0f42d1716bd9b4... | 3.09375 | stackv2 | # [h] libutils
"""A collection of functions to check the integrity of libs."""
### thanks to Frederik Berlaen ###
# functions
def check_value(value):
if isinstance(value, list):
check_list(value)
elif isinstance(value, dict):
check_dict(value)
elif value == None:
print("---------... | 39 | 22.23 | 63 | 14 | 207 | python | [] | 0 | true | |
2024-11-19T02:07:25.368568+00:00 | 1,536,590,071,000 | cf4f4c116cd2c9077b43f744161acd96ee5378c8 | 2 | {
"blob_id": "cf4f4c116cd2c9077b43f744161acd96ee5378c8",
"branch_name": "refs/heads/master",
"committer_date": 1536590071000,
"content_id": "f2163c1f02905c654335834c4976ec976b85912a",
"detected_licenses": [
"MIT"
],
"directory_id": "36fb5bb2cac3856e07dd26873fec32df7a3538ed",
"extension": "py",
"fi... | 2.40625 | stackv2 | import requests,time
from docx import Document
from bs4 import BeautifulSoup
base_url='http://bbs.tianya.cn/m/'
headers = {
'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36'
}
layer_ind = 0
page = 'post_author-house-2527... | 39 | 29.46 | 144 | 13 | 331 | python | [] | 0 | true | |
2024-11-19T02:07:25.502540+00:00 | 1,551,143,629,000 | a2f550aeb7c9e9dd450c0a14d0f98b012b703a45 | 3 | {
"blob_id": "a2f550aeb7c9e9dd450c0a14d0f98b012b703a45",
"branch_name": "refs/heads/master",
"committer_date": 1551143629000,
"content_id": "86f060fd791d493802d372fe1eedf64e5bc96478",
"detected_licenses": [
"MIT"
],
"directory_id": "c702baffbf4614555c6bb5052c1fd25c8fad9389",
"extension": "py",
"fi... | 2.609375 | stackv2 | # -*- coding: utf-8 -*-
"""
@author: alexyang
@contact: alex.yang0326@gmail.com
@file: train_aspect.py
@time: 2018/4/20 22:12
@desc: train aspect classification models
"""
import os
import logging
import numpy as np
import pickle
import tensorflow as tf
import utils
from read_data import read_data_for_aspect
fr... | 119 | 35.44 | 112 | 14 | 1,062 | python | [] | 0 | true | |
2024-11-19T02:07:25.571987+00:00 | 1,629,897,828,000 | 0690b8e779014232c900fd22fb7e5d3c30f5cbce | 2 | {
"blob_id": "0690b8e779014232c900fd22fb7e5d3c30f5cbce",
"branch_name": "refs/heads/master",
"committer_date": 1629897828000,
"content_id": "cc96f060f407ccfbd8da38c4f927a3c1197b0e1f",
"detected_licenses": [
"MIT"
],
"directory_id": "9976f675ff072ab43d4288d93115f6d4eda3bd5e",
"extension": "py",
"fi... | 2.484375 | stackv2 | from collections import namedtuple
import numpy as np
import scipy.stats
import scipy.spatial.distance
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.neighbors import NearestNeighbors
from ..postprocessing import WaveformPrincipalComponent
_possible_pc_metric_names = ['isolation_di... | 223 | 33.81 | 110 | 16 | 1,926 | python | [] | 0 | true | |
2024-11-19T02:07:25.751486+00:00 | 1,652,347,718,000 | 19210dd29ec01241fe08824c387d586dcbdc56bd | 3 | {
"blob_id": "19210dd29ec01241fe08824c387d586dcbdc56bd",
"branch_name": "refs/heads/main",
"committer_date": 1652347718000,
"content_id": "d501a554325b90b57b9ef4245c2dbf8d7dd49c74",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "080019abf9c2dfae025ca214098afae45be8fc34",
"extension": "py",
... | 2.6875 | stackv2 | from machine import I2C, Timer
from Configuration import Configuration
from helper import blink_led
#from strings import csv_timestamp_template
from Constants import TIME_ISO8601_FMT
import time
# Temp Res: 0.01C, Temp Acc: +/-0.1C, Humid Res: 0.01%, Humid Acc: +/-1.5%
class TempSHT35(object):
def __init__(sel... | 76 | 38 | 130 | 16 | 803 | python | [] | 0 | true | |
2024-11-19T02:07:25.818367+00:00 | 1,432,781,342,000 | d220c58e45eee6078ea0cf1830871b1115bcfd8e | 3 | {
"blob_id": "d220c58e45eee6078ea0cf1830871b1115bcfd8e",
"branch_name": "refs/heads/master",
"committer_date": 1432781342000,
"content_id": "e0d306ae160e7b2ba23f166701c11488d8a2762f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "40b8e68fc897c1d7b06b114a373cd6969a5d266a",
"extension": "p... | 2.734375 | stackv2 | # -*- coding: utf-8 -*-
class Cookie(object):
def __init__(self, name, value='', max_age=None, expires=None,
path='/', domain=None, secure=None, http_only=False):
self.name = name
self.value = value
self.max_age = max_age
self.expires = expires
self.path = ... | 55 | 26.38 | 72 | 14 | 356 | python | [] | 0 | true | |
2024-11-19T02:07:25.889690+00:00 | 1,690,795,950,000 | dc35ae2a33185f75db95092645768438352a4892 | 2 | {
"blob_id": "dc35ae2a33185f75db95092645768438352a4892",
"branch_name": "refs/heads/master",
"committer_date": 1690795950000,
"content_id": "85a32469305aa1e56328292c1acbe0f37fb43f3d",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "423ca5205aaf0b2d3bfff9affe2172fec21bfad0",
"extension": "py"... | 2.5 | stackv2 |
import logging
import subprocess
from datetime import datetime, timedelta
from threading import Lock
from flask import current_app
import config
class PasswordExec:
lock = Lock()
def __init__(self, cmd, expiration_seconds=None, timeout=60):
self.cmd = str(cmd)
self.expiration_seconds = i... | 65 | 30.75 | 78 | 20 | 359 | python | [] | 0 | true | |
2024-11-19T02:07:26.120373+00:00 | 1,610,936,187,000 | 57c0cf2d767ba117e00f5c66047aa97de712c197 | 3 | {
"blob_id": "57c0cf2d767ba117e00f5c66047aa97de712c197",
"branch_name": "refs/heads/master",
"committer_date": 1610936187000,
"content_id": "e6c8019bb7f6441b54238b65ba63fc087ea5f3cc",
"detected_licenses": [
"MIT"
],
"directory_id": "d94ec03d0898a3786d9e19eae05ef9e16888ebe5",
"extension": "py",
"fi... | 2.6875 | stackv2 | from lib.commonlib import notify, get_current_time_parameters
import shutil
def check_space(config):
"""
This is the template method which calls all the required methods for space checking and alert generation.
:param config: The config.json configuration.
:return: None, ideally should return run stat... | 42 | 30.71 | 109 | 14 | 285 | python | [] | 0 | true | |
2024-11-19T02:07:27.145714+00:00 | 1,583,067,430,000 | 02990d0f2063f6f4b47413589d18e0eabdfce7d0 | 3 | {
"blob_id": "02990d0f2063f6f4b47413589d18e0eabdfce7d0",
"branch_name": "refs/heads/master",
"committer_date": 1583067430000,
"content_id": "cd86216ba3091ad73d5c799ea66b17ff6ac44e59",
"detected_licenses": [
"MIT"
],
"directory_id": "19606eea78ec8588161a9dab4eb4699f8b8f26f8",
"extension": "py",
"fi... | 2.578125 | stackv2 | from __future__ import annotations
import logging
from typing import TYPE_CHECKING
logger = logging.getLogger(__name__)
if TYPE_CHECKING:
from .models import (
Route,
Stop,
PlannedTrip,
)
class JineteException(Exception):
def __init__(self, message: str):
super().__init... | 48 | 23.9 | 107 | 11 | 269 | python | [] | 0 | true | |
2024-11-19T02:07:29.517558+00:00 | 1,677,595,846,000 | b1f3da5a63ca58925eaaf57d4861749694f8266b | 2 | {
"blob_id": "b1f3da5a63ca58925eaaf57d4861749694f8266b",
"branch_name": "refs/heads/master",
"committer_date": 1677595846000,
"content_id": "5466421df41cf9eb45df78de312c5a78b32ff5ea",
"detected_licenses": [
"MIT"
],
"directory_id": "f6a6ebcf218e2c1bbf127583611d206a5650ae21",
"extension": "py",
"fi... | 2.484375 | stackv2 | import numpy as np
import pandas as pd
import os
from collections import defaultdict
from tensorboard.backend.event_processing.event_accumulator import EventAccumulator
import json
import matplotlib
matplotlib.use('PS')
import matplotlib.pyplot as plt
import seaborn as sns
import sys
class dotdict(dict):
""" dicti... | 333 | 34.55 | 133 | 19 | 2,960 | python | [] | 0 | true | |
2024-11-19T02:07:29.624595+00:00 | 1,568,862,972,000 | 1be012eb59399444b8d45f2b4a1f9c0a79ac1168 | 3 | {
"blob_id": "1be012eb59399444b8d45f2b4a1f9c0a79ac1168",
"branch_name": "refs/heads/master",
"committer_date": 1568862972000,
"content_id": "5fafe72f781fceddba3fe6afb690958b3a59064e",
"detected_licenses": [
"MIT"
],
"directory_id": "c45e458fc9c7a490950bd6d8be42e7bddbfafb7b",
"extension": "py",
"fi... | 2.515625 | stackv2 | from math import sqrt
from multiprocessing import cpu_count
from joblib import Parallel
from joblib import delayed
from warnings import catch_warnings
from warnings import filterwarnings
from statsmodels.tsa.statespace.sarimax import SARIMAX
from sklearn.metrics import mean_squared_error
from pandas import read_csv
imp... | 149 | 29.74 | 77 | 24 | 1,139 | python | [] | 0 | true | |
2024-11-19T02:07:32.969855+00:00 | 1,616,458,391,000 | 11b58e27d276deaa2333df8cbe3fc13b11525f5c | 3 | {
"blob_id": "11b58e27d276deaa2333df8cbe3fc13b11525f5c",
"branch_name": "refs/heads/main",
"committer_date": 1616458391000,
"content_id": "86f9359930d6d553126d860a479b4d61e3c244c4",
"detected_licenses": [
"MIT"
],
"directory_id": "c416a4577141f6b80905b9531c0b24f972ac2717",
"extension": "py",
"file... | 2.953125 | stackv2 | import tkinter
from tkinter import *
from functools import partial
num_cols = 8
num_rows = 8
buttons = [[0 for i in range(num_cols)] for j in range(num_rows)]
values = [["0" for i in range(num_cols)] for j in range(num_rows)]
def change_value(row, col):
if values[row][col] == "1":
values[row][col] = "0"
... | 80 | 24.75 | 85 | 15 | 567 | python | [] | 0 | true | |
2024-11-19T02:07:33.028359+00:00 | 1,605,786,451,000 | d09d147726a661af97a85e77b48039700835ce9f | 2 | {
"blob_id": "d09d147726a661af97a85e77b48039700835ce9f",
"branch_name": "refs/heads/main",
"committer_date": 1605786451000,
"content_id": "ec2e542916439abdd5535042794b322d989d2358",
"detected_licenses": [
"MIT"
],
"directory_id": "35018f526cf8279d01506201abc1b7ee8c79da36",
"extension": "py",
"file... | 2.453125 | stackv2 | from sqlalchemy import Column, Text, Integer, Float, ForeignKey
from sqlalchemy.schema import PrimaryKeyConstraint
from .base import Base
class AutoRepr:
def __repr__(self):
return str(self.__dict__)
class FData(Base, AutoRepr):
__tablename__ = "fdata"
vec_id = Column(Text)
post_url = Colu... | 63 | 21.33 | 63 | 11 | 357 | python | [] | 0 | true | |
2024-11-19T02:07:33.196114+00:00 | 1,663,742,825,000 | e6fc17947c173e6f0492086fbd1856599bb2aa26 | 3 | {
"blob_id": "e6fc17947c173e6f0492086fbd1856599bb2aa26",
"branch_name": "refs/heads/master",
"committer_date": 1663742825000,
"content_id": "0201924400c11ec91c8f5995ab618055f5bf85f6",
"detected_licenses": [
"MIT"
],
"directory_id": "15ad140988bfc114793ec6e361032b3886e1c02b",
"extension": "py",
"fi... | 2.796875 | stackv2 | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
#最终输出:x1=question_representation,x2=topic_representation,y=0(or 1)--->(x1,x2,y)
import codecs
#1.将问题ID和TOPIC对应关系保持到字典里.################################################################################
print("process question_topic_train_set.t... | 149 | 40.72 | 118 | 16 | 1,391 | python | [] | 0 | true | |
2024-11-19T02:07:35.456124+00:00 | 1,605,053,294,000 | 8b49cc659b0a84fe9dbc63f84d5a3206cb2e99be | 3 | {
"blob_id": "8b49cc659b0a84fe9dbc63f84d5a3206cb2e99be",
"branch_name": "refs/heads/master",
"committer_date": 1605053294000,
"content_id": "ef54307e7fb6dbe00d64834a0d3e00cc60bf2fd1",
"detected_licenses": [
"MIT"
],
"directory_id": "67b9a199d391d7689cf10f3e4e59f2cef26468d5",
"extension": "py",
"fi... | 2.65625 | stackv2 | import stock_wrapper
from stock_wrapper import Stock
# getting the most updated prices requires a FREE robinhood account
stock_wrapper.robin.login('email', 'password')
apple = Stock('AAPL')
microsoft = Stock('MSFT')
apple.price # get the current price
microsoft.price
# data analysis does NOT require a robinhood acc... | 18 | 28.72 | 70 | 9 | 117 | python | [] | 0 | true | |
2024-11-19T02:07:35.600668+00:00 | 1,582,347,238,000 | 6689d6105792fa3e719dca0b5bf31f20bee12e93 | 3 | {
"blob_id": "6689d6105792fa3e719dca0b5bf31f20bee12e93",
"branch_name": "refs/heads/master",
"committer_date": 1582347238000,
"content_id": "9066570f517c2d33c64939eb2d1b89bb2128fdf5",
"detected_licenses": [
"MIT"
],
"directory_id": "7126c359bfe9d0875a435f5d3864b3d06a3d39c9",
"extension": "py",
"fi... | 2.59375 | stackv2 | '''
Esse script é somente um teste de desempenho
utilzando o caso do TCC de um treliça de 18 barras
Performance Benchmark:
- Este script demorou 664 segundos para rodar num Dell Precision T3610
com Windows 7, 16GB RAM e SSD 256GB;
- Este script demorou 1473.751 segundos para rodar num HP v064br,
com Ubuntu 18.04LTS, ... | 81 | 31.49 | 131 | 16 | 997 | python | [] | 0 | true | |
2024-11-19T02:07:35.735735+00:00 | 1,389,112,320,000 | 2cf348296aa4af0e1674f31c904f512c556f3483 | 3 | {
"blob_id": "2cf348296aa4af0e1674f31c904f512c556f3483",
"branch_name": "refs/heads/master",
"committer_date": 1389112320000,
"content_id": "bde4d4209a3703d37bedbde8a26e3b0a4540d637",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9fa3d4f71a4dc95c88be18c89c209f9672817dac",
"extension": "py"... | 3.140625 | stackv2 | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
from sklearn import svm
from sklearn import cross_validation
import numpy as np
import matplotlib.pyplot as plt
# <codecell>
def array_to_file(vectors, filename):
f_out = open(filename, "w")
if len(vectors.shape) == 2:
for vector in vec... | 106 | 24.87 | 105 | 16 | 821 | python | [] | 0 | true | |
2024-11-19T02:07:37.768560+00:00 | 1,597,314,261,000 | 57fbc46ed190843cebb7a778220ff224016ce455 | 3 | {
"blob_id": "57fbc46ed190843cebb7a778220ff224016ce455",
"branch_name": "refs/heads/master",
"committer_date": 1597314261000,
"content_id": "3ba4e6741cc90afcae057a32795869b3b5dcfe7d",
"detected_licenses": [
"MIT"
],
"directory_id": "b76a5aefa253853044ec5f6c1e5c895169279341",
"extension": "py",
"fi... | 3.3125 | stackv2 | # -*- coding: utf-8 -*-
class GildedRose(object):
def __init__(self, items):
self.items = items
self.special_items = {
"inverse" : ("Aged Brie",),
"legendary" : ("Sulfuras",),
"pass" : ("Backstage",),
"conjured" : ("Conjured",),
}
... | 100 | 24.87 | 83 | 12 | 600 | python | [] | 0 | true | |
2024-11-19T02:07:37.882989+00:00 | 1,631,195,996,000 | 1a89a92eeca0fee558c6ab9ff029c6d621f99d15 | 3 | {
"blob_id": "1a89a92eeca0fee558c6ab9ff029c6d621f99d15",
"branch_name": "refs/heads/master",
"committer_date": 1631195996000,
"content_id": "3ff46bea8a543ed50c318856666b2ca230717ddd",
"detected_licenses": [
"MIT"
],
"directory_id": "c1e2ddccdce0eab132038033806fae6fc4ab22ed",
"extension": "py",
"fi... | 2.796875 | stackv2 | import rx
from rx import operators as ops
from rxpipes import Pipeline
class ScheduleEach(Pipeline):
"""
Maps each element using operation on scheduler. Order is not preserved.
"""
def setup(self, operation, scheduler):
""""""
self.scheduler = scheduler
self.operation = opera... | 45 | 22.49 | 79 | 19 | 223 | python | [] | 0 | true | |
2024-11-19T02:07:37.954124+00:00 | 1,606,910,733,000 | 452743ba1ceff5d9bb3d93309ff037643503ff96 | 3 | {
"blob_id": "452743ba1ceff5d9bb3d93309ff037643503ff96",
"branch_name": "refs/heads/master",
"committer_date": 1606910733000,
"content_id": "652a2ef4e9a67a3584093ce4c309a68032f9c7aa",
"detected_licenses": [
"MIT"
],
"directory_id": "e2edb870836e683d797d828ee3ed7382bdf6d6aa",
"extension": "py",
"fi... | 2.59375 | stackv2 | import copy
from typing import Optional, Mapping, Any, Dict, Sequence, Type
from .data import Data
from .exception import InvalidParamError
from .merger import merger
class KData(Data):
"""
Base data for Kubernetes objects
"""
pass
class KData_Manual(KData):
"""
A :class:`KData` that merges... | 423 | 33.74 | 137 | 17 | 3,274 | python | [] | 0 | true | |
2024-11-19T02:07:38.025748+00:00 | 1,668,488,228,000 | df9001b3eb7d30e2e47f7fd37e1837f882b54c20 | 3 | {
"blob_id": "df9001b3eb7d30e2e47f7fd37e1837f882b54c20",
"branch_name": "refs/heads/master",
"committer_date": 1668488228000,
"content_id": "d953456bb705c3f469f0fc222a9a40fb3da83dca",
"detected_licenses": [
"MIT"
],
"directory_id": "cbc60d2b8b4f052ccbb3c4027c957b280cc14023",
"extension": "py",
"fi... | 2.625 | stackv2 | import discord
def can_send(ctx):
"""
Checks whether the bot can send messages in a channel.
Params:
(discord.commands.Context) ctx: context
Returns:
(bool): True if bot can send message, False otherwise
"""
return isinstance(ctx.channel, discord.DMChannel) or ctx.channel.perm... | 38 | 33.08 | 113 | 11 | 279 | python | [] | 0 | true | |
2024-11-19T02:07:38.077819+00:00 | 1,612,648,317,000 | b5b30795a35687fd9b4567e9c283d83792ccdf8b | 3 | {
"blob_id": "b5b30795a35687fd9b4567e9c283d83792ccdf8b",
"branch_name": "refs/heads/master",
"committer_date": 1612648317000,
"content_id": "6827bf7ff73576a2416770d6e03bdcef3e011648",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "77ac01885ddb53b43e35e0a0f2346a1b515ac85e",
"extension": "p... | 2.625 | stackv2 | import os
import json
from typing import List, Optional
import pprint
from .. import parse, dump
def extract_voices(sysex_file: str, output: str, author: Optional[str],
source: Optional[str], debug: Optional[bool] = False,
num_voices_to_extract: Optional[int] = None) -> List[dic... | 41 | 27 | 78 | 15 | 283 | python | [] | 0 | true | |
2024-11-19T02:07:38.120954+00:00 | 1,656,147,860,000 | 1f0fad41a1133bc25a6131aa895e15049a142eb2 | 2 | {
"blob_id": "1f0fad41a1133bc25a6131aa895e15049a142eb2",
"branch_name": "refs/heads/master",
"committer_date": 1656147860000,
"content_id": "d25ac459c7545118507704f350971c1e88591206",
"detected_licenses": [
"MIT"
],
"directory_id": "5e98cbc3b2c9e03cb8b15d5a277f091f59496d9e",
"extension": "py",
"fi... | 2.375 | stackv2 | import cv2
import numpy as np
import os
image_x, image_y = 50, 50
cap = cv2.VideoCapture(0)
fbag = cv2.createBackgroundSubtractorMOG2()
def create_folder(folder_name):
if not os.path.exists(folder_name):
os.mkdir(folder_name)
def main(g_id):
total_pics = 1200
cap = cv2.VideoCapture(0)
x, y, ... | 76 | 37.13 | 106 | 22 | 920 | python | [] | 0 | true | |
2024-11-19T02:07:40.518819+00:00 | 1,576,860,365,000 | 35e19833cacf9909d4a8900857461f7af5121d38 | 3 | {
"blob_id": "35e19833cacf9909d4a8900857461f7af5121d38",
"branch_name": "refs/heads/master",
"committer_date": 1576860365000,
"content_id": "3ca974e357e74d13650eee7154d298e8277a7b4d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "93bd482e639757be48b61dd24efc19f47d4f1078",
"extension": "p... | 2.546875 | stackv2 | import os
import click
import platform
import subprocess
class FilePath:
def __init__(self, path):
self.path = path
self.basename = os.path.basename(path)
self.name, self.ext = os.path.splitext(self.basename)
self.dir = os.path.dirname(self.path)
self.dir_ = self.dir + '/'
... | 118 | 23.22 | 134 | 18 | 662 | python | [] | 0 | true | |
2024-11-19T02:07:40.573665+00:00 | 1,677,161,327,000 | 3cf4541d777e421304e0eb51c88c613fb8d50130 | 3 | {
"blob_id": "3cf4541d777e421304e0eb51c88c613fb8d50130",
"branch_name": "refs/heads/master",
"committer_date": 1677161327000,
"content_id": "f424cf882350832b337c4eacda632a92ee2a6def",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7cf41c4a638f9b8be0d23d5eda4230c7033c5997",
"extension": "p... | 2.515625 | stackv2 | '''
Demonstrate the usage of part of the API of the `robmodel` package.
The `main()` function loads the sample UR5 models shipped with this project,
in different formats, and for each model prints the calculated pose of the last
link of the manipulator relative to the base. If the models are kinematically
equivalent, ... | 119 | 31.9 | 96 | 13 | 1,012 | python | [] | 0 | true | |
2024-11-19T02:31:13.183777+00:00 | 1,544,591,213,000 | faafc9b74f20ab0242d3d1ec7d951c958ce610ba | 3 | {
"blob_id": "faafc9b74f20ab0242d3d1ec7d951c958ce610ba",
"branch_name": "refs/heads/master",
"committer_date": 1544591213000,
"content_id": "e394b41224406e34b1455a5095017fe7c9744c16",
"detected_licenses": [
"MIT"
],
"directory_id": "cdafe4cf77b7be4e7395e9518bec65c3debc46ac",
"extension": "py",
"fi... | 2.703125 | stackv2 | import tkinter as tk
import menu
from utils import _getFont, colors
from ui import create_rounded_rectangle
from threading import Thread
from time import sleep
class Welcome(tk.Canvas):
def __init__(self, root):
tk.Canvas.__init__(self, root, width=700, height=600, bd=0, highlightthickness=0, bg=colors.DBLUE)
... | 46 | 25 | 102 | 13 | 346 | python | [] | 0 | true | |
2024-11-19T02:31:13.289581+00:00 | 1,601,755,077,000 | 787bcfc3e04b3a68f770a80fe0ca94e12b4613ef | 2 | {
"blob_id": "787bcfc3e04b3a68f770a80fe0ca94e12b4613ef",
"branch_name": "refs/heads/master",
"committer_date": 1601755077000,
"content_id": "e606c927d8f7171daa0fa4755f21e5c1d649095b",
"detected_licenses": [
"MIT"
],
"directory_id": "68e6a31213d2d294f22d35c340fd82d2d2fa438b",
"extension": "py",
"fi... | 2.40625 | stackv2 | # Flask などの必要なライブラリをインポートする
from flask import Flask, render_template, request, redirect, url_for,make_response,jsonify
import numpy as np
import os
from datetime import datetime
import werkzeug
import subprocess
import glob
import json
import hashlib
import random, string
def randomname(n):
randlst = [random.choic... | 107 | 29.66 | 97 | 15 | 872 | python | [{"finding_id": "codeql_py/command-line-injection_24bef67e886d7a5c_c40e3580", "tool_name": "codeql", "rule_id": "py/command-line-injection", "finding_type": "path-problem", "severity": "medium", "confidence": "high", "message": "This command line depends on a [user-provided value](1).", "remediation": "", "location": {... | 4 | true | |
2024-11-19T02:31:13.510749+00:00 | 1,578,688,000,000 | b973059bb5b7f5d9917cb387cac14a090f24dc6d | 3 | {
"blob_id": "b973059bb5b7f5d9917cb387cac14a090f24dc6d",
"branch_name": "refs/heads/master",
"committer_date": 1578688000000,
"content_id": "743ee2d95eb898b813a554044d004cd8c11eca11",
"detected_licenses": [
"MIT"
],
"directory_id": "b0ac3af7da0082c1a0d9c73ce917e6ea46278e58",
"extension": "py",
"fi... | 3.078125 | stackv2 | import logging
import os
import shutil
from .assignment import Assignment
from .config import GraderConfig
logger = logging.getLogger(__name__)
class GraderError(Exception):
"""A general-purpose exception thrown by the Assignment class.
"""
pass
class AssignmentNotFoundError(GraderError):
"""An ex... | 140 | 28.91 | 84 | 15 | 868 | python | [] | 0 | true | |
2024-11-19T02:31:13.617878+00:00 | 1,687,413,046,000 | df9f2e424d7c3db73fa0d94335447fcf9d476fd2 | 3 | {
"blob_id": "df9f2e424d7c3db73fa0d94335447fcf9d476fd2",
"branch_name": "refs/heads/master",
"committer_date": 1687413046000,
"content_id": "ad70a5142e0499fe53b91e71e4e8581e6cf31fd0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "39edd58f22cea9d92fa8a4e5c7704d3f1a59a979",
"extension": "py"... | 2.5625 | stackv2 | import typing
import pandas as pd
import ta
from IPython.display import HTML, display
from pandas.api.types import is_datetime64_any_dtype as is_datetime
from pyecharts import options as opts
from pyecharts.charts import Bar, Grid, Kline, Line
def filter_stock_data(stock_data: pd.DataFrame) -> pd.DataFrame:
coln... | 402 | 30.18 | 78 | 17 | 3,020 | python | [] | 0 | true | |
2024-11-19T02:31:13.675222+00:00 | 1,552,167,308,000 | 0920f879e7b64318f02f609f722b1f6c97fdbb5b | 3 | {
"blob_id": "0920f879e7b64318f02f609f722b1f6c97fdbb5b",
"branch_name": "refs/heads/master",
"committer_date": 1552167308000,
"content_id": "e7d1740f881db053e406d175ab0150251902b024",
"detected_licenses": [
"MIT"
],
"directory_id": "8ecc697cc0c264756977314d2d9eecde5b81938c",
"extension": "py",
"fi... | 2.640625 | stackv2 | import sys
import importlib
from importlib.util import find_spec
from sqlalchemy.exc import OperationalError
import iacorpus.datasets.generic
from iacorpus.datasets.generic.dataset import SQLConnection, Dataset
def load_dataset(name: str, **kwargs) -> Dataset:
"""Returns a dataset.
This dynamically connect... | 64 | 37.83 | 98 | 14 | 506 | python | [] | 0 | true | |
2024-11-19T02:31:13.778377+00:00 | 1,652,950,416,000 | e9221e0669d5a02e650ab13b8357830a5cd75b0f | 3 | {
"blob_id": "e9221e0669d5a02e650ab13b8357830a5cd75b0f",
"branch_name": "refs/heads/master",
"committer_date": 1652950416000,
"content_id": "753a34947677c3fd29ae7a1d1a4739f3ec792543",
"detected_licenses": [],
"directory_id": "5076f4492da65f1bc720416c15bbc34dcc42dcf7",
"extension": "py",
"filename": "Tim... | 2.96875 | stackv2 | import math
class TimeVaryingElastance:
def __init__(self, model, **args):
# initialize the super class
super().__init__()
# properties
self.name = "" # name of the compliance
self.type = "time_varying_elastance" # type of the model component
... | 166 | 43.23 | 160 | 23 | 1,719 | python | [] | 0 | true | |
2024-11-19T02:31:13.831601+00:00 | 1,606,241,171,000 | 2dd4566acfc719e917b69c42912705a943a6c0fa | 3 | {
"blob_id": "2dd4566acfc719e917b69c42912705a943a6c0fa",
"branch_name": "refs/heads/master",
"committer_date": 1606241171000,
"content_id": "17f01fd83e4db1a5faeab17e25b6256d4452ba37",
"detected_licenses": [
"MIT"
],
"directory_id": "ad16e01b5f24e0c85afbf17816973d9c57cf056f",
"extension": "py",
"fi... | 2.5625 | stackv2 | #!/usr/bin/env python3
from datetime import datetime
import argparse
import configparser
import os.path
import requests
import sys
Username = 'your Username'
Password = 'Your secure password'
Host = 'www.ovh.com' # replace this with your dyndns' domain provider
Hostname = 'subdomain.domain.net' # or 'domain.net'
Us... | 91 | 38.32 | 143 | 17 | 893 | python | [] | 0 | true | |
2024-11-19T02:31:13.946243+00:00 | 1,664,045,644,000 | 44d488d87058d782bd7fbb07121fc66302b1236a | 3 | {
"blob_id": "44d488d87058d782bd7fbb07121fc66302b1236a",
"branch_name": "refs/heads/master",
"committer_date": 1664045644000,
"content_id": "335363046478dcf61b55d76b3aa92a83f6d69146",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "364774e29ef2474552ea3839de0951e63cbae0a6",
"extension": "py"... | 2.546875 | stackv2 | # TODO: why isn't this implemented as a class singleton, the same as God ?
import logging
from django.utils.translation import ugettext_noop
from django.db import models
from django.contrib.auth.models import User
from wouso.core import signals
from wouso.core.user.models import Player
from wouso.core.scoring.models im... | 307 | 29.79 | 121 | 16 | 2,133 | python | [] | 0 | true | |
2024-11-19T02:31:14.073914+00:00 | 1,585,657,499,000 | 86c4f85fa88d6e8ac077a958cfb1a6b39c18450a | 3 | {
"blob_id": "86c4f85fa88d6e8ac077a958cfb1a6b39c18450a",
"branch_name": "refs/heads/master",
"committer_date": 1585657499000,
"content_id": "a12f7b38af999426a8b73709d69e0903ff80486f",
"detected_licenses": [
"MIT"
],
"directory_id": "97866f9395953d42d27a1fde630d4333a9844eb5",
"extension": "py",
"fi... | 2.5625 | stackv2 | # coding: utf-8
import logging
import logging.handlers
import time
from functools import partial
LOG_FORMAT = "[%(process)d/%(threadName)-11s] %(asctime)s.%(msecs)03d [%(levelname).1s] %(message)s"
LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
class NoTracebackFormatter(logging.Formatter):
def format(self, record) -... | 110 | 26.06 | 100 | 13 | 628 | python | [] | 0 | true | |
2024-11-19T02:31:14.379288+00:00 | 1,624,940,397,000 | d5f4d4f2d5791058100a735301ea51b4e91b0845 | 2 | {
"blob_id": "d5f4d4f2d5791058100a735301ea51b4e91b0845",
"branch_name": "refs/heads/main",
"committer_date": 1624940397000,
"content_id": "cd08ea853c057a48ff691e5c75d2b2bee74be9d1",
"detected_licenses": [
"MIT"
],
"directory_id": "4d1b48aa0728c1cfb12f619b9cb6f598118b0edb",
"extension": "py",
"file... | 2.5 | stackv2 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# /* ==================================================
# AUTHORSHIP STATEMENT
# The University of Melbourne
# School of Engineering
# ELEN90090: Autonomous Clinic Systems
# Author: Hai Dang Nguyen (860308)
# ================================================== */
# /**
# ... | 109 | 35.75 | 100 | 16 | 952 | python | [] | 0 | true | |
2024-11-19T02:31:14.610920+00:00 | 1,636,120,694,000 | 6917918c35fd07a6b3fa3af660aa7250668f084b | 3 | {
"blob_id": "6917918c35fd07a6b3fa3af660aa7250668f084b",
"branch_name": "refs/heads/master",
"committer_date": 1636120694000,
"content_id": "9458a79b8c723da2f26f6a7971fc3e04c0262551",
"detected_licenses": [
"MIT"
],
"directory_id": "000f01bf11304ade745b34f3918b707730d268ea",
"extension": "py",
"fi... | 3.03125 | stackv2 | import requests, time
from termcolor import cprint
from pprint import pprint
from bs4 import BeautifulSoup, Tag
from datetime import datetime
from cache_to_disk import cache_to_disk, delete_disk_caches_for_function
CACHE_VALID_DAYS = 1
BASE_URL = "https://studiegids.universiteitleiden.nl/search"
MAJOR_NAMES = {
# Di... | 107 | 37.38 | 119 | 19 | 1,129 | python | [] | 0 | true | |
2024-11-19T02:31:14.707701+00:00 | 1,550,994,622,000 | 6d36a3d6430769f3cbdfa02fbe2c940ddacbefd1 | 3 | {
"blob_id": "6d36a3d6430769f3cbdfa02fbe2c940ddacbefd1",
"branch_name": "refs/heads/master",
"committer_date": 1550994622000,
"content_id": "7c7813a867af6b13f092c9b5c9701fd6c904bf50",
"detected_licenses": [
"MIT"
],
"directory_id": "26fd3fa7e7f4da890b7f10414b36a55151104565",
"extension": "py",
"fi... | 2.546875 | stackv2 | import os
import logging.config
from logging import getLogger
import yaml
config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logging.yaml')
class SimulationLogger(object):
# def __init__(self, path, level=logging.INFO):
# self.setup_logging(path, level)
# self.env = None
... | 48 | 30.79 | 86 | 14 | 318 | python | [] | 0 | true | |
2024-11-19T02:31:14.915197+00:00 | 1,538,981,504,000 | d1b4747233b00bced66d5762029a6f7125a570fc | 2 | {
"blob_id": "d1b4747233b00bced66d5762029a6f7125a570fc",
"branch_name": "refs/heads/master",
"committer_date": 1538981504000,
"content_id": "949da9cc6683a2b24c20284e1bbaafa033755572",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ceed8ee18ab314b40b3e5b170dceb9adedc39b1e",
"extension": "py"... | 2.3125 | stackv2 | #!/usr/bin/python
# coding=UTF-8
#
# Copyright 2014 Google Inc. 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
#
# Unl... | 216 | 31.22 | 78 | 12 | 2,892 | python | [] | 0 | true | |
2024-11-19T02:31:15.135099+00:00 | 1,500,965,944,000 | 966ece78471df2bc8ed67168bf8717471288f165 | 2 | {
"blob_id": "966ece78471df2bc8ed67168bf8717471288f165",
"branch_name": "refs/heads/master",
"committer_date": 1500965944000,
"content_id": "20cb56ade36b198b0b1bfd925adaf58ac1913715",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0345362f15c752eb3dfde956f4a9cf40185a072e",
"extension": "py"... | 2.4375 | stackv2 | from armada_backend import api_base, docker_client
class GetEnv(api_base.ApiCommand):
def GET(self, container_id, key):
try:
docker_api = docker_client.api()
docker_inspect = docker_api.inspect_container(container_id)
value = None
for env_var in docker_inspe... | 20 | 41.15 | 117 | 20 | 167 | python | [] | 0 | true | |
2024-11-19T02:31:15.360061+00:00 | 1,601,878,633,000 | e7630fa818c0757699dd0c331c6f0cc53164532c | 3 | {
"blob_id": "e7630fa818c0757699dd0c331c6f0cc53164532c",
"branch_name": "refs/heads/master",
"committer_date": 1601878633000,
"content_id": "3927fcb3d4e1ebfa62f6b58cc7f936a46eecb471",
"detected_licenses": [
"MIT"
],
"directory_id": "3a60f52474e71d65d6e0860a8b17f3367be2c156",
"extension": "py",
"fi... | 2.734375 | stackv2 | import commonmark
from slugify import slugify
class HtmlRenderer(commonmark.HtmlRenderer):
"""
Extends the CommonMark HTMLRenderer, adding:
* heading ids
* code.nohighlight if no info string is given
"""
def heading(self, node, entering):
tagname = "h" + str(node.level)
... | 39 | 26.54 | 77 | 16 | 247 | python | [] | 0 | true | |
2024-11-19T02:31:16.036344+00:00 | 1,633,652,243,000 | 9be876d9cc999946c10e5cdde6a6dc586d5b795e | 2 | {
"blob_id": "9be876d9cc999946c10e5cdde6a6dc586d5b795e",
"branch_name": "refs/heads/master",
"committer_date": 1633652243000,
"content_id": "443b18ff600ea3b9103fb58eebacd5ee4e091ad0",
"detected_licenses": [
"MIT"
],
"directory_id": "c7d16effaed5f58885a961137ca4191df2e31664",
"extension": "py",
"fi... | 2.484375 | stackv2 | import click
import cv2 as cv
from rakali import transforms
from rakali.annotate import add_frame_labels, colors
from rakali.camera.fisheye import CalibratedFisheyeCamera
@click.command(context_settings=dict(max_content_width=120))
@click.version_option()
@click.argument(
"image-path",
type=click.Path(exists=... | 86 | 26.81 | 83 | 15 | 604 | python | [] | 0 | true | |
2024-11-19T02:31:16.261670+00:00 | 1,620,587,442,000 | 55953b3c6190db092dec5f770ab6ed56b0f2685c | 3 | {
"blob_id": "55953b3c6190db092dec5f770ab6ed56b0f2685c",
"branch_name": "refs/heads/main",
"committer_date": 1620587442000,
"content_id": "61d574cd1c8c47470a49ea832f1020db8b5089a0",
"detected_licenses": [
"MIT"
],
"directory_id": "05fa8b1a6c6136ae45b103a2a9499969788d0522",
"extension": "py",
"file... | 2.59375 | stackv2 | import random
import os
import cv2
import re
from PIL import Image
import numpy as np
import torch
from munch import Munch
from inspect import isfunction
operators = '|'.join(['arccos', 'arcsin', 'arctan', 'arg', 'cos', 'cosh', 'cot', 'coth', 'csc', 'deg', 'det', 'dim', 'exp', 'gcd', 'hom', 'inf',
... | 154 | 29.64 | 160 | 21 | 1,398 | python | [] | 0 | true | |
2024-11-19T02:31:16.772126+00:00 | 1,559,929,163,000 | c22231c3df8fce80478137a7295096182b81a920 | 3 | {
"blob_id": "c22231c3df8fce80478137a7295096182b81a920",
"branch_name": "refs/heads/master",
"committer_date": 1559929234000,
"content_id": "071863e6d0cf69dec3bbce123dcde4c7ee6b8437",
"detected_licenses": [
"MIT"
],
"directory_id": "d8a39ca55a3ca33b9f6cc1bbc0745aef8dc1feb1",
"extension": "py",
"fi... | 3.09375 | stackv2 | ###############################################################################
# Step 11
###############################################################################
# Some silly background music.
###############################################################################
import pygame
from pygame.locals impor... | 140 | 29.66 | 98 | 18 | 1,081 | python | [] | 0 | true | |
2024-11-19T02:31:16.832502+00:00 | 1,528,357,174,000 | 7530eb35471ad048d4eec8ee2f7624c49ca6b7d0 | 2 | {
"blob_id": "7530eb35471ad048d4eec8ee2f7624c49ca6b7d0",
"branch_name": "refs/heads/master",
"committer_date": 1528357174000,
"content_id": "cdd121b631d66b7c5255813486fb630fb0fc80bf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b8cd55011b5f14098160a8062776455f6165888f",
"extension": "py"... | 2.40625 | stackv2 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# License: Apache-2.0
import argparse
import android_backup
import sys
def _description():
plat = sys.platform
supported_platform = plat != 'Pocket PC' and (plat != 'win32' or
'ANSICON' in os.environ)
is_a_tty ... | 61 | 24.67 | 90 | 11 | 426 | python | [] | 0 | true | |
2024-11-19T02:31:16.915853+00:00 | 1,576,593,738,000 | e975715153ff329ffda8b3fa60121199c2ed4d52 | 3 | {
"blob_id": "e975715153ff329ffda8b3fa60121199c2ed4d52",
"branch_name": "refs/heads/master",
"committer_date": 1576595501000,
"content_id": "95f2c5b4c3d0698a91b8a718bff076151af13da3",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d7b2c8b431201e5b1f1d0fdda43c551336f7d00c",
"extension": "p... | 2.78125 | stackv2 | import sifter.grammar
__all__ = ('CommandList',)
class CommandList(object):
def __init__(self, command_list=None):
if command_list is None:
self.commands = []
else:
self.commands = command_list
def __str__(self):
return ''.join(cmd.__str__() for cmd in self.co... | 26 | 29.96 | 74 | 14 | 175 | python | [] | 0 | true | |
2024-11-19T02:31:16.986903+00:00 | 1,605,952,172,000 | c51e33cd5b07c7ec43736726e59148286fde1ea2 | 3 | {
"blob_id": "c51e33cd5b07c7ec43736726e59148286fde1ea2",
"branch_name": "refs/heads/master",
"committer_date": 1605952172000,
"content_id": "f1af09d6270d6a62f32ccfe93a64fc9348c9f581",
"detected_licenses": [
"MIT"
],
"directory_id": "33f06ca2f8f4b1e7e55964889c5421471576e582",
"extension": "py",
"fi... | 2.765625 | stackv2 | #! /usr/bin/python
import os
import cgi
print "Content-Type: text/html"
print
print """<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>Tests</title>
</head>
<body>
<div id="header">Simple ... | 41 | 19.93 | 70 | 10 | 284 | python | [] | 0 | true | |
2024-11-19T02:31:17.801032+00:00 | 1,601,135,829,000 | 7295bc9579d9c912543b75d2f0ae015815dff776 | 3 | {
"blob_id": "7295bc9579d9c912543b75d2f0ae015815dff776",
"branch_name": "refs/heads/master",
"committer_date": 1601135829000,
"content_id": "02ff65e9f79c0caceaa04303512288fb6c74fb75",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "54ab5ea7d599b8318b8c38ee0ea8fb2ed853a31f",
"extension": "py"... | 2.671875 | stackv2 | #!/usr/bin/env python3
# coding: utf-8
import json
import numpy as np
import pandas as pd
from visdom import Visdom
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.dates as mdate
# import seaborn
# seaborn.set()
# import pylab import mpl
import os, time, sys, pickle
from datetime import date... | 57 | 25.68 | 85 | 12 | 422 | python | [] | 0 | true | |
2024-11-19T02:31:17.932235+00:00 | 1,631,185,022,000 | 9ccfd6297d05576cfff14c7fae77f5bca20cdc30 | 3 | {
"blob_id": "9ccfd6297d05576cfff14c7fae77f5bca20cdc30",
"branch_name": "refs/heads/master",
"committer_date": 1631186278000,
"content_id": "a3ba1b604c338c6552ec5d86f3d8f2ae18d1a94d",
"detected_licenses": [
"MIT"
],
"directory_id": "e368a304592fb808f7ed6d48fc6e0b71940a9af9",
"extension": "py",
"fi... | 2.84375 | stackv2 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import re
import shutil
import sys
import wave
import numpy as np
from deepspeech import Model
from tqdm import tqdm
from audioProcessing import extract_audio, convert_samplerate
from segmentAudio import silenceRemoval
from writeToFile import wr... | 200 | 38.62 | 119 | 18 | 1,743 | python | [] | 0 | true | |
2024-11-19T02:31:18.128822+00:00 | 1,634,536,719,000 | 25692018f02ee60bb5089e3d9f830c30cfb3bdc5 | 2 | {
"blob_id": "25692018f02ee60bb5089e3d9f830c30cfb3bdc5",
"branch_name": "refs/heads/master",
"committer_date": 1634536719000,
"content_id": "3996759bc7447f8603163af30e9008648cb0ef6c",
"detected_licenses": [
"MIT"
],
"directory_id": "f17d8cf017a5734e5da77ceb2867a7b9ba5784bb",
"extension": "py",
"fi... | 2.328125 | stackv2 | import torch
import numpy as np
from torch import nn
import timeit
import torch.nn.functional as F
class ReIDloss(nn.Module):
def __init__(self, delta=5.0, r=0.01):
super(ReIDloss, self).__init__()
self.delta = delta # coefficient for mmcl
self.r = r # hard negative mining ratio
... | 38 | 38.21 | 124 | 18 | 368 | python | [] | 0 | true | |
2024-11-19T02:31:18.186892+00:00 | 1,427,880,980,000 | 1b1d5297005fac294398e32689951cb9e5068303 | 3 | {
"blob_id": "1b1d5297005fac294398e32689951cb9e5068303",
"branch_name": "refs/heads/master",
"committer_date": 1427880980000,
"content_id": "dff0dd4344c33370eefd038a021116fe638bba6b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "84f9d71d60c1816112ad9901beba2b1f9081d886",
"extension": "py"... | 3.03125 | stackv2 | """
Graphical User Interface
It creates the main windows and draw a basic graphic structure, using Tk library.
Draws a Panel according with its descriptor file, which contains option names, images, messages, etc.
"""
import Tkinter as tk
import tkFont
import Image as img
import ImageTk as imgtk
import os
import panel... | 176 | 38.82 | 112 | 18 | 1,766 | python | [] | 0 | true | |
2024-11-19T02:31:18.279769+00:00 | 1,424,794,819,000 | 8c5a2bd1fb9b6f0714e8cf89569ccc74d63049b1 | 3 | {
"blob_id": "8c5a2bd1fb9b6f0714e8cf89569ccc74d63049b1",
"branch_name": "refs/heads/master",
"committer_date": 1424794819000,
"content_id": "e79d17d6db5ad31d1fa0528bb2acd135381a75d1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f81454ab6fc641a03875cc8f2e72fcb991dc1574",
"extension": "p... | 2.65625 | stackv2 | #!/usr/bin/env python3
# Connect to a running OSv guest through the HTTP API and periodically
# display the the frequency of chosen tracepoints.
#
# Usage: freq.py host[:port] [tracepoint] ...
#
# If the list of tracepoints whose frequencies to display is missing,
# freq.py will display, together with the "Usage:" mess... | 107 | 28.69 | 96 | 16 | 826 | python | [] | 0 | true | |
2024-11-19T02:31:18.469501+00:00 | 1,575,524,741,000 | 4010ef947fe948f52f9fb5545a4affa824712408 | 3 | {
"blob_id": "4010ef947fe948f52f9fb5545a4affa824712408",
"branch_name": "refs/heads/master",
"committer_date": 1575524741000,
"content_id": "53f0c516a3b03b57fc168bed90e082af6eedbb93",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "526531cf5469d9699b9b678f773493408ab2ae3e",
"extension": "py"... | 3.15625 | stackv2 | # -*- coding: utf-8 -*-
__author__ = """Chris Tabor (dxdstudio@gmail.com)"""
if __name__ == '__main__':
from os import getcwd
from os import sys
sys.path.append(getcwd())
from MOAL.helpers.display import Section
from MOAL.helpers.display import prnt
from MOAL.automata_theory.turing_machine import TuringM... | 125 | 34.73 | 78 | 19 | 1,015 | python | [] | 0 | true | |
2024-11-19T02:31:18.594012+00:00 | 1,529,759,354,000 | bbeaf91f3bec2e2f803e4b46f18bb7a74ab35afa | 3 | {
"blob_id": "bbeaf91f3bec2e2f803e4b46f18bb7a74ab35afa",
"branch_name": "refs/heads/master",
"committer_date": 1529759354000,
"content_id": "32b655919b26d9fd6c489ca4a91c1388a3e1fbf2",
"detected_licenses": [
"MIT"
],
"directory_id": "04ac9de0157b8895d58f6cb481f88ab4a16c2cdb",
"extension": "py",
"fi... | 2.828125 | stackv2 | #!/usr/bin/env python3
import ipaddress
from scapy.layers.inet import traceroute
import tkinter as tk
import networkx as nx
import matplotlib.pyplot as plt
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.pack()
self.create_form()
def create_... | 89 | 33.45 | 110 | 19 | 711 | python | [] | 0 | true | |
2024-11-19T02:31:18.649737+00:00 | 1,479,652,380,000 | 5336fc5ef5af89ea3e6cf618ea16b57dd96454fe | 4 | {
"blob_id": "5336fc5ef5af89ea3e6cf618ea16b57dd96454fe",
"branch_name": "refs/heads/master",
"committer_date": 1479652380000,
"content_id": "f22d99aa8668277f8ff9c082fbbf599a5ccd883c",
"detected_licenses": [
"MIT"
],
"directory_id": "16a16574d98f82ea2601551ff648c3aabe837896",
"extension": "py",
"fi... | 3.53125 | stackv2 | import pandas as pd
import numpy as np
# TODO: Load up the table, and extract the dataset
# out of it. If you're having issues with this, look
# carefully at the sample code provided in the reading
#
# .. your code here ..
dat = pd.read_html("http://www.espn.com/nhl/statistics/player/_/stat/points/sort/points/year/201... | 60 | 27.38 | 112 | 14 | 481 | python | [] | 0 | true | |
2024-11-19T02:31:19.032861+00:00 | 1,356,216,375,000 | 4ae6b7d8359c6d4f1856d36a5979cd7ecafd72cf | 2 | {
"blob_id": "4ae6b7d8359c6d4f1856d36a5979cd7ecafd72cf",
"branch_name": "refs/heads/master",
"committer_date": 1356216375000,
"content_id": "b457c625d2da694d050148be08248190f0f71eee",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7a5dd0a540ef4e9d236ddb64c999fe7f0ab26ab4",
"extension": "py"... | 2.34375 | stackv2 | # Copyright 2012 Gregory Holt
#
# 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 agreed to in writing, ... | 428 | 36.62 | 79 | 22 | 3,656 | python | [{"finding_id": "codeql_py/insecure-default-protocol_c1b1e384becfb16a_26eba64a", "tool_name": "codeql", "rule_id": "py/insecure-default-protocol", "finding_type": "problem", "severity": "medium", "confidence": "high", "message": "Call to deprecated method ssl.wrap_socket does not specify a protocol, which may result in... | 3 | true | |
2024-11-19T02:31:19.154638+00:00 | 1,635,200,572,000 | 353e280f544e38dd58365027fd709f7a85aecf56 | 3 | {
"blob_id": "353e280f544e38dd58365027fd709f7a85aecf56",
"branch_name": "refs/heads/main",
"committer_date": 1635200572000,
"content_id": "316b2129d24739d0dd988732361539511bfb5fb5",
"detected_licenses": [
"MIT"
],
"directory_id": "7fc239a423a5ba7011f0f0f374878705f2b28da1",
"extension": "py",
"file... | 2.78125 | stackv2 | """Download all laws from the Kosovo website."""
from datetime import date
import json
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
BASE_URL = 'https://gzk.rks-gov.net'
START_URL = 'https://gzk.rk... | 102 | 32.22 | 93 | 14 | 881 | python | [] | 0 | true | |
2024-11-19T02:31:19.297066+00:00 | 1,636,109,179,000 | eb1d60d6114d6cf0d9804b9d5a275caee00a47db | 2 | {
"blob_id": "eb1d60d6114d6cf0d9804b9d5a275caee00a47db",
"branch_name": "refs/heads/main",
"committer_date": 1636109179000,
"content_id": "920ba80ef6d445f7fba30d2296ce221a8dbde105",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8d876d645ee295db0d4d5c4ba58015329941846f",
"extension": "py",
... | 2.328125 | stackv2 | #!/usr/bin/env python3
"""
Update Google Calendar with events for next collections.
To get the required service account file, enable the Google Calendar API
in the Google Cloud console, create service account credentials with
access to it, and create keys of type JSON.
Calendar id is typically the target Google Cale... | 216 | 31.3 | 119 | 20 | 1,508 | python | [] | 0 | true | |
2024-11-19T02:31:19.563619+00:00 | 1,618,331,121,000 | 9350f4642034519e27c08126d91e0073afa480e2 | 3 | {
"blob_id": "9350f4642034519e27c08126d91e0073afa480e2",
"branch_name": "refs/heads/main",
"committer_date": 1618331121000,
"content_id": "4ddad96be8d91b085d60dc14d79b3f636e774a70",
"detected_licenses": [
"MIT"
],
"directory_id": "e84b30705061e4df12de1c93c7d1a8a6bcd7ca6b",
"extension": "py",
"file... | 2.671875 | stackv2 | from inspect import getmembers
import numpy as np
def eval_math_fn_at(fn, point):
return eval_math_fn(fn, {'x': point[0], 'y': point[1]})
def eval_math_fn(function, name_dict):
math_name_dict = dict(getmembers(np))
# Uncomment to use custom function
# x = name_dict['x']
# y = name_dict['y']
... | 17 | 22.71 | 59 | 10 | 114 | python | [] | 0 | true | |
2024-11-19T02:31:19.674460+00:00 | 1,630,584,766,000 | bf782c09760a1b1bd911a5c3cd38485cc5fa3147 | 2 | {
"blob_id": "bf782c09760a1b1bd911a5c3cd38485cc5fa3147",
"branch_name": "refs/heads/main",
"committer_date": 1630584766000,
"content_id": "6fb13b0fa9e8ac8f0f2608e2b529240c1a60ea4c",
"detected_licenses": [
"MIT"
],
"directory_id": "55a6433080d4f26c9b67eb53225837a714a8ef78",
"extension": "py",
"file... | 2.40625 | stackv2 | from calendar import timegm
from datetime import datetime
from typing import Any, Dict, List, Optional, Union
from cbor2 import CBORTag
from .cbor_processor import CBORProcessor
from .claims import Claims
from .const import COSE_KEY_OPERATION_VALUES
from .cose import COSE
from .cose_key_interface import COSEKeyInterf... | 425 | 36.12 | 88 | 16 | 3,693 | python | [] | 0 | true | |
2024-11-19T02:31:20.529393+00:00 | 1,611,735,648,000 | e05d21aa4422d17d7332823e87d1215756b2cb27 | 3 | {
"blob_id": "e05d21aa4422d17d7332823e87d1215756b2cb27",
"branch_name": "refs/heads/master",
"committer_date": 1611735648000,
"content_id": "cd5b480c3e2c68760261f413b1bb9694050dc6c0",
"detected_licenses": [
"MIT"
],
"directory_id": "4e37d1f88446477c1f828af31e34fbf6077b9ff6",
"extension": "py",
"fi... | 3.140625 | stackv2 | # importing PIL -- useful in reading/writing/viewing images
from PIL import Image
# importing numpy -- useful in matrix operations
import numpy as np
import sys
# print(sys.path)
# sys.path.append('/usr/local/lib/python3.7/site-packages')
# print(sys.path)
import cv2
import matplotlib.pyplot as plt
#import pywt
#impor... | 66 | 29.02 | 77 | 12 | 577 | python | [] | 0 | true | |
2024-11-19T02:31:20.655717+00:00 | 1,521,309,710,000 | c4472598df3f7b84261853ec0dbdc1473a9bb689 | 4 | {
"blob_id": "c4472598df3f7b84261853ec0dbdc1473a9bb689",
"branch_name": "refs/heads/master",
"committer_date": 1521309710000,
"content_id": "b6e3d058bdc2811b2e909068d8291687a5433182",
"detected_licenses": [
"MIT"
],
"directory_id": "f6ecffe76b4db3eadbbedee28e203d48955382e7",
"extension": "py",
"fi... | 3.65625 | stackv2 | """
An example of how to extract a bag of models from given data.
"""
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
count = CountVectorizer()
docs = np.array([
'The sun is shining',
'The weather is sweet',
'The sun is shinin... | 36 | 26.36 | 119 | 11 | 235 | python | [] | 0 | true | |
2024-11-19T02:31:20.886549+00:00 | 1,681,966,530,000 | b10c3c90efc277658e9d8a919bb79d3496bb3197 | 3 | {
"blob_id": "b10c3c90efc277658e9d8a919bb79d3496bb3197",
"branch_name": "refs/heads/main",
"committer_date": 1681966530000,
"content_id": "100da504fdca997c138628cdded97288b0d85bad",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3d7e0b5ea1163545ad444fde2ca96833a331565b",
"extension": "py",
... | 2.796875 | stackv2 | from dataclasses import dataclass
import json
import os
from random import Random
from pathlib import Path
from typing import Dict, List
import nltk
from nltk.corpus import wordnet
import spacy
from helm.common.general import match_case, ensure_file_downloaded
from .perturbation_description import PerturbationDescrip... | 108 | 37.97 | 126 | 19 | 994 | python | [] | 0 | true | |
2024-11-19T02:31:20.992689+00:00 | 1,504,103,148,000 | 66ff6c4567fe191ff3760a5f97c133324a5c9ecc | 2 | {
"blob_id": "66ff6c4567fe191ff3760a5f97c133324a5c9ecc",
"branch_name": "refs/heads/master",
"committer_date": 1504103148000,
"content_id": "75f173f9145e2045f88c0bc8131cec520e22bc19",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "887371724feac0c71d6112e8a00e436a9ad3aa92",
"extension": "py"... | 2.3125 | stackv2 | """
Script for implementation of doing authentication(overriding default),
For password checking , validation , blocking user login,
Generating Twilio SMS
"""
from __future__ import absolute_import
import pam
from . import sql
#from twilio.rest import TwilioRestClient
from twilio.rest import Client
from oslo_log impor... | 142 | 34.63 | 151 | 17 | 1,007 | python | [] | 0 | true | |
2024-11-19T02:31:21.063872+00:00 | 1,492,094,721,000 | beb5a006ee7761989d6960ddda1933c6341ab232 | 3 | {
"blob_id": "beb5a006ee7761989d6960ddda1933c6341ab232",
"branch_name": "refs/heads/master",
"committer_date": 1492094721000,
"content_id": "8c907b8299310ac17b888f535455be002a5b67b0",
"detected_licenses": [
"MIT"
],
"directory_id": "1488c6eff9ff20618ad73f5fce12f2917b27195b",
"extension": "py",
"fi... | 2.875 | stackv2 | import time
import subprocess
from os.path import join, curdir, abspath
class point:
def __init__(self, label, x, y, z=0):
self.label = label
self.x = x
self.y = y
self.z = z
def __repr__(self):
return "N{} x={} y={} z={}\n".format(self.label, self.x, self.y, self.z)
... | 125 | 31.28 | 104 | 15 | 1,009 | python | [] | 0 | true | |
2024-11-19T02:31:21.171972+00:00 | 1,556,829,946,000 | 99389f5ae5bb519caad9ef3b786b7949e6170496 | 3 | {
"blob_id": "99389f5ae5bb519caad9ef3b786b7949e6170496",
"branch_name": "refs/heads/master",
"committer_date": 1556829946000,
"content_id": "7b3ed1785ac3f0ef7001bf1e470af2fdde7cf115",
"detected_licenses": [
"MIT"
],
"directory_id": "2f898bb332097d11f321186207e94f6d156587f3",
"extension": "py",
"fi... | 3.078125 | stackv2 | #example taken from scipy documentation
from scipy import signal
import matplotlib.pyplot as plt
import numpy as np
#disenar el filtro usando una ventana kaiser
b = signal.firwin(32, 0.5, window='hamming', pass_zero=True)
#pasa bajas pass_zero=True
#pasa altas pass_zero=False
fs=1e3
t,T=np.linspace(1./fs,5,fs*5,rets... | 52 | 18.52 | 88 | 13 | 356 | python | [] | 0 | true | |
2024-11-19T02:31:21.227004+00:00 | 1,587,055,314,000 | bdd20ca186269d2759e9ecf5ae8ac0a444d8f194 | 2 | {
"blob_id": "bdd20ca186269d2759e9ecf5ae8ac0a444d8f194",
"branch_name": "refs/heads/master",
"committer_date": 1587055314000,
"content_id": "cce2a6faf5e0796d16d7210a85c82987f73b6111",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cd9c2c6df0567bd7be18909f4150a26a45c8a4f7",
"extension": "py"... | 2.328125 | stackv2 | #!/usr/bin/python3 -B
# Copyright 2018 Josh Pieper. 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 requir... | 211 | 25.21 | 74 | 16 | 1,681 | python | [] | 0 | true | |
2024-11-19T02:31:21.493296+00:00 | 1,686,735,562,000 | da99376bf2896900a3251c249e1165ea22b3a7ce | 3 | {
"blob_id": "da99376bf2896900a3251c249e1165ea22b3a7ce",
"branch_name": "refs/heads/master",
"committer_date": 1686735562000,
"content_id": "52021f61bf260c5571064b37a2577812d5f8a472",
"detected_licenses": [
"MIT"
],
"directory_id": "28042035f0cb17875363ac152648ccc6dbbfa1e2",
"extension": "py",
"fi... | 2.75 | stackv2 | """
Split ABC FASTQ with UMIs based on DBS cluster and cluster UMIs for each partion using UMI-tools.
"""
from collections import defaultdict
import logging
from pathlib import Path
from typing import Dict, List, Iterable, Iterator
import dnaio
from dnaio import Sequence
from umi_tools import UMIClusterer
from dbspro... | 142 | 32.73 | 116 | 14 | 1,185 | python | [] | 0 | true | |
2024-11-19T02:31:21.648561+00:00 | 1,511,162,984,000 | 890a60912d7a9d816b37056bbe410f99cf4d0a2b | 2 | {
"blob_id": "890a60912d7a9d816b37056bbe410f99cf4d0a2b",
"branch_name": "refs/heads/master",
"committer_date": 1511162984000,
"content_id": "0d952df47552487875e3d85d3b436d9f89ff8f1d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ff23a39468132efbe15f1fa3be88bbf5bf78736d",
"extension": "p... | 2.390625 | stackv2 | #!/usr/bin/env python3
# Copyright © 2017 by Mark Damon Hughes. All Rights Reserved.
# Copyright © 2017 by Alex Schroeder.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must re... | 368 | 37.23 | 123 | 19 | 2,932 | python | [] | 0 | true | |
2024-11-19T02:31:22.045947+00:00 | 1,668,664,099,000 | 9f23c31f4596e0cb894709455ff740ba9cf6891c | 3 | {
"blob_id": "9f23c31f4596e0cb894709455ff740ba9cf6891c",
"branch_name": "refs/heads/master",
"committer_date": 1668664099000,
"content_id": "b912a66db8ca01ad816efeae38b2acb7b18c56b6",
"detected_licenses": [
"MIT"
],
"directory_id": "0d46c2162cef75e7de5686ed976a95758fea1777",
"extension": "py",
"fi... | 3.15625 | stackv2 | input = [2, 7, 11, 15]
target = 9
output = [0, 1]
class Solution:
def twoSum(self, nums: list[int], target: int) -> list[int]:
if not nums:
return None
compliment = {}
for i in range(len(nums)):
comp = target - nums[i]
if nums[i] not in compliment:
... | 20 | 22.8 | 64 | 15 | 127 | python | [] | 0 | true | |
2024-11-19T02:31:22.926396+00:00 | 1,478,540,396,000 | 323d7642647972a53ef46452b2873e3b5212287f | 3 | {
"blob_id": "323d7642647972a53ef46452b2873e3b5212287f",
"branch_name": "refs/heads/master",
"committer_date": 1478540396000,
"content_id": "40e41b305e26acf3183b414da6d170075124bfa2",
"detected_licenses": [
"MIT"
],
"directory_id": "890efc19d5479ed27ede609c671476cec6560454",
"extension": "py",
"fi... | 2.71875 | stackv2 | #!/usr/bin/env python3
from panflute import *
import re
import sys
"""
Converts blockquotes of the following form:
> Note:
to actual boxes with different colours.
"""
def latex_blockquote(elem, doc):
if type(elem) != BlockQuote:
return
content = stringify(elem).strip()
if not content.startswith(... | 27 | 20.96 | 64 | 14 | 139 | python | [] | 0 | true | |
2024-11-19T02:31:23.052381+00:00 | 1,540,560,726,000 | e5cd6dc2fd2dbea1fb722a44a174b47729f1a5bd | 3 | {
"blob_id": "e5cd6dc2fd2dbea1fb722a44a174b47729f1a5bd",
"branch_name": "refs/heads/master",
"committer_date": 1540560726000,
"content_id": "d09e619aa669e0f384e38867f84d6333aa1ed384",
"detected_licenses": [
"MIT"
],
"directory_id": "1e0a75f9c87b5be5e91ddf3004b5d849bcb8bbd1",
"extension": "py",
"fi... | 2.703125 | stackv2 | # The MIT License (MIT)
# Copyright (c) 2018 by the xcube development team and contributors
#
# 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 limitation... | 138 | 41.37 | 120 | 18 | 1,357 | python | [] | 0 | true | |
2024-11-19T02:31:23.187503+00:00 | 1,592,757,130,000 | ae3de8010e494982fd2ecdc2913ab51a683e3b05 | 3 | {
"blob_id": "ae3de8010e494982fd2ecdc2913ab51a683e3b05",
"branch_name": "refs/heads/master",
"committer_date": 1592757130000,
"content_id": "9ee4e064cc4cd3aa9ef45603f52bb30812537751",
"detected_licenses": [
"MIT"
],
"directory_id": "6d4df7f3dec2d037bde2760ff18fcd8d965812d3",
"extension": "py",
"fi... | 2.75 | stackv2 | import cv2
import matplotlib.pyplot as plt
import numpy as np
def load_img():
img = cv2.imread('../DATA/bricks.jpg').astype(np.float32)/255
img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
return img
def display_img(img):
fig = plt.figure(figsize=(12,10))
ax = fig.add_subplot(111)
ax.imshow(img)
... | 34 | 27.32 | 98 | 12 | 323 | python | [] | 0 | true | |
2024-11-19T02:31:23.486466+00:00 | 1,594,740,719,000 | beb053ca12b9e0a06a81209d02dee0a6f15bf7cc | 3 | {
"blob_id": "beb053ca12b9e0a06a81209d02dee0a6f15bf7cc",
"branch_name": "refs/heads/master",
"committer_date": 1594740719000,
"content_id": "6fe2f6177fb3dcd3692474fc4984b4db7a640bb5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "13b7b70c404c7b3fe41ddfa53bbbe65ab7db90e7",
"extension": "py"... | 2.625 | stackv2 | import webbrowser, os
import json
import boto3
import io
from io import BytesIO
import sys
from pprint import pprint
file_name = sys.argv[1]
# get the results
client = boto3.client(
service_name='textract',
region_name= 'us-east-1'
)
def get_rows_columns_map(table_result, blocks_map):
rows = ... | 107 | 25.1 | 95 | 19 | 630 | python | [] | 0 | true | |
2024-11-19T02:31:28.076498+00:00 | 1,630,997,530,000 | 3b2311ad91ce2726fe45b33769031b0b03fb7d9f | 2 | {
"blob_id": "3b2311ad91ce2726fe45b33769031b0b03fb7d9f",
"branch_name": "refs/heads/master",
"committer_date": 1630997530000,
"content_id": "23b3527c85be116b561646625c0daae66ac4713e",
"detected_licenses": [
"MIT"
],
"directory_id": "dcffa77e312c6cf675f9789ff19afc5b3ee8f655",
"extension": "py",
"fi... | 2.4375 | stackv2 | from typing import List, Tuple, Optional
import torch
import torch.nn as nn
import torch.nn.functional as F
from transformers import BertModel
from dataset.ner import NerDataset
def create_pooler_matrix(
input_ids: torch.Tensor, word_idxs: List[List[int]], pool_type="head"
):
bsz, subword_len = input_ids.si... | 146 | 37.82 | 103 | 17 | 1,439 | python | [] | 0 | true | |
2024-11-19T02:31:28.196574+00:00 | 1,395,853,026,000 | b2db219074d75f4c7db4568aa0189ac1779c0515 | 2 | {
"blob_id": "b2db219074d75f4c7db4568aa0189ac1779c0515",
"branch_name": "refs/heads/master",
"committer_date": 1395853026000,
"content_id": "c0425be0fdfa9bafce9a44be1f3085145ceb7207",
"detected_licenses": [
"MIT"
],
"directory_id": "df4fda6608751c82c26d0d79b16f6974d70ab0cb",
"extension": "py",
"fi... | 2.40625 | stackv2 | import os.path
from cirosantilli import files
import re
reload(files)
"""
This file is more like a command line, it contains quick and simple applications that
will quickly be erased and forgotten, do not put anything of value here.
"""
sqrtbra = re.compile(r'^\[(\d|\d\d)\]')
dgt0 = re.compile(r'^\D.*?(\d\d)\D')
dgt... | 119 | 24.27 | 118 | 17 | 967 | python | [] | 0 | true | |
2024-11-19T02:31:28.326853+00:00 | 1,526,962,089,000 | f6372c0ef267b40f1c45fdb1c0b986de815c9c60 | 3 | {
"blob_id": "f6372c0ef267b40f1c45fdb1c0b986de815c9c60",
"branch_name": "refs/heads/master",
"committer_date": 1526962089000,
"content_id": "487efedbc1943dd53b027070e569e3ae97ae79a8",
"detected_licenses": [
"MIT"
],
"directory_id": "a6eb0b83c25cfe3812c0a8d2096eba3e6f6d0504",
"extension": "py",
"fi... | 2.9375 | stackv2 | import pycuda.gpuarray as gpuarray
import pycuda.driver as cuda
import pycuda.tools as tools
import pycuda.autoinit
import numpy, random, time
from pycuda.curandom import rand as curand
from pycuda.elementwise import ElementwiseKernel as Elementwise
x = 50
y = 50
z = 2
width = 100
height = 100
depth = 100
def main():... | 56 | 31.59 | 94 | 17 | 459 | python | [] | 0 | true | |
2024-11-19T02:31:28.454119+00:00 | 1,598,747,937,000 | d002d8f5efe518042a61d796a604b042294fd3b8 | 3 | {
"blob_id": "d002d8f5efe518042a61d796a604b042294fd3b8",
"branch_name": "refs/heads/master",
"committer_date": 1598747937000,
"content_id": "f6c57a84acae238a1724810cc96aeb205affdeea",
"detected_licenses": [
"MIT"
],
"directory_id": "08fbf15759d85a1ef38251f8be3877421e7cd698",
"extension": "py",
"fi... | 2.875 | stackv2 | # SYNCS Hackathon 2020
# jadaj - Circular
import numpy as np
import matplotlib.pyplot as plt
import statsmodels.api as sm
import cv2
from PIL import Image
import io
import base64
# Inputs:
# image (2d array-like): Will consider all non-zero entries in array as part of circle
# centre ((float, float))
# Outputs:
# (i... | 120 | 33.77 | 135 | 21 | 1,282 | python | [] | 0 | true | |
2024-11-19T02:31:28.694175+00:00 | 1,693,346,448,000 | 0d7d5123b376fccc32fba8173e687d2c2b542e87 | 3 | {
"blob_id": "0d7d5123b376fccc32fba8173e687d2c2b542e87",
"branch_name": "refs/heads/master",
"committer_date": 1693346448000,
"content_id": "6ef09c9dcd3a62fc0ee4e40e2586aaa6630b7810",
"detected_licenses": [
"MIT"
],
"directory_id": "9dd9a4289c1f89a1d25501db8f82e02dc5704d1a",
"extension": "py",
"fi... | 2.859375 | stackv2 | #!/usr/bin/env python
import sys
import re
import argparse
from Bio import SeqIO
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description=(
"Read a GenBank flat file and print GenBank or FASTA for " "matching records."
),
)
parser.add_argument(
"ge... | 114 | 23.49 | 87 | 14 | 656 | python | [] | 0 | true | |
2024-11-19T02:31:28.812131+00:00 | 1,583,160,524,000 | 5529313573375363160a06bbfb6afcc4b3a58437 | 3 | {
"blob_id": "5529313573375363160a06bbfb6afcc4b3a58437",
"branch_name": "refs/heads/master",
"committer_date": 1583160524000,
"content_id": "124dca47aa33b19033484dddabf9fcd5fcd3d607",
"detected_licenses": [
"MIT"
],
"directory_id": "afe3670eb9c58f40819f58948ef4a8f5d5d52fb6",
"extension": "py",
"fi... | 3.09375 | stackv2 | """
MsPE for time delay (tau) and dimension (n).
=================================================
This function implements Multi-scale Permutation Entropy (MsPE) for the selection of n and tau for permutation entropy.
Additionally, it only requires a single time series, is robust to additive noise, and has a fast co... | 153 | 31.13 | 122 | 17 | 1,316 | python | [] | 0 | true | |
2024-11-19T02:31:28.940183+00:00 | 1,471,450,125,000 | 50b3513b84fb93366478218de12750386f853a18 | 3 | {
"blob_id": "50b3513b84fb93366478218de12750386f853a18",
"branch_name": "refs/heads/master",
"committer_date": 1471450125000,
"content_id": "f956f352eb029f204f64b3c03409659784a94158",
"detected_licenses": [
"MIT"
],
"directory_id": "6e54804f8b61bbc70fc6f320059cf9c7b42b055c",
"extension": "py",
"fi... | 2.578125 | stackv2 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import math
from pokemongo_bot.cell_workers.utils import distance, format_dist
from pokemongo_bot.step_walker import StepWalker
from pokemongo_bot.base_task import BaseTask
class FollowSpiral(BaseTask):
SUPPORTED_TASK_API_VERSION = ... | 126 | 32.46 | 112 | 19 | 1,019 | python | [] | 0 | true | |
2024-11-19T02:31:29.000845+00:00 | 1,624,885,833,000 | 2cf613f70617eff2830514b25cd84cc2decd635c | 4 | {
"blob_id": "2cf613f70617eff2830514b25cd84cc2decd635c",
"branch_name": "refs/heads/main",
"committer_date": 1624885833000,
"content_id": "ba7be53484a6ddd3c3212d4a610881d2359f958b",
"detected_licenses": [
"MIT"
],
"directory_id": "459cfc58dde4c491d1e0cf92bd3b33176eb02ba1",
"extension": "py",
"file... | 3.8125 | stackv2 | #!/usr/bin/python3
import re
import sys
from select import select
# Checks each word for validity and then adds up their dominant letter totals.
def get_dominant_letter_count(word_list, valid_word):
"""
:param word_list: a list of words composing a sentence.
:param valid_word: a regex string defining the... | 60 | 33.8 | 93 | 16 | 460 | python | [] | 0 | true | |
2024-11-19T02:31:29.372445+00:00 | 1,603,651,264,000 | 0e9b2a8cafd20d771447148a6ed5a8e19d260535 | 3 | {
"blob_id": "0e9b2a8cafd20d771447148a6ed5a8e19d260535",
"branch_name": "refs/heads/master",
"committer_date": 1603651264000,
"content_id": "088461af93a9efdcf086dc200e3791f996892ba4",
"detected_licenses": [
"MIT"
],
"directory_id": "41d0dc5e9d672624844e957548653e1542022ba0",
"extension": "py",
"fi... | 3.234375 | stackv2 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 14 09:34:38 2020
@author: Lara Vomfell
This code generates Figure 1 in our code by generating some Poisson outcomes,
contaminating 10% of the data with outliers and then running a KLD-minimizing
and a TVD-minimizing model and plotting the resulting... | 62 | 26.44 | 77 | 9 | 583 | python | [] | 0 | true | |
2024-11-19T02:31:29.498794+00:00 | 1,547,038,450,000 | 9523fcbd2723ccbf8fa3631ac5e6234c5b591ca4 | 2 | {
"blob_id": "9523fcbd2723ccbf8fa3631ac5e6234c5b591ca4",
"branch_name": "refs/heads/master",
"committer_date": 1547038450000,
"content_id": "c53e5f20e98c4ba8a9c8b370848f27b267cc71ff",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "da648fd0410249a7afede0705f5f4f7ab12a5f15",
"extension": "py"... | 2.359375 | stackv2 | from datetime import datetime
import time
from keras.regularizers import l2
from keras.models import Sequential
from keras.optimizers import Adagrad
from keras.layers import Dense, Dropout
import tensorflow as tf
tf.python.control_flow_ops = tf
from utils import *
# determine GPU number
import os
os.environ['CUDA_VIS... | 70 | 33.96 | 109 | 19 | 708 | python | [] | 0 | true | |
2024-11-19T02:31:36.090176+00:00 | 1,585,601,253,000 | 263231acf1e7e0554903d321a67f2ea6ffb45387 | 3 | {
"blob_id": "263231acf1e7e0554903d321a67f2ea6ffb45387",
"branch_name": "refs/heads/master",
"committer_date": 1585601253000,
"content_id": "ca2c63ec1f526bcb42e1c6306b6e95a716f663b6",
"detected_licenses": [
"MIT"
],
"directory_id": "423569ae5e25291114816cd320c0273cd9048bf8",
"extension": "py",
"fi... | 2.734375 | stackv2 | #!/usr/bin/env python
import csv
import subprocess
import re
import math
import json
import os
from optparse import OptionParser
length_regexp = 'Duration: (\d{2}):(\d{2}):(\d{2})\.\d+,'
re_length = re.compile(length_regexp)
def split_by_manifest(filename, manifest, vcodec="copy", acodec="copy",
... | 167 | 36.43 | 80 | 22 | 1,252 | python | [] | 0 | true | |
2024-11-19T02:31:36.238179+00:00 | 1,620,527,244,000 | 98791eed4ceb35518aa94af91463a3b0d324d729 | 2 | {
"blob_id": "98791eed4ceb35518aa94af91463a3b0d324d729",
"branch_name": "refs/heads/master",
"committer_date": 1620527244000,
"content_id": "8143a47dcff2661b58e7a99b5184b23231edb679",
"detected_licenses": [
"MIT"
],
"directory_id": "9508bfd5f4066a9d9277831f2c6c34cc57d803f1",
"extension": "py",
"fi... | 2.46875 | stackv2 | from api.core.anime import *
from api.core.proxy import AnimeProxy
class K1080(AnimeSearcher):
async def search(self, keyword: str):
data, total_page = await self.get_one_page(keyword, 1)
for item in self.parse_anime_metas(data):
yield item
if total_page > 1:
tasks... | 107 | 34.18 | 120 | 20 | 919 | python | [{"finding_id": "codeql_py/incomplete-url-substring-sanitization_cccb7c0b04515715_ea7a6f5a", "tool_name": "codeql", "rule_id": "py/incomplete-url-substring-sanitization", "finding_type": "problem", "severity": "medium", "confidence": "high", "message": "The string [gtimg.com](1) may be at an arbitrary position in the s... | 3 | true | |
2024-11-19T02:31:36.346671+00:00 | 1,615,916,173,000 | 2525291d8330ebd5052d98acc0f93017a7d3ea3c | 3 | {
"blob_id": "2525291d8330ebd5052d98acc0f93017a7d3ea3c",
"branch_name": "refs/heads/main",
"committer_date": 1615916173000,
"content_id": "747a8f3e35d82a4f00bad7ce2102627531151830",
"detected_licenses": [
"MIT"
],
"directory_id": "e9bcabc640d02dcd5d46f0ecccdd6c62a822ff2f",
"extension": "py",
"file... | 3.34375 | stackv2 | import sys
from time import sleep
player = 10
sleep(1)
#Welcome
print ('=' *38)
print ('\033[1;33mWelcome to game I ALREADY and I NEVER!\033[m')
print ('=' *38)
sleep(2)
#Rules
print ('''\033[1;33mRules:
1 ° For every question you ask you lose 1 POINT
2 ° For every question you have never asked you will n... | 98 | 30.92 | 110 | 10 | 1,212 | python | [] | 0 | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.