hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
ff7d49070a821d55d1d1de8f2f1da774a5bddc2d
441
py
Python
app_metrics/backends/redis.py
pydanny/django-app-metrics
402e75a43fe344657b8c72a4d3806fc9aec7ce61
[ "BSD-3-Clause" ]
1
2015-01-20T07:14:20.000Z
2015-01-20T07:14:20.000Z
app_metrics/backends/redis.py
pydanny/django-app-metrics
402e75a43fe344657b8c72a4d3806fc9aec7ce61
[ "BSD-3-Clause" ]
null
null
null
app_metrics/backends/redis.py
pydanny/django-app-metrics
402e75a43fe344657b8c72a4d3806fc9aec7ce61
[ "BSD-3-Clause" ]
null
null
null
# Backend to store info in Redis from django.conf import settings from app_metrics.tasks import redis_metric_task, redis_gauge_task def metric(slug, num=1, properties=None): redis_metric_task.delay(slug, num, properties) def timing(slug, seconds_taken, **kwargs): # No easy way to do this with redis, so this i...
29.4
65
0.752834
300f71bafd0062304084b29d25096531f345c859
3,868
py
Python
indra/tests/test_incremental_model.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
indra/tests/test_incremental_model.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_incremental_model.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str from indra.statements import * from indra.tools.incremental_model import IncrementalModel stmts = [Complex([Agent('MAPK1'), Agent('MAPK3')]), Complex([Agent('MAPK3'), Agent('MAP2K1')])] stmts2 = [Phosphoryl...
36.149533
74
0.658221
ad63b4aa73f3547f48ccd27cbe1b42e98d60d505
1,619
py
Python
video_capture.py
AbhishekS101/Realtime_Emotion_Analysis
061b388b2829d66c5b59fc29b99a04cf0954e14d
[ "MIT" ]
null
null
null
video_capture.py
AbhishekS101/Realtime_Emotion_Analysis
061b388b2829d66c5b59fc29b99a04cf0954e14d
[ "MIT" ]
null
null
null
video_capture.py
AbhishekS101/Realtime_Emotion_Analysis
061b388b2829d66c5b59fc29b99a04cf0954e14d
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np from keras.models import model_from_json from keras.preprocessing import image model = model_from_json(open("emot.json","r").read()) model.load_weights('emot.h5') face_haar_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') cap=cv2.VideoCap...
30.54717
110
0.665843
e316743a4a7b89cc956b4d08509bd0dca1c44a99
9,948
py
Python
contrib/spendfrom/spendfrom.py
conan-equal-newone/pptp
1013c98859e6b9301e61cce53b9feea642962910
[ "MIT" ]
3
2018-04-01T01:38:01.000Z
2019-03-14T17:12:24.000Z
contrib/spendfrom/spendfrom.py
conan-equal-newone/pptp
1013c98859e6b9301e61cce53b9feea642962910
[ "MIT" ]
1
2018-04-16T11:15:42.000Z
2018-04-16T11:15:42.000Z
contrib/spendfrom/spendfrom.py
chaingame/wallet
1de1306b91ccdf10b7bb18696a8c5d498ec78bdf
[ "MIT" ]
2
2018-06-21T07:47:22.000Z
2018-07-24T18:11:39.000Z
#!/usr/bin/env python # # Use the raw transactions API to spend pptps received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a pptpd or Pptp-Qt r...
37.119403
111
0.629172
fc25d83a9e53d88ba626a0b9dad3f7f7320a3d0d
436
py
Python
content/02-if1/if1.py
codio-content/Coding_with_Python-Conditions
cae51447241b0ece174a6a58f7a9e37c52ee879d
[ "MIT", "Unlicense" ]
null
null
null
content/02-if1/if1.py
codio-content/Coding_with_Python-Conditions
cae51447241b0ece174a6a58f7a9e37c52ee879d
[ "MIT", "Unlicense" ]
null
null
null
content/02-if1/if1.py
codio-content/Coding_with_Python-Conditions
cae51447241b0ece174a6a58f7a9e37c52ee879d
[ "MIT", "Unlicense" ]
null
null
null
# This is the input value variable, much like in Flode # # We use int() to make sure the python interpreter knows that # we want to treat the command line argument as a number and # not as a string. # import sys argument1= sys.argv[1] # argument will always be strings number = int(argument1) # to use as an inte...
22.947368
62
0.697248
8c2a5caad4946849ab8d4d32ee29ad6e9966061c
4,400
py
Python
adafruit-circuitpython-bundle-py-20201107/examples/mpr121_pi_keyboard.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
null
null
null
adafruit-circuitpython-bundle-py-20201107/examples/mpr121_pi_keyboard.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
null
null
null
adafruit-circuitpython-bundle-py-20201107/examples/mpr121_pi_keyboard.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # Adafruit Raspberry Pi MPR121 Keyboard Example # Author: Tony DiCola, Brennen Bearnes # # Allows you to turn touches detected by the MPR121 into key presses on a # Raspberry Pi. # # Dependencies # ============ # # Make sure you have the required dependencies by executing the followin...
35.772358
94
0.718864
91d52a42860549dc97b5940689e4a12403498035
158
py
Python
icekit/project/settings/icekit.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/project/settings/icekit.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/project/settings/icekit.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
import warnings from .calculated import * warnings.warn("GLAMkit settings have been made default. Import settings.calculated instead.", DeprecationWarning)
26.333333
113
0.816456
67262320d53b90790493de7226fe626878215073
417
py
Python
ois_api_client/v3_0/dto/QueryInvoiceDigestResponse.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v3_0/dto/QueryInvoiceDigestResponse.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v3_0/dto/QueryInvoiceDigestResponse.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .InvoiceDigestResult import InvoiceDigestResult from .BasicOnlineInvoiceResponse import BasicOnlineInvoiceResponse @dataclass class QueryInvoiceDigestResponse(BasicOnlineInvoiceResponse): """Response type of the POST /queryInvoiceDigest REST operation :param invoice_dig...
29.785714
67
0.83693
f3b2083e329cebcaf907bd1b7ba0a56277918f45
5,711
py
Python
flower/utils/broker.py
daidaitaotao/flower
2f674aa4ed4f11243822869b70027c0b6f07a61c
[ "BSD-3-Clause" ]
39
2016-12-05T14:36:37.000Z
2021-07-29T18:22:34.000Z
flower/utils/broker.py
daidaitaotao/flower
2f674aa4ed4f11243822869b70027c0b6f07a61c
[ "BSD-3-Clause" ]
68
2016-12-12T20:38:47.000Z
2020-07-26T18:28:49.000Z
flower/utils/broker.py
daidaitaotao/flower
2f674aa4ed4f11243822869b70027c0b6f07a61c
[ "BSD-3-Clause" ]
120
2016-08-18T14:53:03.000Z
2020-06-16T13:27:20.000Z
from __future__ import absolute_import import sys import json import socket import logging import numbers from tornado import ioloop from tornado import gen from tornado import httpclient try: from urllib.parse import urlparse, urljoin, quote, unquote except ImportError: from urlparse import urlparse, urljo...
30.704301
88
0.605148
a6b14ce3ff12758300b542dd8aafffa42340b1b4
1,586
py
Python
tests/max_lengths/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/max_lengths/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/max_lengths/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import unittest from .models import PersonWithCustomMaxLengths, PersonWithDefaultMaxLengths class MaxLengthArgumentsTests(unittest.TestCase): def verify_max_length(self, model, field, length): self.assertEqual(model._meta.get_field(field).max_length, length) def test_default_max_lengths(s...
40.666667
101
0.671501
20b40f817136c7e7feac4d31efe0265a13b011c1
2,323
py
Python
attempts/modular/test7.py
propellingbits/diyjac-SDC-P4
f8bdb31420bf894dcbc5f00a8326e14a82a34e04
[ "MIT" ]
1
2019-02-03T06:54:43.000Z
2019-02-03T06:54:43.000Z
attempts/modular/test7.py
propellingbits/diyjac-SDC-P4
f8bdb31420bf894dcbc5f00a8326e14a82a34e04
[ "MIT" ]
null
null
null
attempts/modular/test7.py
propellingbits/diyjac-SDC-P4
f8bdb31420bf894dcbc5f00a8326e14a82a34e04
[ "MIT" ]
null
null
null
#importing some useful packages import numpy as np import cv2 from p4lib.cameraCal import CameraCal from p4lib.imageFilters import ImageFilters from moviepy.editor import VideoFileClip def diagnostic_process_image(img, camCal): imgFtr = ImageFilters(camCal, debug=True) # Run the functions imgFtr.imageQ(i...
43.830189
120
0.723633
ac2026881f4c037c3dd7325c145a96e375211334
469
py
Python
tests/run/generators_py35.py
aparamon/cython
5dfefdadf6c20bf631ea3b6e567eede2f1ddd3d0
[ "Apache-2.0" ]
1
2016-02-10T13:29:17.000Z
2016-02-10T13:29:17.000Z
tests/run/generators_py35.py
aparamon/cython
5dfefdadf6c20bf631ea3b6e567eede2f1ddd3d0
[ "Apache-2.0" ]
null
null
null
tests/run/generators_py35.py
aparamon/cython
5dfefdadf6c20bf631ea3b6e567eede2f1ddd3d0
[ "Apache-2.0" ]
2
2017-06-18T04:09:18.000Z
2018-11-30T20:03:58.000Z
# mode: run # tag: generators, pure3.5 from __future__ import generator_stop # "generator_stop" was only added in Py3.5. def with_outer_raising(*args): """ >>> x = with_outer_raising(1, 2, 3) >>> try: ... list(x()) ... except RuntimeError: ... print("OK!") ... else: ... p...
18.76
43
0.539446
d8163ae86022b18849c4be1dcc4982127e3cc7c6
670
py
Python
scraper/src/common.py
zeeshan-za-ahmad/robin
eb8d08db988714d8225e26f488a6120d2115fa99
[ "MIT" ]
704
2018-06-27T22:07:53.000Z
2022-01-29T13:47:03.000Z
scraper/src/common.py
dan7geo/robintrack
fc01dba1e388825340f68f93f0fcea581be3c083
[ "MIT" ]
60
2018-06-06T08:52:16.000Z
2022-03-30T22:38:35.000Z
scraper/src/common.py
sak7po/robintrack
630ffc6dd2d12b2902c83eb96ca128d535d5fd64
[ "MIT" ]
182
2018-06-28T18:23:52.000Z
2022-01-05T10:12:49.000Z
""" Common functionality used by multiple parts of the application. """ import json import re def pp_json(x: object) -> None: """ Pretty-prints the provided JSON-serializable object. """ print(json.dumps(x, indent=2, sort_keys=True)) THROTTLE_RGX = r".*Expected available in (\d*\.?\d+) seconds." def pars...
26.8
99
0.638806
7d10f8407a23176ef62b273a508c42e2f8dc7396
4,108
py
Python
hpc/models.py
PRIDE-Toolsuite/trackhub-creator
ade2cfafeaad95088664caecacb783b501c170aa
[ "Apache-2.0" ]
null
null
null
hpc/models.py
PRIDE-Toolsuite/trackhub-creator
ade2cfafeaad95088664caecacb783b501c170aa
[ "Apache-2.0" ]
null
null
null
hpc/models.py
PRIDE-Toolsuite/trackhub-creator
ade2cfafeaad95088664caecacb783b501c170aa
[ "Apache-2.0" ]
null
null
null
# # Author    : Manuel Bernal Llinares # Project   : trackhub-creator # Timestamp : 11-09-2017 11:14 # --- # © 2017 Manuel Bernal Llinares <mbdebian@gmail.com> # All rights reserved. # """ Models representing different HPC environments """ import os import abc # Application imports import config_manager from .excep...
36.353982
120
0.699611
b97b45e5dc7f95a0599b0582cc56e8f9956aa37b
3,032
py
Python
app/serializers.py
Maryan23/Moringa-Alumni-Backend
c75e18ee928ab195a9a13852c5933f0269f101cb
[ "MIT" ]
null
null
null
app/serializers.py
Maryan23/Moringa-Alumni-Backend
c75e18ee928ab195a9a13852c5933f0269f101cb
[ "MIT" ]
null
null
null
app/serializers.py
Maryan23/Moringa-Alumni-Backend
c75e18ee928ab195a9a13852c5933f0269f101cb
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import serializers from .models import Post, Profile, PublicCohort, Fundraiser, PrivateCohort class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ('id', 'username', 'email', 'password') ...
36.095238
83
0.672823
eac9b5914983c40dbaf16b9c2335195584afa0fb
4,538
py
Python
moveit_kinematics/ikfast_kinematics_plugin/scripts/round_collada_numbers.py
zultron/moveit
d2fb1ae2bdf4309006dc219903c5c0b629f2e9c3
[ "BSD-3-Clause" ]
null
null
null
moveit_kinematics/ikfast_kinematics_plugin/scripts/round_collada_numbers.py
zultron/moveit
d2fb1ae2bdf4309006dc219903c5c0b629f2e9c3
[ "BSD-3-Clause" ]
null
null
null
moveit_kinematics/ikfast_kinematics_plugin/scripts/round_collada_numbers.py
zultron/moveit
d2fb1ae2bdf4309006dc219903c5c0b629f2e9c3
[ "BSD-3-Clause" ]
1
2020-04-10T20:55:44.000Z
2020-04-10T20:55:44.000Z
#! /usr/bin/env python ''' /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2013, University of Colorado, Boulder * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, a...
37.196721
101
0.655355
eb183fa78d4e64a59981a611cb06d01feedd1183
545
py
Python
cicada2/operator/daemon/types.py
herzo175/cicada-2
be838e7183dccfceafe02b61b0fe2307d50aab69
[ "BSD-3-Clause" ]
11
2020-05-05T22:42:09.000Z
2020-05-11T04:13:17.000Z
cicada2/operator/daemon/types.py
cicadatesting/cicada-2
be838e7183dccfceafe02b61b0fe2307d50aab69
[ "BSD-3-Clause" ]
8
2020-09-24T12:31:54.000Z
2022-02-19T01:15:42.000Z
cicada2/operator/daemon/types.py
cicadatesting/cicada-2
be838e7183dccfceafe02b61b0fe2307d50aab69
[ "BSD-3-Clause" ]
1
2020-05-05T22:41:33.000Z
2020-05-05T22:41:33.000Z
from typing import Dict, List, TypedDict class Dependency(TypedDict): name: str labels: Dict[str, str] statuses: List[str] class SetupConfig(TypedDict): pvc: str mountPath: str remotePath: str localPath: str class Spec(TypedDict): dependencies: List[Dependency] ioConfig: Dict[s...
16.515152
40
0.686239
91afb49649269bb7ecfc62f87eb3f9596811f14a
9,466
py
Python
tests/test_pdspi_fhir_example.py
RENCI/pdspi-fhir-example
c893e5b51f73407c4fe7898fc61d7f42ae421d98
[ "MIT" ]
null
null
null
tests/test_pdspi_fhir_example.py
RENCI/pdspi-fhir-example
c893e5b51f73407c4fe7898fc61d7f42ae421d98
[ "MIT" ]
null
null
null
tests/test_pdspi_fhir_example.py
RENCI/pdspi-fhir-example
c893e5b51f73407c4fe7898fc61d7f42ae421d98
[ "MIT" ]
2
2019-10-10T19:12:59.000Z
2019-12-05T18:58:49.000Z
import requests import time from tx.fhir.utils import bundle, unbundle import sys import json import os.path # from tx.test.utils import bag_equal patient_id = "1000" patient_id2 = "2000" patient_id3 = "0000" # non-existent patient_resc = { "id": patient_id, "resourceType": "Patient" } patient_resc2 = { "...
26.367688
112
0.622544
e472bbb9343eee544809123cd6ec608e505461e7
3,992
py
Python
tooling/database/postgres/coredb-json-dump.py
CedricCabessa/ledger-wallet-daemon
05f9f69da5e025a80e16967ca5c249c8c4265303
[ "MIT" ]
1
2021-02-26T22:12:51.000Z
2021-02-26T22:12:51.000Z
tooling/database/postgres/coredb-json-dump.py
CedricCabessa/ledger-wallet-daemon
05f9f69da5e025a80e16967ca5c249c8c4265303
[ "MIT" ]
null
null
null
tooling/database/postgres/coredb-json-dump.py
CedricCabessa/ledger-wallet-daemon
05f9f69da5e025a80e16967ca5c249c8c4265303
[ "MIT" ]
1
2021-01-05T09:41:09.000Z
2021-01-05T09:41:09.000Z
#!/usr/bin/python import sys import psycopg2 import os import json from os import walk from os.path import isfile, join ############################################################### ##### Export core database dump in json format ##### This keep original normalized schemas ##### It exports also ids in order ...
32.991736
123
0.526804
c735941a4d6fe8d4c6f0845ede9822ea82a0c6f1
449
py
Python
tests/datastructures/test_is_sorted_how.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/datastructures/test_is_sorted_how.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/datastructures/test_is_sorted_how.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from datastructures.lists.is_sorted_how import is_sorted_and_how class MyTestCase(unittest.TestCase): def test_1(self): self.assertEqual('yes, ascending', is_sorted_and_how([1, 2])) def test_2(self): self.assertEqual('yes, descending', is_sorted_and_how([15, 7, 3, -8])) ...
23.631579
78
0.683742
980b45aa17600320cdca854072f41e494f32799a
975
py
Python
scripts/generate_kernels.py
SKA-ScienceDataProcessor/crocodile
a1707079f418da09d3ebf73d404c4453b8bf86bf
[ "Apache-2.0" ]
4
2015-02-10T17:26:50.000Z
2019-12-28T17:14:48.000Z
scripts/generate_kernels.py
SKA-ScienceDataProcessor/crocodile
a1707079f418da09d3ebf73d404c4453b8bf86bf
[ "Apache-2.0" ]
5
2015-03-19T12:15:08.000Z
2015-06-19T12:51:26.000Z
scripts/generate_kernels.py
SKA-ScienceDataProcessor/crocodile
a1707079f418da09d3ebf73d404c4453b8bf86bf
[ "Apache-2.0" ]
10
2015-03-05T18:21:19.000Z
2018-07-30T02:04:23.000Z
#!/bin/env python3 import sys import os project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(project_root) from arl.test_support import import_visibility_from_oskar, export_visibility_to_fits # Parse arguments parser = argparse.ArgumentParser(description='Generate kernel file fo...
37.5
84
0.683077
e7a797ab779a66237d2a82fde0c33678bec5da23
2,020
py
Python
docs/conf.py
PandaRoux8/pyLSV2
702d44bdbba02a66b03ab719f63fe2a94af2738d
[ "MIT" ]
19
2020-11-06T11:39:16.000Z
2022-03-18T09:33:39.000Z
docs/conf.py
PandaRoux8/pyLSV2
702d44bdbba02a66b03ab719f63fe2a94af2738d
[ "MIT" ]
17
2021-01-12T12:38:13.000Z
2022-03-28T16:21:29.000Z
docs/conf.py
PandaRoux8/pyLSV2
702d44bdbba02a66b03ab719f63fe2a94af2738d
[ "MIT" ]
10
2020-12-09T09:36:56.000Z
2022-03-28T09:17:05.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
35.438596
79
0.668317
c4d725271fd1fa1801851eaa3518292a10f143a1
902
py
Python
checkID.py
linkhub-sdk/popbill.fax.example.py
df761dba616fb017fba55d0cee9edeaa4546c001
[ "MIT" ]
1
2017-11-06T06:53:45.000Z
2017-11-06T06:53:45.000Z
checkID.py
linkhub-sdk/popbill.fax.example.py
df761dba616fb017fba55d0cee9edeaa4546c001
[ "MIT" ]
null
null
null
checkID.py
linkhub-sdk/popbill.fax.example.py
df761dba616fb017fba55d0cee9edeaa4546c001
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # code for console Encoding difference. Dont' mind on it import sys import imp imp.reload(sys) try: sys.setdefaultencoding('UTF8') except Exception as E: pass import testValue from popbill import FaxService, PopbillException faxService = FaxService(testValue.LinkID, testValue.SecretK...
23.736842
63
0.719512
8e298cc2a275532ae60599e5ef03b48ea5dd24c7
11,920
py
Python
Assign3/Go4/Go3/gtp_connection.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
Assign3/Go4/Go3/gtp_connection.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
Assign3/Go4/Go3/gtp_connection.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
""" Module for playing games of Go using GoTextProtocol This code is based off of the gtp module in the Deep-Go project by Isaac Henrion and Amos Storkey at the University of Edinburgh. """ import traceback import sys import os from board import GoBoard from board_util import GoBoardUtil, BLACK, WHITE, EMPTY, BORDER, ...
32.747253
111
0.542198
94876882178ead36e8e039b1351bb9d7d19c1ea5
3,883
py
Python
tensorFlow.py
Rafael-Romano/Python
ca105e6f56737b99ce773720017c531790327894
[ "MIT" ]
null
null
null
tensorFlow.py
Rafael-Romano/Python
ca105e6f56737b99ce773720017c531790327894
[ "MIT" ]
null
null
null
tensorFlow.py
Rafael-Romano/Python
ca105e6f56737b99ce773720017c531790327894
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals # TensorFlow e tf.keras import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib.pyplot as plt print(tf.__version__) fashion_mnist = keras.datasets.fashion_mnist (train_images, train_labels), (test_i...
29.869231
84
0.697399
a8cee637201ec1ea5132e0e742af22c0d6987360
947
py
Python
management/migrations/0002_auto_20190108_0943.py
anantakash73/student_explorer
b7a93bbcfc4c00662f0dc8ecf98df585b45e2945
[ "Apache-2.0" ]
8
2017-11-13T17:52:16.000Z
2019-10-08T12:52:53.000Z
management/migrations/0002_auto_20190108_0943.py
anantakash73/student_explorer
b7a93bbcfc4c00662f0dc8ecf98df585b45e2945
[ "Apache-2.0" ]
202
2017-11-08T03:20:46.000Z
2022-03-25T16:12:34.000Z
management/migrations/0002_auto_20190108_0943.py
anantakash73/student_explorer
b7a93bbcfc4c00662f0dc8ecf98df585b45e2945
[ "Apache-2.0" ]
15
2017-11-08T02:43:17.000Z
2020-04-22T23:18:03.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-01-08 14:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('management', '0001_initial'), ] operations = [ migrations.CreateModel( name='MentorStudentCourseObser...
31.566667
114
0.593453
426c7c4020002e5b9da6fa5f71b9d80ab4ac9400
328
py
Python
src/medius/mediuspackets/mediusserverendgamerequest.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
8
2021-07-14T16:55:04.000Z
2022-03-07T22:03:03.000Z
src/medius/mediuspackets/mediusserverendgamerequest.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
22
2021-07-13T02:17:00.000Z
2022-02-13T03:26:52.000Z
src/medius/mediuspackets/mediusserverendgamerequest.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
5
2021-07-30T05:49:09.000Z
2022-02-14T18:02:07.000Z
from utils import utils class MediusServerEndGameRequestSerializer: data_dict = [ {'name': 'mediusid', 'n_bytes': 2, 'cast': None} ] class MediusServerEndGameRequestHandler: def process(self, serialized, monolith, con): raise Exception('Unimplemented Handler: MediusServerEndGameRequestHan...
25.230769
83
0.72561
32eb6ca81b7fa1c33934c2d13ea76f91cf36c61a
14,735
py
Python
qa/rpc-tests/wallet.py
icocoinproject/icocoin
0fbc434a848ef2d40c9a12438d2f148d947ed8f6
[ "MIT" ]
3
2018-03-31T00:15:04.000Z
2018-04-30T03:56:16.000Z
qa/rpc-tests/wallet.py
icocoinproject/icocoin
0fbc434a848ef2d40c9a12438d2f148d947ed8f6
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet.py
icocoinproject/icocoin
0fbc434a848ef2d40c9a12438d2f148d947ed8f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Icocoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import IcocoinTestFramework from test_framework.util import * class W...
44.116766
164
0.637462
65a809f712243149992dabfac78a4a63709cd451
400
py
Python
python-iniciando-na-pratica/lib/helper.py
marcelloti/COURSE-Iniciando-com-python
7fffd5bc3f5a8a8dd1d0cd2abb8b2e51ba9f0202
[ "MIT" ]
null
null
null
python-iniciando-na-pratica/lib/helper.py
marcelloti/COURSE-Iniciando-com-python
7fffd5bc3f5a8a8dd1d0cd2abb8b2e51ba9f0202
[ "MIT" ]
null
null
null
python-iniciando-na-pratica/lib/helper.py
marcelloti/COURSE-Iniciando-com-python
7fffd5bc3f5a8a8dd1d0cd2abb8b2e51ba9f0202
[ "MIT" ]
null
null
null
import os def printComment(comment): commentLenght = len(comment) print("\n") print(("-"*commentLenght)+("-")*10) print(" # " + comment) print(("-"*commentLenght)+("-")*10) def clearTerminal(): clear = 'cls' if os.name == 'nt' else 'clear' os.system(clear) def paus...
19.047619
50
0.5575
4f084950a96bca39dd1eb1c1bc323aa361606cbb
447
py
Python
Chapter 04/injection.py
Prakshal2607/Effective-Python-Penetration-Testing
f49fedc172a1add45edb21f66f74746dfa9c944a
[ "MIT" ]
346
2016-06-21T11:39:39.000Z
2022-01-26T03:19:29.000Z
Chapter 04/injection.py
liceaga/Effective-Python-Penetration-Testing
0b043885231662efd63402eec3c9cb413b9693e2
[ "MIT" ]
1
2016-06-21T11:44:42.000Z
2016-11-17T05:10:08.000Z
Chapter 04/injection.py
liceaga/Effective-Python-Penetration-Testing
0b043885231662efd63402eec3c9cb413b9693e2
[ "MIT" ]
210
2016-06-22T12:08:47.000Z
2022-03-16T15:54:30.000Z
import mechanize url = "http://www.webscantest.com/datastore/search_by_id.php" browser = mechanize.Browser() attackNumber = 1 with open('attack-vector.txt') as f: for line in f: browser.open(url) browser.select_form(nr=0) browser["id"] = line res = browser.submit() content = res.read() output = o...
23.526316
61
0.691275
17eb707b1b35cd9e1520900a0cbae5b8f080e6fa
3,334
py
Python
tests/runnable/integration/multicaster_multiple_consumer_processes_slowtest.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
tests/runnable/integration/multicaster_multiple_consumer_processes_slowtest.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
13
2020-05-04T14:14:58.000Z
2020-07-29T16:37:03.000Z
tests/runnable/integration/multicaster_multiple_consumer_processes_slowtest.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
import logging import time from typing import TypeVar from unittest import TestCase from puma.buffer import MultiProcessBuffer from puma.helpers.testing.logging.decorator import assert_no_warnings_or_errors_logged from puma.multicaster.multicaster import Multicaster from puma.runnable.runner import ProcessRunner from ...
52.920635
148
0.740552
5d3f67a8d01f720ce965015bd4fd91bc625984ab
1,128
py
Python
tests/conftest.py
MrMatOrg/mrmat-python-cli
6469c61b24e86a876bb09f60f07bbf7dbe61e920
[ "MIT" ]
null
null
null
tests/conftest.py
MrMatOrg/mrmat-python-cli
6469c61b24e86a876bb09f60f07bbf7dbe61e920
[ "MIT" ]
null
null
null
tests/conftest.py
MrMatOrg/mrmat-python-cli
6469c61b24e86a876bb09f60f07bbf7dbe61e920
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2021 Mathieu Imfeld # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
49.043478
81
0.765071
b5391a8f65e16df6d942b1186993d9b24e26fdfe
12,479
py
Python
goes_truecolor/lib/goes_reader.py
jyh/truecolor
083b532418ed3ed1e1f1d192e6321626b145cc67
[ "Apache-2.0" ]
3
2020-02-05T06:37:55.000Z
2020-02-09T11:39:11.000Z
goes_truecolor/lib/goes_reader.py
jyh/truecolor
083b532418ed3ed1e1f1d192e6321626b145cc67
[ "Apache-2.0" ]
1
2020-02-13T20:13:33.000Z
2020-02-13T21:09:58.000Z
goes_truecolor/lib/goes_reader.py
jyh/truecolor
083b532418ed3ed1e1f1d192e6321626b145cc67
[ "Apache-2.0" ]
1
2020-02-13T21:07:47.000Z
2020-02-13T21:07:47.000Z
"""Reader for GOES satellite data on Google Cloud Storage.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from typing import Any, Dict, List, Optional, Text, Tuple import logging import re import tempfile import urllib import collections import datetim...
30.812346
94
0.663435
1f8ac5a1327e9801691851b61fafc30aa23489cd
3,085
py
Python
aiotruenas_client/dataset.py
colemamd/aiotruenas-client
26f754fcceadbacbfc87a19465d5a8d035e4bd00
[ "MIT" ]
11
2020-12-30T00:33:01.000Z
2022-01-25T07:56:55.000Z
aiotruenas_client/dataset.py
colemamd/aiotruenas-client
26f754fcceadbacbfc87a19465d5a8d035e4bd00
[ "MIT" ]
35
2020-09-29T07:45:49.000Z
2022-03-29T15:02:52.000Z
aiotruenas_client/dataset.py
colemamd/aiotruenas-client
26f754fcceadbacbfc87a19465d5a8d035e4bd00
[ "MIT" ]
3
2020-12-30T18:19:03.000Z
2021-09-18T17:32:22.000Z
from __future__ import annotations from abc import ABC, abstractmethod from enum import Enum, unique from typing import Any, Dict, Optional @unique class DatasetPropertySource(Enum): DEFAULT = "DEFAULT" INHERITED = "INHERITED" LOCAL = "LOCAL" NONE = "NONE" @classmethod def fromValue(cls, val...
25.495868
78
0.619773
0af7db5f3a49c5f44ac1f499fb56029011ae90b0
12,351
py
Python
teuthology/orchestra/run.py
tchaikov/teuthology
bda9cb993f372116c804ea49daefda6b816650d5
[ "MIT" ]
null
null
null
teuthology/orchestra/run.py
tchaikov/teuthology
bda9cb993f372116c804ea49daefda6b816650d5
[ "MIT" ]
null
null
null
teuthology/orchestra/run.py
tchaikov/teuthology
bda9cb993f372116c804ea49daefda6b816650d5
[ "MIT" ]
null
null
null
""" Paramiko run support """ from cStringIO import StringIO from paramiko import ChannelFile import gevent import gevent.event import socket import pipes import logging import shutil from ..contextutil import safe_while from ..exceptions import (CommandCrashedError, CommandFailedError, Conne...
30.723881
119
0.590721
81ae05e79c88708bbf5959e7e5215ee22b5f23a3
34,381
py
Python
data/external/repositories_2to3/132822/kaggle-driver-telematics-master/model_run.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/132822/kaggle-driver-telematics-master/model_run.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/132822/kaggle-driver-telematics-master/model_run.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import pickle import itertools import random import numpy as np from sklearn.cross_validation import KFold from sklearn.decomposition import TruncatedSVD from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from scipy.sparse import vstack import scipy from data_access import DataAcc...
39.700924
124
0.710567
f766f116cab563c025451ae955aa0d07d125bce2
6,175
py
Python
command_generator/command.py
Miro-Andrin/feather
b4de9d5ce3800dcffa5d4440d68568a5f4fcc647
[ "Apache-2.0" ]
null
null
null
command_generator/command.py
Miro-Andrin/feather
b4de9d5ce3800dcffa5d4440d68568a5f4fcc647
[ "Apache-2.0" ]
1
2021-09-23T23:34:23.000Z
2021-09-23T23:34:23.000Z
command_generator/command.py
Miro-Andrin/feather
b4de9d5ce3800dcffa5d4440d68568a5f4fcc647
[ "Apache-2.0" ]
1
2021-04-26T14:15:43.000Z
2021-04-26T14:15:43.000Z
""" A command is a list of nodes that mostly terminate on a node that is executable, unless they are the start of a infinite loop. At the time of writing this that is only applicable to the execute commands. At the time i wrote this code leutenant had no way of including commands like these, so it was/is important t...
34.691011
144
0.597571
8afafeb3ca2dfc3cd28aa778d6d5cce6d52c2cfe
5,592
py
Python
main.py
wfs2010/m_cla
bb5636b7bf88c15334f1452d192502b98237a80b
[ "MIT" ]
2
2020-12-14T07:54:41.000Z
2020-12-14T07:54:56.000Z
main.py
wfs2010/m_cla
bb5636b7bf88c15334f1452d192502b98237a80b
[ "MIT" ]
null
null
null
main.py
wfs2010/m_cla
bb5636b7bf88c15334f1452d192502b98237a80b
[ "MIT" ]
null
null
null
# !/usr/bin/env Python3 # -*- coding: utf-8 -*- # @Author : 汪逢生 # @FILE : main.py # @Time : 2020-12-13 下午 1:47 # @Software : PyCharm import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from torch.utils.data import DataLoader,sampler,Dataset import torchvision.da...
28.100503
110
0.669707
a661611d26b49b80c1cab55e60027acdf4a74279
726
py
Python
games/WAVES/extractors/SessionID.py
scianna2/opengamedata-core
4ae139662a54b23cbd24baad9c9cc65f229d486e
[ "MIT" ]
1
2021-01-19T06:50:41.000Z
2021-01-19T06:50:41.000Z
games/WAVES/extractors/SessionID.py
scianna2/opengamedata-core
4ae139662a54b23cbd24baad9c9cc65f229d486e
[ "MIT" ]
2
2020-11-30T04:20:24.000Z
2021-02-03T18:44:34.000Z
games/WAVES/extractors/SessionID.py
opengamedata/opengamedata-backend
b6b2aa6e7c80d1bf50f71ffba917672f80f7f948
[ "MIT" ]
null
null
null
from schemas import Event import typing from typing import Any, List, Union # local imports from extractors.SessionFeature import SessionFeature from schemas.Event import Event class SessionID(SessionFeature): def __init__(self, name:str, description:str, sessionID:str): SessionFeature.__init__(self, name=...
25.928571
73
0.701102
f80c0402a386660ad2f81e02135c6462df883d9e
1,886
py
Python
Knowledge_Technologies/Project1/experiment/code/dataset_analysis.py
infinityglow/Unimelb-CS-Subjects
07bdb49fd4c50035b7f2e80ca218ac2b620098e4
[ "MIT" ]
1
2022-02-14T16:31:07.000Z
2022-02-14T16:31:07.000Z
Knowledge_Technologies/Project1/experiment/code/dataset_analysis.py
hidara2000/Unimelb-CS-Subjects
07bdb49fd4c50035b7f2e80ca218ac2b620098e4
[ "MIT" ]
null
null
null
Knowledge_Technologies/Project1/experiment/code/dataset_analysis.py
hidara2000/Unimelb-CS-Subjects
07bdb49fd4c50035b7f2e80ca218ac2b620098e4
[ "MIT" ]
1
2021-06-14T11:59:13.000Z
2021-06-14T11:59:13.000Z
#!usr/local/bin/python2.7 # Name Haonan Li # Student ID: 955022 import sys import os def analysis(): mis_f = open("../data/misspell.txt", 'r') dic_f = open("../data/dictionary.txt", 'r') cor_f = open("../data/correct.txt", 'r') res_f = open("../result/dataset_analysis", 'w') # read dictionary ...
25.835616
128
0.590138
bb84e51ffc3362a574aa34aa74a22e9fb86fb052
5,209
py
Python
pyaimsalgo/python/soma/aimsalgo/lazy_resample_volume.py
brainvisa/aims-free
5852c1164292cadefc97cecace022d14ab362dc4
[ "CECILL-B" ]
4
2019-07-09T05:34:10.000Z
2020-10-16T00:03:15.000Z
pyaimsalgo/python/soma/aimsalgo/lazy_resample_volume.py
brainvisa/aims-free
5852c1164292cadefc97cecace022d14ab362dc4
[ "CECILL-B" ]
72
2018-10-31T14:52:50.000Z
2022-03-04T11:22:51.000Z
pyaimsalgo/python/soma/aimsalgo/lazy_resample_volume.py
brainvisa/aims-free
5852c1164292cadefc97cecace022d14ab362dc4
[ "CECILL-B" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from soma.aims.lazy_read_data import LazyReadData from soma import aims, aimsalgo import six class LazyResampleVolume(LazyReadData): ''' A specialized version of aims.LazyReadData dedicated to Volumes, which can perform voxel type ...
43.773109
159
0.575158
df981f371aa2143513ec455a410bb38d794edf6f
1,448
py
Python
ortools/sat/samples/boolean_product_sample_sat.py
kharazian/or-tools-em
8df912821e013203523ba433ff2babbbc91c6a4b
[ "Apache-2.0" ]
null
null
null
ortools/sat/samples/boolean_product_sample_sat.py
kharazian/or-tools-em
8df912821e013203523ba433ff2babbbc91c6a4b
[ "Apache-2.0" ]
null
null
null
ortools/sat/samples/boolean_product_sample_sat.py
kharazian/or-tools-em
8df912821e013203523ba433ff2babbbc91c6a4b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2010-2021 Google 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 ...
32.909091
74
0.714779
2b210a21e4e27c74dda6dbac961779eeefea5ef2
5,982
py
Python
server/utils/beanstalk/honeysens-update-worker.py
sylencecc/HoneySens-Legacy
cfa082a6dd56e08b5e17e73dc1028fbd4b440812
[ "Apache-2.0" ]
1
2019-01-24T20:07:14.000Z
2019-01-24T20:07:14.000Z
server/utils/beanstalk/honeysens-update-worker.py
sylencecc/HoneySens-Legacy
cfa082a6dd56e08b5e17e73dc1028fbd4b440812
[ "Apache-2.0" ]
null
null
null
server/utils/beanstalk/honeysens-update-worker.py
sylencecc/HoneySens-Legacy
cfa082a6dd56e08b5e17e73dc1028fbd4b440812
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 import beanstalkc import ConfigParser import json import os import pymysql import sys if len(sys.argv) != 2: print('Usage: honeysens-update-worker.py <appConfig>') exit() config_file = sys.argv[1] if not os.path.isfile(config_file): print('Error: Config file not found') exit() ...
42.126761
402
0.643597
9b3b668b05d76fb105b76cbf84e3c1ce65a436a4
2,580
py
Python
tinkerer/ext/aggregator.py
Thomas1601/tinkerer
089d3ad3cea82bb4859a92bd465d8ec6cebf865a
[ "BSD-2-Clause" ]
189
2015-01-04T07:49:28.000Z
2022-01-04T03:42:32.000Z
tinkerer/ext/aggregator.py
mkouhei/tinkerer
71190b83233342c0a9831b0e4e7547ea3eace03a
[ "BSD-2-Clause" ]
34
2015-01-18T01:52:30.000Z
2020-09-06T04:59:28.000Z
tinkerer/ext/aggregator.py
mkouhei/tinkerer
71190b83233342c0a9831b0e4e7547ea3eace03a
[ "BSD-2-Clause" ]
61
2015-02-01T12:58:35.000Z
2021-12-25T12:53:29.000Z
''' aggregator ~~~~~~~~~~ Aggregates multiple posts into single pages. :copyright: Copyright 2011-2018 by Vlad Riscutia and contributors (see CONTRIBUTORS file) :license: FreeBSD, see LICENSE file ''' import copy from tinkerer.ext.uistr import UIStr def make_aggregated_pages(app): ''' ...
30
76
0.551938
bff7a28eda3c973906964de78266d4d0fddc7f84
3,490
py
Python
nova/tests/unit/consoleauth/test_rpcapi.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/consoleauth/test_rpcapi.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/tests/unit/consoleauth/test_rpcapi.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
3
2018-01-29T00:44:44.000Z
2020-07-24T01:19:20.000Z
# Copyright 2013 Red Hat, 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 agre...
36.354167
78
0.643553
7b0fb4dc6b162bafe8cf043df661d9c6c535702c
39,343
py
Python
source/NVDAObjects/IAccessible/MSHTML.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
source/NVDAObjects/IAccessible/MSHTML.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
source/NVDAObjects/IAccessible/MSHTML.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
#NVDAObjects/MSHTML.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2015 NV Access Limited, Aleksey Sadovoy #This file is covered by the GNU General Public License. #See the file COPYING for more details. import time from comtypes import COMError import comtypes.client import comtypes.automation from...
33.117003
210
0.764304
0961905af1b0271774a9c53bee6f7b96a2590309
1,957
py
Python
eio/utils.py
jcrist/eio
52bb492e15df893156910e3453523e2823b7cd1c
[ "BSD-3-Clause" ]
5
2019-10-28T17:31:54.000Z
2022-01-22T11:11:57.000Z
eio/utils.py
jcrist/eio
52bb492e15df893156910e3453523e2823b7cd1c
[ "BSD-3-Clause" ]
null
null
null
eio/utils.py
jcrist/eio
52bb492e15df893156910e3453523e2823b7cd1c
[ "BSD-3-Clause" ]
1
2022-01-22T11:12:00.000Z
2022-01-22T11:12:00.000Z
import asyncio import time async def cancel_task(task): task.cancel() try: await task except asyncio.CancelledError: pass def id_generator(prefix, prefix_bits=10, counter_bits=10): """Returns an ordered, globally unique stream of 64 bit IDs. The IDs are a mix of a prefix, timest...
32.616667
76
0.671436
ff81ca8aa3743fa41c71d66ecbdbf378f0d97097
5,515
py
Python
trade_remedies_public/cases/utils.py
uktrade/trade-remedies-public
bf2984c49c445bc5f8c5087e37a3cf59d06a5a0f
[ "MIT" ]
1
2020-08-27T09:50:42.000Z
2020-08-27T09:50:42.000Z
trade_remedies_public/cases/utils.py
uktrade/trade-remedies-public
bf2984c49c445bc5f8c5087e37a3cf59d06a5a0f
[ "MIT" ]
5
2020-08-27T22:19:06.000Z
2021-11-10T11:29:45.000Z
trade_remedies_public/cases/utils.py
uktrade/trade-remedies-public
bf2984c49c445bc5f8c5087e37a3cf59d06a5a0f
[ "MIT" ]
null
null
null
import datetime from core.utils import deep_index_items_by def min_nn(a, b): """ Return the minimum of a and b excluding Nones """ if a: if b: return min(a, b) return a return b def decorate_due_status(due_str): """ Decoration for due_dates to render styles an...
35.127389
100
0.61922
d9d1563b0910124cceb977cd93dd3ca12e9e10b9
2,226
py
Python
src/stage_02_prepare_base_model.py
TUCchkul/DVC_Deep-Learning-with-Tensorflow
42187e26c8aa11055fb278a6b6eca215bc277868
[ "MIT" ]
null
null
null
src/stage_02_prepare_base_model.py
TUCchkul/DVC_Deep-Learning-with-Tensorflow
42187e26c8aa11055fb278a6b6eca215bc277868
[ "MIT" ]
null
null
null
src/stage_02_prepare_base_model.py
TUCchkul/DVC_Deep-Learning-with-Tensorflow
42187e26c8aa11055fb278a6b6eca215bc277868
[ "MIT" ]
null
null
null
from src.utils.all_utils import read_yaml, create_directory from src.utils.models import get_VGG_16_model, prepare_model import argparse import os import logging import io logging_str = "[%(asctime)s: %(levelname)s: %(module)s]: %(message)s" log_dir = "logs" os.makedirs(log_dir, exist_ok=True) logging.basicConfig(fil...
30.916667
111
0.699461
7b69dbd31f23991f8cb0ef22c7d008785c0f5704
311
py
Python
yoga/yoga/views/default.py
carmeloacosta/FS-coding-challenge
3c73e70327e7f294b6496e3be0fa68709b80d6e5
[ "MIT" ]
null
null
null
yoga/yoga/views/default.py
carmeloacosta/FS-coding-challenge
3c73e70327e7f294b6496e3be0fa68709b80d6e5
[ "MIT" ]
null
null
null
yoga/yoga/views/default.py
carmeloacosta/FS-coding-challenge
3c73e70327e7f294b6496e3be0fa68709b80d6e5
[ "MIT" ]
null
null
null
from django.http import HttpResponse def handler404(request, exception): status = 404 message = "HTTP {}".format(status) return HttpResponse(message, status=status) def handler500(request): status = 500 message = "HTTP {}".format(status) return HttpResponse(message, status=status)
20.733333
47
0.70418
77286120924584235135f2d0f208bcdb55ab760c
1,504
py
Python
applications/extend/translates.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/extend/translates.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/extend/translates.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.utils.translation import gettext_lazy as _ v_key = _('Key') vp_key = _('keys') key_type = _('key type') BIGINTEGER = _("It is a 64-bit integer, much like an IntegerField except that it is guaranteed to fit numbers from -9223372036854775808 to 9223372036854775807.") BINARY = _("A field to store raw binary...
57.846154
161
0.743351
dbb705895c81a5776d7e2a5c4f27648e6618214d
3,022
py
Python
rllab-taewoo/examples/old/sens_vpg_point_hypsweep.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/examples/old/sens_vpg_point_hypsweep.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
null
null
null
rllab-taewoo/examples/old/sens_vpg_point_hypsweep.py
kyuhoJeong11/GrewRL
a514698df8d38df34de0bd1667d99927f0aa3885
[ "MIT" ]
1
2019-05-08T02:04:15.000Z
2019-05-08T02:04:15.000Z
#from rllab.algos.vpg import VPG from sandbox.rocky.tf.algos.sensitive_vpg import SensitiveVPG from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline from rllab.baselines.gaussian_mlp_baseline import GaussianMLPBaseline from rllab.baselines.zero_baseline import ZeroBaseline from examples.point_env im...
43.797101
191
0.650232
e1a6d6a6666762bca549b25765bd43f591860e0c
207
py
Python
app/crawlmovie/spiders/__init__.py
thomas5566/yahoo-ptt
435b4f4ae1c451474cd20430feb125789c09cc91
[ "MIT" ]
null
null
null
app/crawlmovie/spiders/__init__.py
thomas5566/yahoo-ptt
435b4f4ae1c451474cd20430feb125789c09cc91
[ "MIT" ]
null
null
null
app/crawlmovie/spiders/__init__.py
thomas5566/yahoo-ptt
435b4f4ae1c451474cd20430feb125789c09cc91
[ "MIT" ]
null
null
null
# This package will contain the spiders of your Scrapy project # # Please refer to the documentation for information on how to create and manage # your spiders. # For relative imports to work in Python 3.6
29.571429
79
0.777778
61d744dc90dcfdcaad33dcc76afe2eb9fb579aa1
5,984
py
Python
userbot/modules/garabage.py
rishi432/oubx
bc960e4b4e002c1c45535e13ec24f4547aa23a56
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "FTL", "X11", "MS-PL" ]
null
null
null
userbot/modules/garabage.py
rishi432/oubx
bc960e4b4e002c1c45535e13ec24f4547aa23a56
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "FTL", "X11", "MS-PL" ]
1
2021-02-08T20:44:56.000Z
2021-02-08T20:44:56.000Z
userbot/modules/garabage.py
GokuMUI7/oubx
bc960e4b4e002c1c45535e13ec24f4547aa23a56
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "FTL", "X11", "MS-PL" ]
null
null
null
#ported by @deleteduser420 for absolutely no reason at all from telethon import events import asyncio from userbot import CMD_HELP, bot from userbot.events import register import os from PIL import Image, ImageColor @bot.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True)) async def _(event): if event.fwd_from...
41.846154
173
0.21875
32bc370d8cdbfdc258a66fe06f97c09399182e13
343
py
Python
slackviews/__init__.py
escamez/slackviews
0d5ea936c546a071eb6167cf9a8a8cf2fdaf922b
[ "MIT" ]
2
2021-08-20T14:51:03.000Z
2021-08-23T17:57:35.000Z
slackviews/__init__.py
escamez/slackviews
0d5ea936c546a071eb6167cf9a8a8cf2fdaf922b
[ "MIT" ]
2
2020-09-23T18:40:35.000Z
2021-12-14T09:46:31.000Z
slackviews/__init__.py
escamez/slackviews
0d5ea936c546a071eb6167cf9a8a8cf2fdaf922b
[ "MIT" ]
null
null
null
""" Module slackviews """ from slackviews.view import AbstractBlock, AbstractBuilder, AbstractText, PlainText, MarkDown, Header, Image, \ Confirmation, Button, Option, OptionGroup, SelectMenu, MultiSelectMenu, Overflow, PlainTextInput, Section, \ Divider, Actions, Context, Input, View, Modal, Home, Block...
42.875
113
0.758017
a397ea8623f804250156f359581adf1c536a2b33
7,959
py
Python
airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/spec.py
jinnig/airbyte
1ccd21867b7908380b941ac4aa7737b59d18d4a9
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/spec.py
jinnig/airbyte
1ccd21867b7908380b941ac4aa7737b59d18d4a9
[ "MIT" ]
1
2021-08-17T06:12:26.000Z
2021-08-17T06:12:26.000Z
airbyte-integrations/connectors/source-s3/source_s3/source_files_abstract/spec.py
jinnig/airbyte
1ccd21867b7908380b941ac4aa7737b59d18d4a9
[ "MIT" ]
2
2021-12-14T17:15:40.000Z
2021-12-14T17:18:03.000Z
# # MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
46.00578
421
0.680613
29a5556829af5775cdec8d74a9c4c6bc487e0cbe
6,356
py
Python
vulnerabilities/importers/alpine_linux.py
Shanky-21/vulnerablecode
d1f9495d20fbf54d5d75599e01f3f54f568e9ede
[ "Apache-2.0" ]
1
2021-01-06T16:49:46.000Z
2021-01-06T16:49:46.000Z
vulnerabilities/importers/alpine_linux.py
Shanky-21/vulnerablecode
d1f9495d20fbf54d5d75599e01f3f54f568e9ede
[ "Apache-2.0" ]
16
2021-10-02T13:45:38.000Z
2022-02-01T22:46:35.000Z
vulnerabilities/importers/alpine_linux.py
Shanky-21/vulnerablecode
d1f9495d20fbf54d5d75599e01f3f54f568e9ede
[ "Apache-2.0" ]
1
2021-03-11T18:40:37.000Z
2021-03-11T18:40:37.000Z
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in comp...
37.169591
100
0.523914
d4c68c54f0b60307d1e53d8215438c1287be2667
988
py
Python
netbox/utilities/tables.py
Justmeccsn/netcheck
643f64df3f02912957c2faf1a7555876fe00e2bc
[ "Apache-2.0" ]
1
2021-03-02T00:34:47.000Z
2021-03-02T00:34:47.000Z
netbox/utilities/tables.py
Justmeccsn/netcheck
643f64df3f02912957c2faf1a7555876fe00e2bc
[ "Apache-2.0" ]
null
null
null
netbox/utilities/tables.py
Justmeccsn/netcheck
643f64df3f02912957c2faf1a7555876fe00e2bc
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import django_tables2 as tables from django.utils.safestring import mark_safe class BaseTable(tables.Table): """ Default table for object lists """ def __init__(self, *args, **kwargs): super(BaseTable, self).__init__(*args, **kwargs) # Set def...
28.228571
94
0.653846
7ecc1d1f4df219dfbc332d2e17ef611695d0b4b3
3,175
py
Python
edna2/tasks/PredictionTasks.py
shibom/edna2
31e39b887be88a47bca775cd91310f5a17841bdd
[ "CC0-1.0", "MIT" ]
null
null
null
edna2/tasks/PredictionTasks.py
shibom/edna2
31e39b887be88a47bca775cd91310f5a17841bdd
[ "CC0-1.0", "MIT" ]
2
2020-04-06T10:39:50.000Z
2021-04-14T19:24:37.000Z
edna2/tasks/PredictionTasks.py
shibom/edna2
31e39b887be88a47bca775cd91310f5a17841bdd
[ "CC0-1.0", "MIT" ]
5
2019-06-14T07:28:38.000Z
2021-04-28T13:10:39.000Z
# # Copyright (c) European Synchrotron Radiation Facility (ESRF) # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy,...
38.719512
107
0.661732
c7ecbbad250ba26c9f31ce83f498f4dd6edcfa33
88
py
Python
server/config/keys.example.py
vincenzodistasio97/excel-to-json
e367d4db4134dc676344b2b9fb2443300bd3c9c7
[ "MIT" ]
6
2018-03-26T13:20:31.000Z
2020-05-02T03:14:34.000Z
server/config/keys.example.py
vincenzodistasio97/excel-to-json
e367d4db4134dc676344b2b9fb2443300bd3c9c7
[ "MIT" ]
null
null
null
server/config/keys.example.py
vincenzodistasio97/excel-to-json
e367d4db4134dc676344b2b9fb2443300bd3c9c7
[ "MIT" ]
2
2019-12-31T06:12:46.000Z
2022-02-26T09:52:57.000Z
keys = { 'MONGO_DBNAME' : 'your_database_name', 'MONGO_URI' : 'your_mongo_uri_name' }
17.6
39
0.704545
137f27aa6f0f1871e482373267ee785e094b9540
1,849
py
Python
acos_client/v21/slb/template/template_ssl.py
Highwinds/acos-client
3865e82d6cf2f5a1b9f061c4ec121481d204c359
[ "Apache-2.0" ]
null
null
null
acos_client/v21/slb/template/template_ssl.py
Highwinds/acos-client
3865e82d6cf2f5a1b9f061c4ec121481d204c359
[ "Apache-2.0" ]
null
null
null
acos_client/v21/slb/template/template_ssl.py
Highwinds/acos-client
3865e82d6cf2f5a1b9f061c4ec121481d204c359
[ "Apache-2.0" ]
null
null
null
# Copyright 2014, Doug Wiegley, A10 Networks. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.017857
78
0.626825
38042494a0fcf2230f810ef56dd54e3ab12f2183
303
py
Python
data/multilingual/Latn.VEN/Mono_12/pdf_to_json_test_Latn.VEN_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.VEN/Mono_12/pdf_to_json_test_Latn.VEN_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.VEN/Mono_12/pdf_to_json_test_Latn.VEN_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.VEN/Mono_12/udhr_Latn.VEN_Mono_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
d5d6f1b55057af918edfae19790878bb120ea026
302
py
Python
05_function/05_function.py
Jasper-Li/PythonTutorial
270d18a1830ae74eaa6fc797a6d4f672688f1cee
[ "CC0-1.0" ]
null
null
null
05_function/05_function.py
Jasper-Li/PythonTutorial
270d18a1830ae74eaa6fc797a6d4f672688f1cee
[ "CC0-1.0" ]
null
null
null
05_function/05_function.py
Jasper-Li/PythonTutorial
270d18a1830ae74eaa6fc797a6d4f672688f1cee
[ "CC0-1.0" ]
null
null
null
#05 function # 消除重复 --> 引入函数(封装) def print_circle(r): print('半径', r) #以缩进表示上下从属关系 print('直径', 3 * r) print('周长', 2 * 3.14 * r ) print('面积', 3.14 * ( r ** 2) ) print() print_circle(3, '-'*15) print_circle(4, '-'*20) print_circle(4, '-'*20) print_circle(5, '#'*25)
20.133333
35
0.506623
00f7a1bf63ef41af53fb9c9abd7c7615465cc011
729
py
Python
python/clean_trello/clean_trello_archived_items.py
garmann/playground
7718173c714b4c7689cc0085d06b36e6ec406f89
[ "MIT" ]
null
null
null
python/clean_trello/clean_trello_archived_items.py
garmann/playground
7718173c714b4c7689cc0085d06b36e6ec406f89
[ "MIT" ]
null
null
null
python/clean_trello/clean_trello_archived_items.py
garmann/playground
7718173c714b4c7689cc0085d06b36e6ec406f89
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ simple python script to clean my trello archived items. it will look for archived cards in all boards to delete them. """ from trello import TrelloClient CONFIG = { 'api_key' : "x", 'server_token' : "x", } client = TrelloClient( api_key = CONFIG['api_key'], ...
23.516129
118
0.648834
89fbc8f6ca4abcd0cef60bec8740a0a7c2031a91
1,011
py
Python
octs/student/forms.py
kaiueo/octs
b0f4e0110507844c61b4995f15137c98de0d1bda
[ "BSD-3-Clause" ]
5
2017-06-26T02:45:06.000Z
2017-11-09T11:12:19.000Z
octs/student/forms.py
kaiueo/octs
b0f4e0110507844c61b4995f15137c98de0d1bda
[ "BSD-3-Clause" ]
null
null
null
octs/student/forms.py
kaiueo/octs
b0f4e0110507844c61b4995f15137c98de0d1bda
[ "BSD-3-Clause" ]
null
null
null
from flask_wtf import Form from wtforms import PasswordField, StringField,SubmitField,FloatField,DateField,FileField, FieldList from wtforms.validators import DataRequired, Email, EqualTo, Length from octs.database import Column, Model, SurrogatePK, db, reference_col, relationship from octs.user.models import Team cla...
32.612903
100
0.733927
9f14c1019e5dc5bdd9c0f12f5df611b113ff274e
8,582
py
Python
ec2api_tempest_plugin/api/test_vpcs.py
NeCTAR-RC/ec2api-tempest-plugin
2757fdac7355e9bd355b0e472ed928d7b88b933e
[ "Apache-2.0" ]
5
2018-06-27T11:17:10.000Z
2019-01-28T22:00:08.000Z
ec2api_tempest_plugin/api/test_vpcs.py
NeCTAR-RC/ec2api-tempest-plugin
2757fdac7355e9bd355b0e472ed928d7b88b933e
[ "Apache-2.0" ]
null
null
null
ec2api_tempest_plugin/api/test_vpcs.py
NeCTAR-RC/ec2api-tempest-plugin
2757fdac7355e9bd355b0e472ed928d7b88b933e
[ "Apache-2.0" ]
2
2019-01-14T04:54:29.000Z
2020-02-03T15:53:18.000Z
# Copyright 2014 OpenStack Foundation # 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 requ...
41.062201
79
0.624796
46497d915eb2345b80595429fff75dfdad9411dd
3,053
py
Python
modules/tools/plot_planning/plot_speed_jerk.py
zhouzhibo0117/apollo
f7a2369315a2bf106e473ced7392f4542f4ff3a3
[ "Apache-2.0" ]
4
2019-12-27T05:37:20.000Z
2020-03-24T07:21:54.000Z
modules/tools/plot_planning/plot_speed_jerk.py
zhouzhibo0117/apollo
f7a2369315a2bf106e473ced7392f4542f4ff3a3
[ "Apache-2.0" ]
2
2018-09-10T03:13:39.000Z
2018-10-15T16:31:14.000Z
modules/tools/plot_planning/plot_speed_jerk.py
zhouzhibo0117/apollo
f7a2369315a2bf106e473ced7392f4542f4ff3a3
[ "Apache-2.0" ]
57
2019-11-22T05:56:22.000Z
2019-12-28T08:51:10.000Z
#!/usr/bin/env python3 ############################################################################### # Copyright 2019 The Apollo 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...
32.136842
79
0.589256
c30fd5e69a0cb17339a0e8212920d8054250002b
5,370
py
Python
ciscoisesdk/api/v3_1_1/device_administration_service_names.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
36
2021-05-18T16:24:19.000Z
2022-03-05T13:44:41.000Z
ciscoisesdk/api/v3_1_1/device_administration_service_names.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
15
2021-06-08T19:03:37.000Z
2022-02-25T14:47:33.000Z
ciscoisesdk/api/v3_1_1/device_administration_service_names.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
6
2021-06-10T09:32:01.000Z
2022-01-12T08:34:39.000Z
# -*- coding: utf-8 -*- """Cisco Identity Services Engine Device Administration - Service Names API wrapper. Copyright (c) 2021 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the...
36.283784
114
0.672067
1c993288960d2981ed49bded4e4dbf9f77946ab6
1,805
py
Python
examples/python/gts_get_keys.py
bbakernoaa/eccodes
61eb6daac46f6f2b9959b506df5565fb9e763c40
[ "Apache-2.0" ]
null
null
null
examples/python/gts_get_keys.py
bbakernoaa/eccodes
61eb6daac46f6f2b9959b506df5565fb9e763c40
[ "Apache-2.0" ]
null
null
null
examples/python/gts_get_keys.py
bbakernoaa/eccodes
61eb6daac46f6f2b9959b506df5565fb9e763c40
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2005- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernme...
24.391892
78
0.572299
5ec289e79b4f76a55093e1fe386913169597593c
1,633
py
Python
tests/errors/test_method_call_errors.py
ofples/thinglang
b1391e8fb42d518fc0018400eecb608d18da915a
[ "MIT" ]
5
2017-11-07T21:32:22.000Z
2019-06-30T18:35:17.000Z
tests/errors/test_method_call_errors.py
ofples/thinglang
b1391e8fb42d518fc0018400eecb608d18da915a
[ "MIT" ]
null
null
null
tests/errors/test_method_call_errors.py
ofples/thinglang
b1391e8fb42d518fc0018400eecb608d18da915a
[ "MIT" ]
1
2020-03-25T18:14:08.000Z
2020-03-25T18:14:08.000Z
import pytest from thinglang import pipeline from thinglang.compiler.errors import TargetNotCallable, NoMatchingOverload from thinglang.lexer.values.identifier import Identifier from thinglang.lexer.values.inline_text import InlineString from thinglang.lexer.values.numeric import NumericValue from thinglang.utils.sour...
33.326531
126
0.730557
f6633811b97aa75b8c2c3130dc9c2c2c87f187b9
299
py
Python
main.py
kalenforn/video-context-analyze
a28c80b861664cfae73568845d753f3efc79c35a
[ "MIT" ]
3
2021-05-08T10:28:41.000Z
2021-06-23T14:33:07.000Z
main.py
kalenforn/video-context-analyze
a28c80b861664cfae73568845d753f3efc79c35a
[ "MIT" ]
null
null
null
main.py
kalenforn/video-context-analyze
a28c80b861664cfae73568845d753f3efc79c35a
[ "MIT" ]
1
2021-05-08T10:28:43.000Z
2021-05-08T10:28:43.000Z
import multiprocessing as mp import requests #import threading from Server.videoProcessServer.cutServer import start_web_server from tools.utlis import load_json, convert_2_json def main(): start_web_server() if __name__ == "__main__": mp.set_start_method('spawn', force=True) main()
21.357143
64
0.779264
314935b9d998c5d344f6e47afa61ed8dc36318e3
1,284
py
Python
utils/baseModel.py
genius0182/djangoAdminPlatform
f99882abc88eb112763b0d9d3d143e5639c837eb
[ "Apache-2.0" ]
2
2020-08-18T09:30:11.000Z
2021-08-06T05:36:29.000Z
utils/baseModel.py
genius0182/django-admin-platform
f99882abc88eb112763b0d9d3d143e5639c837eb
[ "Apache-2.0" ]
null
null
null
utils/baseModel.py
genius0182/django-admin-platform
f99882abc88eb112763b0d9d3d143e5639c837eb
[ "Apache-2.0" ]
null
null
null
from django.db import models class BaseModel(models.Model): """ 基本表 """ create_by = models.CharField( null=True, blank=True, verbose_name="创建者", help_text="创建者", max_length=50 ) update_by = models.CharField( null=True, blank=True, verbose_name="创建者", help_text="创建者", max_lengt...
23.777778
83
0.593458
eb046c31fb225002d1889eef66830429504deb6e
2,501
py
Python
lib/svtplay_dl/service/solidtango.py
mrcarlberg/svtplay-dl
e92ebbbcab2d529fe5dca25b5c3195b2b2fdc4e8
[ "MIT" ]
null
null
null
lib/svtplay_dl/service/solidtango.py
mrcarlberg/svtplay-dl
e92ebbbcab2d529fe5dca25b5c3195b2b2fdc4e8
[ "MIT" ]
null
null
null
lib/svtplay_dl/service/solidtango.py
mrcarlberg/svtplay-dl
e92ebbbcab2d529fe5dca25b5c3195b2b2fdc4e8
[ "MIT" ]
null
null
null
# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- import re import xml.etree.ElementTree as ET from urllib.parse import urlparse from svtplay_dl.error import ServiceError from svtplay_dl.fetcher.hls import hlsparse from svtplay_dl.service import Service class Solidtango(Service...
43.12069
125
0.57497
9b16dc068df6f7b3424dd2f3d09ded5e178b7171
635
py
Python
mla/neuralnet/tests/test_activations.py
Debanitrkl/MLAlgorithms
f53a267897e4d0babdcbae7c271c5042e07549ca
[ "MIT" ]
5
2019-09-23T19:52:40.000Z
2022-01-07T20:12:49.000Z
mla/neuralnet/tests/test_activations.py
Debanitrkl/MLAlgorithms
f53a267897e4d0babdcbae7c271c5042e07549ca
[ "MIT" ]
null
null
null
mla/neuralnet/tests/test_activations.py
Debanitrkl/MLAlgorithms
f53a267897e4d0babdcbae7c271c5042e07549ca
[ "MIT" ]
1
2021-09-07T01:43:29.000Z
2021-09-07T01:43:29.000Z
import sys import numpy as np from mla.neuralnet.activations import * def test_softplus(): # np.exp(z_max) will overflow z_max = np.log(sys.float_info.max) + 1.0e10 # 1.0 / np.exp(z_min) will overflow z_min = np.log(sys.float_info.min) - 1.0e10 inputs = np.array([0.0, 1.0, -1.0, z_min, z_max]) ...
33.421053
96
0.656693
e92e119f81c3fd5d28597f76eb94a35baabc7744
6,744
py
Python
{{cookiecutter.project_slug}}/apps/users/tests/test_api_profile.py
ukwahlula/django-server-boilerplate
6bd4b83511ea7e3370349957cf0b6dbff4003ab1
[ "BSD-3-Clause" ]
2
2020-10-30T09:47:07.000Z
2020-10-30T09:48:11.000Z
{{cookiecutter.project_slug}}/apps/users/tests/test_api_profile.py
ukwahlula/django-server-boilerplate
6bd4b83511ea7e3370349957cf0b6dbff4003ab1
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/apps/users/tests/test_api_profile.py
ukwahlula/django-server-boilerplate
6bd4b83511ea7e3370349957cf0b6dbff4003ab1
[ "BSD-3-Clause" ]
null
null
null
import pytest from django.conf import settings from django.urls import reverse from apps.generic.choices import PrivacyChoices from apps.sample.models import SampleSalivaTest from apps.storage.models import Image from apps.storage.tests.utils import generate_image_stub from apps.users.models import User @pytest.mark...
35.494737
109
0.730279
da46ed3f8c3e947f77a6683e0f41cbdece0b45d5
11,731
py
Python
domain-gistry/domain-gistry.py
Jcharis/DomainGistry_CLI
f621f4e9936169911653fef26ab46638d7a3aaa3
[ "MIT" ]
null
null
null
domain-gistry/domain-gistry.py
Jcharis/DomainGistry_CLI
f621f4e9936169911653fef26ab46638d7a3aaa3
[ "MIT" ]
null
null
null
domain-gistry/domain-gistry.py
Jcharis/DomainGistry_CLI
f621f4e9936169911653fef26ab46638d7a3aaa3
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import click from click_didyoumean import DYMGroup import json new_domain = ['app','site','online','xyz','tech','ai','shop','blog','space','live','life','website','news','ninja','solutions','expert','services','media','rocks','company','guru','club','today','agency','technolo...
38.336601
821
0.669508
36b6e3fccfe06a9d6cc1562d6e12c86a216c4f2c
234
py
Python
setup.py
aldiak/ml_wafer
78bf720099c88dcfb16e8751fdf5019e19c3bf70
[ "MIT" ]
null
null
null
setup.py
aldiak/ml_wafer
78bf720099c88dcfb16e8751fdf5019e19c3bf70
[ "MIT" ]
null
null
null
setup.py
aldiak/ml_wafer
78bf720099c88dcfb16e8751fdf5019e19c3bf70
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='It is a machine learning end to end project using mlops', author='ALOU', license='MIT', )
21.272727
74
0.67094
04a49c22497525ab6cde548f7bedd3419d9f9563
2,147
py
Python
websauna/system/auth/tweens.py
stevepiercy/websauna
2886b86f7920d75900c634958779d61aa73f011b
[ "CNRI-Python" ]
286
2016-01-17T05:44:02.000Z
2022-02-07T20:28:49.000Z
websauna/system/auth/tweens.py
stevepiercy/websauna
2886b86f7920d75900c634958779d61aa73f011b
[ "CNRI-Python" ]
203
2016-03-15T02:00:53.000Z
2021-09-27T10:48:49.000Z
websauna/system/auth/tweens.py
ooduor/websauna
2e78cd87eda305fbbb1080d386b8cf96537360e5
[ "CNRI-Python" ]
71
2016-01-17T11:04:26.000Z
2021-08-24T08:04:31.000Z
"""Authentication tweens.""" # Standard Library import logging # Pyramid from pyramid.httpexceptions import HTTPFound from pyramid.registry import Registry # SQLAlchemy from sqlalchemy import orm # Websauna from websauna.system.core import messages from websauna.system.http import Request try: from pyramid_tm ...
34.629032
181
0.661388
0f3daab73cbdfc28be33891f8e5bc960fd8ee56d
3,395
py
Python
hatsploit/modules/exploit/linux/generic/p2p_authenticated_rce.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/modules/exploit/linux/generic/p2p_authenticated_rce.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/modules/exploit/linux/generic/p2p_authenticated_rce.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # This module requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.module import Module from hatsploit.utils.http import HTTPClient from hatsploit.utils.string import StringTools class HatSploitModule(Module, HTTPClien...
27.379032
103
0.51782
447da11ed857dc55d2a91e3a133fd2ecaa1ac656
87,347
py
Python
extract.py
mguomanila/johnCrawlerNewProject
2d047b369b2f28e729e86d822c50848c195f3350
[ "Apache-2.0" ]
null
null
null
extract.py
mguomanila/johnCrawlerNewProject
2d047b369b2f28e729e86d822c50848c195f3350
[ "Apache-2.0" ]
null
null
null
extract.py
mguomanila/johnCrawlerNewProject
2d047b369b2f28e729e86d822c50848c195f3350
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- from __future__ import print_function import os import sys import copy # powielanie `record` aby powielac wiersze dla roznych osob, podmiotow i hipotek import re import datetime import pandas as pd import csv import bs4 from bs4 import BeautifulSoup from io import open ...
43.499502
292
0.596357
37e708186f960324afbbf1124f5439e0e397522f
3,058
py
Python
src/pycliques/coaffinations.py
rvf0068/pycliquesscaffold
6c036eb3307dd043f9eacdd16de73fe39b046d16
[ "MIT" ]
null
null
null
src/pycliques/coaffinations.py
rvf0068/pycliquesscaffold
6c036eb3307dd043f9eacdd16de73fe39b046d16
[ "MIT" ]
null
null
null
src/pycliques/coaffinations.py
rvf0068/pycliquesscaffold
6c036eb3307dd043f9eacdd16de73fe39b046d16
[ "MIT" ]
null
null
null
""" A *coaffination* of a graph :math:`G` is an automorphism :math:`\sigma\colon G\\to G` such that the distance from :math:`\sigma(x)` to :math:`x` is at least 2 for each vertex :math:`x`. """ import networkx as nx from networkx.algorithms import isomorphism from pycliques.utilities import invert_dict class Coaffin...
28.579439
126
0.634729
3860fe066596fcdb4ff2bc072d4bd2ee0951bd1e
43,534
py
Python
jesse/strategies/Strategy.py
jcsaaddupuy/jesse
58c64c57dfb6aa31d2547415b97bba3e5de53548
[ "MIT" ]
3
2021-09-28T19:53:56.000Z
2022-02-04T18:33:13.000Z
jesse/strategies/Strategy.py
jcsaaddupuy/jesse
58c64c57dfb6aa31d2547415b97bba3e5de53548
[ "MIT" ]
32
2021-10-05T16:25:25.000Z
2022-03-18T13:40:51.000Z
jesse/strategies/Strategy.py
b1nhm1nh/jesse-cli
b463bdc491cedd8042f1a9215e039efa4f701325
[ "MIT" ]
1
2021-12-15T10:53:48.000Z
2021-12-15T10:53:48.000Z
from abc import ABC, abstractmethod from time import sleep from typing import List import numpy as np import pydash import jesse.helpers as jh import jesse.services.logger as logger import jesse.services.selectors as selectors from jesse import exceptions from jesse.enums import sides, trade_types, order_roles from j...
36.21797
237
0.579019
353e25b44a1af0e2ad655ea8e83304ea597b11b8
10,415
py
Python
cirq/aqt/aqt_sampler.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
1
2020-04-06T17:06:10.000Z
2020-04-06T17:06:10.000Z
cirq/aqt/aqt_sampler.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
null
null
null
cirq/aqt/aqt_sampler.py
lilies/Cirq
519b8b70ba4d2d92d1c034c398161ebdbd23e2e7
[ "Apache-2.0" ]
1
2020-04-14T15:29:29.000Z
2020-04-14T15:29:29.000Z
# Copyright 2019 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
38.574074
80
0.58819
0ca0e3a989fa4e21e9c655a16e3bc7df725c5c40
5,020
py
Python
shuup_rest_api_tests/test_category_api.py
chessbr/shuup-rest-api
eb6316f96bd856c85a5bada4b8576d8aa2b81ebf
[ "OLDAP-2.6" ]
null
null
null
shuup_rest_api_tests/test_category_api.py
chessbr/shuup-rest-api
eb6316f96bd856c85a5bada4b8576d8aa2b81ebf
[ "OLDAP-2.6" ]
null
null
null
shuup_rest_api_tests/test_category_api.py
chessbr/shuup-rest-api
eb6316f96bd856c85a5bada4b8576d8aa2b81ebf
[ "OLDAP-2.6" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved. # # This source code is licensed under the Shuup Commerce Inc - # SELF HOSTED SOFTWARE LICENSE AGREEMENT executed by Shuup Commerce Inc, DBA as SHUUP® # and the Licensee. from __future__ import un...
42.905983
115
0.709163
ba6b58e88e93726d7f2d45fd650c2e09d3631443
848
py
Python
setup.py
chros73/bscpylgtv
0ddd475f4b46dea8d521758c8c81d1a811020730
[ "MIT" ]
17
2021-10-02T02:24:22.000Z
2022-03-06T22:22:06.000Z
setup.py
thecode/bscpylgtv
5a332b3edb689544a3d9279404e39bdb011a864f
[ "MIT" ]
2
2021-12-17T08:03:48.000Z
2021-12-25T12:40:06.000Z
setup.py
thecode/bscpylgtv
5a332b3edb689544a3d9279404e39bdb011a864f
[ "MIT" ]
1
2021-12-16T10:54:03.000Z
2021-12-16T10:54:03.000Z
from setuptools import setup about = {} with open("bscpylgtv/_version.py") as f: exec(f.read(), about) with open("README.md") as f: readme = f.read() extras = { "with_calibration": ["numpy>=1.17.0"] } setup( name="bscpylgtv", packages=["bscpylgtv"], install_requires=["websockets>=8.1", "sqlit...
24.941176
80
0.661557
cd4b4b66e683ddc27f8632b97e006dccce620f6e
15,258
py
Python
official/nlp/nhnet/decoder.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
8
2021-12-30T06:07:14.000Z
2022-02-10T14:49:13.000Z
official/nlp/nhnet/decoder.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
62
2021-06-09T00:47:27.000Z
2021-09-24T09:06:58.000Z
official/nlp/nhnet/decoder.py
akshit-protonn/models
38c8c6fe4144c93d6aadd19981c2b90570c29eba
[ "Apache-2.0" ]
2
2021-08-17T22:07:17.000Z
2021-12-25T12:25:47.000Z
# Copyright 2021 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...
41.237838
79
0.70409
d96901c86ae51e3878052c5934ed67dcb9a3446a
29,453
py
Python
Dynamic Obstacle Simulation/carla_motion_planner.py
TSummersLab/Risk_Bounded_Nonlinear_Robot_Motion_Planning
717b9f07f4ed625ee33ab8ec22ce78dc2907d759
[ "MIT" ]
3
2022-01-07T19:37:03.000Z
2022-03-15T08:50:28.000Z
risk_bounded_planning/carla_motion_planner.py
TSummersLab/Risk_Bounded_Nonlinear_Robot_Motion_Planning
717b9f07f4ed625ee33ab8ec22ce78dc2907d759
[ "MIT" ]
null
null
null
risk_bounded_planning/carla_motion_planner.py
TSummersLab/Risk_Bounded_Nonlinear_Robot_Motion_Planning
717b9f07f4ed625ee33ab8ec22ce78dc2907d759
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### """ @author: vxr131730 - Venkatraman Renganathan This code simulates the bicycle dynamics of car by steering it using NMPC - nonlinear model predictive control (multiple shooting technique) and the state est...
41.2507
144
0.490374
87ea340f9db2eedddae472fa81465ed87341cb31
12,540
py
Python
nginx-ldap-auth-daemon.py
NQ-Merinos/nginx-ldap-auth
6af6d71d5a73139691d6438d7a17498c04597788
[ "BSD-2-Clause" ]
null
null
null
nginx-ldap-auth-daemon.py
NQ-Merinos/nginx-ldap-auth
6af6d71d5a73139691d6438d7a17498c04597788
[ "BSD-2-Clause" ]
null
null
null
nginx-ldap-auth-daemon.py
NQ-Merinos/nginx-ldap-auth
6af6d71d5a73139691d6438d7a17498c04597788
[ "BSD-2-Clause" ]
null
null
null
#!/bin/sh ''''[ -z $LOG ] && export LOG=/dev/stdout # ''' ''''which python3 >/dev/null && exec python3 -u "$0" "$@" >> $LOG 2>&1 # ''' # Copyright (C) 2014-2015 Nginx, Inc. import sys, os, signal, base64, ldap, argparse if sys.version_info.major == 2: from Cookie import BaseCookie from BaseHTTPServer import...
36.347826
95
0.560287
539193e37f1e597f0ad1b147a4ec88890dcfe604
1,387
py
Python
nicos_mlz/puma/setups/defcal.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/puma/setups/defcal.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/puma/setups/defcal.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Calibration of the deflectors' group = 'basic' includes = [ 'pumabase', 'seccoll', 'collimation', 'ios', 'hv', 'notifiers', 'multidet', 'multiana', 'rdcad', 'opticalbench', 'detector', 'ana_alias', 'pollengths', 'slits', ] sysconfig = dict( datasinks = ['polsink',] ) devices = dict( ...
26.673077
79
0.560923
fbdbd0669ced7362c3cd6adf4e8747d3a026f060
5,239
py
Python
utils.py
itskeshav/Flower-Classifier
839ea7d28dfffc191d455a968341f87148484c74
[ "MIT" ]
null
null
null
utils.py
itskeshav/Flower-Classifier
839ea7d28dfffc191d455a968341f87148484c74
[ "MIT" ]
null
null
null
utils.py
itskeshav/Flower-Classifier
839ea7d28dfffc191d455a968341f87148484c74
[ "MIT" ]
null
null
null
__author__ = "Keshav Kumar <keshavraj203@gmail.com>" __version__ = "1.0.0" import os import torch from torchvision import models from torch import nn from model import initialize_model import config import argparse def save_ckp(state, save_dir, file_name=None): """Saves model and training parameters at checkpoin...
28.318919
131
0.635617
ac576f1b8c9438f0dac64a8dbcce1140aa4e4d43
4,194
py
Python
component/tile/process_tile.py
yfinegold/tmf_sepal
033d62fe4784ff6e7c91eb3c1fbb11b2774a79d6
[ "MIT" ]
null
null
null
component/tile/process_tile.py
yfinegold/tmf_sepal
033d62fe4784ff6e7c91eb3c1fbb11b2774a79d6
[ "MIT" ]
null
null
null
component/tile/process_tile.py
yfinegold/tmf_sepal
033d62fe4784ff6e7c91eb3c1fbb11b2774a79d6
[ "MIT" ]
null
null
null
# It is strongly suggested to use a separate file to define the tiles of your process and then call them in your notebooks. # it will help you to have control over their fonctionalities using object oriented programming from sepal_ui import sepalwidgets as sw import ipyvuetify as v from sepal_ui.scripts import utils ...
37.783784
124
0.601335
c37f26d5fa3657ebffa224eb65c5e555e11f164a
2,400
py
Python
src/spaceone/cost_analysis/info/budget_info.py
spaceone-dev/cost-analysis
cf73e294bcd35fa47f988aab7f00ed4cd777aba5
[ "Apache-2.0" ]
2
2021-11-05T06:54:37.000Z
2021-12-22T05:31:23.000Z
src/spaceone/cost_analysis/info/budget_info.py
whdalsrnt/cost-analysis
cf73e294bcd35fa47f988aab7f00ed4cd777aba5
[ "Apache-2.0" ]
9
2022-02-10T00:58:28.000Z
2022-03-23T11:12:47.000Z
src/spaceone/cost_analysis/info/budget_info.py
spaceone-dev/cost-analysis
cf73e294bcd35fa47f988aab7f00ed4cd777aba5
[ "Apache-2.0" ]
null
null
null
import functools from typing import List from spaceone.api.cost_analysis.v1 import budget_pb2 from spaceone.core.pygrpc.message_type import * from spaceone.core import utils from spaceone.cost_analysis.model.budget_model import Budget, PlannedLimit, Notification __all__ = ['BudgetInfo', 'BudgetsInfo'] def PlannedLim...
31.578947
111
0.679583
238d90e9c78a1152a36449fdf5608c60b3cb8a15
199
py
Python
main/PluginDemos/elongationFlexTest/Simulation/elongationFlexTest.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/elongationFlexTest/Simulation/elongationFlexTest.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/elongationFlexTest/Simulation/elongationFlexTest.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from .elongationFlexSteppables import ElongationFlexSteppable CompuCellSetup.register_steppable(steppable=ElongationFlexSteppable(frequency=50)) CompuCellSetup.run()
33.166667
82
0.889447
725a2ccb6c52d2e543edb982a68caf1a71e6e704
14
py
Python
projects/msrest/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
25
2021-10-30T19:54:59.000Z
2022-03-29T06:11:02.000Z
projects/msrest/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
21
2021-10-19T01:09:38.000Z
2022-03-24T16:08:53.000Z
projects/msrest/test.py
quinn-dougherty/python-on-nix
910d3f6554acd4a4ef0425ebccd31104dccb283c
[ "Unlicense" ]
3
2022-01-25T20:25:13.000Z
2022-03-08T02:58:50.000Z
import msrest
7
13
0.857143
c51d1971ed1b9ece793ec58bb1561e2cccaab0a2
1,969
py
Python
20200306_base一条龙_各种base整合/base解题.py
ctfwiki/subject_misc_ctfshow
2a51f5bc12e9c136841f9cc3ef88ed53df952054
[ "MIT" ]
16
2020-09-26T06:17:57.000Z
2022-03-03T15:41:07.000Z
20200306_base一条龙_各种base整合/base解题.py
ctfwiki/subject_misc_ctfshow
2a51f5bc12e9c136841f9cc3ef88ed53df952054
[ "MIT" ]
null
null
null
20200306_base一条龙_各种base整合/base解题.py
ctfwiki/subject_misc_ctfshow
2a51f5bc12e9c136841f9cc3ef88ed53df952054
[ "MIT" ]
6
2020-08-30T09:09:08.000Z
2021-11-28T02:09:39.000Z
from base全家桶 import * import re def base64_encode_apple(flag): w="" k=40 for j in flag.encode(): res=j^k w+=chr(res) k+=1 return base64.b64encode(w.encode()).decode() def base64_decode_apple(s): s=base64.b64decode(s) flag="" k=40 for j in s: res=j^k flag+=chr(r...
27.732394
78
0.531742
efade46a82de7b2fa85fd8d2649618089d5eaa83
4,900
py
Python
goldman/deserializers/form_data.py
sassoo/goldman
b72540c9ad06b5c68aadb1b4fa8cb0b716260bf2
[ "MIT" ]
2
2016-07-26T13:47:51.000Z
2017-02-13T12:08:38.000Z
goldman/deserializers/form_data.py
sassoo/goldman
b72540c9ad06b5c68aadb1b4fa8cb0b716260bf2
[ "MIT" ]
null
null
null
goldman/deserializers/form_data.py
sassoo/goldman
b72540c9ad06b5c68aadb1b4fa8cb0b716260bf2
[ "MIT" ]
null
null
null
""" deserializers.form_data ~~~~~~~~~~~~~~~~~~~~~~~~~ Deserializer that is compliant with the RFC 2388 multipart/form-data format It's broken down into 2 parts: * A parser for spec compliant validations * A normalizer for converting into a common format expected by our ...
32.450331
78
0.584082
a038e281600ddd26d2782162a71f3dbd7bcbbbd0
7,200
py
Python
data/p3BR/R2/benchmark/startQiskit338.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit338.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit338.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=67 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
32
140
0.638889
bfee217ae7b8d99b12a22c6c66d1016ae8c4926d
1,983
py
Python
jxctl/jxsupport.py
deepan10/jxctl
330b961a5f6ed6e7fe3ff4748eca2d8427b635ba
[ "MIT" ]
2
2018-11-22T14:44:40.000Z
2018-12-28T11:00:28.000Z
jxctl/jxsupport.py
deepan10/jxctl
330b961a5f6ed6e7fe3ff4748eca2d8427b635ba
[ "MIT" ]
8
2019-04-27T08:53:00.000Z
2020-10-18T17:12:52.000Z
jxctl/jxsupport.py
deepan10/jxctl
330b961a5f6ed6e7fe3ff4748eca2d8427b635ba
[ "MIT" ]
3
2018-11-26T15:34:43.000Z
2020-06-14T15:09:27.000Z
""" jxsupport support module jxctl """ import pprint from tabulate import tabulate # pylint: disable=useless-object-inheritance class JxSupport(object): """ JxSupport class for support opertions like display """ @staticmethod def print_table(source, count=False): """ Display the ...
31.983871
81
0.545134
e138d9a0fbbb57ba0dc17ce9589240c1c605d578
279
py
Python
usuarios/urls.py
apariciojuan/BlogEnDjango
c1826f4a311163bef5b6462ac22c2aa82ee5abd3
[ "Apache-2.0" ]
null
null
null
usuarios/urls.py
apariciojuan/BlogEnDjango
c1826f4a311163bef5b6462ac22c2aa82ee5abd3
[ "Apache-2.0" ]
null
null
null
usuarios/urls.py
apariciojuan/BlogEnDjango
c1826f4a311163bef5b6462ac22c2aa82ee5abd3
[ "Apache-2.0" ]
null
null
null
from django.urls import path, include from .views import register #me trae las url de accounts sin necesitas usar accounts en la url app_name = "accounts" urlpatterns = [ path('', include('django.contrib.auth.urls')), path('registrar/', register, name='registrar'), ]
25.363636
66
0.716846
86d5f5559a02e85bd55ce0530719f0004a1fa950
2,843
py
Python
tests/integration/loss/test_multi_op.py
sreeja97/pystiche
65f4d787e44b1ffbf7e5b6e48298ed8c7460e5a9
[ "BSD-3-Clause" ]
1
2021-09-30T14:55:59.000Z
2021-09-30T14:55:59.000Z
tests/integration/loss/test_multi_op.py
sreeja97/pystiche
65f4d787e44b1ffbf7e5b6e48298ed8c7460e5a9
[ "BSD-3-Clause" ]
null
null
null
tests/integration/loss/test_multi_op.py
sreeja97/pystiche
65f4d787e44b1ffbf7e5b6e48298ed8c7460e5a9
[ "BSD-3-Clause" ]
null
null
null
import pytorch_testing_utils as ptu import torch from torch import nn import pystiche from pystiche import enc, loss, ops from tests.asserts import assert_named_modules_identical def test_MultiOperatorLoss(): class TestOperator(ops.Operator): def process_input_image(self, image): pass ...
27.872549
84
0.671122