hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
9ccea65c672e53a1bdc512c164348fad22108aa7
2,100
py
Python
open-hackathon-server/test/unittest/expr/test_expr_mgr.py
Fendoe/open-hackathon-o
39689ab7a9a4d41b6a2d35a61e28a022705c60b8
[ "MIT" ]
null
null
null
open-hackathon-server/test/unittest/expr/test_expr_mgr.py
Fendoe/open-hackathon-o
39689ab7a9a4d41b6a2d35a61e28a022705c60b8
[ "MIT" ]
null
null
null
open-hackathon-server/test/unittest/expr/test_expr_mgr.py
Fendoe/open-hackathon-o
39689ab7a9a4d41b6a2d35a61e28a022705c60b8
[ "MIT" ]
1
2019-04-03T19:47:22.000Z
2019-04-03T19:47:22.000Z
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
39.622642
88
0.697619
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
221
26
104
f13ef9d59830a67043996632dda7fe78ecb070bf
4,540
py
Python
dude/info.py
stephan-cr/dude
79e9f91ec4063a7bebaabbe32ff42136eb11af62
[ "MIT" ]
null
null
null
dude/info.py
stephan-cr/dude
79e9f91ec4063a7bebaabbe32ff42136eb11af62
[ "MIT" ]
null
null
null
dude/info.py
stephan-cr/dude
79e9f91ec4063a7bebaabbe32ff42136eb11af62
[ "MIT" ]
null
null
null
# Copyright (c) 2010, 2011 Diogo Becker # Distributed under the MIT License # See accompanying file LICENSE """ Dude output for experiments """ import utils import os import core import sys HEAD = '~'*80 HEAD2 = '~'*80 LINE = '-'*80 class PBar: """ A simple progress bar. Based on example at http://snipp...
30.469799
107
0.57467
# Copyright (c) 2010, 2011 Diogo Becker # Distributed under the MIT License # See accompanying file LICENSE """ Dude output for experiments """ import utils import os import core import sys HEAD = '~'*80 HEAD2 = '~'*80 LINE = '-'*80 class PBar: """ A simple progress bar. Based on example at http://snipp...
3,912
0
268
fa7b49d4ed0d86719b5164c46d5e106a7bb63b9f
701
py
Python
geom/SinCosTan.py
JesterOrNot/python_calc
3e939046930eca2204f8354d9f221f6127d2db91
[ "MIT" ]
1
2019-07-22T19:42:15.000Z
2019-07-22T19:42:15.000Z
geom/SinCosTan.py
JesterOrNot/python_calc
3e939046930eca2204f8354d9f221f6127d2db91
[ "MIT" ]
1
2019-07-23T17:49:48.000Z
2019-07-23T17:52:14.000Z
geom/SinCosTan.py
JesterOrNot/python_calc
3e939046930eca2204f8354d9f221f6127d2db91
[ "MIT" ]
1
2019-07-23T17:45:40.000Z
2019-07-23T17:45:40.000Z
#! /usr/bin/python3.7 # soh cah toa main()
23.366667
71
0.584879
#! /usr/bin/python3.7 # soh cah toa def sin(): o = float(input('What is the oppisite?: ')) h = float(input("What is the hypotnuse?: ")) s = o / h print("sin = {}".format(s)) def cos(): a = float(input('What is the ajacent?: ')) h = float(input("What is the hypotnuse?: ")) c = a / h print('cos = {}'.format(c))...
569
0
88
b7e34b14490ac0921958794273d65fbb6369923d
796
py
Python
setup.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
null
null
null
setup.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
null
null
null
setup.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
null
null
null
import os import subprocess from setuptools import setup from distutils.command.install import install as _install setup( name='curig', version='0.1', author="LIU Honghao", author_email="stein.h.liu@gmail.com", description="GPU version of NUFFT and Radio astronomy gridder package", packag...
25.677419
75
0.660804
import os import subprocess from setuptools import setup from distutils.command.install import install as _install class install(_install): def run(self): subprocess.call(['make', 'clean']) subprocess.call(['make', 'python']) _install.run(self) setup( name='curig', version='0...
107
3
49
c33042e3fbcaf84831d4a66d01d93de70c1c5af1
448
py
Python
Chapter06/timer.py
ibiscum/Learning-Concurrency-in-Python
d3f0320ad2a80c46b37de331bf335b80df0d3ed9
[ "MIT" ]
null
null
null
Chapter06/timer.py
ibiscum/Learning-Concurrency-in-Python
d3f0320ad2a80c46b37de331bf335b80df0d3ed9
[ "MIT" ]
null
null
null
Chapter06/timer.py
ibiscum/Learning-Concurrency-in-Python
d3f0320ad2a80c46b37de331bf335b80df0d3ed9
[ "MIT" ]
null
null
null
from timeit import default_timer
24.888889
76
0.622768
from timeit import default_timer class Timer(object): def __init__(self, verbose=False): self.verbose = verbose self.timer = default_timer def __enter__(self): self.start = default_timer() return self def __exit__(self, *args): end = default_timer() self.e...
312
-1
103
fe84713f6efa4f7ffe43dfdf8729b8f62fc1c10a
1,770
py
Python
_common/custom/custom_qiskit_noise_model.py
daniel-mills-cqc/QC-App-Oriented-Benchmarks
826a9b5403daa703abbdc375c69300e751a44f80
[ "Apache-2.0" ]
3
2022-02-23T13:20:13.000Z
2022-03-18T02:13:26.000Z
_common/custom/custom_qiskit_noise_model.py
daniel-mills-cqc/QC-App-Oriented-Benchmarks
826a9b5403daa703abbdc375c69300e751a44f80
[ "Apache-2.0" ]
2
2021-11-28T04:35:57.000Z
2021-11-28T04:49:23.000Z
_common/custom/custom_qiskit_noise_model.py
daniel-mills-cqc/QC-App-Oriented-Benchmarks
826a9b5403daa703abbdc375c69300e751a44f80
[ "Apache-2.0" ]
null
null
null
# # Define a custom noise model to be used during execution of Qiskit Aer simulator # # Note: this custom definition is the same as the default noise model provided # The code is provided here for users to copy to their own file and customize from qiskit.providers.aer.noise import NoiseModel, ReadoutError from qiskit...
43.170732
107
0.728249
# # Define a custom noise model to be used during execution of Qiskit Aer simulator # # Note: this custom definition is the same as the default noise model provided # The code is provided here for users to copy to their own file and customize from qiskit.providers.aer.noise import NoiseModel, ReadoutError from qiskit...
1,367
0
23
12943ae211aa5fb3e3b887191d28b55989d53d41
7,867
py
Python
QUANTAXIS/QAPubSub/producer.py
B34nK0/QUANTAXIS
94162f0f863682e443ef8ae11f5b54da6f93421b
[ "MIT" ]
6,322
2017-03-22T09:34:20.000Z
2022-03-31T05:26:45.000Z
QUANTAXIS/QAPubSub/producer.py
B34nK0/QUANTAXIS
94162f0f863682e443ef8ae11f5b54da6f93421b
[ "MIT" ]
690
2018-01-02T06:44:54.000Z
2022-03-25T02:06:22.000Z
QUANTAXIS/QAPubSub/producer.py
B34nK0/QUANTAXIS
94162f0f863682e443ef8ae11f5b54da6f93421b
[ "MIT" ]
2,183
2018-01-02T10:32:10.000Z
2022-03-30T00:57:31.000Z
#!/usr/bin/env python 3 import pika from QUANTAXIS.QAPubSub.base import base_ps from QUANTAXIS.QAPubSub.setting import (qapubsub_ip, qapubsub_password, qapubsub_port, qapubsub_user) ######### 生产者 ######### if __name__ == '__main__': import datetime p = publisher(exchange='z3...
46.550296
229
0.513283
#!/usr/bin/env python 3 import pika from QUANTAXIS.QAPubSub.base import base_ps from QUANTAXIS.QAPubSub.setting import (qapubsub_ip, qapubsub_password, qapubsub_port, qapubsub_user) ######### 生产者 ######### class publisher(base_ps): def __init__(self, host=qapubsub_ip, port=qapubs...
7,369
26
388
9675deb80145f6156710864780cb4303ee2ed57b
736
py
Python
tests/test_doit_tasks/test_file_search.py
KyleKing/calcipy
c10d78cce727b04b6d4f633859659cdcda832630
[ "MIT" ]
6
2021-02-03T20:07:09.000Z
2022-02-27T12:31:07.000Z
tests/test_doit_tasks/test_file_search.py
KyleKing/calcipy
c10d78cce727b04b6d4f633859659cdcda832630
[ "MIT" ]
65
2020-12-11T02:36:59.000Z
2022-03-05T21:15:07.000Z
tests/test_doit_tasks/test_file_search.py
KyleKing/calcipy
c10d78cce727b04b6d4f633859659cdcda832630
[ "MIT" ]
3
2021-06-05T13:46:14.000Z
2021-11-30T10:34:34.000Z
"""Test doit_tasks/file_search.py.""" from calcipy.doit_tasks.doit_globals import DG from calcipy.doit_tasks.file_search import find_project_files_by_suffix def test_find_project_files_by_suffix(): """Test find_project_files_by_suffix.""" result = find_project_files_by_suffix(DG.meta.path_project, DG.meta.ig...
46
113
0.713315
"""Test doit_tasks/file_search.py.""" from calcipy.doit_tasks.doit_globals import DG from calcipy.doit_tasks.file_search import find_project_files_by_suffix def test_find_project_files_by_suffix(): """Test find_project_files_by_suffix.""" result = find_project_files_by_suffix(DG.meta.path_project, DG.meta.ig...
0
0
0
7461b869384c1d04e76f360a78a75ba19c4369dc
15,938
py
Python
jcasts/podcasts/tests/test_feed_parser.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
13
2021-09-17T07:41:00.000Z
2022-02-10T10:00:48.000Z
jcasts/podcasts/tests/test_feed_parser.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
167
2021-07-17T09:41:38.000Z
2021-08-31T06:03:34.000Z
jcasts/podcasts/tests/test_feed_parser.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
null
null
null
import http import pathlib import pytest import requests from django.utils import timezone from jcasts.episodes.factories import EpisodeFactory from jcasts.episodes.models import Episode from jcasts.podcasts.factories import CategoryFactory, PodcastFactory from jcasts.podcasts.models import Podcast from jcasts.podca...
32.593047
87
0.641674
import http import pathlib import pytest import requests from django.utils import timezone from jcasts.episodes.factories import EpisodeFactory from jcasts.episodes.models import Episode from jcasts.podcasts.factories import CategoryFactory, PodcastFactory from jcasts.podcasts.models import Podcast from jcasts.podca...
14,559
741
224
f9594aa2b008a90079a1192c3008b304dada46b1
1,620
py
Python
inside/losses.py
jacenkow/inside
8b277e2744233a23eb8f55a29417135729fc531d
[ "Apache-2.0" ]
6
2020-08-26T13:15:15.000Z
2021-08-02T22:07:49.000Z
inside/losses.py
SLEEP-CO/inside
6f860420644b50b78981158a59ceed8cdbd209bf
[ "Apache-2.0" ]
13
2020-09-25T22:26:45.000Z
2022-03-12T00:47:04.000Z
inside/losses.py
SLEEP-CO/inside
6f860420644b50b78981158a59ceed8cdbd209bf
[ "Apache-2.0" ]
2
2020-10-07T17:11:57.000Z
2021-05-22T13:20:14.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Grzegorz Jacenków. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0. # # Unless required by applicable...
35.217391
79
0.691975
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Grzegorz Jacenków. # # 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...
578
0
104
08a4c684965f513593862994c67dddc0def76dd6
1,066
py
Python
cnn_policy.py
ChunJyeBehBeh/learning-to-drive-in-5-minutes
c5446db28df4f7f4342e7fad6e4bdffba7bf4c39
[ "MIT" ]
null
null
null
cnn_policy.py
ChunJyeBehBeh/learning-to-drive-in-5-minutes
c5446db28df4f7f4342e7fad6e4bdffba7bf4c39
[ "MIT" ]
null
null
null
cnn_policy.py
ChunJyeBehBeh/learning-to-drive-in-5-minutes
c5446db28df4f7f4342e7fad6e4bdffba7bf4c39
[ "MIT" ]
null
null
null
from stable_baselines.common.cmd_util import make_atari_env from stable_baselines import SAC from stable_baselines.sac.policies import FeedForwardPolicy as SACPolicy from stable_baselines.common.policies import register_policy import tensorflow as tf import gym # There already exists an environment generator # that wi...
35.533333
72
0.67636
from stable_baselines.common.cmd_util import make_atari_env from stable_baselines import SAC from stable_baselines.sac.policies import FeedForwardPolicy as SACPolicy from stable_baselines.common.policies import register_policy import tensorflow as tf import gym # There already exists an environment generator # that wi...
278
12
49
e06754f094167c43841b0aa5bafc0bce4c2b3173
985
py
Python
mdl_parsers/Scanner.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
mdl_parsers/Scanner.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
mdl_parsers/Scanner.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
"""A selection of utilities to allow for fast scanning of a mol file""" from __future__ import generators import re def molSplitter(file): """(file) -> for m in molSplitter(file) ... do something with mol""" lines = [] for line in file: if line.find("$$$$") == 0: yield "\n".join(lines) ...
24.625
72
0.485279
"""A selection of utilities to allow for fast scanning of a mol file""" from __future__ import generators import re def molSplitter(file): """(file) -> for m in molSplitter(file) ... do something with mol""" lines = [] for line in file: if line.find("$$$$") == 0: yield "\n".join(lines) ...
501
0
42
a2c295893762dcb6aa4d279f8aa5d392c2ffa1a2
2,672
py
Python
accounting/accounting/report/profit_and_loss/profit_and_loss.py
sumaiya2908/Accounting-App-Frappe
48588b97f47ce76b0e7c0da153632ac8055efb84
[ "MIT" ]
1
2021-12-18T12:06:25.000Z
2021-12-18T12:06:25.000Z
accounting/accounting/report/profit_and_loss/profit_and_loss.py
sumaiya2908/Accounting-App-Frappe
48588b97f47ce76b0e7c0da153632ac8055efb84
[ "MIT" ]
5
2021-07-26T14:01:15.000Z
2021-09-12T12:47:43.000Z
accounting/accounting/report/profit_and_loss/profit_and_loss.py
sumaiya2908/Accounting-App-Frappe
48588b97f47ce76b0e7c0da153632ac8055efb84
[ "MIT" ]
null
null
null
# Copyright (c) 2013, summayya and contributors # For license information, please see license.txt import frappe from frappe import _, _dict # def get_data(filters): # company = filters.company # data = frappe.db.sql(f"""SELECT account, balance from `tabGL Entry` where company = \'{company}\'""") # return data ...
27.833333
141
0.670659
# Copyright (c) 2013, summayya and contributors # For license information, please see license.txt import frappe from frappe import _, _dict def execute(filters=None): columns = get_columns() income_accounts = frappe.get_list("Account", pluck = "name", filters = {"root_type": "Income", "is_group": 0, "company": filt...
2,076
0
92
fee91d6c265bb71f837e68e35a74c4d9204c2ed3
2,120
py
Python
scripts/demo.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
scripts/demo.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
scripts/demo.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
from coreapp.models import * from datetime import datetime, date, timedelta from django.contrib.auth.models import Group, User, Permission import pytz india_timezone = pytz.timezone('Asia/Kolkata') #india_timezone.localize(datetime.strptime('Sep 1 2017 12:01AM', '%b %d %Y %I:%M%p'))
29.444444
86
0.512264
from coreapp.models import * from datetime import datetime, date, timedelta from django.contrib.auth.models import Group, User, Permission import pytz india_timezone = pytz.timezone('Asia/Kolkata') #india_timezone.localize(datetime.strptime('Sep 1 2017 12:01AM', '%b %d %Y %I:%M%p')) def addData(): #delete all t...
1,788
0
45
04c36af18cedbb8bbbe42a12d7882de53a9b55b5
1,499
py
Python
metricsSource/graphiteMetric.py
luigiberrettini/metrics-exporter
9a53a7f4eb53ce29c873539dae263d8384ca17f0
[ "MIT" ]
null
null
null
metricsSource/graphiteMetric.py
luigiberrettini/metrics-exporter
9a53a7f4eb53ce29c873539dae263d8384ca17f0
[ "MIT" ]
null
null
null
metricsSource/graphiteMetric.py
luigiberrettini/metrics-exporter
9a53a7f4eb53ce29c873539dae263d8384ca17f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import csv
39.447368
126
0.655103
#!/usr/bin/env python3 import logging import csv class GraphiteMetric: def __init__(self, item_to_load, to_graphite_date, session): self.logger = logging.getLogger(__name__) self.metric_name = item_to_load['name'] self.metric_target = item_to_load['target'].replace("{","{{").replace("}","}...
1,265
162
23
75ba359d842b8cd05980746d0e1008b5278499c4
9,453
py
Python
main.py
AnonymusRaccoon/Nemo
8a2e6f05c0e604a64c9b53572f62d36bf9347ddb
[ "MIT" ]
null
null
null
main.py
AnonymusRaccoon/Nemo
8a2e6f05c0e604a64c9b53572f62d36bf9347ddb
[ "MIT" ]
null
null
null
main.py
AnonymusRaccoon/Nemo
8a2e6f05c0e604a64c9b53572f62d36bf9347ddb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import asyncio import nemo import helper import config import discord from discord.ext.commands import has_permissions number_emojis = ["1⃣", "2⃣", "3⃣", "4⃣", "5⃣", "6⃣", "7⃣", "8⃣", "9⃣"] nemo = nemo.Nemo() @nemo.command("!") @has_permissions(administrator=True) @nemo.command("!help") @h...
35.011111
118
0.726013
#!/usr/bin/env python3 import asyncio import nemo import helper import config import discord from discord.ext.commands import has_permissions number_emojis = ["1⃣", "2⃣", "3⃣", "4⃣", "5⃣", "6⃣", "7⃣", "8⃣", "9⃣"] nemo = nemo.Nemo() @nemo.command("!") @has_permissions(administrator=True) async def setup(*, message:...
7,858
0
333
23fce6af04fb33e69ce5e346fec8ef7bf941f0d6
925
py
Python
setup.py
dimonf/beancount2dataframe
ff4e8d10f2635876223617a18ec73fe8ffcc09de
[ "MIT" ]
3
2019-10-24T07:24:06.000Z
2020-12-26T10:07:50.000Z
setup.py
dimonf/beancount2dataframe
ff4e8d10f2635876223617a18ec73fe8ffcc09de
[ "MIT" ]
1
2021-06-28T20:35:06.000Z
2021-06-28T20:35:06.000Z
setup.py
dimonf/beancount2dataframe
ff4e8d10f2635876223617a18ec73fe8ffcc09de
[ "MIT" ]
1
2020-07-18T19:38:33.000Z
2020-07-18T19:38:33.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() requirements = ["beancount","pandas"] setuptools.setup( name="beancount2dataframe", version="0.0.1", author="Dmitri Kourbatsky", author_email="camel109@gmail.com", decription="pandas driver t...
31.896552
70
0.629189
import setuptools with open("README.md", "r") as fh: long_description = fh.read() requirements = ["beancount","pandas"] setuptools.setup( name="beancount2dataframe", version="0.0.1", author="Dmitri Kourbatsky", author_email="camel109@gmail.com", decription="pandas driver t...
0
0
0
4ebddc443754381e6998e9f1842e11fa4865e807
2,110
py
Python
ax/utils/common/tests/test_logger.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
1
2022-02-10T10:51:40.000Z
2022-02-10T10:51:40.000Z
ax/utils/common/tests/test_logger.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
ax/utils/common/tests/test_logger.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from tempfile import NamedTemporaryFile from unittest.mock import patch from ax.utils.common.logger i...
37.678571
85
0.677251
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from tempfile import NamedTemporaryFile from unittest.mock import patch from ax.utils.common.logger i...
1,531
6
130
e2dadbe5db38dd7d507321d150bde29e5f53cf7b
99
py
Python
tracardi/domain/enum/time_span.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
153
2021-11-02T00:35:41.000Z
2022-03-25T16:37:44.000Z
tracardi/domain/enum/time_span.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
243
2021-10-17T17:00:22.000Z
2022-03-28T10:13:34.000Z
tracardi/domain/enum/time_span.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
14
2021-10-17T11:39:04.000Z
2022-03-14T14:44:02.000Z
from enum import Enum
11
26
0.464646
from enum import Enum class TimeSpan(str, Enum): d = "d" w = "w" m = 'M' y = "y"
0
53
23
fcc80623f21f7dac34e338d96916857254414f1e
239
py
Python
rerecoMonitor/DataVolume/vandyLocalSize/test.py
tuos/PbPbRun2018
b8d42d2b9e692323d68bf8541ebd089d6b27f6c0
[ "MIT" ]
null
null
null
rerecoMonitor/DataVolume/vandyLocalSize/test.py
tuos/PbPbRun2018
b8d42d2b9e692323d68bf8541ebd089d6b27f6c0
[ "MIT" ]
null
null
null
rerecoMonitor/DataVolume/vandyLocalSize/test.py
tuos/PbPbRun2018
b8d42d2b9e692323d68bf8541ebd089d6b27f6c0
[ "MIT" ]
null
null
null
import re size = [] with open("allSize.txt") as inFile: for line in inFile: z = re.match(r'(.*)T ', line) if z: # print((z.groups())) # print z.group()[:-2] size.append(float(z.group()[:-2])) print sum(size)
14.9375
40
0.535565
import re size = [] with open("allSize.txt") as inFile: for line in inFile: z = re.match(r'(.*)T ', line) if z: # print((z.groups())) # print z.group()[:-2] size.append(float(z.group()[:-2])) print sum(size)
0
0
0
dcc3aecc3d7ce1464f5a582af34b6c859ea01ba8
3,003
py
Python
integrations/tensorflow/bindings/python/pyiree/tf/support/tf_utils_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/bindings/python/pyiree/tf/support/tf_utils_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/bindings/python/pyiree/tf/support/tf_utils_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.15534
78
0.684316
# Lint as: python3 # Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
1,317
799
69
f1c3a2a49f162db4b1312d3313f866d95fcbe2ae
418
py
Python
wiki_categories/extract_ids_from_spraqle.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
1
2019-05-25T12:12:39.000Z
2019-05-25T12:12:39.000Z
wiki_categories/extract_ids_from_spraqle.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
wiki_categories/extract_ids_from_spraqle.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
import json data = None with open('sparql_result.json', 'r') as f: data = json.load(f) print(data['head']) food_ids_list = data['results']['bindings'] ids = [] for doc in food_ids_list: current_id = doc['id']['value'] ids.append(current_id) print(len(ids)) f = open('article_ids.csv', 'w') with f: ...
18.173913
43
0.598086
import json data = None with open('sparql_result.json', 'r') as f: data = json.load(f) print(data['head']) food_ids_list = data['results']['bindings'] ids = [] for doc in food_ids_list: current_id = doc['id']['value'] ids.append(current_id) print(len(ids)) f = open('article_ids.csv', 'w') with f: ...
0
0
0
45824a5bdec3c2a5f337902a825a66704012539c
1,563
py
Python
examples/test_izi.py
francbelf/python_izi
b198a48ede79c2d06fcd40ef4d0b2883387aa6bd
[ "BSD-3-Clause" ]
null
null
null
examples/test_izi.py
francbelf/python_izi
b198a48ede79c2d06fcd40ef4d0b2883387aa6bd
[ "BSD-3-Clause" ]
null
null
null
examples/test_izi.py
francbelf/python_izi
b198a48ede79c2d06fcd40ef4d0b2883387aa6bd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Jun 4 19:25:01 2018 @author: francesco """ import numpy as np import time from izi.izi import izi import matplotlib.pyplot as plt plt.ion() timestart = time.process_time() #%% #THIS IS THE TEST data shown in Fig 1 of Blanc et al., 2015 #fluxes from H...
25.622951
74
0.668586
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Jun 4 19:25:01 2018 @author: francesco """ import numpy as np import time from izi.izi import izi import matplotlib.pyplot as plt plt.ion() timestart = time.process_time() #%% #THIS IS THE TEST data shown in Fig 1 of Blanc et al., 2015 #fluxes from H...
0
0
0
c3d2e913310d0008b1e8ec5047fbe5cece2024fe
10,290
py
Python
learning/ecc/GraphConvModule.py
aliabdelkader/superpoint_graph
7ac66d9e960f84014100bf087b996aa5dc9342c7
[ "MIT" ]
9
2020-02-21T12:39:20.000Z
2022-03-07T01:54:41.000Z
learning/ecc/GraphConvModule.py
aliabdelkader/superpoint_graph
7ac66d9e960f84014100bf087b996aa5dc9342c7
[ "MIT" ]
null
null
null
learning/ecc/GraphConvModule.py
aliabdelkader/superpoint_graph
7ac66d9e960f84014100bf087b996aa5dc9342c7
[ "MIT" ]
1
2020-12-04T04:22:50.000Z
2020-12-04T04:22:50.000Z
""" Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs https://github.com/mys007/ecc https://arxiv.org/abs/1704.02901 2017 Martin Simonovsky """ from __future__ import division from __future__ import print_function from builtins import range import torch import torch...
44.934498
379
0.611565
""" Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs https://github.com/mys007/ecc https://arxiv.org/abs/1704.02901 2017 Martin Simonovsky """ from __future__ import division from __future__ import print_function from builtins import range import torch import torch...
7,507
0
288
f43628fb62173c33a240f2b1269001e96575ae9f
3,870
py
Python
cookbook/case_studies/feature_engineering/feast_integration/feast_dataobjects.py
YmirKhang/flytesnacks
4fc322987567bf959ce6a9feb7bd5c9f39eb3a9d
[ "Apache-2.0" ]
null
null
null
cookbook/case_studies/feature_engineering/feast_integration/feast_dataobjects.py
YmirKhang/flytesnacks
4fc322987567bf959ce6a9feb7bd5c9f39eb3a9d
[ "Apache-2.0" ]
null
null
null
cookbook/case_studies/feature_engineering/feast_integration/feast_dataobjects.py
YmirKhang/flytesnacks
4fc322987567bf959ce6a9feb7bd5c9f39eb3a9d
[ "Apache-2.0" ]
null
null
null
""" Feature Store Dataclass ----------------------- This dataclass provides a unified interface to access Feast methods from within a feature store. """ import os from dataclasses import dataclass from datetime import datetime from typing import Any, Dict, List, Optional, Union import pandas as pd from dataclasses_...
35.833333
155
0.697674
""" Feature Store Dataclass ----------------------- This dataclass provides a unified interface to access Feast methods from within a feature store. """ import os from dataclasses import dataclass from datetime import datetime from typing import Any, Dict, List, Optional, Union import pandas as pd from dataclasses_...
2,727
268
44
f137566cc67c8e94049ae6d8b93ba541e69913c6
1,127
py
Python
functions.py
ImJustTatan/borg
f9a13adcfde1cd591928955e55e7bc45185c4500
[ "MIT" ]
null
null
null
functions.py
ImJustTatan/borg
f9a13adcfde1cd591928955e55e7bc45185c4500
[ "MIT" ]
null
null
null
functions.py
ImJustTatan/borg
f9a13adcfde1cd591928955e55e7bc45185c4500
[ "MIT" ]
null
null
null
############### functions for borg # functions # by tatan ############### from termcolor import colored, cprint import colorama import random colorama.init() larrow = colored('>', 'green', attrs=['bold']) # for user input actmessages = colored('\nCurrently available actions:', 'green', attrs=['bold']) def plinpu...
28.897436
111
0.640639
############### functions for borg # functions # by tatan ############### from termcolor import colored, cprint import colorama import random colorama.init() larrow = colored('>', 'green', attrs=['bold']) # for user input actmessages = colored('\nCurrently available actions:', 'green', attrs=['bold']) def plinpu...
0
0
0
57fd37a84b3fbd552c14105c29b6ee53292d0c0e
1,094
py
Python
cmaki_generator/save_package.py
makiolo/npm-mas-mas
1d0812bb73dbeddca3c94f3c2c99b160971a37ed
[ "MIT" ]
null
null
null
cmaki_generator/save_package.py
makiolo/npm-mas-mas
1d0812bb73dbeddca3c94f3c2c99b160971a37ed
[ "MIT" ]
null
null
null
cmaki_generator/save_package.py
makiolo/npm-mas-mas
1d0812bb73dbeddca3c94f3c2c99b160971a37ed
[ "MIT" ]
null
null
null
import os import sys import logging import argparse import urllib import csv import utils import subprocess if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--name', required=True, dest='name', help='name package', default=None) parser.add_argument('--version', required=Tr...
34.1875
112
0.703839
import os import sys import logging import argparse import urllib import csv import utils import subprocess if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--name', required=True, dest='name', help='name package', default=None) parser.add_argument('--version', required=Tr...
0
0
0
755f632dc8b1ec82f565458aeb061f15d8538e2f
551
py
Python
Diagnostics/local/movie_make.py
Zhuo-Liu/Gkeyll_IAT
48fc10fd4ca5e521853bfa561e2b5e9efd29b93c
[ "MIT" ]
null
null
null
Diagnostics/local/movie_make.py
Zhuo-Liu/Gkeyll_IAT
48fc10fd4ca5e521853bfa561e2b5e9efd29b93c
[ "MIT" ]
null
null
null
Diagnostics/local/movie_make.py
Zhuo-Liu/Gkeyll_IAT
48fc10fd4ca5e521853bfa561e2b5e9efd29b93c
[ "MIT" ]
null
null
null
import cv2 import numpy as np import glob file_array = [] img_array = [] for filename in glob.glob('./Diagnostics/local/Ratio/mass400/dist_function/IAT_E2_f1D_*.png'): file_array.append(filename) file_array.sort() for filename in file_array[:]: img = cv2.imread(filename) height, width, layers = img.shape ...
23.956522
94
0.722323
import cv2 import numpy as np import glob file_array = [] img_array = [] for filename in glob.glob('./Diagnostics/local/Ratio/mass400/dist_function/IAT_E2_f1D_*.png'): file_array.append(filename) file_array.sort() for filename in file_array[:]: img = cv2.imread(filename) height, width, layers = img.shape ...
0
0
0
cdce55e295502e96c3cb834e0b40789e79b625d0
2,803
py
Python
pyss/mpi/algorithm/rayleigh_ritz.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
pyss/mpi/algorithm/rayleigh_ritz.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
pyss/mpi/algorithm/rayleigh_ritz.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import scipy import scipy.linalg from pyss.mpi.util.operation import hv def rayleigh_ritz(p, a, b, cv, comm, left=False, right=True, check_finite=True, homogeneous_eigvals=False): """ Rayleigh-Ritz Procedure using MPI parallelism. Parameter...
39.478873
79
0.628255
#!/usr/bin/env python # -*- coding: utf-8 -*- import scipy import scipy.linalg from pyss.mpi.util.operation import hv def rayleigh_ritz(p, a, b, cv, comm, left=False, right=True, check_finite=True, homogeneous_eigvals=False): """ Rayleigh-Ritz Procedure using MPI parallelism. Parameter...
0
0
0
3ae83d173fdc7e48623bb8056468989f142a2a95
605
py
Python
wldata_backup/migrations/0006_auto_20210219_2005.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
wldata_backup/migrations/0006_auto_20210219_2005.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
7
2021-06-04T23:45:15.000Z
2022-03-12T00:44:14.000Z
wldata_backup/migrations/0006_auto_20210219_2005.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-02-19 14:05 from django.db import migrations, models
25.208333
71
0.61157
# Generated by Django 3.1 on 2021-02-19 14:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wldata', '0005_gaugelocation_danger_level'), ] operations = [ migrations.AlterField( model_name='gaugelocation', name=...
0
493
23
36af44733749998a028e823f7edbc9d00f425760
1,797
py
Python
lor/generators/task/task_generator.py
adamkewley/lor
335be1d3c6e324eb9dca40b8fd707418481ac09a
[ "Apache-2.0" ]
2
2018-04-13T09:56:17.000Z
2018-04-13T12:29:11.000Z
lor/generators/task/task_generator.py
adamkewley/lor
335be1d3c6e324eb9dca40b8fd707418481ac09a
[ "Apache-2.0" ]
null
null
null
lor/generators/task/task_generator.py
adamkewley/lor
335be1d3c6e324eb9dca40b8fd707418481ac09a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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, software ...
35.235294
118
0.666667
# -*- coding: utf-8 -*- # # 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, software ...
1,062
10
77
b27076f53f8b77cc22ac8cd1c947b8111f78c834
2,414
py
Python
please-pass-the-coded-messages.py
CiaranMcAndrew/foobar
d4a3b4607f1aaaa76485dfc7d1ac2ca9bb813559
[ "MIT" ]
null
null
null
please-pass-the-coded-messages.py
CiaranMcAndrew/foobar
d4a3b4607f1aaaa76485dfc7d1ac2ca9bb813559
[ "MIT" ]
null
null
null
please-pass-the-coded-messages.py
CiaranMcAndrew/foobar
d4a3b4607f1aaaa76485dfc7d1ac2ca9bb813559
[ "MIT" ]
null
null
null
''' Please Pass the Coded Messages ============================== You need to pass a message to the bunny prisoners, but to avoid detection, the code you agreed to use is... obscure, to say the least. The bunnies are given food on standard-issue prison plates that are stamped with the numbers 0-9 for easier sorting...
29.439024
105
0.675642
''' Please Pass the Coded Messages ============================== You need to pass a message to the bunny prisoners, but to avoid detection, the code you agreed to use is... obscure, to say the least. The bunnies are given food on standard-issue prison plates that are stamped with the numbers 0-9 for easier sorting...
330
0
23
cf317bfc2180c3362594810e19da1461a7abf4ba
2,641
py
Python
dtoolbioimage/derived_dataset.py
JIC-Image-Analysis/dtoolbioimage
c662ac1b6bfd77e153682627aab3e74d31ae0569
[ "MIT" ]
null
null
null
dtoolbioimage/derived_dataset.py
JIC-Image-Analysis/dtoolbioimage
c662ac1b6bfd77e153682627aab3e74d31ae0569
[ "MIT" ]
8
2020-03-24T16:30:11.000Z
2022-03-11T23:36:42.000Z
dtoolbioimage/derived_dataset.py
JIC-Image-Analysis/dtoolbioimage
c662ac1b6bfd77e153682627aab3e74d31ae0569
[ "MIT" ]
null
null
null
import os import shutil import tempfile from pathlib import Path try: from StringIO import StringIO except ImportError: from io import StringIO import dtoolcore from ruamel.yaml import YAML
25.892157
87
0.672851
import os import shutil import tempfile from pathlib import Path try: from StringIO import StringIO except ImportError: from io import StringIO import dtoolcore from ruamel.yaml import YAML def proto_dataset_from_base_uri(name, base_uri): admin_metadata = dtoolcore.generate_admin_metadata(name) p...
2,152
239
46
ba22bd1f03c33c24b358a7b0f922c76a7cb48d16
2,420
py
Python
jira_issue_recommender/main.py
qsweber/jira-issue-recommender
484ca434d2e5e9c83aa4abe3ec3addf23aed0bb0
[ "MIT" ]
null
null
null
jira_issue_recommender/main.py
qsweber/jira-issue-recommender
484ca434d2e5e9c83aa4abe3ec3addf23aed0bb0
[ "MIT" ]
null
null
null
jira_issue_recommender/main.py
qsweber/jira-issue-recommender
484ca434d2e5e9c83aa4abe3ec3addf23aed0bb0
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import sys from jira import JIRA from jira_issue_recommender.util import get_comment, get_issues, get_issues_tfidf, get_most_similar
30.25
132
0.649174
from argparse import ArgumentParser import sys from jira import JIRA from jira_issue_recommender.util import get_comment, get_issues, get_issues_tfidf, get_most_similar def main(argv=None): if argv is None: argv = sys.argv[1:] parser = ArgumentParser( description='Add issue recommendations ...
2,225
0
23
fa872c0adbda54bf7eb964cd1f52de2331f7a8c9
2,604
py
Python
trafpy/benchmarker/gen_new_slots_dict.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
4
2020-08-28T18:24:11.000Z
2020-11-13T07:26:18.000Z
trafpy/benchmarker/gen_new_slots_dict.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
4
2020-09-14T11:31:09.000Z
2020-09-21T16:00:20.000Z
trafpy/benchmarker/gen_new_slots_dict.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
null
null
null
from trafpy.generator.src import builder from trafpy.generator.src.demand import Demand from trafpy.generator.src.tools import load_data_from_json, unpickle_data import glob import json import time from sqlitedict import SqliteDict import os if __name__ == '__main__': ''' Take path to previously generated ...
38.865672
130
0.600998
from trafpy.generator.src import builder from trafpy.generator.src.demand import Demand from trafpy.generator.src.tools import load_data_from_json, unpickle_data import glob import json import time from sqlitedict import SqliteDict import os if __name__ == '__main__': ''' Take path to previously generated ...
0
0
0
0217e171dc5975c6197dcecc571c5615993ff986
773
py
Python
python/python-algorithm-intervew/9-stack-queue/21-remove-duplicate-letters-1.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/python-algorithm-intervew/9-stack-queue/21-remove-duplicate-letters-1.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/python-algorithm-intervew/9-stack-queue/21-remove-duplicate-letters-1.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" * 중복 문자 제거 중복된 문자를 제외하고 사전식 순서로 나열하라. 예제 1 - 입력 "bcabc" - 출력 "abc" 예제 2 - 입력 "cbacdcbc" - 출력 "acdb" """ if __name__ == '__main__': solution = Solution() param = "cbacdcb" print(solution.removeDuplicateLetters(param))
21.472222
83
0.569211
""" * 중복 문자 제거 중복된 문자를 제외하고 사전식 순서로 나열하라. 예제 1 - 입력 "bcabc" - 출력 "abc" 예제 2 - 입력 "cbacdcbc" - 출력 "acdb" """ class Solution: def removeDuplicateLetters(self, s: str) -> str: # 중복을 제거한 제일 먼저오는 알파벳 순서를 가져오기 위한 set sorted_set = sorted(set(s)) # 집합으로 정렬 for char in sorted_set: ...
611
-6
49
c82ccc97c913bf90a5f082b510183884867e4b90
3,585
py
Python
punica/cli/tool_cmd.py
karimb9/punica-python
d396f36ff98ec6a9f889cfb7bfeede724477673e
[ "MIT" ]
null
null
null
punica/cli/tool_cmd.py
karimb9/punica-python
d396f36ff98ec6a9f889cfb7bfeede724477673e
[ "MIT" ]
null
null
null
punica/cli/tool_cmd.py
karimb9/punica-python
d396f36ff98ec6a9f889cfb7bfeede724477673e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import click from punica.tool.tool import Tool from .main import main @main.group('tool', invoke_without_command=True) @click.pass_context def tool_cmd(ctx): """ Data format conversion tool """ if ctx.invoked_subcommand is None: print('Usage: pu...
33.194444
96
0.567364
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import click from punica.tool.tool import Tool from .main import main @main.group('tool', invoke_without_command=True) @click.pass_context def tool_cmd(ctx): """ Data format conversion tool """ if ctx.invoked_subcommand is None: print('Usage: pu...
0
0
0
4245e7efa670ec5e20ee5b4517a1adc94cda8ce8
2,048
py
Python
server/galaxyls/services/xsd/service.py
galaxyproject/galaxy-language-server
f4355d35609e18d53998f999d11964026ca2b04f
[ "Apache-2.0" ]
17
2020-10-30T22:06:24.000Z
2022-02-11T13:06:34.000Z
server/galaxyls/services/xsd/service.py
galaxyproject/galaxy-language-server
f4355d35609e18d53998f999d11964026ca2b04f
[ "Apache-2.0" ]
85
2020-11-01T12:28:20.000Z
2022-01-31T12:40:34.000Z
server/galaxyls/services/xsd/service.py
galaxyproject/galaxy-language-server
f4355d35609e18d53998f999d11964026ca2b04f
[ "Apache-2.0" ]
4
2020-11-18T18:07:05.000Z
2022-02-25T18:33:36.000Z
"""Utilities to validate Galaxy xml tool wrappers and extract information from the XSD schema. """ from typing import List from lxml import etree from pygls.lsp.types import Diagnostic, MarkupContent, MarkupKind from ..context import XmlContext from ..xml.document import XmlDocument from .constants import MSG_NO_DOC...
38.641509
93
0.717773
"""Utilities to validate Galaxy xml tool wrappers and extract information from the XSD schema. """ from typing import List from lxml import etree from pygls.lsp.types import Diagnostic, MarkupContent, MarkupKind from ..context import XmlContext from ..xml.document import XmlDocument from .constants import MSG_NO_DOC...
0
0
0
bdb0ce36450bf7cbc9e82e9e811920a4dddfad7a
769
py
Python
hpcde/packages/foss/package.py
hpcde/spack-repos
1ef11db1362c9c1e6261fc4e3796602c0a8a3286
[ "MIT" ]
1
2021-01-06T07:45:29.000Z
2021-01-06T07:45:29.000Z
hpcde/packages/foss/package.py
hpcde/spack-repos
1ef11db1362c9c1e6261fc4e3796602c0a8a3286
[ "MIT" ]
null
null
null
hpcde/packages/foss/package.py
hpcde/spack-repos
1ef11db1362c9c1e6261fc4e3796602c0a8a3286
[ "MIT" ]
null
null
null
# 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 Foss(BundlePackage): """GNU Compiler Collection (GCC) based compiler toolchain, includ...
28.481481
73
0.686606
# 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 Foss(BundlePackage): """GNU Compiler Collection (GCC) based compiler toolchain, includ...
0
0
0
df87b78987f27fb72b44878c3437dab340f0a028
19,454
py
Python
findobj/utils/scale_img.py
larrybradley/findobj
c9dba82c9dca846b48263530a76bdb78b6a7d840
[ "BSD-3-Clause" ]
1
2018-09-21T02:26:53.000Z
2018-09-21T02:26:53.000Z
findobj/utils/scale_img.py
larrybradley/findobj
c9dba82c9dca846b48263530a76bdb78b6a7d840
[ "BSD-3-Clause" ]
null
null
null
findobj/utils/scale_img.py
larrybradley/findobj
c9dba82c9dca846b48263530a76bdb78b6a7d840
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np from astropy.stats import sigma_clip __all__ = ['find_imgcuts', 'img_stats', 'rescale_img', 'scale_linear', 'scale_s...
35.630037
89
0.624242
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np from astropy.stats import sigma_clip __all__ = ['find_imgcuts', 'img_stats', 'rescale_img', 'scale_linear', 'scale_s...
0
0
0
d325878a2d20f2bedf5e8fb2f6d48645220019c8
1,565
py
Python
EncoderDecoder.py
taisa831/Chainer-Slack-Twitter-Dialogue
57fffc3da6e720ce8e16464ccf56598ebe7aed79
[ "Unlicense", "MIT" ]
null
null
null
EncoderDecoder.py
taisa831/Chainer-Slack-Twitter-Dialogue
57fffc3da6e720ce8e16464ccf56598ebe7aed79
[ "Unlicense", "MIT" ]
null
null
null
EncoderDecoder.py
taisa831/Chainer-Slack-Twitter-Dialogue
57fffc3da6e720ce8e16464ccf56598ebe7aed79
[ "Unlicense", "MIT" ]
null
null
null
#'!/usr/bin/env python #-*- coding:utf-8 -*- #!/usr/bin/python3 from chainer import Chain, functions, links from Encoder import Encoder from Decoder import Decoder import numpy as np from util.Common_function import CommonFunction
32.604167
90
0.646006
#'!/usr/bin/env python #-*- coding:utf-8 -*- #!/usr/bin/python3 from chainer import Chain, functions, links from Encoder import Encoder from Decoder import Decoder import numpy as np from util.Common_function import CommonFunction class EncoderDecoder(Chain): def __init__(self, vocab_size, embed_size, hidden_size...
1,123
186
23
5d6106f5b6d6b892b89c4f039c74ef1176e5cd01
250
py
Python
hard_way/ex15.py
kodywilson/lp3thw
bd8f399e807b3a6a9d0ab9aed538ba1a5f4ada8a
[ "MIT" ]
null
null
null
hard_way/ex15.py
kodywilson/lp3thw
bd8f399e807b3a6a9d0ab9aed538ba1a5f4ada8a
[ "MIT" ]
null
null
null
hard_way/ex15.py
kodywilson/lp3thw
bd8f399e807b3a6a9d0ab9aed538ba1a5f4ada8a
[ "MIT" ]
null
null
null
import sys script = sys.argv[0] filename = sys.argv[1] txt = open(filename) print(f"Here's your file {filename}:") print(txt.read()) print("Type the filename again:") file_again = input("> ") txt_again = open(file_again) print(txt_again.read())
15.625
38
0.696
import sys script = sys.argv[0] filename = sys.argv[1] txt = open(filename) print(f"Here's your file {filename}:") print(txt.read()) print("Type the filename again:") file_again = input("> ") txt_again = open(file_again) print(txt_again.read())
0
0
0
daf5da926cc17d83c52ac28d2f45bae28c56c1da
12,493
py
Python
covid19uk/model_spec.py
chrism0dwk/covid19uk
bd5ca69df5f2dd7b6e62ab8a78ed55a5ef8fcfd3
[ "MIT" ]
10
2020-03-21T22:36:24.000Z
2021-05-23T22:47:13.000Z
covid19uk/model_spec.py
chrism0dwk/covid19uk
bd5ca69df5f2dd7b6e62ab8a78ed55a5ef8fcfd3
[ "MIT" ]
14
2020-03-27T19:24:51.000Z
2021-07-21T12:41:23.000Z
covid19uk/model_spec.py
chrism0dwk/covid19uk
bd5ca69df5f2dd7b6e62ab8a78ed55a5ef8fcfd3
[ "MIT" ]
13
2020-03-21T17:17:20.000Z
2021-05-06T22:50:18.000Z
"""Implements the COVID SEIR model as a TFP Joint Distribution""" import pandas as pd import geopandas as gp import numpy as np import xarray import tensorflow as tf import tensorflow_probability as tfp from gemlib.distributions import DiscreteTimeStateTransitionModel from covid19uk.util import impute_previous_cases...
33.856369
84
0.579765
"""Implements the COVID SEIR model as a TFP Joint Distribution""" import pandas as pd import geopandas as gp import numpy as np import xarray import tensorflow as tf import tensorflow_probability as tfp from gemlib.distributions import DiscreteTimeStateTransitionModel from covid19uk.util import impute_previous_cases...
8,019
0
96
0830bfacc23b0971325700b1593d9d3486c081e7
74
py
Python
src/myapp/application/domain/model/vote.py
BasicWolf/hexagonal-architecture-django
3bfa4ea2f258ba038c6e3cf73bcdae0511b6fcb6
[ "MIT" ]
15
2021-05-31T12:56:53.000Z
2022-02-06T11:44:40.000Z
src/myapp/application/domain/model/vote.py
BasicWolf/hexagonal-architecture-django
3bfa4ea2f258ba038c6e3cf73bcdae0511b6fcb6
[ "MIT" ]
6
2021-06-08T17:29:47.000Z
2022-03-30T09:41:06.000Z
src/myapp/application/domain/model/vote.py
BasicWolf/hexagonal-architecture-django
3bfa4ea2f258ba038c6e3cf73bcdae0511b6fcb6
[ "MIT" ]
6
2021-06-07T08:26:24.000Z
2022-02-28T11:06:49.000Z
from enum import Enum
10.571429
21
0.581081
from enum import Enum class Vote(Enum): UP = 'up' DOWN = 'down'
0
28
23
73920f0956d505c52269ee915364405d24a4ef33
459
py
Python
src/common/yolo/utils/autoanchor.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/common/yolo/utils/autoanchor.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/common/yolo/utils/autoanchor.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
# Auto-anchor utils
38.25
100
0.6122
# Auto-anchor utils def check_anchor_order(m): # Check anchor order against stride order for YOLOv5 Detect() module m, and correct if necessary a = m.anchor_grid.prod(-1).view(-1) # anchor area da = a[-1] - a[0] # delta a ds = m.stride[-1] - m.stride[0] # delta s if da.sign() != ds.sign(): # sa...
416
0
23
dbd6c500b2f9e384a27508cd39a2c538de2654fd
862
py
Python
Create Spatial File/Vector/create_wkt_line.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
60
2015-01-12T08:36:19.000Z
2021-12-20T11:06:25.000Z
Create Spatial File/Vector/create_wkt_line.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
null
null
null
Create Spatial File/Vector/create_wkt_line.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
20
2015-02-20T03:05:17.000Z
2021-12-27T16:18:45.000Z
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Vector/create_wkt_line.py Description: This code creates a wkt line from multi-points. Author: Maziyar Boustani (github.com/MBoustani) ''' try: import ogr except ImportError: from osgeo import ogr ...
27.806452
62
0.732019
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Vector/create_wkt_line.py Description: This code creates a wkt line from multi-points. Author: Maziyar Boustani (github.com/MBoustani) ''' try: import ogr except ImportError: from osgeo import ogr ...
0
0
0
152318e5cc5129feda19931661e3268b1f0a16ef
3,119
py
Python
core/src/zeit/retresco/metrics.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/retresco/metrics.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/retresco/metrics.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
from zeit.cms.interfaces import ICMSContent from zeit.content.article.interfaces import IArticle import argparse import logging import prometheus_client import zeit.cms.cli import zeit.find.interfaces import zeit.retresco.interfaces import zope.component REGISTRY = prometheus_client.CollectorRegistry() log = logging....
33.180851
78
0.646682
from zeit.cms.interfaces import ICMSContent from zeit.content.article.interfaces import IArticle import argparse import logging import prometheus_client import zeit.cms.cli import zeit.find.interfaces import zeit.retresco.interfaces import zope.component REGISTRY = prometheus_client.CollectorRegistry() log = logging....
127
62
96
56e56b1ede2a7685bdd26592941c678b6c81fdb6
4,102
py
Python
poptions/MonteCarlo.py
Talha-Tariq/poptions
4bc54b7c31ec57a3b1094aafdd103c7d0a711519
[ "MIT" ]
27
2021-12-06T21:56:56.000Z
2022-03-13T20:44:30.000Z
poptions/MonteCarlo.py
Talha-Tariq/poptions
4bc54b7c31ec57a3b1094aafdd103c7d0a711519
[ "MIT" ]
null
null
null
poptions/MonteCarlo.py
Talha-Tariq/poptions
4bc54b7c31ec57a3b1094aafdd103c7d0a711519
[ "MIT" ]
7
2021-12-06T23:13:31.000Z
2021-12-18T04:00:58.000Z
import numpy as np from numba import jit # Assumptions: # The stock price volatility is equal to the implied volatility and remains constant. # Geometric Brownian Motion is used to model the stock price. # Risk-free interest rates remain constant. # The Black-Scholes Model is used to price options contracts. # Dividen...
33.900826
104
0.562165
import numpy as np from numba import jit # Assumptions: # The stock price volatility is equal to the implied volatility and remains constant. # Geometric Brownian Motion is used to model the stock price. # Risk-free interest rates remain constant. # The Black-Scholes Model is used to price options contracts. # Dividen...
3,605
0
23
189ce35cd1313d5e0de042ec0a93e667c39833e0
3,394
py
Python
tests/unit/manager/default/test_provider_wrapper.py
jqxin2006/poppy
10636e6255c7370172422afece4a5c3d95c1e937
[ "Apache-2.0" ]
null
null
null
tests/unit/manager/default/test_provider_wrapper.py
jqxin2006/poppy
10636e6255c7370172422afece4a5c3d95c1e937
[ "Apache-2.0" ]
null
null
null
tests/unit/manager/default/test_provider_wrapper.py
jqxin2006/poppy
10636e6255c7370172422afece4a5c3d95c1e937
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Rackspace, 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 wr...
42.425
78
0.678845
# Copyright (c) 2014 Rackspace, 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 wr...
2,400
20
212
c474602a6b0fb44f29ea3f41a0d154440b5a779d
2,463
py
Python
gazoo_device/tests/unit_tests/nrf52840_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/nrf52840_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/nrf52840_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
# Copyright 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 or agreed to in writing, ...
35.695652
80
0.736906
# Copyright 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 or agreed to in writing, ...
427
0
25
8a5a12babd933843f8220c6c929e51ea4fab36f1
496
py
Python
wagtail/wagtailcore/urls.py
ollywillans/wagtail
5f332a1ca8907172c0a5b4a6a820e17dabbb403b
[ "BSD-3-Clause" ]
1
2019-04-22T08:49:30.000Z
2019-04-22T08:49:30.000Z
wagtail/wagtailcore/urls.py
cybernetics/wagtail
d8c0a0ef9b7c33fa23d0653e892ee3813df5f8ec
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailcore/urls.py
cybernetics/wagtail
d8c0a0ef9b7c33fa23d0653e892ee3813df5f8ec
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, url urlpatterns = patterns( 'wagtail.wagtailcore.views', # All front-end views are handled through Wagtail's core.views.serve mechanism. # Here we match a (possibly empty) list of path segments, each followed by # a '/'. If a trailing slash is not present, we leav...
41.333333
83
0.689516
from django.conf.urls import patterns, url urlpatterns = patterns( 'wagtail.wagtailcore.views', # All front-end views are handled through Wagtail's core.views.serve mechanism. # Here we match a (possibly empty) list of path segments, each followed by # a '/'. If a trailing slash is not present, we leav...
0
0
0
ffff032ab189c08a2db3d7bf59bc9f01511e54c9
2,079
py
Python
farm/utils.py
delimitry/ctf-exploit-farm
c651bbc1769eade83e647a099a903398bdd0f692
[ "MIT" ]
20
2018-01-29T19:28:47.000Z
2022-02-23T03:06:51.000Z
farm/utils.py
delimitry/ctf-exploit-farm
c651bbc1769eade83e647a099a903398bdd0f692
[ "MIT" ]
2
2017-12-03T16:21:11.000Z
2018-10-31T05:44:05.000Z
farm/utils.py
delimitry/ctf-exploit-farm
c651bbc1769eade83e647a099a903398bdd0f692
[ "MIT" ]
7
2018-01-29T19:28:49.000Z
2020-05-18T13:34:25.000Z
import csv import importlib import importlib.util import re __all__ = [ 'camel_case_to_underscore', 'import_type', 'import_module_from_file', 'read_teams_from_file', ] first_cap_re = re.compile('(.)([A-Z][a-z]+)') all_cap_re = re.compile('([a-z0-9])([A-Z])') def read_teams_from_file(file_name: str):...
31.029851
139
0.642136
import csv import importlib import importlib.util import re __all__ = [ 'camel_case_to_underscore', 'import_type', 'import_module_from_file', 'read_teams_from_file', ] first_cap_re = re.compile('(.)([A-Z][a-z]+)') all_cap_re = re.compile('([a-z0-9])([A-Z])') def camel_case_to_underscore(name: str): ...
735
0
69
f78d30612c44065d424d81dd5cc53d6cef4d2533
46,720
py
Python
src/zc/relation/catalog.py
zopefoundation/zc.relation
14b5b04b87ca86b71b04e80f0b0ed2dd29223bf4
[ "ZPL-2.1" ]
null
null
null
src/zc/relation/catalog.py
zopefoundation/zc.relation
14b5b04b87ca86b71b04e80f0b0ed2dd29223bf4
[ "ZPL-2.1" ]
9
2016-08-02T12:31:05.000Z
2021-04-30T14:53:28.000Z
src/zc/relation/catalog.py
zopefoundation/zc.relation
14b5b04b87ca86b71b04e80f0b0ed2dd29223bf4
[ "ZPL-2.1" ]
5
2015-04-03T06:48:08.000Z
2020-02-17T10:40:14.000Z
############################################################################## # # Copyright (c) 2006-2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
39.260504
79
0.531956
############################################################################## # # Copyright (c) 2006-2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
41,157
3,323
446
3cc0d62440fb4a866eaee27a2016aaa625e29140
1,255
py
Python
conditions/migrations/0012_auto_20190907_1422.py
surajsjain/smart-aquaponics-backend
f4361bc9511f71be8e969c29773f464b4cf6440f
[ "MIT" ]
4
2019-11-14T15:28:20.000Z
2021-03-26T04:43:43.000Z
conditions/migrations/0012_auto_20190907_1422.py
surajsjain/smart-aquaponics-backend
f4361bc9511f71be8e969c29773f464b4cf6440f
[ "MIT" ]
7
2020-06-05T22:46:25.000Z
2022-02-10T09:37:55.000Z
conditions/migrations/0012_auto_20190907_1422.py
surajsjain/smart-aquaponics-backend
f4361bc9511f71be8e969c29773f464b4cf6440f
[ "MIT" ]
2
2020-02-21T06:05:30.000Z
2021-03-26T04:43:48.000Z
# Generated by Django 2.2.4 on 2019-09-07 14:22 import datetime from django.db import migrations, models
31.375
98
0.588048
# Generated by Django 2.2.4 on 2019-09-07 14:22 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('conditions', '0011_auto_20190907_1232'), ] operations = [ migrations.AddField( model_name='actuatoroverride', ...
0
1,125
23
aea86b020334fac5fc66db6ce9f553c1899b6243
6,874
py
Python
tests/integration/session/test_sign_out_and_exit.py
uk-gov-mirror/ONSdigital.eq-questionnaire-runner
4684bc560bfc7a169e279846fb341a188decb374
[ "MIT" ]
null
null
null
tests/integration/session/test_sign_out_and_exit.py
uk-gov-mirror/ONSdigital.eq-questionnaire-runner
4684bc560bfc7a169e279846fb341a188decb374
[ "MIT" ]
null
null
null
tests/integration/session/test_sign_out_and_exit.py
uk-gov-mirror/ONSdigital.eq-questionnaire-runner
4684bc560bfc7a169e279846fb341a188decb374
[ "MIT" ]
null
null
null
from app.helpers.template_helpers import ( CENSUS_CY_BASE_URL, CENSUS_EN_BASE_URL, CENSUS_NIR_BASE_URL, ) from tests.integration.integration_test_case import IntegrationTestCase SIGN_OUT_URL_PATH = "/sign-out" SIGNED_OUT_URL_PATH = "/signed-out" ACCOUNT_SERVICE_LOG_OUT_URL = "http://localhost/logout" ACCOU...
41.660606
88
0.743672
from app.helpers.template_helpers import ( CENSUS_CY_BASE_URL, CENSUS_EN_BASE_URL, CENSUS_NIR_BASE_URL, ) from tests.integration.integration_test_case import IntegrationTestCase SIGN_OUT_URL_PATH = "/sign-out" SIGNED_OUT_URL_PATH = "/signed-out" ACCOUNT_SERVICE_LOG_OUT_URL = "http://localhost/logout" ACCOU...
5,533
309
619
e2a2d1d92b5f5687ce67fd525d1ce8be88460cf5
5,302
py
Python
vmchecker/generic_executor.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
19
2015-08-31T22:53:45.000Z
2020-07-15T12:02:13.000Z
vmchecker/generic_executor.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
28
2015-01-18T13:26:47.000Z
2021-06-29T13:51:09.000Z
vmchecker/generic_executor.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
16
2015-04-20T06:04:22.000Z
2017-04-15T19:39:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """The definition of the base classes Host and VM which provide the necessary primitives to interact with a vm and test a submission bundle.""" from __future__ import with_statement # Use simplejson or Python 2.6 json, prefer simplejson. try: import simplejson as js...
31.372781
131
0.602037
#!/usr/bin/env python # -*- coding: utf-8 -*- """The definition of the base classes Host and VM which provide the necessary primitives to interact with a vm and test a submission bundle.""" from __future__ import with_statement # Use simplejson or Python 2.6 json, prefer simplejson. try: import simplejson as js...
1,368
3,278
52
2b59207c91c2c6b9ae04c048ac885f19712be832
7,048
py
Python
reconstruction_sw/code/viz_volumetric.py
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
null
null
null
reconstruction_sw/code/viz_volumetric.py
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
null
null
null
reconstruction_sw/code/viz_volumetric.py
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np import os import json import quaternion as quat import utils ################################################### ############### MAIN ################################################### do_white_background = False do_save = False dataset_name = 'easy' mesh_folder = '../results...
36.708333
112
0.520573
import open3d as o3d import numpy as np import os import json import quaternion as quat import utils ################################################### ############### MAIN ################################################### do_white_background = False do_save = False dataset_name = 'easy' mesh_folder = '../results...
0
0
0
481372bb195e22e6ff82bf9a40265e9aba39a40f
3,669
py
Python
mediation/bin/generate_cm_table_sql_from_csv.py
gitter-badger/bts-ce
f27be848ebc23b57c4767ffcd70fdc608281c649
[ "Apache-2.0" ]
null
null
null
mediation/bin/generate_cm_table_sql_from_csv.py
gitter-badger/bts-ce
f27be848ebc23b57c4767ffcd70fdc608281c649
[ "Apache-2.0" ]
1
2018-05-08T12:53:20.000Z
2018-05-08T12:53:20.000Z
mediation/bin/generate_cm_table_sql_from_csv.py
gitter-badger/bts-ce
f27be848ebc23b57c4767ffcd70fdc608281c649
[ "Apache-2.0" ]
1
2019-04-12T14:48:47.000Z
2019-04-12T14:48:47.000Z
# Generate table creation sql # # generate_table_sql.py schema parser_output_dir # Assumes that <schema>_hist exists # # Example: python generate_table_sql.py zte_cm_2g "data\cm\zte\gsm\parsed\in" # # Change log: # 23/11/2017 Make columns below text fields for Ericsson 2G cnaiv2 dumps # INTERNAL_CELL.UHPRIOTHR, # INT...
32.758929
120
0.683838
# Generate table creation sql # # generate_table_sql.py schema parser_output_dir # Assumes that <schema>_hist exists # # Example: python generate_table_sql.py zte_cm_2g "data\cm\zte\gsm\parsed\in" # # Change log: # 23/11/2017 Make columns below text fields for Ericsson 2G cnaiv2 dumps # INTERNAL_CELL.UHPRIOTHR, # INT...
0
0
0
1cfef30e9747dd3b8a6dcd714363d22373c3789b
7,099
py
Python
magpie/api/management/resource/resource_views.py
Ouranosinc/Magpie
24c4ec2d3f98eb71fba7b199281882dbc62b6693
[ "Apache-2.0" ]
null
null
null
magpie/api/management/resource/resource_views.py
Ouranosinc/Magpie
24c4ec2d3f98eb71fba7b199281882dbc62b6693
[ "Apache-2.0" ]
366
2017-10-04T14:58:52.000Z
2022-03-16T21:44:07.000Z
magpie/api/management/resource/resource_views.py
Ouranosinc/Magpie
24c4ec2d3f98eb71fba7b199281882dbc62b6693
[ "Apache-2.0" ]
3
2018-09-05T13:46:04.000Z
2021-02-05T14:52:15.000Z
from pyramid.httpexceptions import HTTPBadRequest, HTTPConflict, HTTPForbidden, HTTPInternalServerError, HTTPOk from pyramid.settings import asbool from pyramid.view import view_config from magpie import models from magpie.api import exception as ax from magpie.api import requests as ar from magpie.api import schemas ...
54.607692
116
0.741654
from pyramid.httpexceptions import HTTPBadRequest, HTTPConflict, HTTPForbidden, HTTPInternalServerError, HTTPOk from pyramid.settings import asbool from pyramid.view import view_config from magpie import models from magpie.api import exception as ax from magpie.api import requests as ar from magpie.api import schemas ...
153
0
27
a35e6e841d261fd60759e6dd545e889c2b1e5cd5
724
py
Python
examples/search/test_select.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
1
2021-07-19T19:21:30.000Z
2021-07-19T19:21:30.000Z
examples/search/test_select.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
null
null
null
examples/search/test_select.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
null
null
null
from pprint import pprint from aim.engine.repo.repo import AimRepo from aim.ql.grammar.statement import Statement if __name__ == '__main__': repo = AimRepo.get_working_repo(mode='r') query = 'metric_2, metric ' \ ' if experiment in (test_metrics, test_metrics_2)' \ ' and context.foo ...
27.846154
77
0.694751
from pprint import pprint from aim.engine.repo.repo import AimRepo from aim.ql.grammar.statement import Statement if __name__ == '__main__': repo = AimRepo.get_working_repo(mode='r') query = 'metric_2, metric ' \ ' if experiment in (test_metrics, test_metrics_2)' \ ' and context.foo ...
0
0
0
8b80ebec9be1369a8fc5081ab893bcf8b0cb1830
909
py
Python
EvaMap/Metrics/localLink.py
benjimor/EvaMap
42e616abe9f15925b885797d30496e30615989a0
[ "MIT" ]
1
2021-01-29T18:53:26.000Z
2021-01-29T18:53:26.000Z
EvaMap/Metrics/localLink.py
benjimor/EvaMap
42e616abe9f15925b885797d30496e30615989a0
[ "MIT" ]
1
2021-06-06T17:56:00.000Z
2021-06-06T17:56:00.000Z
EvaMap/Metrics/localLink.py
benjimor/EvaMap
42e616abe9f15925b885797d30496e30615989a0
[ "MIT" ]
null
null
null
import requests from EvaMap.Metrics.metric import metric
27.545455
65
0.539054
import requests from EvaMap.Metrics.metric import metric def localLink(g_onto, liste_map, g_map, raw_data, g_link) : #Fait points = 0 nbPossible = 0 result = metric() result['name'] = "Use of local links" set_URIs = set() links = set() for s, _, _ in g_map.triples((None, None, None)) : ...
828
0
23
b44a9e4348c75975772e17367733b38664880a8a
483
py
Python
volga/schema.py
Smirenost/volga
109191ee994e99a831d90f3e8aa1d82fc766ca8b
[ "MIT" ]
1
2020-11-05T23:40:02.000Z
2020-11-05T23:40:02.000Z
volga/schema.py
Smirenost/volga
109191ee994e99a831d90f3e8aa1d82fc766ca8b
[ "MIT" ]
3
2020-11-05T23:46:34.000Z
2020-11-12T22:42:12.000Z
volga/schema.py
Smirenost/volga
109191ee994e99a831d90f3e8aa1d82fc766ca8b
[ "MIT" ]
null
null
null
from volga.format import Format from volga.protocols import supportsDeserialization class Schema(supportsDeserialization): """[summary] :param supportsDeserialization: [description] :type supportsDeserialization: [type] """ def __init__(self) -> None: """[summary]""" ... def...
21
54
0.621118
from volga.format import Format from volga.protocols import supportsDeserialization class Schema(supportsDeserialization): """[summary] :param supportsDeserialization: [description] :type supportsDeserialization: [type] """ def __init__(self) -> None: """[summary]""" ... def...
0
0
0
db7f763b164a8cbaa2e9c017c953ccbf5a22dc54
1,558
py
Python
synthesis/schemes.py
AryaGuo/cadical
159af5b21fbe090e5c1514d7659d2bee92b3402a
[ "MIT" ]
null
null
null
synthesis/schemes.py
AryaGuo/cadical
159af5b21fbe090e5c1514d7659d2bee92b3402a
[ "MIT" ]
null
null
null
synthesis/schemes.py
AryaGuo/cadical
159af5b21fbe090e5c1514d7659d2bee92b3402a
[ "MIT" ]
null
null
null
static = """ bumped = lhs; """ inc = """ bumped = lhs + 1; """ sum = """ bumped = lhs + i; """ vsids = """ if (i % 256 == 0) unbumped = lhs * 0.5; bumped = lhs + 1; """ nvsids = """ unbumped = 0.8 * lhs; bumped = lhs + (1 - 0.8); ""...
19
50
0.332478
static = """ bumped = lhs; """ inc = """ bumped = lhs + 1; """ sum = """ bumped = lhs + i; """ vsids = """ if (i % 256 == 0) unbumped = lhs * 0.5; bumped = lhs + 1; """ nvsids = """ unbumped = 0.8 * lhs; bumped = lhs + (1 - 0.8); ""...
0
0
0
fa9449adbef94e9bb707a78df5b363148f9431ed
2,848
py
Python
plugins/chapiv1rpc/plugin.py
hussamnasir/geni-ch
b6626a14e95768ba33bbc1faca9e4e74b0040920
[ "MIT" ]
3
2015-05-01T12:48:35.000Z
2017-02-25T07:13:07.000Z
plugins/chapiv1rpc/plugin.py
GENI-NSF/geni-ch
184909ef656976071fd891091caeaf892c99deb1
[ "MIT" ]
466
2015-05-20T03:49:54.000Z
2020-03-18T23:09:52.000Z
plugins/chapiv1rpc/plugin.py
hussamnasir/geni-ch
b6626a14e95768ba33bbc1faca9e4e74b0040920
[ "MIT" ]
6
2015-05-06T13:44:13.000Z
2017-07-12T17:57:17.000Z
#---------------------------------------------------------------------- # Copyright (c) 2011-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
41.275362
80
0.721208
#---------------------------------------------------------------------- # Copyright (c) 2011-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
1,284
0
23
f2d07ec872be66cc3029d7de191b5b45afa75f3f
126
py
Python
prebuild/jupyter-caf-kernel/jupyter_caf_kernel/__main__.py
sourceryinstitute/jupyter-CAF-kernel
d09464d7c02107d6e9779962619d70a11011d32d
[ "MIT" ]
57
2017-06-16T00:00:24.000Z
2022-02-13T02:30:59.000Z
prebuild/jupyter-caf-kernel/jupyter_caf_kernel/__main__.py
ZhouHaoNB/jupyterNotebookDemo
95617939032acfd0e4cdbc2dfa9330ac00208993
[ "MIT" ]
5
2017-09-06T16:22:39.000Z
2022-01-24T04:40:42.000Z
prebuild/jupyter-caf-kernel/jupyter_caf_kernel/__main__.py
ZhouHaoNB/jupyterNotebookDemo
95617939032acfd0e4cdbc2dfa9330ac00208993
[ "MIT" ]
12
2017-09-07T13:56:12.000Z
2022-01-24T19:03:53.000Z
from ipykernel.kernelapp import IPKernelApp from .kernel import CafKernel IPKernelApp.launch_instance(kernel_class=CafKernel)
31.5
51
0.880952
from ipykernel.kernelapp import IPKernelApp from .kernel import CafKernel IPKernelApp.launch_instance(kernel_class=CafKernel)
0
0
0
d8fafb6d3549e32565c848e9e2929c33a9f792f0
757
py
Python
kalite_gtk/validators.py
benjaoming/ka-lite-gtk
cb1a50de14036dee5a8376200d5030ccc8adc85a
[ "BSD-3-Clause" ]
null
null
null
kalite_gtk/validators.py
benjaoming/ka-lite-gtk
cb1a50de14036dee5a8376200d5030ccc8adc85a
[ "BSD-3-Clause" ]
null
null
null
kalite_gtk/validators.py
benjaoming/ka-lite-gtk
cb1a50de14036dee5a8376200d5030ccc8adc85a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from __future__ import unicode_literals import pwd from .exceptions import ValidationError def validator(func): """ :param: none_if_invalid """ return inline @validator @validator
18.463415
68
0.628798
from __future__ import print_function from __future__ import unicode_literals import pwd from .exceptions import ValidationError def validator(func): """ :param: none_if_invalid """ def inline(value, none_if_invalid=False): try: return func(value) except ValidationError: ...
444
0
70
cb6fc2d5b8cc0b56144338d4343e72000c5f7406
9,384
py
Python
texttab/table.py
owenjklan/texttab
4023d83bfcc888d7758290b43193ff65f99607b2
[ "MIT" ]
null
null
null
texttab/table.py
owenjklan/texttab
4023d83bfcc888d7758290b43193ff65f99607b2
[ "MIT" ]
null
null
null
texttab/table.py
owenjklan/texttab
4023d83bfcc888d7758290b43193ff65f99607b2
[ "MIT" ]
null
null
null
""" Basic text-based table classes """ import texttab.const as const from texttab.const import FG_COLOURS, BG_COLOURS
34.755556
90
0.568201
""" Basic text-based table classes """ import texttab.const as const from texttab.const import FG_COLOURS, BG_COLOURS class BasicTable(object): def __init__(self, columns=None, border="single", fg=None, bg=None, head_fg=None, head_bg=None): self.__col_width_calculated = False sel...
8,034
1,208
23
d53a81dd7fcd89c5c93df491d0187257115cbd95
375
py
Python
tests/test/algorithms/generate/SvSequence/init/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
10
2020-06-28T11:16:36.000Z
2021-08-09T21:41:43.000Z
tests/test/algorithms/generate/SvSequence/init/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
35
2020-06-18T13:05:50.000Z
2022-02-18T10:13:35.000Z
tests/test/algorithms/generate/SvSequence/init/test.py
Eve-ning/reamber_base_py
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
2
2021-05-26T17:05:06.000Z
2021-06-12T18:42:13.000Z
import unittest from reamber.algorithms.generate.sv.SvSequence import SvSequence, SvObj if __name__ == '__main__': unittest.main()
23.4375
108
0.672
import unittest from reamber.algorithms.generate.sv.SvSequence import SvSequence, SvObj class TestInit(unittest.TestCase): def testMixed(self): # Quick Init Mixed seq = SvSequence([100, (200, 2.0, True), (400, 3.0), SvObj(offset=800, multiplier=5.0, fixed=True)]) self.assertEqual(len(seq...
173
13
50
4d6e20b9ad85e5fe59e0cba3ab46e4ac51cfcaac
322
py
Python
ToDoList/base/migrations/0007_remove_task_attach.py
ColonelAVP/deploy-todoapp
dbc69caf4f1013dbeae2321131874b5f2800d8c0
[ "MIT" ]
null
null
null
ToDoList/base/migrations/0007_remove_task_attach.py
ColonelAVP/deploy-todoapp
dbc69caf4f1013dbeae2321131874b5f2800d8c0
[ "MIT" ]
1
2021-09-08T04:37:47.000Z
2021-09-08T04:37:47.000Z
ToDoList/base/migrations/0007_remove_task_attach.py
ColonelAVP/deploy-todoapp
dbc69caf4f1013dbeae2321131874b5f2800d8c0
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-22 07:57 from django.db import migrations
17.888889
47
0.583851
# Generated by Django 3.2.6 on 2021-08-22 07:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('base', '0006_alter_task_attach'), ] operations = [ migrations.RemoveField( model_name='task', name='attach', ), ...
0
216
23
e637633f62a266bc0417e5e116dc2b719ed36608
1,204
py
Python
jsb/drivers/xmpp/presence.py
NURDspace/jsonbot
400dce602700a93db80e10707c3785a0fbdfaaeb
[ "MIT" ]
1
2019-04-12T12:20:12.000Z
2019-04-12T12:20:12.000Z
jsb/drivers/xmpp/presence.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
null
null
null
jsb/drivers/xmpp/presence.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
1
2020-05-06T18:46:53.000Z
2020-05-06T18:46:53.000Z
# jsb/socklib/xmpp/presence.py # # """ Presence. """ # jsb imports from jsb.lib.eventbase import EventBase from jsb.utils.trace import whichmodule from jsb.lib.gozerevent import GozerEvent ## basic imports import time import logging ## classes
25.617021
59
0.615449
# jsb/socklib/xmpp/presence.py # # """ Presence. """ # jsb imports from jsb.lib.eventbase import EventBase from jsb.utils.trace import whichmodule from jsb.lib.gozerevent import GozerEvent ## basic imports import time import logging ## classes class Presence(GozerEvent): def __init__(self, nodedict={}): ...
210
720
23
4481eba33e7ae47cea7908ddf8c5d0895aa4d9e4
4,688
py
Python
game-hub/old/logic.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
game-hub/old/logic.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
game-hub/old/logic.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
#! python3 from itertools import chain KING_CACHE = [king_moves(i) for i in range(64)] NIGHT_CACHE = [night_moves(i) for i in range(64)] VERTICAL_CACHE = [vertical_moves(i) for i in range(64)] DIAGONAL_CACHE = [diagonal_moves(i) for i in range(64)] if __name__ == "__main__": from main import run run...
30.640523
77
0.505546
#! python3 from itertools import chain def king_moves(pos): r, c = divmod(pos, 8) zip1 = zip((-8, 0, 8), (r, 1, r < 7)) zip2 = list(zip((-1, 0, 1), (c, 1, c < 7))) return set(pos + v + h for v, c1 in zip1 if c1 for h, c2 in zip2 if c2 and v | h) KING_CACHE = [king_moves(i) for i in rang...
4,112
0
253
4c1d135f78a90fd8a65cc2450bd4360f76646306
88
py
Python
enthought/chaco/scales/scales.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/chaco/scales/scales.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/chaco/scales/scales.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from chaco.scales.scales import *
22
38
0.829545
# proxy module from __future__ import absolute_import from chaco.scales.scales import *
0
0
0
5abd4486a8a894952fa08fa385535ce633878115
4,109
py
Python
construct_editor/gallery/test_renamed.py
0rShemesh/construct-editor
a4deb9d9f09cc1045a2613d838b2aadca002815e
[ "MIT" ]
7
2021-04-07T07:05:27.000Z
2022-03-06T18:51:08.000Z
construct_editor/gallery/test_renamed.py
0rShemesh/construct-editor
a4deb9d9f09cc1045a2613d838b2aadca002815e
[ "MIT" ]
11
2021-04-15T17:18:43.000Z
2022-03-13T10:06:10.000Z
construct_editor/gallery/test_renamed.py
0rShemesh/construct-editor
a4deb9d9f09cc1045a2613d838b2aadca002815e
[ "MIT" ]
2
2021-04-15T12:05:48.000Z
2022-03-04T02:22:54.000Z
import construct as cs import construct_typed as cst import dataclasses import typing as t from . import GalleryItem @dataclasses.dataclass constr = "renamed_test" / cst.DataclassStruct(RenamedTest) gallery_item = GalleryItem( construct=constr, example_binarys={ "Zeros": bytes(constr.sizeof()), ...
100.219512
599
0.767827
import construct as cs import construct_typed as cst import dataclasses import typing as t from . import GalleryItem @dataclasses.dataclass class RenamedTest(cst.DataclassMixin): doc: int = cst.csfield(cs.Int8sb, doc="This is a one line documentation") doc_multiline: int = cst.csfield( cs.Int8sb, ...
0
3,762
22
ecba3d88769bba171987d4bc34b4172c00a4ebd0
20
py
Python
venv/Lib/site-packages/msgpack/_version.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
SLpackage/private/thirdparty/pythonpkgs/msgpack/msgpack_0.5.1/lib/python2.7/site-packages/msgpack/_version.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
SLpackage/private/thirdparty/pythonpkgs/msgpack/msgpack_0.5.1/lib/python2.7/site-packages/msgpack/_version.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
version = (0, 5, 1)
10
19
0.5
version = (0, 5, 1)
0
0
0
f628b85403016be53fcd174e44902a498a1ce7a2
2,067
py
Python
ml_studio/services/singleton.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
1
2020-01-30T09:37:00.000Z
2020-01-30T09:37:00.000Z
ml_studio/services/singleton.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
3
2019-12-05T19:37:59.000Z
2020-03-31T05:49:53.000Z
ml_studio/services/singleton.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
null
null
null
# =========================================================================== # # SINGLETON METACLASS # # =========================================================================== # # =========================================================================== # ...
60.794118
81
0.323174
# =========================================================================== # # SINGLETON METACLASS # # =========================================================================== # # =========================================================================== # ...
41
39
22
91c375086ee21ffdb11087ed49c11dd22753cd12
9,149
py
Python
envi/archs/arm/const.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-12T03:50:06.000Z
2017-11-12T03:50:06.000Z
envi/archs/arm/const.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
envi/archs/arm/const.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
MODE_ARM = 0 MODE_THUMB = 1 MODE_JAZELLE = 2 #IFLAGS - keep bottom 8-bits for cross-platform flags like envi.IF_NOFALL and envi.IF_BRFALL IF_PSR_S = 1<<32 # This DP instruciton can update CPSR IF_B = 1<<33 # Byte IF_H = 1<<35 # HalfWord IF_S = 1<<36 # Signed IF_...
38.766949
139
0.662805
MODE_ARM = 0 MODE_THUMB = 1 MODE_JAZELLE = 2 #IFLAGS - keep bottom 8-bits for cross-platform flags like envi.IF_NOFALL and envi.IF_BRFALL IF_PSR_S = 1<<32 # This DP instruciton can update CPSR IF_B = 1<<33 # Byte IF_H = 1<<35 # HalfWord IF_S = 1<<36 # Signed IF_...
45
0
23
01105065ebbe254a725234433c75363f3d9ba456
1,078
py
Python
app/flags/migrations/0059_auto_20211008_1432.py
baikov/allflags
3fd28255b3616a6d4342cd9b735ec7cca52f6e63
[ "MIT" ]
null
null
null
app/flags/migrations/0059_auto_20211008_1432.py
baikov/allflags
3fd28255b3616a6d4342cd9b735ec7cca52f6e63
[ "MIT" ]
null
null
null
app/flags/migrations/0059_auto_20211008_1432.py
baikov/allflags
3fd28255b3616a6d4342cd9b735ec7cca52f6e63
[ "MIT" ]
null
null
null
# Generated by Django 3.1.8 on 2021-10-08 11:32 from django.db import migrations, models
27.641026
58
0.577922
# Generated by Django 3.1.8 on 2021-10-08 11:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flags', '0058_auto_20211008_0005'), ] operations = [ migrations.AlterField( model_name='colorgroup', name='created_d...
0
964
23
37fc33c3b3205946ecccf7722aabf506ae3c9899
160
py
Python
grage/maintenance/admin.py
hashlash/grage
cf6d2abfa94fab9fca4b0fb0e5bb3d83e4641dc3
[ "MIT" ]
null
null
null
grage/maintenance/admin.py
hashlash/grage
cf6d2abfa94fab9fca4b0fb0e5bb3d83e4641dc3
[ "MIT" ]
null
null
null
grage/maintenance/admin.py
hashlash/grage
cf6d2abfa94fab9fca4b0fb0e5bb3d83e4641dc3
[ "MIT" ]
null
null
null
from django.contrib import admin from grage.maintenance.models import Maintenance, MaintenanceItem admin.site.register([ Maintenance, MaintenanceItem, ])
20
65
0.80625
from django.contrib import admin from grage.maintenance.models import Maintenance, MaintenanceItem admin.site.register([ Maintenance, MaintenanceItem, ])
0
0
0
58f3e44e42996bfc3dd046731d739697f0cd4722
45,242
py
Python
scri/waveform_base.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
scri/waveform_base.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
scri/waveform_base.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Michael Boyle # See LICENSE file for details: <https://github.com/moble/scri/blob/master/LICENSE> import os import inspect import functools import warnings import socket import datetime import pprint import copy import numpy as np import quaternion import scipy.constants as spc from scipy.interpo...
43.376798
120
0.617435
# Copyright (c) 2015, Michael Boyle # See LICENSE file for details: <https://github.com/moble/scri/blob/master/LICENSE> import os import inspect import functools import warnings import socket import datetime import pprint import copy import numpy as np import quaternion import scipy.constants as spc from scipy.interpo...
2,910
0
668
2ceadf6ade8334f195bbc851d64332c677c13a1b
5,618
py
Python
testdata/PyFEM-master/pyfem/elements/SLS.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
3
2021-01-28T17:40:50.000Z
2021-10-05T17:48:32.000Z
testdata/PyFEM-master/pyfem/elements/SLS.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
1
2021-07-04T14:38:48.000Z
2021-07-04T14:38:48.000Z
testdata/PyFEM-master/pyfem/elements/SLS.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
2
2021-07-11T12:51:08.000Z
2021-10-05T17:48:44.000Z
############################################################################ # This Python file is part of PyFEM, the code that accompanies the book: # # # # 'Non-Linear Finite Element Analysis of Solids and Structures' # # R. ...
38.217687
82
0.452118
############################################################################ # This Python file is part of PyFEM, the code that accompanies the book: # # # # 'Non-Linear Finite Element Analysis of Solids and Structures' # # R. ...
2,366
104
134
ef6350216b9dbe430ff24393e0bcc1974ca87c7f
5,700
py
Python
pysnmp/CISCO-XGCP-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-XGCP-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-XGCP-CAPABILITY.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 CISCO-XGCP-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-XGCP-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 18:05:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
95
523
0.769123
# # PySNMP MIB module CISCO-XGCP-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-XGCP-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 18:05:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
0
0
0
266d73fe05e21ce2536bbe38a4598e8e20d5cd98
5,887
py
Python
temporis/transformation/features/denoising.py
lucianolorenti/Temporis
90004e28beb3d1bbec474c262f92ed042045e556
[ "MIT" ]
null
null
null
temporis/transformation/features/denoising.py
lucianolorenti/Temporis
90004e28beb3d1bbec474c262f92ed042045e556
[ "MIT" ]
null
null
null
temporis/transformation/features/denoising.py
lucianolorenti/Temporis
90004e28beb3d1bbec474c262f92ed042045e556
[ "MIT" ]
null
null
null
from typing import Optional import numpy as np import pandas as pd from temporis.transformation import TransformerStep from scipy.signal import savgol_filter from sklearn.cluster import MiniBatchKMeans class SavitzkyGolayTransformer(TransformerStep): """Filter each feature using LOESS Parameters ------...
29.435
106
0.605402
from typing import Optional import numpy as np import pandas as pd from temporis.transformation import TransformerStep from scipy.signal import savgol_filter from sklearn.cluster import MiniBatchKMeans class SavitzkyGolayTransformer(TransformerStep): """Filter each feature using LOESS Parameters ------...
1,683
0
291
4609b1247cb76847644fca695eccc65dd6ac5a43
7,520
py
Python
src/oci/core/models/update_instance_pool_placement_configuration_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/update_instance_pool_placement_configuration_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/update_instance_pool_placement_configuration_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, 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...
38.762887
245
0.712633
# coding: utf-8 # Copyright (c) 2016, 2022, 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...
177
0
81
a4dee7cfc6e6834be2a51c1b22acc2d8b4dfad06
2,041
py
Python
circle_core/cli/debug.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
3
2019-01-11T04:30:18.000Z
2019-01-11T04:31:18.000Z
circle_core/cli/debug.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
16
2018-11-21T11:47:18.000Z
2021-09-01T03:52:35.000Z
circle_core/cli/debug.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CLI debug commands.""" # system module import math import time from typing import TYPE_CHECKING from uuid import UUID # community module import click from dateutil import parser from circle_core.timed_db import TimedDBBundle if TYPE_CHECKING: from typing import List, Tuple @click.g...
24.890244
108
0.681529
# -*- coding: utf-8 -*- """CLI debug commands.""" # system module import math import time from typing import TYPE_CHECKING from uuid import UUID # community module import click from dateutil import parser from circle_core.timed_db import TimedDBBundle if TYPE_CHECKING: from typing import List, Tuple @click.g...
1,320
0
44
188d5261333fb138b4e3b96bb1812ccf54b78631
4,953
py
Python
cf_sample_gen.py
BrandonPacewic/CodeForcesSampleGen
6c01c00610d645331aea1473d07e69cadce58b47
[ "MIT" ]
null
null
null
cf_sample_gen.py
BrandonPacewic/CodeForcesSampleGen
6c01c00610d645331aea1473d07e69cadce58b47
[ "MIT" ]
null
null
null
cf_sample_gen.py
BrandonPacewic/CodeForcesSampleGen
6c01c00610d645331aea1473d07e69cadce58b47
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from urllib.request import urlopen from html.parser import HTMLParser from subprocess import call from functools import partial, wraps from typing import Any, List, Tuple import re import argparse import platform TEMPLATE = 'template.cc' LANGUAGE = 'C++17' SAMPLE_INPUT = 'input' SAMPLE_OUTPUT = ...
31.954839
124
0.585908
#!/usr/bin/python3 from urllib.request import urlopen from html.parser import HTMLParser from subprocess import call from functools import partial, wraps from typing import Any, List, Tuple import re import argparse import platform TEMPLATE = 'template.cc' LANGUAGE = 'C++17' SAMPLE_INPUT = 'input' SAMPLE_OUTPUT = ...
4,017
46
356
58e20882eafaa2424b452234cac0634231119e70
60
py
Python
drivers/mysql.py
ibegyourpardon/flask_api_scaffold
43df8f4a53f2611bb9e2577e798c22c57102fa17
[ "Apache-2.0" ]
null
null
null
drivers/mysql.py
ibegyourpardon/flask_api_scaffold
43df8f4a53f2611bb9e2577e798c22c57102fa17
[ "Apache-2.0" ]
null
null
null
drivers/mysql.py
ibegyourpardon/flask_api_scaffold
43df8f4a53f2611bb9e2577e798c22c57102fa17
[ "Apache-2.0" ]
null
null
null
from config.mysql import mysql_config_dev, mysql_config_prod
60
60
0.9
from config.mysql import mysql_config_dev, mysql_config_prod
0
0
0
7a66e46a70be98f183970aa96afb84d331508fff
3,601
py
Python
techminer2/clean_keywords.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
techminer2/clean_keywords.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
techminer2/clean_keywords.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
""" Clean Keywords =============================================================================== Cleans the keywords columns using the file keywords.txt, located in the same directory as the documents.csv file. >>> from techminer2 import * >>> directory = "/workspaces/techminer2/data/" >>> clean_keywords(directory...
34.625
87
0.601777
""" Clean Keywords =============================================================================== Cleans the keywords columns using the file keywords.txt, located in the same directory as the documents.csv file. >>> from techminer2 import * >>> directory = "/workspaces/techminer2/data/" >>> clean_keywords(directory...
0
0
0
d2f3104cd66f758e12788f8effed5519bfd97655
5,569
py
Python
allauth/socialaccount/providers/apple/tests.py
321core/django-allauth
60c30bd3373d650fb1453002490bdd69511317b8
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/apple/tests.py
321core/django-allauth
60c30bd3373d650fb1453002490bdd69511317b8
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/apple/tests.py
321core/django-allauth
60c30bd3373d650fb1453002490bdd69511317b8
[ "MIT" ]
null
null
null
import json from datetime import datetime, timedelta from django.urls import reverse import jwt from allauth.socialaccount.tests import OAuth2TestsMixin from allauth.tests import MockedResponse, TestCase from .provider import AppleProvider # Generated on https://mkjwk.org/, used to sign and verify the apple id_to...
35.025157
78
0.66511
import json from datetime import datetime, timedelta from django.urls import reverse import jwt from allauth.socialaccount.tests import OAuth2TestsMixin from allauth.tests import MockedResponse, TestCase from .provider import AppleProvider # Generated on https://mkjwk.org/, used to sign and verify the apple id_to...
559
1,785
23
87ee50adf3b57dbd9a36484ebfc4b7b5ebace2e7
3,602
py
Python
cli/quicklinks.py
4shub/quicklinks
c8b6a3de7237e7775ad7ad4552821bd6e8326f6e
[ "MIT" ]
2
2019-03-06T07:53:03.000Z
2019-03-06T20:51:13.000Z
cli/quicklinks.py
4shub/quicklinks
c8b6a3de7237e7775ad7ad4552821bd6e8326f6e
[ "MIT" ]
3
2019-04-08T03:30:48.000Z
2019-04-08T05:38:39.000Z
cli/quicklinks.py
4shub/quicklinks
c8b6a3de7237e7775ad7ad4552821bd6e8326f6e
[ "MIT" ]
1
2019-04-05T04:48:54.000Z
2019-04-05T04:48:54.000Z
import webbrowser import sys import os import os.path import api def open_existing_link(search_key): """ Opens a link given particular key :param search_key: key to search in the quicklinks file :return: """ did_succeed = api.search_for_value(search_key, open_link) if not did_succeed...
25.188811
140
0.621877
import webbrowser import sys import os import os.path import api def check_for_invalid_index(arg_index, error_message=''): if len(sys.argv) <= arg_index: if error_message: print(error_message) else: print('You are missing an argument') exit(0) def check_if_quickl...
2,793
0
142
9777308f17cc1e98e814b32c08e4cbe031293b2c
646
py
Python
export_model_weights.py
kkleidal/kens_tf_utils
b650475bceec4221044dabc9a2c219bf281672d0
[ "MIT" ]
1
2019-02-19T16:09:56.000Z
2019-02-19T16:09:56.000Z
export_model_weights.py
kkleidal/kens_tf_utils
b650475bceec4221044dabc9a2c219bf281672d0
[ "MIT" ]
null
null
null
export_model_weights.py
kkleidal/kens_tf_utils
b650475bceec4221044dabc9a2c219bf281672d0
[ "MIT" ]
2
2018-05-28T15:49:01.000Z
2021-02-09T13:12:14.000Z
#!/usr/bin/env python3 from model_weights import * import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='Export tensorflow variables from checkpoint to numpy file') parser.add_argument('logdir', metavar='TF_LOGDIR', type=str, help='the tensorflow log ...
40.375
109
0.674923
#!/usr/bin/env python3 from model_weights import * import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='Export tensorflow variables from checkpoint to numpy file') parser.add_argument('logdir', metavar='TF_LOGDIR', type=str, help='the tensorflow log ...
0
0
0
683ef35c10f5ecc3ac9619e4bd454e519622ddd4
6,675
py
Python
tests/test_rule.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
tests/test_rule.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
tests/test_rule.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
from typing import Tuple, Union import pytest from nonebug import App from utils import make_fake_event, make_fake_message @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.parametrize( "msg,ignorecase,type,text,expected", [ ("prefix", False, "message", "prefix_", True), ("prefix", Fa...
29.932735
75
0.638951
from typing import Tuple, Union import pytest from nonebug import App from utils import make_fake_event, make_fake_message @pytest.mark.asyncio async def test_rule(app: App): from nonebot.rule import Rule from nonebot.exception import SkippedException async def falsy(): return False async ...
4,201
0
154
511ecbe4d033a46ba8557de0f323b1e246ed708a
45
py
Python
mix_gamma/example2.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
mix_gamma/example2.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
mix_gamma/example2.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
print(@@calc1+2*@@python3+@@lua4@@@@@@@@@)
11.25
42
0.488889
print(@@calc1+2*@@python3+@@lua4@@@@@@@@@)
0
0
0
9722303fbc85d47fb967a73328e123146ad8de32
925
py
Python
tests/solar_data_pipeline/file/test_csv_access.py
slacgismo/solar-data-pipeline
1207122d34abbc92c7be6e36db3c979e1fa0556e
[ "BSD-2-Clause" ]
1
2020-01-15T11:17:27.000Z
2020-01-15T11:17:27.000Z
tests/solar_data_pipeline/file/test_csv_access.py
slacgismo/solar-data-pipeline
1207122d34abbc92c7be6e36db3c979e1fa0556e
[ "BSD-2-Clause" ]
null
null
null
tests/solar_data_pipeline/file/test_csv_access.py
slacgismo/solar-data-pipeline
1207122d34abbc92c7be6e36db3c979e1fa0556e
[ "BSD-2-Clause" ]
null
null
null
import unittest import os import numpy as np from solar_data_pipeline.file.csv import CsvAccess
33.035714
80
0.668108
import unittest import os import numpy as np from solar_data_pipeline.file.csv import CsvAccess class TestCsvAccess(unittest.TestCase): def setUp(self): input_power_signals_file_path = os.path.abspath( os.path.join(os.path.dirname(__file__), "../../fixtures/one_year_power_signals_1...
734
18
77
d9f59eee5965bb0537a8e2cfd0a5d77b76c8ec0b
3,362
py
Python
src/save_filepath_label.py
yogeshk4/EduMeet
b86dfbe525a2f4da6946d8684816333cdda6654b
[ "MIT" ]
8
2021-02-18T02:55:07.000Z
2021-12-21T15:31:36.000Z
src/save_filepath_label.py
yogeshkamat181/user-engagement-recognition
b86dfbe525a2f4da6946d8684816333cdda6654b
[ "MIT" ]
1
2022-03-19T06:01:17.000Z
2022-03-19T06:01:17.000Z
src/save_filepath_label.py
yogeshkamat181/user-engagement-recognition
b86dfbe525a2f4da6946d8684816333cdda6654b
[ "MIT" ]
3
2021-03-12T03:48:24.000Z
2022-01-30T19:39:40.000Z
import argparse from pathlib import Path import pandas as pd import numpy as np from progressbar import ProgressBar def save_filepath_label(usage, frame_dir, label_dir, out_dir): """ Save filepaths of all the frames and their respective output label as numpy array. Namely this numpy array's would be ...
39.093023
77
0.65586
import argparse from pathlib import Path import pandas as pd import numpy as np from progressbar import ProgressBar def save_filepath_label(usage, frame_dir, label_dir, out_dir): """ Save filepaths of all the frames and their respective output label as numpy array. Namely this numpy array's would be ...
0
0
0
35088cfad7a99be913a3aa1f4c02435d1712cc31
1,681
py
Python
scripts/reformat_tab.py
lascivaroma/PaPie
260440d0ad27a853350bdc4cf2a77d1655e231f8
[ "MIT" ]
16
2019-01-17T08:15:41.000Z
2021-11-12T15:17:41.000Z
scripts/reformat_tab.py
lascivaroma/PaPie
260440d0ad27a853350bdc4cf2a77d1655e231f8
[ "MIT" ]
64
2018-12-16T14:52:51.000Z
2021-05-20T07:58:40.000Z
scripts/reformat_tab.py
datatjej/pie
0ca4311a57b2439994e5fcdc02f4d008ee268a9c
[ "MIT" ]
4
2019-03-29T14:35:02.000Z
2021-05-19T13:31:48.000Z
import os import collections ORIGINAL_TASK_ORDER = ('lemma', 'pos', 'morph') EMPTY = '_' if __name__ == '__main__': dirpath = 'datasets/capitula_classic/' all_tasks = get_all_tasks(dirpath) all_tasks = list(all_tasks) print(all_tasks) for f in os.listdir(dirpath): print("Processing...
27.557377
87
0.552647
import os import collections ORIGINAL_TASK_ORDER = ('lemma', 'pos', 'morph') EMPTY = '_' def parse_morph(line): output = {} for field in line.split('|'): try: k, v = field.split('=') output[k] = v except ValueError: pass return output def get_all_ta...
1,201
0
69
b2f8299978ff83882c505e793cdb20649dbd59d3
1,943
py
Python
dns-amplification.py
venkat-abhi/network-attacks
56a9251a6e413c1b377c793526f8d99e328854a0
[ "Apache-2.0" ]
1
2020-11-13T04:50:45.000Z
2020-11-13T04:50:45.000Z
dns-amplification.py
venkat-abhi/network-attacks
56a9251a6e413c1b377c793526f8d99e328854a0
[ "Apache-2.0" ]
null
null
null
dns-amplification.py
venkat-abhi/network-attacks
56a9251a6e413c1b377c793526f8d99e328854a0
[ "Apache-2.0" ]
1
2021-01-30T13:15:00.000Z
2021-01-30T13:15:00.000Z
from scapy.all import DNS, DNSQR, IP, ICMP, RandShort, send, UDP import argparse import sys g_target_ip = "" g_name_servers = ["8.8.8.8"] # Default; can be overwritten using -n flag g_domain = "www.google.com" # Default; can be overwritten using -d flag """ This function creates and sends spoofed DNS queries to a ...
26.986111
98
0.695831
from scapy.all import DNS, DNSQR, IP, ICMP, RandShort, send, UDP import argparse import sys g_target_ip = "" g_name_servers = ["8.8.8.8"] # Default; can be overwritten using -n flag g_domain = "www.google.com" # Default; can be overwritten using -d flag """ This function creates and sends spoofed DNS queries to a ...
1,397
0
67
ca3edf4d9c0e34f8bdd705ddcd4e63d43fc37710
1,928
py
Python
utils/myResponse.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
utils/myResponse.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
utils/myResponse.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*-encoding=utf8 -*- # @Author : imooc # @Email : imooc@foxmail.com # @Created at : 2018/11/30 # @Filename : myResponse.py # @Desc : #...
28.352941
83
0.547199
#!/usr/bin/python # -*-encoding=utf8 -*- # @Author : imooc # @Email : imooc@foxmail.com # @Created at : 2018/11/30 # @Filename : myResponse.py # @Desc : #...
1,262
271
68
f7a025a13ff92e14e9f3775f23ceacbcfb5f6f5e
12,595
py
Python
test_project/testapp/tests/test_access_policy.py
oguzhancelikarslan/drf-access-policy
6c6516a14f0f53652c9f3ef3d15d4dc9e50024cf
[ "MIT" ]
null
null
null
test_project/testapp/tests/test_access_policy.py
oguzhancelikarslan/drf-access-policy
6c6516a14f0f53652c9f3ef3d15d4dc9e50024cf
[ "MIT" ]
null
null
null
test_project/testapp/tests/test_access_policy.py
oguzhancelikarslan/drf-access-policy
6c6516a14f0f53652c9f3ef3d15d4dc9e50024cf
[ "MIT" ]
null
null
null
import unittest.mock as mock from django.contrib.auth.models import AnonymousUser, Group, User from django.test import TestCase from rest_access_policy import AccessPolicy, AccessPolicyException from rest_framework.decorators import api_view from rest_framework.viewsets import ModelViewSet
33.586667
101
0.575546
import unittest.mock as mock from django.contrib.auth.models import AnonymousUser, Group, User from django.test import TestCase from rest_access_policy import AccessPolicy, AccessPolicyException from rest_framework.decorators import api_view from rest_framework.viewsets import ModelViewSet class FakeRequest(object):...
11,536
23
741
55dfd18084f08f2b6f1537cac0c84ba712ff2aef
1,728
py
Python
inference_terminal.py
Dmitry-Khochanskiy/unet_single_class
4fd3b62c63e95075ecaa603c77f2d1012318cde7
[ "MIT" ]
null
null
null
inference_terminal.py
Dmitry-Khochanskiy/unet_single_class
4fd3b62c63e95075ecaa603c77f2d1012318cde7
[ "MIT" ]
null
null
null
inference_terminal.py
Dmitry-Khochanskiy/unet_single_class
4fd3b62c63e95075ecaa603c77f2d1012318cde7
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding: utf-8 import argparse import sys import inference import os ''' script for single image or batch predicition. Accepts folder or single file path''' if __name__ == '__main__': accept_arguments()
35.265306
98
0.62963
#!/usr/bin/env python #coding: utf-8 import argparse import sys import inference import os ''' script for single image or batch predicition. Accepts folder or single file path''' def accept_arguments(): script_path = sys.path[0] my_parser = argparse.ArgumentParser(description='Inference of single image or a fol...
1,475
0
22
e5bd4cacd855d7fd6afd68c88a6b81d25b891fff
1,661
py
Python
consumer/Consumer.py
xstefanox/zeromq-spike
71b6d864f7514583dc36bc3a1decc30db4d0b542
[ "MIT" ]
null
null
null
consumer/Consumer.py
xstefanox/zeromq-spike
71b6d864f7514583dc36bc3a1decc30db4d0b542
[ "MIT" ]
null
null
null
consumer/Consumer.py
xstefanox/zeromq-spike
71b6d864f7514583dc36bc3a1decc30db4d0b542
[ "MIT" ]
null
null
null
import zmq from zmq import Socket, PULL, ZMQError, ENOTSOCK, RCVTIMEO, EAGAIN from logger.logger import log
33.897959
118
0.562312
import zmq from zmq import Socket, PULL, ZMQError, ENOTSOCK, RCVTIMEO, EAGAIN from logger.logger import log class Consumer: producer_host: str = None producer_port: int = None consuming: bool = True socket: Socket = None def __init__(self, producer_host, producer_port, receive_timeout_ms): ...
1,340
188
23