hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
5c7fadc6def96acb36e9f974704042ce02aa463a
2,356
py
Python
Sleep_stage_classifier/score_newpatient.py
bdh-team-12/sleep-predictions-through-deep-learning
7664cdffc0a0b0e732bffc95fd01e3ea27687025
[ "MIT" ]
7
2019-02-23T17:57:25.000Z
2021-03-19T13:32:28.000Z
Sleep_stage_classifier/score_newpatient.py
bdh-team-12/sleep-predictions-through-deep-learning
7664cdffc0a0b0e732bffc95fd01e3ea27687025
[ "MIT" ]
7
2019-03-02T16:55:57.000Z
2019-04-27T20:11:12.000Z
Sleep_stage_classifier/score_newpatient.py
bdh-team-12/sleep-predictions-through-deep-learning
7664cdffc0a0b0e732bffc95fd01e3ea27687025
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Apr 21 23:01:59 2019 @author: CRNZ """ # -*- coding: utf-8 -*- """ Created on Sun Apr 21 21:24:21 2019 @author: CRNZ """ import numpy as np import pandas as pd import scipy.signal as ssignal import os import matplotlib.pyplot as plt """this is from Blake...
28.385542
142
0.720289
5c818a9b9dce4fa0adaea80e8c6b22c1deeb0214
4,595
py
Python
tools/bibliotheca_account_headers.py
dentes-purgo/opacclient
bead660af7bca2c24eb65c078fca125b6dbe21a3
[ "MIT" ]
120
2015-12-19T18:54:50.000Z
2022-03-31T18:03:36.000Z
tools/bibliotheca_account_headers.py
dentes-purgo/opacclient
bead660af7bca2c24eb65c078fca125b6dbe21a3
[ "MIT" ]
189
2016-01-22T23:23:48.000Z
2021-12-16T21:33:38.000Z
tools/bibliotheca_account_headers.py
dentes-purgo/opacclient
bead660af7bca2c24eb65c078fca125b6dbe21a3
[ "MIT" ]
69
2016-02-25T20:29:07.000Z
2022-02-15T08:30:19.000Z
#!/usr/bin/python3 # Searches for Bibliotheca libraries in the assets/bibs/ directory and tries if they have a w3oini.txt configuration to # find out what the headers in their account view are called. import json import os import configparser import urllib.request from urllib.error import HTTPError, URLError from multi...
41.396396
119
0.586072
5c81f37a8aca6a5f42cddb3483e43667ae7ea664
289
py
Python
alembic/versions/e43177bfe90b_nbgrader_schema.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
4
2022-03-22T14:26:19.000Z
2022-03-24T05:05:12.000Z
alembic/versions/e43177bfe90b_nbgrader_schema.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
alembic/versions/e43177bfe90b_nbgrader_schema.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
"""nbgrader_schema Revision ID: e43177bfe90b Revises: Create Date: 2021-09-11 04:07:31.804665+00:00 """ # revision identifiers, used by Alembic. revision = 'e43177bfe90b' down_revision = None branch_labels = None depends_on = None
13.136364
45
0.719723
5c82769580fa5eccfe633c9cd1359fb4a9c2e2da
10,140
py
Python
blockbuster_clone/store/migrations/0001_initial.py
alexche77/blockbuster-api-clone
3597b6c6eb1e14b45bca233efabe2bc200a280f1
[ "MIT" ]
null
null
null
blockbuster_clone/store/migrations/0001_initial.py
alexche77/blockbuster-api-clone
3597b6c6eb1e14b45bca233efabe2bc200a280f1
[ "MIT" ]
null
null
null
blockbuster_clone/store/migrations/0001_initial.py
alexche77/blockbuster-api-clone
3597b6c6eb1e14b45bca233efabe2bc200a280f1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.8 on 2021-04-13 07:02 from decimal import Decimal import django.db.models.deletion from django.conf import settings from django.db import migrations, models
33.913043
86
0.327219
5c8788d8a7dbb2f817010ae5c52e2e1b70fe733a
145
py
Python
src/sage/sat/solvers/__init__.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
5
2015-01-04T07:15:06.000Z
2022-03-04T15:15:18.000Z
src/sage/sat/solvers/__init__.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/sat/solvers/__init__.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
10
2016-09-28T13:12:40.000Z
2022-02-12T09:28:34.000Z
from satsolver import SatSolver from dimacs import Glucose, RSat try: from cryptominisat import CryptoMiniSat except ImportError: pass
16.111111
43
0.793103
5c8f7ac03387dbc75bca001d6ea7901ce4e37956
2,705
py
Python
ipregistry/request.py
sebspion/ipregistry-python
5d71e3fcf785a5be99d004ef96ced976c57dd60a
[ "Apache-2.0" ]
7
2019-07-28T08:29:54.000Z
2021-08-06T10:42:31.000Z
ipregistry/request.py
sebspion/ipregistry-python
5d71e3fcf785a5be99d004ef96ced976c57dd60a
[ "Apache-2.0" ]
15
2020-07-05T15:22:58.000Z
2022-01-10T17:01:20.000Z
ipregistry/request.py
sebspion/ipregistry-python
5d71e3fcf785a5be99d004ef96ced976c57dd60a
[ "Apache-2.0" ]
3
2020-01-06T13:43:41.000Z
2020-09-25T11:59:04.000Z
""" Copyright 2019 Ipregistry (https://ipregistry.co). 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
31.823529
138
0.648799
5c8fcc3c3bf2b0098621de36bef3c1cc739b8c90
4,277
py
Python
utils/anchor_utils.py
ZCHILLAXY/FDFN-3D-SOT
b911a999eef9f19ba75c2fd835b7d59e846c7961
[ "MIT" ]
null
null
null
utils/anchor_utils.py
ZCHILLAXY/FDFN-3D-SOT
b911a999eef9f19ba75c2fd835b7d59e846c7961
[ "MIT" ]
null
null
null
utils/anchor_utils.py
ZCHILLAXY/FDFN-3D-SOT
b911a999eef9f19ba75c2fd835b7d59e846c7961
[ "MIT" ]
null
null
null
import numpy as np import torch from pyquaternion import Quaternion from utils.data_classes import Box
33.677165
108
0.551087
5c93c59c8d447030a3719989444ac65ea16cd81a
161
py
Python
moto/events/__init__.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
2
2019-07-10T14:44:12.000Z
2020-06-08T17:26:29.000Z
moto/events/__init__.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
5
2018-04-25T21:04:20.000Z
2018-11-02T19:59:27.000Z
moto/events/__init__.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals from .models import events_backend events_backends = {"global": events_backend} mock_events = events_backend.decorator
23
44
0.838509
5c95843ccb7f74cca245e3ae75454012c81d16f7
5,480
py
Python
python/ns/tests/TestFlipInputs.py
redpawfx/massiveImporter
2772d1ce530041007d00d8ba4274dccdda7b8900
[ "MIT" ]
2
2018-01-30T07:50:48.000Z
2020-03-10T02:10:38.000Z
python/ns/tests/TestFlipInputs.py
redpawfx/massiveImporter
2772d1ce530041007d00d8ba4274dccdda7b8900
[ "MIT" ]
null
null
null
python/ns/tests/TestFlipInputs.py
redpawfx/massiveImporter
2772d1ce530041007d00d8ba4274dccdda7b8900
[ "MIT" ]
3
2016-10-25T14:29:34.000Z
2021-08-09T13:37:33.000Z
# The MIT License # # Copyright (c) 2008 James Piechota # # 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 the rights # to use, copy,...
35.816993
80
0.685766
5c968039dc87a68dad849f1df60105a376cb176c
1,068
py
Python
nales/commands/base_commands.py
Jojain/Nales
dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9
[ "MIT" ]
5
2022-03-07T23:21:42.000Z
2022-03-29T17:40:36.000Z
nales/commands/base_commands.py
Jojain/Nales
dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9
[ "MIT" ]
3
2022-03-29T17:33:27.000Z
2022-03-29T17:40:10.000Z
nales/commands/base_commands.py
Jojain/Nales
dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Any from PyQt5.QtCore import QModelIndex from PyQt5.QtWidgets import QUndoCommand from nales.NDS.interfaces import NOperation, NPart, NShape if TYPE_CHECKING: from nales.NDS.model import NModel
28.864865
78
0.675094
5c9782d0e481208d23529b85afe2d323b520a7a1
47
py
Python
TestA.py
RajeshMIT/JobScraping
302b95e1f29400a3970c354dd13d9d71a757e2e6
[ "MIT" ]
null
null
null
TestA.py
RajeshMIT/JobScraping
302b95e1f29400a3970c354dd13d9d71a757e2e6
[ "MIT" ]
null
null
null
TestA.py
RajeshMIT/JobScraping
302b95e1f29400a3970c354dd13d9d71a757e2e6
[ "MIT" ]
null
null
null
a = [1,2,3 2,4,5] print(a) b = a[-1:]
9.4
12
0.340426
5c9a7cd1c903bd0965a1c14130cfa8ccbe52a5ac
122
py
Python
examples/timing.py
tahmid-choyon/capslock
dde335b2ab73cbf7199e081fedb594d01f6c2021
[ "MIT" ]
8
2021-02-23T13:06:07.000Z
2021-09-14T10:24:19.000Z
examples/timing.py
tahmid-choyon/capslock
dde335b2ab73cbf7199e081fedb594d01f6c2021
[ "MIT" ]
2
2021-03-05T00:23:39.000Z
2021-03-06T07:06:32.000Z
examples/timing.py
tahmid-choyon/capslock
dde335b2ab73cbf7199e081fedb594d01f6c2021
[ "MIT" ]
4
2021-02-24T07:25:51.000Z
2021-03-06T12:22:07.000Z
from capslock import timing if __name__ == '__main__': say_hello()
15.25
27
0.688525
5ca55240c2125f62a6b90ba9a21b1bb79de7d0a8
605
py
Python
reverse_api_call.py
ericpanyc/INFO550_Project
92b91537e94dc859931eef3f5f7b29795dcbb87c
[ "MIT" ]
null
null
null
reverse_api_call.py
ericpanyc/INFO550_Project
92b91537e94dc859931eef3f5f7b29795dcbb87c
[ "MIT" ]
null
null
null
reverse_api_call.py
ericpanyc/INFO550_Project
92b91537e94dc859931eef3f5f7b29795dcbb87c
[ "MIT" ]
null
null
null
import requests import xml.etree.ElementTree as ET import urllib.request, urllib.parse, urllib.error import json import ssl import sys import re import getopt ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE lon = str(37.7812808) lat = str(-122.4152363) url = "https://no...
23.269231
92
0.757025
5ca7ea27b9a77f39ea73f7e2f5fb08e16ff975e2
951
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch06_arrays/ex09_sudoku_checker_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch06_arrays/ex09_sudoku_checker_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch06_arrays/ex09_sudoku_checker_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm fr das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch06_arrays.solutions.ex09_sudoku_checker import is_sudoku_valid
25.026316
69
0.55836
5caa52d0cebca2e6f3ee0844112edea11e5650cd
2,882
py
Python
crontab_holdernumber.py
xuan-wang/funcat
c4b184942564ab8a4092acb4907ab069fc44683c
[ "Apache-2.0" ]
18
2019-05-30T01:00:38.000Z
2022-01-03T15:46:25.000Z
crontab_holdernumber.py
xuan-wang/funcat
c4b184942564ab8a4092acb4907ab069fc44683c
[ "Apache-2.0" ]
5
2019-05-28T15:01:18.000Z
2021-11-24T14:08:39.000Z
crontab_holdernumber.py
xuan-wang/funcat
c4b184942564ab8a4092acb4907ab069fc44683c
[ "Apache-2.0" ]
8
2020-10-30T10:03:02.000Z
2021-12-04T07:20:36.000Z
#!/root/miniconda3/envs/py36/bin/python3 import time import tushare as ts import datetime from funcat import * from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.types import NVARCHAR, Float, Integer from wxpusher import WxPusher as wx uid = ['UID_4yb8qx3oxePh1ZHCvFpVxNGDRA...
33.511628
124
0.718251
5caac28b836683d4c48708d1c07cd5d48dbe297d
204
py
Python
skeema/intermediate/__init__.py
HeadHaus/Skeema
fc0faf13afad2c95b8943eaa3bfc2cc23b7de003
[ "MIT" ]
null
null
null
skeema/intermediate/__init__.py
HeadHaus/Skeema
fc0faf13afad2c95b8943eaa3bfc2cc23b7de003
[ "MIT" ]
null
null
null
skeema/intermediate/__init__.py
HeadHaus/Skeema
fc0faf13afad2c95b8943eaa3bfc2cc23b7de003
[ "MIT" ]
null
null
null
from .class_context import ClassContext from .compilation_context import CompilationContext from .data_member import DataMember from .parameter import Parameter from .representation import Representation
34
51
0.877451
5caad8137ffd2bb5c649aa44b1d1830d4b086cce
1,208
py
Python
vivarium/braitenberg_rooms.py
Pyrofoux/vivarium
90c07384929f6c34915f053fd8e95e91358c4e58
[ "MIT" ]
2
2020-10-30T15:28:06.000Z
2022-01-31T17:13:25.000Z
vivarium/braitenberg_rooms.py
Pyrofoux/vivarium
90c07384929f6c34915f053fd8e95e91358c4e58
[ "MIT" ]
null
null
null
vivarium/braitenberg_rooms.py
Pyrofoux/vivarium
90c07384929f6c34915f053fd8e95e91358c4e58
[ "MIT" ]
null
null
null
import math from simple_playgrounds.game_engine import Engine from simple_playgrounds.playgrounds import * from simple_playgrounds.utils import * from simple_playgrounds.entities import * from simple_playgrounds.entities.scene_elements.collection.contact import *
28.761905
129
0.662252
5cab4dc16598591ee5f7e585f13e947627e2dcb1
3,385
py
Python
main.py
uppi/foodtracker
1165f12fab3c3da7f5d00053bd497bac492597ad
[ "MIT" ]
null
null
null
main.py
uppi/foodtracker
1165f12fab3c3da7f5d00053bd497bac492597ad
[ "MIT" ]
null
null
null
main.py
uppi/foodtracker
1165f12fab3c3da7f5d00053bd497bac492597ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import os import logging from messages import question_text, question_markup, resubmit_markup, stats_text, unsubscribed_message, draw_stats, \ moving_avg from storage import Storage, QUESTIONS, question_by_kind from model import Rate from telegram.ext...
29.434783
117
0.670015
5cad20460681b8b4aafbda6fc6e672c1a5473997
613
py
Python
code/python_scripts/kandane_subarrays.py
lukaschoebel/LUMOS
5d084e487d937957896a58ef3ab719f86074fa9a
[ "MIT" ]
null
null
null
code/python_scripts/kandane_subarrays.py
lukaschoebel/LUMOS
5d084e487d937957896a58ef3ab719f86074fa9a
[ "MIT" ]
null
null
null
code/python_scripts/kandane_subarrays.py
lukaschoebel/LUMOS
5d084e487d937957896a58ef3ab719f86074fa9a
[ "MIT" ]
null
null
null
from collections import Counter def maxSubArray(nums) -> int: """ Find the maximum int value :type nums: List[int] :rtype: int """ subarray = [] for i in range(1, len(nums)): if nums[i-1] > 0: nums[i] += nums[i-1] subarray.append(nums[i]) return max(nums), s...
25.541667
51
0.584013
5caf4aff553db3f3043fcf389face18fbfb065c6
626
py
Python
project-fortis-pipeline/localdeploy/parse-output.py
prathmj/project-fortis
6331949035cef9c2bb1fec0c1ce87e8e2bf6dc64
[ "MIT" ]
46
2017-03-27T07:08:45.000Z
2022-03-25T06:00:13.000Z
project-fortis-pipeline/localdeploy/parse-output.py
AIIE-DTC/project-fortis
e9843b080e33c2959b1021cb20247ba51a695a6a
[ "MIT" ]
77
2017-03-28T14:23:08.000Z
2020-09-29T13:36:03.000Z
project-fortis-pipeline/localdeploy/parse-output.py
AIIE-DTC/project-fortis
e9843b080e33c2959b1021cb20247ba51a695a6a
[ "MIT" ]
29
2017-04-03T13:42:34.000Z
2020-08-25T10:32:53.000Z
#!/usr/bin/env python import argparse import json parser = argparse.ArgumentParser() parser.add_argument('file_to_parse', type=argparse.FileType('r')) args = parser.parse_args() json_payload = json.load(args.file_to_parse) outputs = json_payload.get('properties', {}).get('outputs', {}) for key, value in outputs.ite...
31.3
75
0.680511
5cb08180d3e03612a7b3aec37914002eb797ce9e
261
py
Python
simianpy/io/trodes/__init__.py
jselvan/simianpy
5b2b162789e11bc89ca2179358ab682269e7df15
[ "MIT" ]
null
null
null
simianpy/io/trodes/__init__.py
jselvan/simianpy
5b2b162789e11bc89ca2179358ab682269e7df15
[ "MIT" ]
null
null
null
simianpy/io/trodes/__init__.py
jselvan/simianpy
5b2b162789e11bc89ca2179358ab682269e7df15
[ "MIT" ]
null
null
null
from .io import Trodes
29
57
0.64751
5cb3d1baec8827e58e067298c08cef15ddaef136
3,903
py
Python
hesiod.py
ebroder/python-hesiod
2b11f727fe934efe8935ac3543fe538d14b8fafe
[ "MIT" ]
3
2015-11-23T10:57:33.000Z
2017-01-12T19:38:11.000Z
hesiod.py
ebroder/python-hesiod
2b11f727fe934efe8935ac3543fe538d14b8fafe
[ "MIT" ]
1
2019-12-12T18:38:26.000Z
2019-12-13T01:28:26.000Z
hesiod.py
ebroder/python-hesiod
2b11f727fe934efe8935ac3543fe538d14b8fafe
[ "MIT" ]
1
2019-12-10T00:50:36.000Z
2019-12-10T00:50:36.000Z
""" Present both functional and object-oriented interfaces for executing lookups in Hesiod, Project Athena's service name resolution protocol. """ from _hesiod import bind, resolve from pwd import struct_passwd from grp import struct_group __all__ = ['bind', 'resolve', 'Lookup', 'FilsysLookup', 'PasswdLoo...
33.93913
72
0.478606
5cb3e26d56bc07443dd086b9922cca20cdacf48b
8,999
py
Python
examples/dpdk/chain.py
fabrizio-granelli/comnetsemu
598a4347076c423c4887d4243f49d3c94fe1d075
[ "MIT" ]
11
2020-10-29T13:13:09.000Z
2022-01-28T10:30:43.000Z
examples/dpdk/chain.py
fabrizio-granelli/comnetsemu
598a4347076c423c4887d4243f49d3c94fe1d075
[ "MIT" ]
12
2020-11-25T11:23:18.000Z
2022-03-28T12:36:49.000Z
examples/dpdk/chain.py
fabrizio-granelli/comnetsemu
598a4347076c423c4887d4243f49d3c94fe1d075
[ "MIT" ]
12
2020-11-09T03:27:41.000Z
2022-01-17T11:37:47.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # vim:fenc=utf-8 """ About: Basic chain topology for test DPDK L2 forwarding application. """ import argparse import multiprocessing import subprocess import sys import time from shlex import split from subprocess import check_output from comnetsemu.cli import CLI from...
32.25448
102
0.577175
5cb46f99a5c7fb58524e9a4588159ef8d6a32bd3
2,017
py
Python
tests/unit/test_worksheet.py
jaraco/xlsxcessive
292d2fb90ebf07781c684f1b8d42f89ffc58d3c2
[ "MIT" ]
3
2019-02-06T14:03:58.000Z
2021-02-13T20:07:09.000Z
tests/unit/test_worksheet.py
jaraco/xlsxcessive
292d2fb90ebf07781c684f1b8d42f89ffc58d3c2
[ "MIT" ]
1
2020-11-30T15:43:01.000Z
2021-02-13T19:27:00.000Z
tests/unit/test_worksheet.py
jaraco/xlsxcessive
292d2fb90ebf07781c684f1b8d42f89ffc58d3c2
[ "MIT" ]
1
2019-02-05T14:38:48.000Z
2019-02-05T14:38:48.000Z
import random from xlsxcessive.worksheet import Worksheet
32.532258
86
0.588994
5cb480c198ba718ab8b76bbb622684e256d89ea8
4,582
py
Python
ooobuild/lo/xml/sax/x_fast_attribute_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/sax/x_fast_attribute_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/sax/x_fast_attribute_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
46.755102
314
0.721955
5cb55624451b9784782908c24e2e54a8bd5238f6
818
py
Python
test/test_train.py
mikolasan/name-generator
94389f7a33f5ea72cda4ac3088add75153e6263c
[ "MIT" ]
null
null
null
test/test_train.py
mikolasan/name-generator
94389f7a33f5ea72cda4ac3088add75153e6263c
[ "MIT" ]
null
null
null
test/test_train.py
mikolasan/name-generator
94389f7a33f5ea72cda4ac3088add75153e6263c
[ "MIT" ]
null
null
null
import os import pytest from stupid_ai.markov_chain import MarkovChain
25.5625
55
0.699267
5cb8bdd032359f6049176403be6a28a63908a5f4
3,488
py
Python
Doulist-book-Spider/spider.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
Doulist-book-Spider/spider.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
Doulist-book-Spider/spider.py
bujige/Python-practice
c1eb76b0caaada628f23a477303f07d6be3f707c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf8') from bs4 import BeautifulSoup import re import urllib2 import xlwt # # #excel main()
32
87
0.537844
5cbb8641b95d18e1e3d495561a107d4a206ce1c0
3,444
py
Python
tests/test_QGrid___eq__.py
nivlekp/abjad-ext-nauert
de39600b84eec8b326441f54bf388802d1584c8e
[ "MIT" ]
2
2020-12-06T20:54:13.000Z
2021-04-15T16:02:28.000Z
tests/test_QGrid___eq__.py
nivlekp/abjad-ext-nauert
de39600b84eec8b326441f54bf388802d1584c8e
[ "MIT" ]
34
2018-06-16T17:40:35.000Z
2022-03-20T14:43:23.000Z
tests/test_QGrid___eq__.py
nivlekp/abjad-ext-nauert
de39600b84eec8b326441f54bf388802d1584c8e
[ "MIT" ]
1
2020-10-16T13:07:54.000Z
2020-10-16T13:07:54.000Z
import abjadext.nauert
29.947826
85
0.463705
5cbd7d30c73b0696a53be9361db30d10198db7b8
1,596
py
Python
shared/tests/unit/test_create_base_application.py
ostcar/openslides-datastore-service
5b17e162c477e3d19b59b2dcfcf307538e5ce90b
[ "MIT" ]
null
null
null
shared/tests/unit/test_create_base_application.py
ostcar/openslides-datastore-service
5b17e162c477e3d19b59b2dcfcf307538e5ce90b
[ "MIT" ]
null
null
null
shared/tests/unit/test_create_base_application.py
ostcar/openslides-datastore-service
5b17e162c477e3d19b59b2dcfcf307538e5ce90b
[ "MIT" ]
null
null
null
import os from unittest.mock import MagicMock, patch import pytest from shared import create_base_application from shared.di import injector from shared.services import EnvironmentService, ShutdownService from shared.tests import reset_di # noqa
32.571429
80
0.733083
5cbde98221c9f89ff777dca2de77b04f040c41b2
4,479
py
Python
tangshi.py
fanyunhua/python
00046d9802d172c4fe2a24f05e3826a970b112db
[ "Unlicense" ]
null
null
null
tangshi.py
fanyunhua/python
00046d9802d172c4fe2a24f05e3826a970b112db
[ "Unlicense" ]
null
null
null
tangshi.py
fanyunhua/python
00046d9802d172c4fe2a24f05e3826a970b112db
[ "Unlicense" ]
null
null
null
#coding=utf-8 import re import requests from bs4 import BeautifulSoup soup = BeautifulSoup.text url = 'https://www.gushiwen.org/shiwen/' title_list = [] # name = [] # if __name__ == '__main__': allurl = [] url_list = [] all_url = [] allurl = get_all_url(url) url_list = get_title(allurl) #print...
29.467105
104
0.532485
5cbf893b6905c8d48598dbb4dc5e9f1eccec73cd
6,951
py
Python
distribution/build_nightly.py
jwhite-usgs/modflow6
8b58f53e2f9dd5c34b3b2d15f7ced7058b4107c6
[ "CC0-1.0" ]
null
null
null
distribution/build_nightly.py
jwhite-usgs/modflow6
8b58f53e2f9dd5c34b3b2d15f7ced7058b4107c6
[ "CC0-1.0" ]
null
null
null
distribution/build_nightly.py
jwhite-usgs/modflow6
8b58f53e2f9dd5c34b3b2d15f7ced7058b4107c6
[ "CC0-1.0" ]
null
null
null
import os import sys import platform import shutil import flopy import pymake # make sure exe extension is used on windows eext = '' soext = '.so' if sys.platform.lower() == 'win32': eext = '.exe' soext = '.dll' binpth, temppth = os.path.join('..', 'bin'), os.path.join('temp') # some flags to check for error...
27.474308
77
0.606819
5cc027723f5b3b780d5950c42ab9f7f49e9095b9
899
py
Python
objets/rectangles.py
houahidi/exos-python
60055ff2933a07876213aa8e5f03c9388f628b99
[ "Apache-2.0" ]
null
null
null
objets/rectangles.py
houahidi/exos-python
60055ff2933a07876213aa8e5f03c9388f628b99
[ "Apache-2.0" ]
null
null
null
objets/rectangles.py
houahidi/exos-python
60055ff2933a07876213aa8e5f03c9388f628b99
[ "Apache-2.0" ]
null
null
null
""" Gestion des rectangles""" from objets import points as p from objets.formes import Forme if __name__ == "__main__": ORIGINE = p.Point(2, 5) RECT1 = Rectangle(ORIGINE, 3, 5) print RECT1 print "Surface : ", RECT1.surface() print "Perimetre : ", RECT1.perimetre()
29
96
0.621802
5cc3919cfb12f5c7ce39b031938d65ff7bb42905
4,543
py
Python
python/ach.py
sedgwickc/ach
4766faa88fc24331d78005df9d218710250efab8
[ "BSD-3-Clause" ]
48
2015-06-02T20:06:03.000Z
2021-08-25T10:23:57.000Z
python/ach.py
sedgwickc/ach
4766faa88fc24331d78005df9d218710250efab8
[ "BSD-3-Clause" ]
9
2015-02-18T07:51:50.000Z
2019-08-21T20:53:27.000Z
python/ach.py
sedgwickc/ach
4766faa88fc24331d78005df9d218710250efab8
[ "BSD-3-Clause" ]
18
2015-04-10T07:18:55.000Z
2021-11-16T07:06:14.000Z
#!/usr/bin/env python ## Copyright (c) 2013, Georgia Tech Research Corporation ## Copyright (c) 2015, Rice University ## All rights reserved. ## ## Author(s): Neil T. Dantam <ntd@rice.edu> ## Georgia Tech Humanoid Robotics Lab ## Under Direction of Prof. Mike Stilman <mstilman@cc.gatech.edu> ## ## Redistribution and u...
33.404412
78
0.66674
5cc481688e70e209f8ed80b1bc42132901de5460
1,893
py
Python
rackspaceauth/loading/v2.py
serzh/rackspace-keystoneauth-plugin
5c51d7f1a9b15dfd6a683e948853401896e78bb7
[ "Apache-2.0" ]
1
2017-04-26T04:45:45.000Z
2017-04-26T04:45:45.000Z
rackspaceauth/loading/v2.py
serzh/rackspace-keystoneauth-plugin
5c51d7f1a9b15dfd6a683e948853401896e78bb7
[ "Apache-2.0" ]
6
2016-01-12T18:35:12.000Z
2017-05-31T13:51:41.000Z
rackspaceauth/loading/v2.py
serzh/rackspace-keystoneauth-plugin
5c51d7f1a9b15dfd6a683e948853401896e78bb7
[ "Apache-2.0" ]
4
2016-01-11T23:53:57.000Z
2020-10-28T13:23:56.000Z
# 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, software # distributed under t...
27.042857
75
0.587427
5cc545f876eff79c2e3ac4e9458267a2f726d052
629
py
Python
python-backend/helper/dataHelper.py
Jesse-Yan/UniMatch
e39e6a7156446dcf9705e739a27de8202c2fa142
[ "MIT" ]
1
2021-01-27T13:35:10.000Z
2021-01-27T13:35:10.000Z
python-backend/helper/dataHelper.py
Jesse-Yan/UniMatch
e39e6a7156446dcf9705e739a27de8202c2fa142
[ "MIT" ]
null
null
null
python-backend/helper/dataHelper.py
Jesse-Yan/UniMatch
e39e6a7156446dcf9705e739a27de8202c2fa142
[ "MIT" ]
null
null
null
import sqlite3 ## input is the value, search is either "OPEID" or "name" ## Get all data from the database
29.952381
61
0.667727
5cc68c6c35890d1702c50c5a2c1f6ff7f7ac114a
1,242
py
Python
setup.py
lightswarm124/bitbox-py
67ee0d216e2630fd44dba83b5233f33c315dd30b
[ "MIT" ]
null
null
null
setup.py
lightswarm124/bitbox-py
67ee0d216e2630fd44dba83b5233f33c315dd30b
[ "MIT" ]
null
null
null
setup.py
lightswarm124/bitbox-py
67ee0d216e2630fd44dba83b5233f33c315dd30b
[ "MIT" ]
null
null
null
import setuptools with open("README.md", 'r') as fh: long_description = fh.read() setuptools.setup( name = "bitbox-py", version = "0.0.3", author = "Merwane Dra", author_email = "contact@merwane.me", description = "Gabriel Cardona's Bitbox ported to Python", long_de...
31.846154
66
0.530596
5cc6f689fd8778dc8d3817dede350a2d77fb5f2b
2,334
py
Python
web/migrations/0007_auto_20150702_0943.py
LandyGuo/brosbespoke
642fda249d01ed30b7e3b711f1521f22e88312bb
[ "Apache-2.0" ]
1
2016-03-31T03:22:47.000Z
2016-03-31T03:22:47.000Z
web/migrations/0007_auto_20150702_0943.py
LandyGuo/brosbespoke
642fda249d01ed30b7e3b711f1521f22e88312bb
[ "Apache-2.0" ]
null
null
null
web/migrations/0007_auto_20150702_0943.py
LandyGuo/brosbespoke
642fda249d01ed30b7e3b711f1521f22e88312bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import web.models
44.884615
334
0.614824
5cc74337ee961d6b4c9bf4e0b2d955deca56da59
1,269
py
Python
hibp/example.py
kernelmachine/haveibeenpwned
b3f8b6dc980695b6d63e34c5d7124089c9db7f1e
[ "Apache-2.0" ]
42
2017-07-24T01:48:00.000Z
2022-03-07T09:09:26.000Z
hibp/example.py
bhxdne/haveibeenpwned
b3f8b6dc980695b6d63e34c5d7124089c9db7f1e
[ "Apache-2.0" ]
4
2017-07-24T14:06:06.000Z
2020-06-01T18:14:50.000Z
hibp/example.py
bhxdne/haveibeenpwned
b3f8b6dc980695b6d63e34c5d7124089c9db7f1e
[ "Apache-2.0" ]
15
2017-07-12T00:57:22.000Z
2022-02-24T08:58:09.000Z
from hibp import HIBP, AsyncHIBP import time import logging logging.basicConfig(level=logging.INFO, format='%(message)s') logging.getLogger("requests").setLevel(logging.WARNING) if __name__ == '__main__': # random set of query paramaters names = ['adobe','ashleymadison', 'naughtyamerica', 'myspace'] accou...
34.297297
75
0.672971
5cc96588e4aa98977d40ddb4ed7626b388632022
1,255
py
Python
trie.py
shivchander/word_grid_solver
bf8c994a049c355e9739cd6837442e50fd134603
[ "MIT" ]
null
null
null
trie.py
shivchander/word_grid_solver
bf8c994a049c355e9739cd6837442e50fd134603
[ "MIT" ]
null
null
null
trie.py
shivchander/word_grid_solver
bf8c994a049c355e9739cd6837442e50fd134603
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ trie.py: contains the definition and declaration of the trie class """ __author__ = "Shivchander Sudalairaj" __email__ = "sudalasr@mail.uc.edu"
25.1
89
0.58247
5cc9c4c2a033ee8c93e08be45e027453fb600c83
91
py
Python
Python3/Lists/swapping.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/Lists/swapping.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/Lists/swapping.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
names = ['John', 'Mary'] print(names) names[0], names[1] = names[1], names[0] print(names)
18.2
39
0.626374
5ccc43f2af35e3202201e7a59cefaf44ae5c6723
5,080
py
Python
2019/day9.py
ellull/codeofadvent2017
6e6530dd179dab1bef35e1ba94c1f86f990af4ae
[ "Unlicense" ]
null
null
null
2019/day9.py
ellull/codeofadvent2017
6e6530dd179dab1bef35e1ba94c1f86f990af4ae
[ "Unlicense" ]
4
2021-03-18T20:13:06.000Z
2022-03-11T23:12:20.000Z
2019/day9.py
ellull/adventofcode
6e6530dd179dab1bef35e1ba94c1f86f990af4ae
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import fileinput from collections import defaultdict from threading import Thread from queue import Queue computer = Intcode([109, 1, 204, -1, 1001, 100, 1, 100, 1008, 100, 16, 101, 1006, 101, 0, 99]).run() assert list(computer.output_queue.queue) == [109, 1, 204, -1, 1001, 100, 1, 100, 1008, 1...
44.955752
132
0.625
5ccc7127c44d4142b170576b830eded68fe36b7d
1,495
py
Python
test/runtime/frontend_test/onnx_test/defs_test/nn_test/average_pool_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
test/runtime/frontend_test/onnx_test/defs_test/nn_test/average_pool_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
test/runtime/frontend_test/onnx_test/defs_test/nn_test/average_pool_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
import chainer import numpy as np from test.runtime.frontend_test.onnx_test.util import make_node, make_tensor_value_info, make_model from test.util import wrap_template, generate_kernel_test_case from webdnn.frontend.onnx import ONNXConverter
23.730159
104
0.621405
5cd150956e1d5c7ebc20842b4f030935cb007f60
315
py
Python
backend/api/adminViews/adminListView.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
1
2021-04-08T22:02:44.000Z
2021-04-08T22:02:44.000Z
backend/api/adminViews/adminListView.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
79
2021-02-06T22:55:52.000Z
2021-04-15T20:24:56.000Z
backend/api/adminViews/adminListView.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
4
2021-02-14T15:13:15.000Z
2021-04-17T06:21:11.000Z
from django.contrib import admin from ..services.adminActions import accept_signup_request # admin list view for signup requests
39.375
63
0.774603
5cd33629275ce906ddd9c7290b07ab76b7a71763
262
py
Python
Ex0014/ex0014.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
Ex0014/ex0014.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
Ex0014/ex0014.py
Rodrigo-Antonio-Silva/ExerciciosPythonCursoemVideo
3b2d68094dd5d60f0e45a75590eb2be9be030640
[ "MIT" ]
null
null
null
#utf-8 #Exerccio 14 do curso em vdeo de Python celsius = float((input('Informe a temperatura em C: '))) #transformando de celsius para fahrenheit fahr = (celsius * 9/5) + 32 print('A temperatura de {}C corresponde a {}F!'.format(celsius, fahr))
26.2
73
0.675573
5cd33fb997d932e9651b3a4a601eb452df40b550
370
py
Python
NestedLoops/SpecialNumbers.py
Mirkonito/Softuni-Python-Basic
762b80ea1e0d087613925cde9a03312c83b78168
[ "MIT" ]
1
2020-09-22T13:25:34.000Z
2020-09-22T13:25:34.000Z
NestedLoops/SpecialNumbers.py
Mirkonito/Softuni-Python-Basic
762b80ea1e0d087613925cde9a03312c83b78168
[ "MIT" ]
null
null
null
NestedLoops/SpecialNumbers.py
Mirkonito/Softuni-Python-Basic
762b80ea1e0d087613925cde9a03312c83b78168
[ "MIT" ]
1
2020-10-17T09:27:46.000Z
2020-10-17T09:27:46.000Z
number = int(input()) for numbers in range(1111, 9999): is_Magic = True number_as_string = str(numbers) for digit in number_as_string: if int(digit) == 0: is_Magic = False break elif number % int(digit) != 0: is_Magic = False break if is_Ma...
28.461538
45
0.551351
5cd36ce560d8d0a794f61b1d555be958fd7bdc19
5,159
py
Python
Algorithm_Functions.py
Karansutradhar/Multi-Penalty-Algorithm-for-Local-Predator-Prey-Planning
a2d3352eb41ac67ec7e987cd89dff9102a91766c
[ "MIT" ]
null
null
null
Algorithm_Functions.py
Karansutradhar/Multi-Penalty-Algorithm-for-Local-Predator-Prey-Planning
a2d3352eb41ac67ec7e987cd89dff9102a91766c
[ "MIT" ]
null
null
null
Algorithm_Functions.py
Karansutradhar/Multi-Penalty-Algorithm-for-Local-Predator-Prey-Planning
a2d3352eb41ac67ec7e987cd89dff9102a91766c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import math
23.774194
90
0.578601
5cd49ebaea1513f51afa5fbff160017ddd106d58
1,028
py
Python
pyscrap3/template/+package.name+/+package.name+/items.py
Zincr0/pyscrap3
2eaf03f3598953eddfd6df9de3ea85ee0b75d441
[ "Apache-2.0" ]
1
2015-01-17T13:16:25.000Z
2015-01-17T13:16:25.000Z
pyscrap3/template/+package.name+/+package.name+/items.py
Zincr0/pyscrap3
2eaf03f3598953eddfd6df9de3ea85ee0b75d441
[ "Apache-2.0" ]
null
null
null
pyscrap3/template/+package.name+/+package.name+/items.py
Zincr0/pyscrap3
2eaf03f3598953eddfd6df9de3ea85ee0b75d441
[ "Apache-2.0" ]
null
null
null
#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, software #distributed under the License is distributed on an "AS IS" BASIS, #WITHOUT WARRANTIES OR CO...
34.266667
73
0.727626
5cd51578386d122ba218a5538c2d40af15721e00
1,612
py
Python
tests/integration/test_termination.py
jobvs/cf-mendix-buildpack
7df5585b5ac8550fd36d21c9d354d74489ff78c0
[ "Apache-2.0" ]
1
2022-01-31T09:56:06.000Z
2022-01-31T09:56:06.000Z
tests/integration/test_termination.py
jobvs/cf-mendix-buildpack
7df5585b5ac8550fd36d21c9d354d74489ff78c0
[ "Apache-2.0" ]
null
null
null
tests/integration/test_termination.py
jobvs/cf-mendix-buildpack
7df5585b5ac8550fd36d21c9d354d74489ff78c0
[ "Apache-2.0" ]
5
2018-12-17T09:45:17.000Z
2020-11-17T22:08:10.000Z
from tests.integration import basetest
35.043478
75
0.630273
5cd578165db56b96203e8e97a41fc891e99c158b
850
py
Python
lib/horizontal_lines.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
null
null
null
lib/horizontal_lines.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
5
2017-11-02T17:12:31.000Z
2021-04-21T19:07:39.000Z
lib/horizontal_lines.py
rafelafrance/boyd-bird-journal
289744703220015cb61d22a8e6f8eff0040b296f
[ "MIT" ]
null
null
null
"""Contains logic that is unique to the horizontal grid lines.""" from lib.grid_lines import GridLines
32.692308
74
0.645882
5cd582135ab7d44f2ce3fd5f31c437f5392bb7ee
1,419
py
Python
Testing/StatusChangerTest.py
crzdg/TrainControlSystem
b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962
[ "MIT" ]
2
2020-08-13T09:16:25.000Z
2020-08-13T16:41:46.000Z
Testing/StatusChangerTest.py
crzdg/TrainControlSystem
b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962
[ "MIT" ]
null
null
null
Testing/StatusChangerTest.py
crzdg/TrainControlSystem
b75fa98eef7fbbe7b7c9a2ffaade40e8a9346962
[ "MIT" ]
null
null
null
import StatusChanger.StatusChanger as StatusChanger from States.States import States import unittest
30.191489
52
0.696265
5cd7f708d6c0ffe506680e3f61e0cea6fbb69429
2,985
py
Python
2020/CVE-2020-6207/poc/pocsploit/CVE-2020-6207.py
hjyuan/reapoc
ef515e56c44c2590ff8601582bf6c08e076e7083
[ "Apache-2.0" ]
421
2021-12-07T08:46:40.000Z
2022-03-31T12:42:16.000Z
2020/CVE-2020-6207/poc/pocsploit/CVE-2020-6207.py
hjyuan/reapoc
ef515e56c44c2590ff8601582bf6c08e076e7083
[ "Apache-2.0" ]
5
2022-03-27T07:37:32.000Z
2022-03-31T13:56:11.000Z
2020/CVE-2020-6207/poc/pocsploit/CVE-2020-6207.py
hjyuan/reapoc
ef515e56c44c2590ff8601582bf6c08e076e7083
[ "Apache-2.0" ]
144
2021-12-07T11:06:14.000Z
2022-03-31T07:41:35.000Z
import requests # Vuln Base Info # Vender Fingerprint # Proof of Concept # Exploit, can be same with poc() # Utils
41.458333
419
0.620771
5cd8dfb05582b57c170a1f603910f7bd19608dbe
419
py
Python
tests/models/r-net_dynamic_test.py
matthew-z/pytorch_rnet
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
227
2017-09-20T08:17:07.000Z
2022-02-16T23:48:04.000Z
tests/models/r-net_dynamic_test.py
matthew-z/R-Net
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
18
2017-10-25T14:42:56.000Z
2020-04-14T18:50:48.000Z
tests/models/r-net_dynamic_test.py
matthew-z/R-Net
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
59
2017-10-02T15:25:27.000Z
2021-05-28T07:57:39.000Z
from allennlp.common.testing import ModelTestCase from qa.squad.rnet import RNet
34.916667
75
0.72315
5cd9c8919679bbd7dd1dbe37b910a2e9d54ec841
38,702
py
Python
terraformer.py
nicolebranagan/terraformer
943e92939c958429e7d14b27bcff96c0bd27a7bd
[ "MIT" ]
11
2021-01-04T01:24:31.000Z
2021-09-26T15:48:06.000Z
terraformer.py
nicolebranagan/terraformer
943e92939c958429e7d14b27bcff96c0bd27a7bd
[ "MIT" ]
null
null
null
terraformer.py
nicolebranagan/terraformer
943e92939c958429e7d14b27bcff96c0bd27a7bd
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import tkinter as tk import tkinter.ttk as ttk from tkinter import colorchooser from tkinter import filedialog from tkinter import messagebox import math import json import time import os import sys import terralib.palette as palette import terralib.tool as tool from terralib.pixelgrid import * imp...
40.525654
82
0.552271
5cdb0da511d5db56a77cb42a4bd680ce822d7322
1,372
py
Python
photutils/psf/matching/tests/test_fourier.py
barentsen/photutils
57cbe18c8c1b8b08c93daa3d5c8dd74c10c3daae
[ "BSD-3-Clause" ]
null
null
null
photutils/psf/matching/tests/test_fourier.py
barentsen/photutils
57cbe18c8c1b8b08c93daa3d5c8dd74c10c3daae
[ "BSD-3-Clause" ]
null
null
null
photutils/psf/matching/tests/test_fourier.py
barentsen/photutils
57cbe18c8c1b8b08c93daa3d5c8dd74c10c3daae
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) from astropy.tests.helper import pytest import numpy as np from numpy.testing import assert_allclose from astropy.modeling.models import Gaussian2D...
28
66
0.654519
5cdcb8f44c6e045cceed885a2032e200b8e88365
4,563
py
Python
modules/User/UserServices.py
Ankush1122/TripIndia
9e53c7327df872fcae5365a5f78c3f54acbd138d
[ "MIT" ]
3
2022-01-20T06:15:55.000Z
2022-02-22T11:41:45.000Z
modules/User/UserServices.py
Ankush1122/TripIndia
9e53c7327df872fcae5365a5f78c3f54acbd138d
[ "MIT" ]
null
null
null
modules/User/UserServices.py
Ankush1122/TripIndia
9e53c7327df872fcae5365a5f78c3f54acbd138d
[ "MIT" ]
1
2022-03-11T01:24:44.000Z
2022-03-11T01:24:44.000Z
from flask import session from User import UserRepo import bcrypt from datetime import date
36.214286
113
0.582731
5cde3fd52f5ddb2bee45950e7d4344b379d6318c
683
py
Python
exercicios.py/ex070.py
Gabriel-Richard/Python-projects
bd4111ccb0a1c23f228b4e4e2d6699ea86d5352a
[ "MIT" ]
1
2021-05-03T03:16:09.000Z
2021-05-03T03:16:09.000Z
exercicios.py/ex070.py
Gabriel-Richard/Python-projects
bd4111ccb0a1c23f228b4e4e2d6699ea86d5352a
[ "MIT" ]
null
null
null
exercicios.py/ex070.py
Gabriel-Richard/Python-projects
bd4111ccb0a1c23f228b4e4e2d6699ea86d5352a
[ "MIT" ]
null
null
null
total = contV = mv = 0 nomeMB = ' ' while True: print('-'*20) print('LOJA SUPER BARATO') print('-'*20) nome = str(input('Nome do produto: ')) valor = float(input('Preo: R$')) total += valor if valor >= 1000: contV +=1 if mv == 0 or valor < mv: mv = valor ...
24.392857
70
0.528551
5cdfd7e1aeaff8d47ea33c610cb3c43f0e69f60b
1,216
py
Python
keylog_no_display.py
Reyogin/py-keylogger
74d481864d2be8feafa19b1c3d533566326cda2d
[ "MIT" ]
null
null
null
keylog_no_display.py
Reyogin/py-keylogger
74d481864d2be8feafa19b1c3d533566326cda2d
[ "MIT" ]
null
null
null
keylog_no_display.py
Reyogin/py-keylogger
74d481864d2be8feafa19b1c3d533566326cda2d
[ "MIT" ]
null
null
null
from pynput.keyboard import Key, Listener import logging import datetime import sys log_file='/home/bertrand/Desktop/file_no_display.log' logging.basicConfig(filename=log_file, level=logging.DEBUG, format='%(message)s') message = "" # stop = False main(sys.argv[1])
27.636364
81
0.583059
5ce16af211a4fd1c29169f4c740174c91af9bd08
948
py
Python
pwndb/banner.py
jxlil/pwndb
97b3c10d88542fcb4f2e05e365052458736d7633
[ "MIT" ]
5
2020-10-15T11:38:22.000Z
2022-02-21T19:01:35.000Z
pwndb/banner.py
jxlil/pwndb
97b3c10d88542fcb4f2e05e365052458736d7633
[ "MIT" ]
1
2021-02-08T02:47:55.000Z
2021-02-08T02:47:55.000Z
pwndb/banner.py
jxlil/pwndb
97b3c10d88542fcb4f2e05e365052458736d7633
[ "MIT" ]
1
2021-08-22T22:03:05.000Z
2021-08-22T22:03:05.000Z
#!/usr/bin/env python3.8 from string import ascii_uppercase, digits from pwndb import __version__ from pwndb import __author__ from pwndb import __name__ from random import randint, sample from time import sleep
23.7
70
0.666667
5ce196dca8c8039a444c95714fd3125be87cd277
15,655
py
Python
scrapenhl2/plot/game_h2h.py
muneebalam/scrapenhl2
a9867f03d002773da852fc150f2976adc2ba8c25
[ "MIT" ]
17
2017-10-24T20:18:08.000Z
2021-09-23T13:00:37.000Z
scrapenhl2/plot/game_h2h.py
muneebalam/scrapenhl2
a9867f03d002773da852fc150f2976adc2ba8c25
[ "MIT" ]
34
2017-10-31T02:32:46.000Z
2019-08-31T19:10:21.000Z
scrapenhl2/plot/game_h2h.py
muneebalam/scrapenhl2
a9867f03d002773da852fc150f2976adc2ba8c25
[ "MIT" ]
6
2017-10-24T20:18:09.000Z
2020-02-15T23:44:36.000Z
""" This module contains methods for creating a game H2H chart. """ import matplotlib.pyplot as plt import numpy as np # standard scientific python stack import pandas as pd # standard scientific python stack from scrapenhl2.manipulate import manipulate as manip from scrapenhl2.scrape import schedules, team_info, p...
44.728571
118
0.623571
5ce46d32413cf042819f02a579cccdb6b45b5776
1,247
py
Python
model/contact.py
Dimonaz84/python_course
bdeb4ebf01dc070598901c17d19949ad120f2759
[ "Apache-2.0" ]
null
null
null
model/contact.py
Dimonaz84/python_course
bdeb4ebf01dc070598901c17d19949ad120f2759
[ "Apache-2.0" ]
null
null
null
model/contact.py
Dimonaz84/python_course
bdeb4ebf01dc070598901c17d19949ad120f2759
[ "Apache-2.0" ]
null
null
null
from sys import maxsize
35.628571
105
0.651163
5ce5e4b7c9b816bf74ddfba8049f6f4c9472df5a
17,903
py
Python
utils/tester.py
niloofar17/MetaDialog
d75b84a02807d53d9596e72c2f698e5a4f180369
[ "Apache-2.0" ]
204
2020-08-14T13:32:09.000Z
2022-03-04T14:14:46.000Z
utils/tester.py
niloofar17/MetaDialog
d75b84a02807d53d9596e72c2f698e5a4f180369
[ "Apache-2.0" ]
12
2020-08-25T09:48:29.000Z
2021-12-20T15:35:26.000Z
utils/tester.py
niloofar17/MetaDialog
d75b84a02807d53d9596e72c2f698e5a4f180369
[ "Apache-2.0" ]
23
2020-08-25T01:23:03.000Z
2022-02-17T03:06:26.000Z
# coding: utf-8 from typing import List, Tuple, Dict import torch import logging import sys import os import copy import json import collections import subprocess from tqdm import tqdm, trange from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler from torch.utils.data.distributed impo...
40.874429
148
0.614422
5ce80422205581fd68e4940053b6677499c294c6
1,883
py
Python
hooks/hooks.py
dellstorage/charm-cinder-dellsc
6ca8ccb74f046053ed4349c257024e1fe93f74af
[ "Apache-2.0" ]
null
null
null
hooks/hooks.py
dellstorage/charm-cinder-dellsc
6ca8ccb74f046053ed4349c257024e1fe93f74af
[ "Apache-2.0" ]
null
null
null
hooks/hooks.py
dellstorage/charm-cinder-dellsc
6ca8ccb74f046053ed4349c257024e1fe93f74af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Dell Inc. # # 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 appl...
28.104478
78
0.696229
7a225de93f06a37b678bba8d786f272741b99b71
715
py
Python
PhythonExercicios/ex056.py
Luis-Otavio-Araujo/Curso-de-Python
1283b26ee7057d61043cfbab53841bac5e1d4487
[ "MIT" ]
1
2021-07-31T18:57:46.000Z
2021-07-31T18:57:46.000Z
PhythonExercicios/ex056.py
Luis-Otavio-Araujo/Curso-de-Python
1283b26ee7057d61043cfbab53841bac5e1d4487
[ "MIT" ]
null
null
null
PhythonExercicios/ex056.py
Luis-Otavio-Araujo/Curso-de-Python
1283b26ee7057d61043cfbab53841bac5e1d4487
[ "MIT" ]
null
null
null
idvelho = 0 nmvelho = '' idade = 0 media = 0 contM = 0 sexo = '' for p in range(1, 5) : print('---- {} PESSOA ----'.format(p)) nome = str(input('Nome: ')) idade = int(input('Idade: ')) media += idade sexo = str(input('Sexo [M/F]: ')) if p == 1 and sexo in 'Mm' : idvelho = idade ...
23.064516
87
0.54965
7a251a70e104374e1417ba0f70ba4314b680e323
11,457
py
Python
tests/unit/loop/test_splitfuncs.py
benkrikler/alphatwirl
cda7d12fec21291ea33af23234fc08be19430934
[ "BSD-3-Clause" ]
null
null
null
tests/unit/loop/test_splitfuncs.py
benkrikler/alphatwirl
cda7d12fec21291ea33af23234fc08be19430934
[ "BSD-3-Clause" ]
7
2018-02-26T10:32:26.000Z
2018-03-19T12:27:12.000Z
tests/unit/loop/test_splitfuncs.py
benkrikler/alphatwirl
cda7d12fec21291ea33af23234fc08be19430934
[ "BSD-3-Clause" ]
null
null
null
import sys import unittest from alphatwirl.loop.splitfuncs import * from alphatwirl.loop.splitfuncs import _apply_max_events_total from alphatwirl.loop.splitfuncs import _file_start_length_list from alphatwirl.loop.splitfuncs import _start_length_pairs_for_split_lists from alphatwirl.loop.splitfuncs import _minimum_po...
46.763265
183
0.528498
7a2548562ee5c125b5c6d758d30c09322862af85
1,989
py
Python
tests/helpers/examples/failure_reasons/__init__.py
proofit404/userstories
aebfc088c8b7aab80a227e48e29be638411ffd86
[ "BSD-2-Clause" ]
187
2018-06-13T09:13:32.000Z
2020-05-28T05:02:23.000Z
tests/helpers/examples/failure_reasons/__init__.py
supadrupa/stories
3f1de66eae1216888eb5a7d2951013b8bbb4da25
[ "BSD-2-Clause" ]
426
2018-04-02T14:12:31.000Z
2021-12-14T05:13:45.000Z
tests/helpers/examples/failure_reasons/__init__.py
proofit404/userstories
aebfc088c8b7aab80a227e48e29be638411ffd86
[ "BSD-2-Clause" ]
15
2018-11-03T09:03:38.000Z
2020-05-10T17:16:47.000Z
from enum import Enum from stories import story # Base classes. ChildWithList.x.failures(["foo", "bar", "baz"]) NextChildWithList.y.failures(["spam", "ham", "eggs"]) ParentWithList.a.failures(["foo", "bar", "baz"]) WideParentWithList.a.failures(["foo", "bar", "baz", "quiz"]) ShrinkParentWithList.a...
12.75
60
0.535445
7a2b2c34aec6a34a832cefbfebdfc71cef3b5c48
1,489
py
Python
collector.py
sgedward/PL_Hack_2018
6500dc74efb2ebaa01a1fc22c2caf240826e6daf
[ "Apache-2.0" ]
null
null
null
collector.py
sgedward/PL_Hack_2018
6500dc74efb2ebaa01a1fc22c2caf240826e6daf
[ "Apache-2.0" ]
null
null
null
collector.py
sgedward/PL_Hack_2018
6500dc74efb2ebaa01a1fc22c2caf240826e6daf
[ "Apache-2.0" ]
null
null
null
from survey import Survey from question import Question
26.122807
55
0.609805
7a2beccb20b101469add30621b17d27226afd39b
110
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/pg-7.4-local-variable.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/pg-7.4-local-variable.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/pg-7.4-local-variable.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
x = 20 myfnc(x) print(x)
11
28
0.554545
7a2c65b9c5d64dd98a936e53f6434df2a7012c90
5,894
py
Python
figcon/core.py
seismopy/figcon
7e5d6ac30ea49bce8a566f9afb7e9e5af081164c
[ "BSD-3-Clause" ]
null
null
null
figcon/core.py
seismopy/figcon
7e5d6ac30ea49bce8a566f9afb7e9e5af081164c
[ "BSD-3-Clause" ]
null
null
null
figcon/core.py
seismopy/figcon
7e5d6ac30ea49bce8a566f9afb7e9e5af081164c
[ "BSD-3-Clause" ]
null
null
null
""" Class for handling options. """ import inspect from typing import Union, Optional from importlib._bootstrap import module_from_spec from importlib._bootstrap_external import spec_from_file_location from pathlib import Path _path_directives = {'primary', 'secondary', 'default'}
35.293413
88
0.578894
7a2ce153b4cd45d584ee454d5eb65e0e47462daa
168
py
Python
backend/app/paste/schemas/paste_schema.py
d4sein/Pastebin
ffe57809f5383696ea6055743755da01d7e6130c
[ "Unlicense" ]
3
2020-01-02T23:43:35.000Z
2020-11-11T10:40:42.000Z
backend/app/paste/schemas/paste_schema.py
d4sein/Pastebin
ffe57809f5383696ea6055743755da01d7e6130c
[ "Unlicense" ]
2
2021-10-06T09:03:47.000Z
2022-02-18T17:10:26.000Z
backend/app/paste/schemas/paste_schema.py
d4sein/Pastebin
ffe57809f5383696ea6055743755da01d7e6130c
[ "Unlicense" ]
2
2020-01-07T15:54:49.000Z
2020-01-09T00:57:19.000Z
from app import ma from app.paste.models.paste_model import Paste
16.8
46
0.696429
7a2d4709f847bfae9973773e6b771f2d944d8f6a
408
py
Python
UE4Parse/IO/IoObjects/FIoDirectoryIndexEntry.py
MinshuG/pyUE4Parse
96cda8132ff423bd36be20828025c2c1c0a7e406
[ "MIT" ]
13
2021-06-09T09:21:00.000Z
2022-03-30T22:13:24.000Z
UE4Parse/IO/IoObjects/FIoDirectoryIndexEntry.py
MinshuG/pyUE4Parse
96cda8132ff423bd36be20828025c2c1c0a7e406
[ "MIT" ]
3
2021-09-04T22:23:02.000Z
2022-03-04T09:45:45.000Z
UE4Parse/IO/IoObjects/FIoDirectoryIndexEntry.py
MinshuG/pyUE4Parse
96cda8132ff423bd36be20828025c2c1c0a7e406
[ "MIT" ]
6
2021-09-02T10:28:21.000Z
2022-03-30T22:13:37.000Z
from UE4Parse.BinaryReader import BinaryStream
27.2
51
0.715686
7a2d91a2be0463ad110f4e50fcc81532e82c1deb
2,401
py
Python
python/multi_view_learning/nn_leaveOneOut.py
thekingofkings/chicago-crime
30550697402aa3a5a074096a0032b0c1e1264313
[ "MIT" ]
10
2016-11-08T04:31:06.000Z
2021-07-28T15:17:52.000Z
python/multi_view_learning/nn_leaveOneOut.py
thekingofkings/chicago-crime
30550697402aa3a5a074096a0032b0c1e1264313
[ "MIT" ]
24
2016-04-19T15:07:52.000Z
2017-05-20T02:29:23.000Z
python/multi_view_learning/nn_leaveOneOut.py
thekingofkings/urban-flow-analysis
30550697402aa3a5a074096a0032b0c1e1264313
[ "MIT" ]
5
2016-09-13T21:13:46.000Z
2019-12-04T11:40:02.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Tensor flow NN model for leave-one-out evaluation. Created on Fri Apr 7 14:25:01 2017 @author: hxw186 """ import tensorflow as tf import numpy as np import sys sys.path.append("../") from feature_evaluation import build_features def leaveOneOut_error(Y, D, P,...
34.3
110
0.573928
7a31c8b4ec0476f6ea703da5244286c922d12e7a
1,648
py
Python
tests/unit/test_engine_detection.py
blinkhealth/vault-anyconfig
5f23cbcdf8d6bccb2e1a79d62b8757d5262fc4b4
[ "Apache-2.0" ]
6
2019-04-10T06:02:07.000Z
2021-09-18T19:13:09.000Z
tests/unit/test_engine_detection.py
tomtom-international/vault-anyconf
5292319c483a56108d6a1d6888520c964ae185b2
[ "Apache-2.0" ]
11
2019-04-01T08:08:56.000Z
2021-01-08T20:34:58.000Z
tests/unit/test_engine_detection.py
LaudateCorpus1/vault-anyconfig
5292319c483a56108d6a1d6888520c964ae185b2
[ "Apache-2.0" ]
5
2019-03-29T14:59:08.000Z
2021-09-14T04:04:07.000Z
import pytest from hypothesis import given, example import hypothesis.strategies as strat from vault_anyconfig.vault_anyconfig import VaultAnyConfig
41.2
93
0.796723
7a32a2cc13a371aeea8826e31b4c1e1288646ea4
12,553
py
Python
Sem8/Server Code with Link.py
sban2009/STCET
08c1bd5a926dfd47f0a11ceb85ac491138e074a6
[ "MIT" ]
null
null
null
Sem8/Server Code with Link.py
sban2009/STCET
08c1bd5a926dfd47f0a11ceb85ac491138e074a6
[ "MIT" ]
null
null
null
Sem8/Server Code with Link.py
sban2009/STCET
08c1bd5a926dfd47f0a11ceb85ac491138e074a6
[ "MIT" ]
null
null
null
"""BrandComparator2.ipynb Server Link: https://colab.research.google.com/drive/15x-yWFGtF57rOCfi9tqEONlYWeGlkoml [Colab Notebook with Explanation](https://colab.research.google.com/drive/1dYH5PAausru6lQy1dh5-aGC9S9DXO_bV?usp=sharing) [Anvil App](https://NPFLBAAEVOXXUYZK.anvil.app/QED54JFBPJMZBQPITDWWVL75) # Inst...
34.391781
127
0.635944
7a34585cee5f6c6c91b2cf53bed30b1788441684
1,576
py
Python
Week 3/ex2/courses/course.py
rmit-s3559384-andrew-alvaro/IoT
ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f
[ "MIT" ]
null
null
null
Week 3/ex2/courses/course.py
rmit-s3559384-andrew-alvaro/IoT
ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f
[ "MIT" ]
1
2021-06-01T23:39:58.000Z
2021-06-01T23:39:58.000Z
Week 3/ex2/courses/course.py
AndrewAlvaro/IoT
ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f
[ "MIT" ]
null
null
null
from abc import ABC, ABCMeta, abstractmethod
27.649123
111
0.614213
7a356411420200aa68675a56dd7357aebc52d79b
3,440
py
Python
train_xception_unet.py
doublechenching/ship_detection
1ba4926e0d28043863df05ae8afc3d5b336b350d
[ "Apache-2.0" ]
8
2019-03-12T08:47:37.000Z
2021-05-13T05:28:20.000Z
train_xception_unet.py
doublechenching/ship_detection
1ba4926e0d28043863df05ae8afc3d5b336b350d
[ "Apache-2.0" ]
null
null
null
train_xception_unet.py
doublechenching/ship_detection
1ba4926e0d28043863df05ae8afc3d5b336b350d
[ "Apache-2.0" ]
null
null
null
#encoding: utf-8 from __future__ import print_function from config import config as cfg from utils import init_env sess = init_env('0') from dataset.data import clean_df, dataset_split from dataset.generators import BaseGenerator from models import XceptionUnet from metrics import dice_coef, dice_loss, bce_with_tv_loss...
44.675325
109
0.624128
7a35bf0f4d9cc0c9d167afdd16979f69be3ead4a
401
py
Python
{{ cookiecutter.repo_name }}/{{cookiecutter.source_name}}/core/mixins/pickle_mixin.py
IngerMathilde/cookiecutter-data-science-dev
f0bec56aaf5b6b74b56241be47356fec957e34dc
[ "MIT" ]
1
2022-01-18T22:52:10.000Z
2022-01-18T22:52:10.000Z
{{ cookiecutter.repo_name }}/{{cookiecutter.source_name}}/core/mixins/pickle_mixin.py
IngerMathilde/cookiecutter-data-science-poetry-docker-makefile
f0bec56aaf5b6b74b56241be47356fec957e34dc
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/{{cookiecutter.source_name}}/core/mixins/pickle_mixin.py
IngerMathilde/cookiecutter-data-science-poetry-docker-makefile
f0bec56aaf5b6b74b56241be47356fec957e34dc
[ "MIT" ]
null
null
null
import gzip import pickle
26.733333
57
0.600998
7a38a18152adf10aeed07ebbf330dfccd8a11bdd
1,590
py
Python
tests/test_get_drive_url.py
fem-on-colab/open-in-colab-workflow
d5309ff527cbea8a536a8890c88a8cc39bdb8b3c
[ "MIT" ]
null
null
null
tests/test_get_drive_url.py
fem-on-colab/open-in-colab-workflow
d5309ff527cbea8a536a8890c88a8cc39bdb8b3c
[ "MIT" ]
null
null
null
tests/test_get_drive_url.py
fem-on-colab/open-in-colab-workflow
d5309ff527cbea8a536a8890c88a8cc39bdb8b3c
[ "MIT" ]
null
null
null
# Copyright (C) 2021-2022 by the FEM on Colab authors # # This file is part of FEM on Colab-related actions. # # SPDX-License-Identifier: MIT """Tests for the open_in_colab_workflow.get_drive_url package.""" import os import tempfile import pytest from open_in_colab_workflow.get_drive_url import get_drive_url
45.428571
113
0.771069
7a3aabbf9eae4fd84b1aae63ec54fad76334d738
9,006
py
Python
cvpysdk/instances/sharepointinstance.py
mattmorganpdx/cvpysdk
ff8f4ee2aa76be65b35be118a7c872e6414f4a01
[ "Apache-2.0" ]
35
2016-11-30T03:51:02.000Z
2020-05-14T09:48:34.000Z
cvpysdk/instances/sharepointinstance.py
mattmorganpdx/cvpysdk
ff8f4ee2aa76be65b35be118a7c872e6414f4a01
[ "Apache-2.0" ]
88
2016-11-30T03:56:00.000Z
2020-05-14T06:58:36.000Z
cvpysdk/instances/sharepointinstance.py
mattmorganpdx/cvpysdk
ff8f4ee2aa76be65b35be118a7c872e6414f4a01
[ "Apache-2.0" ]
40
2016-11-29T04:11:07.000Z
2020-06-06T15:02:59.000Z
# -*- coding: utf-8 -*- # -------------------------------------------------------------------------- # Copyright Commvault Systems, Inc. # # 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 # # ...
38.818966
113
0.561848
7a3bf82ffb41a87ec9399ff8dca826537eac4c4f
1,039
py
Python
ecdsa_keygen.py
seandsanders/ecdsa_keygen
5c7f71a8f403e4f69beeeca3d0df576a89045ee7
[ "MIT" ]
1
2015-12-17T10:46:37.000Z
2015-12-17T10:46:37.000Z
ecdsa_keygen.py
seandsanders/ecdsa_keygen
5c7f71a8f403e4f69beeeca3d0df576a89045ee7
[ "MIT" ]
null
null
null
ecdsa_keygen.py
seandsanders/ecdsa_keygen
5c7f71a8f403e4f69beeeca3d0df576a89045ee7
[ "MIT" ]
null
null
null
import argparse from binascii import hexlify from ecdsa import SigningKey, NIST256p from ecdsa.curves import curves if __name__ == '__main__': main()
28.081081
70
0.709336
7a3f5bf4f898d53208c52e968fc76659ea97c833
333
py
Python
BlockingThreadPoolExecutor.py
etherandrius/information-networks
47e64e4fcbd2c1fd076ab69cb8254efef6c846ae
[ "MIT" ]
null
null
null
BlockingThreadPoolExecutor.py
etherandrius/information-networks
47e64e4fcbd2c1fd076ab69cb8254efef6c846ae
[ "MIT" ]
null
null
null
BlockingThreadPoolExecutor.py
etherandrius/information-networks
47e64e4fcbd2c1fd076ab69cb8254efef6c846ae
[ "MIT" ]
null
null
null
from concurrent.futures import ThreadPoolExecutor import queue
37
88
0.801802
7a3f7f1d161d3a541bd3089525bba0407dc84894
789
py
Python
Data_Conversion/Data_split_result.py
KristofferLM96/TsetlinMachine-GO
926091fc70042abe5a67230932398bdab2c46328
[ "MIT" ]
2
2020-02-27T16:22:08.000Z
2020-03-22T11:04:35.000Z
Data_Conversion/Data_split_result.py
KristofferLM96/TsetlinMachine-GO
926091fc70042abe5a67230932398bdab2c46328
[ "MIT" ]
null
null
null
Data_Conversion/Data_split_result.py
KristofferLM96/TsetlinMachine-GO
926091fc70042abe5a67230932398bdab2c46328
[ "MIT" ]
null
null
null
import csv name = "100_9x9Aya" win = open("Data/Results-Split/" + name + "_win.txt", 'w+') loss = open("Data/Results-Split/" + name + "_loss.txt", 'w+') draw = open("Data/Results-Split/" + name + "_draw.txt", 'w+') with open("Data/Binary/" + name + "_binary.txt", newline='') as file: reader = csv.reader(file) ...
22.542857
69
0.534854
7a400c47af362a2ef6620ae106ee2dc76eccc7dd
1,595
py
Python
dev_scripts/git/gsp.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
dev_scripts/git/gsp.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
dev_scripts/git/gsp.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Stash the changes in a Git client without changing the client, besides a reset of the index. """ import argparse import logging import helpers.dbg as dbg import helpers.git as git import helpers.parser as prsr import helpers.printing as pri import helpers.system_interaction as si _LOG = lo...
24.538462
81
0.642633
7a410088b9aa6d1bcbdedfa244520c0a4842f7d4
2,061
py
Python
Qt-Widgets-and-more/debuggingHelper/QWAMTypes.py
jgompis/kdabtv
3783fb788b36476f8d35b9848c3d8880489c4582
[ "MIT" ]
140
2020-01-11T11:23:54.000Z
2022-03-27T16:57:50.000Z
Qt-Widgets-and-more/debuggingHelper/QWAMTypes.py
jgompis/kdabtv
3783fb788b36476f8d35b9848c3d8880489c4582
[ "MIT" ]
2
2020-09-05T11:50:52.000Z
2020-12-06T18:46:24.000Z
Qt-Widgets-and-more/debuggingHelper/QWAMTypes.py
jgompis/kdabtv
3783fb788b36476f8d35b9848c3d8880489c4582
[ "MIT" ]
44
2020-03-04T10:17:36.000Z
2022-03-17T13:28:27.000Z
# Check http://doc.qt.io/qtcreator/creator-debugging-helpers.html # for more details or look at qttypes.py, stdtypes.py, boosttypes.py # for more complex examples. from dumper import Children, SubItem, UnnamedSubItem, DumperBase from utils import DisplayFormat, TypeCode from qttypes import * import struct ############...
31.707692
82
0.616206
7a43a4953b789be6211108246f159108a8301d44
5,781
py
Python
framework/boards/PUCKJS.py
leeeastwood/Haiway
153b6861f864966c454f97febe03ae191a9a8657
[ "MIT" ]
162
2019-01-04T14:23:52.000Z
2021-12-26T05:51:34.000Z
framework/boards/PUCKJS.py
leeeastwood/Haiway
153b6861f864966c454f97febe03ae191a9a8657
[ "MIT" ]
6
2019-01-04T14:32:15.000Z
2020-08-07T06:47:34.000Z
framework/boards/PUCKJS.py
leeeastwood/Haiway
153b6861f864966c454f97febe03ae191a9a8657
[ "MIT" ]
130
2019-01-04T14:24:33.000Z
2021-06-25T16:48:56.000Z
#!/bin/false # This file is part of Espruino, a JavaScript interpreter for Microcontrollers # # Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at h...
35.906832
156
0.611313
7a443067778a3d186efc3a896ceccd717d93dbb5
1,555
py
Python
nilearn/reporting/tests/test_sphinx_report.py
ryanhammonds/nilearn
f33cd4e4685d9050e5bba0a8ece1b0b0f0ad1be2
[ "BSD-2-Clause" ]
3
2019-11-07T08:50:32.000Z
2020-01-13T22:06:17.000Z
nilearn/reporting/tests/test_sphinx_report.py
ryanhammonds/nilearn
f33cd4e4685d9050e5bba0a8ece1b0b0f0ad1be2
[ "BSD-2-Clause" ]
null
null
null
nilearn/reporting/tests/test_sphinx_report.py
ryanhammonds/nilearn
f33cd4e4685d9050e5bba0a8ece1b0b0f0ad1be2
[ "BSD-2-Clause" ]
1
2017-08-26T08:19:29.000Z
2017-08-26T08:19:29.000Z
import numpy as np import os.path as op from nibabel import Nifti1Image from sklearn.utils import Bunch from nilearn.input_data import NiftiMasker from nilearn.reporting import _ReportScraper def _gen_report(): """ Generate an empty HTMLReport for testing """ data = np.zeros((9, 9, 9)) data[3:-3, 3:-3, 3...
33.804348
77
0.666238
7a44edc7fae51f9addf0332e6a2abbb11253fe57
8,636
py
Python
libs/utils/energy.py
BayLibre/lisa
185e2c62da43f1cab5cc137caec6744ca137508d
[ "Apache-2.0" ]
null
null
null
libs/utils/energy.py
BayLibre/lisa
185e2c62da43f1cab5cc137caec6744ca137508d
[ "Apache-2.0" ]
null
null
null
libs/utils/energy.py
BayLibre/lisa
185e2c62da43f1cab5cc137caec6744ca137508d
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2015, ARM Limited and contributors. # # 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 # # ...
31.403636
103
0.564729
7a45a05357b5552a7273641e623858bfe8a19591
411
py
Python
tests/processor/data_logminer_rejected_alters.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/processor/data_logminer_rejected_alters.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/processor/data_logminer_rejected_alters.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
import collections TestCase = collections.namedtuple('TestCase', "description input_table_name input_commit_statement input_primary_key_fields expected_entries expected_sql") tests=[ TestCase( description="Rejected", input_table_name="ALS2", input_commit_statement="""ALTER TABLE ALS2 shrink space check"...
27.4
155
0.766423
7a464c1c429b96da06fe21db0719d6096bae16b9
1,199
py
Python
graphitepager/graphite_target.py
ProsperWorks/graphite-pager
04810e6b6137ad462c542c865d2a83ec498671c1
[ "BSD-2-Clause" ]
null
null
null
graphitepager/graphite_target.py
ProsperWorks/graphite-pager
04810e6b6137ad462c542c865d2a83ec498671c1
[ "BSD-2-Clause" ]
6
2017-02-03T04:03:00.000Z
2021-08-05T13:08:12.000Z
graphitepager/graphite_target.py
ProsperWorks/graphite-pager
04810e6b6137ad462c542c865d2a83ec498671c1
[ "BSD-2-Clause" ]
null
null
null
import os
30.74359
82
0.541284
7a4667f341377c8e328f5e9934a8ed7036bc65d5
2,828
py
Python
c3.4-6_1201_softmax.py
Julia-Run/Dive-into-DL-PyTorch
c67e80223bbb0f86b3708d4795162c9a5af76684
[ "MIT" ]
null
null
null
c3.4-6_1201_softmax.py
Julia-Run/Dive-into-DL-PyTorch
c67e80223bbb0f86b3708d4795162c9a5af76684
[ "MIT" ]
null
null
null
c3.4-6_1201_softmax.py
Julia-Run/Dive-into-DL-PyTorch
c67e80223bbb0f86b3708d4795162c9a5af76684
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt import time import sys sys.path.append("..") import d2lzh_pytorch as d2l mnist_train = torchvision.datasets.FashionMNIST(root='~/Datasets/FashionMNIST', train=True, download=True, ...
35.797468
121
0.657001
7a470425fcef9c73f04eeb1fd7a8477f63da1659
1,167
py
Python
.archived/snakecode/0007.py
gearbird/calgo
ab48357100de2a5ea47fda2d9f01ced6dc73fa79
[ "MIT" ]
4
2022-01-13T03:39:01.000Z
2022-03-15T03:16:33.000Z
.archived/snakecode/0007.py
gearbird/calgo
ab48357100de2a5ea47fda2d9f01ced6dc73fa79
[ "MIT" ]
null
null
null
.archived/snakecode/0007.py
gearbird/calgo
ab48357100de2a5ea47fda2d9f01ced6dc73fa79
[ "MIT" ]
1
2021-12-09T12:33:07.000Z
2021-12-09T12:33:07.000Z
if __name__ == '__main__': s = Solution() print(s.reverse(-10))
35.363636
109
0.56641
7a4859bc53bbe4a3b3dcad56a45d683fde79184d
246
py
Python
tests/runner/test_bobo3_profile.py
andyfase/awscfncli
467297a93b74ac094202af980140f93b531800fd
[ "MIT" ]
60
2017-01-16T09:52:36.000Z
2021-09-07T23:27:01.000Z
tests/runner/test_bobo3_profile.py
andyfase/awscfncli
467297a93b74ac094202af980140f93b531800fd
[ "MIT" ]
103
2017-08-22T17:01:31.000Z
2021-09-02T15:32:34.000Z
tests/runner/test_bobo3_profile.py
andyfase/awscfncli
467297a93b74ac094202af980140f93b531800fd
[ "MIT" ]
16
2017-08-22T16:24:11.000Z
2021-06-30T11:45:51.000Z
from awscfncli2.runner import Boto3Profile
22.363636
42
0.634146
7a4e5544c197a72ce49e177511e69d100cc478b3
1,880
py
Python
Lectures_Codes/examples-05/lecture05/lenghts_of_words_example/lengths_of_words.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Lectures_Codes/examples-05/lecture05/lenghts_of_words_example/lengths_of_words.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Lectures_Codes/examples-05/lecture05/lenghts_of_words_example/lengths_of_words.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
from collections import Counter, defaultdict from stats import print_histogram_2d # This is a list of characters that are interpreted as punctuations and thus ignored. punctuation_chars = ",;:.?!()[]<>/-'\"" trtrable = str.maketrans(punctuation_chars, " " * len(punctuation_chars)) def get_word_lengths(filename): ...
28.923077
192
0.594149
7a517ad7617547ff55f89c7a3bfceaa04839b63d
2,609
py
Python
results_to_csv.py
swenkel/python-math-benchmark
adf95263f85dca78f1b13e5283fc7f16edb6bb8d
[ "Apache-2.0" ]
2
2022-01-21T02:18:28.000Z
2022-03-08T12:30:14.000Z
results_to_csv.py
berhane/python-math-benchmark
adf95263f85dca78f1b13e5283fc7f16edb6bb8d
[ "Apache-2.0" ]
null
null
null
results_to_csv.py
berhane/python-math-benchmark
adf95263f85dca78f1b13e5283fc7f16edb6bb8d
[ "Apache-2.0" ]
1
2022-01-21T02:19:19.000Z
2022-01-21T02:19:19.000Z
################################################################################ # # # Script to convert results to csv # # ...
45.77193
80
0.312764
7a52c238341967b4b2ca1a48a58b6da16d904075
4,212
py
Python
malaya_speech/train/model/resnet_unet_enhancement/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
malaya_speech/train/model/resnet_unet_enhancement/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
malaya_speech/train/model/resnet_unet_enhancement/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import tensorflow as tf from tensorflow.keras.layers import ( BatchNormalization, LeakyReLU, Activation, Conv1D, ELU, Add, ) from functools import partial from tensorflow.compat.v1.keras.initializers import he_uniform def _get_conv_activation_layer(params): """ :param params: :retu...
28.653061
75
0.537512
7a53b57a7b74cbdc2de72cbc43f9edd1ac439064
5,251
py
Python
mnist_TF_layers.py
hughkong/asstarer
ed331aa2b4c7665f10214117510cfee099216ede
[ "Apache-2.0" ]
1
2021-06-20T11:44:05.000Z
2021-06-20T11:44:05.000Z
mnist_TF_layers.py
hughkong/asstarer
ed331aa2b4c7665f10214117510cfee099216ede
[ "Apache-2.0" ]
null
null
null
mnist_TF_layers.py
hughkong/asstarer
ed331aa2b4c7665f10214117510cfee099216ede
[ "Apache-2.0" ]
2
2020-04-12T10:52:11.000Z
2021-02-23T14:06:58.000Z
# 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, software # distributed under th...
47.306306
126
0.754713
7a540ebd8111effe283fdbb056340d3d77e2be0c
13,820
py
Python
src/isl_utils.py
kkourt/cmnnc
965e8150ab50c19237dbf4afd2e62bca1f5d53c8
[ "BSD-3-Clause" ]
8
2020-04-08T04:27:22.000Z
2022-01-02T08:21:07.000Z
src/isl_utils.py
kkourt/cmnnc
965e8150ab50c19237dbf4afd2e62bca1f5d53c8
[ "BSD-3-Clause" ]
null
null
null
src/isl_utils.py
kkourt/cmnnc
965e8150ab50c19237dbf4afd2e62bca1f5d53c8
[ "BSD-3-Clause" ]
5
2020-02-05T11:59:38.000Z
2021-12-07T07:14:14.000Z
# Copyright (c) 2019, IBM Research. # # Author: Kornilios Kourtis <kou@zurich.ibm.com> # # vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: import typing import ast as pyast import islpy as isl # import ast as pyast # import astor as pyastor # from astpp import parseprint, dump as astpp_dump # TODO: add an...
31.916859
91
0.581838
7a552a9af357fa3d4f6531fd216e77f2358e2474
4,445
py
Python
src/robotide/lib/robot/running/outputcapture.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
8
2015-09-10T07:45:58.000Z
2020-04-13T06:25:06.000Z
src/robotide/lib/robot/running/outputcapture.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
1
2020-08-03T10:01:06.000Z
2020-08-03T10:01:06.000Z
src/robotide/lib/robot/running/outputcapture.py
veryl-technologies/t24-tests-ide
16cd803895916a785c0e1fec3f71f9388c21edc9
[ "ECL-2.0", "Apache-2.0" ]
10
2015-10-06T13:29:50.000Z
2021-05-31T01:04:01.000Z
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # 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...
34.457364
79
0.652193
7a5631563abbee09e3dc6aba4770d276955ccd69
1,018
py
Python
utils.py
yinziyan1206/nado_unit
1b4f7ebbcbff05c8feafe1abbb9bd26fc1e3e75a
[ "MIT" ]
null
null
null
utils.py
yinziyan1206/nado_unit
1b4f7ebbcbff05c8feafe1abbb9bd26fc1e3e75a
[ "MIT" ]
null
null
null
utils.py
yinziyan1206/nado_unit
1b4f7ebbcbff05c8feafe1abbb9bd26fc1e3e75a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 __author__ = 'ziyan.yin' from threading import Lock from typing import Dict from .unit import units locks: Dict[str, Lock] = dict()
20.36
80
0.590373
7a564ab57d02a505bfacb7c2b8b4772a8a66f555
2,601
py
Python
old_bin/fwhmSweepTmp.py
sdss/ObserverTools
7f9949341edc91a79dac69d79e24af09e8558ffa
[ "BSD-3-Clause" ]
null
null
null
old_bin/fwhmSweepTmp.py
sdss/ObserverTools
7f9949341edc91a79dac69d79e24af09e8558ffa
[ "BSD-3-Clause" ]
null
null
null
old_bin/fwhmSweepTmp.py
sdss/ObserverTools
7f9949341edc91a79dac69d79e24af09e8558ffa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # usage: # fwhmSweep.py 56530 7 14 # fwhmSweep.py <mjd> <file number first> <file nimber last> import glob import pyfits import sys, os import numpy as np from scipy import ndimage from pylab import * import scipy directory="/data/ecam/%s/" % (sys.argv[1]) # if directory exist? if os.pa...
27.09375
131
0.605536
7a565900a54a138a678990c731ee449abfbb87b7
7,107
py
Python
code/satellite_shuffler.py
mjvakili/gambly
611765bc42d8c42d76558b486c4025532155036a
[ "MIT" ]
1
2016-01-29T20:57:07.000Z
2016-01-29T20:57:07.000Z
code/satellite_shuffler.py
mjvakili/Gamble
611765bc42d8c42d76558b486c4025532155036a
[ "MIT" ]
2
2017-03-06T17:55:39.000Z
2018-10-11T16:15:01.000Z
code/satellite_shuffler.py
mjvakili/Gamble
611765bc42d8c42d76558b486c4025532155036a
[ "MIT" ]
null
null
null
''' This is copied from Duncan Campbell's galactic conformity repo: https://github.com/duncandc/galactic_conformity/blob/d34499507558d90c68e50adb559aa3671d1cc420/mock/shuffling/make_satrel_shuffle_hearin_mocks.py ''' import numpy as np import h5py import sys from astropy.io import ascii from astropy import table if ...
52.257353
144
0.622485