hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
2a4b059c1c92fd048a5350922563a9f19389eb29
489
py
Python
apps/about/views.py
cesaralvrz/pycan-web
6c5892384421ba7ff3e40917a6b99f799bdf0b9d
[ "MIT" ]
null
null
null
apps/about/views.py
cesaralvrz/pycan-web
6c5892384421ba7ff3e40917a6b99f799bdf0b9d
[ "MIT" ]
null
null
null
apps/about/views.py
cesaralvrz/pycan-web
6c5892384421ba7ff3e40917a6b99f799bdf0b9d
[ "MIT" ]
null
null
null
import logging from django.shortcuts import render from apps.members.models import Position logger = logging.getLogger(__name__) def index(request): positions = [p for p in Position.objects.all() if p.active] return render( request, 'about/index.html', { 'positions': pos...
18.111111
63
0.646217
0d1097d20ba524b008e689636fa3a0b6cd2aee45
8,376
py
Python
compile_thrift.py
Smityz/rdsn
dccb6b3c273197e334ef02f742dc590894e58be8
[ "MIT" ]
null
null
null
compile_thrift.py
Smityz/rdsn
dccb6b3c273197e334ef02f742dc590894e58be8
[ "MIT" ]
null
null
null
compile_thrift.py
Smityz/rdsn
dccb6b3c273197e334ef02f742dc590894e58be8
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import os import sys import platform import re ''' the default thrift generator ''' thrift_description = [ { "name": "dsn.layer2", "path": "src", "include_fix": { "_types.h": { "add": ["<dsn/cpp/serialization_helper/dsn_types.h>"], ...
29.702128
173
0.544532
3a6ef3ebdd7465aab5901550c86d769433ce0907
1,312
py
Python
evacsim/lcmae/evacuation/closest_frontier.py
selverob/lcmae
0d82dca736c6b2dd291f9a271e904f9f14a389e6
[ "MIT" ]
null
null
null
evacsim/lcmae/evacuation/closest_frontier.py
selverob/lcmae
0d82dca736c6b2dd291f9a271e904f9f14a389e6
[ "MIT" ]
null
null
null
evacsim/lcmae/evacuation/closest_frontier.py
selverob/lcmae
0d82dca736c6b2dd291f9a271e904f9f14a389e6
[ "MIT" ]
null
null
null
from typing import cast, Optional, Tuple from pqdict import pqdict from evacsim.astar import AStar from evacsim.level import Level from evacsim.manhattan import ManhattanDistanceHeuristic from evacsim.graph.nx_graph import NxGraph, NxNode from .abstract import Evacuating class ClosestFrontierFinder(AStar): def _...
38.588235
113
0.699695
25314f461bd89d2852f91f96ff91d48db18c5a8b
6,607
py
Python
makeMKV/makeMKV.py
coolman565/blu_two
5c7626145b3644570be99ff0267f88bd61b9806c
[ "MIT" ]
null
null
null
makeMKV/makeMKV.py
coolman565/blu_two
5c7626145b3644570be99ff0267f88bd61b9806c
[ "MIT" ]
1
2021-06-01T21:57:23.000Z
2021-06-01T21:57:23.000Z
makeMKV/makeMKV.py
coolman565/blu_two
5c7626145b3644570be99ff0267f88bd61b9806c
[ "MIT" ]
null
null
null
import os from typing import List, Dict, Optional from blu import Config from commander import Commander, Response from makeMKV.model.disc import Disc from makeMKV.model.drive import Drive from makeMKV.model.enum.disk_media_flag import DiskMediaFlag from makeMKV.model.enum.drive_state import DriveState from makeMKV.mo...
37.754286
127
0.560012
91a88d8c7f9da60b423ca43ff004c6bc9ce864fa
1,982
py
Python
packages/ipylintotype/src/ipylintotype/diagnosers/pyflakes_diagnoser.py
deathbeds/lintotype
4b83f784b56ef12a245c0ca92d48eb95a9b0f7da
[ "BSD-3-Clause" ]
18
2019-03-03T21:38:51.000Z
2020-06-12T14:24:37.000Z
packages/ipylintotype/src/ipylintotype/diagnosers/pyflakes_diagnoser.py
deathbeds/lintotype
4b83f784b56ef12a245c0ca92d48eb95a9b0f7da
[ "BSD-3-Clause" ]
7
2019-03-03T18:55:59.000Z
2019-03-13T03:34:17.000Z
packages/ipylintotype/src/ipylintotype/diagnosers/pyflakes_diagnoser.py
deathbeds/lintotype
4b83f784b56ef12a245c0ca92d48eb95a9b0f7da
[ "BSD-3-Clause" ]
2
2019-04-24T16:05:02.000Z
2020-03-25T17:47:35.000Z
import difflib import io import re import typing as typ import pyflakes.api import pyflakes.reporter import traitlets from .. import shapes from .diagnoser import Diagnoser, InteractiveShell, IPythonDiagnoser # TODO: better _help_pyflakes_args = "https://github.com/PyCQA/pyflakes/blob/master/pyflakes/api.py" # "sour...
32.491803
85
0.564077
2e574ae9a398bc335769badf213c54546b04b269
3,357
py
Python
Integrations/python/deephaven/QueryScope/__init__.py
niloc132/deephaven-core
14f5e1e29420bfa2045c01a91b9aea378f763b5e
[ "MIT" ]
null
null
null
Integrations/python/deephaven/QueryScope/__init__.py
niloc132/deephaven-core
14f5e1e29420bfa2045c01a91b9aea378f763b5e
[ "MIT" ]
null
null
null
Integrations/python/deephaven/QueryScope/__init__.py
niloc132/deephaven-core
14f5e1e29420bfa2045c01a91b9aea378f763b5e
[ "MIT" ]
null
null
null
""" Variable scope used to resolve parameter values during query execution. """ # # Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending # ############################################################################## # This code is auto generated. DO NOT EDIT FILE! # Run "./gradlew :Generators:generatePy...
29.191304
120
0.685136
3397518b698dd69f0c7e70bcf73aaedf9f4f8d6e
601
py
Python
test/test_flake8compliant.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
null
null
null
test/test_flake8compliant.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
null
null
null
test/test_flake8compliant.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys import pathlib def test_flake8compliant(): path = pathlib.Path(__file__) cmd = ("cd {path}; {exec} -m flake8 --exclude={exclude}" .format(exec=sys.executable, exclude=( path.parent.parent / "flake8_exclude.txt").read_text(), ...
31.631579
78
0.582363
feeaf297d764209b13863bff358dc57f10069d1d
98
py
Python
tests/database/model/__init__.py
MislavJaksic/rapdevpy
bf03c151ed00b88f89d3f6fbfaeed2348fe1e9f7
[ "MIT" ]
null
null
null
tests/database/model/__init__.py
MislavJaksic/rapdevpy
bf03c151ed00b88f89d3f6fbfaeed2348fe1e9f7
[ "MIT" ]
null
null
null
tests/database/model/__init__.py
MislavJaksic/rapdevpy
bf03c151ed00b88f89d3f6fbfaeed2348fe1e9f7
[ "MIT" ]
null
null
null
from sqlalchemy.orm import declarative_base Base = declarative_base() Base2 = declarative_base()
19.6
43
0.816327
c3e52779bd25dd7bd9fcacb2a4a54016207617e3
991
py
Python
pyvisdk/do/host_image_profile_summary.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/host_image_profile_summary.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/host_image_profile_summary.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def HostImageProfileSummary(vim, *args, **kwargs): '''Summary of an image profile''' ...
30.030303
124
0.599395
c5dfb0ce8f65aac05e78630a6ed19efa11331194
241
py
Python
home/views.py
G-Papad/tedxntua2022_beta
18ddd3926deed619da65e5dee309492d9116cefb
[ "MIT" ]
null
null
null
home/views.py
G-Papad/tedxntua2022_beta
18ddd3926deed619da65e5dee309492d9116cefb
[ "MIT" ]
4
2022-03-22T18:59:40.000Z
2022-03-22T20:38:39.000Z
home/views.py
G-Papad/tedxntua2022_beta
18ddd3926deed619da65e5dee309492d9116cefb
[ "MIT" ]
1
2022-03-20T15:28:18.000Z
2022-03-20T15:28:18.000Z
from django.shortcuts import render from .models import * # Create your views here. def home(request): previousEvents = PreviousEvent.objects.all() return render(request, 'placeholder_home.html', {'previousEvents': previousEvents})
30.125
87
0.763485
0f253a4cbbdd08ccbbd81fc4ab77de2a5a8a0c93
1,670
py
Python
ui/main_ui.py
yenru0/self-satisfaction
5f80cc07cabe9336c6e0b29f8432247b06cc7b6c
[ "MIT" ]
2
2020-06-29T22:53:03.000Z
2020-06-29T23:09:22.000Z
ui/main_ui.py
yenru0/self-satisfaction
5f80cc07cabe9336c6e0b29f8432247b06cc7b6c
[ "MIT" ]
1
2020-06-29T23:35:26.000Z
2020-06-30T06:15:16.000Z
ui/main_ui.py
yenru0/self-satisfaction
5f80cc07cabe9336c6e0b29f8432247b06cc7b6c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'main.ui' ## ## Created by: Qt User Interface Compiler version 5.14.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! #####################...
37.954545
96
0.641916
e87b4875b15f20852e5502b42941ae12fec4cc90
6,933
py
Python
tools/test/export/build_test.py
matthewelse/mbed-os
dce72d52fbb106eac148e00cbc20e03259c40425
[ "Apache-2.0" ]
null
null
null
tools/test/export/build_test.py
matthewelse/mbed-os
dce72d52fbb106eac148e00cbc20e03259c40425
[ "Apache-2.0" ]
null
null
null
tools/test/export/build_test.py
matthewelse/mbed-os
dce72d52fbb106eac148e00cbc20e03259c40425
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ mbed SDK Copyright (c) 2011-2016 ARM Limited 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 ...
38.093407
80
0.579547
09a4ccd0662e959e539c93b540e7b5bb5420eaaa
1,680
py
Python
frappe-bench/env/lib/python2.7/site-packages/faker/providers/ssn/nl_NL/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/faker/providers/ssn/nl_NL/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/faker/providers/ssn/nl_NL/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as SsnProvider class Provider(SsnProvider): def ssn(self): """ Returns a 9 digits Dutch SSN called "burgerservicenummer (BSN)". the Dutch "burgerservicenummer (BSN)" needs to pass the "11-proef", whi...
32.307692
76
0.575595
e10526b288741ccd799d0e26729897f7b6e7b8c0
542
py
Python
003/highest_and_lowest_7kyu.py
gauthamp10/100DaysOfCode
bcc1d02d3cf7ec78770a7645363a88e9930e2115
[ "MIT" ]
null
null
null
003/highest_and_lowest_7kyu.py
gauthamp10/100DaysOfCode
bcc1d02d3cf7ec78770a7645363a88e9930e2115
[ "MIT" ]
null
null
null
003/highest_and_lowest_7kyu.py
gauthamp10/100DaysOfCode
bcc1d02d3cf7ec78770a7645363a88e9930e2115
[ "MIT" ]
null
null
null
"""In this little assignment you are given a string of space separated numbers, and have to return the highest and lowest number.""" def high_and_low(numbers): "Function to return the smallest and largest element from a list" numbers = [int(num) for num in numbers.split(" ")] return "{max} {min}".format(m...
30.111111
77
0.678967
ffa1e44494dd86b060e0a8b8737dc83bd19923ad
3,315
py
Python
src/gui/buffered_window.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/gui/buffered_window.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/gui/buffered_window.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
import wx # This has been set up to optionally use the wxBufferedDC if # USE_BUFFERED_DC is True, it will be used. Otherwise, it uses the raw # wxMemory DC , etc. USE_BUFFERED_DC = 1 class BufferedWindow(wx.Panel): """ A Buffered window class. To use it, subclass it and define a Draw(DC)...
34.53125
84
0.6181
f928ca7be94bcff977647a10c5b2287fd2638160
7,157
py
Python
bleak/backends/scanner.py
devanlai/bleak
ce63ed4d92430f154ce33ab812e313961b26f7a4
[ "MIT" ]
null
null
null
bleak/backends/scanner.py
devanlai/bleak
ce63ed4d92430f154ce33ab812e313961b26f7a4
[ "MIT" ]
null
null
null
bleak/backends/scanner.py
devanlai/bleak
ce63ed4d92430f154ce33ab812e313961b26f7a4
[ "MIT" ]
null
null
null
import abc import asyncio import inspect from typing import ( Awaitable, Callable, Dict, List, Optional, Tuple, ) from warnings import warn from bleak.backends.device import BLEDevice class AdvertisementData: """ Wrapper around the advertisement data that each platform returns upon di...
33.134259
135
0.632108
10fe83b641ebb1fe02c7f4d60513016a1e9c3288
1,547
py
Python
SimpleTwitchBot.py
Wil3on/TwitchViewbot
42a7dc5afa3bffd88e8c2f0cb7b8b13329a653c8
[ "CC0-1.0" ]
null
null
null
SimpleTwitchBot.py
Wil3on/TwitchViewbot
42a7dc5afa3bffd88e8c2f0cb7b8b13329a653c8
[ "CC0-1.0" ]
null
null
null
SimpleTwitchBot.py
Wil3on/TwitchViewbot
42a7dc5afa3bffd88e8c2f0cb7b8b13329a653c8
[ "CC0-1.0" ]
null
null
null
import concurrent.futures, time, random, os #desired channel url channel_url = 'https://www.twitch.tv/wils3on' #number of viewer bots botcount = 10 #path to proxies.txt file proxypath = "C:\Proxy\proxy.txt" #path to vlc playerpath = r'"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"' #takes proxies from proxi...
37.731707
249
0.708468
3f184399960cf3944063bc65e196a82ea014eba8
35
py
Python
lib/optim/__init__.py
gopitk/CvT
2cc8deb07d5afcc7f246abaca18ce0352b3a10f4
[ "MIT" ]
250
2021-05-26T07:33:23.000Z
2022-03-31T14:02:03.000Z
lib/optim/__init__.py
ZHOUWeilian/CvT
4cedb05b343e13ab08c0a29c5166b6e94c751112
[ "MIT" ]
14
2021-05-27T23:30:28.000Z
2022-03-09T08:24:38.000Z
lib/optim/__init__.py
ZHOUWeilian/CvT
4cedb05b343e13ab08c0a29c5166b6e94c751112
[ "MIT" ]
34
2021-05-27T11:59:03.000Z
2022-03-15T07:11:42.000Z
from .build import build_optimizer
17.5
34
0.857143
e04653fd1d0991d7b7c5b59310743498ba25395d
3,424
py
Python
lab 8/freznel.py
DrBumlehund/rmuast_cnt
93a33cc39a97b275881d34cfdf3bb08bcdb21635
[ "MIT" ]
null
null
null
lab 8/freznel.py
DrBumlehund/rmuast_cnt
93a33cc39a97b275881d34cfdf3bb08bcdb21635
[ "MIT" ]
null
null
null
lab 8/freznel.py
DrBumlehund/rmuast_cnt
93a33cc39a97b275881d34cfdf3bb08bcdb21635
[ "MIT" ]
null
null
null
# # Copyright 2018 Chris Bang Sørensen, Niels Hvid, Thomas Lemqvist # # 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 # ...
39.356322
87
0.594042
c9274979e390590b4467376d839b4f8450d05d83
2,963
py
Python
src/data_standardization/standardize_point_data.py
terryf82/boston-crash-modeling
9c2659387fcee1a426e07de6284c15d703312b1c
[ "MIT" ]
null
null
null
src/data_standardization/standardize_point_data.py
terryf82/boston-crash-modeling
9c2659387fcee1a426e07de6284c15d703312b1c
[ "MIT" ]
null
null
null
src/data_standardization/standardize_point_data.py
terryf82/boston-crash-modeling
9c2659387fcee1a426e07de6284c15d703312b1c
[ "MIT" ]
null
null
null
import argparse import os import pandas as pd from collections import OrderedDict import yaml from . import standardization_util CURR_FP = os.path.dirname( os.path.abspath(__file__)) BASE_FP = os.path.dirname(CURR_FP) def read_file_info(config, datadir): points = [] for source_config in list(config['dat...
33.292135
77
0.555181
d9b8a75b11ca8ca7ad2972968f39d6eebbb8f406
5,354
py
Python
kubernetes/kserve/kf_request_json/v2/bert/Transformer_kserve_handler.py
ittus/serve
c0405b6c30ee918add8dd595698c32f10214eb2d
[ "Apache-2.0" ]
null
null
null
kubernetes/kserve/kf_request_json/v2/bert/Transformer_kserve_handler.py
ittus/serve
c0405b6c30ee918add8dd595698c32f10214eb2d
[ "Apache-2.0" ]
3
2022-03-12T01:08:09.000Z
2022-03-15T10:56:14.000Z
kubernetes/kserve/kf_request_json/v2/bert/Transformer_kserve_handler.py
ittus/serve
c0405b6c30ee918add8dd595698c32f10214eb2d
[ "Apache-2.0" ]
null
null
null
import torch import logging from Transformer_handler_generalized import ( TransformersSeqClassifierHandler, captum_sequence_forward, construct_input_ref, summarize_attributions, get_word_token, ) import json from captum.attr import LayerIntegratedGradients logger = logging.getLogger(__name__) # TOD...
42.832
100
0.585544
e9475db45eae10d2de03ce1d0d22881bc3fdb4a3
13,853
py
Python
Scripts/Misc/Laura Stroop.py
AlirezaFarnia/PsyNeuLink
c66f8248d1391830e76c97df4b644e12a02c2b73
[ "Apache-2.0" ]
null
null
null
Scripts/Misc/Laura Stroop.py
AlirezaFarnia/PsyNeuLink
c66f8248d1391830e76c97df4b644e12a02c2b73
[ "Apache-2.0" ]
null
null
null
Scripts/Misc/Laura Stroop.py
AlirezaFarnia/PsyNeuLink
c66f8248d1391830e76c97df4b644e12a02c2b73
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[ ]: import numpy as np import psyneulink as pnl # In[ ]: # SET UP MECHANISMS # Linear input units, colors: ('red', 'green'), words: ('RED','GREEN') import psyneulink.core.components.functions.transferfunctions colors_input_layer = pnl.TransferMechanism(size=2, ...
38.587744
163
0.594023
b0a00276593894e001e2bdf9c19d3eeb930b937b
588
py
Python
config.py
sQu1rr/binance-dust-sweeper
9d1d6841731a3ee405a4c0acfc8923c101f6590a
[ "MIT" ]
38
2018-01-04T03:19:58.000Z
2021-02-17T00:23:36.000Z
config.py
sQu1rr/binance-dust-sweeper
9d1d6841731a3ee405a4c0acfc8923c101f6590a
[ "MIT" ]
11
2018-01-05T21:34:43.000Z
2018-01-20T21:58:45.000Z
config.py
sQu1rr/binance-dust-sweeper
9d1d6841731a3ee405a4c0acfc8923c101f6590a
[ "MIT" ]
8
2018-01-05T17:27:16.000Z
2021-12-16T08:55:58.000Z
#!/usr/bin/env python3 import argparse import os from belks.binance.config import Config parser = argparse.ArgumentParser(description='Configuration') parser.add_argument('--new', action='store_true', dest='overwrite') parser.add_argument('--rm', action='store_true', dest='remove') args = parser.parse_args() config...
21.777778
67
0.705782
caf7e3769ac2d20462f2256eb16dfdd7d6ddd8df
354
py
Python
WWW_Dashboard/migrations/0002_delete_image.py
denysboiko/reach-ukr-un-3w
2838684348152e2aa5c6a0e794a1059dfbd7d0aa
[ "MIT" ]
null
null
null
WWW_Dashboard/migrations/0002_delete_image.py
denysboiko/reach-ukr-un-3w
2838684348152e2aa5c6a0e794a1059dfbd7d0aa
[ "MIT" ]
null
null
null
WWW_Dashboard/migrations/0002_delete_image.py
denysboiko/reach-ukr-un-3w
2838684348152e2aa5c6a0e794a1059dfbd7d0aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-19 10:14 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('WWW_Dashboard', '0001_initial'), ] operations = [ migrations.DeleteModel( ...
18.631579
48
0.618644
b3061e62570ca664f88c2562e73296f53c271094
8,345
py
Python
shadowsocks/local.py
Ninlgde/shadowsocks
3505d4a1c230dbf96e0faa019916cb812ad134dc
[ "MIT" ]
1
2015-08-08T13:45:05.000Z
2015-08-08T13:45:05.000Z
shadowsocks/local.py
wayna1974/shadowsocks
3505d4a1c230dbf96e0faa019916cb812ad134dc
[ "MIT" ]
null
null
null
shadowsocks/local.py
wayna1974/shadowsocks
3505d4a1c230dbf96e0faa019916cb812ad134dc
[ "MIT" ]
1
2019-03-07T12:51:43.000Z
2019-03-07T12:51:43.000Z
#!/usr/bin/env python # Copyright (c) 2013 clowwindy # # 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, modify, me...
32.854331
94
0.567406
174987d9aeac52df1f0e262e90c5614cf06ae279
1,422
py
Python
leetcode/easy/tree/test_same_tree.py
yenbohuang/online-contest-python
c60b332866caa28e1ae5e216cbfc2c6f869a751a
[ "Apache-2.0" ]
null
null
null
leetcode/easy/tree/test_same_tree.py
yenbohuang/online-contest-python
c60b332866caa28e1ae5e216cbfc2c6f869a751a
[ "Apache-2.0" ]
null
null
null
leetcode/easy/tree/test_same_tree.py
yenbohuang/online-contest-python
c60b332866caa28e1ae5e216cbfc2c6f869a751a
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/same-tree/ import unittest from ...leetcode_data_model import TreeNode class Solution(object): def isSameTree(self, p, q): """ :type p: TreeNode :type q: TreeNode :rtype: bool """ if p is None and q is None: return True ...
20.314286
56
0.553446
1cea02d7604e2959c287eda2b6c544e6addc9fc5
5,851
py
Python
trio2o/nova_apigw/controllers/image.py
OpenCloudNeXt/trio2o
f4d2d5458fbba71414edebf5e9f69b98abd2d080
[ "Apache-2.0" ]
1
2021-03-19T16:48:55.000Z
2021-03-19T16:48:55.000Z
trio2o/nova_apigw/controllers/image.py
OpenCloudNeXt/trio2o
f4d2d5458fbba71414edebf5e9f69b98abd2d080
[ "Apache-2.0" ]
null
null
null
trio2o/nova_apigw/controllers/image.py
OpenCloudNeXt/trio2o
f4d2d5458fbba71414edebf5e9f69b98abd2d080
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Huawei Tech. Co., Ltd. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
37.031646
78
0.599385
09848d6ebf0d4072aec1726a38c4b3092cdf6e01
362
py
Python
employees_app/demos.py
Minkov/python-web-basics
072249f6b26fd4d1829e4525b753c4cc778d75e1
[ "MIT" ]
7
2022-01-16T12:14:38.000Z
2022-03-18T11:27:06.000Z
employees_app/demos.py
Minkov/python-web-basics
072249f6b26fd4d1829e4525b753c4cc778d75e1
[ "MIT" ]
null
null
null
employees_app/demos.py
Minkov/python-web-basics
072249f6b26fd4d1829e4525b753c4cc778d75e1
[ "MIT" ]
8
2022-01-16T17:16:25.000Z
2022-03-02T13:51:00.000Z
import json def generate_template_str(name, age): return f'Name: {name}, Age: {age}' def generate_template_html(name, age): return f''' <h1>{name}</h1> <h2>{age}</h2> ''' print(generate_template_str('Doncho', 23)) print(generate_template_html('Doncho', 23)) print(repr(json.loads('{"name":"Doncho"}'))) pr...
18.1
44
0.665746
54a4eb02da4ab06e0c5bdcf3c7146520a7cc548a
2,700
py
Python
bindings/python/ensmallen/datasets/kgobo/cheminf.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/kgobo/cheminf.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/kgobo/cheminf.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph CHEMINF. The graph is automatically retrieved from the KGOBO repository. References --------------------- Please cite the following if you use the data: ```bib @misc{kgobo, title = "KG-OBO", year = "2021", author = "{Re...
27.835052
73
0.631852
5125484f3ee8507d5d187f7dff78b647260da9f8
8,107
py
Python
icml18-jtnn/revised_bo_molbind/run_bo_molbind_revised.py
alexjli/addcov19
839b6a5fdb117d6dbfedd3e2a2aaf722a722f7c8
[ "MIT" ]
1
2020-04-25T01:33:40.000Z
2020-04-25T01:33:40.000Z
icml18-jtnn/revised_bo_molbind/run_bo_molbind_revised.py
alexjli/addcov19
839b6a5fdb117d6dbfedd3e2a2aaf722a722f7c8
[ "MIT" ]
null
null
null
icml18-jtnn/revised_bo_molbind/run_bo_molbind_revised.py
alexjli/addcov19
839b6a5fdb117d6dbfedd3e2a2aaf722a722f7c8
[ "MIT" ]
null
null
null
import pickle import gzip from sparse_gp import SparseGP import scipy.stats as sps import numpy as np import os.path import rdkit from rdkit.Chem import MolFromSmiles, MolToSmiles from rdkit.Chem import Descriptors import torch import torch.nn as nn from fast_jtnn import * import argparse lg = rdkit.RDLogger.logger...
31.917323
151
0.649809
55ce919d2434ae4f144bf21094ad3c67cd8b1c6c
1,695
py
Python
athp_stock/models/stock_request_type.py
QuanTranDoanAnh/odoo-athp-addons
8a6ce58378b37e96d022ded8d912bb8b88e55b4c
[ "MIT" ]
null
null
null
athp_stock/models/stock_request_type.py
QuanTranDoanAnh/odoo-athp-addons
8a6ce58378b37e96d022ded8d912bb8b88e55b4c
[ "MIT" ]
null
null
null
athp_stock/models/stock_request_type.py
QuanTranDoanAnh/odoo-athp-addons
8a6ce58378b37e96d022ded8d912bb8b88e55b4c
[ "MIT" ]
null
null
null
from odoo import models, fields, api class StockRequestType(models.Model): _name = "athp.stock.request.type" _description = "The request type determines the document number" _order = 'sequence, id' name = fields.Char('Request Types Name', required=True, translate=True) color = fields.Integ...
73.695652
268
0.713864
b5863a0525e9311e39e29d1905d0925ad10a35d7
14,933
py
Python
ansible/library/interface_facts.py
jleveque/sonic-mgmt
d74770a8e2fa9d7decc02064f3340570da1dfe3a
[ "Apache-2.0" ]
1
2021-09-24T08:40:57.000Z
2021-09-24T08:40:57.000Z
ansible/library/interface_facts.py
jleveque/sonic-mgmt
d74770a8e2fa9d7decc02064f3340570da1dfe3a
[ "Apache-2.0" ]
4
2019-07-26T08:42:01.000Z
2020-12-16T08:34:52.000Z
ansible/library/interface_facts.py
jleveque/sonic-mgmt
d74770a8e2fa9d7decc02064f3340570da1dfe3a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import sys import stat import array import errno import fcntl import fnmatch import platform import re import signal import datetime import getpass import pwd import ConfigParser import StringIO import json from ansible.module_utils.basic import * from collections import defaultdict try: ...
41.829132
129
0.549186
d7d3f8ed477c778eb5665233b902f15b4d93b44a
2,233
py
Python
algorith/arrays/parenth/max_valid_parenth.py
ryu577/algorithms
b42301c3279af1d225ea85e951ef0164c1f0ab8f
[ "MIT" ]
null
null
null
algorith/arrays/parenth/max_valid_parenth.py
ryu577/algorithms
b42301c3279af1d225ea85e951ef0164c1f0ab8f
[ "MIT" ]
null
null
null
algorith/arrays/parenth/max_valid_parenth.py
ryu577/algorithms
b42301c3279af1d225ea85e951ef0164c1f0ab8f
[ "MIT" ]
null
null
null
import numpy as np ############################################ class FailedAttempts(): ##Failed attempts based on max water. @staticmethod def collect_water(a): i=0;j=len(a)-1 min_ix=len(a)-1; max_ix=0 max_i=a[i]; max_j=a[j] min_max = min(a[i],a[j]) while j>i: ...
26.903614
52
0.497089
c45e120047a254b3b99ee9fe28e18cf4340c0ece
10,681
py
Python
config/settings/base.py
underchemist/qc-timelimit-duel-draft
7c919d65d5b8a3e34d57da13d80e3d47c5222b3a
[ "MIT" ]
null
null
null
config/settings/base.py
underchemist/qc-timelimit-duel-draft
7c919d65d5b8a3e34d57da13d80e3d47c5222b3a
[ "MIT" ]
null
null
null
config/settings/base.py
underchemist/qc-timelimit-duel-draft
7c919d65d5b8a3e34d57da13d80e3d47c5222b3a
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = ( environ.Path(__file__) - 3 ) # (qctldd/config/settings/base.py - 3 = qctldd/) APPS_DIR = ROOT_DIR.path("qctldd") env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False) if READ_DOT_ENV_FILE...
40.612167
93
0.625784
845d49f58d5c5a36e9a3f386ee79dea3f103ffac
1,419
py
Python
grailkit/tests/test_osc_server.py
oleksiilytvyn/grailkit
7b18eb7126a4716d3f462238b46bc93b95245387
[ "MIT" ]
1
2020-02-10T14:46:43.000Z
2020-02-10T14:46:43.000Z
grailkit/tests/test_osc_server.py
oleksiilytvyn/grailkit
7b18eb7126a4716d3f462238b46bc93b95245387
[ "MIT" ]
null
null
null
grailkit/tests/test_osc_server.py
oleksiilytvyn/grailkit
7b18eb7126a4716d3f462238b46bc93b95245387
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ Tests for OSCServer class. :copyright: (c) 2017-2020 by Oleksii Lytvyn (http://alexlitvin.name). :license: MIT, see LICENSE for more details. """ import unittest from threading import Timer from grailkit import osc class TestServer(osc.OSCServer): def __init__(self, *args, **kwargs...
20.867647
85
0.615927
847160dd2172d2079bed2db0ad7be46ba79bc774
9,589
py
Python
brawlbracket/db_wrapper.py
TheLastBanana/BrawlBracket
1cad26b6499352b1b282388f4f76bfb4b2b6b4fe
[ "BSD-3-Clause" ]
null
null
null
brawlbracket/db_wrapper.py
TheLastBanana/BrawlBracket
1cad26b6499352b1b282388f4f76bfb4b2b6b4fe
[ "BSD-3-Clause" ]
null
null
null
brawlbracket/db_wrapper.py
TheLastBanana/BrawlBracket
1cad26b6499352b1b282388f4f76bfb4b2b6b4fe
[ "BSD-3-Clause" ]
null
null
null
from brawlbracket.util import KeySingleton #import logger import sqlite3 import os import uuid import json class DBWrapper(metaclass=KeySingleton): """ Class to wrap an SQLite db. This class only defines useful methods for interacting with the database. Ways to use these methods must be defined e...
32.177852
97
0.520179
f49ee1b1f8dd1d7d3c5c68c38b384e0544259b30
1,856
py
Python
cohesity_management_sdk/models/isilon_nfs_mount_point.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2021-01-07T20:36:22.000Z
2021-01-07T20:36:22.000Z
cohesity_management_sdk/models/isilon_nfs_mount_point.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/isilon_nfs_mount_point.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class IsilonNfsMountPoint(object): """Implementation of the 'IsilonNfsMountPoint' model. Specifies NFS Mount Point exposed by Isilon Protection Source. Attributes: access_zone_name (string): Specifies the Access Zone name. descripti...
28.121212
81
0.608836
bee153af226a557cfa60eda1f35d3b328dc74fc9
1,503
py
Python
Exercises/5.online_shop.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
Exercises/5.online_shop.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
Exercises/5.online_shop.py
GiorgosXonikis/Python-Sample-Code
8d31444171138995f740128716e45b29f5e1f7a1
[ "MIT" ]
null
null
null
# 5.Online Shop # Assume you have an online shop, and you have a list of orders. # You don’t like that people order in small quantities, which is why you # would like to add an additional CHF 10 to the total price, for all orders # that are below CHF 100 in total. # Write a short Python function compute_totals that r...
26.368421
88
0.624085
06d947d3597b09cdc93de8f94d217c533c707e73
17,217
py
Python
python/mspasspy/algorithms/window.py
seisman/mspass
11bd292a778a2a0d8470734239a7347fe4a1c0a7
[ "BSD-3-Clause" ]
1
2021-10-18T10:02:13.000Z
2021-10-18T10:02:13.000Z
python/mspasspy/algorithms/window.py
seisman/mspass
11bd292a778a2a0d8470734239a7347fe4a1c0a7
[ "BSD-3-Clause" ]
null
null
null
python/mspasspy/algorithms/window.py
seisman/mspass
11bd292a778a2a0d8470734239a7347fe4a1c0a7
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from mspasspy.ccore.utility import MsPASSError, AtomicType, ErrorSeverity, ProcessingStatus from mspasspy.ccore.seismic import Seismogram, TimeSeries, TimeSeriesEnsemble, SeismogramEnsemble, TimeWindow from mspasspy.ccore.algorithms.basic import _WindowData, _WindowData3C from mspasspy.ccore.algorit...
53.303406
128
0.639775
18ab657b018c8b878cce0f33631732c09f66d3a7
56,478
py
Python
python/ccxt/bitstamp.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
1
2020-12-23T22:40:29.000Z
2020-12-23T22:40:29.000Z
python/ccxt/bitstamp.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
null
null
null
python/ccxt/bitstamp.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange # ----------------------------------------------------------------------------- try: basestri...
38.160811
164
0.454106
a8694454ef205d0e5de791da8063ad4a2be8f3da
18,902
py
Python
tensorflow/python/tools/saved_model_aot_compile.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
57
2017-09-03T07:08:31.000Z
2022-02-28T04:33:42.000Z
tensorflow/python/tools/saved_model_aot_compile.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
58
2021-11-22T05:41:28.000Z
2022-01-19T01:33:40.000Z
tensorflow/python/tools/saved_model_aot_compile.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.418699
90
0.704423
c531d5f0670008f6c40880c0219bdd7ac81d8247
313
py
Python
InputWindow.py
Seifar/Liga-Database
55a134111b5bcfe4bbd124791e723e1216576931
[ "MIT" ]
null
null
null
InputWindow.py
Seifar/Liga-Database
55a134111b5bcfe4bbd124791e723e1216576931
[ "MIT" ]
null
null
null
InputWindow.py
Seifar/Liga-Database
55a134111b5bcfe4bbd124791e723e1216576931
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.uic import * class InputWindow: def __init__(self): self.app = QApplication([]) self.w = loadUi("input.ui") self.w.comboBox_schuetze1.addItem("Test") def run(self): self.w.show() self.app.exec()
20.866667
49
0.619808
d999303905b0ea47a1d7b1eb1da0b1998e38be79
118
py
Python
django_sandbox/apps/multi_keys_filter/urls.py
hotmit/DjangoSandbox
25f6f1802edc7a35dee9e6829b61583c10e621d0
[ "MIT" ]
null
null
null
django_sandbox/apps/multi_keys_filter/urls.py
hotmit/DjangoSandbox
25f6f1802edc7a35dee9e6829b61583c10e621d0
[ "MIT" ]
null
null
null
django_sandbox/apps/multi_keys_filter/urls.py
hotmit/DjangoSandbox
25f6f1802edc7a35dee9e6829b61583c10e621d0
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.search, name='search'), ]
14.75
44
0.661017
eb50548138c891f72c1a6e796c37e08212e64062
2,571
py
Python
akshi/gender/Classifier.py
subramgo/Akshi
6368ee4a89e57a8f7f00b4e8c7517d5e5ec66009
[ "Apache-2.0" ]
null
null
null
akshi/gender/Classifier.py
subramgo/Akshi
6368ee4a89e57a8f7f00b4e8c7517d5e5ec66009
[ "Apache-2.0" ]
9
2018-05-08T16:35:27.000Z
2018-08-15T16:33:59.000Z
akshi/gender/Classifier.py
subramgo/Akshi
6368ee4a89e57a8f7f00b4e8c7517d5e5ec66009
[ "Apache-2.0" ]
null
null
null
from keras.models import load_model import os import cv2 import numpy as np class GenderClassifier(): gender_filter = {0:'male',1:'female'} def __init__(self): self.x_test = None self.preprocessed = None self.y_test = None self.batch_size = 1 self.model ...
30.247059
104
0.595488
a6375c3b0784f53262d64f8deeaafb7dd3586da7
2,171
py
Python
openzwavemqtt/models/node_instance.py
firstof9/python-openzwave-mqtt
25f9f90ba586e33fee7b7a444743966371268787
[ "Apache-2.0" ]
63
2019-11-06T19:30:45.000Z
2022-02-04T22:19:07.000Z
openzwavemqtt/models/node_instance.py
firstof9/python-openzwave-mqtt
25f9f90ba586e33fee7b7a444743966371268787
[ "Apache-2.0" ]
66
2021-01-18T06:52:17.000Z
2022-03-28T08:04:22.000Z
openzwavemqtt/models/node_instance.py
firstof9/python-openzwave-mqtt
25f9f90ba586e33fee7b7a444743966371268787
[ "Apache-2.0" ]
12
2020-01-03T13:35:06.000Z
2020-10-10T20:50:20.000Z
"""Model for the Node instance level.""" from typing import Optional from ..base import ItemCollection from ..const import ( EVENT_NODE_INSTANCE_ADDED, EVENT_NODE_INSTANCE_CHANGED, EVENT_NODE_INSTANCE_REMOVED, CommandClass, ValueIndex, ) from .command_class import OZWCommandClass from .node_child_b...
33.921875
78
0.70152
b860cb344e14ec9a82232970a099df630d751d3c
7,052
py
Python
test/functional/wallet_dump.py
bbergaoui/bastoji-coin
1752e38216f32c6b1559bc246ec885097dae88c4
[ "MIT" ]
null
null
null
test/functional/wallet_dump.py
bbergaoui/bastoji-coin
1752e38216f32c6b1559bc246ec885097dae88c4
[ "MIT" ]
null
null
null
test/functional/wallet_dump.py
bbergaoui/bastoji-coin
1752e38216f32c6b1559bc246ec885097dae88c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the dumpwallet RPC.""" import os from test_framework.test_framework import BastojiTestFramework ...
44.632911
128
0.590187
97f2ec565f90da131844c6ba667843e88a6841e3
2,599
py
Python
mars/scheduler/operands/core.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/scheduler/operands/core.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
mars/scheduler/operands/core.py
ChenQuan/mars
46fc9747e99210cebfabfc2d85bcc8272440d1a3
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2019 Alibaba Group Holding Ltd. # # 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 a...
29.202247
106
0.695652
39c475e3c98df4629e7b452405c0b07e6f01b72d
8,305
py
Python
symbol_tables/SeparateChainingHashST.py
okebinda/algorithms.python
b62d69a09fac4ca4e4b02ba99e4aae986e766e89
[ "MIT" ]
null
null
null
symbol_tables/SeparateChainingHashST.py
okebinda/algorithms.python
b62d69a09fac4ca4e4b02ba99e4aae986e766e89
[ "MIT" ]
null
null
null
symbol_tables/SeparateChainingHashST.py
okebinda/algorithms.python
b62d69a09fac4ca4e4b02ba99e4aae986e766e89
[ "MIT" ]
null
null
null
"""Symbol Table: Separate Chaining Hash""" from collections.abc import MutableMapping from .SequentialSearchST import SequentialSearchST class SeparateChainingHashST(MutableMapping): """A symbol table with key:value pairs implemented using a hash function on the keys to store items, maintaining fast lookup ...
30.988806
79
0.544973
c6e2e309653edce83a0a67435a88f1ce37b7cbd8
3,778
py
Python
cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/pdftex.py
nawien-sharma/keyczar
c55563bbd70f4b6fefc7444e296aab9894475f9a
[ "Apache-2.0" ]
30
2015-01-29T14:06:05.000Z
2022-01-10T07:47:29.000Z
cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/pdftex.py
nawien-sharma/keyczar
c55563bbd70f4b6fefc7444e296aab9894475f9a
[ "Apache-2.0" ]
1
2017-02-20T20:57:48.000Z
2018-12-19T23:44:38.000Z
cpp/src/tools/scons/scons-local-1.2.0.d20090223/SCons/Tool/pdftex.py
nawien-sharma/keyczar
c55563bbd70f4b6fefc7444e296aab9894475f9a
[ "Apache-2.0" ]
15
2015-04-23T02:38:36.000Z
2021-03-01T20:09:39.000Z
"""SCons.Tool.pdftex Tool-specific initialization for pdftex. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation # # P...
35.641509
89
0.723399
850c7860150ec242a6ef572a9235a6beb7692188
16,655
py
Python
test/functional/rpc_decodescript.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
5
2019-03-18T02:14:20.000Z
2019-03-21T17:08:27.000Z
test/functional/rpc_decodescript.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
null
null
null
test/functional/rpc_decodescript.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The dogxcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test decoding scripts via decodescript RPC command.""" from test_framework.messages import CTransacti...
70.87234
761
0.758691
4420180430dd671128f3f049d28ea67ba56eb0b3
8,800
py
Python
sdk/python/pulumi_azure_native/operationalinsights/v20201001/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/operationalinsights/v20201001/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/operationalinsights/v20201001/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.606838
356
0.658068
00f2525c1d064c15aa357483c7361330c5467a4c
589
py
Python
sidecar/setup.py
laurameng/Cook
e8e752fd223f4d021d06eddb189474e4192ae567
[ "Apache-2.0" ]
null
null
null
sidecar/setup.py
laurameng/Cook
e8e752fd223f4d021d06eddb189474e4192ae567
[ "Apache-2.0" ]
null
null
null
sidecar/setup.py
laurameng/Cook
e8e752fd223f4d021d06eddb189474e4192ae567
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup from cook.sidecar import version requirements = [ 'flask~=1.1.0', 'gunicorn~=20.1.0', 'requests~=2.26.0', ] test_requirements = [ ] setup( name='cook_sidecar', version=version.VERSION, description="Two Sigma's Cook Sidecar", long_descr...
22.653846
93
0.706282
28767b74f0188d57f22afe8c8d5b2c18c3ca8697
19,786
py
Python
toontown/safezone/DistributedGolfKart.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
1
2021-02-25T06:22:49.000Z
2021-02-25T06:22:49.000Z
toontown/safezone/DistributedGolfKart.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
null
null
null
toontown/safezone/DistributedGolfKart.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
2
2020-11-08T03:38:35.000Z
2021-09-02T07:03:47.000Z
from pandac.PandaModules import * from direct.distributed.ClockDelta import * from direct.task.Task import Task from direct.interval.IntervalGlobal import * from TrolleyConstants import * from toontown.golf import GolfGlobals from toontown.toonbase import ToontownGlobals from direct.distributed import DistributedObject...
39.493014
476
0.595926
65bdf97bfd15d6ebdfcc5c9bbb8ea9f4c51cb3a0
934
py
Python
continual/__init__.py
LukasHedegaard/continual-inference
99a01f1360c56e2578231edd8fecb0dbadbf44d0
[ "Apache-2.0" ]
7
2021-09-22T14:42:59.000Z
2022-03-28T20:43:25.000Z
continual/__init__.py
LukasHedegaard/continual-inference
99a01f1360c56e2578231edd8fecb0dbadbf44d0
[ "Apache-2.0" ]
29
2021-08-11T06:58:21.000Z
2022-03-29T07:19:37.000Z
continual/__init__.py
LukasHedegaard/continual-inference
99a01f1360c56e2578231edd8fecb0dbadbf44d0
[ "Apache-2.0" ]
2
2021-10-03T20:03:09.000Z
2021-12-03T17:31:48.000Z
from .closure import Add, Constant, Lambda, Multiply, One, Unity, Zero # noqa: F401 from .container import ( # noqa: F401 Broadcast, BroadcastReduce, Conditional, Parallel, ParallelDispatch, Reduce, Residual, Sequential, ) from .conv import Conv1d, Conv2d, Conv3d # noqa: F401 from .co...
29.1875
85
0.718415
2b17e8d1b895938dc446b7beb36b70f3fcf16af5
4,476
py
Python
core/dummy.py
owad/bugman
b5fc47b269f7bd0cf702379c6d91ba5e809f65fa
[ "Apache-2.0" ]
null
null
null
core/dummy.py
owad/bugman
b5fc47b269f7bd0cf702379c6d91ba5e809f65fa
[ "Apache-2.0" ]
null
null
null
core/dummy.py
owad/bugman
b5fc47b269f7bd0cf702379c6d91ba5e809f65fa
[ "Apache-2.0" ]
null
null
null
# dummy data USERS = [ { "username": "user1", "fullname": "User 1 with a really long name", "photo_url": "//example.com/photo.jpg", "location": "London", "role": "AR", "normname": "User One", "start_date": "2010-05-20" }, { "username": "user2",...
23.808511
56
0.422475
3240b0f99225700e551dd17d9c91cccb81eb9ff5
1,975
py
Python
django/contrib/auth/management/commands/changepassword.py
webjunkie/django
5dbca13f3baa2e1bafd77e84a80ad6d8a074712e
[ "BSD-3-Clause" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.5/django/contrib/auth/management/commands/changepassword.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.5/django/contrib/auth/management/commands/changepassword.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
import getpass from optparse import make_option from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand, CommandError from django.db import DEFAULT_DB_ALIAS class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--database', action='s...
32.377049
103
0.603038
3a8e01c5334697df6157df0c803b2a49e24f6358
443
py
Python
mirari/TCS/migrations/0021_orderservice_serial.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/TCS/migrations/0021_orderservice_serial.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/TCS/migrations/0021_orderservice_serial.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2019-02-27 17:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('TCS', '0020_modelo_description'), ] operations = [ migrations.AddField( model_name='orderservice', name='serial', ...
23.315789
107
0.61851
93112c2529a2394846d532187eaef06dd7c75d32
16,292
py
Python
scripts/klf14_b6ntac_exp_0091_cnn_contour_after_dmap.py
rcasero/cytometer
d76e58fa37f83f6a666d556ba061530d787fcfb2
[ "Apache-2.0" ]
1
2021-06-09T10:18:26.000Z
2021-06-09T10:18:26.000Z
scripts/klf14_b6ntac_exp_0091_cnn_contour_after_dmap.py
rcasero/cytometer
d76e58fa37f83f6a666d556ba061530d787fcfb2
[ "Apache-2.0" ]
null
null
null
scripts/klf14_b6ntac_exp_0091_cnn_contour_after_dmap.py
rcasero/cytometer
d76e58fa37f83f6a666d556ba061530d787fcfb2
[ "Apache-2.0" ]
null
null
null
""" Contour segmentation of dmaps for 10-fold cross validation using binary crossentropy (only KLF14). Like 0070, but with: * 10 folds instead of 11, generated by exp 0079. * Using dmap model generated by exp 0081, instead 0056. Like 0083, but with: * 500 epochs instead of 100. Like 0087, but with: * B...
41.561224
137
0.667199
ca6a20be5ba56e1c8226e45ac0e6871ac1b97e0c
5,519
py
Python
mysite/settings.py
samsong8610/page-translator
e7e4e62f4f36ff17434611968599139c384007e8
[ "Apache-2.0" ]
null
null
null
mysite/settings.py
samsong8610/page-translator
e7e4e62f4f36ff17434611968599139c384007e8
[ "Apache-2.0" ]
null
null
null
mysite/settings.py
samsong8610/page-translator
e7e4e62f4f36ff17434611968599139c384007e8
[ "Apache-2.0" ]
null
null
null
# Django settings for mysite project. import os # for os.environ BASE_DIR = os.path.join(os.path.dirname(__file__), '..') DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.', # Add...
34.49375
101
0.688531
ef42dc4152ddf16186252bbc3fd5a54f7ac3f231
18,618
py
Python
src/metrics/scoreboard.py
GrahamDumpleton/mod_wsgi-metrics
ec715eb593255229f9f45f3f323edbb845c691d8
[ "Apache-2.0" ]
null
null
null
src/metrics/scoreboard.py
GrahamDumpleton/mod_wsgi-metrics
ec715eb593255229f9f45f3f323edbb845c691d8
[ "Apache-2.0" ]
1
2015-01-14T14:29:46.000Z
2015-06-19T01:27:44.000Z
src/metrics/scoreboard.py
GrahamDumpleton/mod_wsgi-metrics
ec715eb593255229f9f45f3f323edbb845c691d8
[ "Apache-2.0" ]
null
null
null
import copy import math import psutil from collections import namedtuple from mod_wsgi import server_metrics as raw_server_metrics SERVER_READY = '_' SERVER_STARTING = 'S' SERVER_BUSY_READ = 'R' SERVER_BUSY_WRITE = 'W' SERVER_BUST_KEEPALIVE = 'K' SERVER_BUSY_LOG = 'L' SERVER_BUSY_DNS = 'D' SERVER_CLOSING = 'C' SERVE...
32.548951
76
0.597916
4eb8c3f6da12f5c2014ff3d089833d302f0b3d43
92,266
py
Python
moonfly/config/qutebrowser/config.py
alexanderepping/dotfiles-1
703179b052c7edede7033ba5baa3c94eb387dbfa
[ "MIT" ]
583
2017-12-22T17:02:50.000Z
2022-03-22T00:41:26.000Z
moonfly/config/qutebrowser/config.py
alexanderepping/dotfiles-1
703179b052c7edede7033ba5baa3c94eb387dbfa
[ "MIT" ]
13
2020-09-11T16:00:06.000Z
2022-01-08T22:16:24.000Z
moonfly/config/qutebrowser/config.py
alexanderepping/dotfiles-1
703179b052c7edede7033ba5baa3c94eb387dbfa
[ "MIT" ]
55
2017-12-23T20:34:57.000Z
2022-03-18T08:08:49.000Z
## Autogenerated config.py ## ## NOTE: config.py is intended for advanced users who are comfortable ## with manually migrating the config file on qutebrowser upgrades. If ## you prefer, you can also configure qutebrowser using the ## :set/:bind/:config-* commands without having to write a config.py ## file. ## ## Docum...
38.881584
899
0.700778
085c9f94d3d3c792526fe62cce8262b8913f9d2b
891
py
Python
python/HackerRank/Easy/apple-and-orange.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/HackerRank/Easy/apple-and-orange.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/HackerRank/Easy/apple-and-orange.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" 출처: https://www.hackerrank.com/challenges/apple-and-orange/problem """ def countApplesAndOranges(s, t, a, b, apples, oranges): def houseFruit(p): result = 0 for point in p: if s <= point <= t: # 집 사이에 과일이 떨어졌는가? result += 1 return result apple_point = ...
25.457143
68
0.565657
0f488e3350f233bb1876a94830c031e71e70acfe
40,205
py
Python
src/sentry/interfaces/exception.py
ygnoh/sentry
e34653cac10b63e3c5c732a5c52eaa5bf3484d5b
[ "BSD-3-Clause" ]
null
null
null
src/sentry/interfaces/exception.py
ygnoh/sentry
e34653cac10b63e3c5c732a5c52eaa5bf3484d5b
[ "BSD-3-Clause" ]
null
null
null
src/sentry/interfaces/exception.py
ygnoh/sentry
e34653cac10b63e3c5c732a5c52eaa5bf3484d5b
[ "BSD-3-Clause" ]
null
null
null
""" sentry.interfaces.exception ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import __all__ = ('Exception', 'Mechanism', 'normalize_mechanism_meta', 'upgrade_legacy_mechanism') ...
35.391725
99
0.563711
51275b7d3154f274ede35615f28df16c1790316b
222
py
Python
app/user/urls.py
jonathanpwolfe/recipe-app-api
afdc419ed2d44b660234467bb0f8675305f9b560
[ "MIT" ]
null
null
null
app/user/urls.py
jonathanpwolfe/recipe-app-api
afdc419ed2d44b660234467bb0f8675305f9b560
[ "MIT" ]
null
null
null
app/user/urls.py
jonathanpwolfe/recipe-app-api
afdc419ed2d44b660234467bb0f8675305f9b560
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'user' urlpatterns = [ path('create/', views.CreateUserView.as_view(), name='create'), path('token/', views.CreateTokenView.as_view(), name='token') ]
20.181818
67
0.689189
7c98c68c54df199dd0862c287cbf18cbc48372dd
8,452
py
Python
frontend/views.py
canance/signpi-server
b8a4e10248c90d0b7f8ba8061eefcdb7c0172efd
[ "Apache-2.0" ]
null
null
null
frontend/views.py
canance/signpi-server
b8a4e10248c90d0b7f8ba8061eefcdb7c0172efd
[ "Apache-2.0" ]
null
null
null
frontend/views.py
canance/signpi-server
b8a4e10248c90d0b7f8ba8061eefcdb7c0172efd
[ "Apache-2.0" ]
null
null
null
# Author: Cory Nance <canance@coastal.edu> # Revision: 6 February 2016 # # Copyright 2016 Coastal Carolina University # # 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.apach...
28.457912
95
0.638074
859813b0e33e132046f39d5f8fe3a0aab553da93
159
py
Python
server/config.py
sabzo/PiDroid
8f80f751424335cee89ff6455255e65c06f1ea10
[ "Apache-2.0" ]
16
2017-01-04T20:50:39.000Z
2021-09-15T17:23:34.000Z
server/config.py
sabzo/PiDroid
8f80f751424335cee89ff6455255e65c06f1ea10
[ "Apache-2.0" ]
null
null
null
server/config.py
sabzo/PiDroid
8f80f751424335cee89ff6455255e65c06f1ea10
[ "Apache-2.0" ]
8
2016-02-02T21:27:37.000Z
2021-04-21T11:17:04.000Z
# Configuration settings DATABASE = '/tmp/pidroid.db' DEBUG = True SECRET_KEY = 'devkey' # must be hard to guess/crack USERNAME = 'admin' PASSWORD = 'default'
22.714286
51
0.72956
f4efd0e55bab0c43e89c261a1c0de74c232d3fcd
4,245
py
Python
lib/SmallRNA/absolute_chromosome_count.py
shengqh/ngsperl
f81d5bf30171950583bb1ab656f51eabc1e9caf6
[ "Apache-2.0" ]
6
2016-03-25T17:05:39.000Z
2019-05-13T07:03:55.000Z
lib/SmallRNA/absolute_chromosome_count.py
shengqh/ngsperl
f81d5bf30171950583bb1ab656f51eabc1e9caf6
[ "Apache-2.0" ]
null
null
null
lib/SmallRNA/absolute_chromosome_count.py
shengqh/ngsperl
f81d5bf30171950583bb1ab656f51eabc1e9caf6
[ "Apache-2.0" ]
9
2015-04-02T16:41:57.000Z
2022-02-22T07:25:33.000Z
import logging import argparse import pysam import pickle from DupCountUtils import readDupCountQueries DEBUG=False if DEBUG: inputFile="/scratch/vickers_lab/projects/20210817_smallRNA_contamination/3626_RA/bowtie1_contamination_all_01_align/result/HDL_36_JPN.bam" countFile="/scratch/vickers_lab/project...
36.282051
162
0.673498
aaa11f38466812fb6ec55d3e6dcc75ea2d943dcd
3,984
py
Python
storage.py
MoMe36/PPO
2afeee228122f146e678bb91b55dbc967801bac7
[ "MIT" ]
null
null
null
storage.py
MoMe36/PPO
2afeee228122f146e678bb91b55dbc967801bac7
[ "MIT" ]
null
null
null
storage.py
MoMe36/PPO
2afeee228122f146e678bb91b55dbc967801bac7
[ "MIT" ]
null
null
null
import torch from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler def _flatten_helper(T, N, _tensor): return _tensor.view(T * N, *_tensor.size()[2:]) class RolloutStorage(object): def __init__(self, num_steps, num_processes, obs_shape, action_space): self.obs = torch.zeros(num_step...
45.793103
127
0.632781
593b60ae44a84b8934eee4fc4e8ab40af5cfca56
13,018
py
Python
federatedml/ftl/data_util/common_data_util.py
chenj133/FATE
7065fc73ab83f83e699efec69ff8efb499159ef4
[ "Apache-2.0" ]
3
2019-09-24T01:49:15.000Z
2019-09-24T01:50:07.000Z
federatedml/ftl/data_util/common_data_util.py
chenj133/FATE
7065fc73ab83f83e699efec69ff8efb499159ef4
[ "Apache-2.0" ]
14
2019-11-13T11:25:36.000Z
2021-12-14T21:31:59.000Z
federatedml/ftl/data_util/common_data_util.py
chenj133/FATE
7065fc73ab83f83e699efec69ff8efb499159ef4
[ "Apache-2.0" ]
2
2019-09-05T02:32:05.000Z
2019-09-17T10:30:48.000Z
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.464986
119
0.670687
935b58e29b979ad7458b1d5d9798582dfa2b7f5f
1,229
py
Python
step0/__init__.py
lordlinus/parallel-file-processing-serverless
751830c3edfafd935e14fdc2ffbbe28dcb704170
[ "MIT" ]
null
null
null
step0/__init__.py
lordlinus/parallel-file-processing-serverless
751830c3edfafd935e14fdc2ffbbe28dcb704170
[ "MIT" ]
null
null
null
step0/__init__.py
lordlinus/parallel-file-processing-serverless
751830c3edfafd935e14fdc2ffbbe28dcb704170
[ "MIT" ]
null
null
null
# This function is not intended to be invoked directly. Instead it will be # triggered by an orchestrator function. # import logging from ..common import BlobStorageClient import datetime import os from azure.storage.blob import BlobServiceClient def main(rawDataPath: dict) -> list: utc_timestamp = ...
34.138889
94
0.682669
bdd5fe15edc7946674a12624ef75916e600407e5
2,872
py
Python
bika/lims/browser/supplyorderfolder.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/browser/supplyorderfolder.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/browser/supplyorderfolder.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
from bika.lims import bikaMessageFactory as _ from bika.lims.browser.bika_listing import BikaListingView from bika.lims.utils import t from operator import itemgetter from plone.app.layout.globals.interfaces import IViewView from zope.interface import implements class SupplyOrderFolderView(BikaListingView): impl...
37.298701
89
0.529248
e5eab4c4248a7e3c40f443afc3e25aa9143f9be8
2,361
py
Python
tests/conftest.py
poxip/drf-jwt-devices
5b4606403787c22bb02e13129d9daa399bbc98fa
[ "MIT" ]
13
2017-08-06T23:20:26.000Z
2019-07-15T14:31:17.000Z
tests/conftest.py
poxip/drf-jwt-devices
5b4606403787c22bb02e13129d9daa399bbc98fa
[ "MIT" ]
5
2017-08-03T11:35:52.000Z
2018-10-15T16:31:49.000Z
tests/conftest.py
poxip/drf-jwt-devices
5b4606403787c22bb02e13129d9daa399bbc98fa
[ "MIT" ]
2
2021-06-15T10:55:43.000Z
2021-07-31T08:32:46.000Z
def pytest_configure(): import django from django.conf import settings from django.core.management import call_command settings.configure( DEBUG_PROPAGATE_EXCEPTIONS=True, DATABASES={ "default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"} }, ...
31.065789
83
0.593816
e9e7d512a00d6bfff964d2ac43281250ee33eb63
5,878
py
Python
util/bin/niak_cmd.py
HanadS/niak
25bfe845ffd7939c51a8e9095404e80cd4cb230b
[ "MIT" ]
26
2015-03-03T19:19:19.000Z
2020-12-01T09:28:17.000Z
util/bin/niak_cmd.py
HanadS/niak
25bfe845ffd7939c51a8e9095404e80cd4cb230b
[ "MIT" ]
350
2015-02-18T05:28:57.000Z
2022-02-14T15:49:46.000Z
util/bin/niak_cmd.py
HanadS/niak
25bfe845ffd7939c51a8e9095404e80cd4cb230b
[ "MIT" ]
24
2015-07-06T17:34:37.000Z
2020-08-17T18:09:52.000Z
#!/usr/bin/env python2 """ This module parse arbitrary NIAK opt arguments to run a pipeline with the needed inputs """ __author__ = 'poquirion' import argparse import os import re import sys import logging sys.path.append("{}/..".format(os.path.dirname(os.path.realpath(__file__)))) import pyniak.load_pipeline OPTIO...
50.672414
841
0.645117
86856b130d637b786c1858aadf8693c81175c18d
3,110
py
Python
caffe2/python/mkl/mkl_sbn_op_test.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
caffe2/python/mkl/mkl_sbn_op_test.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
caffe2/python/mkl/mkl_sbn_op_test.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import unittest import hypothesis.strategies as st from hypothesis import given import numpy as np from caffe2.python import core, workspace import caffe2.python.hypothesis_test_util as hu import caffe2.python.mkl_test_util as mu @unittest.skipIf(not workspace.C.has_mkldnn, "Skipping as we do no...
37.46988
77
0.588424
4bd3eb95e235d226095e4db8a1c9b6edecad9a98
16,467
py
Python
ceed/tests/test_shapes.py
matham/Ceed
b81a14a6b8211e5f4582418ddea34c951ab2667e
[ "MIT" ]
1
2020-03-02T22:26:44.000Z
2020-03-02T22:26:44.000Z
ceed/tests/test_shapes.py
cplab/ceed
7bae74361a67a6ff3c447b63adb4c7c57839b339
[ "MIT" ]
null
null
null
ceed/tests/test_shapes.py
cplab/ceed
7bae74361a67a6ff3c447b63adb4c7c57839b339
[ "MIT" ]
2
2020-01-13T19:42:16.000Z
2020-01-27T14:58:09.000Z
import pytest from copy import deepcopy import math from ceed.shape import CeedPaintCanvasBehavior, CeedShape, CeedShapeGroup from .test_app.examples.shapes import Shape, EllipseShapeP1, shape_classes, \ CircleShapeP1, assert_add_three_shapes, assert_add_three_groups from ceed.tests.common import add_prop_watch ...
35.565875
78
0.758669
c99280117d9408a90110736a1c5e501f8177b2b6
843
py
Python
medium/22.py
pisskidney/leetcode
08c19cbf3d7afc897908ea05db4ad11a5487f523
[ "MIT" ]
null
null
null
medium/22.py
pisskidney/leetcode
08c19cbf3d7afc897908ea05db4ad11a5487f523
[ "MIT" ]
null
null
null
medium/22.py
pisskidney/leetcode
08c19cbf3d7afc897908ea05db4ad11a5487f523
[ "MIT" ]
null
null
null
#!/usr/bin/python from typing import List """ 22. Generate Parentheses https://leetcode.com/problems/generate-parentheses/ """ class Solution: def generateParenthesis(self, n: int) -> List[str]: res = [] def para(opened, closed, current): if len(current) == 2 * n: r...
21.075
59
0.508897
a144b9fc460a711aa4d27b34e98348c5c0ef6374
14,016
py
Python
app/backend/src/couchers/servicers/pages.py
anand-prem/couchers
ee4e93aacc6331cc22bb496749ca79c2c6474976
[ "MIT" ]
null
null
null
app/backend/src/couchers/servicers/pages.py
anand-prem/couchers
ee4e93aacc6331cc22bb496749ca79c2c6474976
[ "MIT" ]
null
null
null
app/backend/src/couchers/servicers/pages.py
anand-prem/couchers
ee4e93aacc6331cc22bb496749ca79c2c6474976
[ "MIT" ]
null
null
null
import grpc from sqlalchemy.sql import func from couchers import errors from couchers.db import ( can_moderate_at, can_moderate_node, get_node_parents_recursively, get_parent_node_at_location, session_scope, ) from couchers.models import ( Cluster, ClusterRole, ClusterSubscription, ...
40.982456
117
0.631207
b854139023946d7664a99086bca1852b520a3481
516
py
Python
app/barometer/migrations/0003_barometer_device.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
app/barometer/migrations/0003_barometer_device.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
app/barometer/migrations/0003_barometer_device.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-06 17:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ('barometer', '0002_auto_20201206_1510'), ] operations = [ migrations.AddFi...
24.571429
110
0.629845
c9e520e8d3060b82e1cd8f43823e83a32ba6c755
4,174
py
Python
musicdl/modules/sources/qianqian.py
CharlesPikachu/musicdl
02003eaf48a2267a2b741661826f1139fca7cbe1
[ "MIT" ]
331
2020-10-17T01:37:44.000Z
2022-03-31T06:31:38.000Z
musicdl/modules/sources/qianqian.py
CharlesPikachu/musicdl
02003eaf48a2267a2b741661826f1139fca7cbe1
[ "MIT" ]
9
2020-10-16T15:22:19.000Z
2022-03-10T03:44:08.000Z
musicdl/modules/sources/qianqian.py
CharlesPikachu/musicdl
02003eaf48a2267a2b741661826f1139fca7cbe1
[ "MIT" ]
79
2020-10-28T20:10:46.000Z
2022-03-29T05:04:49.000Z
''' Function: 千千音乐下载: http://music.taihe.com/ Author: Charles 微信公众号: Charles的皮卡丘 ''' import time import hashlib import requests from .base import Base from ..utils.misc import * '''千千音乐下载类''' class qianqian(Base): def __init__(self, config, logger_handle, **kwargs): super(qianqian, self).__ini...
40.921569
138
0.526593
e5cfab46370d4bfe5468e0a376f438616c33020e
393
py
Python
django7h/wsgi.py
Xavries/django_social_app
1e6c224661ef562b7e34bbe76d767a24203c8f05
[ "Unlicense" ]
null
null
null
django7h/wsgi.py
Xavries/django_social_app
1e6c224661ef562b7e34bbe76d767a24203c8f05
[ "Unlicense" ]
null
null
null
django7h/wsgi.py
Xavries/django_social_app
1e6c224661ef562b7e34bbe76d767a24203c8f05
[ "Unlicense" ]
null
null
null
""" WSGI config for django7h project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
4d4220329ca678719489b9b4bd809977844577bb
48,773
py
Python
src/radical/pilot/utils/component.py
lsawade/radical.pilot
b430f5c53a7cfdeb124ef81a8c0272d4dbe4987e
[ "MIT" ]
null
null
null
src/radical/pilot/utils/component.py
lsawade/radical.pilot
b430f5c53a7cfdeb124ef81a8c0272d4dbe4987e
[ "MIT" ]
null
null
null
src/radical/pilot/utils/component.py
lsawade/radical.pilot
b430f5c53a7cfdeb124ef81a8c0272d4dbe4987e
[ "MIT" ]
null
null
null
# pylint: disable=unused-argument # W0613 Unused argument 'timeout' & 'input' # pylint: disable=redefined-builtin # W0622 Redefining built-in 'input' import os import sys import copy import time import threading as mt import radical.utils as ru from .. import constants as rpc from .. ...
37.546574
83
0.520718
fc1612214dd332551d4c8a6bbf11229d488f2937
6,720
py
Python
ssasse_platform/InferenceEngine/deviceDecisionTree.py
aashok3/ssass-e
77da9a4c1cef7006fe4a9c6a64f46a0eaade87ca
[ "BSD-3-Clause" ]
4
2021-02-16T17:27:37.000Z
2022-01-25T09:29:30.000Z
ssasse_platform/InferenceEngine/deviceDecisionTree.py
aashok3/ssass-e
77da9a4c1cef7006fe4a9c6a64f46a0eaade87ca
[ "BSD-3-Clause" ]
3
2021-05-05T16:38:54.000Z
2021-06-04T20:05:28.000Z
ssasse_platform/InferenceEngine/deviceDecisionTree.py
aashok3/ssass-e
77da9a4c1cef7006fe4a9c6a64f46a0eaade87ca
[ "BSD-3-Clause" ]
5
2021-04-16T21:50:57.000Z
2021-05-25T16:36:26.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright (2021) Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions #...
44.503311
109
0.678571
48fa4bdf262e9a3693b982f6a4bd23e9b387415a
3,859
py
Python
custom_components/irrigation_unlimited/service.py
bsmith76s/irrigation_unlimited
edbac4ffe8808a2021c40f12809e6b0c2fe79245
[ "MIT" ]
null
null
null
custom_components/irrigation_unlimited/service.py
bsmith76s/irrigation_unlimited
edbac4ffe8808a2021c40f12809e6b0c2fe79245
[ "MIT" ]
null
null
null
custom_components/irrigation_unlimited/service.py
bsmith76s/irrigation_unlimited
edbac4ffe8808a2021c40f12809e6b0c2fe79245
[ "MIT" ]
null
null
null
from typing import Optional from homeassistant.core import ServiceCall, callback from homeassistant.helpers import entity_platform from homeassistant.helpers.entity_component import EntityComponent from homeassistant.helpers import config_validation as cv from homeassistant.helpers.service import async_register_admin_s...
31.631148
84
0.731018
6907e8f0aa457106f2342bd61f0018a35cbbb89c
1,652
py
Python
openpype/tools/creator/model.py
jojoba106/OpenPype
c49f7e474a05ca597c2f673e5c9f68ecfb788a31
[ "MIT" ]
87
2021-05-07T08:40:46.000Z
2022-03-19T00:36:25.000Z
openpype/tools/creator/model.py
jojoba106/OpenPype
c49f7e474a05ca597c2f673e5c9f68ecfb788a31
[ "MIT" ]
1,019
2021-04-26T06:22:56.000Z
2022-03-31T16:30:43.000Z
openpype/tools/creator/model.py
jojoba106/OpenPype
c49f7e474a05ca597c2f673e5c9f68ecfb788a31
[ "MIT" ]
33
2021-04-29T12:35:54.000Z
2022-03-25T14:48:42.000Z
import uuid from Qt import QtGui, QtCore from avalon import api from . constants import ( FAMILY_ROLE, ITEM_ID_ROLE ) class CreatorsModel(QtGui.QStandardItemModel): def __init__(self, *args, **kwargs): super(CreatorsModel, self).__init__(*args, **kwargs) self._creators_by_id = {} d...
29.5
66
0.618644
462dfa76042cb7444404ec15c656a63636bdff8b
242
py
Python
Python/OTP_GEN.py
Kritikmahajan/open-source-contribution-for-beginners
f34180d543d9e9097644cb08a2560c2ba2049598
[ "MIT" ]
1
2022-01-10T16:56:18.000Z
2022-01-10T16:56:18.000Z
Python/OTP_GEN.py
Kritikmahajan/open-source-contribution-for-beginners
f34180d543d9e9097644cb08a2560c2ba2049598
[ "MIT" ]
null
null
null
Python/OTP_GEN.py
Kritikmahajan/open-source-contribution-for-beginners
f34180d543d9e9097644cb08a2560c2ba2049598
[ "MIT" ]
null
null
null
import random as r #function for otp generation def otpgen(): otp="" for i in range(5): otp+=str(r.randint(1,9)) print("Your One Time Password is ") print(otp) otpgen()
22
46
0.491736
71ba5f26b9c3464aed9dfa24af2e8b74c9654a18
1,531
py
Python
asyncdrive/utils/jwt.py
Fliqqr/asyncdrive
140dc587e16c0f88c559f6485cc35ed92578480b
[ "MIT" ]
null
null
null
asyncdrive/utils/jwt.py
Fliqqr/asyncdrive
140dc587e16c0f88c559f6485cc35ed92578480b
[ "MIT" ]
null
null
null
asyncdrive/utils/jwt.py
Fliqqr/asyncdrive
140dc587e16c0f88c559f6485cc35ed92578480b
[ "MIT" ]
null
null
null
import base64 import datetime import io import json from OpenSSL import crypto """ Basic implementation of JSON Web Token (JWT) as described in Google's documentation (see link below) https://developers.google.com/identity/protocols/oauth2/service-account#httprest You should not need to call this fu...
31.895833
104
0.661006
5e009ebd6bf08ddf20173854ac5969dabd6b9595
21,288
py
Python
tools/unittests/run_perf_test.py
maoweiwei1995/v8
1b51dca30d697a448f70fdf3e11c8491b122f4ee
[ "BSD-3-Clause" ]
1
2019-04-16T06:52:32.000Z
2019-04-16T06:52:32.000Z
tools/unittests/run_perf_test.py
maoweiwei1995/v8
1b51dca30d697a448f70fdf3e11c8491b122f4ee
[ "BSD-3-Clause" ]
null
null
null
tools/unittests/run_perf_test.py
maoweiwei1995/v8
1b51dca30d697a448f70fdf3e11c8491b122f4ee
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2014 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # for py2/py3 compatibility from __future__ import print_function from collections import namedtuple import coverage import json imp...
35.598662
79
0.570086
4774431a0b2ce57481dccaf28699fc2159ecedf9
2,082
py
Python
setup.py
meryusha/seeds_faster
a80cd144c2826cdee5dd929087005f57567ae367
[ "MIT" ]
1
2021-12-06T10:47:31.000Z
2021-12-06T10:47:31.000Z
setup.py
SilvioGiancola/seeds_faster
4c6a1f1fa71beff7c9d0722d134eb1291f57983e
[ "MIT" ]
null
null
null
setup.py
SilvioGiancola/seeds_faster
4c6a1f1fa71beff7c9d0722d134eb1291f57983e
[ "MIT" ]
1
2019-07-18T13:57:07.000Z
2019-07-18T13:57:07.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #!/usr/bin/env python import glob import os import torch from setuptools import find_packages from setuptools import setup from torch.utils.cpp_extension import CUDA_HOME from torch.utils.cpp_extension import CppExtension from torch.utils.cpp_ext...
29.742857
73
0.677233
4f1adaa05bf0ab23d5238149304041ddf43b5a07
1,379
py
Python
virtual/lib/python3.6/site-packages/isort/__init__.py
edithamadi/pitch_one
40c8d1c67c77e483b29bd326721dde7f4a20120d
[ "Unlicense" ]
229
2017-09-12T23:25:30.000Z
2020-10-23T17:01:57.000Z
virtual/lib/python3.6/site-packages/isort/__init__.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
228
2021-01-02T19:55:22.000Z
2022-03-31T09:30:10.000Z
virtual/lib/python3.6/site-packages/isort/__init__.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
46
2017-09-14T01:09:45.000Z
2020-10-23T17:02:30.000Z
"""__init__.py. Defines the isort module to include the SortImports utility class as well as any defined settings. Copyright (C) 2013 Timothy Edmund Crosley 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 t...
47.551724
112
0.796954
d56049588fb14c5470eebad446ca360e53d57a34
6,741
py
Python
core/controllers/blog_admin.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
1
2021-08-17T20:33:12.000Z
2021-08-17T20:33:12.000Z
core/controllers/blog_admin.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
null
null
null
core/controllers/blog_admin.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.293194
80
0.60629
4a3e16cec43638cd0362bd949d43d25909d96ef9
2,110
py
Python
tools/third_party/pluggy/testing/test_tracer.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
9
2019-04-01T10:57:10.000Z
2021-12-02T11:12:06.000Z
tools/third_party/pluggy/testing/test_tracer.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
33
2019-03-21T10:18:37.000Z
2022-03-23T13:21:40.000Z
tools/third_party/pluggy/testing/test_tracer.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
from pluggy import _TagTracer def test_simple(): rootlogger = _TagTracer() log = rootlogger.get("pytest") log("hello") out = [] rootlogger.setwriter(out.append) log("world") assert len(out) == 1 assert out[0] == "world [pytest]\n" sublog = log.get("collection") sublog("hello")...
23.444444
72
0.56019
1eeac57b5a112904aa93e6355d5cf82293e6795c
1,114
py
Python
ietf/meeting/migrations/0025_rename_type_session_to_regular.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/meeting/migrations/0025_rename_type_session_to_regular.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/meeting/migrations/0025_rename_type_session_to_regular.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2019-2020, All Rights Reserved # -*- coding: utf-8 -*- # Generated by Django 1.11.26 on 2019-12-06 11:13 from django.db import migrations def rename_session_to_regular(apps, schema_editor): Session = apps.get_model('meeting', 'Session') TimeSlot = apps.get_model('meeting', 'TimeSlo...
28.564103
108
0.691203
229426dbe0497231f5243d2b0a3a8aa2159e9170
50,361
py
Python
tools/codegen/gen.py
mdmn07C5/pytorch
b14bde466d5d9c5329eff15c07a92dbe96be7b35
[ "Intel" ]
2
2021-08-03T09:38:31.000Z
2021-08-03T21:45:35.000Z
tools/codegen/gen.py
mdmn07C5/pytorch
b14bde466d5d9c5329eff15c07a92dbe96be7b35
[ "Intel" ]
null
null
null
tools/codegen/gen.py
mdmn07C5/pytorch
b14bde466d5d9c5329eff15c07a92dbe96be7b35
[ "Intel" ]
null
null
null
import os from typing import List, Dict, Optional, Tuple, Set, Callable, Any, Union, Sequence from typing_extensions import Literal import yaml from collections import OrderedDict, defaultdict, namedtuple import argparse import pathlib import functools import json from dataclasses import dataclass from tools.codegen.c...
43.228326
128
0.654931
06b36411d25e02afc274f78a5770ce9fb71cdbaa
2,250
py
Python
personal_env/lib/python3.8/site-packages/sqlparse/__init__.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/sqlparse/__init__.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
personal_env/lib/python3.8/site-packages/sqlparse/__init__.py
jestinmwilson/personal-website
6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74
[ "MIT" ]
null
null
null
# # Copyright (C) 2009-2020 the sqlparse authors and contributors # <see AUTHORS file> # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause """Parse SQL statements.""" # Setup namespace from sqlparse import sql from sqlparse import...
31.690141
73
0.692
7e12e728d1bf6e69659f4c8cfb883248c7016171
1,219
py
Python
aliyun-python-sdk-green/aliyunsdkgreen/request/v20180509/SetPersonRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-green/aliyunsdkgreen/request/v20180509/SetPersonRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-green/aliyunsdkgreen/request/v20180509/SetPersonRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# 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"); you may not u...
38.09375
72
0.763741
7df5065b95d23fe8edc5111ca02e77733ee56e8f
1,296
py
Python
Bugscan_exploits-master/exp_list/exp-2205.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-2205.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-2205.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/env python # coding: UTF-8 ''' author: yichin name: 远为应用安全网关(&国富安应用安全网关)3处命令执行 refer: http://wooyun.org/bugs/wooyun-2015-0142868 description: ''' import re def assign(service, arg): if service == 'yuanwei_gateway': return True, arg def audit(arg): content_type = 'Co...
28.8
77
0.56713
f8a5f3f2aa0e2c4eca53878ae9f865ed13bbfcca
771
py
Python
model_test.py
IevgenP/toxicity_detector_app
da89076dc33319210828827f3f77e281965a1427
[ "MIT" ]
null
null
null
model_test.py
IevgenP/toxicity_detector_app
da89076dc33319210828827f3f77e281965a1427
[ "MIT" ]
12
2020-01-28T22:14:15.000Z
2022-02-10T00:18:02.000Z
model_test.py
IevgenP/toxicity_detector_app
da89076dc33319210828827f3f77e281965a1427
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from definitions_toxicity import ROOT_DIR from src.neural_networks.nn import SelfAttentionLayer from sklearn.metrics import roc_auc_score, log_loss # load data x_test_tokenized = np.load(ROOT_DIR + '/prep_data/x_test_tokenized.npy') y_test = np.load(ROOT_DIR + '/prep_data/y_t...
32.125
87
0.776913
2d9a1b9a8ed556ac2a2c01dd5b29fe7833cc1f68
5,713
py
Python
efficientdet/keras/inference_test.py
matthewygf/automl
799ccded69e902ece7630790d754637c427ed6cd
[ "Apache-2.0" ]
null
null
null
efficientdet/keras/inference_test.py
matthewygf/automl
799ccded69e902ece7630790d754637c427ed6cd
[ "Apache-2.0" ]
null
null
null
efficientdet/keras/inference_test.py
matthewygf/automl
799ccded69e902ece7630790d754637c427ed6cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
40.807143
80
0.71136
3bf3e297e732051c9231e2a486927c54ad78a592
7,231
py
Python
sonic_installer/bootloader/aboot.py
phiea/sonic-utilities
f5efe8939530ba9767bcd92e5a688b2275c5f151
[ "Apache-2.0" ]
null
null
null
sonic_installer/bootloader/aboot.py
phiea/sonic-utilities
f5efe8939530ba9767bcd92e5a688b2275c5f151
[ "Apache-2.0" ]
null
null
null
sonic_installer/bootloader/aboot.py
phiea/sonic-utilities
f5efe8939530ba9767bcd92e5a688b2275c5f151
[ "Apache-2.0" ]
null
null
null
""" Bootloader implementation for Aboot used on Arista devices """ import base64 import collections import os import re import subprocess import sys import zipfile from contextlib import contextmanager import click from M2Crypto import X509 from ..common import ( HOST_PATH, IMAGE_DIR_PREFIX, IMAGE_PREFIX, ...
34.932367
110
0.620661
e0cecb767c53fded285f899c323cc62d8f480773
1,669
py
Python
dodo.py
jakub-w/youtube-dl-gui
ff807572f2dd08e51987fdcb351c8ab11cc03b38
[ "Unlicense" ]
527
2020-07-29T02:19:17.000Z
2022-03-31T21:36:53.000Z
dodo.py
jakub-w/youtube-dl-gui
ff807572f2dd08e51987fdcb351c8ab11cc03b38
[ "Unlicense" ]
76
2020-11-03T05:02:15.000Z
2022-03-30T00:05:22.000Z
dodo.py
jakub-w/youtube-dl-gui
ff807572f2dd08e51987fdcb351c8ab11cc03b38
[ "Unlicense" ]
60
2020-07-29T21:21:18.000Z
2022-03-30T21:19:10.000Z
# Create a graph of python module´s imports of youtube_dl_gui package # # > sudo apt-get install python3-pygraphviz libgraphviz-dev # > pip3 install doit pygraphviz import_deps # import pathlib import pygraphviz from import_deps import ModuleSet, PyModule def get_imports(pkg_modules, module_path): module = pkg_m...
28.775862
69
0.639305