hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acff55f2e701176a8086fea81b515674ad607dfd
3,858
py
Python
files/zabbix_content/import_all.py
dataart-telco/zabbix-restcomm-docker
fe0d6678746ce1206c4bbefe476cb5e42af7bf53
[ "Apache-2.0" ]
1
2016-03-10T23:04:12.000Z
2016-03-10T23:04:12.000Z
files/zabbix_content/import_all.py
dataart-telco/zabbix-restcomm-docker
fe0d6678746ce1206c4bbefe476cb5e42af7bf53
[ "Apache-2.0" ]
null
null
null
files/zabbix_content/import_all.py
dataart-telco/zabbix-restcomm-docker
fe0d6678746ce1206c4bbefe476cb5e42af7bf53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import pyzabbix, sys, json, os, time if len(sys.argv) > 2: IMPORT_DIR = sys.argv[1] ZABBIX_SERVER = sys.argv[2] else: IMPORT_DIR = "import_pack" ZABBIX_SERVER = 'http://localhost' print "*****" print "** App iports files in Lexicographical order from '{0}' folder".format(IMPORT_DIR...
26.244898
89
0.537066
acff56f01eb4d75139b1709b2ec135151d193a6a
2,917
py
Python
src/softfab/pages/ResTypeIndex.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
20
2019-02-07T17:03:04.000Z
2020-03-16T20:45:19.000Z
src/softfab/pages/ResTypeIndex.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
36
2019-02-11T08:57:16.000Z
2020-09-29T05:32:08.000Z
src/softfab/pages/ResTypeIndex.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause from functools import partial from typing import Any, ClassVar, Iterator, cast from softfab.FabPage import FabPage from softfab.Page import PageProcessor from softfab.databaselib import Retriever from softfab.datawidgets import ( BoolDataColumn, DataColumn, DataTable, LinkC...
35.573171
75
0.687693
acff57810821b4bb7fa3978755138cba27fa72ad
739
py
Python
python/ray/data/datasource/binary_datasource.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
python/ray/data/datasource/binary_datasource.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
python/ray/data/datasource/binary_datasource.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
from typing import TYPE_CHECKING if TYPE_CHECKING: import pyarrow from ray.data.datasource.file_based_datasource import (FileBasedDatasource) class BinaryDatasource(FileBasedDatasource): """Binary datasource, for reading and writing binary files. Examples: >>> source = BinaryDatasource() ...
26.392857
76
0.64682
acff57bb3502071b42fadff8c7ea1ad2a2c53aa4
1,270
py
Python
comment/migrations/0001_initial.py
fihyer/typedia
87ac445f5ca65582344847a0c414b9604e40192b
[ "MIT" ]
null
null
null
comment/migrations/0001_initial.py
fihyer/typedia
87ac445f5ca65582344847a0c414b9604e40192b
[ "MIT" ]
1
2022-03-02T15:12:40.000Z
2022-03-02T15:12:40.000Z
comment/migrations/0001_initial.py
fihyer/typeidea
87ac445f5ca65582344847a0c414b9604e40192b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.12 on 2021-02-20 03:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Com...
37.352941
128
0.577165
acff582053d12f4104237452188dd15a17eeb173
1,551
py
Python
unit_tests/test_content_security_policy.py
LandRegistry/digital-street-title-ui
3477c51be8806289da02c758ca5f0732d0444a8f
[ "MIT" ]
null
null
null
unit_tests/test_content_security_policy.py
LandRegistry/digital-street-title-ui
3477c51be8806289da02c758ca5f0732d0444a8f
[ "MIT" ]
null
null
null
unit_tests/test_content_security_policy.py
LandRegistry/digital-street-title-ui
3477c51be8806289da02c758ca5f0732d0444a8f
[ "MIT" ]
3
2019-04-26T06:38:12.000Z
2021-04-11T05:22:21.000Z
import json import unittest from unittest import mock from title_ui.main import app from title_ui.custom_extensions.content_security_policy.main import ContentSecurityPolicy class TestContentSecurityPolicy(unittest.TestCase): def setup_method(self, method): self.app = app.test_client() @mock.patch('...
37.829268
105
0.695035
acff5858e40d1cf608b13b125fcb2057f293f839
4,038
py
Python
imperative/python/test/unit/functional/test_math.py
googol-lab/MegEngine
e0193cc4431371719a6ddb0fa85f910c5583bfc8
[ "Apache-2.0" ]
1
2021-03-25T01:13:24.000Z
2021-03-25T01:13:24.000Z
imperative/python/test/unit/functional/test_math.py
googol-lab/MegEngine
e0193cc4431371719a6ddb0fa85f910c5583bfc8
[ "Apache-2.0" ]
1
2021-05-27T08:55:38.000Z
2021-05-27T08:55:38.000Z
imperative/python/test/unit/functional/test_math.py
googol-lab/MegEngine
e0193cc4431371719a6ddb0fa85f910c5583bfc8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
28.842857
88
0.620357
acff59317c389d2324fb157b16accc890a2da81b
1,052
py
Python
stix2slider/test/test_main.py
nhova/cti-stix-slider
3964c907cda457b747b711655f89c28e8cb863c1
[ "BSD-3-Clause" ]
17
2017-11-29T19:11:41.000Z
2022-01-10T07:04:34.000Z
stix2slider/test/test_main.py
nhova/cti-stix-slider
3964c907cda457b747b711655f89c28e8cb863c1
[ "BSD-3-Clause" ]
56
2017-11-29T01:20:32.000Z
2021-08-23T21:09:25.000Z
stix2slider/test/test_main.py
nhova/cti-stix-slider
3964c907cda457b747b711655f89c28e8cb863c1
[ "BSD-3-Clause" ]
9
2017-11-29T17:57:31.000Z
2020-09-02T03:17:17.000Z
# Standard Library from argparse import Namespace # external import pytest # internal from stix2slider import options from stix2slider.options import ( SliderOptions, get_option_value, initialize_options ) @pytest.mark.parametrize("opts", [ SliderOptions(no_squirrel_gaps=False, use_namespace="foobar", log_l...
37.571429
106
0.728137
acff594c55e0c7508839bb6c4bef807f22cf494b
3,698
py
Python
clients/python/lakefs_client/models/__init__.py
cmarat/lakeFS
a5e4693fe571fd289fa3d14f4fb0c00928d004c3
[ "Apache-2.0" ]
1
2021-09-09T16:21:14.000Z
2021-09-09T16:21:14.000Z
clients/python/lakefs_client/models/__init__.py
cmarat/lakeFS
a5e4693fe571fd289fa3d14f4fb0c00928d004c3
[ "Apache-2.0" ]
null
null
null
clients/python/lakefs_client/models/__init__.py
cmarat/lakeFS
a5e4693fe571fd289fa3d14f4fb0c00928d004c3
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from lakefs_client.model.pet import Pet # or import this package, but before d...
55.19403
100
0.887236
acff595996b6b0fb67f8a3afd1a68741724f24bf
51,618
py
Python
test/test_ipsec_esp.py
StanleyLiao/vpp
8f10b9050dc6318d7ccb3982eec2ed742752c6ea
[ "Apache-2.0" ]
null
null
null
test/test_ipsec_esp.py
StanleyLiao/vpp
8f10b9050dc6318d7ccb3982eec2ed742752c6ea
[ "Apache-2.0" ]
null
null
null
test/test_ipsec_esp.py
StanleyLiao/vpp
8f10b9050dc6318d7ccb3982eec2ed742752c6ea
[ "Apache-2.0" ]
null
null
null
import socket import unittest from scapy.layers.ipsec import ESP from scapy.layers.inet import IP, ICMP, UDP from scapy.layers.inet6 import IPv6 from scapy.layers.l2 import Ether from scapy.packet import Raw from parameterized import parameterized from framework import VppTestRunner from template_ipsec import IpsecTra...
37.350217
79
0.581018
acff59e249bf9c6eb6d2ae12aa479be93b467590
1,427
py
Python
stacks/XIAOMATECH/1.0/services/YARN/package/scripts/yarn_client.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
3
2019-08-13T01:44:16.000Z
2019-12-10T04:05:56.000Z
stacks/XIAOMATECH/1.0/services/YARN/package/scripts/yarn_client.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
null
null
null
stacks/XIAOMATECH/1.0/services/YARN/package/scripts/yarn_client.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
7
2019-05-29T17:35:25.000Z
2021-12-04T07:55:10.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 use this ...
29.122449
74
0.747722
acff5a264e2e9a300bd7ddde1ac45f942047b936
2,977
py
Python
python/ray/tune/tune.py
rickyHong/Ray-repl
24b93b11231fe627c4b4527535ae0c83a99485f8
[ "Apache-2.0" ]
1
2020-06-25T18:17:10.000Z
2020-06-25T18:17:10.000Z
python/ray/tune/tune.py
rickyHong/Ray-Population-Based-Training-repl
195a42f2fa4ab39d1e2260e6860d88c529023655
[ "Apache-2.0" ]
null
null
null
python/ray/tune/tune.py
rickyHong/Ray-Population-Based-Training-repl
195a42f2fa4ab39d1e2260e6860d88c529023655
[ "Apache-2.0" ]
1
2021-09-22T14:46:19.000Z
2021-09-22T14:46:19.000Z
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import json import sys import ray from ray.tune import TuneError from ray.tune.hyperband import HyperBandScheduler from ray.tune.median_stopping_rule import MedianStoppi...
31.336842
77
0.696003
acff5b737dcbc3f48c0ae5a60732477f3a067c10
3,099
py
Python
python/apps/extract_static_thumbnails.py
CamHD-Analysis/camhd_motion_analysis
41c38b9de4459e658a3358596e7995aa01f660e7
[ "MIT" ]
1
2021-01-20T13:45:50.000Z
2021-01-20T13:45:50.000Z
python/apps/extract_static_thumbnails.py
CamHD-Analysis/camhd_motion_analysis
41c38b9de4459e658a3358596e7995aa01f660e7
[ "MIT" ]
5
2018-07-17T19:07:32.000Z
2018-07-19T19:53:42.000Z
python/apps/extract_static_thumbnails.py
CamHD-Analysis/camhd_motion_analysis
41c38b9de4459e658a3358596e7995aa01f660e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import logging import argparse import glob import pandas as pd import numpy as np import os import os.path as path from scipy import misc import camhd_motion_analysis as ma import pycamhd.lazycache as camhd parser = argparse.ArgumentParser(description='') parser.add_argument('inp...
32.28125
181
0.612778
acff5b7ce109502d31adac57d613afbee54fcdb8
655
py
Python
algorithms/bit-manipulation/maximizing-xor.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
algorithms/bit-manipulation/maximizing-xor.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
algorithms/bit-manipulation/maximizing-xor.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Algorithms > Bit Manipulation > Maximizing XOR # Given two integers, L and R, find the maximal value of A xor B, # where A and B satisfy a condition. # # https://www.hackerrank.com/challenges/maximizing-xor/problem # # L = 00000101...... # R = 00000111...... # L^R = 00000010...... # sol = 0000001111...1 on...
21.833333
77
0.583206
acff5c5843646246876c24f0dd8b20bf5e63b9ec
1,238
py
Python
src/fonts.py
samuelwestlake/ImageLabel
f80bc9fdb85e0c0171cd18049acd66a5887417eb
[ "MIT" ]
null
null
null
src/fonts.py
samuelwestlake/ImageLabel
f80bc9fdb85e0c0171cd18049acd66a5887417eb
[ "MIT" ]
null
null
null
src/fonts.py
samuelwestlake/ImageLabel
f80bc9fdb85e0c0171cd18049acd66a5887417eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pygame def lato(size, style=None): path = "../fonts/Lato/" if style == "black": return pygame.font.Font(path + "Lato-Black.ttf", int(size)) elif style == "black_italic": return pygame.font.Font(path + "Lato-BlackItalic.ttf", int(size)) elif style == "bold...
37.515152
76
0.632472
acff5cb695ea0a88996ce4ceeecd75090fe7e99a
10,360
py
Python
scripts/precompute_resnet_img_features.py
ayshrv/visitron
2f30e6c002ed021d2be209a94a5e77c2d7e2117f
[ "MIT-0" ]
5
2021-05-27T14:23:07.000Z
2021-10-30T14:38:24.000Z
scripts/precompute_resnet_img_features.py
ayshrv/visitron
2f30e6c002ed021d2be209a94a5e77c2d7e2117f
[ "MIT-0" ]
1
2022-02-08T19:04:03.000Z
2022-02-08T19:04:03.000Z
scripts/precompute_resnet_img_features.py
ayshrv/visitron
2f30e6c002ed021d2be209a94a5e77c2d7e2117f
[ "MIT-0" ]
3
2020-10-07T22:56:50.000Z
2021-10-30T14:38:19.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import argparse import base64 import csv import json import math import os import random import sys from multiprocessing import Pool import cv2 import MatterSim import numpy as np import torch import torch.nn as nn i...
30.925373
119
0.542278
acff5d90d533c828fc0684b7c5eb31fe2cc1544d
1,287
py
Python
src/conference_scheduler/lp_problem/objective_functions.py
ChahalMandeep/ConferenceScheduler
e5a0eff8796ba5711b5c3b591ff4b9a2e0f61a04
[ "MIT" ]
46
2017-04-30T17:37:38.000Z
2022-03-29T12:52:38.000Z
src/conference_scheduler/lp_problem/objective_functions.py
ChahalMandeep/ConferenceScheduler
e5a0eff8796ba5711b5c3b591ff4b9a2e0f61a04
[ "MIT" ]
95
2017-05-01T16:30:04.000Z
2018-11-07T10:48:50.000Z
src/conference_scheduler/lp_problem/objective_functions.py
ChahalMandeep/ConferenceScheduler
e5a0eff8796ba5711b5c3b591ff4b9a2e0f61a04
[ "MIT" ]
11
2017-05-01T16:17:46.000Z
2022-03-29T12:52:41.000Z
from conference_scheduler.converter import schedule_to_array def efficiency_capacity_demand_difference(slots, events, X, **kwargs): """ A function that calculates the total difference between demand for an event and the slot capacity it is scheduled in. """ overflow = 0 for row, event in enumer...
34.783784
79
0.645688
acff5e8e539c1f6e03a9da1d188d743aa926b75c
1,375
py
Python
trape.py
xmi666/trape
4f56fbb3f88bcf8d9ceff1f2e32b300bd58b43c4
[ "CC-BY-3.0", "MIT" ]
1
2021-11-28T00:03:42.000Z
2021-11-28T00:03:42.000Z
trape.py
xmi666/trape
4f56fbb3f88bcf8d9ceff1f2e32b300bd58b43c4
[ "CC-BY-3.0", "MIT" ]
3
2021-05-19T13:18:52.000Z
2021-06-12T18:15:34.000Z
trape.py
xmi666/trape
4f56fbb3f88bcf8d9ceff1f2e32b300bd58b43c4
[ "CC-BY-3.0", "MIT" ]
1
2022-02-03T23:37:03.000Z
2022-02-03T23:37:03.000Z
#!/usr/bin/env python3.8 # -*- coding: utf-8 -*- # ** # ########################################## # Trape | People tracker on the Internet # ########################################## # # Learn to track the world, to avoid being traced # # @version 2.1 # @link https://github.com/jofpin/trape # @author ...
24.553571
87
0.599273
acff5ecbd1742b53ac097a19fb8c347c800d35e7
74,435
py
Python
ifit/gui_tools.py
benjaminesse/iFit
f9450c0740c68038c5bd1682d700428185cafb4a
[ "MIT" ]
3
2019-06-28T00:48:20.000Z
2021-02-22T07:30:29.000Z
ifit/gui_tools.py
benjaminesse/iFit
f9450c0740c68038c5bd1682d700428185cafb4a
[ "MIT" ]
null
null
null
ifit/gui_tools.py
benjaminesse/iFit
f9450c0740c68038c5bd1682d700428185cafb4a
[ "MIT" ]
null
null
null
"""Contains scripts to launch GUI tools. These functions laucnch new windows for tasks outside the standard GUI, including: - Calculate light dilution - Characterise the flat spectrum and instrument line shape - Measure fluxes from traverse measurements """ import os import sys import yaml import logging i...
38.054703
79
0.552025
acff5f713632fce33c21a68b8f3673f2584ef380
2,466
py
Python
scripts/addons/animation_nodes/nodes/bvh_tree/construct.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/animation_nodes/nodes/bvh_tree/construct.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/animation_nodes/nodes/bvh_tree/construct.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
import bpy from bpy.props import * from mathutils.bvhtree import BVHTree from ... base_types import AnimationNode sourceTypeItems = [ ("MESH_DATA", "Mesh", "", "NONE", 0), ("BMESH", "BMesh", "", "NONE", 1), ("OBJECT", "Object", "", "NONE", 2) ] class ConstructBVHTreeNode(bpy.types.Node, AnimationNode): ...
37.363636
97
0.639497
acff5facc1dc95b709c68cb4336ee0f4eb77936c
323
py
Python
setup.py
pwoolcoc/fediplay
1be7fa445416438fc6229f683ef5e038e315d7b4
[ "MIT" ]
1
2019-07-19T20:46:56.000Z
2019-07-19T20:46:56.000Z
setup.py
pwoolcoc/fediplay
1be7fa445416438fc6229f683ef5e038e315d7b4
[ "MIT" ]
null
null
null
setup.py
pwoolcoc/fediplay
1be7fa445416438fc6229f683ef5e038e315d7b4
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='fediplay', version='0.1', py_modules=['fediplay'], install_requires=[ 'Mastodon.py', 'cssselect', 'lxml', 'youtube-dl' ], entry_points={ 'console_scripts': [ 'fediplay = fediplay:main' ] } ...
16.15
38
0.50774
acff5ffa5f9fdcfd256f3945df3032b88115d1dd
4,946
py
Python
marko/__init__.py
phtan/marko
d554ecd576b1cf26ded4d8fffa53945c2fa42e5c
[ "MIT" ]
null
null
null
marko/__init__.py
phtan/marko
d554ecd576b1cf26ded4d8fffa53945c2fa42e5c
[ "MIT" ]
null
null
null
marko/__init__.py
phtan/marko
d554ecd576b1cf26ded4d8fffa53945c2fa42e5c
[ "MIT" ]
null
null
null
#! -*- coding: utf-8 -*- """ _ _ _ ___ _ _ ___ | \ / | /_\ | _ \ | |/ / / _ \ | |\/| | / _ \ | / | ' < | (_) | |_| |_| /_/ \_\ |_|_\ |_|\_\ \___/ A markdown parser with high extensibility. Licensed under MIT. Created by Frost Ming<mianghong@gmail.com> """ from .html_renderer impo...
31.503185
88
0.615649
acff60b89814410e5ac39648637c98de9123f2d4
7,712
py
Python
pex/finders.py
zyga/pex
1df0cd2971aae60f0d48118e7719ab5def7861b2
[ "Apache-2.0" ]
1
2019-06-16T07:05:33.000Z
2019-06-16T07:05:33.000Z
pex/finders.py
zyga/pex
1df0cd2971aae60f0d48118e7719ab5def7861b2
[ "Apache-2.0" ]
null
null
null
pex/finders.py
zyga/pex
1df0cd2971aae60f0d48118e7719ab5def7861b2
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """The finders we wish we had in setuptools. As of setuptools 3.3, the only finder for zip-based distributions is for eggs. The path-based finder only searches paths ending in .egg and n...
32.540084
98
0.74209
acff61042be530f5cd425b681e7c51b94fbf048c
4,391
py
Python
neutron/db/migration/alembic_migrations/nec_init_ops.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/db/migration/alembic_migrations/nec_init_ops.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/db/migration/alembic_migrations/nec_init_ops.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Copyright 2014 OpenStack 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 ...
43.04902
78
0.638579
acff61d6af70a8f8946a1eb95ef0fdd7125e29c1
700
py
Python
backend/flask-api/migrations/versions/f172c6d30249_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/f172c6d30249_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/f172c6d30249_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
2
2020-10-19T22:03:31.000Z
2020-11-29T21:22:33.000Z
"""Ajustando campos not null da tb_hist_situacao para null Revision ID: f172c6d30249 Revises: 2373796f9e26 Create Date: 2020-10-18 17:18:24.491127 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f172c6d30249' down_revision = '2373796f9e26' branch_labels = None...
25
86
0.771429
acff626288ec9c5d52921ba97d6f7cdab95e2b1b
9,066
py
Python
python/audio_client.py
bmilde/ambientsearch
74bf83a313e19da54a4e44158063041f981424c9
[ "Apache-2.0" ]
20
2016-04-30T11:24:45.000Z
2021-11-09T10:39:25.000Z
python/audio_client.py
bmilde/ambientsearch
74bf83a313e19da54a4e44158063041f981424c9
[ "Apache-2.0" ]
1
2020-09-23T13:36:58.000Z
2020-09-23T13:36:58.000Z
python/audio_client.py
bmilde/ambientsearch
74bf83a313e19da54a4e44158063041f981424c9
[ "Apache-2.0" ]
8
2015-10-07T13:40:36.000Z
2019-08-07T06:45:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Benjamin Milde and Jonas Wacker' import argparse from ws4py.client.threadedclient import WebSocketClient import threading import sys import urllib import Queue import json import time import traceback import os from mutagen.mp3 import MP3 from bridge import ...
42.167442
118
0.599713
acff62b99033bb54d9e458300b8373a551090c71
1,076
py
Python
Toolz/sqlmap/plugins/dbms/mssqlserver/__init__.py
thezakman/CTF-Toolz
b369246ea6766165cce0852e537fb6a0c970869b
[ "Unlicense" ]
71
2019-02-02T11:38:46.000Z
2022-03-31T14:08:27.000Z
tools/sqlmap/plugins/dbms/mssqlserver/__init__.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/sqlmap/plugins/dbms/mssqlserver/__init__.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
15
2019-08-07T06:32:04.000Z
2022-03-09T12:48:20.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ from lib.core.enums import DBMS from lib.core.settings import MSSQL_SYSTEM_DBS from lib.core.unescaper import unescaper from plugins.dbms.mssqlserver.enumeration import Enumeratio...
31.647059
92
0.76487
acff630be4085958761468db65360904aa1355d7
3,536
py
Python
psana/psana/graphqt/H5VMain.py
valmar/lcls2
1c24da076a8cd252cf6601e125dd721fd2004f2a
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/graphqt/H5VMain.py
valmar/lcls2
1c24da076a8cd252cf6601e125dd721fd2004f2a
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/graphqt/H5VMain.py
valmar/lcls2
1c24da076a8cd252cf6601e125dd721fd2004f2a
[ "BSD-3-Clause-LBNL" ]
null
null
null
"""Class :py:class:`H5VMain` is a QWidget for main window of hdf5viewer ======================================================================== Usage :: # Run test: python lcls2/psana/psana/graphqt/H5VMain.py from psana.graphqt.H5VMain import H5VMain See method: hdf5explorer Created on 2019-11-12 by Mikh...
27.84252
97
0.643382
acff635a9356376981eb427f1dadbfbaf1960627
284
py
Python
spinta/backends/mongo/commands/wait.py
atviriduomenys/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
2
2019-03-14T06:41:14.000Z
2019-03-26T11:48:14.000Z
spinta/backends/mongo/commands/wait.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
44
2019-04-05T15:52:45.000Z
2022-03-30T07:41:33.000Z
spinta/backends/mongo/commands/wait.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
1
2019-04-01T09:54:27.000Z
2019-04-01T09:54:27.000Z
from spinta import commands from spinta.components import Context from spinta.backends.mongo.components import Mongo @commands.wait.register(Context, Mongo) def wait(context: Context, backend: Mongo, *, fail: bool = False) -> bool: # TODO: Implement real check. return True
28.4
74
0.757042
acff644eecaed3792f8b009bc35d4cc81fbf76c1
1,549
py
Python
gps_tracker/imu_poller.py
jaluebbe/GPSTracker
987505d80b141feaf1dc9a8a7568d3a531c8c337
[ "MIT" ]
7
2020-09-16T14:24:25.000Z
2021-11-02T00:19:37.000Z
gps_tracker/imu_poller.py
jaluebbe/GPSTracker
987505d80b141feaf1dc9a8a7568d3a531c8c337
[ "MIT" ]
null
null
null
gps_tracker/imu_poller.py
jaluebbe/GPSTracker
987505d80b141feaf1dc9a8a7568d3a531c8c337
[ "MIT" ]
4
2020-08-20T14:21:27.000Z
2021-05-15T02:31:05.000Z
#!/usr/bin/env python3 import time import math import json import socket import redis import RTIMU import os.path import logging redis_connection = redis.Redis() hostname = socket.gethostname() SETTINGS_FILE = "/home/pi/GPSTracker/gps_tracker/RTIMULib" logging.info("Using settings file " + SETTINGS_FILE + ".ini") if ...
24.587302
68
0.672046
acff644ffa6634f204877086a03c7e8b4d2271b4
3,032
py
Python
tests/applications/test_forms.py
crydotsnake/djangogirls
0e764294085d6d7d3c4f61a7fe36f91640abedcd
[ "BSD-3-Clause" ]
446
2015-01-04T20:58:26.000Z
2022-03-30T23:08:26.000Z
tests/applications/test_forms.py
serenasensini/TheRedCode_Docker-per-Django-e-Postgres
78a2ca1f09ab956a6936d14a5fd99336ff39f472
[ "BSD-3-Clause" ]
649
2015-01-09T23:42:14.000Z
2022-03-31T17:27:19.000Z
tests/applications/test_forms.py
serenasensini/TheRedCode_Docker-per-Django-e-Postgres
78a2ca1f09ab956a6936d14a5fd99336ff39f472
[ "BSD-3-Clause" ]
319
2015-01-06T20:58:42.000Z
2022-03-30T06:29:04.000Z
import pytest import vcr from applications.forms import ApplicationForm from applications.models import Application, Form, Question from core.models import Event @pytest.mark.django_db @vcr.use_cassette('tests/applications/vcr/application_form_prevent_duplicate_emails.yaml') def test_application_form_prevent_duplica...
30.32
90
0.697559
acff64bbd68dc318b01578e2bfb76fe0c7669778
836
py
Python
cryptkeeper/db/schema/smithandcrown.py
CMoncur/cryptkeeper
ed4d1da68b51b817fa8fe29a31901a150f13dfcd
[ "MIT" ]
null
null
null
cryptkeeper/db/schema/smithandcrown.py
CMoncur/cryptkeeper
ed4d1da68b51b817fa8fe29a31901a150f13dfcd
[ "MIT" ]
null
null
null
cryptkeeper/db/schema/smithandcrown.py
CMoncur/cryptkeeper
ed4d1da68b51b817fa8fe29a31901a150f13dfcd
[ "MIT" ]
null
null
null
# pylint: disable=R0903 """Smith and Crown SqlAlchemy Schema""" from datetime import datetime from sqlalchemy import Column, Integer, String, TEXT, TIMESTAMP from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class SmithAndCrown(Base): """Smith and Crown Schema""" __tablename__ = ...
34.833333
73
0.722488
acff64ecc0ad4bde42b2c82635e0d7863eb1eac4
397
py
Python
nablapps/events/migrations/0006_remove_event_view_counter.py
Amund211/nablaweb
8105c34615d4b67637e982545fbc6489a131c1f3
[ "MIT" ]
17
2019-10-07T15:10:58.000Z
2022-01-21T14:18:07.000Z
nablapps/events/migrations/0006_remove_event_view_counter.py
Amund211/nablaweb
8105c34615d4b67637e982545fbc6489a131c1f3
[ "MIT" ]
222
2019-10-07T15:04:51.000Z
2022-03-24T12:14:16.000Z
nablapps/events/migrations/0006_remove_event_view_counter.py
Amund211/nablaweb
8105c34615d4b67637e982545fbc6489a131c1f3
[ "MIT" ]
7
2019-10-10T18:53:42.000Z
2021-10-18T02:13:09.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-26 13:50 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("events", "0005_auto_20171017_0110"), ] operations = [ migrations.RemoveField( ...
19.85
48
0.617128
acff6594689f05ecaca9ecced1976f55b71c2023
5,601
py
Python
src/dataprotection/azext_dataprotection/generated/commands.py
Caoxuyang/azure-cli-extensions
d2011261f29033cb31a1064256727d87049ab423
[ "MIT" ]
null
null
null
src/dataprotection/azext_dataprotection/generated/commands.py
Caoxuyang/azure-cli-extensions
d2011261f29033cb31a1064256727d87049ab423
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/dataprotection/azext_dataprotection/generated/commands.py
Caoxuyang/azure-cli-extensions
d2011261f29033cb31a1064256727d87049ab423
[ "MIT" ]
1
2022-03-10T22:13:02.000Z
2022-03-10T22:13:02.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
46.675
152
0.764328
acff66604b8ef3e02411c18993d0a43944f3dec8
2,359
py
Python
src/crop_head_bbox.py
anhnt170489/FunMOT
6eb794bd485be42270eaee3804e13d38a897a945
[ "MIT" ]
null
null
null
src/crop_head_bbox.py
anhnt170489/FunMOT
6eb794bd485be42270eaee3804e13d38a897a945
[ "MIT" ]
null
null
null
src/crop_head_bbox.py
anhnt170489/FunMOT
6eb794bd485be42270eaee3804e13d38a897a945
[ "MIT" ]
1
2021-11-09T02:50:19.000Z
2021-11-09T02:50:19.000Z
import os import argparse import cv2 from tqdm import tqdm import numpy as np import traceback def convert_full_to_head(bbox, h, w): cy = bbox[:, 3] ch = bbox[:, 5] cw = bbox[:, 4] new_cy = cy - ch/2 + (cw/2*w/h) new_h = cw*w/h bbox[:, 3] = new_cy bbox[:, 5] = new_h retu...
35.208955
108
0.578211
acff68bc0100ce10fd240863497f835f746bd780
75
py
Python
udemy/python-video-workbook/my_progress/019.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/019.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/019.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
# Exercise 19 - Add Dictionary Key d = {"a": 1, "b": 2} d['c'] = 3 print(d)
18.75
34
0.533333
acff69da4e5a35b9943277a3d65ea8075b119b9e
287
py
Python
torch/_lazy/config.py
lkct/pytorch
ec62901a2c38b63d12843e0f079bdeb7644d8714
[ "Intel" ]
1
2022-02-01T18:50:09.000Z
2022-02-01T18:50:09.000Z
torch/_lazy/config.py
ellhe-blaster/pytorch
e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25
[ "Intel" ]
null
null
null
torch/_lazy/config.py
ellhe-blaster/pytorch
e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25
[ "Intel" ]
null
null
null
import torch._C._lazy def get_force_fallback(): """Get the config used to force LTC fallback""" return torch._C._lazy._get_force_fallback() def set_force_fallback(configval): """Set the config used to force LTC fallback""" torch._C._lazy._set_force_fallback(configval)
28.7
51
0.745645
acff6af186427d83aa1eead205283923331384c2
658
py
Python
Python/hourCmp.py
jayyok/ensiie-P
6739c8478a0631c4c0966aad74d379df12e0bada
[ "Apache-2.0" ]
null
null
null
Python/hourCmp.py
jayyok/ensiie-P
6739c8478a0631c4c0966aad74d379df12e0bada
[ "Apache-2.0" ]
null
null
null
Python/hourCmp.py
jayyok/ensiie-P
6739c8478a0631c4c0966aad74d379df12e0bada
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 def timeCmp(h1,m1,s1,h2,m2,s2): h1Sec = h1 * 3600 + m1 * 60 + s1 h2Sec = h2 * 3600 + m2 * 60 + s2 diff = h2Sec - h1Sec if(diff>0): print('Resultat :' + str(int(diff/3600)) + ':' + str(int(diff%3600/60)) + ':' + str(int(diff%3600%60)) + ':') else: print('Resultat : - ' + str(int(diff/3600)) ...
23.5
114
0.527356
acff6c396b326795277b3c8874f4552b02278335
391
py
Python
books/mylibrary/grids.py
agiliq/django-datagrid
0ab533b93f014b8fba6e9c4daddbcd5b7f31b9c9
[ "MIT" ]
6
2015-03-19T15:14:52.000Z
2018-09-30T05:03:16.000Z
books/mylibrary/grids.py
agiliq/django-datagrid
0ab533b93f014b8fba6e9c4daddbcd5b7f31b9c9
[ "MIT" ]
null
null
null
books/mylibrary/grids.py
agiliq/django-datagrid
0ab533b93f014b8fba6e9c4daddbcd5b7f31b9c9
[ "MIT" ]
8
2015-02-13T02:31:48.000Z
2021-11-11T20:36:46.000Z
from datagrid.grids import DataGrid, Column, NonDatabaseColumn class SimpleGrid(DataGrid): name = NonDatabaseColumn("Hello") class RealGrid(DataGrid): name = Column() publisher = Column() recommended_by = Column() class SortableGrid(DataGrid): name = Column(sortable = True) publisher...
26.066667
62
0.703325
acff6c59c6c17490d7dad60940c58bec29e9b5ee
437
py
Python
World 2/Exercise 60.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 2/Exercise 60.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 2/Exercise 60.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
#first option number = int(input("Type a value to calcule the factorial: ")) count = number position = count while count > 1: count -= 1 number = number * count print("The factorial of {} is: {}".format(position,number)) #second option from math import factorial number = int(input("Type a value...
21.85
62
0.675057
acff6d8930e882dde3c7ed109a66ff940dc3447b
5,855
py
Python
kubernetes/client/models/v1alpha1_non_resource_policy_rule.py
carloscastrojumo/python
f461dd42d48650a4ae1b41d630875cad9fcb68ad
[ "Apache-2.0" ]
2
2021-03-09T12:42:05.000Z
2021-03-09T13:27:50.000Z
kubernetes/client/models/v1alpha1_non_resource_policy_rule.py
carloscastrojumo/python
f461dd42d48650a4ae1b41d630875cad9fcb68ad
[ "Apache-2.0" ]
7
2021-04-13T03:04:42.000Z
2022-03-02T03:10:18.000Z
kubernetes/client/models/v1alpha1_non_resource_policy_rule.py
carloscastrojumo/python
f461dd42d48650a4ae1b41d630875cad9fcb68ad
[ "Apache-2.0" ]
1
2021-06-13T09:21:37.000Z
2021-06-13T09:21:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.17 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
38.267974
414
0.629547
acff6e61fb3af76739b2210c352c27f8d7c6d8b9
32,102
py
Python
sdk/python/pulumi_azure_native/network/v20200301/vpn_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200301/vpn_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200301/vpn_connection.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# 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, overload from ... import _utilities fro...
50.474843
3,116
0.683384
acff6f08ceb3e3d905f50309e9b580fe14e83f6c
3,459
py
Python
upload_bundle_to_alpha.py
21Buttons/docker-google-play-publisher
69b597789b8bbe33cdcb9e56ad5faea1d6422623
[ "Apache-2.0" ]
1
2019-02-13T13:55:23.000Z
2019-02-13T13:55:23.000Z
upload_bundle_to_alpha.py
21Buttons/docker-google-play-publisher
69b597789b8bbe33cdcb9e56ad5faea1d6422623
[ "Apache-2.0" ]
null
null
null
upload_bundle_to_alpha.py
21Buttons/docker-google-play-publisher
69b597789b8bbe33cdcb9e56ad5faea1d6422623
[ "Apache-2.0" ]
2
2019-02-13T13:55:15.000Z
2021-01-05T10:35:29.000Z
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.659794
99
0.677653
acff6f78266c55bb93f5b12a6306a5647ebb0769
3,542
py
Python
models/shufflenet.py
joaocneves/dropout_ensemble
3b8052fdc362efc9ef220933e7d454439a18540f
[ "MIT" ]
4,983
2017-01-29T16:42:35.000Z
2022-03-31T20:36:07.000Z
models/shufflenet.py
joaocneves/dropout_ensemble
3b8052fdc362efc9ef220933e7d454439a18540f
[ "MIT" ]
132
2017-03-11T09:52:39.000Z
2022-03-24T05:15:17.000Z
models/shufflenet.py
joaocneves/dropout_ensemble
3b8052fdc362efc9ef220933e7d454439a18540f
[ "MIT" ]
2,168
2017-03-20T06:21:48.000Z
2022-03-31T15:01:39.000Z
'''ShuffleNet in PyTorch. See the paper "ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F class ShuffleBlock(nn.Module): def __init__(self, groups): super(ShuffleBlock, self).__init...
32.2
126
0.604743
acff6f99beb5dde18138538b6168c8354c6f6df5
2,852
py
Python
examples/A2C.py
himanshusahni/Pytorch-RL
0d49f6e627f6e3449af2f958b3b03f41f973f355
[ "MIT" ]
null
null
null
examples/A2C.py
himanshusahni/Pytorch-RL
0d49f6e627f6e3449af2f958b3b03f41f973f355
[ "MIT" ]
null
null
null
examples/A2C.py
himanshusahni/Pytorch-RL
0d49f6e627f6e3449af2f958b3b03f41f973f355
[ "MIT" ]
null
null
null
import argparse import gym import torch import torchvision.transforms as transforms import torch.multiprocessing as mp from pytorch_rl import networks, utils, callbacks, agents, algorithms, policies if __name__ == '__main__': parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter...
39.068493
97
0.593619
acff7095397c157a2ee15736b186ea499a84c28e
2,146
py
Python
Python3/1292.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/1292.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/1292.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 672 ms submission class Solution: def maxSideLength(self, mat: List[List[int]], threshold: int) -> int: M, N = len(mat), len(mat[0]) res = 0 colsum = [0 for i in range(N)]...
35.180328
98
0.45247
acff725897b47240154de45609ff5972a15c1cf9
497
py
Python
Chapter19/PySpark_Codes/CSV_with_PySpark.py
sankumarbigdata/Scala-and-Spark-for-Big-Data-Analytics
e99ca192bcfb4bd9a4c3714ba047d6602922aac7
[ "MIT" ]
33
2017-09-06T02:15:13.000Z
2021-12-10T13:11:18.000Z
Chapter19/PySpark_Codes/CSV_with_PySpark.py
sankumarbigdata/Scala-and-Spark-for-Big-Data-Analytics
e99ca192bcfb4bd9a4c3714ba047d6602922aac7
[ "MIT" ]
null
null
null
Chapter19/PySpark_Codes/CSV_with_PySpark.py
sankumarbigdata/Scala-and-Spark-for-Big-Data-Analytics
e99ca192bcfb4bd9a4c3714ba047d6602922aac7
[ "MIT" ]
56
2017-08-05T22:08:12.000Z
2022-03-27T14:10:19.000Z
import os import sys try: from pyspark.sql import SparkSession print("Successfully imported Spark Modules") except ImportError as e: print("Can not import Spark Modules", e) sys.exit(1) if __name__ == "__main__": spark = SparkSession\ .builder\ .appName("PCAExample")\ .get...
18.407407
111
0.647887
acff72a0191234f0d8cd5bac76ff55db9508f099
109,962
py
Python
slack_sdk/web/legacy_client.py
y-adachi-00one/python-slack-sdk
8f65b9410e04be351b98f6b551b5edfb456b1de2
[ "MIT" ]
null
null
null
slack_sdk/web/legacy_client.py
y-adachi-00one/python-slack-sdk
8f65b9410e04be351b98f6b551b5edfb456b1de2
[ "MIT" ]
null
null
null
slack_sdk/web/legacy_client.py
y-adachi-00one/python-slack-sdk
8f65b9410e04be351b98f6b551b5edfb456b1de2
[ "MIT" ]
null
null
null
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # # *** DO NOT EDIT THIS FILE *** # # 1) Modify slack_sdk/web/client.py # 2) Run `python setup.py codegen` # # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! from asyncio import Future """A Python module for interacting with Slack's Web API.""" impor...
40.293881
125
0.605527
acff731be2acac769c0dceac6f639223feeb6377
14,175
py
Python
test/tracerEq/test_point_discharge.py
thetisproject/cofs
42dccc62a9cbdfd3103031df6144de207b32189e
[ "MIT" ]
null
null
null
test/tracerEq/test_point_discharge.py
thetisproject/cofs
42dccc62a9cbdfd3103031df6144de207b32189e
[ "MIT" ]
null
null
null
test/tracerEq/test_point_discharge.py
thetisproject/cofs
42dccc62a9cbdfd3103031df6144de207b32189e
[ "MIT" ]
null
null
null
""" TELEMAC-2D `Point Discharge with Diffusion' test case ===================================================== Solves a steady-state tracer advection equation in a rectangular domain with uniform fluid velocity, constant diffusivity and a constant tracer source term. Neumann conditions are imposed on the channel wall...
37.90107
95
0.66455
acff742776cadacab0bef2970536c500fe687204
2,706
py
Python
snorkel/preprocess/nlp.py
ptrcklv/snorkel
03e4b756cd72433055bcd14e0ceb151a7fa6f393
[ "Apache-2.0" ]
1
2020-06-06T05:04:12.000Z
2020-06-06T05:04:12.000Z
snorkel/preprocess/nlp.py
ptrcklv/snorkel
03e4b756cd72433055bcd14e0ceb151a7fa6f393
[ "Apache-2.0" ]
null
null
null
snorkel/preprocess/nlp.py
ptrcklv/snorkel
03e4b756cd72433055bcd14e0ceb151a7fa6f393
[ "Apache-2.0" ]
1
2021-04-25T21:19:21.000Z
2021-04-25T21:19:21.000Z
from typing import List, Optional import spacy from snorkel.types import FieldMap from .core import BasePreprocessor, Preprocessor EN_CORE_WEB_SM = "en_core_web_sm" class SpacyPreprocessor(Preprocessor): """Preprocessor that parses input text via a SpaCy model. A common approach to writing LFs over text ...
31.103448
68
0.619734
acff746704263048475ba36e84be02f7ee47bd0c
580
py
Python
7kyu/fibonacci-fizzbuzz/fibonacci_fizzbuzz.py
seattlechem/codewars
885293e7ad5fb427c07792ed85d74881a5ebad29
[ "MIT" ]
null
null
null
7kyu/fibonacci-fizzbuzz/fibonacci_fizzbuzz.py
seattlechem/codewars
885293e7ad5fb427c07792ed85d74881a5ebad29
[ "MIT" ]
null
null
null
7kyu/fibonacci-fizzbuzz/fibonacci_fizzbuzz.py
seattlechem/codewars
885293e7ad5fb427c07792ed85d74881a5ebad29
[ "MIT" ]
null
null
null
"""Fibonacci fizz buzz.""" def fibs_fizz_buzz(k): """My fibonacci fizz buzz solution.""" res = [1, 1] # n has to be greater than 2 if k <= 2: return res[:k] else: for i in range(k - 2): res.append(res[i] + res[i + 1]) for i in range(len(res)): # alw...
25.217391
56
0.439655
acff748a7488717dc07c5411d1e150adca94721e
2,920
py
Python
tools/ci/upload-gh-pages.py
mge-engine/mge
e7a6253f99dd640a655d9a80b94118d35c7d8139
[ "MIT" ]
null
null
null
tools/ci/upload-gh-pages.py
mge-engine/mge
e7a6253f99dd640a655d9a80b94118d35c7d8139
[ "MIT" ]
91
2019-03-09T11:31:29.000Z
2022-02-27T13:06:06.000Z
tools/ci/upload-gh-pages.py
mge-engine/mge
e7a6253f99dd640a655d9a80b94118d35c7d8139
[ "MIT" ]
null
null
null
# mge - Modern Game Engine # Copyright (c) 2021 by Alexander Schroeder # All rights reserved. import sys import os import subprocess import shutil upload_branches = ["main"] branch = "" pull_request_number = "" try: branch = os.environ["APPVEYOR_REPO_BRANCH"] except: pass try: pull_request_number = os.envi...
29.2
87
0.605479
acff75c66dc0291ebb77a69f553401a961a93d46
1,284
py
Python
careplus/feeds/migrations/0001_initial.py
stemado/satb
7ef5698db8125072e3609da3766d3e80feff6e40
[ "MIT" ]
null
null
null
careplus/feeds/migrations/0001_initial.py
stemado/satb
7ef5698db8125072e3609da3766d3e80feff6e40
[ "MIT" ]
8
2020-03-24T15:42:15.000Z
2022-01-13T00:44:54.000Z
careplus/feeds/migrations/0001_initial.py
stemado/satb
7ef5698db8125072e3609da3766d3e80feff6e40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-07-27 13:23 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations...
34.702703
131
0.596573
acff768325f8693fef608a5c9c7df6b23d2eb479
3,144
py
Python
MNIST_tf_demo.py
RodericDay/fix-the-sky
907059d230bb9d7d96eee725aa0a6d73d5fafc89
[ "MIT" ]
null
null
null
MNIST_tf_demo.py
RodericDay/fix-the-sky
907059d230bb9d7d96eee725aa0a6d73d5fafc89
[ "MIT" ]
1
2017-08-26T18:30:04.000Z
2017-08-26T18:30:04.000Z
MNIST_tf_demo.py
RodericDay/fix-the-sky
907059d230bb9d7d96eee725aa0a6d73d5fafc89
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot = True) def main(): print('MNIST') sess = tf.InteractiveSession() #placeholders x = tf.placeholder(tf.float32, shape=[None,784]) y_ = tf.placeholder...
28.581818
96
0.69243
acff76f390954526a90aac1aec63ef3fb162fdac
2,652
py
Python
copasi/bindings/python/unittests/Test_CReport.py
bmoreau/COPASI
d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba
[ "Artistic-2.0" ]
null
null
null
copasi/bindings/python/unittests/Test_CReport.py
bmoreau/COPASI
d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba
[ "Artistic-2.0" ]
null
null
null
copasi/bindings/python/unittests/Test_CReport.py
bmoreau/COPASI
d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba
[ "Artistic-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Begin CVS Header # $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/bindings/python/unittests/Test_CReport.py,v $ # $Revision: 1.4 $ # $Name: $ # $Author: shoops $ # $Date: 2010/07/16 18:55:59 $ # End CVS Header # Copyright (C) 2010 by Pedro Mendes, Virginia Tech In...
30.482759
108
0.671192
acff7760ff28e7b3bb473de79b02838d74d337b8
219
py
Python
parse_log.py
rynecarbone/Pokerly
e1368eecab129ab0d94c3d043071c686111723a2
[ "MIT" ]
null
null
null
parse_log.py
rynecarbone/Pokerly
e1368eecab129ab0d94c3d043071c686111723a2
[ "MIT" ]
null
null
null
parse_log.py
rynecarbone/Pokerly
e1368eecab129ab0d94c3d043071c686111723a2
[ "MIT" ]
null
null
null
import pstats import sys #o_file= sys.argv[1] if len(sys.argv)>1 else out. #print(n_lines) p = pstats.Stats('log_profile.txt') #p.sort_stats('cumulative').print_stats(n_lines) p.sort_stats('cumulative').print_stats()
21.9
49
0.748858
acff7781b62732c9342e5a905df44809cd514c07
770
py
Python
corehq/apps/notifications/migrations/0003_lastseennotification.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/notifications/migrations/0003_lastseennotification.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/notifications/migrations/0003_lastseennotification.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('notifications', '0002_auto_20160505_2058'), ] operations = [ migrations.CreateModel( ...
30.8
114
0.605195
acff7921ca77e56fd2039e7bd515b3170d0243fe
474
py
Python
temboo/core/Library/Amazon/Marketplace/Inventory/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Amazon/Marketplace/Inventory/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Amazon/Marketplace/Inventory/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.Amazon.Marketplace.Inventory.ListInventorySupplyByDateRange import ListInventorySupplyByDateRange, ListInventorySupplyByDateRangeInputSet, ListInventorySupplyByDateRangeResultSet, ListInventorySupplyByDateRangeChoreographyExecution from temboo.Library.Amazon.Marketplace.Inventory.ListInventorySupply...
158
251
0.936709
acff79385c85001e6e20f515caa2c531e36de760
158
py
Python
data_log_sheet/apps.py
antonnifo/DIT
7c496f37bab70229cd84c4b33332708ea8cf278b
[ "MIT" ]
null
null
null
data_log_sheet/apps.py
antonnifo/DIT
7c496f37bab70229cd84c4b33332708ea8cf278b
[ "MIT" ]
null
null
null
data_log_sheet/apps.py
antonnifo/DIT
7c496f37bab70229cd84c4b33332708ea8cf278b
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DataLogSheetConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'data_log_sheet'
22.571429
56
0.778481
acff7995e100589dcf57ccfe139afe9f28637f59
558
py
Python
Ejercicios/Diccionario/Ejercicio2 Diccionario.py
Dharian/pythonProject
262d2b58d99befe668d29198bb28c98b75597a34
[ "MIT" ]
null
null
null
Ejercicios/Diccionario/Ejercicio2 Diccionario.py
Dharian/pythonProject
262d2b58d99befe668d29198bb28c98b75597a34
[ "MIT" ]
null
null
null
Ejercicios/Diccionario/Ejercicio2 Diccionario.py
Dharian/pythonProject
262d2b58d99befe668d29198bb28c98b75597a34
[ "MIT" ]
null
null
null
def cargar_diccionario(): diccionario={} for x in range(5): nombre=str(input("Cual es el nombre del producto? ")) valor=int(input("Cual es el valor del producto? ")) diccionario[nombre]= valor imprimir(diccionario) imprimir_mayor100(diccionario) def imprimir(diccionario): p...
27.9
61
0.643369
acff79a23322dd48411f8682d31d40447da4575d
25,078
py
Python
src/scenarios/Overtaking/camera_agent_3.py
SahilDhull/autonomous
378fc7d6c5a9c34c4e915f080fb78ed5c11195d6
[ "MIT" ]
3
2020-02-28T12:04:26.000Z
2022-02-27T00:42:56.000Z
src/scenarios/Overtaking/camera_agent_3.py
SahilDhull/autonomous
378fc7d6c5a9c34c4e915f080fb78ed5c11195d6
[ "MIT" ]
null
null
null
src/scenarios/Overtaking/camera_agent_3.py
SahilDhull/autonomous
378fc7d6c5a9c34c4e915f080fb78ed5c11195d6
[ "MIT" ]
null
null
null
import os import sys import math import time import csv sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/../../') # This is needed for the calls from Matlab from Sim_ATAV.simulation_control.sim_data import SimData from Sim_ATAV.simulation_control.webots_sensor import WebotsSensor from Sim_ATAV.simulat...
51.494867
4,227
0.619069
acff7a0af94c0030ef39cd60884f419119d4f1ed
621
py
Python
problems/A/Pangram.py
deveshbajpai19/CodeForces
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
55
2016-06-19T05:45:15.000Z
2022-03-31T15:18:53.000Z
problems/A/Pangram.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
null
null
null
problems/A/Pangram.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
25
2016-07-29T13:03:15.000Z
2021-09-17T01:45:45.000Z
__author__ = 'Devesh Bajpai' ''' https://codeforces.com/problemset/problem/520/A Solution: Maintain a set of characters seen in the string. In the end, the size of that set should be 26 denoting all characters were observed at least once in the string. Make sure we add characters in one case in the set to deal with u...
22.178571
117
0.68277
acff7a54a98abf24adcb1ffda1b7750d1532e474
46,816
py
Python
django/forms/fields.py
mbox/django
9f31d379a759ba76976a93bb3a39c460020ae124
[ "BSD-3-Clause" ]
null
null
null
django/forms/fields.py
mbox/django
9f31d379a759ba76976a93bb3a39c460020ae124
[ "BSD-3-Clause" ]
null
null
null
django/forms/fields.py
mbox/django
9f31d379a759ba76976a93bb3a39c460020ae124
[ "BSD-3-Clause" ]
null
null
null
""" Field classes. """ from __future__ import unicode_literals import copy import datetime import os import re import sys import warnings from decimal import Decimal, DecimalException from io import BytesIO from django.core import validators from django.core.exceptions import ValidationError from django.forms.utils ...
38.916043
120
0.613359
acff7aae52865ebfdf28487a0998116b897dc77e
15,031
py
Python
pymatgen/io/xyz.py
stichri/pymatgen
b02a0099e3706b674a6729458e9101ee8ec78f44
[ "MIT" ]
null
null
null
pymatgen/io/xyz.py
stichri/pymatgen
b02a0099e3706b674a6729458e9101ee8ec78f44
[ "MIT" ]
null
null
null
pymatgen/io/xyz.py
stichri/pymatgen
b02a0099e3706b674a6729458e9101ee8ec78f44
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Module implementing an (extended) XYZ file object class. """ import re from io import StringIO import pandas as pd import numpy as np from monty.io import zopen from pymatgen.core import IMolecule, IStructure, Molecule,...
32.534632
114
0.534296
acff7adc4d0ae4b4281f9f2211f3a987d20bbc2e
8,246
py
Python
tools/c7n_azure/tests_azure/test_storageutils.py
blade2005/cloud-custodian
21ecdd60ae8a78887cf9d135367b283ce88b0fd9
[ "Apache-2.0" ]
null
null
null
tools/c7n_azure/tests_azure/test_storageutils.py
blade2005/cloud-custodian
21ecdd60ae8a78887cf9d135367b283ce88b0fd9
[ "Apache-2.0" ]
null
null
null
tools/c7n_azure/tests_azure/test_storageutils.py
blade2005/cloud-custodian
21ecdd60ae8a78887cf9d135367b283ce88b0fd9
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2018 Capital One Services, LLC # # 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 ...
42.725389
99
0.697187
acff7c39949a3dd25a3fb5485c3957c490664e2b
2,615
py
Python
app/core/models.py
Robooto/recipe-app-api
ab53c2a37f51031d8048570ee5b05bd6a26a284c
[ "MIT" ]
null
null
null
app/core/models.py
Robooto/recipe-app-api
ab53c2a37f51031d8048570ee5b05bd6a26a284c
[ "MIT" ]
null
null
null
app/core/models.py
Robooto/recipe-app-api
ab53c2a37f51031d8048570ee5b05bd6a26a284c
[ "MIT" ]
null
null
null
import uuid import os from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin from django.conf import settings def recipe_image_file_path(instance, filename): """Generate file path for new recipe image""" ...
28.736264
76
0.671511
acff7c42390735abc5226c8b99d6083de7639f59
4,501
py
Python
extrinsic/bios_codes/models.py
MSR-LIT/MultilingualBias
37dbc7ff4ec2d35edd4f3fe19feb872f2dde128e
[ "MIT" ]
2
2020-07-15T04:18:20.000Z
2020-08-03T02:50:21.000Z
extrinsic/bios_codes/models.py
MSR-LIT/MultilingualBias
37dbc7ff4ec2d35edd4f3fe19feb872f2dde128e
[ "MIT" ]
null
null
null
extrinsic/bios_codes/models.py
MSR-LIT/MultilingualBias
37dbc7ff4ec2d35edd4f3fe19feb872f2dde128e
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from rnn_encoder import GRUEncoder from utils import get_sequences_lengths, softmax_masked, to_device class CountsModel(torch.nn.Module): def __init__(self, input_size, output_size, dropout): super().__init__() self.input_size = input_size self...
33.589552
135
0.666741
acff7daadeb33114646398a0a78250535e73f3aa
2,090
py
Python
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_dygraph.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_dygraph.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_dygraph.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2020 PaddlePaddle 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 app...
32.65625
79
0.681818
acff7e2968664548bce9de246ff305a07ad5aff7
511
py
Python
2020/Python/day10/part1.py
tymscar/Advent-Of-Code
cd7b96b0253191e236bd704b0d8b5540fb3e8ef6
[ "MIT" ]
4
2019-12-08T08:20:53.000Z
2021-12-17T12:04:11.000Z
2020/Python/day10/part1.py
tymscar/AdventOfCode2018
9742ddb6bbbc917062baad87d6b6de75375f1ae8
[ "MIT" ]
null
null
null
2020/Python/day10/part1.py
tymscar/AdventOfCode2018
9742ddb6bbbc917062baad87d6b6de75375f1ae8
[ "MIT" ]
4
2020-12-11T22:10:24.000Z
2021-12-25T22:39:05.000Z
def part_1(): file = open('input.txt', 'r') jolts = [0] highest = 0 one_jumps = 0 three_jumps = 0 for line in file: line = line.strip("\n") jolts.append(int(line)) highest = max(highest, int(line)) jolts.append(highest + 3) jolts = sorted(jolts) f...
18.925926
41
0.518591
acff7e50f2e8e7b11748227837aac0ed14a416a2
6,662
py
Python
rfpye/constants.py
ronaldokun/rfpye
cff49b03887166740bf3b1da40913e22b6523ef2
[ "Apache-2.0" ]
null
null
null
rfpye/constants.py
ronaldokun/rfpye
cff49b03887166740bf3b1da40913e22b6523ef2
[ "Apache-2.0" ]
7
2021-06-03T18:47:23.000Z
2021-10-31T23:41:39.000Z
rfpye/constants.py
ronaldokun/rfpye
cff49b03887166740bf3b1da40913e22b6523ef2
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/04_constants.ipynb (unless otherwise specified). __all__ = ['BYTES_HEADER', 'ENDMARKER', 'EXCLUDE_ATTRS', 'DICT_PROCESSING', 'DICT_UNIT', 'TUNING_BLOCK', 'BYTES_TIMED', 'BYTES_TIMED_NE', 'BYTES_6', 'BYTES_20', 'BYTES_21', 'BYTES_24', 'BYTES_40', 'BYTES_41', 'B...
20.689441
119
0.487241
acff7e7d25bf5fa845cb3a21f14dd5a94841b5c4
5,565
py
Python
tests/test_files_handler.py
skivis/BlackSheep
486f04ba2045f31dd3e188f52c45a275eb150967
[ "MIT" ]
482
2018-12-20T09:30:23.000Z
2021-02-08T18:34:16.000Z
tests/test_files_handler.py
skivis/BlackSheep
486f04ba2045f31dd3e188f52c45a275eb150967
[ "MIT" ]
125
2021-02-15T09:29:51.000Z
2022-03-25T19:48:23.000Z
tests/test_files_handler.py
skivis/BlackSheep
486f04ba2045f31dd3e188f52c45a275eb150967
[ "MIT" ]
27
2021-03-20T16:17:58.000Z
2022-03-02T19:37:42.000Z
import asyncio import os import pathlib import shutil from uuid import uuid4 import pytest from blacksheep.common.files.asyncfs import FileContext, FilesHandler @pytest.fixture() def files_folder(): return pathlib.Path(__file__).parent.absolute() / "files" @pytest.fixture(scope="module") def temp_files_folder...
27.686567
79
0.687332
acff7ffa1f7940a84d279f6e19cd90f1649c374e
23,290
py
Python
src/pip/_internal/operations/prepare.py
finn0/pip
e408f7077f2acceaa3c751f60eb466fcc676af7c
[ "MIT" ]
null
null
null
src/pip/_internal/operations/prepare.py
finn0/pip
e408f7077f2acceaa3c751f60eb466fcc676af7c
[ "MIT" ]
null
null
null
src/pip/_internal/operations/prepare.py
finn0/pip
e408f7077f2acceaa3c751f60eb466fcc676af7c
[ "MIT" ]
null
null
null
"""Prepares a distribution for installation """ # The following comment should be removed at some point in the future. # mypy: strict-optional=False import logging import mimetypes import os import shutil from pip._vendor.packaging.utils import canonicalize_name from pip._vendor.six import PY2 from pip._internal.di...
36.677165
79
0.633791
acff816852b738b5f80913ad40982a2c818ad38d
17,100
py
Python
test/test_models.py
robohouse-delft/torchvision
1fe1e110677ab22f8512293987939d31916b7a8b
[ "BSD-3-Clause" ]
1
2020-10-26T08:53:51.000Z
2020-10-26T08:53:51.000Z
test/test_models.py
robohouse-delft/torchvision
1fe1e110677ab22f8512293987939d31916b7a8b
[ "BSD-3-Clause" ]
null
null
null
test/test_models.py
robohouse-delft/torchvision
1fe1e110677ab22f8512293987939d31916b7a8b
[ "BSD-3-Clause" ]
1
2020-12-27T03:45:56.000Z
2020-12-27T03:45:56.000Z
from common_utils import TestCase, map_nested_tensor_object, freeze_rng_state from collections import OrderedDict from itertools import product import torch import torch.nn as nn import numpy as np from torchvision import models import unittest import traceback import random def set_rng_seed(seed): torch.manual_s...
39.220183
119
0.619532
acff8255155a8b2d331a4bde1acd37fdecb70f43
44,174
py
Python
janitor/functions/conditional_join.py
aliavni/pyjanitor
245012443d01247a591fd0e931b154c7a12a9753
[ "MIT" ]
null
null
null
janitor/functions/conditional_join.py
aliavni/pyjanitor
245012443d01247a591fd0e931b154c7a12a9753
[ "MIT" ]
null
null
null
janitor/functions/conditional_join.py
aliavni/pyjanitor
245012443d01247a591fd0e931b154c7a12a9753
[ "MIT" ]
null
null
null
import operator from enum import Enum from typing import Union, Any, Optional, Hashable import numpy as np import pandas as pd import pandas_flavor as pf from pandas.core.construction import extract_array from pandas.core.dtypes.common import ( is_categorical_dtype, is_datetime64_dtype, is_dtype_equal, ...
31.086559
86
0.622561
acff8278abc4a903f5005748a2a8cde8749a5cca
6,293
py
Python
pyspeckit/spectrum/models/n2hp.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
null
null
null
pyspeckit/spectrum/models/n2hp.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
1
2021-05-14T19:17:41.000Z
2021-05-14T19:17:41.000Z
pyspeckit/spectrum/models/n2hp.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
null
null
null
""" =========== N2H+ fitter =========== Reference for line params: Daniel, F., Dubernet, M.-L., Meuwly, M., Cernicharo, J., Pagani, L. 2005, MNRAS 363, 1083 http://www.strw.leidenuniv.nl/~moldata/N2H+.html http://adsabs.harvard.edu/abs/2005MNRAS.363.1083D Does not yet implement: http://adsabs.harvard.edu/abs/2010Ap...
30.400966
137
0.652789
acff82d11db38f562ad822755b2bdf7c25d70844
615
py
Python
fastlvm/__init__.py
autonlab/fastlvm
05e77da39ca525eacf1a1e3aa2cc551e6cf18dcd
[ "MIT" ]
4
2019-08-06T08:59:28.000Z
2022-03-21T19:36:48.000Z
fastlvm/__init__.py
autonlab/fastlvm
05e77da39ca525eacf1a1e3aa2cc551e6cf18dcd
[ "MIT" ]
10
2019-05-20T20:20:47.000Z
2020-06-04T14:33:04.000Z
fastlvm/__init__.py
autonlab/fastlvm
05e77da39ca525eacf1a1e3aa2cc551e6cf18dcd
[ "MIT" ]
2
2021-03-18T19:29:03.000Z
2022-03-21T13:41:14.000Z
from .covertree import CoverTree from .covertree_classifier import CoverTreeClassifier from .covertree_regressor import CoverTreeRegressor from .kmeans import KMeans from .gmm import GMM from .lda import LDA from .hdp import HDP from .glda import GLDA from .utils import read_corpus #__version__ = '0.0.1' #__author__ =...
25.625
73
0.689431
acff833c12ae018e518ed734f4fa79415a158bed
313
py
Python
test/selenium/src/lib/constants/files.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
test/selenium/src/lib/constants/files.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/selenium/src/lib/constants/files.py
pavelglebov/ggrc-core
f99bfdaa11ad30643d7bc9af67bd84436d298cfa
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """File's labels and properties.""" class TransformationCSVFields(object): """To transformation fields of CSV files.""" # pylint: disable=too-few-public-methods REVISION_DATE = "Revision Date"
31.3
78
0.734824
acff83c239625b03af04f64cd3b43d5c3bc3fa8b
10,356
py
Python
tensorflow/contrib/data/python/kernel_tests/dataset_constructor_op_test.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
13
2017-02-22T02:20:06.000Z
2018-06-06T04:18:03.000Z
tensorflow/contrib/data/python/kernel_tests/dataset_constructor_op_test.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/data/python/kernel_tests/dataset_constructor_op_test.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
3
2017-06-09T10:39:33.000Z
2021-04-08T16:13:30.000Z
# Copyright 2017 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...
43.15
80
0.650058
acff85e553d3ccd1d18d5ed436237694884b2974
65
py
Python
Hello02.py
indraputra147/belajarpython
13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760
[ "MIT" ]
null
null
null
Hello02.py
indraputra147/belajarpython
13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760
[ "MIT" ]
null
null
null
Hello02.py
indraputra147/belajarpython
13ed3e73a75f25cc6c2c0e1fc7af17ffa53e5760
[ "MIT" ]
null
null
null
name = input("Input your name : ") print("Hello, " + name + "!")
21.666667
34
0.553846
acff8615480dc9f5ce4e3a46f2700f7910878135
238
py
Python
beproud/django/commons/templatetags/datetime_tags.py
beproud/bpcommons
c24aed4143d743b1af6c621630ed9faa7e1ccaa4
[ "BSD-2-Clause" ]
2
2016-03-07T01:52:12.000Z
2017-08-30T06:14:43.000Z
beproud/django/commons/templatetags/datetime_tags.py
beproud/bpcommons
c24aed4143d743b1af6c621630ed9faa7e1ccaa4
[ "BSD-2-Clause" ]
18
2015-03-08T13:52:18.000Z
2022-01-25T02:46:09.000Z
beproud/django/commons/templatetags/datetime_tags.py
beproud/bpcommons
c24aed4143d743b1af6c621630ed9faa7e1ccaa4
[ "BSD-2-Clause" ]
2
2015-02-07T01:33:00.000Z
2015-09-08T14:57:44.000Z
# vim:fileencoding=utf-8 from django.template import Library from beproud.django.commons.utils.timeutils import relative_time as rel_time register = Library() @register.filter def relative_time(s): return rel_time(s) if s else ""
19.833333
76
0.777311
acff86558270616b2483226db202b065facfa76f
2,104
py
Python
python/tests/app_sim1.py
multiscale-cosim/EBRAINS-translators
ac48debf85e83674dad4b54aa1daf5419465f805
[ "BSD-3-Clause" ]
1
2021-06-11T09:11:33.000Z
2021-06-11T09:11:33.000Z
python/tests/app_sim1.py
multiscale-cosim/EBRAINS-translators
ac48debf85e83674dad4b54aa1daf5419465f805
[ "BSD-3-Clause" ]
2
2020-07-17T08:34:54.000Z
2020-07-17T08:35:31.000Z
python/tests/app_sim1.py
multiscale-cosim/EBRAINS-translators
ac48debf85e83674dad4b54aa1daf5419465f805
[ "BSD-3-Clause" ]
1
2021-06-08T07:33:21.000Z
2021-06-08T07:33:21.000Z
# ------------------------------------------------------------------------------ # Copyright 2020 Forschungszentrum Jülich GmbH # "Licensed to the Apache Software Foundation (ASF) under one or more contributor # license agreements; and to You under the Apache License, Version 2.0. " # # Forschungszentrum Jülich # In...
41.254902
81
0.68251
acff8664641307d45554f00d31ef5a16816b81a8
1,554
py
Python
api/zeus_api/models/user.py
imthaghost/digift
6d7582204000190d7f11cbf22a4ecabfbd3c45c4
[ "MIT" ]
7
2020-02-19T23:17:59.000Z
2021-04-09T08:51:28.000Z
api/zeus_api/models/user.py
imthaghost/digift
6d7582204000190d7f11cbf22a4ecabfbd3c45c4
[ "MIT" ]
2
2021-03-31T20:04:31.000Z
2021-12-13T20:40:59.000Z
FinalProject/api/zeus_api/models/user.py
SamuelFolledo/SPD1.3
aa28fb738191f315b6627250049db029f8b62585
[ "MIT" ]
3
2020-01-28T17:00:59.000Z
2020-02-02T07:45:48.000Z
"""User Model""" # built in python modules # external python modules import uuid from bcrypt import hashpw, gensalt # local python modules import zeus_api class User(object): def __init__(self, full_name, email='None', password='None'): self.full_name = full_name # users full name # password is ...
33.782609
73
0.621622
acff86b9d3c24f3fa0afa9c4043558f492cfb615
3,865
py
Python
mssql_dataframe/package.py
jwcook23/mssql_dataframe
ba7191e1b159a0b1292bf6825fcdf1fe5ce7c496
[ "MIT" ]
null
null
null
mssql_dataframe/package.py
jwcook23/mssql_dataframe
ba7191e1b159a0b1292bf6825fcdf1fe5ce7c496
[ "MIT" ]
18
2021-08-05T19:29:25.000Z
2022-03-02T16:08:08.000Z
mssql_dataframe/package.py
jwcook23/mssql_dataframe
ba7191e1b159a0b1292bf6825fcdf1fe5ce7c496
[ "MIT" ]
1
2022-02-08T09:14:56.000Z
2022-02-08T09:14:56.000Z
"""Classes for all functionality within mssql_dataframe in a convenient package.""" import warnings from mssql_dataframe.connect import connect from mssql_dataframe.core import ( custom_warnings, custom_errors, conversion, create, modify, read, ) from mssql_dataframe.core.write.write import wri...
38.65
147
0.689521
acff88e6dfc57304e81cb5127d075c062d9066b5
335
py
Python
pdf/word_e_excel.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
pdf/word_e_excel.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
pdf/word_e_excel.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
import csv import docx file = open('names.csv') reader = csv.reader(file) data = list(reader) word = docx.Document() for i in range(len(data)): word.add_paragraph('Melado Productions tem o prazer de convidar') word.add_paragraph(data[i]) word.add_paragraph('para o 1º Festival Melado de Filmes') word.save...
23.928571
69
0.722388
acff88f6626ef20608ac2bebf2f0d7127336b1d9
12,488
py
Python
aalh_iit_rudolphgartnercollection/cleanup-place-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_rudolphgartnercollection/cleanup-place-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_rudolphgartnercollection/cleanup-place-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook filename = 'aalh_iit_rudolphgartnercollection.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 8 maximumcol = 8 minimumrow = 7 maximumrow = 224 iterationrow = 84 desccol = 8 targetcol = 13 rawcovcol = 49 for row in ws.iter_rows(min_row=m...
68.240437
130
0.630926
acff895cef9884f0d2770fb25e5b6ebafb30117e
6,984
py
Python
examples/pwr_run/checkpointing/socket_short/min_par/job9.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/socket_short/min_par/job9.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/socket_short/min_par/job9.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
31.04
118
0.703179
acff896af252fa2ff6dfdb7164ea3338a5a70aa6
2,862
py
Python
util/notebook_helpers.py
ChidinmaKO/noBSLAnotebooks
c0102473f1e6625fa5fb62768d4545059959fa26
[ "MIT" ]
116
2016-04-20T13:56:02.000Z
2022-03-30T08:55:08.000Z
util/notebook_helpers.py
ChidinmaKO/noBSLAnotebooks
c0102473f1e6625fa5fb62768d4545059959fa26
[ "MIT" ]
2
2021-07-01T17:00:38.000Z
2021-07-01T19:34:09.000Z
util/notebook_helpers.py
ChidinmaKO/noBSLAnotebooks
c0102473f1e6625fa5fb62768d4545059959fa26
[ "MIT" ]
29
2017-02-04T05:22:23.000Z
2021-12-28T00:06:50.000Z
import re HEADING_MARKERS = { 1:"# ", 2:"## ", 3:"### ", 4:"#### " } MARKDOWN_CELL_TEMPLATE = """ { "cell_type": "markdown", "metadata": {}, "source": [ "%s" ] },""" EMPTY_CODE_CELL = """ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": tru...
31.108696
86
0.486723
acff8a438c60bbb9228f999031ffb1b74d62b532
632
py
Python
skvalidate/__init__.py
FAST-HEP/scikit-validate
7c6de2dfa8c86bf2be6df2302f9a200902775604
[ "Apache-2.0" ]
2
2019-06-12T17:05:47.000Z
2019-09-25T13:13:31.000Z
skvalidate/__init__.py
FAST-HEP/scikit-validate
7c6de2dfa8c86bf2be6df2302f9a200902775604
[ "Apache-2.0" ]
23
2019-05-21T15:30:11.000Z
2021-07-08T19:48:06.000Z
skvalidate/__init__.py
FAST-HEP/scikit-validate
7c6de2dfa8c86bf2be6df2302f9a200902775604
[ "Apache-2.0" ]
2
2019-05-21T15:32:21.000Z
2021-05-17T18:43:36.000Z
# -*- coding: utf-8 -*- """Top-level package for scikit-validate.""" import logging import os __author__ = """FAST""" __email__ = 'fast-hep@cern.ch' __version__ = '0.4.3' __skvalidate_root__ = os.path.dirname(__file__) # logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) logger.propagate =...
20.387097
57
0.713608
acff8add0e73df01acf5f14f35dc9b1446643467
3,254
py
Python
test/serialbox-python/sdb/regression/create_data.py
elsagermann/serialbox
c590561d0876f3ce9a07878e4862a46003a37879
[ "BSD-2-Clause" ]
10
2017-04-18T14:28:07.000Z
2019-10-23T03:22:16.000Z
test/serialbox-python/sdb/regression/create_data.py
elsagermann/serialbox
c590561d0876f3ce9a07878e4862a46003a37879
[ "BSD-2-Clause" ]
172
2017-02-16T14:24:33.000Z
2019-11-06T08:46:34.000Z
test/serialbox-python/sdb/regression/create_data.py
elsagermann/serialbox
c590561d0876f3ce9a07878e4862a46003a37879
[ "BSD-2-Clause" ]
21
2016-12-15T15:22:02.000Z
2019-10-02T09:40:10.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- ##===-----------------------------------------------------------------------------*- Python -*-===## ## ## S E R I A L B O X ## ## This file is distributed under terms of BSD license. ## See LICENSE.txt for more information. ## ##===----------...
30.12963
112
0.503688
acff8b155e7f0e280f50878172703ea1bb8e0f61
977
py
Python
PrintResults.py
jhlau/topic-coherence-sensitivity
fb33fc72da83bee400b112a54317d9fd2fb66afe
[ "MIT" ]
24
2016-04-08T14:32:42.000Z
2021-11-25T20:06:08.000Z
PrintResults.py
jhlau/topic-coherence-sensitivity
fb33fc72da83bee400b112a54317d9fd2fb66afe
[ "MIT" ]
3
2019-09-07T15:49:14.000Z
2019-09-19T04:27:21.000Z
PrintResults.py
jhlau/topic-coherence-sensitivity
fb33fc72da83bee400b112a54317d9fd2fb66afe
[ "MIT" ]
3
2019-08-16T02:26:42.000Z
2019-11-13T19:41:31.000Z
""" Stdin: N/A Stdout: N/A Author: Jey Han Lau Date: Mar 15 """ import argparse import sys import cPickle import codecs #parser arguments desc = "Print topic coherence results" parser = argparse.ArgumentParser(description=desc) ##################### #positional argument# ##########...
19.938776
87
0.596725
acff8b2450ee6b7486850d1bbd5b7645d03f6a63
15,969
py
Python
lib/command.py
sergei-dyshel/tmux-clost
699723565cfecc2ef2d6ededb258d57d467792f4
[ "MIT" ]
null
null
null
lib/command.py
sergei-dyshel/tmux-clost
699723565cfecc2ef2d6ededb258d57d467792f4
[ "MIT" ]
null
null
null
lib/command.py
sergei-dyshel/tmux-clost
699723565cfecc2ef2d6ededb258d57d467792f4
[ "MIT" ]
null
null
null
import os.path import re import inspect import sys import json import argparse import shlex import pipes from .environment import env from .config import config from . import (alias, tmux, log, history, common, utils, output, clipboard, context, split, snippet) class Command(object): requires_conte...
34.415948
118
0.580124
acff8b8911d548c627355d2c60ecc17fb876f35c
1,949
py
Python
libs/configs/DOTA2.0/r2cnn/cfgs_res50_dota2.0_r2cnn_v1.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
850
2020-10-27T08:51:54.000Z
2022-03-30T15:12:06.000Z
libs/configs/DOTA2.0/r2cnn/cfgs_res50_dota2.0_r2cnn_v1.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
94
2020-12-01T02:18:47.000Z
2022-03-30T08:14:27.000Z
libs/configs/DOTA2.0/r2cnn/cfgs_res50_dota2.0_r2cnn_v1.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
149
2020-10-29T03:30:32.000Z
2022-03-29T09:53:23.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import numpy as np from libs.configs._base_.models.faster_rcnn_r50_fpn import * from libs.configs._base_.datasets.dota_detection import * from libs.configs._base_.schedules.schedule_1x import * from dataloader.pretrained_weights....
28.661765
72
0.779887
acff8bf0444949898df7046de7e8b5c72f7b3230
1,169
py
Python
bdd_mtl/configs/mtl/bdd_dla34up_d_non-city30k.py
XDong18/bdd-mtl
90459c090a2bc4a89a929740e5cf5d37c1b34a4b
[ "BSD-3-Clause" ]
null
null
null
bdd_mtl/configs/mtl/bdd_dla34up_d_non-city30k.py
XDong18/bdd-mtl
90459c090a2bc4a89a929740e5cf5d37c1b34a4b
[ "BSD-3-Clause" ]
null
null
null
bdd_mtl/configs/mtl/bdd_dla34up_d_non-city30k.py
XDong18/bdd-mtl
90459c090a2bc4a89a929740e5cf5d37c1b34a4b
[ "BSD-3-Clause" ]
null
null
null
from bdd_mtl_factory import get_configs import sys ################################################################################ # # Format of the command to get configs: # # $MODEL_NAME-$TASKS # # task correspondence: # l - Lane marking # r - Drivable area # s - Semantic segmentation # d - Dete...
30.763158
95
0.578272
acff8d94c64eea3ed7f2f8e2a83808db761638c1
298
py
Python
CTFShow/pwn02.py
Don2025/CTFwriteUp
41e0a5bf87a1a02dd1548e621853c145ff64cedb
[ "MIT" ]
2
2022-03-20T02:27:59.000Z
2022-03-20T02:28:02.000Z
CTFShow/pwn02.py
Don2025/CTFwriteUp
41e0a5bf87a1a02dd1548e621853c145ff64cedb
[ "MIT" ]
null
null
null
CTFShow/pwn02.py
Don2025/CTFwriteUp
41e0a5bf87a1a02dd1548e621853c145ff64cedb
[ "MIT" ]
null
null
null
from pwn import * io = remote('pwn.challenge.ctf.show', 28185) e = ELF('stack') address = e.symbols['stack'] log.success('stack_func_address => %s' % hex(address).upper()) payload = b'a'*(0x9 + 0x4) + p32(address) # payload = b'a'*(0x9 + 0x4) + p32(0x804850F) io.sendline(payload) io.interactive()
29.8
62
0.671141
acff8e4b8d9f35cefd647587de00025ef953861b
2,461
py
Python
jina/peapods/runtimes/gateway/http/__init__.py
vishalbelsare/jina
ae72cc5ce1f7e7f4c662e72e96ea21dddc28bf43
[ "Apache-2.0" ]
15,179
2020-04-28T10:23:56.000Z
2022-03-31T14:35:25.000Z
jina/peapods/runtimes/gateway/http/__init__.py
manavshah123/jina
f18b04eb82d18a3c554e2892bbae4b95fc0cb13e
[ "Apache-2.0" ]
3,912
2020-04-28T13:01:29.000Z
2022-03-31T14:36:46.000Z
jina/peapods/runtimes/gateway/http/__init__.py
manavshah123/jina
f18b04eb82d18a3c554e2892bbae4b95fc0cb13e
[ "Apache-2.0" ]
1,955
2020-04-28T10:50:49.000Z
2022-03-31T12:28:34.000Z
import os import asyncio from jina import __default_host__ from .....importer import ImportExtensions from ...zmq.asyncio import AsyncNewLoopRuntime from .app import get_fastapi_app __all__ = ['HTTPRuntime'] class HTTPRuntime(AsyncNewLoopRuntime): """Runtime for HTTP interface.""" async def async_setup(se...
29.297619
83
0.570093
acff8e824f8507d338bc4bf18d7a453261e9c447
953
py
Python
tests/test_phishing_detection.py
abhi-parmar/phishing_detection
7442ad7030ea986af0dabf72600dfb8ef16a6dfa
[ "MIT" ]
5
2019-07-20T19:39:33.000Z
2020-10-08T14:16:53.000Z
tests/test_phishing_detection.py
abhi-parmar/phishing_detection
7442ad7030ea986af0dabf72600dfb8ef16a6dfa
[ "MIT" ]
6
2019-07-20T18:03:38.000Z
2021-02-02T22:05:41.000Z
tests/test_phishing_detection.py
abhi-parmar/phishing_detection
7442ad7030ea986af0dabf72600dfb8ef16a6dfa
[ "MIT" ]
1
2019-07-20T17:57:55.000Z
2019-07-20T17:57:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `phishing_detection` package.""" import unittest from click.testing import CliRunner from phishing_detection import phishing_detection from phishing_detection import cli class TestPhishing_detection(unittest.TestCase): """Tests for `phishing_detection...
27.228571
74
0.66212
acff8ee104dc46d6a70421edd0fbe56f39d3540b
12,408
py
Python
tests/integration/chat/v2/service/test_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
tests/integration/chat/v2/service/test_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
tests/integration/chat/v2/service/test_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class ChannelTestCase(Integrati...
46.646617
166
0.580674
acff8f7067cb8b1a9e22205ca617e1d08c5c1c85
4,706
py
Python
content/exercise/autocorrelation_mpi.py
qianglise/HPDA-Python
93eefae38569bce35e82586c17ed4a164c3db1c4
[ "CC-BY-4.0", "MIT" ]
null
null
null
content/exercise/autocorrelation_mpi.py
qianglise/HPDA-Python
93eefae38569bce35e82586c17ed4a164c3db1c4
[ "CC-BY-4.0", "MIT" ]
17
2022-03-01T13:12:11.000Z
2022-03-31T09:55:45.000Z
content/exercise/autocorrelation_mpi.py
qianglise/HPDA-Python
93eefae38569bce35e82586c17ed4a164c3db1c4
[ "CC-BY-4.0", "MIT" ]
2
2022-03-01T16:33:10.000Z
2022-03-07T07:48:03.000Z
import sys import numpy as np from wordcount import load_word_counts, load_text, DELIMITERS import time from mpi4py import MPI def preprocess_text(text): """ Remove delimiters, split lines into words and remove whitespaces, and make lowercase. Return list of all words in the text. """ clean_text ...
32.013605
72
0.624522
acff911f212218a5e29506367a0c1bd745837ca1
7,981
py
Python
stix2/v20/common.py
maybe-sybr/cti-python-stix2
e9d417de2592c0c7367c312ca0fd25dc8f8a9818
[ "BSD-3-Clause" ]
1
2021-06-23T09:44:17.000Z
2021-06-23T09:44:17.000Z
stix2/v20/common.py
maybe-sybr/cti-python-stix2
e9d417de2592c0c7367c312ca0fd25dc8f8a9818
[ "BSD-3-Clause" ]
null
null
null
stix2/v20/common.py
maybe-sybr/cti-python-stix2
e9d417de2592c0c7367c312ca0fd25dc8f8a9818
[ "BSD-3-Clause" ]
null
null
null
"""STIX 2.0 Common Data Types and Properties.""" from collections import OrderedDict import copy from ..custom import _custom_marking_builder from ..markings import _MarkingsMixin from ..markings.utils import check_tlp_marking from ..properties import ( HashesProperty, IDProperty, ListProperty, Property, Referenc...
36.778802
149
0.677609
acff915344dd3b64dafcb47e057a363f4e6c29b9
3,622
py
Python
2019/day10.py
gcalmettes/AdventOfCode2017
374347c981b603981b7d0b21dad3fc594b126c82
[ "MIT" ]
1
2021-12-12T22:59:49.000Z
2021-12-12T22:59:49.000Z
2019/day10.py
gcalmettes/AdventOfCode2017
374347c981b603981b7d0b21dad3fc594b126c82
[ "MIT" ]
null
null
null
2019/day10.py
gcalmettes/AdventOfCode2017
374347c981b603981b7d0b21dad3fc594b126c82
[ "MIT" ]
1
2019-12-03T05:37:49.000Z
2019-12-03T05:37:49.000Z
from typing import List, Dict, NamedTuple, Tuple, Iterator import math from collections import defaultdict class Asteroid(NamedTuple): x: int y: int Asteroids = List[Asteroid] def parse(raw: str) -> Asteroids: return [ Asteroid(x, y) for y, line in enumerate(raw.strip().split("\n")) ...
24.146667
101
0.47598
acff916c9c13ec45d8705a7c78687da27d11f532
92
py
Python
parameters_8560.py
ksuhr1/CMPS183-hw3
d0450827912b7ec355a9e433c0c7e33d1b2610a0
[ "BSD-3-Clause" ]
null
null
null
parameters_8560.py
ksuhr1/CMPS183-hw3
d0450827912b7ec355a9e433c0c7e33d1b2610a0
[ "BSD-3-Clause" ]
null
null
null
parameters_8560.py
ksuhr1/CMPS183-hw3
d0450827912b7ec355a9e433c0c7e33d1b2610a0
[ "BSD-3-Clause" ]
null
null
null
password="pbkdf2(1000,20,sha512)$b24904a15adb4514$85f395bc9c1f6be8227d9f7540e54127cd4f0fdf"
46
91
0.891304