Dataset Viewer
Auto-converted to Parquet Duplicate
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.34
source
stringclasses
1 value
text
stringlengths
259
23.5k
num_lines
int64
16
648
avg_line_length
float64
15
60.9
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
276k
sast_codeql_findings_count
int64
0
33
sast_codeql_success
bool
1 class
sast_codeql_error
stringclasses
1 value
2024-11-18T18:05:43.388874+00:00
1,567,036,262,000
912041d1cee909d29a9b46991268ac30470556ff
3
{ "blob_id": "912041d1cee909d29a9b46991268ac30470556ff", "branch_name": "refs/heads/master", "committer_date": 1567036262000, "content_id": "c6d2536833fc35c3e025cd9d5cea56298f7fe360", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ca5fc43049f94a794d90a561fd8126f02b603599", "extension": "p...
2.5625
stackv2
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2016-2017 by I3py Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ----------------...
90
28.24
79
16
535
python
[]
0
true
2024-11-18T18:05:43.651051+00:00
1,515,988,614,000
3c76f351fc6cfd2597b6e8471e52ac18606ae091
2
{ "blob_id": "3c76f351fc6cfd2597b6e8471e52ac18606ae091", "branch_name": "refs/heads/master", "committer_date": 1515988614000, "content_id": "472cbf590142d1d67a62dfdc14e3622b830d60a2", "detected_licenses": [ "MIT" ], "directory_id": "ef5bec8d5d6875b3124b87ab799141377b969ffe", "extension": "py", "fi...
2.328125
stackv2
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User class Item(models.Model): ''' An item for loan ''' item_type = models.CharField(max_length=30, blank=False) location = models.CharField(max_length=30, blank=Fals...
34
39.44
102
10
300
python
[]
0
true
2024-11-18T18:05:43.726888+00:00
1,610,109,030,000
ee5c70ca3ae2e11037aba30e5e217e520133016b
3
{ "blob_id": "ee5c70ca3ae2e11037aba30e5e217e520133016b", "branch_name": "refs/heads/master", "committer_date": 1610109030000, "content_id": "c7214a1d9e46a6d41202bffcb1bb62dea93f5df0", "detected_licenses": [ "Apache-2.0", "Python-2.0" ], "directory_id": "e75e87f4114edf2e769e1502134a4f866f28ca78", ...
2.796875
stackv2
from .base import BaseAPI from ..metadata import CurveType from ..parser.timeseries import parse_timeseries # Tuple of supported values for Curve.curve_type in the time series API CURVE_TYPES = (CurveType.TIMESERIES, CurveType.SCENARIO_TIMESERIES) class TimeseriesAPI(BaseAPI): """ Time series API operations...
66
38.68
88
12
595
python
[]
0
true
2024-11-18T18:05:43.895243+00:00
1,619,674,139,000
c814a34864a4158acf4e1abbbb583376f3efad66
3
{ "blob_id": "c814a34864a4158acf4e1abbbb583376f3efad66", "branch_name": "refs/heads/master", "committer_date": 1619674139000, "content_id": "8b45c9393b96c8f7482a7754a3078e8eb2a7bbc4", "detected_licenses": [ "MIT" ], "directory_id": "4790aa158050f52b2f0fa990467774c5276b4bc8", "extension": "py", "fi...
2.640625
stackv2
import numpy as np import torch import torch.nn.functional as F def sample_gumbel(shape, eps=1e-10): """ NOTE: Stolen from https://github.com/YongfeiYan/Gumbel_Softmax_VAE/blob/master/gumbel_softmax_vae.py Sample from Gumbel(0, 1) based on https://github.com/ericjang/gumbel-softmax/blob/3c858492...
201
30.78
118
16
1,799
python
[]
0
true
2024-11-18T18:05:44.180405+00:00
1,487,096,748,000
f66444c9b20297e96d451b5216019f2f5e1608a2
3
{ "blob_id": "f66444c9b20297e96d451b5216019f2f5e1608a2", "branch_name": "refs/heads/master", "committer_date": 1487096748000, "content_id": "8d9ac11787edbcb15bd3b63115a95a1be7e3836b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "1ef0b40be50ab0094b8bdf493dddbc1b2e8935cb", "extension": "p...
3.046875
stackv2
#!/usr/bin/env python3 """This example shows how to use the Thermo3 Click wrapper of the LetMeCreate library. It reads the temperature from the sensor and exits. The Thermo3 Click must be inserted in Mikrobus 1 before running this program. """ from letmecreate.core import i2c from letmecreate.core.common import MI...
27
20.67
77
9
164
python
[]
0
true
2024-11-18T18:05:44.243598+00:00
1,616,379,521,000
e499f5a96555c30d62ba84e6a2a828f038b81458
4
{ "blob_id": "e499f5a96555c30d62ba84e6a2a828f038b81458", "branch_name": "refs/heads/master", "committer_date": 1616379521000, "content_id": "fd1fd060ee4d78f53d8ddd4c089fe6243cc28c26", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ec93898c4792f3eb920eaa0159cced2cc6d5274d", "extension": "p...
3.703125
stackv2
# shuffle file and rename import os from random import shuffle # Function to rename multiple files def main(): num = [] for count in range(200): if count < 10: dst = "00" + str(count) + ".jpg" num.append(dst) elif count < 100 and count > 9: dst = "0" ...
31
25.06
61
15
205
python
[]
0
true
2024-11-18T18:05:44.308384+00:00
1,578,981,575,000
8d0411d1a3851550c8d731400213ff48f1c3b0c7
2
{ "blob_id": "8d0411d1a3851550c8d731400213ff48f1c3b0c7", "branch_name": "refs/heads/master", "committer_date": 1578981575000, "content_id": "e86b6be15675ecfb59b4c74485893d83221a5f43", "detected_licenses": [ "MIT" ], "directory_id": "8142e588999503979e1cd9d1989cdd43dc9417d6", "extension": "py", "fi...
2.390625
stackv2
from evkit.models.taskonomy_network import TaskonomyDecoder from tlkit.utils import SINGLE_IMAGE_TASKS, TASKS_TO_CHANNELS, FEED_FORWARD_TASKS import torch import torch.nn.functional as F def softmax_cross_entropy(inputs, target, weight=None, cache={}, size_average=None, ignore_index=-100, reduce=None...
235
47.47
151
20
2,680
python
[]
0
true
2024-11-18T18:05:44.364393+00:00
1,611,199,867,000
ee5b19626616ec7568a5cb774bc5a76529f3c51e
3
{ "blob_id": "ee5b19626616ec7568a5cb774bc5a76529f3c51e", "branch_name": "refs/heads/main", "committer_date": 1611199867000, "content_id": "18f2c7b9a15197f4a4144413fbc6b994a8d3c99f", "detected_licenses": [ "MIT" ], "directory_id": "6803e1834d76c7a9c1fd2484bbfb438615c341a2", "extension": "py", "file...
2.921875
stackv2
from more_itertools import split_at grps = split_at(map(str.rstrip, open('d22.txt')), pred=lambda e: e == '') grps = list(grps) grp1 = list(map(int, grps[0][1:])) grp2 = list(map(int, grps[1][1:])) FIRST_DECK_WON = 0 SECOND_DECK_WON = 1 old_print=print print=lambda *args: None def match(grp1, grp2, depth=0): memo...
61
34.2
87
17
668
python
[]
0
true
2024-11-18T18:05:44.494368+00:00
1,636,657,919,000
fa744d53462754fe0a60b43129fa4253a93b8640
2
{ "blob_id": "fa744d53462754fe0a60b43129fa4253a93b8640", "branch_name": "refs/heads/main", "committer_date": 1636657919000, "content_id": "0e1e3551fdc51aeacbd45c453caf0fe56abd7d37", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d29ad540b82d834509697f65b98ccd54514bb51d", "extension": "py", ...
2.453125
stackv2
#!/usr/local/bin/python # -*- coding:utf-8 -*- import os import logging import time import atexit import json import random from threading import Timer import paho.mqtt.client as mqtt logging.basicConfig(level=logging.INFO) bpmThreshold = int(os.getenv("BPM_THRESHOLD", "80")) mqttRetryPeriod = int(os.getenv("MQTT_RET...
94
24.07
85
18
526
python
[]
0
true
2024-11-18T18:05:44.612828+00:00
1,692,088,231,000
ea424e926ccd447792ed52f737b5a7a6c624043a
2
{ "blob_id": "ea424e926ccd447792ed52f737b5a7a6c624043a", "branch_name": "refs/heads/master", "committer_date": 1692088231000, "content_id": "4a7bb7a8e088e4cbe8723325ef44f7da19e4de8b", "detected_licenses": [ "MIT" ], "directory_id": "586c97e81b448d9f4c1525205eaccc727f789ee7", "extension": "py", "fi...
2.328125
stackv2
"Bit of a floating module, I guess to avoid circular dependencies. Needs to be reconciled somehow." from . import bluegreen, bluegreen_v2, context_handler, cloudformation def concurrency_for(stackname, concurrency_name): """concurrency default is to perform updates one machine at a time. Concurrency can be: ...
31
35.45
117
14
245
python
[]
0
true
2024-11-18T18:05:45.004802+00:00
1,553,968,313,000
3d4e3f0ca608cdd90cf10c1b9ff48162f1894a9c
3
{ "blob_id": "3d4e3f0ca608cdd90cf10c1b9ff48162f1894a9c", "branch_name": "refs/heads/master", "committer_date": 1553968313000, "content_id": "a401326a18810b96c3f274a9ca12b3d5b36fbe8f", "detected_licenses": [ "MIT" ], "directory_id": "8f501d223fa7942a7994cd5b7788626386bbe1ea", "extension": "py", "fi...
2.765625
stackv2
# source: https://github.com/django/django/blob/master/django/utils/crypto.py """ Django's standard crypto functions and utilities. """ import hashlib import hmac import random import time from .encoding import force_bytes # Use the system PRNG if possible try: random = random.SystemRandom() using_sysrandom ...
51
31.86
80
11
389
python
[{"finding_id": "codeql_py/weak-sensitive-data-hashing_5c97c29f46b37af3_d1c117d7", "tool_name": "codeql", "rule_id": "py/weak-sensitive-data-hashing", "finding_type": "path-problem", "severity": "medium", "confidence": "high", "message": "[Sensitive data (secret)](1) is used in a hashing algorithm (SHA1) that is insecu...
1
true
2024-11-18T18:05:45.157547+00:00
1,430,934,893,000
9936379ea8ae076b9b0c4ce5b322d8a12497e38a
2
{ "blob_id": "9936379ea8ae076b9b0c4ce5b322d8a12497e38a", "branch_name": "refs/heads/master", "committer_date": 1431212320000, "content_id": "92a5167070c5a64bd70518f188bd927997a14043", "detected_licenses": [ "MIT" ], "directory_id": "7492f373430262e8ba95c4cc52517ed23107dc67", "extension": "py", "fi...
2.359375
stackv2
from formatter import Formatter from textwrap import dedent from socket import AF_INET, AF_INET6, inet_pton, error as socket_error def try_inet_pton(af, ip): try: inet_pton(af, ip) return True except socket_error: return False class _DNSFormatter(Formatter): filters = { ...
139
29.15
85
20
851
python
[]
0
true
2024-11-18T18:05:45.216591+00:00
1,520,583,750,000
7b396ee7a42a3d6d13a2ce05911851c1a7280a99
2
{ "blob_id": "7b396ee7a42a3d6d13a2ce05911851c1a7280a99", "branch_name": "refs/heads/master", "committer_date": 1520587886000, "content_id": "834c4ebd683a9b3093dc1ad00ad760381f8f8b35", "detected_licenses": [ "Apache-2.0" ], "directory_id": "16a223d5cb6a96e1b6a9aa84636670fa7ddf7fda", "extension": "py"...
2.453125
stackv2
# -*- coding: utf-8 -*- """ CRUD operation for environment model """ from DB.api import database from DB import exception from DB.models import Environment from DB.api import dbutils as utils RESP_FIELDS = ['id', 'resource', 'resource_id', 'temperature', 'humidity', 'pressure', 'uv_index', 'created_at'] SRC_EXISTED_F...
58
34.57
112
13
463
python
[]
0
true
2024-11-18T18:05:45.285112+00:00
1,656,655,324,000
a1276ef6fdb8b15fbc036f607af938a8167a8e55
2
{ "blob_id": "a1276ef6fdb8b15fbc036f607af938a8167a8e55", "branch_name": "refs/heads/master", "committer_date": 1656655324000, "content_id": "3a1c19d1fff76ffb23b49e8d8e650ef5b7d3353f", "detected_licenses": [ "MIT" ], "directory_id": "17887c1493c24e232de6ed65f4a7a1a715dad5de", "extension": "py", "fi...
2.390625
stackv2
" Userman: User handlers. " import json import logging import tornado.web import pycountry import requests from . import constants from . import settings from . import utils from .saver import DocumentSaver from .requesthandler import RequestHandler class UserSaver(DocumentSaver): doctype = constants.USER ...
366
37.25
84
18
2,806
python
[]
0
true
2024-11-18T18:05:45.516829+00:00
1,555,971,647,000
802f1ee328eed72d7ebaefc238221a6e2473c2a0
3
{ "blob_id": "802f1ee328eed72d7ebaefc238221a6e2473c2a0", "branch_name": "refs/heads/master", "committer_date": 1555971647000, "content_id": "839d3604c6ec26c623a189a8fa3d34686739a921", "detected_licenses": [ "MIT" ], "directory_id": "3487e0a57626fb77b5e7a2b8ca05967d091bfd46", "extension": "py", "fi...
2.875
stackv2
""" """ import logging from flask import request class RequestFormatter(logging.Formatter): def format(self, record): record.url = request.url record.remote_addr = request.remote_addr return super().format(record) def fmt(method: str, username: str, description: str) -> str: """ ...
30
21.67
71
11
156
python
[]
0
true
2024-11-18T18:05:45.845735+00:00
1,546,505,158,000
3a16caa3024ddf7a923ceb439c9222a19d791635
4
{ "blob_id": "3a16caa3024ddf7a923ceb439c9222a19d791635", "branch_name": "refs/heads/master", "committer_date": 1546505158000, "content_id": "fe1b402847974895a719e2409dad259e001e7416", "detected_licenses": [ "MIT" ], "directory_id": "8bec264dedd43697074890e3e4ac2368f007dae4", "extension": "py", "fi...
3.609375
stackv2
import csv def adresswriter(name,email): with open('data.csv', 'a+') as csvfile: filewriter = csv.writer(csvfile, delimiter=',',quotechar='|', quoting=csv.QUOTE_MINIMAL) filewriter.writerow([name, email]) x=0 while 1==1: em=input('enter email address: ') nm=input('enter name/names...
16
25.06
96
12
114
python
[]
0
true
2024-11-18T18:05:45.896623+00:00
1,459,329,252,000
6332ead8e3decd5eb3750b8a88834aa153641bce
2
{ "blob_id": "6332ead8e3decd5eb3750b8a88834aa153641bce", "branch_name": "refs/heads/master", "committer_date": 1459329252000, "content_id": "af7fee61b0d5426e89b929f3901a907d2549829d", "detected_licenses": [ "MIT" ], "directory_id": "1d63cf9c51f14b70940263150cd93e3896c2ae55", "extension": "py", "fi...
2.421875
stackv2
# -*- coding: utf-8 -*- ## @package ivf.datasets.threed_model # # ivf.datasets.threed_model utility package. # @author tody # @date 2016/02/18 import os from ivf.datasets.datasets import datasetRootDir, subDirectory, datasetFiles, datasetFileNames def shapeDatasetDir(): return os.path.join(dataset...
44
25.98
94
11
282
python
[]
0
true
2024-11-18T18:05:46.003289+00:00
1,622,992,309,000
8040661275f659e441d8d8ed5d98cb211cfd746e
2
{ "blob_id": "8040661275f659e441d8d8ed5d98cb211cfd746e", "branch_name": "refs/heads/master", "committer_date": 1622992309000, "content_id": "2e87b042e559de792219aa4c9b318e1d4b55f78e", "detected_licenses": [ "MIT" ], "directory_id": "16b56c2b25126fd11a9e191f79473d13c33e6013", "extension": "py", "fi...
2.34375
stackv2
import argparse import os from rxnebm.data.preprocess import clean_smiles, prep_crem, prep_nmslib, smi_to_fp def parse_args(): """This is directly copied from trainEBM.py""" parser = argparse.ArgumentParser("trainEBM.py") parser.add_argument( "--train_from_scratch", help="Whether to train ...
160
28.11
87
12
1,127
python
[]
0
true
2024-11-18T18:05:46.316567+00:00
1,680,854,992,000
28acc4967de2f8d78443da54b955b2829bc6956a
2
{ "blob_id": "28acc4967de2f8d78443da54b955b2829bc6956a", "branch_name": "refs/heads/master", "committer_date": 1680854992000, "content_id": "4d2cb48436d0ccb9e065fc11bbf615ca06821d73", "detected_licenses": [ "MIT" ], "directory_id": "c9fe7a29cceffeed3823609b5f4b2dfe401c2e19", "extension": "py", "fi...
2.453125
stackv2
from pyecharts import options as opts from pyecharts.charts import Bar from pyecharts.faker import Faker c = ( Bar() .add_xaxis(Faker.choose()) .add_yaxis("商家A", Faker.values()) .add_yaxis("商家B", Faker.values()) .set_global_opts( title_opts=opts.TitleOpts(title="Bar-Y 轴 formatter"), ...
16
27.19
88
17
123
python
[]
0
true
2024-11-18T18:05:47.825342+00:00
1,523,226,785,000
d92bff9d07c93b4bf2cb825a0b311a0f571da528
3
{ "blob_id": "d92bff9d07c93b4bf2cb825a0b311a0f571da528", "branch_name": "refs/heads/master", "committer_date": 1523226785000, "content_id": "7a17779f3b0ab3aa1b6654552ffcf1072539d160", "detected_licenses": [ "MIT" ], "directory_id": "d91b9e75b6832aa8998c6acd7d61f150fa08f23e", "extension": "py", "fi...
3.09375
stackv2
''' Owner - Rawal Shree Email - rawalshreepal000@gmail.com Github - https://github.com/rawalshree ''' import math global plain global cipher global Success Success = False plain = "" cipher = "" class Railfence: def setKey(self, key): global Success try: self.key = int(key) ...
66
22.71
85
19
346
python
[]
0
true
2024-11-18T18:05:47.942427+00:00
1,693,585,381,000
ba30087c38abe46c4dc4415c1a63caaf047b5422
3
{ "blob_id": "ba30087c38abe46c4dc4415c1a63caaf047b5422", "branch_name": "refs/heads/main", "committer_date": 1693585381000, "content_id": "fcda9904a9e9694b8e8a4952261b2681baa39a3e", "detected_licenses": [ "Apache-2.0", "MIT" ], "directory_id": "d51f530078404a24f1844b53b037bbfed238a784", "extensi...
2.5625
stackv2
# This code is a sample only. Not for use in production. # # Author: Katreena Mullican # Contact: mullicak@amazon.com # import boto3 import os import json s3 = boto3.client('s3') rekognition = boto3.client('rekognition') dynamodb = boto3.client('dynamodb') def handler(event, context): bucket_name = (os.environ['B...
56
30.29
116
16
397
python
[]
0
true
2024-11-18T18:05:48.482099+00:00
1,633,365,751,000
bbefe569b43449a354c0f0f39fc14435447c2456
3
{ "blob_id": "bbefe569b43449a354c0f0f39fc14435447c2456", "branch_name": "refs/heads/main", "committer_date": 1633365751000, "content_id": "324904ce1c6219304616d7ef816834d92dec3937", "detected_licenses": [ "MIT", "MIT-0" ], "directory_id": "97cfb911dd043a130a5467aceb4726bdd3ef5c4b", "extension": ...
2.765625
stackv2
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # CloudWatch Custom Widget sample: simple debugger, displays form and parameters passed to widget import json import os DOCS = """ ## Custom Widget Debugger A simpler "debugger" custom widget that prints out: * the L...
75
34.57
159
10
648
python
[]
0
true
2024-11-18T18:05:48.540417+00:00
1,616,777,238,000
768cf9044f56568dd13f1f85b888f28e1c866a05
2
{ "blob_id": "768cf9044f56568dd13f1f85b888f28e1c866a05", "branch_name": "refs/heads/master", "committer_date": 1616777238000, "content_id": "28db1e9337930026c4341405595326ba923c402f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c7739a60eac9492e4b34f062ccd495955ccc9531", "extension": "py"...
2.40625
stackv2
# -*- coding: utf-8 -*- # This file is part of the Ingram Micro Cloud Blue Connect connect-cli. # Copyright (c) 2019-2021 Ingram Micro. All Rights Reserved. import json import subprocess import click def continue_or_quit(): while True: click.echo('') click.echo("Press 'c' to continue or 'q' to q...
34
27.85
80
16
241
python
[]
0
true
2024-11-18T18:05:48.758111+00:00
1,580,765,531,000
d4312ef8c150274407c0e4854c1de02e54551411
4
{ "blob_id": "d4312ef8c150274407c0e4854c1de02e54551411", "branch_name": "refs/heads/master", "committer_date": 1580765531000, "content_id": "1335b966db57c4859ac7768080db7b96935d44fa", "detected_licenses": [ "MIT" ], "directory_id": "2575ee8d1deff4f24b2dc10a392def0647f3a323", "extension": "py", "fi...
3.59375
stackv2
# Solving the 2-SUM problem using a hash table # prints out the number of target sums t in a given range that have at least one pair of numbers adding up to it from tqdm import tqdm h = {} with open('2sum.txt', 'r') as doc: for line in doc: h[int(line)] = 1 c = 0 for t in tqdm(range(-10000, 10001)): ...
18
22.61
112
11
132
python
[]
0
true
2024-11-18T18:05:48.834403+00:00
1,605,371,254,000
fe0ea0c87e90612db5a6624c3317b7ca97d31d0a
3
{ "blob_id": "fe0ea0c87e90612db5a6624c3317b7ca97d31d0a", "branch_name": "refs/heads/main", "committer_date": 1605371254000, "content_id": "3b88a5d19bcd5467e8414d5ba19790618bb9c499", "detected_licenses": [ "MIT" ], "directory_id": "ab4f947fa7d70247a3a71b557c1dcb9de4da232f", "extension": "py", "file...
3.3125
stackv2
import pygame as pg class Display: """ docstring """ def __init__(self, game, screen_width, screen_height, offset_height, background_color): self.screen_height = screen_height self.screen_width = screen_width self.screen = pg.display.set_mode((screen_width, screen_height)) ...
35
40.69
114
17
306
python
[]
0
true
2024-11-18T18:05:49.936607+00:00
1,543,693,800,000
9fe6f61b04a321be9e7ea0318a488ccb8faf3608
3
{ "blob_id": "9fe6f61b04a321be9e7ea0318a488ccb8faf3608", "branch_name": "refs/heads/master", "committer_date": 1543693800000, "content_id": "d497ea43363e9a4a6a373fd45e7f54930340d0ad", "detected_licenses": [ "MIT" ], "directory_id": "2314eedcc18cb6915241b9f01cf6b37aab3dd580", "extension": "py", "fi...
2.859375
stackv2
#!/usr/bin/env python3 from ev3dev2.utility.global_variable import * def degrees_sollevatore(direction, degrees): # comandi per il sollevatore command = 1 # conversion = 8600 if direction is UP: command = -1 return command*degrees*24 def degrees_braccio(direction, degrees): # comand...
36
23.08
58
11
241
python
[]
0
true
2024-11-18T18:05:50.236363+00:00
1,486,398,951,000
61ffdc477f0ecc2b6c07b3616e7042bc8e68f905
2
{ "blob_id": "61ffdc477f0ecc2b6c07b3616e7042bc8e68f905", "branch_name": "refs/heads/master", "committer_date": 1486398951000, "content_id": "35e82aa8efe4e5103e720972d8ec213a833c170c", "detected_licenses": [ "ISC" ], "directory_id": "e781a2a5dbd55bf7591fec9efb50b3bc3bad5167", "extension": "py", "fi...
2.328125
stackv2
import uuid from django.db import models from ckeditor.fields import RichTextField from django.utils.translation import ugettext_lazy as _ class AgeCategories(object): choices = ( ('default', _('Default')), ('children', _('Children')), ('young', _('Young')), ('adults', _('Adults')...
138
30.4
115
11
902
python
[]
0
true
2024-11-18T18:05:50.435877+00:00
1,632,236,428,000
c07cc5f5412176eb9a5a9ee266c8c34e3363267d
3
{ "blob_id": "c07cc5f5412176eb9a5a9ee266c8c34e3363267d", "branch_name": "refs/heads/main", "committer_date": 1632236428000, "content_id": "40254bbd782cebf888602efbcbafda1a4f93f1e8", "detected_licenses": [ "MIT" ], "directory_id": "e93c6e93f612bca7f192adf539b4f489ad114ab5", "extension": "py", "file...
2.625
stackv2
# ---- Worker application -------------------------------- import json import os import pika from CaptureThread import CaptureThread from PortscanThread import PortscanThread from TracerouteThread import TracerouteThread CAPTURE = "capture" PORTSCAN = "portscan" TRACEROUTE = "traceroute" if os.geteuid() != 0: ...
84
27.55
92
13
574
python
[]
0
true
2024-11-18T18:05:50.494597+00:00
1,600,457,101,000
cc71e14c4713664a632c671fd7c0cf4949920d0c
3
{ "blob_id": "cc71e14c4713664a632c671fd7c0cf4949920d0c", "branch_name": "refs/heads/master", "committer_date": 1600457101000, "content_id": "06c4f4e947ff23b5c316f3fc9d3ff2755fad8197", "detected_licenses": [ "MIT" ], "directory_id": "202d5846883e772a5ffc96f7ee72878c11b6b7cf", "extension": "py", "fi...
2.875
stackv2
import numpy import argparse import os import time import dlib import cv2 as cv from math import hypot from face import face_tracker # Descripción para argumentos del script parser = argparse.ArgumentParser(description = 'Image Convolution') parser.add_argument('-f','--file', default="", help="Introduce file name.") ...
127
45.95
136
17
1,788
python
[]
0
true
2024-11-18T18:05:50.786093+00:00
1,425,253,712,000
e5af85924f64e5cd20cb4634d93cd34727db9ef4
3
{ "blob_id": "e5af85924f64e5cd20cb4634d93cd34727db9ef4", "branch_name": "refs/heads/master", "committer_date": 1425253712000, "content_id": "dc44476f8f2550a6c47e17db2b6c9b10a75475de", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "769fb250df521e23a045940ad41b14d4e0b8d835", "extension": "p...
2.90625
stackv2
from rdflib.graph import Graph import os class Store(object): def attach_directory(self, dirname): """Attach to a directory containing RDF files and deliver data from there""" self.graph = Graph() self.basedir = dirname for dirpath, _, filenames in os.walk(dirname): ...
22
29.32
86
19
128
python
[]
0
true
2024-11-18T18:05:50.891605+00:00
1,674,337,881,000
a1d4e937240c69fa96324322c0525f937a87e6a7
3
{ "blob_id": "a1d4e937240c69fa96324322c0525f937a87e6a7", "branch_name": "refs/heads/master", "committer_date": 1674337881000, "content_id": "d89f33ca7a413fe1b1336e1fa59e3c8e77de92bf", "detected_licenses": [ "MIT" ], "directory_id": "d5d1e33f783568205d7883059fcd40a68c10a7f1", "extension": "py", "fi...
2.625
stackv2
from django.core.management.base import BaseCommand, CommandError from django.core.exceptions import ObjectDoesNotExist from trainer.models import Rule, User import re class Command(BaseCommand): help = 'Reads update rule set vom kommaregeln.csv' def add_arguments(self, parser): # Named (optional) arg...
59
42.49
137
20
544
python
[]
0
true
2024-11-18T18:05:50.995077+00:00
1,681,380,941,000
e318ef477e6416a2771f439d3ccca329e22e093b
3
{ "blob_id": "e318ef477e6416a2771f439d3ccca329e22e093b", "branch_name": "refs/heads/master", "committer_date": 1681380941000, "content_id": "ac6bb68abe5cfe57022afe0a29bb34005b6b4d36", "detected_licenses": [ "Apache-2.0" ], "directory_id": "af84dbfbdca0ee1a354924881b6578c37a66efcf", "extension": "py"...
2.828125
stackv2
# _*_ coding:utf8 _*_ import numpy as np import pandas as pd import tensorflow as tf import sys #import ncf.metrics import metrics class NCF(object): def __init__(self, embed_size, user_size, item_size, lr, optim, initializer, loss_func, activation_func, regularizer_rate, iterat...
227
44.54
87
16
2,121
python
[]
0
true
2024-11-18T18:05:51.110968+00:00
1,616,895,046,000
8423c4bedaae40da0e6d2c2b43c48f56b89c5965
3
{ "blob_id": "8423c4bedaae40da0e6d2c2b43c48f56b89c5965", "branch_name": "refs/heads/master", "committer_date": 1616895046000, "content_id": "021e70692c5f2184c7f31c5af6a41e9a4edd76f2", "detected_licenses": [ "MIT" ], "directory_id": "2f5784360ec61fb19d28ca4d115c967ab415ee3d", "extension": "py", "fi...
2.8125
stackv2
# -*- coding: utf-8 -*- """ Created on Wed Mar 3 01:56:34 2021 @author: Clauber """ import socket #obj de conexão s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) print("Socket criado com socesso!") host = 'localhost' port = 5432 #fazendo a ligação a partir do host e da porta do host s.bind((host, port)) mensage...
24
26.92
88
13
209
python
[]
0
true
2024-11-18T18:05:51.163839+00:00
1,613,149,366,000
d287c681a0f37bd86150a1f567579bdd0faf790a
4
{ "blob_id": "d287c681a0f37bd86150a1f567579bdd0faf790a", "branch_name": "refs/heads/main", "committer_date": 1613149366000, "content_id": "efd89e6d6665463231e2f25b858433bb8e13635e", "detected_licenses": [ "MIT" ], "directory_id": "a9edcd7c994d0ba4a10be1bebd4d91600337483b", "extension": "py", "file...
3.859375
stackv2
from collections import defaultdict class UGraph: """Constructs an undirected weighted graph.""" def __init__(self): self.graph = defaultdict(list) def add_edge(self, src: int, dest: int, w: int) -> None: """Add weighted edges between source and destination vertices. :pa...
35
28.66
81
11
248
python
[]
0
true
2024-11-18T18:05:51.327859+00:00
1,605,611,951,000
3379b7bf8c895c1db53f826ee6b01d695c771ecb
3
{ "blob_id": "3379b7bf8c895c1db53f826ee6b01d695c771ecb", "branch_name": "refs/heads/master", "committer_date": 1605611951000, "content_id": "c6533c22e590309dc2d05c216acfdfcf160affbc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "05a3a2e348f2c452e48ea331b4c5effc18543128", "extension": "py"...
2.75
stackv2
import numpy as np import torch import torch.utils.data as data from torch.utils.data import DataLoader from utils import train class DirectionalLinearDataset(data.Dataset): def __init__(self, v, num_samples=10000, sigma=3, epsilon=1, ...
151
39.08
100
17
1,218
python
[]
0
true
2024-11-18T18:05:51.617780+00:00
1,598,241,307,000
eb57e4f1d5091808917207f41e715581d3336e27
4
{ "blob_id": "eb57e4f1d5091808917207f41e715581d3336e27", "branch_name": "refs/heads/master", "committer_date": 1598241307000, "content_id": "9322317e181b1e0888b7b65df44e8faa774e820c", "detected_licenses": [ "MIT" ], "directory_id": "973fc8ee2cde8a7379cc49ee216b96e8b3d173d4", "extension": "py", "fi...
3.734375
stackv2
import os import re from operator import itemgetter def get_clean_col_and_delimiter(file_path): """ detect delimiter in text file by glancing at first row :param file_path: path of text file (str) :return: number of delimiters that are detected (int) delimiter (str) """ first_...
45
27.89
114
15
306
python
[]
0
true
2024-11-18T18:05:51.739998+00:00
1,563,480,494,000
c361e9d07137271c12584cfd09f0345a994daa93
3
{ "blob_id": "c361e9d07137271c12584cfd09f0345a994daa93", "branch_name": "refs/heads/master", "committer_date": 1563480494000, "content_id": "2a7fe80f59976e8fd14f16295693dbf692472883", "detected_licenses": [ "MIT" ], "directory_id": "d7f7c31da748f0b7d02646fc26315c479035822d", "extension": "py", "fi...
2.546875
stackv2
from models import ChordDesc import asyncio, aiohttp from urllib.parse import quote from lxml import html import logging HTTP_OK = 200 JGUITAR_BASE_URL = 'https://jguitar.com' JGUITAR_SEARCH_URL_FMT = JGUITAR_BASE_URL + '/chordsearch?chordsearch={}' async def _get_chord_image_urls(client: aiohttp.ClientSession, cho...
39
30.21
81
13
319
python
[]
0
true
2024-11-18T18:05:51.782526+00:00
1,633,726,686,000
3a6d8286d4d20bf8768da44caf705aa605abdc20
2
{ "blob_id": "3a6d8286d4d20bf8768da44caf705aa605abdc20", "branch_name": "refs/heads/main", "committer_date": 1633726686000, "content_id": "d29153fc0cfdf84211c4815513f890665658cb6d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c7b3f765302d4737ae8bc6e3973bce900d0a93cd", "extension": "py", ...
2.453125
stackv2
import pyaudio import threading import time import argparse import wave import torchaudio import torch import numpy as np from neuralnet.dataset import get_featurizer from threading import Event class Listener: def __init__(self, sample_rate=8000, record_seconds=2): self.chunk = 1024 self.sample_...
155
33.76
98
17
1,221
python
[]
0
true
2024-11-18T18:05:51.834545+00:00
1,462,411,624,000
cf54a28b454191968d424270b14794bdf4c83365
2
{ "blob_id": "cf54a28b454191968d424270b14794bdf4c83365", "branch_name": "refs/heads/master", "committer_date": 1462411624000, "content_id": "9f667026d03e5e368767c3dcf424cf6df14db21f", "detected_licenses": [ "MIT" ], "directory_id": "6071f5f8c3bb1e0b6ecc280664058cf74e0e93e1", "extension": "py", "fi...
2.484375
stackv2
import pdb def readit(filename): data = open(filename, 'r+') line = data.readline() i=1 event_log = {} while line != '': if 'event' in line: line = data.readline() line = data.readline() line = data.readline() line = data.readline() event = [] while (line.find('event') == -1) & (line.find('sum...
65
30.69
131
18
666
python
[]
0
true
2024-11-18T18:05:51.893426+00:00
1,627,356,144,000
0e0c4b7fa36f3a02ffa8eda95febeb7d2d92704a
2
{ "blob_id": "0e0c4b7fa36f3a02ffa8eda95febeb7d2d92704a", "branch_name": "refs/heads/master", "committer_date": 1627356144000, "content_id": "d076586c733abd1d56e4332b4acebfd4b0049418", "detected_licenses": [ "MIT" ], "directory_id": "917b080572da1d0572bd7322080962aae96c3534", "extension": "py", "fi...
2.34375
stackv2
from typing import Any, Dict, Sequence, List from ...base import Component class Banner(Component): def __init__(self, data: Dict[str, Any], *args: Any, **kwargs: Any): """From https://github.com/wpscanteam/wpscan/blob/master/app/views/json/core/banner.erb""" super().__init__(data, *args, **kwarg...
34
33.91
98
16
271
python
[]
0
true
2024-11-18T18:05:52.011974+00:00
1,512,495,654,000
66e2f97893448058da44f94b9fe7bbe49c289692
2
{ "blob_id": "66e2f97893448058da44f94b9fe7bbe49c289692", "branch_name": "refs/heads/master", "committer_date": 1512496294000, "content_id": "a60712a4aa2b2ef2643052a13d8fd0ad25620334", "detected_licenses": [ "MIT" ], "directory_id": "5a49a78056a7f3bb7d5b4560eccaca878c58e999", "extension": "py", "fi...
2.484375
stackv2
# coding=utf-8 import json import h5py def get_weights_from_hdf5_group(hfg): layer_names = [n.decode('utf8') for n in hfg.attrs['layer_names']] weight_dict = dict() for name in layer_names: g = hfg[name] weight_names = [n.decode('utf8') for n in g.attrs['weight_names']] weight_val...
27
33.52
87
17
259
python
[]
0
true
2024-11-18T18:05:52.066530+00:00
1,454,423,768,000
3ab9a582339c814f2fba0bef3e604bfb9c60abbe
3
{ "blob_id": "3ab9a582339c814f2fba0bef3e604bfb9c60abbe", "branch_name": "refs/heads/master", "committer_date": 1454423768000, "content_id": "10fb2ae5eee7e9c0f2784e3e971476c5d7dd744c", "detected_licenses": [ "MIT" ], "directory_id": "178e21d6a361dd487eece27c22da6ccd9f301b29", "extension": "py", "fi...
2.609375
stackv2
class ServiceBase(object): @classmethod def balance(cls, address, confirmations=0): """ Returns the amount of satoshis on the address with the specified number of confirmations. """ raise NotImplementedError @classmethod def block_height(cls): """ ...
32
24.38
65
9
161
python
[]
0
true
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
31