hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7ceab378038506dba92e4b8d3ecd8a07fc74f4a2
1,469
py
Python
tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
1
2020-12-23T12:34:00.000Z
2020-12-23T12:34:00.000Z
tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
tests/unit/peapods/runtimes/remote/ssh/test_ssh_remote.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
import pytest from jina.enums import RemoteAccessType from jina.flow import Flow from jina.parser import set_pea_parser, set_pod_parser from jina.peapods.pods import BasePod from jina.peapods.runtimes.remote.ssh import SSHRuntime from jina.proto import jina_pb2 @pytest.mark.skip('works locally, but until I findout h...
32.644444
96
0.701157
0
0
0
0
1,194
0.812798
0
0
353
0.2403
7ceacff0df961aecfe4df023a30c5731860a145d
181
py
Python
waio/factory/models/basic.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
24
2021-11-08T13:37:05.000Z
2022-03-24T12:49:54.000Z
waio/factory/models/basic.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
1
2022-01-19T03:11:58.000Z
2022-01-19T03:13:30.000Z
waio/factory/models/basic.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
5
2021-11-11T04:11:12.000Z
2022-02-15T10:41:58.000Z
from dataclasses import dataclass @dataclass class PayloadSender: phone: int name: str @dataclass class PayloadBaseModel: sender: PayloadSender payload_id: str
12.066667
33
0.740331
118
0.651934
0
0
140
0.773481
0
0
0
0
7cec971c07d5ed98dc62f84b80e44472db92d7d3
531
py
Python
Uber/validExpression.py
Nithanaroy/random_scripts
908e539e2b7050a09e03b4fc0d2621b23733d65a
[ "MIT" ]
null
null
null
Uber/validExpression.py
Nithanaroy/random_scripts
908e539e2b7050a09e03b4fc0d2621b23733d65a
[ "MIT" ]
null
null
null
Uber/validExpression.py
Nithanaroy/random_scripts
908e539e2b7050a09e03b4fc0d2621b23733d65a
[ "MIT" ]
null
null
null
def main(expr): openingParams = '({[' closingParams = ')}]' stack = [] for c in expr: if c in openingParams: stack.append(c) elif c in closingParams: topOfStack = stack.pop() openingIndex = openingParams.find(topOfStack) closingIndex = clos...
25.285714
57
0.551789
0
0
0
0
0
0
0
0
29
0.054614
7cee12e1d9ee7123f1ed98d591b1f1a9ee9c89f2
10,845
py
Python
sgains/tool.py
KrasnitzLab/sgains
501c42bfdad4542725f00ca8199983eccf8c0b3f
[ "MIT" ]
1
2017-09-08T05:09:59.000Z
2017-09-08T05:09:59.000Z
sgains/tool.py
KrasnitzLab/sgains
501c42bfdad4542725f00ca8199983eccf8c0b3f
[ "MIT" ]
35
2017-07-31T04:13:40.000Z
2019-09-06T13:32:17.000Z
sgains/tool.py
KrasnitzLab/sgains
501c42bfdad4542725f00ca8199983eccf8c0b3f
[ "MIT" ]
3
2017-09-08T05:10:34.000Z
2019-06-11T09:06:41.000Z
import os import sys from copy import deepcopy import traceback import functools from collections import defaultdict import yaml from argparse import ArgumentParser,\ RawDescriptionHelpFormatter, ArgumentDefaultsHelpFormatter from sgains.configuration.parser import SgainsValidator, Config from sgains.configurat...
30.635593
79
0.616136
0
0
0
0
0
0
0
0
2,334
0.215214
7cee8f95a77e8d2ded7b9467b41b6c25c5fb7cdf
3,135
py
Python
lib/modeling/VGG16.py
rsumner31/Detectron
021685d42f7e8ac097e2bcf79fecb645f211378e
[ "Apache-2.0" ]
429
2018-04-28T00:01:57.000Z
2021-12-18T12:53:22.000Z
lib/modeling/VGG16.py
absorbguo/Detectron
2f8161edc3092b0382cab535c977a180a8b3cc4d
[ "Apache-2.0" ]
54
2018-12-26T13:04:32.000Z
2020-04-24T04:09:30.000Z
lib/modeling/VGG16.py
absorbguo/Detectron
2f8161edc3092b0382cab535c977a180a8b3cc4d
[ "Apache-2.0" ]
96
2018-12-24T05:12:36.000Z
2021-04-23T15:51:21.000Z
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
41.25
78
0.648166
0
0
0
0
0
0
0
0
1,295
0.413078
7ceed4646921c1456f0b28f435da564f3dae7896
2,913
py
Python
setup.py
yangjing1127/xmind2testcase
49a581159a0d8e028f89939777399493662df111
[ "MIT" ]
537
2018-12-26T03:02:54.000Z
2022-03-30T17:41:53.000Z
setup.py
yangjing1127/xmind2testcase
49a581159a0d8e028f89939777399493662df111
[ "MIT" ]
49
2019-01-08T09:59:15.000Z
2022-03-30T00:58:47.000Z
setup.py
yangjing1127/xmind2testcase
49a581159a0d8e028f89939777399493662df111
[ "MIT" ]
190
2018-12-29T07:09:48.000Z
2022-03-31T01:55:02.000Z
#!/usr/env/bin python # -*- coding: utf-8 -*- import io import os import sys from shutil import rmtree from setuptools import setup, find_packages, Command about = {} here = os.path.abspath(os.path.dirname(__file__)) with io.open(os.path.join(here, 'xmind2testcase', '__about__.py'), encoding='utf-8') as f: # custom ...
28.281553
100
0.604875
1,310
0.449708
0
0
124
0.042568
0
0
1,228
0.421559
7cef0095a10852826052b744b28e1db78c985b8d
2,670
py
Python
skultrafast/styles.py
Tillsten/skultrafast
778eaf1539b6d85f21ac53b011472605673ef7e8
[ "BSD-3-Clause" ]
10
2019-02-17T15:57:51.000Z
2021-11-15T02:00:33.000Z
skultrafast/styles.py
cZahn/skultrafast
23572ba9ea32238f34a8a15390fb572ecd8bc6fa
[ "BSD-3-Clause" ]
1
2019-01-17T11:56:38.000Z
2019-07-11T15:30:58.000Z
skultrafast/styles.py
cZahn/skultrafast
23572ba9ea32238f34a8a15390fb572ecd8bc6fa
[ "BSD-3-Clause" ]
6
2018-11-08T14:11:06.000Z
2021-09-01T14:53:02.000Z
# -*- coding: utf-8 -*- """ Created on Thu Sep 17 21:33:24 2015 @author: Tillsten """ import matplotlib import matplotlib.pyplot as plt import numpy as np tableau20 = [(31, 119, 180), (174, 199, 232), (255, 127, 14), (255, 187, 120), (44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 15...
37.083333
83
0.522846
0
0
0
0
0
0
0
0
843
0.31573
7cef6acdfa1f2191c94118bdb071a657a3a738d4
3,634
py
Python
src/oci/devops/models/github_build_run_source.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-09-10T22:09:45.000Z
2021-12-24T17:00:07.000Z
src/oci/devops/models/github_build_run_source.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/devops/models/github_build_run_source.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
33.648148
245
0.660704
3,050
0.839296
0
0
3,080
0.847551
0
0
2,349
0.646395
7cf24c69a41740779ba55ee7c2d11c15c8feec7e
12,133
py
Python
aiida_fleur/tests/tools/test_common_fleur_wf.py
anoopkcn/aiida-fleur
5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f
[ "MIT" ]
null
null
null
aiida_fleur/tests/tools/test_common_fleur_wf.py
anoopkcn/aiida-fleur
5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f
[ "MIT" ]
null
null
null
aiida_fleur/tests/tools/test_common_fleur_wf.py
anoopkcn/aiida-fleur
5d4cc2092b7c3ce5402f1d4b89787eae53b2e60f
[ "MIT" ]
null
null
null
from __future__ import absolute_import import pytest import os # is_code def test_is_code_interface(fixture_code): from aiida_fleur.tools.common_fleur_wf import is_code assert is_code('random_string') is None assert is_code('fleur.inpGUT') is None assert is_code(99999) is None code = fixture_cod...
43.332143
164
0.597461
0
0
0
0
622
0.051265
0
0
4,119
0.339487
7cf2ae07e37425db960a133be2b5c330c6ba9916
36,957
py
Python
src/probnum/random_variables/_random_variable.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
src/probnum/random_variables/_random_variable.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
2
2020-12-28T19:37:16.000Z
2020-12-28T19:37:31.000Z
src/probnum/random_variables/_random_variable.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
""" Random Variables. This module implements random variables. Random variables are the main in- and outputs of probabilistic numerical methods. """ from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar, Union import numpy as np from probnum import utils as _utils from probnum.type import ( ...
34.668856
107
0.596152
36,269
0.981384
0
0
10,542
0.28525
0
0
15,095
0.408448
7cf38c52d649f28843e5da3730409c34a52dc82f
8,026
py
Python
platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
platform/gcutil/lib/google_compute_engine/gcutil_lib/address_cmds_test.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
2
2020-07-25T05:03:06.000Z
2020-11-04T04:55:57.000Z
# Copyright 2012 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 by applicable law or a...
32.362903
75
0.705457
7,016
0.874159
0
0
0
0
0
0
1,777
0.221405
7cf46d5f8307606187101597e795384399b48446
804
py
Python
vote/migrations/0005_auto_20210204_1900.py
jnegrete2005/JuradoFMS
25848037e51de1781c419155615d0fb41edc07ec
[ "MIT" ]
2
2021-02-24T21:57:50.000Z
2021-03-15T08:44:09.000Z
vote/migrations/0005_auto_20210204_1900.py
jnegrete2005/JuradoFMS
25848037e51de1781c419155615d0fb41edc07ec
[ "MIT" ]
null
null
null
vote/migrations/0005_auto_20210204_1900.py
jnegrete2005/JuradoFMS
25848037e51de1781c419155615d0fb41edc07ec
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-05 00:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vote', '0004_auto_20210131_1621'), ] operations = [ migrations.AlterField( model_name='com...
32.16
163
0.655473
673
0.837065
0
0
0
0
0
0
134
0.166667
7cf5ba1b8968aa69e6a1b87247368728da9bf55b
11,847
py
Python
tools/wasm-sourcemap.py
ngzhian/emscripten
94b1555a09f869d65354a2033da724ce77a43106
[ "MIT" ]
1
2019-08-16T23:42:09.000Z
2019-08-16T23:42:09.000Z
tools/wasm-sourcemap.py
ngzhian/emscripten
94b1555a09f869d65354a2033da724ce77a43106
[ "MIT" ]
null
null
null
tools/wasm-sourcemap.py
ngzhian/emscripten
94b1555a09f869d65354a2033da724ce77a43106
[ "MIT" ]
1
2019-09-26T20:05:46.000Z
2019-09-26T20:05:46.000Z
#!/usr/bin/env python # Copyright 2018 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. """Utility tools that extracts DWARF informatio...
35.258929
171
0.653668
726
0.061281
0
0
0
0
0
0
3,596
0.303537
7cf6644c8071f50f1d98ec6acd6e40c622a3ce59
12,540
py
Python
pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ENTERASYS-NAC-APPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ENTERASYS-NAC-APPLIANCE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-NAC-APPLIANCE-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:04:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python versio...
145.813953
1,653
0.817384
0
0
0
0
0
0
0
0
4,347
0.346651
7cf7d0d22a5ee01c1d25faa33b9b8f99ef2f0210
3,300
py
Python
Unsupervised/pix2pixHD/extract_frames.py
Kebniss/AutoDetect
44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8
[ "MIT" ]
1
2019-07-25T02:16:32.000Z
2019-07-25T02:16:32.000Z
Unsupervised/pix2pixHD/extract_frames.py
Kebniss/AutoDetect
44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8
[ "MIT" ]
null
null
null
Unsupervised/pix2pixHD/extract_frames.py
Kebniss/AutoDetect
44ca4d6930ef5fbf044ebeed5c9fd925f04bc1a8
[ "MIT" ]
null
null
null
import os import cv2 import argparse from utils import * from tqdm import tqdm from glob import glob from pathlib import Path def _extract_frames(video_path, parent, start=0, sampling_f=1): vidcap = cv2.VideoCapture(video_path) success, image = success, image = vidcap.read() count = -1 saved = 0 p...
39.285714
89
0.677879
0
0
0
0
0
0
0
0
1,379
0.417879
7cf872b37fe89e4b5c0f3a287b43439b1d433523
2,923
py
Python
burp-filter-options/filter-options.py
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
21
2018-09-10T03:09:17.000Z
2022-02-07T09:20:03.000Z
burp-filter-options/filter-options.py
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
1
2019-11-10T21:17:23.000Z
2020-01-19T04:36:19.000Z
burp-filter-options/filter-options.py
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
8
2019-10-11T23:29:58.000Z
2021-05-26T12:11:43.000Z
# modified "example traffic redirector" # https://raw.githubusercontent.com/PortSwigger/example-traffic-redirector/master/python/TrafficRedirector.py # Idea: https://github.com/pajswigger/filter-options/blob/master/src/filter-options.kt # Usage: Put both files in a directory and add filter-options.py to Burp. Nees ...
31.095745
121
0.659254
1,993
0.681834
0
0
0
0
0
0
1,344
0.459802
7cf8865345a71c46f4e1edec308e018d877fedb9
11,128
py
Python
AppServer/google/appengine/tools/devappserver2/login.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/tools/devappserver2/login.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/tools/devappserver2/login.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
31.885387
80
0.689162
1,943
0.174605
0
0
0
0
0
0
6,079
0.54628
7cf8d4321937161cb10d000e0dbd87e721b04ad3
7,060
py
Python
sdks/python/apache_beam/runners/portability/job_server.py
noah-goodrich/beam
5a851b734f53206c20efe08d93d15760bbc15b0c
[ "Apache-2.0" ]
1
2019-12-05T04:36:46.000Z
2019-12-05T04:36:46.000Z
sdks/python/apache_beam/runners/portability/job_server.py
noah-goodrich/beam
5a851b734f53206c20efe08d93d15760bbc15b0c
[ "Apache-2.0" ]
14
2020-02-12T22:20:41.000Z
2021-11-09T19:41:23.000Z
sdks/python/apache_beam/runners/portability/job_server.py
violalyu/beam
dd605e568d70b1a6ebea60c15b2aec3e240f3914
[ "Apache-2.0" ]
1
2021-03-21T23:28:23.000Z
2021-03-21T23:28:23.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 us...
33.619048
79
0.703258
5,854
0.829178
0
0
220
0.031161
0
0
2,156
0.305382
7cf950bf294a91d7beefe8c59885eaed2c328e0e
14,856
py
Python
sympy/printing/pycode.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/pycode.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/pycode.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from functools import wraps from itertools import chain from sympy.core import sympify from .precedence import precedence from .codeprinter import CodePrinter _kw_py2and3 = { 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finall...
34.388889
119
0.601642
11,297
0.760433
0
0
0
0
0
0
4,212
0.283522
7cfa416e684eef42a41f05552ac51704b017a9e1
1,471
py
Python
arguments_setting.py
Projectoy/ml_framework
f3d37d632a1aec314eb186a3da6d174a5dc4beee
[ "Apache-2.0" ]
null
null
null
arguments_setting.py
Projectoy/ml_framework
f3d37d632a1aec314eb186a3da6d174a5dc4beee
[ "Apache-2.0" ]
null
null
null
arguments_setting.py
Projectoy/ml_framework
f3d37d632a1aec314eb186a3da6d174a5dc4beee
[ "Apache-2.0" ]
null
null
null
import argparse, os class ArgumentManager: def __init__(self, model_list): self.model_list = model_list self.args = self.get_input_arguments() self.validate_arguments() def get_input_arguments(self): parser = argparse.ArgumentParser(description='Process some integers.') ...
36.775
119
0.680489
1,450
0.985724
0
0
0
0
0
0
305
0.207342
7cfa745e3890fcda9ffd072f599dc7be286f99a5
11,039
py
Python
fileHandler.py
Omer-Sella/ldpc
955c0bc32236e171365cbbb88f00574302771610
[ "MIT" ]
null
null
null
fileHandler.py
Omer-Sella/ldpc
955c0bc32236e171365cbbb88f00574302771610
[ "MIT" ]
null
null
null
fileHandler.py
Omer-Sella/ldpc
955c0bc32236e171365cbbb88f00574302771610
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 28 12:10:11 2019 @author: Omer """ ## File handler ## This file was initially intended purely to generate the matrices for the near earth code found in: https://public.ccsds.org/Pubs/131x1o2e2s.pdf ## The values from the above pdf were copied manually to a txt file, and ...
38.197232
172
0.621343
0
0
0
0
0
0
0
0
2,191
0.198478
7cfaab0b77af0b6c7c138ff09a0a82244c391f57
12,133
py
Python
stage/configuration/test_amazon_s3_origin.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
null
null
null
stage/configuration/test_amazon_s3_origin.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
null
null
null
stage/configuration/test_amazon_s3_origin.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
1
2019-10-29T08:46:11.000Z
2019-10-29T08:46:11.000Z
import logging import pytest from streamsets.testframework.markers import aws, sdc_min_version from streamsets.testframework.utils import get_random_string logger = logging.getLogger(__name__) S3_SANDBOX_PREFIX = 'sandbox' LOG_FIELD_MAPPING = [{'fieldPath': '/date', 'group': 1}, {'fieldPath': '/...
46.84556
334
0.656556
0
0
0
0
5,755
0.474326
0
0
5,255
0.433116
7cfb56c23b97ce934940b9509f58841e0ebbb0fe
3,493
py
Python
model_building/svr_experiment_configuration.py
eubr-atmosphere/a-MLLibrary
b6ba472baacea6d793ab4f03275cdfa874e83bc3
[ "Apache-2.0" ]
3
2021-09-19T17:06:31.000Z
2021-12-10T23:21:21.000Z
model_building/svr_experiment_configuration.py
eubr-atmosphere/a-MLLibrary
b6ba472baacea6d793ab4f03275cdfa874e83bc3
[ "Apache-2.0" ]
null
null
null
model_building/svr_experiment_configuration.py
eubr-atmosphere/a-MLLibrary
b6ba472baacea6d793ab4f03275cdfa874e83bc3
[ "Apache-2.0" ]
1
2021-09-27T13:54:12.000Z
2021-09-27T13:54:12.000Z
""" Copyright 2019 Marco Lattuada Copyright 2019 Danilo Ardagna 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...
38.811111
111
0.692242
2,815
0.805898
0
0
0
0
0
0
1,982
0.567421
7cfbb1bacec44e19e996fa070cd83150534767b0
1,000
py
Python
src/scs_host/sys/host_gpi.py
south-coast-science/scs_host_rpi
a02afde3fd2e1f2b8c6dc08beef8c74039108a64
[ "MIT" ]
null
null
null
src/scs_host/sys/host_gpi.py
south-coast-science/scs_host_rpi
a02afde3fd2e1f2b8c6dc08beef8c74039108a64
[ "MIT" ]
1
2020-07-13T14:54:08.000Z
2020-11-16T10:11:04.000Z
src/scs_host/sys/host_gpi.py
south-coast-science/scs_host_rpi
a02afde3fd2e1f2b8c6dc08beef8c74039108a64
[ "MIT" ]
2
2017-11-07T16:59:02.000Z
2019-09-29T15:39:37.000Z
""" Created on 12 May 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ from scs_host.sys.host_gpio import HostGPIO # -------------------------------------------------------------------------------------------------------------------- # noinspection PyUnusedLocal,PyAbstractClass class HostGPI(Hos...
25
118
0.346
695
0.695
0
0
66
0.066
0
0
619
0.619
7cfc7ea83eddae1dd85543f912c4d06746387bfa
492
py
Python
30-39/35. final_class/final_class.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
1
2021-11-30T05:03:24.000Z
2021-11-30T05:03:24.000Z
30-39/35. final_class/final_class.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
null
null
null
30-39/35. final_class/final_class.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
2
2021-04-18T05:26:43.000Z
2021-11-28T18:46:43.000Z
class Unsubclassable: def __init_subclass__(cls, **kwargs): raise TypeError('Unacceptable base type') def prevent_subclassing(): raise TypeError('Unacceptable base type') def final_class(cls): setattr(cls, '__init_subclass__', prevent_subclassing) return cls class UnsubclassableType(type)...
22.363636
60
0.693089
313
0.636179
0
0
0
0
0
0
86
0.174797
7cfcc11fbbb1d31705e442bed5fe7d622b04a2bd
4,472
py
Python
benchmark/AMS/HIGGSTES/TP.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
2
2019-03-20T09:05:02.000Z
2019-03-20T15:23:44.000Z
benchmark/AMS/HIGGSTES/TP.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
benchmark/AMS/HIGGSTES/TP.py
victor-estrade/SystGradDescent
822e7094290301ec47a99433381a8d6406798aff
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals # Command line : # python -m benchmark.VAR.GG.TP import os import logging from config import SEED from config import _ERROR from co...
30.841379
97
0.687165
1,186
0.265146
0
0
0
0
0
0
551
0.123184
7cfd01e468c618706379749c3f05781c60e2fe7b
1,883
py
Python
papermill/tests/test_adl.py
dmartinpro/papermill
fbb0a60c97cde70e3b278f778cbd366cf54f83f0
[ "BSD-3-Clause" ]
null
null
null
papermill/tests/test_adl.py
dmartinpro/papermill
fbb0a60c97cde70e3b278f778cbd366cf54f83f0
[ "BSD-3-Clause" ]
null
null
null
papermill/tests/test_adl.py
dmartinpro/papermill
fbb0a60c97cde70e3b278f778cbd366cf54f83f0
[ "BSD-3-Clause" ]
null
null
null
import unittest from ..adl import ADL import six if six.PY3: from unittest.mock import Mock, MagicMock else: from mock import Mock, MagicMock class ADLTest(unittest.TestCase): """ Tests for `ADL` """ def setUp(self): self.ls = Mock(return_value=["foo", "bar", "baz"]) self.fak...
36.211538
97
0.670738
1,729
0.918216
0
0
0
0
0
0
406
0.215613
7cfd39821c7ad2ac471f6e189d3999d3560e833a
259
py
Python
users/views.py
AnvarKhan/django-python
bd54e44deb290f43ea5982c2ca9f37cd6c946879
[ "Apache-2.0" ]
1
2022-02-05T15:07:25.000Z
2022-02-05T15:07:25.000Z
users/views.py
AnvarKhan/django-python
bd54e44deb290f43ea5982c2ca9f37cd6c946879
[ "Apache-2.0" ]
null
null
null
users/views.py
AnvarKhan/django-python
bd54e44deb290f43ea5982c2ca9f37cd6c946879
[ "Apache-2.0" ]
null
null
null
from django.views.generic import CreateView from django.urls import reverse_lazy from .forms import CustomUserCreationForm class SignUpView(CreateView): form_class = CustomUserCreationForm success_url = reverse_lazy('login') template_name = 'signup.html'
28.777778
43
0.830116
134
0.517375
0
0
0
0
0
0
20
0.07722
7cfe95c6759feee2397de3f952b5fd6bdfa39ca2
137
py
Python
st3/package_util/compat/typing.py
Thom1729/package_util
3ddec00d8ab4a52f0f5ce3fe8b09247c1518547f
[ "MIT" ]
18
2020-02-20T11:56:43.000Z
2021-12-30T19:00:50.000Z
st3/package_util/compat/typing.py
Thom1729/package_util
3ddec00d8ab4a52f0f5ce3fe8b09247c1518547f
[ "MIT" ]
31
2020-02-21T13:38:12.000Z
2021-12-15T22:18:37.000Z
st3/package_util/compat/typing.py
Thom1729/package_util
3ddec00d8ab4a52f0f5ce3fe8b09247c1518547f
[ "MIT" ]
3
2020-02-21T09:31:27.000Z
2021-10-01T20:56:16.000Z
try: from typing import * # noqa: F401, F403 except ImportError: from .typing_stubs import * # type: ignore # noqa: F401, F403
27.4
66
0.671533
0
0
0
0
0
0
0
0
51
0.372263
7cfea92f95c14fb4efaa051120fc4e6f1facdf01
2,858
py
Python
stanza/models/common/dropout.py
rasimuvaikas/stanza
21793519a531b0e9d7151e42d180d97785c9a5b8
[ "Apache-2.0" ]
3,633
2016-01-21T17:29:13.000Z
2022-03-31T13:36:47.000Z
stanza/models/common/dropout.py
rasimuvaikas/stanza
21793519a531b0e9d7151e42d180d97785c9a5b8
[ "Apache-2.0" ]
593
2016-01-19T07:16:05.000Z
2022-03-31T20:23:58.000Z
stanza/models/common/dropout.py
rasimuvaikas/stanza
21793519a531b0e9d7151e42d180d97785c9a5b8
[ "Apache-2.0" ]
525
2016-01-20T03:22:19.000Z
2022-03-24T05:51:56.000Z
import torch import torch.nn as nn class WordDropout(nn.Module): """ A word dropout layer that's designed for embedded inputs (e.g., any inputs to an LSTM layer). Given a batch of embedded inputs, this layer randomly set some of them to be a replacement state. Note that this layer assumes the last dimensio...
37.605263
139
0.642407
2,816
0.985304
0
0
0
0
0
0
928
0.324703
7cff5cb6c2fef0ecc0f5ac6be8e4bd36f4fe013c
365
py
Python
Day01-15/code/Day15/pdf2.py
bdfd/Python_Zero2Hero_DS
9dafe90b8112fdc3d07e1aa02e41ed3f019f733c
[ "MIT" ]
3
2022-01-15T19:06:19.000Z
2022-01-18T16:47:27.000Z
Day01-15/code/Day15/pdf2.py
bdfd/4.5_Data-Science-Python-Zero2Hero-
9dafe90b8112fdc3d07e1aa02e41ed3f019f733c
[ "MIT" ]
null
null
null
Day01-15/code/Day15/pdf2.py
bdfd/4.5_Data-Science-Python-Zero2Hero-
9dafe90b8112fdc3d07e1aa02e41ed3f019f733c
[ "MIT" ]
1
2022-01-09T00:18:49.000Z
2022-01-09T00:18:49.000Z
""" 读取PDF文件 Version: 0.1 Author: BDFD Date: 2018-03-26 """ from PyPDF2 import PdfFileReader with open('./res/Python课程大纲.pdf', 'rb') as f: reader = PdfFileReader(f, strict=False) print(reader.numPages) if reader.isEncrypted: reader.decrypt('') current_page = reader.getPage(5) print(current...
19.210526
45
0.682192
0
0
0
0
0
0
0
0
103
0.270341
7cff626ae151f2363fd9919cb12cd92f5b8974de
2,335
py
Python
qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
qt__pyqt__pyside__pyqode/qt__class_tree__parse_and_print__recursively__from__doc_qt_io/gui.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from PyQt5 import QtWidgets as qtw from PyQt5.QtTest import QTest import time import requests from bs4 import BeautifulSoup from console import get_inherited_children, ROOT_URL class MainWindow(qtw.QMainWindow): def __init__(self): ...
25.107527
98
0.628266
1,926
0.824839
0
0
0
0
0
0
226
0.096788
7cffa5673d098c5404a18e4042db11fef2170e1f
6,540
py
Python
common/OpTestASM.py
kyle-ibm/op-test
df8dbf8cbff1390668c22632052adb46ebf277c1
[ "Apache-2.0" ]
null
null
null
common/OpTestASM.py
kyle-ibm/op-test
df8dbf8cbff1390668c22632052adb46ebf277c1
[ "Apache-2.0" ]
null
null
null
common/OpTestASM.py
kyle-ibm/op-test
df8dbf8cbff1390668c22632052adb46ebf277c1
[ "Apache-2.0" ]
1
2021-05-25T11:33:18.000Z
2021-05-25T11:33:18.000Z
#!/usr/bin/env python3 # encoding=utf8 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: op-test-framework/common/OpTestASM.py $ # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2017 # [+] International Business Machines Corp. # # # Licensed under the Apache ...
31.902439
90
0.555657
5,095
0.779052
0
0
0
0
0
0
2,168
0.331498
6b00216e5015b612b495eca186f46004bdc92b04
1,824
py
Python
test/test_storage.py
jrabasco/PyPasser
3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6
[ "MIT" ]
null
null
null
test/test_storage.py
jrabasco/PyPasser
3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6
[ "MIT" ]
null
null
null
test/test_storage.py
jrabasco/PyPasser
3cc6ecdfa9b5fe22f5a88c221517fe09d2df9db6
[ "MIT" ]
null
null
null
#!/usr/bin/python3.4 __author__ = "Jeremy Rabasco" import sys import os sys.path.append("..") import unittest from modules import storage from modules.service import Service from modules.database import Database class TestStorage(unittest.TestCase): def setUp(self): self.service = Service() self...
35.076923
104
0.668311
1,561
0.855811
0
0
0
0
0
0
201
0.110197
6b00e8ebc8e80cec62f2565854961c322350a073
4,676
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/plugins/lookup/template.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-22T01:04:39.000Z
2020-03-22T01:04:39.000Z
ansible/ansible/plugins/lookup/template.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/plugins/lookup/template.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
# Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # Copyright: (c) 2012-17, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ lookup...
40.66087
159
0.64136
2,770
0.592387
0
0
0
0
0
0
2,169
0.463858
6b01058178b8f414abe46085a609e4696e9cb097
1,096
py
Python
setup.py
ripiuk/fant_sizer
dcc0908c79ed76af3f4189ebd2a75cecf7a89e34
[ "MIT" ]
null
null
null
setup.py
ripiuk/fant_sizer
dcc0908c79ed76af3f4189ebd2a75cecf7a89e34
[ "MIT" ]
null
null
null
setup.py
ripiuk/fant_sizer
dcc0908c79ed76af3f4189ebd2a75cecf7a89e34
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os.path import join, dirname setup( name="fant_sizer", version="0.7", author="Rypiuk Oleksandr", author_email="ripiuk96@gmail.com", description="fant_sizer command-line file-information", url="https://github.com/ripiuk/fan...
36.533333
76
0.581204
0
0
0
0
0
0
0
0
539
0.491788
6b032c5cf849bb1b6a9241eb068c04ff780d5adc
1,957
py
Python
2018/Round 1A/A.py
elvisyjlin/google-code-jam
7fe8244c5ae07a9896acf9c48f3a06b306b393b1
[ "MIT" ]
null
null
null
2018/Round 1A/A.py
elvisyjlin/google-code-jam
7fe8244c5ae07a9896acf9c48f3a06b306b393b1
[ "MIT" ]
null
null
null
2018/Round 1A/A.py
elvisyjlin/google-code-jam
7fe8244c5ae07a9896acf9c48f3a06b306b393b1
[ "MIT" ]
null
null
null
def solve(): # Read input R, C, H, V = map(int, input().split()) choco = [] for _ in range(R): choco.append([0] * C) choco_row, choco_col = [0]*R, [0]*C num_choco = 0 for i in range(R): row = input() for j in range(C): if row[j] == '@': cho...
27.56338
50
0.444558
0
0
0
0
0
0
0
0
147
0.075115
6b041831b70999f5552fbde4cf4fd10965b426d5
9,798
py
Python
desktop/libs/liboozie/src/liboozie/submittion_tests.py
vinaymundada27/Hue
7bffb33bbe7cfa34d340241c4ba3b19476211b2a
[ "Apache-2.0" ]
1
2018-08-01T05:10:26.000Z
2018-08-01T05:10:26.000Z
desktop/libs/liboozie/src/liboozie/submittion_tests.py
vinaymundada27/Hue
7bffb33bbe7cfa34d340241c4ba3b19476211b2a
[ "Apache-2.0" ]
null
null
null
desktop/libs/liboozie/src/liboozie/submittion_tests.py
vinaymundada27/Hue
7bffb33bbe7cfa34d340241c4ba3b19476211b2a
[ "Apache-2.0" ]
1
2019-07-23T12:36:09.000Z
2019-07-23T12:36:09.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
35.11828
106
0.677689
5,481
0.5594
0
0
3,362
0.343131
0
0
3,475
0.354664
6b04b9ebe40e4d32dbf9b4d850ad1eefd373d8ea
12,721
py
Python
Training/train_baseHD.py
Wenyuan-Vincent-Li/SSL_Seg_GAN
8f6c45fd000ea12468dccf211b376fadbf4759c6
[ "Apache-2.0" ]
1
2022-03-09T11:51:22.000Z
2022-03-09T11:51:22.000Z
Training/train_baseHD.py
Wenyuan-Vincent-Li/SSL_Seg_GAN
8f6c45fd000ea12468dccf211b376fadbf4759c6
[ "Apache-2.0" ]
null
null
null
Training/train_baseHD.py
Wenyuan-Vincent-Li/SSL_Seg_GAN
8f6c45fd000ea12468dccf211b376fadbf4759c6
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch.optim as optim import torch.utils.data from Training import functions from Training.imresize import imresize import matplotlib.pyplot as plt from Models.pix2pixHD_base import GANLoss, VGGLoss from Models.pix2pixHD2 import mask2onehot class Losses(): def __init__(self, opt): ...
48.003774
162
0.537929
360
0.0283
0
0
0
0
0
0
3,157
0.248172
6b04db30f6d56200725a9e9d3be9cbc67d645d65
2,074
py
Python
tests/python/unittest/test_tir_pass_inject_double_buffer.py
0xreza/tvm
f08d5d78ee000b2c113ac451f8d73817960eafd5
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/python/unittest/test_tir_pass_inject_double_buffer.py
0xreza/tvm
f08d5d78ee000b2c113ac451f8d73817960eafd5
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2020-07-29T00:21:19.000Z
2020-07-29T00:21:19.000Z
tests/python/unittest/test_tir_pass_inject_double_buffer.py
0xreza/tvm
f08d5d78ee000b2c113ac451f8d73817960eafd5
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2021-07-22T17:33:16.000Z
2021-07-22T17:33:16.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...
36.385965
74
0.655738
0
0
0
0
0
0
0
0
913
0.440212
6b052c373e2583931e7668595c831adfd5fed432
491
py
Python
read_sensor.py
shivupoojar/openfaas-pi
5eda501368a1ac321954cb2aaf58be617977bd58
[ "Apache-2.0" ]
1
2020-11-24T03:31:26.000Z
2020-11-24T03:31:26.000Z
read_sensor.py
shivupoojar/openfaas-pi
5eda501368a1ac321954cb2aaf58be617977bd58
[ "Apache-2.0" ]
null
null
null
read_sensor.py
shivupoojar/openfaas-pi
5eda501368a1ac321954cb2aaf58be617977bd58
[ "Apache-2.0" ]
null
null
null
import requests from sense_hat import SenseHat import smbus import time while True: try: pressure=0 sense = SenseHat() pressure = sense.get_pressure() data = {'pressure':pressure} print(pressure) #send http request to sense serverless function with pressure #data r=req...
21.347826
69
0.672098
0
0
0
0
0
0
0
0
115
0.234216
6b0543a7aff4c6ab6b022a2d8e6d154ed4873777
1,528
py
Python
trabantsim/prototypes/space_invaders.py
highfestiva/life
b05b592502d72980ab55e13e84330b74a966f377
[ "BSD-3-Clause" ]
9
2019-09-03T18:33:31.000Z
2022-02-04T04:00:02.000Z
trabantsim/prototypes/space_invaders.py
highfestiva/life
b05b592502d72980ab55e13e84330b74a966f377
[ "BSD-3-Clause" ]
null
null
null
trabantsim/prototypes/space_invaders.py
highfestiva/life
b05b592502d72980ab55e13e84330b74a966f377
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Space Invadersishkebab. from trabant import * # ASCII geometries. shipascii = r''' /\ /XXXXXXXX\ v v ''' invader = r''' /XXXXXX\ /XXXXXXXX\ XXXXXXXXXX XX XX XX \XXXXXXXX/ /XX XX\ /X/ \/ \X\ X/ \X ''' cam(distance=250) gravity((0,0,0)) ship = create_ascii_object(...
24.645161
112
0.581806
0
0
0
0
0
0
0
0
331
0.216623
6b05df704fde4ca413cc3974d404975347c287a5
11,550
py
Python
model/backbone/xception.py
Shang-XH/BAFTT
62392325342f48b8a89f0c2bf71e48026dd90629
[ "MIT" ]
4
2021-09-07T03:29:38.000Z
2021-09-07T04:24:31.000Z
model/backbone/xception.py
Shang-XH/BAFTT
62392325342f48b8a89f0c2bf71e48026dd90629
[ "MIT" ]
null
null
null
model/backbone/xception.py
Shang-XH/BAFTT
62392325342f48b8a89f0c2bf71e48026dd90629
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo from model.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d def fixed_padding(inputs, kernel_size, dilation): kernel_size_effective = kernel_size + (kernel_size - 1) * (dilation - 1) ...
40.104167
116
0.583117
10,749
0.930649
0
0
0
0
0
0
484
0.041905
6b096c429c0f219b1a8f9aeb011545c4774f439d
1,430
py
Python
Backend/autonomus/utils/mail.py
IrinaMBejan/Autonom
4a97da1b26ed22e3ec8bb939359148765392b692
[ "MIT" ]
2
2019-03-08T10:04:35.000Z
2020-03-14T15:24:56.000Z
Backend/autonomus/utils/mail.py
IrinaMBejan/Autonom
4a97da1b26ed22e3ec8bb939359148765392b692
[ "MIT" ]
null
null
null
Backend/autonomus/utils/mail.py
IrinaMBejan/Autonom
4a97da1b26ed22e3ec8bb939359148765392b692
[ "MIT" ]
2
2019-03-16T14:47:36.000Z
2020-04-28T14:09:45.000Z
from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail, Substitution API_KEY = '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' API_KEY_ID = 'egd1yywWRbeVF2gcGhTH2Q' ENCODING = "utf-8" DEFAULT_MAIL="irinam.bejan@gmail.com" def link(urlsafe): return "https://develop-...
29.791667
89
0.68951
0
0
0
0
0
0
0
0
366
0.255944
6b09dfca59db461ba56fcce8bea683cfe5b5f132
22,696
py
Python
yellowbrick/features/pca.py
percygautam/yellowbrick
1ba6774a257bc85768a990293790caf4c14a5653
[ "Apache-2.0" ]
1
2020-04-30T08:50:11.000Z
2020-04-30T08:50:11.000Z
yellowbrick/features/pca.py
percygautam/yellowbrick
1ba6774a257bc85768a990293790caf4c14a5653
[ "Apache-2.0" ]
null
null
null
yellowbrick/features/pca.py
percygautam/yellowbrick
1ba6774a257bc85768a990293790caf4c14a5653
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # yellowbrick.features.pca # Decomposition based feature visualization with PCA. # # Author: Carlo Morales # Author: Raúl Peralta Lozada # Author: Benjamin Bengfort # Created: Tue May 23 18:34:27 2017 -0400 # # Copyright (C) 2017 The scikit-yb developers # For license information, see LIC...
36.547504
88
0.606847
14,939
0.658193
0
0
570
0.025113
0
0
15,680
0.69084
6b09e9510878cd225e1975781111b1e1feae8734
1,229
py
Python
k2/python/host/k2host/properties.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
144
2020-04-17T10:10:57.000Z
2022-03-25T19:07:54.000Z
k2/python/host/k2host/properties.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
136
2020-04-22T10:35:10.000Z
2021-08-16T13:49:29.000Z
k2/python/host/k2host/properties.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
26
2020-04-21T08:23:06.000Z
2021-09-02T15:23:53.000Z
# Copyright (c) 2020 Xiaomi Corporation (author: Haowen Qiu) # See ../../../LICENSE for clarification regarding multiple authors import torch from torch.utils.dlpack import to_dlpack from .fsa import Fsa from _k2host import _is_valid from _k2host import _is_top_sorted from _k2host import _is_arc_sorted from _k2hos...
22.759259
67
0.753458
0
0
0
0
0
0
0
0
129
0.104963
6b0a2521796cb92f0d1e011306fd05dc969275cf
355
py
Python
origamibot/core/teletypes/poll_option.py
cmd410/OrigamiBot
03667d069f0c0b088671936ce36bf8f85a029b93
[ "MIT" ]
4
2020-06-30T10:32:54.000Z
2020-11-01T23:07:58.000Z
origamibot/core/teletypes/poll_option.py
cmd410/OrigamiBot
03667d069f0c0b088671936ce36bf8f85a029b93
[ "MIT" ]
6
2020-06-26T23:14:59.000Z
2020-07-26T11:48:07.000Z
origamibot/core/teletypes/poll_option.py
cmd410/OrigamiBot
03667d069f0c0b088671936ce36bf8f85a029b93
[ "MIT" ]
1
2020-07-28T08:52:51.000Z
2020-07-28T08:52:51.000Z
from .base import TelegramStructure, Field class PollOption(TelegramStructure): text = Field() voter_count = Field() def __init__(self, text: str, voter_count: int ): self.text = \ Field(text, [str]) self.voter_count = \ ...
19.722222
42
0.515493
309
0.870423
0
0
0
0
0
0
0
0
6b0a3fda038a685ade7b25955f97976cdafc44a7
787
py
Python
var/spack/repos/builtin/packages/r-viridislite/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/r-viridislite/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/r-viridislite/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RViridislite(RPackage): """viridisLite: Default Color Maps from 'matplotlib' (Lite Version...
39.35
95
0.7446
566
0.719187
0
0
0
0
0
0
600
0.762389
6b0a89ea28d57009a70965dacb867faddce3f86e
28,086
py
Python
shiSock-0.2.0/test_two/PySock/server.py
AnanyaRamanA/shiSock
51efb0eba17eb106b9480598d278536ddd7732c3
[ "MIT" ]
null
null
null
shiSock-0.2.0/test_two/PySock/server.py
AnanyaRamanA/shiSock
51efb0eba17eb106b9480598d278536ddd7732c3
[ "MIT" ]
null
null
null
shiSock-0.2.0/test_two/PySock/server.py
AnanyaRamanA/shiSock
51efb0eba17eb106b9480598d278536ddd7732c3
[ "MIT" ]
1
2021-10-31T13:47:42.000Z
2021-10-31T13:47:42.000Z
from re import S import select import socket import queue import threading import sys import pickle import base64 import os from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers.aead import AESGCM from cryptography.hazmat.primitives.serialization import load_ssh_public_key...
38.73931
170
0.44054
27,535
0.980382
0
0
0
0
0
0
2,591
0.092252
6b0b0bbc4a2a5899aadcf7804e822911158b0d28
9,304
py
Python
server/www/packages/packages-windows/x86/ldap3/utils/asn1.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
640
2018-09-12T03:14:13.000Z
2022-03-30T04:38:09.000Z
server/www/packages/packages-windows/x86/ldap3/utils/asn1.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
175
2018-09-10T19:52:20.000Z
2022-03-30T04:37:30.000Z
server/www/packages/packages-windows/x86/ldap3/utils/asn1.py
zhoulhb/teleport
54da194697898ef77537cfe7032d774555dc1335
[ "Apache-2.0" ]
230
2018-09-13T02:40:49.000Z
2022-03-29T11:53:58.000Z
""" """ # Created on 2015.08.19 # # Author: Giovanni Cannata # # Copyright 2015 - 2018 Giovanni Cannata # # This file is part of ldap3. # # ldap3 is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Founda...
37.821138
161
0.661651
1,172
0.125967
0
0
0
0
0
0
2,517
0.270529
6b0c63a3de849494bdcf25b7c5c83e9a868cfc9f
2,351
py
Python
lib/utils/arg_scope.py
SimeonZhang/detectron2_tensorflow
ca03f633111d540ea91b3de75dbfa1da813647be
[ "Apache-2.0" ]
3
2021-06-07T10:48:51.000Z
2022-03-01T11:43:40.000Z
lib/utils/arg_scope.py
SimeonZhang/detectron2_tensorflow
ca03f633111d540ea91b3de75dbfa1da813647be
[ "Apache-2.0" ]
null
null
null
lib/utils/arg_scope.py
SimeonZhang/detectron2_tensorflow
ca03f633111d540ea91b3de75dbfa1da813647be
[ "Apache-2.0" ]
null
null
null
import copy from contextlib import contextmanager from functools import wraps from collections import defaultdict import tensorflow as tf _ArgScopeStack = [] @contextmanager def arg_scope(layers, **kwargs): """ Args: layers (list or layer): layer or list of layers to apply the arguments. Returns...
26.41573
93
0.64228
0
0
1,001
0.425776
1,266
0.538494
0
0
1,278
0.543598
6b0cebe762170956488a4d3cddc7f97ae057f2da
754
py
Python
CORN-TEST/textfsm_parse.py
AnkitDeshwal89/NETMIKO
81c164e9cff46d11b56612f6adc343b6bcdfe87a
[ "Apache-2.0" ]
null
null
null
CORN-TEST/textfsm_parse.py
AnkitDeshwal89/NETMIKO
81c164e9cff46d11b56612f6adc343b6bcdfe87a
[ "Apache-2.0" ]
null
null
null
CORN-TEST/textfsm_parse.py
AnkitDeshwal89/NETMIKO
81c164e9cff46d11b56612f6adc343b6bcdfe87a
[ "Apache-2.0" ]
null
null
null
import textfsm import subprocess import random res = subprocess.run('ifconfig',stdout=subprocess.PIPE) intstatus = res.stdout.decode('ascii') with open("datafile","w+") as a: a.write(intstatus) a.close() template_file= "ifconfig-template.template" template = open(template_file) with open("datafile") as ...
18.390244
55
0.667109
0
0
0
0
0
0
0
0
180
0.238727
6b0d16f74ff1faebf0826e751ccbc24a085729d3
31,951
py
Python
classes.py
jared-jorgenson/mini_game
ac73987ac4c32c0e9f521d7bcf8d4d9ee4ded85a
[ "MIT" ]
null
null
null
classes.py
jared-jorgenson/mini_game
ac73987ac4c32c0e9f521d7bcf8d4d9ee4ded85a
[ "MIT" ]
null
null
null
classes.py
jared-jorgenson/mini_game
ac73987ac4c32c0e9f521d7bcf8d4d9ee4ded85a
[ "MIT" ]
null
null
null
import pygame class Player(pygame.sprite.Sprite): death = [pygame.image.load('Images/death1.png'), pygame.image.load('Images/death2.png'), pygame.image.load('Images/death3.png'), pygame.image.load('Images/death4.png'), pygame.image.load('Images/death5.png'), pygame.im...
59.833333
121
0.52111
31,926
0.999218
0
0
0
0
0
0
4,545
0.142249
6b0d7e26713e21d118eb39e3b4c51db758d9a74a
18,151
py
Python
installSynApps/data_model/install_config.py
NSLS-II/installSynApps
0f8e978939715bbba1a064ead3044fa36215cb09
[ "BSD-3-Clause" ]
null
null
null
installSynApps/data_model/install_config.py
NSLS-II/installSynApps
0f8e978939715bbba1a064ead3044fa36215cb09
[ "BSD-3-Clause" ]
2
2021-01-06T19:57:19.000Z
2021-03-11T20:48:42.000Z
installSynApps/data_model/install_config.py
NSLS-II/installSynApps
0f8e978939715bbba1a064ead3044fa36215cb09
[ "BSD-3-Clause" ]
1
2020-12-14T20:35:20.000Z
2020-12-14T20:35:20.000Z
"""A file containing representations of install configurations. The core Data representation for installSynApps. An InstallConfiguration object is parsed from a configuration, and is then used throughout the build process. InjectorFile objects are used for representing text that need to be injected into configuration...
39.804825
130
0.598204
11,571
0.637486
0
0
0
0
0
0
9,453
0.520798
6b0ed79dd0939a74afbcf7db38081382144c0b6e
3,587
py
Python
apps/accounts/views.py
tarvitz/icu
9a7cdac9d26ea224539f68f678b90bf70084374d
[ "BSD-3-Clause" ]
1
2022-03-12T23:44:21.000Z
2022-03-12T23:44:21.000Z
apps/accounts/views.py
tarvitz/icu
9a7cdac9d26ea224539f68f678b90bf70084374d
[ "BSD-3-Clause" ]
null
null
null
apps/accounts/views.py
tarvitz/icu
9a7cdac9d26ea224539f68f678b90bf70084374d
[ "BSD-3-Clause" ]
null
null
null
# Create your views here. # -*- coding: utf-8 -*- from apps.core.helpers import render_to, ajax_response, get_object_or_None from apps.core.decorators import lock, login_required_json from apps.accounts.models import Invite from apps.accounts.decorators import check_invite from apps.accounts.forms import ( LoginFor...
30.922414
115
0.642598
0
0
0
0
2,851
0.794815
0
0
633
0.176471
6b0f57abb4c6963ae8d955c1ecf87495f2b1c219
12,193
py
Python
plugins/modules/oci_blockstorage_volume_backup_policy_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_blockstorage_volume_backup_policy_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_blockstorage_volume_backup_policy_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
38.342767
157
0.584598
1,050
0.086115
0
0
0
0
0
0
9,715
0.796769
6b0ff469900ccc9c854a18661fc7b7737ba3ac79
98
py
Python
pi_control/server_stats/apps.py
mhozza/pi-control
0dce821b4702519fedc3950270ee0091ed484ef6
[ "MIT" ]
null
null
null
pi_control/server_stats/apps.py
mhozza/pi-control
0dce821b4702519fedc3950270ee0091ed484ef6
[ "MIT" ]
10
2020-03-14T21:04:36.000Z
2022-03-03T21:51:07.000Z
pi_control/server_stats/apps.py
mhozza/pi-control
0dce821b4702519fedc3950270ee0091ed484ef6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ServerStatsConfig(AppConfig): name = "server_stats"
16.333333
35
0.77551
61
0.622449
0
0
0
0
0
0
14
0.142857
6b1048e91d3158720f5949f6fb7c7ea76df6e7a1
14,435
py
Python
testproject/testproject/settings.py
jackvz/mezzanine-cartridge-api
c956afa672fcf1035ab60cd5eb6589a06ccaafa0
[ "MIT" ]
1
2019-04-18T23:28:03.000Z
2019-04-18T23:28:03.000Z
testproject/testproject/settings.py
jackvz/mezzanine-cartridge-api
c956afa672fcf1035ab60cd5eb6589a06ccaafa0
[ "MIT" ]
1
2020-06-05T20:27:04.000Z
2020-06-05T20:27:04.000Z
testproject/testproject/settings.py
jackvz/mezzanine-cartridge-api
c956afa672fcf1035ab60cd5eb6589a06ccaafa0
[ "MIT" ]
1
2020-12-13T15:55:53.000Z
2020-12-13T15:55:53.000Z
from __future__ import absolute_import, unicode_literals import os from django import VERSION as DJANGO_VERSION from django.utils.translation import ugettext_lazy as _ SECRET_KEY = '%29hnw7d-dy4n)!@1yi#ov#^@x0b=o*2o8^31oe!+(xw!!oc9a' ###################### # CARTRIDGE SETTINGS # ###################### # The follow...
34.783133
79
0.699619
0
0
0
0
0
0
0
0
11,784
0.816349
6b1163fcd99a8abc3b5c62d0ed18bd3324cc7b0a
959
py
Python
wordgen/data_gen.py
ishaanbakhle/wordgen.us
45c5247ce04b13badd2e1b3164cedc9176a805c7
[ "MIT" ]
null
null
null
wordgen/data_gen.py
ishaanbakhle/wordgen.us
45c5247ce04b13badd2e1b3164cedc9176a805c7
[ "MIT" ]
null
null
null
wordgen/data_gen.py
ishaanbakhle/wordgen.us
45c5247ce04b13badd2e1b3164cedc9176a805c7
[ "MIT" ]
null
null
null
from wordgen import consts import numpy as np from sklearn import preprocessing def fill_matrix(dataset): assert type(dataset) == str assert len(dataset) > 0, print("Dataset must be > 0") matrix = [] for i in consts.rang: matrix.append([]) for o in consts.rang: matrix[i]...
25.236842
76
0.594369
0
0
0
0
0
0
0
0
137
0.142857
6b1167f333bc4ee9231e98ecd5d13fbcbf6bc62d
30,725
py
Python
arcade/gl/context.py
Cleptomania/arcade
abb7f0a0229b7f3a7843856d4b0812a3a2b80468
[ "MIT" ]
null
null
null
arcade/gl/context.py
Cleptomania/arcade
abb7f0a0229b7f3a7843856d4b0812a3a2b80468
[ "MIT" ]
null
null
null
arcade/gl/context.py
Cleptomania/arcade
abb7f0a0229b7f3a7843856d4b0812a3a2b80468
[ "MIT" ]
null
null
null
from ctypes import c_int, c_char_p, cast, c_float from collections import deque import logging import weakref from typing import Any, Dict, List, Tuple, Union, Sequence, Set import pyglet from pyglet.window import Window from pyglet import gl from .buffer import Buffer from .program import Program from .vertex_array ...
38.310474
126
0.652823
30,125
0.980472
0
0
4,298
0.139886
0
0
13,697
0.445793
6b118924fc3b616de8ffa2d875b9ce842c00da9f
2,141
py
Python
api/app/models/bookings/exam.py
pixelater/queue-management
9881505d4af2b9860aeaf76b9572315dd016c7dc
[ "Apache-2.0" ]
null
null
null
api/app/models/bookings/exam.py
pixelater/queue-management
9881505d4af2b9860aeaf76b9572315dd016c7dc
[ "Apache-2.0" ]
1
2019-02-26T00:27:31.000Z
2019-02-26T00:27:31.000Z
api/app/models/bookings/exam.py
pixelater/queue-management
9881505d4af2b9860aeaf76b9572315dd016c7dc
[ "Apache-2.0" ]
null
null
null
'''Copyright 2018 Province of British Columbia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
43.693878
111
0.739841
1,506
0.70341
0
0
0
0
0
0
708
0.330687
6b118e0b32f87f7166e7bc08391802d99b019d48
237
py
Python
leetcode/1672 Richest Customer Wealth.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
leetcode/1672 Richest Customer Wealth.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
leetcode/1672 Richest Customer Wealth.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
class Solution(object): def maximumWealth(self, accounts): """ :type accounts: List[List[int]] :rtype: int """ # Runtime: 36 ms # Memory: 13.5 MB return max(map(sum, accounts))
23.7
39
0.518987
236
0.995781
0
0
0
0
0
0
108
0.455696
6b12470d00652efed9a53779a3b55749c6b298e3
9,350
py
Python
datatableview/tests/test_helpers.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
2
2019-11-01T20:50:35.000Z
2021-01-13T22:02:55.000Z
datatableview/tests/test_helpers.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
datatableview/tests/test_helpers.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from datetime import datetime from functools import partial from django import get_version from datatableview import helpers import six from .testcase import DatatableViewTestCase from .test_app.models import ExampleModel, RelatedM2MModel if get_version().split('.') < ['1', '7']: tes...
37.250996
107
0.610695
8,939
0.956043
0
0
0
0
0
0
3,486
0.372834
6b136297b7f7ffe43bf97fc683bc6c2f3794e562
3,518
py
Python
discordbot.py
naari3/seibaribot
3686206ed0b28b318a4032753350be8d9f2223fd
[ "MIT" ]
null
null
null
discordbot.py
naari3/seibaribot
3686206ed0b28b318a4032753350be8d9f2223fd
[ "MIT" ]
null
null
null
discordbot.py
naari3/seibaribot
3686206ed0b28b318a4032753350be8d9f2223fd
[ "MIT" ]
1
2022-02-09T16:45:40.000Z
2022-02-09T16:45:40.000Z
import traceback from os import getenv import discord from discord import Message from discord.ext import commands from discord.ext.commands import Context from asyncio import sleep import asyncio client = discord.Client() # botの接頭辞を!にする bot = commands.Bot(command_prefix='!') # ギラティナのチャンネルのID GIRATINA_CHANNEL_ID = 9...
29.07438
191
0.689312
0
0
0
0
3,352
0.783544
3,361
0.785647
1,964
0.459093
6b13e68ee45340f613741a1e02396fe2503dcda1
6,831
py
Python
test/cpp/naming/utils/dns_server.py
arghyadip01/grpc
9e10bfc8a096ef91a327e22f84f10c0fabff4417
[ "Apache-2.0" ]
9
2020-12-04T07:34:08.000Z
2022-03-07T21:10:35.000Z
test/cpp/naming/utils/dns_server.py
arghyadip01/grpc
9e10bfc8a096ef91a327e22f84f10c0fabff4417
[ "Apache-2.0" ]
62
2020-02-27T00:53:36.000Z
2021-02-05T06:10:53.000Z
test/cpp/naming/utils/dns_server.py
arghyadip01/grpc
9e10bfc8a096ef91a327e22f84f10c0fabff4417
[ "Apache-2.0" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
#!/usr/bin/env python2.7 # Copyright 2015 gRPC authors. # # 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 la...
37.125
143
0.639731
212
0.031035
0
0
0
0
0
0
1,813
0.265408
6b13e6f6469b20dda5e5b5da9f0367c1ee7833b5
726
py
Python
colour/examples/models/examples_ictcp.py
BPearlstine/colour
40f0281295496774d2a19eee017d50fd0c265bd8
[ "Cube", "BSD-3-Clause" ]
2
2020-05-03T20:15:42.000Z
2021-04-09T18:19:06.000Z
colour/examples/models/examples_ictcp.py
BPearlstine/colour
40f0281295496774d2a19eee017d50fd0c265bd8
[ "Cube", "BSD-3-Clause" ]
null
null
null
colour/examples/models/examples_ictcp.py
BPearlstine/colour
40f0281295496774d2a19eee017d50fd0c265bd8
[ "Cube", "BSD-3-Clause" ]
1
2019-12-11T19:48:27.000Z
2019-12-11T19:48:27.000Z
# -*- coding: utf-8 -*- """ Showcases *ICTCP* *colour encoding* computations. """ import numpy as np import colour from colour.utilities import message_box message_box('"ICTCP" Colour Encoding Computations') RGB = np.array([0.45620519, 0.03081071, 0.04091952]) message_box(('Converting from "ITU-R BT.2020" colourspa...
27.923077
77
0.665289
0
0
0
0
0
0
0
0
334
0.460055
6b147a9cf7116a1a4434ef19b42cc9c65f9ba8e8
1,536
py
Python
app/core/model/routine.py
MauricioAntonioMartinez/django-workout-tracker-api
82f9499f172bd6d4b861f072948949dd6f8f6ec1
[ "MIT" ]
null
null
null
app/core/model/routine.py
MauricioAntonioMartinez/django-workout-tracker-api
82f9499f172bd6d4b861f072948949dd6f8f6ec1
[ "MIT" ]
null
null
null
app/core/model/routine.py
MauricioAntonioMartinez/django-workout-tracker-api
82f9499f172bd6d4b861f072948949dd6f8f6ec1
[ "MIT" ]
null
null
null
import os import uuid from django.conf import settings # this is how we can retrive variables # for the settings file from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager, PermissionsMixin) from django.core.validators import MaxValueValidator, MinValueVali...
30.72
74
0.742839
777
0.505859
0
0
0
0
0
0
231
0.150391
6b15e8a8bf1abf0fd58cab05c52fa68b6927df9e
3,732
py
Python
example_scripts/transect_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
8
2020-09-10T13:40:07.000Z
2022-03-10T22:52:44.000Z
example_scripts/transect_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
294
2020-05-11T12:17:17.000Z
2022-03-31T22:07:52.000Z
example_scripts/transect_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
4
2020-05-28T10:43:56.000Z
2021-09-07T10:40:09.000Z
""" This is a demonstration script for using the Transect class in the COAsT package. This object has strict data formatting requirements, which are outlined in tranect.py. Transect subsetting (a vertical slice of data between two coordinates): Creating them and performing some custom diagnostics with them. --- In ...
38.081633
277
0.780279
0
0
0
0
0
0
0
0
2,428
0.648851
6b16a33b1ae4cc31b9c80ce44c59e17df1095980
44,917
py
Python
diofant/logic/boolalg.py
skirpichev/diofant
16e280fdd6053be10c3b60fbb66fc26b52ede27a
[ "BSD-3-Clause" ]
null
null
null
diofant/logic/boolalg.py
skirpichev/diofant
16e280fdd6053be10c3b60fbb66fc26b52ede27a
[ "BSD-3-Clause" ]
1
2021-06-23T08:27:17.000Z
2021-06-23T08:27:17.000Z
diofant/logic/boolalg.py
skirpichev/diofant
16e280fdd6053be10c3b60fbb66fc26b52ede27a
[ "BSD-3-Clause" ]
1
2021-06-23T07:58:58.000Z
2021-06-23T07:58:58.000Z
""" Boolean algebra module for Diofant. """ from collections import defaultdict from itertools import combinations, product from ..core import Atom, cacheit from ..core.expr import Expr from ..core.function import Application from ..core.numbers import Number from ..core.operations import LatticeOp from ..core.single...
27.042143
93
0.552107
23,447
0.522007
0
0
4,374
0.09738
0
0
22,102
0.492063
6b188f11fc196c24fb2215879e63681e45f8138c
5,585
py
Python
amazon/goods_review_thread.py
JoanLee0826/amazon
13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98
[ "MIT" ]
5
2019-09-26T02:39:20.000Z
2021-04-05T13:19:49.000Z
amazon/goods_review_thread.py
JoanLee0826/amazon
13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98
[ "MIT" ]
null
null
null
amazon/goods_review_thread.py
JoanLee0826/amazon
13fcbcb0e9e396af6d4b2287c2a1a06fd602ce98
[ "MIT" ]
3
2020-01-08T08:53:32.000Z
2021-06-04T17:06:34.000Z
import pandas as pd import requests from lxml import etree import re, time, random, datetime from queue import Queue import threading class Review: headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 \ (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36" ...
39.055944
110
0.520859
5,456
0.948045
0
0
0
0
0
0
1,456
0.252997
6b199ca74af9fa333d99b4deab665ee6ec19fa62
1,032
py
Python
lumicks/pylake/population/tests/conftest.py
lumicks/pylake
b5875d156d6416793a371198f3f2590fca2be4cd
[ "Apache-2.0" ]
8
2019-02-18T07:56:39.000Z
2022-03-19T01:14:48.000Z
lumicks/pylake/population/tests/conftest.py
lumicks/pylake
b5875d156d6416793a371198f3f2590fca2be4cd
[ "Apache-2.0" ]
42
2018-11-30T14:40:35.000Z
2022-03-29T11:43:45.000Z
lumicks/pylake/population/tests/conftest.py
lumicks/pylake
b5875d156d6416793a371198f3f2590fca2be4cd
[ "Apache-2.0" ]
4
2019-01-09T13:45:53.000Z
2021-07-06T14:06:52.000Z
import pytest import numpy as np from pathlib import Path def extract_param(data, n_states): keys = ("initial_state_prob", "transition_prob", "means", "st_devs") param = {"n_states": n_states} for key in keys: param[key] = data[f"{key}_{n_states}"] return param @pytest.fixture(scope="session...
25.8
79
0.666667
0
0
0
0
738
0.715116
0
0
354
0.343023
6b1abd24dcce5c1b223e996046c73de1b7c697fc
1,332
py
Python
Concurrent/PipelineDecomposingTask.py
rafagarciac/ParallelProgrammingPython
bba91984018688f41049fd63961d3b8872876336
[ "MIT" ]
null
null
null
Concurrent/PipelineDecomposingTask.py
rafagarciac/ParallelProgrammingPython
bba91984018688f41049fd63961d3b8872876336
[ "MIT" ]
null
null
null
Concurrent/PipelineDecomposingTask.py
rafagarciac/ParallelProgrammingPython
bba91984018688f41049fd63961d3b8872876336
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Artesanal example Pipe without Pipe class. """ __author__ = "Rafael García Cuéllar" __email__ = "r.gc@hotmail.es" __copyright__ = "Copyright (c) 2018 Rafael García Cuéllar" __license__ = "MIT" from concurrent.futures import ProcessPoolExecutor import time import random def worker(arg):...
27.183673
107
0.678679
0
0
0
0
0
0
0
0
348
0.260479
6b1e268c000917add1c1379d6ddcd9ab23f2b03b
245
py
Python
src/digibujogens/__main__.py
roaet/digibujogens
ab154edda69c091595902dd8b2e3fd273b2e7105
[ "MIT" ]
null
null
null
src/digibujogens/__main__.py
roaet/digibujogens
ab154edda69c091595902dd8b2e3fd273b2e7105
[ "MIT" ]
null
null
null
src/digibujogens/__main__.py
roaet/digibujogens
ab154edda69c091595902dd8b2e3fd273b2e7105
[ "MIT" ]
null
null
null
""" Main application entry point. python -m digibujogens ... """ def main(): """ Execute the application. """ raise NotImplementedError # Make the script executable. if __name__ == "__main__": raise SystemExit(main())
14.411765
33
0.636735
0
0
0
0
0
0
0
0
147
0.6
6b1f0f890c358afb721298af5289d546925c2ca1
42,279
py
Python
lisa/target.py
mrkajetanp/lisa
15cfbc430f46b59f52a9d13769d0f6791ed6f154
[ "Apache-2.0" ]
null
null
null
lisa/target.py
mrkajetanp/lisa
15cfbc430f46b59f52a9d13769d0f6791ed6f154
[ "Apache-2.0" ]
null
null
null
lisa/target.py
mrkajetanp/lisa
15cfbc430f46b59f52a9d13769d0f6791ed6f154
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2018, ARM Limited and contributors. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
36.636915
211
0.584404
40,216
0.951205
2,674
0.063247
15,295
0.361764
0
0
19,652
0.464817
6b1f450e0afe4b703c2e85c366b7453eddf2730b
1,289
py
Python
iota/commands/core/get_node_info.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
347
2016-12-23T14:28:06.000Z
2019-09-30T13:46:30.000Z
iota/commands/core/get_node_info.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
194
2016-12-22T21:22:47.000Z
2019-10-01T09:01:16.000Z
iota/commands/core/get_node_info.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
147
2017-01-08T13:14:47.000Z
2019-10-01T22:27:31.000Z
import filters as f from iota import TransactionHash, Address from iota.commands import FilterCommand, RequestFilter, ResponseFilter from iota.filters import Trytes __all__ = [ 'GetNodeInfoCommand', ] class GetNodeInfoCommand(FilterCommand): """ Executes `getNodeInfo` command. See :py:meth:`iota.ap...
28.644444
73
0.6827
1,073
0.832428
0
0
0
0
0
0
337
0.261443
6b2003bf580dcb3f7c6fda11b1276e5b7d0fe837
4,925
py
Python
Aplicacion/Presentacion/views.py
Juandiegordp/TPI
427266f00745e9d9678110c1d01d3be4febca673
[ "MIT" ]
null
null
null
Aplicacion/Presentacion/views.py
Juandiegordp/TPI
427266f00745e9d9678110c1d01d3be4febca673
[ "MIT" ]
null
null
null
Aplicacion/Presentacion/views.py
Juandiegordp/TPI
427266f00745e9d9678110c1d01d3be4febca673
[ "MIT" ]
null
null
null
from Negocio import controller import forms, functions from flask import Flask, render_template, request, redirect, url_for, flash def register(mysql, request): registerForm= forms.RegisterForm(request.form) if request.method == 'POST' and registerForm.validate(): return controller.registraUsuario(mysql...
40.702479
236
0.718376
0
0
0
0
0
0
0
0
435
0.088325
6b204b59051969cf45dc90d85f76793faabc4ec6
644
py
Python
evalme/tests/test_old_format.py
heartexlabs/label-studio-evalme
48f7a5226346b6e074edb4717b84122cc089bc7a
[ "MIT" ]
3
2020-04-11T13:01:57.000Z
2021-05-19T13:53:16.000Z
evalme/tests/test_old_format.py
heartexlabs/label-studio-evalme
48f7a5226346b6e074edb4717b84122cc089bc7a
[ "MIT" ]
28
2020-05-21T01:34:44.000Z
2022-03-21T15:39:16.000Z
evalme/tests/test_old_format.py
heartexlabs/label-studio-evalme
48f7a5226346b6e074edb4717b84122cc089bc7a
[ "MIT" ]
1
2020-05-21T17:43:26.000Z
2020-05-21T17:43:26.000Z
from evalme.matcher import Matcher def test_old_format_agreement_matrix(): m = Matcher(new_format=False) m.load(r"./tests/test_data/test_old_format.json") matrix = m.get_annotations_agreement() assert matrix is not None assert matrix > 0 def test_old_format_load(): m = Matcher(new_format=Fa...
25.76
53
0.723602
0
0
0
0
0
0
0
0
143
0.22205
6b20937e56fc436965d29a3e4d7196bce1d5cd54
30,942
py
Python
behave/runner.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
13
2019-10-03T19:15:14.000Z
2019-10-16T02:01:57.000Z
behave/runner.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
null
null
null
behave/runner.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- """ This module provides Runner class to run behave feature files (or model elements). """ from __future__ import absolute_import, print_function, with_statement import contextlib import os.path import sys import warnings import weakref import six from behave._types import ExceptionUtil from...
36.704626
93
0.598151
28,301
0.914647
1,263
0.040818
1,960
0.063344
0
0
12,625
0.408021
6b20e0c8f16f54d5573a17cd7bb380c1b08265f4
2,645
py
Python
01_P/P_2_1_1_02/main.py
genfifth/generative-design_Code-Package-Python-Mode
93fc8435933aa2e9329de77a1177bb34e63dd1c4
[ "BSD-2-Clause" ]
1
2019-04-23T16:26:31.000Z
2019-04-23T16:26:31.000Z
01_P/P_2_1_1_02/main.py
QuantumNovice/generative-design_Code-Package-Python-Mode
93fc8435933aa2e9329de77a1177bb34e63dd1c4
[ "BSD-2-Clause" ]
null
null
null
01_P/P_2_1_1_02/main.py
QuantumNovice/generative-design_Code-Package-Python-Mode
93fc8435933aa2e9329de77a1177bb34e63dd1c4
[ "BSD-2-Clause" ]
1
2019-01-31T16:05:19.000Z
2019-01-31T16:05:19.000Z
add_library('pdf') import random from datetime import datetime tileCount = 20 def setup(): global savePDF, actStrokeCap, actRandomSeed, colorLeft, colorRight, alphaLeft, alphaRight savePDF = False actStrokeCap = ROUND actRandomSeed = 0 colorLeft = color(197, 0, 123) colorRight = color(87, 35,...
27.552083
93
0.565974
0
0
0
0
0
0
0
0
81
0.030624
6b21fe4bf1085238cec917c37ffada209e34d9c0
41,499
py
Python
core/dbt/contracts/graph/manifest.py
peiwangdb/dbt
30e72bc5e2ae950ddf0a1230b0c6406b889bea1a
[ "Apache-2.0" ]
null
null
null
core/dbt/contracts/graph/manifest.py
peiwangdb/dbt
30e72bc5e2ae950ddf0a1230b0c6406b889bea1a
[ "Apache-2.0" ]
1
2021-08-14T03:52:23.000Z
2021-08-14T03:52:23.000Z
core/dbt/contracts/graph/manifest.py
peiwangdb/dbt
30e72bc5e2ae950ddf0a1230b0c6406b889bea1a
[ "Apache-2.0" ]
1
2021-08-14T03:50:50.000Z
2021-08-14T03:50:50.000Z
import enum from dataclasses import dataclass, field from itertools import chain, islice from mashumaro import DataClassMessagePackMixin from multiprocessing.synchronize import Lock from typing import ( Dict, List, Optional, Union, Mapping, MutableMapping, Any, Set, Tuple, TypeVar, Callable, Iterable, Generic, ...
34.669173
98
0.644738
35,298
0.850554
0
0
27,884
0.671904
0
0
7,550
0.181928
6b221317ab066084e6a6681c2759fb8660e93351
11,665
py
Python
openGaussBase/testcase/SQL/DCL/Alter_Default_Privileges/Opengauss_Function_Alter_Default_Privileges_Case0016.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DCL/Alter_Default_Privileges/Opengauss_Function_Alter_Default_Privileges_Case0016.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DCL/Alter_Default_Privileges/Opengauss_Function_Alter_Default_Privileges_Case0016.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
55.547619
184
0.598028
10,335
0.837181
0
0
0
0
0
0
10,346
0.838072
6b2234f49a8b57fe4bf6fd97f1ef5ca5137dfade
2,342
py
Python
Apps/phdigitalshadows/dsapi/service/infrastructure_service.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
74
2019-10-22T02:00:53.000Z
2022-03-15T12:56:13.000Z
Apps/phdigitalshadows/dsapi/service/infrastructure_service.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
375
2019-10-22T20:53:50.000Z
2021-11-09T21:28:43.000Z
Apps/phdigitalshadows/dsapi/service/infrastructure_service.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
175
2019-10-23T15:30:42.000Z
2021-11-05T21:33:31.000Z
# File: infrastructure_service.py # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # from .ds_base_service import DSBaseService from .ds_find_service import DSFindService from ..model.infrastructure import Infrastructure class InfrastructureService(DSFindService): def __init__(se...
32.985915
106
0.599488
2,085
0.890265
0
0
950
0.405636
0
0
728
0.310845
6b226704f6cb4e708962ce8718453e73c2ce6810
5,562
py
Python
src/find_genes_by_location/find_genes_by_location.py
NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome
b1eb83118268ada50e90f979347e47e055a51029
[ "MIT" ]
3
2020-07-06T18:23:47.000Z
2020-07-15T06:41:44.000Z
src/find_genes_by_location/find_genes_by_location.py
NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome
b1eb83118268ada50e90f979347e47e055a51029
[ "MIT" ]
5
2020-07-09T12:15:07.000Z
2020-07-10T17:23:50.000Z
src/find_genes_by_location/find_genes_by_location.py
NCBI-Codeathons/Identify-antiphage-defense-systems-in-the-bacterial-pangenome
b1eb83118268ada50e90f979347e47e055a51029
[ "MIT" ]
3
2020-07-06T18:25:24.000Z
2020-07-06T19:50:56.000Z
import argparse from collections import defaultdict import csv from dataclasses import dataclass, field from enum import Enum, unique, auto import os import sys import tempfile import yaml import zipfile import gffutils from google.protobuf import json_format from ncbi.datasets.v1alpha1 import dataset_catalog_pb2 from...
36.834437
141
0.670262
2,543
0.45721
124
0.022294
404
0.072636
0
0
373
0.067062
6b22b1c8cec3284d72a98eea77ac255711ba8ec7
811
py
Python
web/backend/backend_django/apps/capacity/models.py
tOverney/ADA-Project
69221210b1f4f13f6979123c6a7a1a9813ea18e5
[ "Apache-2.0" ]
null
null
null
web/backend/backend_django/apps/capacity/models.py
tOverney/ADA-Project
69221210b1f4f13f6979123c6a7a1a9813ea18e5
[ "Apache-2.0" ]
1
2016-11-04T01:03:21.000Z
2016-11-04T10:10:06.000Z
web/backend/backend_django/apps/capacity/models.py
tOverney/ADA-Project
69221210b1f4f13f6979123c6a7a1a9813ea18e5
[ "Apache-2.0" ]
null
null
null
from django.db import models from multigtfs.models import ( Block, Fare, FareRule, Feed, Frequency, Route, Service, ServiceDate, Shape, ShapePoint, Stop, StopTime, Trip, Agency) class Path(models.Model): trip = models.ForeignKey(Trip) stop = models.ForeignKey(Stop) path = models.CharField(max_len...
32.44
79
0.705302
620
0.764488
0
0
0
0
0
0
69
0.08508
6b22ef64a2b0a516b9dfe5541aa85e77c40a249c
106
py
Python
apps/interface/settings/config.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
349
2020-08-04T10:21:01.000Z
2022-03-23T08:31:29.000Z
apps/interface/settings/config.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
2
2021-01-07T06:17:05.000Z
2021-04-01T06:01:30.000Z
apps/interface/settings/config.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
70
2020-08-24T06:46:14.000Z
2022-03-25T13:23:27.000Z
try: from public_config import * except ImportError: pass PORT = 9028 SERVICE_NAME = 'interface'
13.25
31
0.716981
0
0
0
0
0
0
0
0
11
0.103774
6b22ef6d7e0edee04fb293d0c3cd3eec5a122d66
1,307
py
Python
api/api/pokemon/views.py
farnswj1/PokemonAPI
b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27
[ "MIT" ]
null
null
null
api/api/pokemon/views.py
farnswj1/PokemonAPI
b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27
[ "MIT" ]
null
null
null
api/api/pokemon/views.py
farnswj1/PokemonAPI
b6fc4dfe8c0fde6b4560455dd37e61b6a0d2ea27
[ "MIT" ]
null
null
null
from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from rest_framework.generics import ( ListAPIView, RetrieveAPIView, CreateAPIView, UpdateAPIView, DestroyAPIView ) from .models import Pokemon from .serializers import PokemonSerializer from .fi...
27.229167
52
0.75746
916
0.700842
0
0
266
0.20352
0
0
25
0.019128
6b23ef94d3d317043d5fc3a13457402a61c1b88c
9,546
py
Python
plugins/action/normalize_gitlab_cfg.py
sma-de/ansible-collections-gitlab
5da99b04722fc016d3e8589635fcbb3579dcfda2
[ "BSD-3-Clause" ]
null
null
null
plugins/action/normalize_gitlab_cfg.py
sma-de/ansible-collections-gitlab
5da99b04722fc016d3e8589635fcbb3579dcfda2
[ "BSD-3-Clause" ]
null
null
null
plugins/action/normalize_gitlab_cfg.py
sma-de/ansible-collections-gitlab
5da99b04722fc016d3e8589635fcbb3579dcfda2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.errors import AnsibleOptionsError from ansible.module_utils.six import iteritems, string_types from ansible_collections.smabot.base.plugins.module_utils.plugins.config_normalizing.base import ConfigNormalizerBaseMer...
27.589595
202
0.626859
8,571
0.897863
0
0
918
0.096166
0
0
1,159
0.121412
6b240627551477bf7c6382038b724993aeef7b0b
1,416
py
Python
microservices/validate/tools/dynamodb.py
clodonil/pipeline_aws_custom
8ca517d0bad48fe528461260093f0035f606f9be
[ "Apache-2.0" ]
null
null
null
microservices/validate/tools/dynamodb.py
clodonil/pipeline_aws_custom
8ca517d0bad48fe528461260093f0035f606f9be
[ "Apache-2.0" ]
null
null
null
microservices/validate/tools/dynamodb.py
clodonil/pipeline_aws_custom
8ca517d0bad48fe528461260093f0035f606f9be
[ "Apache-2.0" ]
null
null
null
""" Tools de integração com o Dynamodb """ import boto3 import botocore import logging import datetime import json import copy import time import os class DyConnect: def __init__(self, table, region): self.table = table self.region = region def connect(self): try: dydb = b...
24.413793
70
0.639124
684
0.48237
0
0
0
0
0
0
226
0.159379
6b24d64a863b721f8c91dae3e401a33b896a0b31
853
py
Python
scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py
LZC6244/scrapy_ddiy
1bf7cdd382afd471af0bf7069b377fb364dc4730
[ "MIT" ]
9
2021-05-17T02:55:16.000Z
2022-03-28T08:36:50.000Z
scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py
LZC6244/scrapy_ddiy
1bf7cdd382afd471af0bf7069b377fb364dc4730
[ "MIT" ]
null
null
null
scrapy_ddiy/spiders/GlidedSky/glided_sky_001.py
LZC6244/scrapy_ddiy
1bf7cdd382afd471af0bf7069b377fb364dc4730
[ "MIT" ]
1
2022-01-23T06:28:31.000Z
2022-01-23T06:28:31.000Z
# -*- coding: utf-8 -*- from scrapy import Request from scrapy_ddiy.utils.spiders.ddiy_base import DdiyBaseSpider class GlidedSky001Spider(DdiyBaseSpider): name = 'glided_sky_001' description = 'GlidedSky 爬虫-基础1' start_url = 'http://www.glidedsky.com/level/web/crawler-basic-1' custom_settings = { ...
34.12
106
0.657679
743
0.86295
88
0.102207
0
0
0
0
339
0.393728
6b25fa954e2aca18ad4da138b448689002685921
5,125
py
Python
datasets/celeba/celeba_dataset.py
google/joint_vae
984f456d1a38c6b27e23433aef241dea56f53384
[ "Apache-2.0" ]
35
2017-12-15T12:58:15.000Z
2020-09-27T05:48:50.000Z
datasets/celeba/celeba_dataset.py
google/joint_vae
984f456d1a38c6b27e23433aef241dea56f53384
[ "Apache-2.0" ]
null
null
null
datasets/celeba/celeba_dataset.py
google/joint_vae
984f456d1a38c6b27e23433aef241dea56f53384
[ "Apache-2.0" ]
11
2017-12-08T06:07:30.000Z
2021-10-31T10:36:05.000Z
# # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
36.091549
123
0.724293
0
0
0
0
0
0
0
0
3,086
0.602146
6b269f5ba9e2d6a392abd625b09ccdc699507f3d
1,303
py
Python
jorldy/manager/log_manager.py
kan-s0/JORLDY
44989cf415196604a1ad0383b34085dee6bb1c51
[ "Apache-2.0" ]
null
null
null
jorldy/manager/log_manager.py
kan-s0/JORLDY
44989cf415196604a1ad0383b34085dee6bb1c51
[ "Apache-2.0" ]
null
null
null
jorldy/manager/log_manager.py
kan-s0/JORLDY
44989cf415196604a1ad0383b34085dee6bb1c51
[ "Apache-2.0" ]
null
null
null
import os import datetime, time import imageio from pygifsicle import optimize from torch.utils.tensorboard import SummaryWriter class LogManager: def __init__(self, env, id, experiment=None): self.id = id now = datetime.datetime.now().strftime("%Y%m%d%H%M%S%f") self.path = ( ...
36.194444
86
0.583269
1,170
0.897928
0
0
0
0
0
0
229
0.175748
6b27daa674cb67e0f7a35c3fcd65be25c5a4c1db
2,676
py
Python
lib/SeparateDriver/ASRDriverParts/UNIInterface.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
lib/SeparateDriver/ASRDriverParts/UNIInterface.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
lib/SeparateDriver/ASRDriverParts/UNIInterface.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
1
2020-04-02T01:17:43.000Z
2020-04-02T01:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: ASRDriverParts/UNIInterface.py ''' Parts Module for ASR driver UNI interface configuraton ''' import GlobalModule from EmCommonLog import decorater_log from ASRDriverParts.InterfaceBase im...
33.037037
63
0.567638
2,330
0.870703
0
0
2,197
0.821001
0
0
693
0.258969
6b2847d0ef2aafced05fa68a40e983a929d467d0
6,003
py
Python
tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py
AnthonyQuantum/open_model_zoo
7d235755e2d17f6186b11243a169966e4f05385a
[ "Apache-2.0" ]
4
2021-04-21T02:38:04.000Z
2021-10-13T12:15:33.000Z
tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py
AnthonyQuantum/open_model_zoo
7d235755e2d17f6186b11243a169966e4f05385a
[ "Apache-2.0" ]
6
2020-11-13T19:02:47.000Z
2022-03-12T00:43:24.000Z
tools/accuracy_checker/accuracy_checker/annotation_converters/mnist.py
AnthonyQuantum/open_model_zoo
7d235755e2d17f6186b11243a169966e4f05385a
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
42.274648
118
0.670165
5,113
0.851741
0
0
1,161
0.193403
0
0
1,983
0.330335
6b28598ebd5982e3c50306026cc2ae916f9a979c
4,511
py
Python
Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py
davidbrownell/Common_EnvironmentEx
9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3
[ "BSL-1.0" ]
null
null
null
Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py
davidbrownell/Common_EnvironmentEx
9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3
[ "BSL-1.0" ]
null
null
null
Libraries/Python/wxGlade/v0.9,5/wxGlade-0.9.5-py3.6.egg/wxglade/bugdialog.py
davidbrownell/Common_EnvironmentEx
9e20b79b4de0cb472f65ac08b3de83f9ed8e2ca3
[ "BSL-1.0" ]
1
2020-08-19T17:25:22.000Z
2020-08-19T17:25:22.000Z
"""\ Dialog to show details of internal errors. @copyright: 2014-2016 Carsten Grohmann @copyright: 2017 Dietmar Schwertberger @license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY """ import bugdialog_ui import config import log import logging import sys import wx class BugReport(bugdialog_ui.UIBug...
30.073333
103
0.65573
2,744
0.608291
0
0
0
0
0
0
1,997
0.442696
6b2889ee02cbc2db0ebf9270a48b091ad3ca3b59
8,237
py
Python
core/views.py
Neelamegam2000/QRcode-for-license
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
[ "MIT" ]
null
null
null
core/views.py
Neelamegam2000/QRcode-for-license
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
[ "MIT" ]
null
null
null
core/views.py
Neelamegam2000/QRcode-for-license
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.conf import settings from django.core.files.storage import FileSystemStorage,default_storage from django.core.mail import send_mail, EmailMessage from core.models import Document from core.forms import DocumentForm from django.contrib import messages import os...
42.901042
167
0.617701
0
0
0
0
0
0
0
0
2,370
0.287726
6b29a1af58169202c8dc76623da144e32be97995
25
py
Python
docassemble/MACourts/__init__.py
nonprofittechy/docassemble-MACourts
6035393a09cff3e8a371f19b79d1cde3a60691c1
[ "MIT" ]
2
2020-07-20T19:13:38.000Z
2021-03-02T04:30:44.000Z
docassemble/MACourts/__init__.py
nonprofittechy/docassemble-MACourts
6035393a09cff3e8a371f19b79d1cde3a60691c1
[ "MIT" ]
25
2020-04-11T18:40:32.000Z
2021-12-20T14:18:04.000Z
docassemble/MACourts/__init__.py
nonprofittechy/docassemble-MACourts
6035393a09cff3e8a371f19b79d1cde3a60691c1
[ "MIT" ]
7
2020-04-10T01:51:27.000Z
2021-06-25T21:24:48.000Z
__version__ = '0.0.58.2'
12.5
24
0.64
0
0
0
0
0
0
0
0
10
0.4
6b2b5f9728064d787e0b3474fa79a57d993dda3b
594
py
Python
main.py
Meat0Project/ChatBot
35ebadc71b100d861f9c9e211e1e751175f47c50
[ "MIT" ]
4
2020-10-30T07:46:39.000Z
2020-10-30T18:20:57.000Z
main.py
Meat0Project/ChatBot
35ebadc71b100d861f9c9e211e1e751175f47c50
[ "MIT" ]
null
null
null
main.py
Meat0Project/ChatBot
35ebadc71b100d861f9c9e211e1e751175f47c50
[ "MIT" ]
null
null
null
''' Made by - Aditya mangal Purpose - Python mini project Date - 18 october 2020 ''' from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer form termcolor import cprint import time chatbot = ChatBot('Bot') trainer = ChatterBotCorpusTrainer(chatbot) trainer.train('chatterbot.corpus.eng...
22.846154
55
0.69697
0
0
0
0
0
0
0
0
201
0.338384
6b2bddfb3c677b2bd52d34844ad305be0f97c9b1
9,330
py
Python
challenges/day14.py
Jeffreyo3/AdventOfCode2020
8705847a04885d6489eb11acfddf2ff5702d8927
[ "MIT" ]
null
null
null
challenges/day14.py
Jeffreyo3/AdventOfCode2020
8705847a04885d6489eb11acfddf2ff5702d8927
[ "MIT" ]
null
null
null
challenges/day14.py
Jeffreyo3/AdventOfCode2020
8705847a04885d6489eb11acfddf2ff5702d8927
[ "MIT" ]
null
null
null
""" --- Day 14: Docking Data --- As your ferry approaches the sea port, the captain asks for your help again. The computer system that runs this port isn't compatible with the docking program on the ferry, so the docking parameters aren't being correctly initialized in the docking program's memory. After a brief inspe...
42.217195
386
0.700536
0
0
0
0
0
0
0
0
6,502
0.696892
6b2c276716f02206bb780210c6a91cee657ed190
2,524
py
Python
src/Dialogs/RegularPolygonDialog.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
41
2021-11-24T05:54:08.000Z
2022-03-26T10:19:30.000Z
src/Dialogs/RegularPolygonDialog.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
1
2022-02-28T04:34:51.000Z
2022-03-07T10:49:27.000Z
src/Dialogs/RegularPolygonDialog.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
10
2021-11-24T07:35:17.000Z
2022-03-25T18:42:14.000Z
from PyQt5 import QtWidgets, uic from Factory import Factory from Dialogs.DialogMacros import turn_into_free_point, free_point_checkbox from Fill.ListWidget import fill_listWidget_with_data, set_selected_id_in_listWidget import Constant as c class RegularPolygonDialog(QtWidgets.QDialog): def __init__(self, scene...
39.4375
112
0.660063
2,278
0.902536
0
0
0
0
0
0
252
0.099842
6b2cac513cb8e6260352dc24ccb57b041a317ef9
8,858
py
Python
tests/test_networks.py
UCY-LINC-LAB/5G-Slicer
41e75a6709bc779cb4f3e08484b9ada3911646ed
[ "Apache-2.0" ]
null
null
null
tests/test_networks.py
UCY-LINC-LAB/5G-Slicer
41e75a6709bc779cb4f3e08484b9ada3911646ed
[ "Apache-2.0" ]
null
null
null
tests/test_networks.py
UCY-LINC-LAB/5G-Slicer
41e75a6709bc779cb4f3e08484b9ada3911646ed
[ "Apache-2.0" ]
null
null
null
import unittest from networks.QoS import QoS from networks.connections.mathematical_connections import FunctionalDegradation from networks.slicing import SliceConceptualGraph from utils.location import Location class TestBaseStationLinear(unittest.TestCase): def setUp(self): self.name = "network" ...
47.368984
112
0.634229
8,639
0.975277
0
0
0
0
0
0
1,267
0.143035