hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
4ad5ce0b4290abab4891890ac501c3156152672b
13,902
py
Python
minibenchmarks/go.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
minibenchmarks/go.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
minibenchmarks/go.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# from pypy-benchmarks/own/chaos.py, with some minor modifications # (more output, took out the benchmark harness) # import random, math, sys, time SIZE = 9 GAMES = 200 KOMI = 7.5 EMPTY, WHITE, BLACK = 0, 1, 2 SHOW = {EMPTY: '.', WHITE: 'o', BLACK: 'x'} PASS = -1 MAXMOVES = SIZE*SIZE*3 TIMESTAMP = 0 MOVES = 0 def to...
31.310811
105
0.534743
12,263
0.882103
0
0
0
0
0
0
820
0.058984
4ad6cfb56509f081f06c889b6fbe45a5dd8ec0f3
24,265
py
Python
tools/gen_usb_descriptor.py
BrianPugh/circuitpython
f0bb9635bf311013e7b1ff69d1a0542575cf9d0a
[ "MIT", "Unlicense", "MIT-0", "BSD-3-Clause" ]
1
2020-08-29T12:06:14.000Z
2020-08-29T12:06:14.000Z
tools/gen_usb_descriptor.py
BrianPugh/circuitpython
f0bb9635bf311013e7b1ff69d1a0542575cf9d0a
[ "MIT", "Unlicense", "MIT-0", "BSD-3-Clause" ]
null
null
null
tools/gen_usb_descriptor.py
BrianPugh/circuitpython
f0bb9635bf311013e7b1ff69d1a0542575cf9d0a
[ "MIT", "Unlicense", "MIT-0", "BSD-3-Clause" ]
1
2021-01-18T00:52:39.000Z
2021-01-18T00:52:39.000Z
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors) # # SPDX-License-Identifier: MIT import argparse import os import sys sys.path.append("../../tools/usb_descriptor") from adafruit_usb_descriptor import audio, audio10, cdc, hid, mi...
37.330769
135
0.697465
750
0.030909
0
0
564
0.023243
0
0
7,286
0.300268
4ad7684b6c380ab5df46b6e04110892e72e1a9ab
7,500
py
Python
bclstm/train_meld.py
Columbine21/THUIAR-ERC
90e928e1ce777152e459dbc487acf04c32cbc645
[ "MIT" ]
1
2021-01-28T13:43:32.000Z
2021-01-28T13:43:32.000Z
bclstm/train_meld.py
Columbine21/THUIAR-ERC
90e928e1ce777152e459dbc487acf04c32cbc645
[ "MIT" ]
null
null
null
bclstm/train_meld.py
Columbine21/THUIAR-ERC
90e928e1ce777152e459dbc487acf04c32cbc645
[ "MIT" ]
null
null
null
from tqdm import tqdm import pandas as pd import numpy as np, argparse, time, pickle, random, os, datetime import torch import torch.optim as optim from model import MaskedNLLLoss, BC_LSTM from dataloader import MELDDataLoader from sklearn.metrics import f1_score, confusion_matrix, accuracy_score, classification_re...
41.666667
305
0.625867
0
0
0
0
0
0
0
0
1,257
0.1676
4ad876898c7dcfaaa80fe53e3fa05c848775c82a
1,828
py
Python
bin/p3starcoordcheck.py
emkailu/PAT3DEM
74e7a0f30179e49ea5c7da1bea893e21a3ed601a
[ "MIT" ]
null
null
null
bin/p3starcoordcheck.py
emkailu/PAT3DEM
74e7a0f30179e49ea5c7da1bea893e21a3ed601a
[ "MIT" ]
null
null
null
bin/p3starcoordcheck.py
emkailu/PAT3DEM
74e7a0f30179e49ea5c7da1bea893e21a3ed601a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import argparse import pat3dem.star as p3s import math def main(): progname = os.path.basename(sys.argv[0]) usage = progname + """ [options] <coord star files> Output the coord star files after deleting duplicate particles """ args_def = {'mindis':150} parser = argp...
30.466667
157
0.639497
0
0
0
0
0
0
0
0
581
0.317834
4ad89a5bebd4952730caed6adc03938d82e1dcd1
4,251
py
Python
src/review_scraper.py
ryankirkland/voice-of-the-customer
0214af45cc6aa76bfce64065f07c3f4781ee045e
[ "MIT" ]
null
null
null
src/review_scraper.py
ryankirkland/voice-of-the-customer
0214af45cc6aa76bfce64065f07c3f4781ee045e
[ "MIT" ]
null
null
null
src/review_scraper.py
ryankirkland/voice-of-the-customer
0214af45cc6aa76bfce64065f07c3f4781ee045e
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import pandas as pd import requests import time import sys def reviews_scraper(asin_list, filename): ''' Takes a list of asins, retrieves html for reviews page, and parses out key data points Parameters ---------- List of ASINs (list of strings) Returns: -----...
42.089109
285
0.482945
0
0
0
0
0
0
0
0
1,266
0.297812
4adace3be34277664a2e8a315913402feb463667
3,788
py
Python
lumberdata/metadata.py
cglumberjack/lumber_metadata
aebca5dbecb8d7684b1b169bf2961e4ab0daca2b
[ "MIT" ]
null
null
null
lumberdata/metadata.py
cglumberjack/lumber_metadata
aebca5dbecb8d7684b1b169bf2961e4ab0daca2b
[ "MIT" ]
null
null
null
lumberdata/metadata.py
cglumberjack/lumber_metadata
aebca5dbecb8d7684b1b169bf2961e4ab0daca2b
[ "MIT" ]
null
null
null
# noinspection PyUnresolvedReferences import os import re # TODO I'm going to need to make a dictionary for my big list of stuff i care about and what's needed for # every file type.... RAF = ['EXIF:LensModel', 'MakerNotes:RawImageHeight', 'MakerNotes:RawImageWidth', 'EXIF:CreateDate', 'EXIF:ModifyDate', 'EXI...
35.735849
120
0.573654
0
0
0
0
0
0
0
0
1,940
0.512144
4add579fe7516845335bc7bc7e7d3e61d0a5f88e
27,214
py
Python
rlbench/task_environment.py
robfiras/RLBench
97ab9526b6efb718f2b5aae40897ccd75aeff11e
[ "BSD-3-Clause" ]
null
null
null
rlbench/task_environment.py
robfiras/RLBench
97ab9526b6efb718f2b5aae40897ccd75aeff11e
[ "BSD-3-Clause" ]
null
null
null
rlbench/task_environment.py
robfiras/RLBench
97ab9526b6efb718f2b5aae40897ccd75aeff11e
[ "BSD-3-Clause" ]
null
null
null
import logging from typing import List, Callable import numpy as np from pyquaternion import Quaternion from pyrep import PyRep from pyrep.errors import IKError from pyrep.objects import Dummy, Object from rlbench import utils from rlbench.action_modes import ArmActionMode, ActionMode from rlbench.backend.exceptions ...
44.833608
124
0.596017
26,511
0.97406
0
0
0
0
0
0
4,815
0.176911
4add672a5d82fff4c573be986ee4381ccf2640c3
11,795
py
Python
tests/generic_relations/test_forms.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/generic_relations/test_forms.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/generic_relations/test_forms.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django import forms from django.contrib.contenttypes.forms import generic_inlineformset_factory from django.contrib.contenttypes.models import ContentType from django.db import models from django.test import TestCase from django.test.utils import isolate_apps from .models import ( Animal, ForProxyMode...
49.145833
115
0.667147
11,398
0.966342
0
0
404
0.034252
0
0
4,508
0.382196
4add77a89d96d39ac35506a52c38ceda993b7f43
3,192
py
Python
src/sage/rings/polynomial/pbori/fglm.py
tamnguyen135/sage
2c87dc16f26604033bb1b2d1dc6796d279c88b16
[ "BSL-1.0" ]
1
2020-11-12T04:06:19.000Z
2020-11-12T04:06:19.000Z
src/sage/rings/polynomial/pbori/fglm.py
tamnguyen135/sage
2c87dc16f26604033bb1b2d1dc6796d279c88b16
[ "BSL-1.0" ]
null
null
null
src/sage/rings/polynomial/pbori/fglm.py
tamnguyen135/sage
2c87dc16f26604033bb1b2d1dc6796d279c88b16
[ "BSL-1.0" ]
null
null
null
from .PyPolyBoRi import (BooleSet, Polynomial, BoolePolynomialVector, FGLMStrategy) def _fglm(I, from_ring, to_ring): r""" Unchecked variant of fglm """ vec = BoolePolynomialVector(I) return FGLMStrategy(from_ring, to_ring, vec).main() def fglm(I, from_ring, to_ring): ...
37.116279
95
0.643797
0
0
0
0
0
0
0
0
2,448
0.766917
4add8cc9f3e45d7c32a6f558ec3d3dca3bae287a
797
py
Python
ferry/embed/umap_reduce.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
4
2020-11-12T19:37:06.000Z
2021-12-14T01:38:39.000Z
ferry/embed/umap_reduce.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
96
2020-09-08T05:17:17.000Z
2022-03-31T23:12:51.000Z
ferry/embed/umap_reduce.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
2
2021-03-03T23:02:40.000Z
2021-06-17T23:33:05.000Z
""" Uses UMAP (https://umap-learn.readthedocs.io/en/latest/index.html) to reduce course embeddings to two dimensions for visualization. """ import pandas as pd import umap from sklearn.preprocessing import StandardScaler from ferry import config courses = pd.read_csv( config.DATA_DIR / "course_embeddings/courses_...
25.709677
83
0.771644
0
0
0
0
0
0
0
0
321
0.40276
4ade3cbddad00f03add91a88139ed29e5accd6ee
1,359
py
Python
flora_fauna.py
zhumakova/ClassProject
b869258706dae7c8e8ab723c61a45fd78e26494f
[ "MIT" ]
null
null
null
flora_fauna.py
zhumakova/ClassProject
b869258706dae7c8e8ab723c61a45fd78e26494f
[ "MIT" ]
null
null
null
flora_fauna.py
zhumakova/ClassProject
b869258706dae7c8e8ab723c61a45fd78e26494f
[ "MIT" ]
null
null
null
import inheritance class Flora: def __init__(self, name, lifespan, habitat, plant_type): self.name = name self.lifespan = lifespan self.habitat = habitat self.plant_type = plant_type self.plant_size = 0 class Fauna: def __init__(self, name): self.name = name...
23.033898
81
0.659308
1,048
0.771155
0
0
0
0
0
0
195
0.143488
4adecc45d925a985d290d61ac2e4d5096ee82755
3,057
py
Python
jug/subcommands/demo.py
rdenham/jug
40925445a5f96f9eec237de37e46e6fabcce6526
[ "MIT" ]
309
2015-02-09T09:33:52.000Z
2022-03-26T22:30:18.000Z
jug/subcommands/demo.py
zhaoxiugao/jug
9c5e3930777658699bc9579c872a010a7c3bffe3
[ "MIT" ]
61
2015-01-25T18:11:14.000Z
2020-10-15T06:52:13.000Z
jug/subcommands/demo.py
zhaoxiugao/jug
9c5e3930777658699bc9579c872a010a7c3bffe3
[ "MIT" ]
51
2015-01-25T17:40:31.000Z
2022-02-28T20:42:42.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2017, Luis Pedro Coelho <luis@luispedro.org> # vim: set ts=4 sts=4 sw=4 expandtab smartindent: # # 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...
26.815789
80
0.700687
1,756
0.574419
0
0
0
0
0
0
2,667
0.872424
4ae1184aa79f99e44e7d8332e7ab1d618e3d5b6f
16,307
py
Python
search/controllers/simple/tests.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
35
2018-12-18T02:51:09.000Z
2022-03-30T04:43:20.000Z
search/controllers/simple/tests.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
172
2018-02-02T14:35:11.000Z
2018-12-04T15:35:30.000Z
search/controllers/simple/tests.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
13
2019-01-10T22:01:48.000Z
2021-11-05T12:25:08.000Z
"""Tests for simple search controller, :mod:`search.controllers.simple`.""" from http import HTTPStatus from unittest import TestCase, mock from werkzeug.datastructures import MultiDict from werkzeug.exceptions import InternalServerError, NotFound, BadRequest from search.domain import SimpleQuery from search.control...
37.145786
79
0.612682
15,787
0.968112
0
0
10,943
0.671062
0
0
5,867
0.359784
4ae16756e558b0122e3a75646fd26aece7eef166
19,270
py
Python
kuri_wandering_robot/scripts/kuri_wandering_robot_executive_node.py
hcrlab/kuri_wandering_robot
9c747bfe27e3c3450fd4717e26b866af2ef70149
[ "BSD-3-Clause" ]
null
null
null
kuri_wandering_robot/scripts/kuri_wandering_robot_executive_node.py
hcrlab/kuri_wandering_robot
9c747bfe27e3c3450fd4717e26b866af2ef70149
[ "BSD-3-Clause" ]
null
null
null
kuri_wandering_robot/scripts/kuri_wandering_robot_executive_node.py
hcrlab/kuri_wandering_robot
9c747bfe27e3c3450fd4717e26b866af2ef70149
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # ROS Libraries import actionlib from actionlib_msgs.msg import GoalStatus from control_msgs.msg import JointTrajectoryControllerState, FollowJointTrajectoryAction, FollowJointTrajectoryGoal from kuri_wandering_robot.msg import Power from wandering_behavior.msg import WanderAction, WanderGoal impo...
47.69802
195
0.631915
18,449
0.957395
0
0
0
0
0
0
5,777
0.299792
4ae20be2afc3642f06f66e4a1b7fcf4056c7970b
11,636
py
Python
src/python/nimbusml/internal/entrypoints/trainers_lightgbmbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
134
2018-11-01T22:15:24.000Z
2019-05-04T11:30:08.000Z
src/python/nimbusml/internal/entrypoints/trainers_lightgbmbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
226
2019-05-07T19:00:44.000Z
2021-01-06T07:59:48.000Z
src/python/nimbusml/internal/entrypoints/trainers_lightgbmbinaryclassifier.py
montehoover/NimbusML
f6be39ce9359786976429bab0ccd837e849b4ba5
[ "MIT" ]
43
2019-05-15T20:19:42.000Z
2022-03-30T10:26:07.000Z
# - Generated by tools/entrypoint_compiler.py: do not edit by hand """ Trainers.LightGbmBinaryClassifier """ import numbers from ..utils.entrypoints import EntryPoint from ..utils.utils import try_set, unlist def trainers_lightgbmbinaryclassifier( training_data, predictor_model=None, number_...
38.026144
77
0.633293
0
0
0
0
0
0
0
0
3,962
0.340495
4ae27b557f549eb57426e50a39da725dc0fc0caa
2,353
py
Python
Job Portal with Automated Resume Screening/gensim-4.1.2/gensim/test/test_rpmodel.py
Candida18/Job-Portal-with-Automated-Resume-Screening
19d19464ad3d1714da856656753a4afdfe257b31
[ "MIT" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
Job Portal with Automated Resume Screening/gensim-4.1.2/gensim/test/test_rpmodel.py
Candida18/Job-Portal-with-Automated-Resume-Screening
19d19464ad3d1714da856656753a4afdfe257b31
[ "MIT" ]
1
2021-08-30T08:53:09.000Z
2021-08-30T08:53:09.000Z
venv/Lib/site-packages/gensim/test/test_rpmodel.py
saritmaitra/nlp_ner_topic_modeling
70914b4ae4cd7d3b9cb10776161132216394883c
[ "MIT" ]
2
2022-01-15T05:36:58.000Z
2022-02-08T15:25:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Automated tests for checking transformation algorithms (the models package). """ import logging import unittest import numpy as n...
36.2
118
0.694008
1,722
0.731832
0
0
0
0
0
0
700
0.297493
4ae2c9c85b28962ffc9f80c3635fc6bd15adc317
3,306
py
Python
playground/tianhaoz95/gan_getting_started/cgan_model.py
tianhaoz95/mangekyo
fd2b151538d0c15cca60e05a844baffcbe08e68c
[ "MIT" ]
null
null
null
playground/tianhaoz95/gan_getting_started/cgan_model.py
tianhaoz95/mangekyo
fd2b151538d0c15cca60e05a844baffcbe08e68c
[ "MIT" ]
5
2020-09-25T00:43:18.000Z
2020-10-10T03:59:39.000Z
playground/tianhaoz95/gan_getting_started/cgan_model.py
tianhaoz95/mangekyo
fd2b151538d0c15cca60e05a844baffcbe08e68c
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras class CondGeneratorModel(keras.Model): def __init__(self): super(CondGeneratorModel, self).__init__() # Expand 7*7*128 features into a (7,7,128) tensor self.dense_1 = keras.layers.Dense(7*7*256) self.reshape_1 = keras.layers.Resh...
38.44186
75
0.594374
3,247
0.982154
0
0
0
0
0
0
410
0.124017
4ae3be8ccc9773f8672701a5f6e37ff13253c5e3
13,115
py
Python
ahd2fhir/utils/resource_handler.py
miracum/ahd2fhir
0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f
[ "Apache-2.0" ]
3
2021-11-23T16:24:21.000Z
2022-03-30T07:59:03.000Z
ahd2fhir/utils/resource_handler.py
miracum/ahd2fhir
0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f
[ "Apache-2.0" ]
40
2021-05-27T14:26:33.000Z
2022-03-29T14:29:33.000Z
ahd2fhir/utils/resource_handler.py
miracum/ahd2fhir
0c1bf3e0d86278145f9f1fa5c99a121f8e961d5f
[ "Apache-2.0" ]
1
2021-06-30T11:11:01.000Z
2021-06-30T11:11:01.000Z
import base64 import datetime import logging import os import time from typing import List, Tuple import structlog import tenacity from averbis import Pipeline from fhir.resources.bundle import Bundle from fhir.resources.codeableconcept import CodeableConcept from fhir.resources.composition import Composition, Composi...
34.24282
88
0.619596
10,840
0.826535
0
0
1,980
0.150972
0
0
2,099
0.160046
4ae54219ff08b6f61e95d73dac2e96ebfcf30193
12,521
py
Python
maestros/lookups.py
Infinityloopsistemas/SIVA
92b6c82f018d39ef405989639974d1f2757476ed
[ "BSD-3-Clause" ]
null
null
null
maestros/lookups.py
Infinityloopsistemas/SIVA
92b6c82f018d39ef405989639974d1f2757476ed
[ "BSD-3-Clause" ]
1
2018-09-27T12:07:19.000Z
2018-10-08T15:56:30.000Z
maestros/lookups.py
Infinityloopsistemas/SIVA
92b6c82f018d39ef405989639974d1f2757476ed
[ "BSD-3-Clause" ]
1
2018-10-12T13:41:20.000Z
2018-10-12T13:41:20.000Z
# -*- coding: utf-8 -*- from selectable.decorators import login_required from maestros.models import TiposMedidasActuacion, TiposLimitesCriticos, TiposMedidasVigilancia, TiposTemperaturas, TiposFrecuencias, Zonas, Terceros, CatalogoEquipos, Personal, Consumibles, ParametrosAnalisis, Actividades, Etapas, Peligros, Tipos...
31.459799
304
0.72614
10,760
0.859356
0
0
11,096
0.886191
0
0
694
0.055427
4ae60da63587ab2aea48c92c16464b071dd138fd
828
py
Python
julynter/oldcmd.py
dew-uff/julynter
f4657aba4fa3e17af2cd241f0c3170b76df7c57c
[ "BSD-3-Clause" ]
9
2020-07-13T23:56:04.000Z
2021-11-02T18:42:07.000Z
julynter/oldcmd.py
dew-uff/julynter
f4657aba4fa3e17af2cd241f0c3170b76df7c57c
[ "BSD-3-Clause" ]
8
2021-07-14T15:33:57.000Z
2022-02-27T06:45:57.000Z
julynter/oldcmd.py
dew-uff/julynter
f4657aba4fa3e17af2cd241f0c3170b76df7c57c
[ "BSD-3-Clause" ]
null
null
null
"""Define commands for Python 2.7""" import argparse import traceback from . import util from .cmd import run from .cmd import extractpipenv def main(): """Main function""" print("This version is not supported! It has limitted analysis features") parser = argparse.ArgumentParser(description='Analyze Jupyt...
28.551724
77
0.657005
0
0
0
0
0
0
0
0
183
0.221014
4ae8e1876538896679e757644a54528296f6f24d
62,352
py
Python
gpMgmt/bin/gppylib/test/unit/test_unit_gpcrondump.py
nurikk/gpdb
04fe0202c59721826d1eda2b19d73e5572893fcb
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/test/unit/test_unit_gpcrondump.py
nurikk/gpdb
04fe0202c59721826d1eda2b19d73e5572893fcb
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/test/unit/test_unit_gpcrondump.py
nurikk/gpdb
04fe0202c59721826d1eda2b19d73e5572893fcb
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import imp gpcrondump_path = os.path.abspath('gpcrondump') gpcrondump = imp.load_source('gpcrondump', gpcrondump_path) import unittest2 as unittest from datetime import datetime from gppylib import gplog from gpcrondump import GpCronDump from gppylib.operations.utils import DEFAULT_NUM_...
52.264878
175
0.697203
61,683
0.989271
0
0
58,707
0.941542
0
0
19,659
0.315291
4ae9ad24978103134e04134f0b180d82ec622bb0
5,118
py
Python
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py
vsosrc/ambari
e3cc898672707bedf7597f2e16d684c8a00bba3b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
47.831776
194
0.557835
4,001
0.781751
0
0
4,159
0.812622
0
0
2,167
0.423408
4aea193e4b6512fd0f264e141522245728635ebf
1,273
py
Python
test/linux/gyptest-ldflags-from-environment.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
77
2018-07-01T15:55:34.000Z
2022-03-30T09:16:54.000Z
test/linux/gyptest-ldflags-from-environment.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
116
2021-05-29T16:32:51.000Z
2021-08-13T16:05:29.000Z
test/linux/gyptest-ldflags-from-environment.py
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
53
2018-04-13T12:06:06.000Z
2022-03-25T13:54:38.000Z
#!/usr/bin/env python # Copyright (c) 2017 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies the use of linker flags in environment variables. In this test, gyp and build both run in same local environment. """ import ...
27.673913
73
0.660644
0
0
0
0
0
0
0
0
579
0.454831
4aeb5cb919a70c0ac2be053ebf69b329fe3c2ae2
109
py
Python
tests/test_advanced.py
dhaitz/python-package-template
b4c636e48ae192e5efe30fe71af37be6f8273d29
[ "BSD-2-Clause" ]
null
null
null
tests/test_advanced.py
dhaitz/python-package-template
b4c636e48ae192e5efe30fe71af37be6f8273d29
[ "BSD-2-Clause" ]
null
null
null
tests/test_advanced.py
dhaitz/python-package-template
b4c636e48ae192e5efe30fe71af37be6f8273d29
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .context import sample def test_thoughts(): assert(sample.hmm() is None)
13.625
32
0.642202
0
0
0
0
0
0
0
0
23
0.211009
4aeb6ef2b04d214ccf1780ce3742b6d40d27fe53
2,572
py
Python
binary_tree/m_post_order_traversal.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
binary_tree/m_post_order_traversal.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
binary_tree/m_post_order_traversal.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
###################################################################### # LeetCode Problem Number : 145 # Difficulty Level : Medium # URL : https://leetcode.com/problems/binary-tree-postorder-traversal/ ###################################################################### from binary_search_tree.tree_node import TreeNo...
28.898876
70
0.47395
2,246
0.87325
0
0
0
0
0
0
1,330
0.517107
4aecb09acc6ad3252011c93a09793cb698638ff1
18,290
py
Python
dokuwiki.py
luminisward/python-dokuwiki
329862e6c91a79b2ad9f0b7616f7591459f2d4fd
[ "MIT" ]
null
null
null
dokuwiki.py
luminisward/python-dokuwiki
329862e6c91a79b2ad9f0b7616f7591459f2d4fd
[ "MIT" ]
null
null
null
dokuwiki.py
luminisward/python-dokuwiki
329862e6c91a79b2ad9f0b7616f7591459f2d4fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This python module aims to manage `DokuWiki <https://www.dokuwiki.org/dokuwiki>`_ wikis by using the provided `XML-RPC API <https://www.dokuwiki.org/devel:xmlrpc>`_. It is compatible with python2.7 and python3+. Installation ------------ It is on `PyPi <https://pypi.python.org/pypi/dokuwik...
37.326531
89
0.601203
16,368
0.894866
0
0
2,550
0.139413
0
0
8,483
0.46378
4aed13aa20c6ab391e3ffb7e313d6df343ae7084
1,449
py
Python
setup.py
lvgig/test-aide
60a9420062dd778ce9dad43993dd8ab4f300ac4e
[ "BSD-3-Clause" ]
2
2021-11-08T08:41:08.000Z
2021-11-08T09:11:24.000Z
setup.py
lvgig/test-aide
60a9420062dd778ce9dad43993dd8ab4f300ac4e
[ "BSD-3-Clause" ]
null
null
null
setup.py
lvgig/test-aide
60a9420062dd778ce9dad43993dd8ab4f300ac4e
[ "BSD-3-Clause" ]
null
null
null
import setuptools import re with open("README.md", "r") as fh: long_description = fh.read() # get version from _version.py file, from below # https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package VERSION_FILE = "test_aide/_version.py" version_file_str = open(VERSION_FILE, "r...
32.2
94
0.673568
0
0
0
0
0
0
0
0
683
0.47136
4aed5c4d1497088a992494a4109f38cb6b27e78e
510
py
Python
examples/pylab_examples/matshow.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
lib/mpl_examples/pylab_examples/matshow.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
lib/mpl_examples/pylab_examples/matshow.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
"""Simple matshow() example.""" from matplotlib.pylab import * def samplemat(dims): """Make a matrix with all zeros and increasing elements on the diagonal""" aa = zeros(dims) for i in range(min(dims)): aa[i, i] = i return aa # Display 2 matrices of different sizes dimlist = [(12, 12), (15, ...
22.173913
78
0.670588
0
0
0
0
0
0
0
0
226
0.443137
4aee10083d95f61f20711f9c9064a70b35ea7926
4,445
py
Python
setup.py
HeyLifeHD/rp-bp
9c59b1bc0267400747477467c45f96364d5528e1
[ "MIT" ]
6
2016-05-16T18:52:41.000Z
2021-12-31T06:27:29.000Z
setup.py
HeyLifeHD/rp-bp
9c59b1bc0267400747477467c45f96364d5528e1
[ "MIT" ]
110
2016-06-22T13:24:39.000Z
2022-02-07T09:29:14.000Z
setup.py
HeyLifeHD/rp-bp
9c59b1bc0267400747477467c45f96364d5528e1
[ "MIT" ]
5
2017-05-22T12:21:51.000Z
2022-02-06T10:32:56.000Z
#! /usr/bin/env python3 import importlib import logging import os import subprocess from setuptools import setup from setuptools.command.install import install as install from setuptools.command.develop import develop as develop logger = logging.getLogger(__name__) stan_model_files = [ os.path.join("nonperiod...
29.633333
80
0.64027
1,448
0.325759
0
0
0
0
0
0
1,016
0.228571
4aee208ed627e09e244d2f3b0703567eec906294
9,909
py
Python
utils/data_utils.py
BorisMansencal/quickNAT_pytorch
1853afbe409f2fec6db298c70a3dd0ae088091f0
[ "MIT" ]
null
null
null
utils/data_utils.py
BorisMansencal/quickNAT_pytorch
1853afbe409f2fec6db298c70a3dd0ae088091f0
[ "MIT" ]
null
null
null
utils/data_utils.py
BorisMansencal/quickNAT_pytorch
1853afbe409f2fec6db298c70a3dd0ae088091f0
[ "MIT" ]
null
null
null
import os import h5py import nibabel as nb import numpy as np import torch import torch.utils.data as data from torchvision import transforms import utils.preprocessor as preprocessor # transform_train = transforms.Compose([ # transforms.RandomCrop(200, padding=56), # transforms.ToTensor(), # ]) class Imdb...
41.460251
138
0.631749
485
0.048945
0
0
0
0
0
0
2,974
0.300131
4aef5ae78252c6d6372a39f824e9c27cc8e4b322
2,764
py
Python
lib/common/app.py
auho/python-ETL
761589814b04e076ba6fa1c0e64b83ce62ce8556
[ "Apache-2.0" ]
null
null
null
lib/common/app.py
auho/python-ETL
761589814b04e076ba6fa1c0e64b83ce62ce8556
[ "Apache-2.0" ]
null
null
null
lib/common/app.py
auho/python-ETL
761589814b04e076ba6fa1c0e64b83ce62ce8556
[ "Apache-2.0" ]
null
null
null
import argparse import yaml import sys from .conf import MysqlConf from lib.db import mysql parser = argparse.ArgumentParser() parser.add_argument("--config", help="config file name", type=str, required=False, default='office') input_args = parser.parse_args() class PartConfig: def __init__(self): self._...
28.791667
100
0.624096
2,496
0.903039
0
0
71
0.025687
0
0
413
0.149421
4aefb5a97f19992a6966a61598aa4554de228c41
4,164
py
Python
design.py
StrangeArcturus/QtAndRequestParser-Project
5205420ff06c91917ce0c1d890da85e9d72a06ea
[ "MIT" ]
null
null
null
design.py
StrangeArcturus/QtAndRequestParser-Project
5205420ff06c91917ce0c1d890da85e9d72a06ea
[ "MIT" ]
null
null
null
design.py
StrangeArcturus/QtAndRequestParser-Project
5205420ff06c91917ce0c1d890da85e9d72a06ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'design.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtC...
52.05
102
0.686119
3,947
0.918762
0
0
0
0
0
0
870
0.202514
4af181be525d8e8daf1ffbab71cb2d90c60d3216
597
py
Python
EP_2019/py_impl/main.py
Alisa-lisa/conferences
d93014747dc9d18493295dbc33fa51c8fb9467dc
[ "MIT" ]
5
2019-07-06T07:22:57.000Z
2020-12-19T22:49:35.000Z
EP_2019/py_impl/main.py
pindash/conferences
87fcb9f595a244408c015c66283c337d124b358d
[ "MIT" ]
null
null
null
EP_2019/py_impl/main.py
pindash/conferences
87fcb9f595a244408c015c66283c337d124b358d
[ "MIT" ]
3
2020-06-07T14:58:24.000Z
2020-11-24T22:51:14.000Z
from simulation.car import spawn_drivers from simulation.passenger import spawn_passengers from simulation.core import World, Clock conf = { "x": 100, "y": 100, "drivers": 200, "users": 1000, "start": "2019-07-08T00:00:00", "end": "2019-07-08T00:01:00" } clock = Clock(conf["start"], conf["end"...
28.428571
84
0.649916
0
0
0
0
0
0
0
0
132
0.221106
4af19e16fcec726156bfcc2b3d41a671e651e34c
795
py
Python
Python/reverse_with_swap.py
avulaankith/Python
71269b1a36b45150edb7834c559386a91618e723
[ "MIT" ]
null
null
null
Python/reverse_with_swap.py
avulaankith/Python
71269b1a36b45150edb7834c559386a91618e723
[ "MIT" ]
null
null
null
Python/reverse_with_swap.py
avulaankith/Python
71269b1a36b45150edb7834c559386a91618e723
[ "MIT" ]
1
2021-08-14T13:24:11.000Z
2021-08-14T13:24:11.000Z
#!/bin/python3 import math import os import random import re import sys # # Complete the 'reverse_words_order_and_swap_cases' function below. # # The function is expected to return a STRING. # The function accepts STRING sentence as parameter. # def reverse_words_order_and_swap_cases(sentence): # Write your cod...
18.488372
67
0.566038
0
0
0
0
0
0
0
0
228
0.286792
4af2582d62d2fd8906d1b6bfaa4cb05ec6512096
1,245
py
Python
playground/check_equal.py
INK-USC/hypter
732551e1e717b66ad26ba538593ed184957ecdea
[ "MIT" ]
11
2021-07-16T15:49:39.000Z
2021-12-17T14:46:25.000Z
playground/check_equal.py
INK-USC/hypter
732551e1e717b66ad26ba538593ed184957ecdea
[ "MIT" ]
null
null
null
playground/check_equal.py
INK-USC/hypter
732551e1e717b66ad26ba538593ed184957ecdea
[ "MIT" ]
1
2021-08-04T07:21:02.000Z
2021-08-04T07:21:02.000Z
import json d1 = {} with open("/home/qinyuan/zs/out/bart-large-with-description-grouped-1e-5-outerbsz4-innerbsz32-adapterdim4-unfreeze-dec29/test_predictions.jsonl") as fin: for line in fin: d = json.loads(line) d1[d["id"]] = d["output"][0]["answer"] d2 = {} dq = {} with open("/home/qinyuan/zs/out...
27.065217
153
0.553414
0
0
0
0
0
0
0
0
387
0.310843
4af2b457e2a07435b2f1cbc51394d14794b7cb2f
294
py
Python
creeds/static/api1.py
MaayanLab/creeds
7d580c91ca45c03e34bbc0d1928668f266ff13d9
[ "CC0-1.0" ]
2
2019-01-10T18:10:45.000Z
2019-04-05T13:47:01.000Z
creeds/static/api1.py
MaayanLab/creeds
7d580c91ca45c03e34bbc0d1928668f266ff13d9
[ "CC0-1.0" ]
1
2019-05-09T21:25:31.000Z
2019-05-13T14:26:30.000Z
creeds/static/api1.py
MaayanLab/creeds
7d580c91ca45c03e34bbc0d1928668f266ff13d9
[ "CC0-1.0" ]
2
2018-12-21T23:59:27.000Z
2019-10-24T18:26:26.000Z
import json, requests from pprint import pprint CREEDS_URL = 'http://amp.pharm.mssm.edu/CREEDS/' response = requests.get(CREEDS_URL + 'search', params={'q':'STAT3'}) if response.status_code == 200: pprint(response.json()) json.dump(response.json(), open('api1_result.json', 'wb'), indent=4)
32.666667
69
0.721088
0
0
0
0
0
0
0
0
75
0.255102
4af34453b4c3c543b26ea00b073366252fd5c89d
355
py
Python
admin/migrations/0041_course_color.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
4
2019-07-19T17:39:04.000Z
2022-03-22T21:02:15.000Z
admin/migrations/0041_course_color.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
53
2019-08-04T14:25:40.000Z
2022-03-26T20:30:55.000Z
admin/migrations/0041_course_color.py
rodlukas/UP-admin
08f36de0773f39c6222da82016bf1384af2cce18
[ "MIT" ]
3
2020-03-09T07:11:03.000Z
2020-09-11T01:22:50.000Z
# Generated by Django 2.2.3 on 2019-07-31 13:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("admin", "0040_auto_20190718_0938")] operations = [ migrations.AddField( model_name="course", name="color", field=models.CharField(default="#0...
23.666667
99
0.661972
262
0.738028
0
0
0
0
0
0
100
0.28169
4af386aea4c2e177a4c714ca6af54611fc4df7d6
673
py
Python
exercicios-Python/ex083.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex083.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex083.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
# Forma sem bugs expressao = (str(input('Digite a expressão: '))) pilhaParenteses = [] for v in expressao: if v == '(': pilhaParenteses.append('(') elif v == ')': if len(pilhaParenteses) > 0: pilhaParenteses.pop() else: pilhaParenteses.append(')') bre...
28.041667
52
0.601783
0
0
0
0
0
0
0
0
348
0.50655
4af4341b8d96ec6fde46ee878b92d71af06be79a
1,607
py
Python
src/inspectortodo/todo.py
code-acrobat/InspectorTodo
342bd0840d4f087cf2914f906ebc69bf2b21d9ce
[ "Apache-2.0" ]
8
2018-05-28T08:41:01.000Z
2022-03-02T08:54:54.000Z
src/inspectortodo/todo.py
code-acrobat/InspectorTodo
342bd0840d4f087cf2914f906ebc69bf2b21d9ce
[ "Apache-2.0" ]
9
2018-08-04T20:16:46.000Z
2022-03-08T14:29:47.000Z
src/inspectortodo/todo.py
code-acrobat/InspectorTodo
342bd0840d4f087cf2914f906ebc69bf2b21d9ce
[ "Apache-2.0" ]
3
2018-05-29T08:00:29.000Z
2022-02-23T11:02:58.000Z
# Copyright 2018 TNG Technology Consulting GmbH, Unterföhring, Germany # Licensed under the Apache License, Version 2.0 - see LICENSE.md in project root directory import logging from xml.sax.saxutils import escape log = logging.getLogger() class Todo: def __init__(self, file_path, line_number, content): ...
34.934783
118
0.632856
1,361
0.846393
0
0
0
0
0
0
399
0.248134
4af5891fa135d7fd02c534a37ddba2e1d64a9e74
9,595
py
Python
generators.py
FabLabUTFSM/fusm_usage_report
92b18ad81f97482d6e8428b6c7cbdfc23d0ca440
[ "MIT" ]
null
null
null
generators.py
FabLabUTFSM/fusm_usage_report
92b18ad81f97482d6e8428b6c7cbdfc23d0ca440
[ "MIT" ]
null
null
null
generators.py
FabLabUTFSM/fusm_usage_report
92b18ad81f97482d6e8428b6c7cbdfc23d0ca440
[ "MIT" ]
null
null
null
import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import plotly.express as px from plotly.subplots import make_subplots import pandas as pd import math from datetime import datetime, time from utils import MONTH_NAMES, month_range def section(title, content, gray=Fa...
41.004274
163
0.619906
0
0
748
0.077811
0
0
0
0
2,554
0.265682
4af59f537fb6e3fa8f98dad4df206983a8ca37fd
3,651
py
Python
gengine/app/tests_old/test_groups.py
greck2908/gamification-engine
4a74086bde4505217e4b9ba36349a427a7042b4b
[ "MIT" ]
347
2015-03-03T14:25:59.000Z
2022-03-09T07:46:31.000Z
gengine/app/tests_old/test_groups.py
greck2908/gamification-engine
4a74086bde4505217e4b9ba36349a427a7042b4b
[ "MIT" ]
76
2015-03-05T23:37:31.000Z
2022-03-31T13:41:42.000Z
gengine/app/tests_old/test_groups.py
greck2908/gamification-engine
4a74086bde4505217e4b9ba36349a427a7042b4b
[ "MIT" ]
115
2015-03-04T23:47:25.000Z
2021-12-24T06:24:06.000Z
# -*- coding: utf-8 -*- from gengine.app.tests.base import BaseDBTest from gengine.app.tests.helpers import create_user, update_user, delete_user, get_or_create_language from gengine.metadata import DBSession from gengine.app.model import AuthUser class TestUserCreation(BaseDBTest): def test_user_creation(self):...
29.92623
99
0.564229
3,396
0.929901
0
0
0
0
0
0
860
0.235487
4af6882f3b0de2bc194a5844807fd94589dcf8e9
119,159
py
Python
Lib/fontTools/designspaceLib/__init__.py
guorenxi/fonttools
cefb41e6c261eeff0062a7b4017061982ed87aa7
[ "Apache-2.0", "MIT" ]
null
null
null
Lib/fontTools/designspaceLib/__init__.py
guorenxi/fonttools
cefb41e6c261eeff0062a7b4017061982ed87aa7
[ "Apache-2.0", "MIT" ]
null
null
null
Lib/fontTools/designspaceLib/__init__.py
guorenxi/fonttools
cefb41e6c261eeff0062a7b4017061982ed87aa7
[ "Apache-2.0", "MIT" ]
null
null
null
from __future__ import annotations import collections import copy import itertools import math import os import posixpath from io import BytesIO, StringIO from textwrap import indent from typing import Any, Dict, List, MutableMapping, Optional, Tuple, Union from fontTools.misc import etree as ET from fontTools.misc i...
40.406579
147
0.612266
115,185
0.966398
0
0
2,708
0.02272
0
0
44,301
0.371684
4af82655248e89ae648896a2197ee327a71bd7a6
3,230
py
Python
ax/models/torch/posterior_mean.py
dme65/Ax
c460eab90d464df87e6478b5765fd02fb5126adb
[ "MIT" ]
1
2021-01-11T18:16:28.000Z
2021-01-11T18:16:28.000Z
ax/models/torch/posterior_mean.py
dme65/Ax
c460eab90d464df87e6478b5765fd02fb5126adb
[ "MIT" ]
null
null
null
ax/models/torch/posterior_mean.py
dme65/Ax
c460eab90d464df87e6478b5765fd02fb5126adb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Optional, Tuple import torch from botorch.acquisition.acquisition import AcquisitionFunction ...
41.948052
84
0.728793
0
0
0
0
0
0
0
0
1,513
0.468421
4af8cc653e14393ff950e095171d139b4a633baf
2,240
py
Python
src/drivers/velodyne_nodes/test/velodyne_node.test.py
fanyu2021/fyAutowareAuto
073661c0634de671ff01bda8a316a5ce10c96ca9
[ "Apache-2.0" ]
null
null
null
src/drivers/velodyne_nodes/test/velodyne_node.test.py
fanyu2021/fyAutowareAuto
073661c0634de671ff01bda8a316a5ce10c96ca9
[ "Apache-2.0" ]
null
null
null
src/drivers/velodyne_nodes/test/velodyne_node.test.py
fanyu2021/fyAutowareAuto
073661c0634de671ff01bda8a316a5ce10c96ca9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 the Autoware Foundation # # 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 ...
32
89
0.692857
0
0
0
0
0
0
0
0
1,018
0.454059
4af90b86c50a3ccef625f31f883eb2072c6ed40c
1,425
py
Python
example.py
manhcuogntin4/Color-transfer
14b139efa86bb49a07a118c905d9d82cd7ad10d3
[ "MIT" ]
null
null
null
example.py
manhcuogntin4/Color-transfer
14b139efa86bb49a07a118c905d9d82cd7ad10d3
[ "MIT" ]
null
null
null
example.py
manhcuogntin4/Color-transfer
14b139efa86bb49a07a118c905d9d82cd7ad10d3
[ "MIT" ]
1
2020-04-13T13:17:58.000Z
2020-04-13T13:17:58.000Z
# USAGE # python example.py --source images/ocean_sunset.jpg --target images/ocean_day.jpg # import the necessary packages from color_transfer import color_transfer import numpy as np import argparse import cv2 def show_image(title, image, width = 300): # resize the image to have a constant width, just to # make di...
30.978261
82
0.733333
0
0
0
0
0
0
0
0
686
0.481404
4afa3809e5300d1250cfab7d62f27391e130c231
9,060
py
Python
scripts/registration_pipeline.py
heethesh/Argoverse-HDMap-Update
61e9bf965a1fa7a0c74a2671457a2778d849bfe5
[ "Apache-2.0" ]
null
null
null
scripts/registration_pipeline.py
heethesh/Argoverse-HDMap-Update
61e9bf965a1fa7a0c74a2671457a2778d849bfe5
[ "Apache-2.0" ]
null
null
null
scripts/registration_pipeline.py
heethesh/Argoverse-HDMap-Update
61e9bf965a1fa7a0c74a2671457a2778d849bfe5
[ "Apache-2.0" ]
1
2020-09-08T04:32:21.000Z
2020-09-08T04:32:21.000Z
import copy import numpy as np import open3d as o3d from tqdm import tqdm from scipy import stats import utils_o3d as utils def remove_ground_plane(pcd, z_thresh=-2.7): cropped = copy.deepcopy(pcd) cropped_points = np.array(cropped.points) cropped_points = cropped_points[cropped_points[:, -1] > z_thresh...
37.90795
119
0.703422
0
0
0
0
0
0
0
0
1,451
0.160155
4afb20e82e1f9cc5d13cde9492b76ec1886669d1
36,825
py
Python
neo4j/aio/__init__.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
1
2021-05-18T14:11:39.000Z
2021-05-18T14:11:39.000Z
neo4j/aio/__init__.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
null
null
null
neo4j/aio/__init__.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2002-2019 "Neo4j," # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # 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 L...
37.34787
107
0.609993
34,941
0.948839
0
0
10,606
0.288011
25,151
0.682987
15,866
0.430849
4afb4cc5b7dcd90ef9395d1a97095b2b0c885c49
1,831
py
Python
python/setup.py
bubriks/feature-store-api
fa286f257b87a09c081e86811b853b3e564ce197
[ "Apache-2.0" ]
49
2020-09-07T17:43:11.000Z
2021-12-28T10:41:03.000Z
python/setup.py
bubriks/feature-store-api
fa286f257b87a09c081e86811b853b3e564ce197
[ "Apache-2.0" ]
132
2020-08-06T12:12:09.000Z
2022-03-29T16:28:25.000Z
python/setup.py
bubriks/feature-store-api
fa286f257b87a09c081e86811b853b3e564ce197
[ "Apache-2.0" ]
35
2020-08-06T12:09:02.000Z
2022-01-10T08:50:45.000Z
import os import imp from setuptools import setup, find_packages __version__ = imp.load_source( "hsfs.version", os.path.join("hsfs", "version.py") ).__version__ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="hsfs", version=__version__, install_...
28.609375
107
0.589842
0
0
0
0
0
0
0
0
930
0.507919
4afc50cce044689d528dbbb6c10aa634c6f79ad7
87
py
Python
src/server_py3/aps/src/wes/api/v1/users/__init__.py
kfrime/yonder
cd2f491c24f8552aeadd6ee48c601e1194a2e082
[ "MIT" ]
null
null
null
src/server_py3/aps/src/wes/api/v1/users/__init__.py
kfrime/yonder
cd2f491c24f8552aeadd6ee48c601e1194a2e082
[ "MIT" ]
12
2020-01-04T03:30:02.000Z
2021-06-02T01:22:45.000Z
src/server_py3/aps/src/wes/api/v1/users/__init__.py
kfrime/yonder
cd2f491c24f8552aeadd6ee48c601e1194a2e082
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from . import signup, signin, signout, update, info, detail
21.75
60
0.701149
0
0
0
0
0
0
0
0
23
0.264368
4afdfa383647f87d1307da42b1ada1260c01b5fa
127
py
Python
hubconf.py
jamesmcclain/pytorch-multi-class-focal-loss
de74657769e07dc40be838a6277dea269bfddad0
[ "MIT" ]
81
2020-10-20T23:46:47.000Z
2022-03-16T15:56:40.000Z
hubconf.py
jamesmcclain/pytorch-multi-class-focal-loss
de74657769e07dc40be838a6277dea269bfddad0
[ "MIT" ]
3
2020-10-12T13:34:02.000Z
2022-03-29T13:39:26.000Z
hubconf.py
jamesmcclain/pytorch-multi-class-focal-loss
de74657769e07dc40be838a6277dea269bfddad0
[ "MIT" ]
12
2020-10-09T18:36:50.000Z
2021-12-02T06:37:04.000Z
# Optional list of dependencies required by the package dependencies = ['torch'] from focal_loss import FocalLoss, focal_loss
25.4
55
0.80315
0
0
0
0
0
0
0
0
62
0.488189
4aff2d34953f2e2be532801520dad5c0dc9065e8
15,609
py
Python
autotest/ogr/ogr_gpx.py
HongqiangWei/gdal
f7c427926438cc39d31e4459fa6401321f8e62f0
[ "MIT" ]
3
2016-07-25T16:30:13.000Z
2022-02-11T11:09:08.000Z
autotest/ogr/ogr_gpx.py
HongqiangWei/gdal
f7c427926438cc39d31e4459fa6401321f8e62f0
[ "MIT" ]
null
null
null
autotest/ogr/ogr_gpx.py
HongqiangWei/gdal
f7c427926438cc39d31e4459fa6401321f8e62f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test GPX driver functionality. # Author: Even Rouault <even dot rouault at mines dash paris dot org> # ###########################################################...
27.19338
120
0.599206
0
0
0
0
0
0
0
0
4,605
0.295022
4aff7e3e13035260de4953a62861c9d0ec4fffb5
22,377
py
Python
mwp_solver/models/sausolver.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/models/sausolver.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/models/sausolver.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
# Code Taken from https://github.com/LYH-YF/MWPToolkit # -*- encoding: utf-8 -*- # @Author: Yihuai Lan # @Time: 2021/08/21 04:59:55 # @File: sausolver.py import random import torch from torch import nn import copy from module.Encoder.rnn_encoder import BasicRNNEncoder from module.Embedder.basic_embedder import BasicE...
48.751634
154
0.591634
21,688
0.963269
0
0
0
0
0
0
3,419
0.151854
4affd0e7b393c14db6c40989539fbd205424aa8e
8,128
py
Python
rosetta/tests/test_parallel.py
rafacarrascosa/rosetta
d5a964756b4f51e1032df40ee24f18398e3193b7
[ "BSD-3-Clause" ]
1
2015-01-21T06:00:46.000Z
2015-01-21T06:00:46.000Z
rosetta/tests/test_parallel.py
rafacarrascosa/rosetta
d5a964756b4f51e1032df40ee24f18398e3193b7
[ "BSD-3-Clause" ]
null
null
null
rosetta/tests/test_parallel.py
rafacarrascosa/rosetta
d5a964756b4f51e1032df40ee24f18398e3193b7
[ "BSD-3-Clause" ]
null
null
null
import unittest from functools import partial import pandas as pd from pandas.util.testing import assert_frame_equal, assert_series_equal import numpy as np import threading from StringIO import StringIO from rosetta.parallel import parallel_easy, pandas_easy from rosetta.parallel.threading_easy import threading_easy...
33.866667
79
0.637549
7,189
0.884473
274
0.033711
0
0
0
0
821
0.101009
ab0004198f8e66f5be455567544099aa471f9197
3,349
py
Python
modules/helper/subtitles/subtitles.py
sdelcore/video-event-notifier-old
16bd322f2b81efbb3e08e63ed407ab098d610c88
[ "MIT" ]
null
null
null
modules/helper/subtitles/subtitles.py
sdelcore/video-event-notifier-old
16bd322f2b81efbb3e08e63ed407ab098d610c88
[ "MIT" ]
null
null
null
modules/helper/subtitles/subtitles.py
sdelcore/video-event-notifier-old
16bd322f2b81efbb3e08e63ed407ab098d610c88
[ "MIT" ]
null
null
null
import time import srt import re import datetime from mqtthandler import MQTTHandler INIT_STATUS={ "video": { "title": None, "series_title": None, "season": None, "episode": None }, "time": None, "events": None } class SubtitleHandler: subtitles = [] phrases = ...
33.828283
133
0.561959
3,085
0.92117
0
0
0
0
0
0
917
0.273813
ab0084518a26b1bf65b7efbbe0be36485aedb9e2
1,165
py
Python
thecsvparser.py
rbago/CEBD1160_Class4_hwk
1012c81663dc60ea9d139d96f368f8289d4b363e
[ "MIT" ]
null
null
null
thecsvparser.py
rbago/CEBD1160_Class4_hwk
1012c81663dc60ea9d139d96f368f8289d4b363e
[ "MIT" ]
null
null
null
thecsvparser.py
rbago/CEBD1160_Class4_hwk
1012c81663dc60ea9d139d96f368f8289d4b363e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import numpy as np import pandas as pd os.getcwd() # Request for the filename # Current version of this script works only with TSV type files mainFilename = input('Input your file name (diabetes.tab.txt or housing.data.txt): ') print() # To create proper dataframe, transforming it wi...
25.326087
85
0.758798
0
0
0
0
0
0
0
0
536
0.460086
ab0219367d5f8fd8173529e4b59eaffa00517b4a
3,057
py
Python
donkeycar/tests/test_web_socket.py
wenxichen/donkeycar
d70ee60d35d7e0e004b885e6f6062fb51916dad1
[ "MIT" ]
12
2019-06-28T21:58:01.000Z
2021-01-08T14:25:12.000Z
donkeycar/tests/test_web_socket.py
wenxichen/donkeycar
d70ee60d35d7e0e004b885e6f6062fb51916dad1
[ "MIT" ]
6
2020-11-07T19:27:10.000Z
2021-01-23T22:47:37.000Z
donkeycar/tests/test_web_socket.py
Heavy02011/donkeycar
5a23b0fee170596e29c80826c3db0d3a4c4c5392
[ "MIT" ]
9
2019-07-13T10:12:31.000Z
2020-07-27T10:27:03.000Z
from donkeycar.parts.web_controller.web import WebSocketCalibrateAPI from functools import partial from tornado import testing import tornado.websocket import tornado.web import tornado.ioloop import json from unittest.mock import Mock from donkeycar.parts.actuator import PWMSteering, PWMThrottle class WebSocketCal...
34.348315
80
0.682368
2,754
0.900883
2,221
0.726529
2,341
0.765783
0
0
523
0.171083
ab026e12b9cf96fdf582b2fdd6e78d761d952e59
5,709
py
Python
misc/trac_plugins/IncludeMacro/includemacro/macros.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
1
2017-10-24T20:37:58.000Z
2017-10-24T20:37:58.000Z
misc/trac_plugins/IncludeMacro/includemacro/macros.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
10
2015-03-02T16:45:39.000Z
2015-06-23T14:02:13.000Z
misc/trac_plugins/IncludeMacro/includemacro/macros.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
2
2015-02-24T19:07:54.000Z
2015-04-08T13:53:24.000Z
# TracIncludeMacro macros import re import urllib2 from StringIO import StringIO from trac.core import * from trac.wiki.macros import WikiMacroBase from trac.wiki.formatter import system_message from trac.wiki.model import WikiPage from trac.mimeview.api import Mimeview, get_mimetype, Context from trac.perm import IPe...
40.204225
135
0.584341
5,185
0.908215
61
0.010685
0
0
0
0
1,614
0.282712
ab02c90f464edb9291e3105cd07e5c1bd2aaec14
12,497
py
Python
packages/google/cloud/logging/client.py
rjcuevas/Email-Frontend-AngularJS-
753dbd190582ed953058c9e15c2be920716c7985
[ "MIT" ]
null
null
null
packages/google/cloud/logging/client.py
rjcuevas/Email-Frontend-AngularJS-
753dbd190582ed953058c9e15c2be920716c7985
[ "MIT" ]
null
null
null
packages/google/cloud/logging/client.py
rjcuevas/Email-Frontend-AngularJS-
753dbd190582ed953058c9e15c2be920716c7985
[ "MIT" ]
null
null
null
# Copyright 2016 Google 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 applicable law or agreed to in writing, ...
41.244224
96
0.634632
10,273
0.822037
0
0
1,554
0.12435
0
0
7,906
0.632632
ab046a08c26c0e97b20f9dd2cde86b39dde408b7
1,468
py
Python
tests/test_core/test_graph_objs/test_instantiate_hierarchy.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
tests/test_core/test_graph_objs/test_instantiate_hierarchy.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
tests/test_core/test_graph_objs/test_instantiate_hierarchy.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
from __future__ import absolute_import from unittest import TestCase import os import importlib import inspect from plotly.basedatatypes import BasePlotlyType, BaseFigure datatypes_root = "new_plotly/graph_objs" datatype_modules = [ dirpath.replace("/", ".") for dirpath, _, _ in os.walk(datatypes_root) if...
34.952381
87
0.557221
1,106
0.753406
0
0
0
0
0
0
173
0.117847
ab04f30d858425d5d5583ebc3b9cb9eb5ad46681
4,184
py
Python
mycli/packages/special/main.py
lyrl/mycli
d62eefdc819a11ecdb97d93dd7ad1922d28a3795
[ "BSD-3-Clause" ]
10,997
2015-07-27T06:59:04.000Z
2022-03-31T07:49:26.000Z
mycli/packages/special/main.py
lyrl/mycli
d62eefdc819a11ecdb97d93dd7ad1922d28a3795
[ "BSD-3-Clause" ]
937
2015-07-29T09:25:30.000Z
2022-03-30T23:54:03.000Z
mycli/packages/special/main.py
lyrl/mycli
d62eefdc819a11ecdb97d93dd7ad1922d28a3795
[ "BSD-3-Clause" ]
799
2015-07-27T13:13:49.000Z
2022-03-29T21:24:39.000Z
import logging from collections import namedtuple from . import export log = logging.getLogger(__name__) NO_QUERY = 0 PARSED_QUERY = 1 RAW_QUERY = 2 SpecialCommand = namedtuple('SpecialCommand', ['handler', 'command', 'shortcut', 'description', 'arg_type', 'hidden', 'case_sensitive']) COMMANDS ...
34.578512
91
0.649618
42
0.010038
0
0
3,301
0.788958
0
0
842
0.201243
ab058609cdca528f1ad9cfbfcbc124dc3d65d20b
180
py
Python
core/sample_fuzzer/data_generators/base.py
ShreyasTheOne/Super-Duper-Fuzzer
b667e2dca3e49a370634ad4b0bd826aca06136b7
[ "MIT" ]
null
null
null
core/sample_fuzzer/data_generators/base.py
ShreyasTheOne/Super-Duper-Fuzzer
b667e2dca3e49a370634ad4b0bd826aca06136b7
[ "MIT" ]
null
null
null
core/sample_fuzzer/data_generators/base.py
ShreyasTheOne/Super-Duper-Fuzzer
b667e2dca3e49a370634ad4b0bd826aca06136b7
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class BaseDataGenerator(ABC): def __init__(self): pass @staticmethod @abstractmethod def generate(cls): pass
15
35
0.655556
141
0.783333
0
0
69
0.383333
0
0
0
0
ab073bf68fc63959db0a0aa37e1caf26b750286a
466
py
Python
Mon_08_06/convert2.py
TungTNg/itc110_python
589ca1398f26d39b05a0b798100df0b05e556e3c
[ "Apache-2.0" ]
null
null
null
Mon_08_06/convert2.py
TungTNg/itc110_python
589ca1398f26d39b05a0b798100df0b05e556e3c
[ "Apache-2.0" ]
null
null
null
Mon_08_06/convert2.py
TungTNg/itc110_python
589ca1398f26d39b05a0b798100df0b05e556e3c
[ "Apache-2.0" ]
null
null
null
# convert2.py # A program to convert Celsius temps to Fahrenheit. # This version issues heat and cold warnings. def main(): celsius = float(input("What is the Celsius temperature? ")) fahrenheit = 9 / 5 * celsius + 32 print("The temperature is", fahrenheit, "degrees fahrenheit.") if fahrenhei...
33.285714
66
0.650215
0
0
0
0
0
0
0
0
268
0.575107
ab078e438c6b69f3703aa8808d1800eb956179af
5,082
py
Python
homeassistant/components/wolflink/__init__.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/wolflink/__init__.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
homeassistant/components/wolflink/__init__.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""The Wolf SmartSet Service integration.""" from datetime import timedelta import logging from httpx import ConnectError, ConnectTimeout from wolf_smartset.token_auth import InvalidAuth from wolf_smartset.wolf_client import FetchFailed, ParameterReadError, WolfClient from homeassistant.config_entries import ConfigEn...
36.042553
128
0.674538
0
0
0
0
0
0
4,310
0.848091
870
0.171192
ab088360fae7f84bdf36c27b8f0ab99458367940
932
py
Python
src/levenshtein_distance.py
chunribu/python-algorithms
0483df09b5b4f93bd96712d78e3ad34bcb7e57cc
[ "MIT" ]
null
null
null
src/levenshtein_distance.py
chunribu/python-algorithms
0483df09b5b4f93bd96712d78e3ad34bcb7e57cc
[ "MIT" ]
null
null
null
src/levenshtein_distance.py
chunribu/python-algorithms
0483df09b5b4f93bd96712d78e3ad34bcb7e57cc
[ "MIT" ]
null
null
null
class LevenshteinDistance: def solve(self, str_a, str_b): a, b = str_a, str_b dist = {(x,y):0 for x in range(len(a)) for y in range(len(b))} for x in range(len(a)): dist[(x,-1)] = x+1 for y in range(len(b)): dist[(-1,y)] = y+1 dist[(-1,-1)] = 0 for i in range(len(a)):...
35.846154
79
0.47103
859
0.921674
0
0
0
0
0
0
33
0.035408
ab09f37cf048afa31bbd4f9b957124d830dcd972
24,156
py
Python
pyapprox/benchmarks/test_spectral_diffusion.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
26
2019-12-16T02:21:15.000Z
2022-03-17T09:59:18.000Z
pyapprox/benchmarks/test_spectral_diffusion.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
9
2020-03-03T03:04:55.000Z
2021-08-19T22:50:42.000Z
pyapprox/benchmarks/test_spectral_diffusion.py
ConnectedSystems/pyapprox
4f405654c707cba83d211f327c0f0fdbc95efa29
[ "MIT" ]
7
2020-03-02T03:49:17.000Z
2021-02-17T02:07:53.000Z
import numpy as np import unittest from pyapprox.benchmarks.spectral_diffusion import ( kronecker_product_2d, chebyshev_derivative_matrix, SteadyStateDiffusionEquation2D, SteadyStateDiffusionEquation1D ) from pyapprox.univariate_polynomials.quadrature import gauss_jacobi_pts_wts_1D import pyapprox as pya cla...
43.368043
140
0.573729
23,618
0.977728
0
0
2,056
0.085113
0
0
6,101
0.252567
ab0b27f4e0cbd65087dec9065d3e682653bf37df
2,145
py
Python
torchdrug/layers/flow.py
wconnell/torchdrug
a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8
[ "Apache-2.0" ]
772
2021-08-10T05:03:46.000Z
2022-03-31T12:48:31.000Z
torchdrug/layers/flow.py
wconnell/torchdrug
a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8
[ "Apache-2.0" ]
77
2021-08-12T16:19:15.000Z
2022-03-30T14:32:14.000Z
torchdrug/layers/flow.py
wconnell/torchdrug
a710097cb4ad4c48e0de0d18fbb77ef0e806cdc8
[ "Apache-2.0" ]
90
2021-08-11T16:27:13.000Z
2022-03-28T11:41:53.000Z
import torch from torch import nn from torch.nn import functional as F from torchdrug import layers class ConditionalFlow(nn.Module): """ Conditional flow transformation from `Masked Autoregressive Flow for Density Estimation`_. .. _Masked Autoregressive Flow for Density Estimation: https://arxi...
33.515625
94
0.640559
2,042
0.951981
0
0
0
0
0
0
1,079
0.50303
ab0b550c21847a65b30237096b5b109cb3b79405
1,531
py
Python
olctools/accessoryFunctions/metadataprinter.py
lowandrew/OLCTools
c74e9d18e2ebe0159aa824e095091045ed227e95
[ "MIT" ]
1
2020-02-29T19:12:48.000Z
2020-02-29T19:12:48.000Z
olctools/accessoryFunctions/metadataprinter.py
lowandrew/OLCTools
c74e9d18e2ebe0159aa824e095091045ed227e95
[ "MIT" ]
3
2017-09-11T18:33:00.000Z
2019-02-01T18:03:29.000Z
olctools/accessoryFunctions/metadataprinter.py
lowandrew/OLCTools
c74e9d18e2ebe0159aa824e095091045ed227e95
[ "MIT" ]
1
2017-07-25T15:40:36.000Z
2017-07-25T15:40:36.000Z
#!/usr/bin/env python3 import logging import json import os __author__ = 'adamkoziol' class MetadataPrinter(object): def printmetadata(self): # Iterate through each sample in the analysis for sample in self.metadata: # Set the name of the json file jsonfile = os.path.join(...
39.25641
112
0.595689
1,442
0.941868
0
0
0
0
0
0
399
0.260614
ab0be1bc504d57d2eb757539f99f93b6066eb5bb
6,424
py
Python
mindware/estimators.py
aman-gupta-1995/Machine-Learning-Mindware
8b3050720711730520683c89949e3dbdfb168961
[ "MIT" ]
27
2021-07-19T09:03:34.000Z
2022-03-31T06:19:23.000Z
mindware/estimators.py
aman-gupta-1995/Machine-Learning-Mindware
8b3050720711730520683c89949e3dbdfb168961
[ "MIT" ]
4
2021-07-15T12:17:10.000Z
2022-01-26T17:16:58.000Z
mindware/estimators.py
aman-gupta-1995/Machine-Learning-Mindware
8b3050720711730520683c89949e3dbdfb168961
[ "MIT" ]
17
2020-05-12T20:24:50.000Z
2021-07-11T03:31:38.000Z
import numpy as np from sklearn.utils.multiclass import type_of_target from mindware.base_estimator import BaseEstimator from mindware.components.utils.constants import type_dict, MULTILABEL_CLS, IMG_CLS, TEXT_CLS, OBJECT_DET from mindware.components.feature_engineering.transformation_graph import DataNode class Clas...
35.103825
104
0.60523
6,110
0.951121
0
0
0
0
0
0
1,692
0.263387
ab0c1dad4d8d1784a1b379e00273da750a4c7145
871
py
Python
AnimeSpider/spiders/AinmeLinkList.py
xiaowenwen1995/AnimeSpider
11c676b772508fd4e14565a7adbfc7336d69b982
[ "MIT" ]
7
2020-02-26T15:58:13.000Z
2021-11-14T15:48:01.000Z
AnimeSpider/spiders/AinmeLinkList.py
xiaowenwen1995/AnimeSpider
11c676b772508fd4e14565a7adbfc7336d69b982
[ "MIT" ]
1
2020-07-23T06:44:19.000Z
2020-07-23T16:12:28.000Z
AnimeSpider/spiders/AinmeLinkList.py
xiaowenwen1995/AnimeSpider
11c676b772508fd4e14565a7adbfc7336d69b982
[ "MIT" ]
1
2021-04-01T09:22:51.000Z
2021-04-01T09:22:51.000Z
# -*- coding: utf-8 -*- import scrapy import json import os import codecs from AnimeSpider.items import AnimespiderItem class AinmelinklistSpider(scrapy.Spider): name = 'AinmeLinkList' allowed_domains = ['bilibili.com'] start_urls = ['http://bilibili.com/'] def start_requests(self): jsonpath ...
32.259259
93
0.626866
748
0.858783
587
0.673938
0
0
0
0
187
0.214696
ab0c88ee9a64231ee456e7fc458722131e67cfd9
34
py
Python
Module 1/Chapter 7/prog1.py
PacktPublishing/Raspberry-Pi-Making-Amazing-Projects-Right-from-Scratch-
49fd30ca8e1e30e7d85cf14e9dcb6e1d24d4a445
[ "MIT" ]
3
2016-11-15T02:27:27.000Z
2017-12-28T20:14:21.000Z
Module 1/Chapter 7/prog1.py
PacktPublishing/Raspberry-Pi-Making-Amazing-Projects-Right-from-Scratch-
49fd30ca8e1e30e7d85cf14e9dcb6e1d24d4a445
[ "MIT" ]
null
null
null
Module 1/Chapter 7/prog1.py
PacktPublishing/Raspberry-Pi-Making-Amazing-Projects-Right-from-Scratch-
49fd30ca8e1e30e7d85cf14e9dcb6e1d24d4a445
[ "MIT" ]
5
2017-12-28T20:16:05.000Z
2021-04-22T17:30:05.000Z
import cv2 print cv2.__version__
11.333333
22
0.823529
0
0
0
0
0
0
0
0
0
0
ab0c9b875cdd149ecbc52dfdd37e40b2bcaaf2e8
416
py
Python
setup.py
darlenew/pytest-testplan
85ef0c196efced681b6559328b3db3d409b2612d
[ "MIT" ]
null
null
null
setup.py
darlenew/pytest-testplan
85ef0c196efced681b6559328b3db3d409b2612d
[ "MIT" ]
null
null
null
setup.py
darlenew/pytest-testplan
85ef0c196efced681b6559328b3db3d409b2612d
[ "MIT" ]
null
null
null
"""Setup for pytest-testplan plugin.""" from setuptools import setup setup( name='pytest-testplan', version='0.1.0', description='A pytest plugin to generate a CSV test report.', author='Darlene Wong', author_email='darlene.py@gmail.com', license='MIT', py_modules=['pytest_testplan'], ...
26
65
0.673077
0
0
0
0
0
0
0
0
215
0.516827
ab0e2a7ca0afb7293dad4730992d135dc62fe897
2,271
py
Python
examples/industrial_quality_inspection/train_yolov3.py
petr-kalinin/PaddleX
e4f08b50dab01f3720570702a071188d1efd4042
[ "Apache-2.0" ]
1
2021-09-26T16:00:54.000Z
2021-09-26T16:00:54.000Z
examples/industrial_quality_inspection/train_yolov3.py
gq5227246/PaddleX
80b97ae4c9d7a290f9e7908d5cd54b7b053c2072
[ "Apache-2.0" ]
null
null
null
examples/industrial_quality_inspection/train_yolov3.py
gq5227246/PaddleX
80b97ae4c9d7a290f9e7908d5cd54b7b053c2072
[ "Apache-2.0" ]
1
2021-06-04T19:57:53.000Z
2021-06-04T19:57:53.000Z
# 环境变量配置,用于控制是否使用GPU # 说明文档:https://paddlex.readthedocs.io/zh_CN/develop/appendix/parameters.html#gpu import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' from paddlex.det import transforms import paddlex as pdx # 下载和解压铝材缺陷检测数据集 aluminum_dataset = 'https://bj.bcebos.com/paddlex/examples/industrial_quality_inspection/da...
37.85
125
0.784236
0
0
0
0
0
0
0
0
1,277
0.517213
ab0f9c740d041f9e373bd50dbfcabb4859e2d6c4
950
py
Python
api/migrations/0004_auto_20210107_2032.py
bartoszper/Django-REST-API-movierater
a145f087d9c59167ea3503dde5fa74ab7f3e3e72
[ "MIT" ]
null
null
null
api/migrations/0004_auto_20210107_2032.py
bartoszper/Django-REST-API-movierater
a145f087d9c59167ea3503dde5fa74ab7f3e3e72
[ "MIT" ]
null
null
null
api/migrations/0004_auto_20210107_2032.py
bartoszper/Django-REST-API-movierater
a145f087d9c59167ea3503dde5fa74ab7f3e3e72
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-07 19:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0003_auto_20210107_2010'), ] operations = [ migrations.AlterField( model_name='extrainfo...
32.758621
137
0.570526
824
0.867368
0
0
0
0
0
0
190
0.2
ab0fb9e929f14279551c419b287e78a48d3a92f4
1,882
py
Python
wooey/migrations/0009_script_versioning.py
macdaliot/Wooey
3a0f40e3b3ab4d905f9acc72f5cd5d6453e14834
[ "BSD-3-Clause" ]
1
2020-11-05T15:04:33.000Z
2020-11-05T15:04:33.000Z
wooey/migrations/0009_script_versioning.py
macdaliot/Wooey
3a0f40e3b3ab4d905f9acc72f5cd5d6453e14834
[ "BSD-3-Clause" ]
null
null
null
wooey/migrations/0009_script_versioning.py
macdaliot/Wooey
3a0f40e3b3ab4d905f9acc72f5cd5d6453e14834
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import wooey.models.mixins class Migration(migrations.Migration): dependencies = [ ('wooey', '0008_short_param_admin'), ] operations = [ migrations.CreateModel( name='Scr...
39.208333
126
0.609989
1,746
0.927736
0
0
0
0
0
0
399
0.212009
ab102bf2e193beb384ebdf3e74b5f3f77d47c463
3,976
py
Python
vendor/munkireport/firewall/scripts/firewall.py
menamegaly/MR
18d042639d9b45ca81a9b58659f45c6e2c3ac87f
[ "MIT" ]
null
null
null
vendor/munkireport/firewall/scripts/firewall.py
menamegaly/MR
18d042639d9b45ca81a9b58659f45c6e2c3ac87f
[ "MIT" ]
null
null
null
vendor/munkireport/firewall/scripts/firewall.py
menamegaly/MR
18d042639d9b45ca81a9b58659f45c6e2c3ac87f
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Firewall for munkireport. By Tuxudo Will return all details about how the firewall is configured """ import subprocess import os import sys import platform import re import plistlib import json sys.path.insert(0,'/usr/local/munki') sys.path.insert(0, '/usr/local/munkireport') from munkilib impo...
31.307087
80
0.591549
0
0
0
0
0
0
0
0
1,113
0.27993
ab106d29ef2283cbdeaf70023cd678e7c5de8158
842
py
Python
cf_step/metrics.py
dpoulopoulos/cf_step
c0ed1d0fbdedb863a630e90a7c7b6f95141a3e30
[ "Apache-2.0" ]
25
2020-02-16T10:14:17.000Z
2022-03-08T07:15:55.000Z
cf_step/metrics.py
dpoulopoulos/cf_step
c0ed1d0fbdedb863a630e90a7c7b6f95141a3e30
[ "Apache-2.0" ]
2
2020-05-19T15:42:58.000Z
2021-10-02T23:36:23.000Z
cf_step/metrics.py
dpoulopoulos/cf_step
c0ed1d0fbdedb863a630e90a7c7b6f95141a3e30
[ "Apache-2.0" ]
7
2020-02-24T04:35:00.000Z
2022-01-20T03:26:51.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/metrics.ipynb (unless otherwise specified). __all__ = ['recall_at_k', 'precision_at_k'] # Cell from typing import List # Cell def recall_at_k(predictions: List[int], targets: List[int], k: int = 10) -> float: """Computes `Recall@k` from the given predictions and ta...
38.272727
91
0.709026
0
0
0
0
0
0
0
0
281
0.333729
ab10a7d42774f492876454acc8afc34598c448bf
15,849
py
Python
bicycleparameters/period.py
sandertyu/Simple-Geometry-Plot
6fa4dfb50aebc4215818f75ff56f916fc32f8cfa
[ "BSD-2-Clause-FreeBSD" ]
20
2015-07-06T06:25:07.000Z
2021-12-10T19:36:33.000Z
bicycleparameters/period.py
sandertyu/Simple-Geometry-Plot
6fa4dfb50aebc4215818f75ff56f916fc32f8cfa
[ "BSD-2-Clause-FreeBSD" ]
52
2015-11-10T16:21:02.000Z
2022-03-03T11:46:52.000Z
bicycleparameters/period.py
sandertyu/Simple-Geometry-Plot
6fa4dfb50aebc4215818f75ff56f916fc32f8cfa
[ "BSD-2-Clause-FreeBSD" ]
12
2015-07-13T23:32:58.000Z
2021-12-09T18:42:16.000Z
#!/usr/bin/env/ python import os from math import pi import numpy as np from numpy import ma from scipy.optimize import leastsq import matplotlib.pyplot as plt from uncertainties import ufloat # local modules from .io import load_pendulum_mat_file def average_rectified_sections(data): '''Returns a slice of an o...
30.188571
205
0.588618
0
0
0
0
0
0
0
0
7,850
0.495299
ab11420721f9d57dfd242653355836e981c854b9
11,597
py
Python
tectosaur2/analyze.py
tbenthompson/BIE_tutorials
02cd56ab7e63e36afc4a10db17072076541aab77
[ "MIT" ]
1
2021-06-18T18:02:55.000Z
2021-06-18T18:02:55.000Z
tectosaur2/analyze.py
tbenthompson/BIE_tutorials
02cd56ab7e63e36afc4a10db17072076541aab77
[ "MIT" ]
null
null
null
tectosaur2/analyze.py
tbenthompson/BIE_tutorials
02cd56ab7e63e36afc4a10db17072076541aab77
[ "MIT" ]
1
2021-07-14T19:47:00.000Z
2021-07-14T19:47:00.000Z
import time import warnings import matplotlib.pyplot as plt import numpy as np import sympy as sp from .global_qbx import global_qbx_self from .mesh import apply_interp_mat, gauss_rule, panelize_symbolic_surface, upsample def find_dcutoff_refine(kernel, src, tol, plot=False): # prep step 1: find d_cutoff and d_...
40.407666
117
0.553419
0
0
0
0
0
0
0
0
3,111
0.268259
ab124c9df35a8bbc9dcccb03c7e6c3a2b66cccd5
277
py
Python
celery-getting-started/celeryconfig.py
hustbeta/python-examples
9052a080cb27b1c8c2bc36222ece409e236ba076
[ "MIT" ]
null
null
null
celery-getting-started/celeryconfig.py
hustbeta/python-examples
9052a080cb27b1c8c2bc36222ece409e236ba076
[ "MIT" ]
null
null
null
celery-getting-started/celeryconfig.py
hustbeta/python-examples
9052a080cb27b1c8c2bc36222ece409e236ba076
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- BROKER_URL = 'amqp://guest@localhost//' CELERY_ACCEPT_CONTENT = ['json'], CELERY_RESULT_BACKEND = 'amqp://guest@localhost//' CELERY_RESULT_SERIALIZER = 'json' CELERY_TASK_SERIALIZER = 'json' CELERY_TIMEZONE = 'Asia/Shanghai' CELERY_ENABLE_UTC = False
25.181818
50
0.740072
0
0
0
0
0
0
0
0
108
0.389892
ab12e147b947ecb1407493bd0e3516505005e115
476
py
Python
smartnlp/utils/basic_log.py
msgi/nlp-tour
ffed8c32da69c2427c92a7043f47bfc91e7feb64
[ "Apache-2.0" ]
1,559
2019-05-27T03:43:29.000Z
2022-03-31T05:35:04.000Z
smartnlp/utils/basic_log.py
msgi/nlp-tour
ffed8c32da69c2427c92a7043f47bfc91e7feb64
[ "Apache-2.0" ]
5
2019-07-10T11:55:05.000Z
2020-05-08T12:01:31.000Z
smartnlp/utils/basic_log.py
msgi/nlp-tour
ffed8c32da69c2427c92a7043f47bfc91e7feb64
[ "Apache-2.0" ]
403
2019-06-14T03:36:17.000Z
2022-03-30T08:09:08.000Z
import logging as log class Log: def __init__(self, level): self.level = level log.basicConfig(format='%(asctime)s - %(pathname)s[line:%(lineno)d] - %(levelname)s: %(message)s', level=level) self.log = log def info(self, msg): self.log.info(msg) de...
21.636364
106
0.55042
451
0.947479
0
0
0
0
0
0
74
0.155462
ab132bee6e66bf3b92342ce521bb86ee76d01876
7,308
py
Python
people/losses-bkp.py
dluvizon/3d-pose-consensus
7a829d5713d2c45c6b265c9886add0b69e0050a8
[ "MIT" ]
5
2020-05-11T14:18:12.000Z
2022-03-10T12:10:17.000Z
people/losses-bkp.py
dluvizon/3d-pose-consensus
7a829d5713d2c45c6b265c9886add0b69e0050a8
[ "MIT" ]
null
null
null
people/losses-bkp.py
dluvizon/3d-pose-consensus
7a829d5713d2c45c6b265c9886add0b69e0050a8
[ "MIT" ]
null
null
null
def structural_loss_dst68j3d(p_pred, v_pred): v_pred = K.stop_gradient(v_pred) def getlength(v): return K.sqrt(K.sum(K.square(v), axis=-1)) """Arms segments""" joints_arms = p_pred[:, :, 16:37+1, :] conf_arms = v_pred[:, :, 16:37+1] diff_arms_r = joints_arms[:, :, 2:-1:2, :] - joint...
44.024096
80
0.545293
0
0
0
0
0
0
0
0
686
0.09387
ab143c1e766e4bf7477a807945495619e156d263
729
py
Python
Examples/IMAP/FilteringMessagesFromIMAPMailbox.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
5
2019-01-28T05:17:12.000Z
2020-04-14T14:31:34.000Z
Examples/IMAP/FilteringMessagesFromIMAPMailbox.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
1
2019-01-28T16:07:26.000Z
2021-11-25T10:59:52.000Z
Examples/IMAP/FilteringMessagesFromIMAPMailbox.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
6
2018-07-16T14:57:34.000Z
2020-08-30T05:59:52.000Z
import aspose.email from aspose.email.clients.imap import ImapClient from aspose.email.clients import SecurityOptions from aspose.email.clients.imap import ImapQueryBuilder import datetime as dt def run(): dataDir = "" #ExStart: FetchEmailMessageFromServer client = ImapClient("imap.gmail.com", 993, "user...
31.695652
78
0.739369
0
0
0
0
0
0
0
0
185
0.253772
ab149d0949672fc58bdb20c8bbee5cb7134e800f
2,363
py
Python
Python.FancyBear/settings.py
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
2
2021-02-04T06:47:45.000Z
2021-07-28T10:02:10.000Z
Python.FancyBear/settings.py
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Python.FancyBear/settings.py
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
# Server UID SERVER_UID = 45158729 # Setup Logging system ######################################### # import os from FileConsoleLogger import FileConsoleLogger ServerLogger = FileConsoleLogger( os.path.join(os.path.dirname(os.path.abspath(__file__)), "_w3server.log") ) W3Logger = FileConsoleLogger( os.path.join(os.pa...
28.46988
141
0.650444
0
0
0
0
0
0
0
0
1,277
0.540415
ab15b741f60036ff0c954f49e3dc89246a1bf5bf
46,930
py
Python
tools/fileinfo/features/certificates-info/test.py
HoundThe/retdec-regression-tests
760639deb1ee52e88a14523b4a908d3e69d6fcd3
[ "MIT" ]
null
null
null
tools/fileinfo/features/certificates-info/test.py
HoundThe/retdec-regression-tests
760639deb1ee52e88a14523b4a908d3e69d6fcd3
[ "MIT" ]
null
null
null
tools/fileinfo/features/certificates-info/test.py
HoundThe/retdec-regression-tests
760639deb1ee52e88a14523b4a908d3e69d6fcd3
[ "MIT" ]
null
null
null
from regression_tests import * class Test1(Test): settings = TestSettings( tool='fileinfo', input='8b280f2b7788520de214fa8d6ea32a30ebb2a51038381448939530fd0f7dfc16', args='--json --verbose' ) def test_certificates(self): assert self.fileinfo.succeeded assert self....
57.938272
163
0.721372
46,857
0.998444
0
0
0
0
0
0
24,016
0.511741
ab180e51c94b6c40621e5bfdc60ef7316f264c2c
111
py
Python
app/darn.py
AmitSrourDev/darn
c04b681881620ffed2e1e0788d9cd80da7f806c4
[ "BSD-2-Clause" ]
null
null
null
app/darn.py
AmitSrourDev/darn
c04b681881620ffed2e1e0788d9cd80da7f806c4
[ "BSD-2-Clause" ]
null
null
null
app/darn.py
AmitSrourDev/darn
c04b681881620ffed2e1e0788d9cd80da7f806c4
[ "BSD-2-Clause" ]
null
null
null
import subprocess def run(cmd): subprocess.run(cmd.split(' ')) def ls(): subprocess.call(["ls", "-l"])
18.5
34
0.612613
0
0
0
0
0
0
0
0
11
0.099099
ab191577acbffa7ecc550d7138ce7e0984e85baf
2,380
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/plugins/become/runas.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/plugins/become/runas.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/plugins/become/runas.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ become: runas short_description: Run As user ...
34
127
0.589496
185
0.077731
0
0
0
0
0
0
2,100
0.882353
ab1934eb319ba24ec86beec019a4db6fcc3fa01b
698
py
Python
2017/lab_dh/utils.py
JustHitTheCore/ctf_workshops
d50e8a5c90e80cdae3e17a92bce83955f0618570
[ "MIT" ]
7
2016-12-27T17:32:43.000Z
2019-03-27T07:15:23.000Z
2017/lab_dh/utils.py
JustHitTheCore/ctf_workshops
d50e8a5c90e80cdae3e17a92bce83955f0618570
[ "MIT" ]
1
2017-12-07T02:21:29.000Z
2017-12-07T02:21:29.000Z
2017/lab_dh/utils.py
JustHitTheCore/ctf_workshops
d50e8a5c90e80cdae3e17a92bce83955f0618570
[ "MIT" ]
1
2017-01-08T01:49:05.000Z
2017-01-08T01:49:05.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ~Gros ''' from hashlib import sha256 import random def add_padding(data, block_size=16): """add PKCS#7 padding""" size = block_size - (len(data)%block_size) return data+chr(size)*size def strip_padding(data, block_size=16): """strip PKCS#7 padding"...
22.516129
87
0.659026
0
0
0
0
0
0
0
0
126
0.180516
ab1a1e11ddf7bd7dae943e8668ed1a5ba0c14a72
3,848
py
Python
applications/cli/commands/model/tests/test_export.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
390
2019-01-23T09:07:00.000Z
2022-02-20T04:03:34.000Z
applications/cli/commands/model/tests/test_export.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
52
2019-01-31T12:17:30.000Z
2022-02-10T00:01:39.000Z
applications/cli/commands/model/tests/test_export.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
66
2019-01-23T18:59:39.000Z
2020-10-18T15:24:00.000Z
# # Copyright (c) 2019 Intel Corporation # # 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...
35.62963
109
0.747401
0
0
0
0
0
0
0
0
1,344
0.349272
ab1a86e3a749c305907e0a449b620a088db1db5e
4,070
py
Python
var/spack/repos/builtin/packages/py-mdanalysis/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-mdanalysis/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-mdanalysis/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyMdanalysis(PythonPackage): """MDAnalysis is a Python toolkit to analyze molecular dynami...
54.266667
96
0.653317
3,849
0.9457
0
0
0
0
0
0
2,522
0.619656
ab1a9a9be99684f3bafd7d5cd35569aa18f68f49
786
py
Python
lesley-byte/graphpressure.py
lesley-byte/enviroplus-python
df08c238c8b550c9041ff06a0b6bef6b330af611
[ "MIT" ]
null
null
null
lesley-byte/graphpressure.py
lesley-byte/enviroplus-python
df08c238c8b550c9041ff06a0b6bef6b330af611
[ "MIT" ]
null
null
null
lesley-byte/graphpressure.py
lesley-byte/enviroplus-python
df08c238c8b550c9041ff06a0b6bef6b330af611
[ "MIT" ]
null
null
null
from requests import get import matplotlib.pyplot as plt import matplotlib.animation as animation import datetime as dt from bme280 import BME280 try: from smbus2 import SMBus except ImportError: from smbus import SMBus fig = plt.figure() ax = fig.add_subplot(1, 1, 1) xs = [] ys =[] bus = SMBus(1) bme280 = ...
20.153846
75
0.670483
0
0
0
0
0
0
0
0
47
0.059796
ab1ab02c6fe0df3ffafd8d3c0b4bb24aea453027
5,912
py
Python
bootstrapvz/plugins/ova/tasks.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/ova/tasks.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/ova/tasks.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
from bootstrapvz.base import Task from bootstrapvz.common import phases from bootstrapvz.common.tasks import workspace import os import shutil assets = os.path.normpath(os.path.join(os.path.dirname(__file__), 'assets')) class CheckOVAPath(Task): description = 'Checking if the OVA file already exists' phase = phase...
39.152318
113
0.692321
5,679
0.960589
0
0
5,153
0.871617
0
0
2,071
0.350304
ab1ab3780950be34d6065669fa02273afffb05ab
3,498
py
Python
docs/conf.py
PhilippJunk/homelette
d6e585a215d7eef75ef6c837d1faf2d0ad8025c1
[ "MIT" ]
null
null
null
docs/conf.py
PhilippJunk/homelette
d6e585a215d7eef75ef6c837d1faf2d0ad8025c1
[ "MIT" ]
null
null
null
docs/conf.py
PhilippJunk/homelette
d6e585a215d7eef75ef6c837d1faf2d0ad8025c1
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.314286
79
0.616638
0
0
0
0
0
0
0
0
2,752
0.786735
ab1bca899ba1f440651e92b900de789b742e59bc
7,742
py
Python
bytecode2ast/parsers/bases.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
bytecode2ast/parsers/bases.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
bytecode2ast/parsers/bases.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2019~2999 - Cologler <skyoflw@gmail.com> # ---------- # some object for parser # ---------- from typing import List import enum import dis from collections import defaultdict class ID: def __init__(self, name): self._name = name # a name use to debug def __r...
28.050725
82
0.597778
6,940
0.896409
89
0.011496
179
0.023121
0
0
1,570
0.20279
ab1c5aded9a853b37a00d0b031cb2cff207d2b22
15,055
py
Python
netbox/extras/forms.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
1
2021-05-01T18:16:37.000Z
2021-05-01T18:16:37.000Z
netbox/extras/forms.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
null
null
null
netbox/extras/forms.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.utils.safestring import mark_safe from django.utils.translation import gettext as _ from dcim.models import DeviceRole, DeviceType, Platform, Region, Site, SiteGroup from tenancy....
28.40566
117
0.643374
13,918
0.924477
0
0
199
0.013218
0
0
2,185
0.145135
ab1c9d3f78e7e9ff6cc93d1c78aab266fbaf43fb
3,122
py
Python
unwarp_models.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
unwarp_models.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
unwarp_models.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from models.misc import modules constrain_path = { ('threeD', 'normal'): (True, True, ''), ('threeD', 'depth'): (True, True, ''), ('normal', 'depth'): (True, True, ''), ('depth', 'normal'): (True, True, ''), } class UnwarpNet(nn.Modu...
51.180328
105
0.686739
2,824
0.904548
0
0
0
0
0
0
220
0.070468
ab1d101c4bcfc97cfc157f818f4f8698285ba31c
12,768
py
Python
endpoint/test_endpoint/update.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
14
2019-02-19T01:31:08.000Z
2021-12-12T12:56:08.000Z
endpoint/test_endpoint/update.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
2
2020-03-10T12:12:10.000Z
2020-03-10T12:12:10.000Z
endpoint/test_endpoint/update.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
4
2019-07-09T02:00:13.000Z
2020-08-18T14:04:24.000Z
import configparser import os import hashlib import json import shutil import sys import tempfile import subprocess import tarfile import re import stat from functools import cmp_to_key from contextlib import closing from gzip import GzipFile from pathlib import Path from urllib.error import HTTPError from urllib.reque...
31.60396
98
0.56344
10,207
0.79942
0
0
496
0.038847
0
0
3,755
0.294095
ab1d930ad268269a2d4b9569657fc14b57b495e4
690
py
Python
lib/jbgp/jbgpneighbor.py
routedo/junos-pyez-example
b89df2d40ca0a233529e4a26b42dd605c00aae46
[ "Apache-2.0" ]
null
null
null
lib/jbgp/jbgpneighbor.py
routedo/junos-pyez-example
b89df2d40ca0a233529e4a26b42dd605c00aae46
[ "Apache-2.0" ]
null
null
null
lib/jbgp/jbgpneighbor.py
routedo/junos-pyez-example
b89df2d40ca0a233529e4a26b42dd605c00aae46
[ "Apache-2.0" ]
1
2020-06-17T12:17:18.000Z
2020-06-17T12:17:18.000Z
""" Query BGP neighbor table on a Juniper network device. """ import sys from jnpr.junos import Device from jnpr.junos.factory import loadyaml def juniper_bgp_state(dev, bgp_neighbor): """ This function queries the BGP neighbor table on a Juniper network device. dev = Juniper device connection bgp_ne...
23
77
0.676812
0
0
0
0
0
0
0
0
299
0.433333
ab1fe51ebbcd4a1dc4363d8ff7260094c438deca
2,170
py
Python
lib/cherrypy/cherrypy/test/test_sessionauthenticate.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/cherrypy/cherrypy/test/test_sessionauthenticate.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/cherrypy/cherrypy/test/test_sessionauthenticate.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
162
2015-01-01T00:21:16.000Z
2022-02-23T02:36:04.000Z
import cherrypy from cherrypy.test import helper class SessionAuthenticateTest(helper.CPWebCase): def setup_server(): def check(username, password): # Dummy check_username_and_password function if username != 'test' or password != 'password': return 'Wrong...
34.444444
82
0.566359
2,117
0.975576
0
0
0
0
0
0
746
0.343779
ab202528012b6880e43938d0db79af54bf805f9b
1,145
py
Python
2021/day-12/solve.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
1
2019-12-27T22:36:30.000Z
2019-12-27T22:36:30.000Z
2021/day-12/solve.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
2021/day-12/solve.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
#!/usr/bin/env python from typing import List import aoc from collections import defaultdict @aoc.timing def solve(inp: str, part2=False): def find_path(current: str, path: List[str] = []): if current == 'end': yield path return for nxt in caves[current]: if n...
23.367347
73
0.541485
0
0
733
0.640175
792
0.691703
0
0
107
0.09345
ab207da0020d38ce47419c0053bab12a37bcf81b
11,387
py
Python
PaddleCV/tracking/ltr/data/processing.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
5
2021-09-28T13:28:01.000Z
2021-12-21T07:25:44.000Z
PaddleCV/tracking/ltr/data/processing.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
1
2020-07-02T03:05:00.000Z
2020-07-02T03:05:00.000Z
PaddleCV/tracking/ltr/data/processing.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
3
2021-09-28T15:33:45.000Z
2021-09-29T01:44:32.000Z
import numpy as np from ltr.data import transforms import ltr.data.processing_utils as prutils from pytracking.libs import TensorDict class BaseProcessing: """ Base class for Processing. Processing class is used to process the data returned by a dataset, before passing it through the network. For e...
43.296578
121
0.558971
11,229
0.986125
0
0
0
0
0
0
4,831
0.424256