hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
939b5a6f9c1d672cb4ce2b1043aeefe2943202f4
4,777
py
Python
python_Projects/my_photoshop/stanCodoshop.py
Albert840529/SC-Projects
55314d0cc82c77c3a4e08ed6e084ae54cc920550
[ "MIT" ]
null
null
null
python_Projects/my_photoshop/stanCodoshop.py
Albert840529/SC-Projects
55314d0cc82c77c3a4e08ed6e084ae54cc920550
[ "MIT" ]
null
null
null
python_Projects/my_photoshop/stanCodoshop.py
Albert840529/SC-Projects
55314d0cc82c77c3a4e08ed6e084ae54cc920550
[ "MIT" ]
null
null
null
""" SC101 - Assignment3 Adapted from Nick Parlante's Ghost assignment by Jerry Liao. ----------------------------------------------- TODO: """ import math import os import sys from simpleimage import SimpleImage def get_pixel_dist(pixel, red, green, blue): """ Returns the square of the color distance betwee...
29.487654
98
0.625079
939b72527c1b8f59e4651de382d4d4a609b4242e
628
py
Python
mlapp/integrations/aml/utils/experiment.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/integrations/aml/utils/experiment.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/integrations/aml/utils/experiment.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
from azureml.core.runconfig import RunConfiguration from azureml.core import ScriptRunConfig import os from azureml.core import Experiment def run_local_compute_experiment(ws, experiment_name, entry_script, source_directory=os.getcwd()): # Edit a run configuration property on the fly. run_local = RunConfigura...
36.941176
103
0.802548
939b95da03b69eb75af42dbab1de6b394dea8bfa
3,124
py
Python
api/fm_api/device/views.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
1
2017-10-22T03:15:58.000Z
2017-10-22T03:15:58.000Z
api/fm_api/device/views.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
33
2016-06-20T19:43:47.000Z
2022-01-21T23:19:11.000Z
api/fm_api/device/views.py
nstoik/farm_monitor
592ab281e6ed364396c1db702f72a81d28080004
[ "Apache-2.0" ]
null
null
null
"""Views for Device API.""" from flask import current_app from flask.views import MethodView # from flask_jwt_extended import jwt_required from flask_smorest import Blueprint, abort from flask_smorest.pagination import PaginationParameters from fm_database.models.device import Device, DeviceUpdate from fm_database.pag...
29.196262
82
0.683419
939ba5ee5d3cc42bbd121fb1871bcf390c663d39
864
py
Python
mepcheck/savemeps.py
alanmarazzi/mepcheck
48497f9424f2aac080a83f0c4a57fbcab522b5e2
[ "MIT" ]
7
2017-04-23T10:48:59.000Z
2021-05-18T22:46:48.000Z
mepcheck/savemeps.py
alanmarazzi/mepcheck
48497f9424f2aac080a83f0c4a57fbcab522b5e2
[ "MIT" ]
4
2017-10-14T16:10:37.000Z
2021-07-07T11:44:07.000Z
mepcheck/savemeps.py
alanmarazzi/mepcheck
48497f9424f2aac080a83f0c4a57fbcab522b5e2
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import pickle import os def save_meps(): # TODO - make this configurable url = "http://www.votewatch.eu//en/term9-european-parliament-members.html?limit=1000" path = os.path.expanduser("~") r = requests.get(url) r.encoding = 'utf-8' soup = Beautifu...
27
89
0.626157
939baf4931cc696348811fba58f31083ce4328d3
70,956
py
Python
tests/models/test_dag.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
tests/models/test_dag.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
tests/models/test_dag.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.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...
36.594121
110
0.615466
939bbc4aed745524f866ce984f933144bdba545e
26,517
py
Python
tests/test_style.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
null
null
null
tests/test_style.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
null
null
null
tests/test_style.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
null
null
null
"""Style tests.""" from pathlib import Path from textwrap import dedent from unittest import mock from unittest.mock import PropertyMock import pytest import responses from nitpick.constants import DOT_SLASH, PYPROJECT_TOML, READ_THE_DOCS_URL, SETUP_CFG, TOML_EXTENSION, TOX_INI from nitpick.style.fetchers.github impo...
29.928894
120
0.563412
939bd5324f0ea3e82a79e369359d8f94c97ccafd
376
py
Python
arc/arc052/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
arc/arc052/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
arc/arc052/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys import math from collections import defaultdict, deque sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() S = ns() nums = "0123456789" ans = "" for s in S: for num in nu...
17.904762
53
0.625
939bdbad886f3f8737bf9f479e7c7ae4f810543a
1,960
py
Python
palindrome_list.py
KhrystynaKovalchuk/palindrome
519b32f2dfb4a7208f804e0b86d8b07a6c96045c
[ "MIT" ]
null
null
null
palindrome_list.py
KhrystynaKovalchuk/palindrome
519b32f2dfb4a7208f804e0b86d8b07a6c96045c
[ "MIT" ]
null
null
null
palindrome_list.py
KhrystynaKovalchuk/palindrome
519b32f2dfb4a7208f804e0b86d8b07a6c96045c
[ "MIT" ]
null
null
null
""" Palindrome class realization. """ from arraystack import ArrayStack class Palindrome: """ Class for serching for palindromes. """ def read_file(self, file): """ Reads file and writes data to the list. """ result = [] file_open = open(file, "r", encoding="utf...
29.253731
71
0.515306
939c0cb3fd519019c041d953c3fcdf57a923bc30
1,575
py
Python
setup.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
setup.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
setup.py
matthiask/daphne
cc6af549a61d0529182ef7370515547eedfb26fd
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import find_packages, setup from daphne import __version__ # We use the README as the long_description readme_path = os.path.join(os.path.dirname(__file__), "README.rst") with open(readme_path) as fp: long_description = fp.read() setup( name="daphne", version=__version__, u...
28.636364
67
0.615238
939c164886b1a9aae0bee136a373affb46620a32
224
py
Python
johann/shared/__init__.py
lobotmcj/johann
c188c6f31446907a5d6a237191540856f02a91a0
[ "BSD-3-Clause" ]
11
2020-08-27T18:33:09.000Z
2022-03-18T03:09:03.000Z
johann/shared/__init__.py
johannsdg/johann
c188c6f31446907a5d6a237191540856f02a91a0
[ "BSD-3-Clause" ]
null
null
null
johann/shared/__init__.py
johannsdg/johann
c188c6f31446907a5d6a237191540856f02a91a0
[ "BSD-3-Clause" ]
2
2020-09-04T03:07:35.000Z
2020-11-06T19:08:03.000Z
# Copyright (c) 2019-present, The Johann Authors. All Rights Reserved. # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE file. See the AUTHORS file for names of contributors.
56
79
0.767857
939c171ecdf8f0d8865f2eb47414db7bbcfc6ab4
514
py
Python
web/rabbit_mq/routing/emit_log_direct.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
web/rabbit_mq/routing/emit_log_direct.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
web/rabbit_mq/routing/emit_log_direct.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import sys import pika connection = pika.BlockingConnection(pika.ConnectionParameters('localhost')) channel = connection.channel() # declare the exchange to use channel.exchange_declare(exchange="direct_logs", type='direct') severity = sys.argv[1] if len(sys.argv) > 1 else "info" message = " ".join(sys.argv[2:] or...
25.7
83
0.743191
939c35ddf0a7dcf7f28c1502f10407ad2bacc38c
333
py
Python
create_tables.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
35
2015-01-08T03:26:39.000Z
2020-09-16T00:42:17.000Z
create_tables.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
47
2015-01-05T23:22:08.000Z
2021-02-02T21:43:26.000Z
create_tables.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
10
2015-02-20T00:51:37.000Z
2022-01-11T10:59:32.000Z
#!/usr/bin/env python from redwind import create_app from redwind.extensions import db from flask import current_app app = create_app() with app.app_context(): print('creating database tables for database', current_app.config['SQLALCHEMY_DATABASE_URI']) db.create_all() print('done creating datab...
25.615385
56
0.747748
939c5ca920b34ec1dedc12883caecdafcd140d94
3,757
py
Python
cinder/volume/flows/common.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/flows/common.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/flows/common.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013 Yahoo! Inc. All Rights Reserved. # Copyright (c) 2013 OpenStack Foundation # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2....
40.397849
79
0.649721
939c63ca1705e4762a8f0ada4d894b74a30ec109
2,078
py
Python
xas/db_io.py
mrakitin/xas
b84d5797c0a599841c0e978d4ecdf8b9e28788d4
[ "BSD-3-Clause" ]
null
null
null
xas/db_io.py
mrakitin/xas
b84d5797c0a599841c0e978d4ecdf8b9e28788d4
[ "BSD-3-Clause" ]
null
null
null
xas/db_io.py
mrakitin/xas
b84d5797c0a599841c0e978d4ecdf8b9e28788d4
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import numpy as np from . import xray def load_apb_dataset_from_db(db, uid): hdr = db[uid] apb_dataset = list(hdr.data(stream_name='apb_stream', field='apb_stream'))[0] energy_dataset = list(hdr.data(stream_name='pb9_enc1',field='pb9_enc1'))[0] angle_offset = -float(hdr['start']['a...
29.267606
112
0.66025
939c788058a39907e90cf50a0f0e5e3e07064e3f
2,325
py
Python
fabric_cf/authority/test/site_am.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
fabric_cf/authority/test/site_am.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/authority/test/site_am.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
37.5
105
0.729892
939ca0c4928fe2c769e835144c7ce48e413c678a
42,408
py
Python
support/v8/tools/test.py
hflw/Blackpyre-Engine
9cc22f002cb9a4f9c7995232ef92518c039be9ab
[ "AFL-3.0" ]
48
2015-01-09T20:39:35.000Z
2021-12-21T21:17:52.000Z
deps/v8/tools/test.py
farhadi/node
36ef5643c3a3dc1a43e80ede442d4d1cd29b6a68
[ "MIT" ]
2
2016-02-05T10:27:37.000Z
2019-01-22T16:22:51.000Z
deps/v8/tools/test.py
farhadi/node
36ef5643c3a3dc1a43e80ede442d4d1cd29b6a68
[ "MIT" ]
8
2015-01-12T17:14:36.000Z
2018-09-15T14:10:27.000Z
#!/usr/bin/env python # # Copyright 2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # noti...
28.888283
148
0.647566
939caaf6f038f82f3f4ea9e2def66bf8c117636a
1,304
py
Python
binarysearch.io/left_side_view_of_a_tree.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/left_side_view_of_a_tree.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/left_side_view_of_a_tree.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
# class Tree: # def __init__(self, val, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def solve(self, root): # Write your code here left_nodes = [] waiting = [root] while waiting: left_nodes.ap...
29.636364
53
0.479294
939cb237ea327fa39ebce293c520e9437b119bd4
5,187
py
Python
sorts/odd_even_transposition_parallel.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
sorts/odd_even_transposition_parallel.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
sorts/odd_even_transposition_parallel.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
28.977654
80
0.618855
939cc7d5342d4ce6fc5b76539604cf9a180bc267
961
py
Python
PythonProgramming/ArithematicOperatorsQuiz.py
akhandatascience/AI_Programming_-with_Python
7bcb200e6d8c0dab368a06135c564817b3501a20
[ "MIT" ]
null
null
null
PythonProgramming/ArithematicOperatorsQuiz.py
akhandatascience/AI_Programming_-with_Python
7bcb200e6d8c0dab368a06135c564817b3501a20
[ "MIT" ]
null
null
null
PythonProgramming/ArithematicOperatorsQuiz.py
akhandatascience/AI_Programming_-with_Python
7bcb200e6d8c0dab368a06135c564817b3501a20
[ "MIT" ]
null
null
null
""" AI and deep learnin with Python Data types and operators Quiz Data types and Operators """ # Problem 1 """ Average Electricity Bills Write an expression that calculates the average of 23, 32 and 64 Place the exppression in the print() """ average_num = (23 + 32 + 64)/3.0 # calculate mean average ...
27.457143
84
0.693028
939ceed751b9ba2c635f4d86ad2528075b6da93f
4,644
py
Python
testing/pyDAE/distc_sim.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
testing/pyDAE/distc_sim.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
testing/pyDAE/distc_sim.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 from __future__ import division from __future__ import print_function from nmpc_mhe.pyomo_dae.MHEGen_pyDAE import MheGen_DAE from sample_mods.distc_pyDAE.distcpydaemod import mod from nmpc_mhe.aux.utils import load_iguess, create_bounds from pyomo.core.base import Var, Constra...
30.352941
91
0.547158
939d25443f62e9f5d17a1600b13c84729899b6e0
1,261
py
Python
tests/PySys/software_management_end_to_end/sm_apt_install_remove/run.py
uklotzde/thin-edge.io
c14c7302927c34e57dc548fb8859e6d827562391
[ "Apache-2.0" ]
1
2022-03-22T17:24:03.000Z
2022-03-22T17:24:03.000Z
tests/PySys/software_management_end_to_end/sm_apt_install_remove/run.py
uklotzde/thin-edge.io
c14c7302927c34e57dc548fb8859e6d827562391
[ "Apache-2.0" ]
null
null
null
tests/PySys/software_management_end_to_end/sm_apt_install_remove/run.py
uklotzde/thin-edge.io
c14c7302927c34e57dc548fb8859e6d827562391
[ "Apache-2.0" ]
null
null
null
from pysys.basetest import BaseTest import time """ Validate end to end behaviour for the apt plugin for installation and removal of packages For the apt plugin with ::apt When we install a package Then it is installed When we deinstall it again Then it is not installed """ import json import requests import time ...
23.792453
89
0.674861
939d26715db7ecef88be921245211957ff6a3ef3
801
py
Python
src/kol/bot/BotManager.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
1
2016-05-08T12:10:32.000Z
2016-05-08T12:10:32.000Z
src/kol/bot/BotManager.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
null
null
null
src/kol/bot/BotManager.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
null
null
null
from kol.database import ItemDatabase from kol.database import SkillDatabase from kol.util import Report import socket import threading import time _bots = [] _haltEvent = None def init(params=None): global _haltEvent # Create the event which can be used to halt all bots. _haltEvent = threading.Event() # Ini...
17.8
55
0.729089
939d273a7f1bcc80557d8efa3bc73c2823d6d73d
7,274
py
Python
scapy/scapy/layers/tls/crypto/cipher_block.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/layers/tls/crypto/cipher_block.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/layers/tls/crypto/cipher_block.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
# This file is part of Scapy # Copyright (C) 2007, 2008, 2009 Arnaud Ebalard # 2015, 2016, 2017 Maxence Tury # This program is published under a GPLv2 license """ Block ciphers. """ from __future__ import absolute_import from scapy.config import conf from scapy.utils import strxor from scapy.layers.tls....
32.914027
82
0.612043
939d56e90ef6c556d2c35a423751663caa9051f8
8,565
py
Python
auton_survival/models/dcm/__init__.py
PotosnakW/auton-survival
d38ab87e76e8363331eeb21573a3ec094f8e6b09
[ "MIT" ]
15
2022-02-01T10:03:22.000Z
2022-03-29T01:02:36.000Z
auton_survival/models/dcm/__init__.py
PotosnakW/auton-survival
d38ab87e76e8363331eeb21573a3ec094f8e6b09
[ "MIT" ]
4
2022-02-27T01:14:57.000Z
2022-03-07T14:26:23.000Z
auton_survival/models/dcm/__init__.py
PotosnakW/auton-survival
d38ab87e76e8363331eeb21573a3ec094f8e6b09
[ "MIT" ]
6
2022-02-10T04:28:49.000Z
2022-03-23T17:21:41.000Z
# coding=utf-8 # MIT License # Copyright (c) 2020 Carnegie Mellon University, Auton Lab # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the...
33.326848
92
0.647636
939d62a3c169c8a759fbd82f5f33eee32f07a7fc
1,879
py
Python
leo/plugins/qt_quicksearch.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/qt_quicksearch.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/qt_quicksearch.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'qt_quicksearch.ui' # # Created: Sat Mar 14 22:38:41 2009 # by: PyQt4 UI code generator 4.4.2 # # WARNING! All changes made in this file will be lost! from leo.core.leoQt import isQt5, QtCore, QtWidgets # QtGui, QtGui = QtWidgets class U...
44.738095
87
0.712613
939dc1d66948a00546e4ff2559a61ea4271a100e
5,842
py
Python
tests/test_tcp_test_proto.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
3
2018-10-16T11:58:51.000Z
2019-11-13T14:07:19.000Z
tests/test_tcp_test_proto.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
1
2019-09-19T13:27:44.000Z
2019-09-19T13:27:44.000Z
tests/test_tcp_test_proto.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
6
2019-01-04T07:48:45.000Z
2022-03-01T08:12:03.000Z
""" Unit-test for the TCP data protocol. """ import unittest import unittest.mock import socket from py3iperf3.data_protocol_tcp import TcpTestProtocol def fake_logger(message, **kwargs): """Mockup of logger""" return unittest.mock.MagicMock() class TestTcpTestProtocol(unittest.TestCase): """Unit-test of...
32.455556
92
0.684526
939de008f7874f16cd762a020fba4491734dd434
2,594
py
Python
tracking_plan/yaml_event.py
GClunies/tracking-plan-kit
bb660f96cc3aba0453cf9e451f4b3021d724f797
[ "MIT" ]
4
2019-10-05T01:48:39.000Z
2022-03-20T17:41:00.000Z
tracking_plan/yaml_event.py
GClunies/tracking-plan-kit
bb660f96cc3aba0453cf9e451f4b3021d724f797
[ "MIT" ]
14
2019-07-08T21:12:11.000Z
2021-11-03T14:46:52.000Z
tracking_plan/yaml_event.py
GClunies/tracking-plan-kit
bb660f96cc3aba0453cf9e451f4b3021d724f797
[ "MIT" ]
1
2021-08-17T05:03:40.000Z
2021-08-17T05:03:40.000Z
from tracking_plan.yaml_property import YamlProperty from tracking_plan.errors import ValidationError from tracking_plan.string_utilities import is_sentence_case from tracking_plan.validation import check_required from collections import Counter class YamlEvent(object): def __init__(self, event_yaml): self...
34.131579
116
0.582884
939e57881230a47f00dae826a773c4662a0e659b
16,785
py
Python
classic.py
alienkrieg/classic
cfd624fd11cfe3b8dc0c1f7b59925edd9b376058
[ "MIT" ]
null
null
null
classic.py
alienkrieg/classic
cfd624fd11cfe3b8dc0c1f7b59925edd9b376058
[ "MIT" ]
null
null
null
classic.py
alienkrieg/classic
cfd624fd11cfe3b8dc0c1f7b59925edd9b376058
[ "MIT" ]
null
null
null
from itertools import combinations, combinations_with_replacement from typing import Union, Optional, Sequence, overload import networkx import numpy as np import scipy.stats as stats from matplotlib import pyplot as plt from matplotlib import ticker @overload def critical_difference_diagram( data: np.ndarray, ...
34.679752
79
0.571761
939e5835ad90793a8b31538c71282db4538cda0f
4,509
py
Python
ptlflow/models/hd3/dla_up.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
78
2021-06-15T03:11:33.000Z
2022-03-25T05:51:25.000Z
ptlflow/models/hd3/dla_up.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
12
2021-07-04T17:02:57.000Z
2022-02-09T09:30:43.000Z
ptlflow/models/hd3/dla_up.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
3
2021-07-27T21:28:51.000Z
2021-09-17T10:06:27.000Z
import math import numpy as np import torch from torch import nn from . import dla BatchNorm = nn.BatchNorm2d class Identity(nn.Module): def __init__(self): super(Identity, self).__init__() def forward(self, x): return x def fill_up_weights(up): w = up.weight.data f = math.ceil(w....
31.096552
79
0.491683
939e6211ab6897814408ac04e4b51fa2449be054
164
py
Python
Numpy/CalculoMatrices/structuredData.py
Jovamih/PythonProyectos
cc87cc98001fba528c3a03fe9a0edd290b83ec60
[ "MIT" ]
null
null
null
Numpy/CalculoMatrices/structuredData.py
Jovamih/PythonProyectos
cc87cc98001fba528c3a03fe9a0edd290b83ec60
[ "MIT" ]
null
null
null
Numpy/CalculoMatrices/structuredData.py
Jovamih/PythonProyectos
cc87cc98001fba528c3a03fe9a0edd290b83ec60
[ "MIT" ]
null
null
null
# /usr/bin/env python3 import numpy as np def structured(): name=['johan','kodaline','shawn','veronica'] edad=[12,23,10,43] peso=[12.3,45.6,54.3,44.2]
23.428571
48
0.621951
939e6bf46bdfe61651ce1ae1926c2fd774246424
7,284
py
Python
tensorbay/label/label_polygon.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/label/label_polygon.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/label/label_polygon.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """LabeledPolygon2D, Polygon2DSubcatalog. :class:`Polygon2DSubcatalog` defines the subcatalog for 2D polygon type of labels. :class:`LabeledPolygon2D` is the 2D polygon type of label, which is often used for CV tasks such as semantic se...
35.188406
98
0.580999
939ea7042e864dcb428060d31d1960111e551df7
4,997
py
Python
tests/mocks.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
tests/mocks.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
tests/mocks.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Mocks for tests.""" from typing import Iterable, Optional, Tuple import torch from torch import nn from pykeen.evaluation import Evaluator, MetricResults, RankBasedMetricResults from pykeen.evaluation.rank_based_evaluator import RANK_REALISTIC, RANK_TYPES, SIDES from pykeen.models import ...
35.439716
100
0.638383
939ea89af41ccf6b8652cf530c81e01f5b96c35b
5,530
py
Python
qnt/ta/wma.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
21
2021-03-07T01:10:40.000Z
2022-03-10T09:15:49.000Z
qnt/ta/wma.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
1
2021-03-29T20:25:58.000Z
2021-03-31T11:32:16.000Z
qnt/ta/wma.py
anshul96go/toolbox
f60ba0b885eb0eb4786f6e56260073f923a7f844
[ "MIT" ]
8
2021-03-24T16:25:03.000Z
2022-02-10T19:58:47.000Z
import numpy as np import numba as nb import pandas as pd import qnt.ta.ndadapter as nda import typing as tp import time import sys from qnt.log import log_info, log_err @nb.jit(nb.float64[:](nb.float64[:], nb.int64), nopython=True) def lwma_np_1d(series: np.ndarray, periods: int) -> np.ndarray: tail = np.empty((...
34.135802
101
0.589873
939ebda9cb2b78f9a8363994f69862e384e0d101
16,941
py
Python
tests/cupy_tests/linalg_tests/test_product.py
andy6975/cupy
34b388e4a4fe7c59092b4d4c9c96b2f307e49e46
[ "MIT" ]
null
null
null
tests/cupy_tests/linalg_tests/test_product.py
andy6975/cupy
34b388e4a4fe7c59092b4d4c9c96b2f307e49e46
[ "MIT" ]
null
null
null
tests/cupy_tests/linalg_tests/test_product.py
andy6975/cupy
34b388e4a4fe7c59092b4d4c9c96b2f307e49e46
[ "MIT" ]
null
null
null
import unittest import numpy from cupy import cuda from cupy import testing @testing.parameterize(*testing.product({ 'shape': [ ((2, 3, 4), (3, 4, 2)), ((1, 1), (1, 1)), ((1, 1), (1, 2)), ((1, 2), (2, 1)), ((2, 1), (1, 1)), ((1, 2), (2, 3)), ((2, 1), (1, 3...
36.121535
74
0.585562
939ec39b108bd270804122711dc230439ca0b5ca
5,994
py
Python
tempest/api/network/test_security_groups.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_security_groups.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_security_groups.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
42.814286
79
0.650484
939ec6184ca5897d13086ae17b4e375468b5a4bd
72,298
py
Python
misc/python/materialize/mzcompose.py
sys3175/materialize
944d9963e2b190e09fba84c639b0c0954825536d
[ "MIT" ]
1
2021-07-09T11:51:03.000Z
2021-07-09T11:51:03.000Z
misc/python/materialize/mzcompose.py
sys3175/materialize
944d9963e2b190e09fba84c639b0c0954825536d
[ "MIT" ]
129
2021-06-10T12:50:20.000Z
2022-03-27T22:12:46.000Z
misc/python/materialize/mzcompose.py
sys3175/materialize
944d9963e2b190e09fba84c639b0c0954825536d
[ "MIT" ]
1
2021-07-09T11:51:59.000Z
2021-07-09T11:51:59.000Z
# Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software...
34.859209
156
0.568218
939ec6e28330f7f624155464e6add7b6b0491371
19,389
py
Python
orix/tests/test_crystal_map_plot.py
JoonatanL/orix
b8e6dfe4c3ac053e923b001b9bccec717db3e56c
[ "MIT" ]
1
2020-05-28T01:57:35.000Z
2020-05-28T01:57:35.000Z
orix/tests/test_crystal_map_plot.py
dnjohnstone/orix
b8e6dfe4c3ac053e923b001b9bccec717db3e56c
[ "MIT" ]
null
null
null
orix/tests/test_crystal_map_plot.py
dnjohnstone/orix
b8e6dfe4c3ac053e923b001b9bccec717db3e56c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2020 the orix developers # # This file is part of orix. # # orix is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) ...
32.97449
88
0.575171
939f0b3f648f4a3dec50f2479d3b416fbac23a3c
997
py
Python
app/resources/v1/ti/indicadores_br.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/resources/v1/ti/indicadores_br.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/resources/v1/ti/indicadores_br.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Controller para fornecer dados da CEE ''' from flask import request from flask_restful_swagger_2 import swagger from resources.base import BaseResource class IndicadoresTIBrasilResource(BaseResource): ''' Classe de múltiplas incidências ''' CUSTOM_SWAGGER_PARAMS = [ {"name": "categorias", "required...
38.346154
99
0.667001
939f408d472e08198706dc258405287d5eb2c02d
5,313
py
Python
gaphor/UML/umlfmt.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
gaphor/UML/umlfmt.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
gaphor/UML/umlfmt.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
""" Formatting of UML elements like attributes, operations, stereotypes, etc. """ import re from functools import singledispatch from gaphor.UML import uml as UML @singledispatch def format(el): """ Format an UML element. """ raise NotImplementedError( "Format routine for type %s not impleme...
23.932432
88
0.599849
939f42901fd09712405fe7fda8f5764565a14dc4
1,494
py
Python
do_cldhgh_zfp.py
Meso272/PyTorch-VAE
08c44bdcb30ba8795a7c0da5597af80c8c42e9f0
[ "Apache-2.0" ]
null
null
null
do_cldhgh_zfp.py
Meso272/PyTorch-VAE
08c44bdcb30ba8795a7c0da5597af80c8c42e9f0
[ "Apache-2.0" ]
null
null
null
do_cldhgh_zfp.py
Meso272/PyTorch-VAE
08c44bdcb30ba8795a7c0da5597af80c8c42e9f0
[ "Apache-2.0" ]
1
2022-02-11T23:22:41.000Z
2022-02-11T23:22:41.000Z
import os import numpy as np datafolder="/home/jliu447/lossycompression/multisnapshot-data-cleaned/CLDHGH" ebs=[0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10] cr=np.zeros((len(ebs)+1,12),dtype=np.float32) psnr=np.zeros((len(ebs)+1,12),dtype=np.float32) maxpwerr=np.zeros((len(ebs)+1,12),dtype=np.float32) for i,eb in enumerate(e...
29.294118
87
0.532798
939f4fa20bc01c634f570004faec711064123fe0
2,275
py
Python
dev/get_tess_photometric_noise.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
dev/get_tess_photometric_noise.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
dev/get_tess_photometric_noise.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
# Query the Web TESS Viewer for the photometric noise of every star in a sector. import utils import urllib.request as request import urllib.error as error import pandas as pd from tqdm import tqdm import sys import os import numpy as np def get_tess_photometric_noise(sector_num, datapath=utils.TESS_DATAPATH, subpath...
39.224138
146
0.640879
939f60d8c9c357c2930bc3fafa7783ad9834f863
701
py
Python
cli/commands/cmd_routes.py
benhoyle/website
c8d0bf749ce2eb80ce44b6edee67f3881d3813b4
[ "MIT" ]
null
null
null
cli/commands/cmd_routes.py
benhoyle/website
c8d0bf749ce2eb80ce44b6edee67f3881d3813b4
[ "MIT" ]
null
null
null
cli/commands/cmd_routes.py
benhoyle/website
c8d0bf749ce2eb80ce44b6edee67f3881d3813b4
[ "MIT" ]
null
null
null
import click from benhoyle.app import create_app app = create_app() @click.command() def cli(): """ List all of the available routes. :return: str """ output = {} for rule in app.url_map.iter_rules(): route = { 'path': rule.rule, 'methods': '({0})'.format(',...
22.612903
75
0.540656
939f9d9c9ab5a3c283765e07adb3632f779f60b3
12,260
py
Python
test/fes_controller_test.py
erprice/fes
3f62a6059bd8f5262488efb35f8b2d3582eeabdf
[ "Apache-2.0" ]
null
null
null
test/fes_controller_test.py
erprice/fes
3f62a6059bd8f5262488efb35f8b2d3582eeabdf
[ "Apache-2.0" ]
null
null
null
test/fes_controller_test.py
erprice/fes
3f62a6059bd8f5262488efb35f8b2d3582eeabdf
[ "Apache-2.0" ]
null
null
null
import fes_controller import redis_data import hbase_data import test_utils from random import randint UPDATED_TEST_PAYLOAD = '{"a different list" : "some other stuff", "hark, a test datum" : ["this time with a", "two item list"]}' def test_generate_hash(): id_hashes = {} for i in range(100): id_ = t...
49.837398
128
0.758728
939fc537c08ebb3192134979c0d12c25b7b53dd8
2,737
py
Python
tools/utils.py
cryspen/hacl
402d94752bd47e8ed3bd9a142b311d574a264e91
[ "Apache-2.0" ]
null
null
null
tools/utils.py
cryspen/hacl
402d94752bd47e8ed3bd9a142b311d574a264e91
[ "Apache-2.0" ]
7
2022-02-24T06:24:12.000Z
2022-03-31T14:48:48.000Z
tools/utils.py
cryspen/hacl
402d94752bd47e8ed3bd9a142b311d574a264e91
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Cryspen Sarl # # Licensed under the Apache License, Version 2.0 or MIT. # * http://www.apache.org/licenses/LICENSE-2.0 # * http://opensource.org/licenses/MIT from argparse import ArgumentParser, RawTextHelpFormatter import os from os.path import join import subprocess from pathlib import P...
24.881818
90
0.662039
939fc58aa496d8be53f77eff2165bf7f8503564c
6,635
py
Python
premade_modules/2.78/2.78c/bpy/ops/particle.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bpy/ops/particle.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bpy/ops/particle.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
def brush_edit(stroke=None): '''Apply a stroke of brush to the particles :param stroke: Stroke :type stroke: bpy_prop_collection of OperatorStrokeElement, (optional) ''' pass def connect_hair(all=False): '''Connect hair to the emitter mesh :param all: All hair, Connect all hair syste...
21.472492
228
0.664205
939fde4274d50a5d0e867a0f4f3cbb632469b3d9
1,395
py
Python
tests/test_utils.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
tests/test_utils.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
tests/test_utils.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
from aws_xray_sdk.ext.util import to_snake_case, get_hostname, strip_url UNKNOWN_HOST = "UNKNOWN HOST" def test_to_snake_case(): s1 = to_snake_case('Bucket') assert s1 == 'bucket' s2 = to_snake_case('TableName') assert s2 == 'table_name' s3 = to_snake_case('ACLName') assert s3 == 'acl_name'...
25.363636
78
0.666667
93a02ac335f8738219808bf697e51e2a494c25db
836
py
Python
experiments/2013-09-26.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
experiments/2013-09-26.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
experiments/2013-09-26.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
Experiment(description='We need to go deeper - and restarts revised - as well as smaller restart sd', data_dir='../data/tsdlr/', max_depth=10, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=2, ...
30.962963
101
0.520335
93a02c34ec5c1fdd2ee18b03dd32d32a1c8e52df
652
py
Python
chat_capture/chat_capture.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
chat_capture/chat_capture.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
chat_capture/chat_capture.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
import pytchat list_dic = "F:/(member_lists)/" outf = open(list_dic + "gura_members2.csv","w", encoding="utf-8") video_id = 'hD6LwW7Zkf8' chat = pytchat.create(video_id=video_id) member_list = {} try: while chat.is_alive(): for c in chat.get().items: if c.author.badgeUrl: memb...
28.347826
65
0.625767
93a0404c0bfb6cf568dc966768476c95d5b5798f
95,437
py
Python
openpype/modules/default_modules/ftrack/event_handlers_server/event_sync_to_avalon.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
44
2019-03-19T04:56:35.000Z
2021-04-23T12:05:08.000Z
openpype/modules/default_modules/ftrack/event_handlers_server/event_sync_to_avalon.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
655
2020-03-17T15:10:21.000Z
2021-04-23T18:22:52.000Z
openpype/modules/default_modules/ftrack/event_handlers_server/event_sync_to_avalon.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
21
2019-03-19T04:56:38.000Z
2021-04-23T09:10:59.000Z
import os import collections import copy import json import queue import time import datetime import atexit import traceback from bson.objectid import ObjectId from pymongo import UpdateOne import arrow import ftrack_api from avalon import schema from avalon.api import AvalonMongoDB from openpype_modules.ftrack.lib...
37.178418
79
0.531471
93a043f13e7bc4f68157e2abd6803fb3c20c5a7b
7,947
py
Python
limix/data/bed_reader.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/data/bed_reader.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
limix/data/bed_reader.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
import scipy as sp import pandas as pd import copy from limix.io import read_plink from sklearn.preprocessing import Imputer class BedReader: r""" Class to read and make queries on plink binary files. Parameters ---------- prefix : str Path prefix to the set of PLINK files. Examples ...
28.793478
87
0.497043
93a07451408f1eb787332828dd38ca6b14becc42
528
py
Python
core/migrations/0008_user_client_key.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
1
2018-02-17T08:46:11.000Z
2018-02-17T08:46:11.000Z
core/migrations/0008_user_client_key.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
core/migrations/0008_user_client_key.py
KraftSoft/letsgo-back
24159eee1a510e9ae218a0262bc6a51618414b33
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-05-02 20:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20170416_1323'), ] operations = [ migrations.AddField( ...
24
95
0.619318
93a0842fe4775f9d10b9859ee1ac349ad847c0f8
2,389
py
Python
alipay/aop/api/response/AlipayFundJointaccountFundOrderQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayFundJointaccountFundOrderQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayFundJointaccountFundOrderQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayFundJointaccountFundOrderQueryResponse(AlipayResponse): def __init__(self): super(AlipayFundJointaccountFundOrderQueryResponse, self).__init__() self._amount = ...
27.77907
117
0.645877
93a09125535bab55424e063de1ef06e3dbb4f610
1,219
py
Python
xos/tosca/resources/hpchealthcheck.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/tosca/resources/hpchealthcheck.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/tosca/resources/hpchealthcheck.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
import importlib import os import pdb import sys import tempfile sys.path.append("/opt/tosca") from translator.toscalib.tosca_template import ToscaTemplate import pdb from services.hpc.models import HpcHealthCheck, HpcService from xosresource import XOSResource class XOSHpcHealthCheck(XOSResource): provides = "t...
30.475
139
0.740771
93a09d68518a4a47ef89f7884aecb9216dbbaf62
6,112
py
Python
userbot/__init__.py
toxic-dev0/my-userbot
edd6db76059bad41778a350010f446bb851a2607
[ "MIT" ]
1
2020-05-17T21:05:31.000Z
2020-05-17T21:05:31.000Z
userbot/__init__.py
kenjibot/catuserbot
61e6ee22e5e2f8cfd9cfcc1757627a38e0e49abd
[ "MIT" ]
null
null
null
userbot/__init__.py
kenjibot/catuserbot
61e6ee22e5e2f8cfd9cfcc1757627a38e0e49abd
[ "MIT" ]
null
null
null
import os import sys from telethon.sessions import StringSession from telethon import TelegramClient from var import Var from pylast import LastFMNetwork, md5 from logging import basicConfig, getLogger, INFO, DEBUG from distutils.util import strtobool as sb from pySmartDL import SmartDL from dotenv import load_dotenv i...
33.217391
92
0.689954
93a0a33da004c9a2fa5c5b8268606e51b3bf5061
2,157
py
Python
test_projects/PathControlY1Interface/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
test_projects/PathControlY1Interface/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
test_projects/PathControlY1Interface/main.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
"""The test project for the PathControlY1Interface class. Command examples: $ python test_projects/PathControlY1Interface/main.py """ import sys sys.path.append('./') import os from types import ModuleType from typing_extensions import TypedDict import apysc as ap from apysc._file import file_util...
25.678571
73
0.668057
93a0bab086fe7d0de1de209d41edd3d4fd6061b1
289
py
Python
plugins/__init__.py
tonydo95/udacity-capstone-project
f3d0d9068998b734b76dae894265459102e90936
[ "Apache-2.0" ]
null
null
null
plugins/__init__.py
tonydo95/udacity-capstone-project
f3d0d9068998b734b76dae894265459102e90936
[ "Apache-2.0" ]
null
null
null
plugins/__init__.py
tonydo95/udacity-capstone-project
f3d0d9068998b734b76dae894265459102e90936
[ "Apache-2.0" ]
null
null
null
from __future__ import division, absolute_import, print_function from airflow.plugins_manager import AirflowPlugin import operators # Defining the plugin class class CapstonePlugin(AirflowPlugin): name = "capstone_plugin" operators = [ operators.UploadToS3Operator ]
24.083333
64
0.782007
93a106ed5b941d88944f61e708ca5f8e4d458409
2,970
py
Python
next/apps/SimpleTargetManager.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
next/apps/SimpleTargetManager.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
next/apps/SimpleTargetManager.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
2
2017-06-07T16:03:16.000Z
2021-03-01T08:48:27.000Z
import next.utils as utils class SimpleTargetManager(object): def __init__(self,db): self.bucket_id = 'targets' self.db = db def set_targetset(self, exp_uid, targetset): """ Update the default target docs in the DB if a user uploads a target set. """ for i,targe...
42.428571
118
0.585859
93a14c2f2c2fe54d887b99b6b820c0f421a33684
371
py
Python
tasks/helpers.py
alexykot/brick-parser-poc
6e75548fdad022d1f747c8ab51b3654fce4533e9
[ "MIT" ]
null
null
null
tasks/helpers.py
alexykot/brick-parser-poc
6e75548fdad022d1f747c8ab51b3654fce4533e9
[ "MIT" ]
null
null
null
tasks/helpers.py
alexykot/brick-parser-poc
6e75548fdad022d1f747c8ab51b3654fce4533e9
[ "MIT" ]
null
null
null
def send_notification(notification_message): try: import notify2 except ImportError: print('Desktop notification disabled. Run `pipenv install --dev`.') else: message_title = 'application {appname}'.format(appname=APP_NAME) notify2.init(message_title) notify2.Notifi...
30.916667
75
0.700809
93a14d53ea5babb26a660a07239973fde69a5e50
2,728
py
Python
pyanca/IterativeMeansAlign.py
ChakraLabPitt/pyanca
93fad98637e4578f5586bccb69607208a42c7929
[ "BSD-3-Clause" ]
null
null
null
pyanca/IterativeMeansAlign.py
ChakraLabPitt/pyanca
93fad98637e4578f5586bccb69607208a42c7929
[ "BSD-3-Clause" ]
null
null
null
pyanca/IterativeMeansAlign.py
ChakraLabPitt/pyanca
93fad98637e4578f5586bccb69607208a42c7929
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import MDAnalysis import numpy import numpy.linalg import math from pyanca import KabschAlign import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import logging log = logging.getLogger('main.IterativeMeansAlign'); l...
28.715789
97
0.664589
93a15e4d83f803c8b68fc8b9572b1980b8840010
695
py
Python
missioncontrol/home/migrations/0013_cached_access_unique_bucket_id.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
7
2019-03-29T06:05:08.000Z
2021-07-29T07:49:49.000Z
missioncontrol/home/migrations/0013_cached_access_unique_bucket_id.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
18
2019-02-19T05:59:34.000Z
2021-05-18T03:05:30.000Z
missioncontrol/home/migrations/0013_cached_access_unique_bucket_id.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
3
2019-01-31T02:07:38.000Z
2019-08-04T14:52:02.000Z
# Generated by Django 2.1.4 on 2019-01-15 04:13 from django.db import migrations, models def drop_duplicates(apps, schema_editor): CachedAccess = apps.get_model("home", "CachedAccess") for row in CachedAccess.objects.all(): if CachedAccess.objects.filter(bucket_hash=row.bucket_hash).count() > 1: ...
27.8
80
0.663309
93a167221ba4790852648095fb59fd8f5d063606
9,453
py
Python
grand-features.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
null
null
null
grand-features.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
null
null
null
grand-features.py
nicapotato/KaggleNotebooks
5fea648e99a92d21710c635db48c808c3ece82b3
[ "MIT" ]
1
2021-12-03T11:28:09.000Z
2021-12-03T11:28:09.000Z
# Classification CatBoost for Home Credit Default Risk Kaggle Competition # By Nick Brooks, May 2018 [Other Kaggler's work also used, citation throughout] # https://www.kaggle.com/c/home-credit-default-risk import time notebookstart = time.time() # General import numpy as np # linear algebra import pandas as pd # dat...
50.281915
156
0.709933
93a16910d9783273af770ed712d492646a34daab
1,351
py
Python
scan/test/scan/mock_module.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/test/scan/mock_module.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/test/scan/mock_module.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
36.513514
79
0.507032
93a16b7836c1c131a94d5a88e9e1acee463a5e3a
30
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Odyssey/OdysseyEventScreen/odyssey_event_screen.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Odyssey/OdysseyEventScreen/odyssey_event_screen.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Odyssey/OdysseyEventScreen/odyssey_event_screen.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class OdysseyEventScreen: pass
30
30
0.9
93a1971776006631bd699739bfda591dd64b5775
6,334
py
Python
chapter_3_featurization/select_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_3_featurization/select_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_3_featurization/select_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
36.825581
121
0.659299
93a1bfdb06fa4a6138367514eea2401b8e0bfdd1
16,141
py
Python
aldryn_newsblog/tests/test_plugins.py
PeterW-LWL/aldryn-newsblog
810609b2aa2f537376817fd4b279845f6ca6a71f
[ "BSD-3-Clause" ]
1
2020-05-13T06:59:23.000Z
2020-05-13T06:59:23.000Z
aldryn_newsblog/tests/test_plugins.py
PeterW-LWL/aldryn-newsblog
810609b2aa2f537376817fd4b279845f6ca6a71f
[ "BSD-3-Clause" ]
4
2020-10-20T12:06:42.000Z
2021-09-20T10:02:32.000Z
aldryn_newsblog/tests/test_plugins.py
PeterW-LWL/aldryn-newsblog
810609b2aa2f537376817fd4b279845f6ca6a71f
[ "BSD-3-Clause" ]
1
2020-10-20T12:08:58.000Z
2020-10-20T12:08:58.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import time from django.core.cache import cache from django.urls import reverse from django.utils.encoding import force_text from django.utils.translation import override from cms import api from cms.models import StaticPlaceholder imp...
38.987923
95
0.660182
93a1fa40c511e67e768e55282c7863cc47767e99
246
py
Python
dalmongo/configuration.py
RobertoPrevato/Flask-three-template
00b7dd6dd299a1fd91f08f60007fe09235216096
[ "MIT" ]
7
2015-11-19T20:45:16.000Z
2020-04-22T22:18:34.000Z
dalmongo/configuration.py
RobertoPrevato/Flask-three-template
00b7dd6dd299a1fd91f08f60007fe09235216096
[ "MIT" ]
null
null
null
dalmongo/configuration.py
RobertoPrevato/Flask-three-template
00b7dd6dd299a1fd91f08f60007fe09235216096
[ "MIT" ]
2
2016-10-08T20:09:06.000Z
2020-04-22T22:18:36.000Z
# MongoDB configurations # Settings of the main application db # NB: the database is automatically created by mongo, if it doesn't exist - no need to create it by hand MONGODB_NAME = "flaskthreedb" MONGODB_HOST = "localhost" MONGODB_PORT = 27017
35.142857
104
0.780488
93a205d2b226ed50909c3b6110378129f1ef742d
1,305
py
Python
registration/views.py
dimagi/rapidsms-contrib-apps-dev
025f9d4cba7da59bc98d16a7d12b00c7b25c571f
[ "BSD-3-Clause" ]
null
null
null
registration/views.py
dimagi/rapidsms-contrib-apps-dev
025f9d4cba7da59bc98d16a7d12b00c7b25c571f
[ "BSD-3-Clause" ]
null
null
null
registration/views.py
dimagi/rapidsms-contrib-apps-dev
025f9d4cba7da59bc98d16a7d12b00c7b25c571f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 from django.template import RequestContext from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from rapidsms.forms import ContactForm from rapidsms.models import ...
27.1875
79
0.616092
93a231a106e256594748ddddc546555abe8e303b
2,881
py
Python
src/BribeNet/bribery/temporal/budgetNodeBriber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/budgetNodeBriber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/budgetNodeBriber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
import sys import numpy as np from BribeNet.bribery.temporal.action.singleBriberyAction import SingleBriberyAction from BribeNet.bribery.temporal.briber import TemporalBriber class BudgetNodeBriber(TemporalBriber): def __init__(self, u0: float, k: float = 0.1, b: float = 0.5): """ Constructor ...
45.015625
123
0.655675
93a25fc0ed7e40711a698d6376bed66d46011d3d
2,579
py
Python
dispatcher.py
eyalabraham/nixie-tube-clock
a7a3f7918c83235fc25489b1ebc4d34bcdb49ad4
[ "MIT" ]
null
null
null
dispatcher.py
eyalabraham/nixie-tube-clock
a7a3f7918c83235fc25489b1ebc4d34bcdb49ad4
[ "MIT" ]
null
null
null
dispatcher.py
eyalabraham/nixie-tube-clock
a7a3f7918c83235fc25489b1ebc4d34bcdb49ad4
[ "MIT" ]
null
null
null
# # dispatcher.py # # Dispatcher class that encapsulates automation and invocation of registered # functions at predefined time intervals. # This class is intended to be simple and no attempt was made at timing accuracy. # Functions will be called if the predefined time interval is greater or equal # to the t...
42.278689
117
0.694455
93a279aad6232df22760d78bc0e34d4ce44ad928
7,175
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/target_pools/create.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/target_pools/create.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/target_pools/create.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
41
80
0.701045
93a27e931d3fcd204e7710cf32e78ef3a0246a76
27
py
Python
btd6_memory_info/generated/Assets/Scripts/Simulation/Objects/BehaviorMutator/behavior_mutator.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Objects/BehaviorMutator/behavior_mutator.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Objects/BehaviorMutator/behavior_mutator.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class BehaviorMutator: pass
27
27
0.888889
93a2a0bdf197f8ef32faf77fa35f9c6502ebca90
3,975
py
Python
examples/conversions/vessel_compositions.py
ofgulban/compoda
5d71732a0827db43a21b9a62339626816416d560
[ "BSD-3-Clause" ]
8
2018-09-20T08:48:28.000Z
2021-01-12T12:51:35.000Z
examples/conversions/vessel_compositions.py
ofgulban/compoda
5d71732a0827db43a21b9a62339626816416d560
[ "BSD-3-Clause" ]
1
2019-01-27T12:59:59.000Z
2019-01-27T13:00:00.000Z
examples/conversions/vessel_compositions.py
ofgulban/compoda
5d71732a0827db43a21b9a62339626816416d560
[ "BSD-3-Clause" ]
null
null
null
"""(Work in progress...) Plot compositions of MRI data.""" from matplotlib.colors import LogNorm import matplotlib.pyplot as plt import matplotlib.patches as patches import os import numpy as np import compoda.core as coda from compoda.utils import truncate_range, scale_range from nibabel import load, save, Nifti1Imag...
30.343511
74
0.681258
93a2c282bfb179bb14d7f67d7afead93b84f4e72
28,592
py
Python
cyclonedx/output/xml.py
Kravcu/cyclonedx-python-lib
d4007bd5986173eb2645eebcdd2c6405150f1456
[ "Apache-2.0" ]
15
2021-09-08T19:01:48.000Z
2022-02-15T17:42:02.000Z
cyclonedx/output/xml.py
Kravcu/cyclonedx-python-lib
d4007bd5986173eb2645eebcdd2c6405150f1456
[ "Apache-2.0" ]
124
2021-09-14T16:54:02.000Z
2022-03-24T15:23:46.000Z
cyclonedx/output/xml.py
Kravcu/cyclonedx-python-lib
d4007bd5986173eb2645eebcdd2c6405150f1456
[ "Apache-2.0" ]
10
2021-09-24T11:35:14.000Z
2022-01-28T01:56:06.000Z
# encoding: utf-8 # This file is part of CycloneDX Python Lib # # 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 applic...
50.338028
120
0.646055
93a2cef50d1c8bfc0c47069b76ff20573dc1aa45
6,976
py
Python
softlearning/scripts/console_scripts.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
920
2018-12-11T16:22:23.000Z
2022-03-28T08:17:07.000Z
softlearning/scripts/console_scripts.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
133
2018-12-09T08:08:33.000Z
2022-02-28T12:43:14.000Z
softlearning/scripts/console_scripts.py
limash/softlearning
aaa9d8c5cc3ba4bf459eb5a1a7469b3ae3b4f94f
[ "MIT" ]
241
2018-12-03T21:35:24.000Z
2022-03-20T06:24:45.000Z
"""A command line interface that exposes softlearning examples to user. This package exposes the functions in examples.instrument module to the user through a cli, which allows seamless runs of examples in different modes (e.g. locally, in google compute engine, or ec2). There are two types of cli commands in this f...
32.90566
79
0.744839
93a3386fd3726745825e31216441e50d830205ac
524
py
Python
oculy/plotting/__init__.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
null
null
null
oculy/plotting/__init__.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
null
null
null
oculy/plotting/__init__.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
1
2022-03-21T12:14:19.000Z
2022-03-21T12:14:19.000Z
# -------------------------------------------------------------------------------------- # Copyright 2020 by Oculy Authors, see git history for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # -------------------------------...
37.428571
88
0.5
93a34454bb5b65f53e7147fa362f517d083925d5
667
py
Python
openwisp_utils/admin_theme/apps.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
null
null
null
openwisp_utils/admin_theme/apps.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
null
null
null
openwisp_utils/admin_theme/apps.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from . import settings as app_settings from .checks import admin_theme_settings_checks class OpenWispAdminThemeConfig(AppConfig): app_label = 'openwisp_admin' name = 'openwisp_utils.admin_theme' def ready(self): admin_theme_settings_checks(self) # monkey...
35.105263
75
0.746627
93a36b8d35029b25f1c7049f5c3307162c5651d9
8,681
py
Python
svhn/adversarial_networks/train_eat_standard_svhn.py
whxbergkamp/RobustDL_GAN
a622faf1c7d5e803bca3091dd035c616b5736bd7
[ "MIT" ]
22
2019-02-27T12:37:39.000Z
2021-04-19T04:08:36.000Z
svhn/adversarial_networks/train_eat_standard_svhn.py
whxbergkamp/RobustDL_GAN
a622faf1c7d5e803bca3091dd035c616b5736bd7
[ "MIT" ]
3
2019-06-28T21:51:04.000Z
2021-03-19T08:08:50.000Z
svhn/adversarial_networks/train_eat_standard_svhn.py
whxbergkamp/RobustDL_GAN
a622faf1c7d5e803bca3091dd035c616b5736bd7
[ "MIT" ]
4
2019-04-07T08:18:00.000Z
2021-12-22T00:45:19.000Z
# Train EAT model import tensorflow as tf import random # construct graph for testing on original examples def build_test(discriminator, test_image_placeholder, test_label_placeholder, config): x = test_image_placeholder x = 2.0*x - 1.0 y = test_label_placeholder d_out = discriminator(x) predictio...
36.628692
129
0.703375
93a382231520516e6c91ae4bb8697e4fce5ab428
1,528
py
Python
wargame/GUI/gridmanager.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
1
2020-12-01T20:30:27.000Z
2020-12-01T20:30:27.000Z
wargame/GUI/gridmanager.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
wargame/GUI/gridmanager.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
"""gridmanager This module ilustrates how widgets can be placed using the grid layout. """ import sys if sys.version_info < (3, 0): from Tkinter import Tk, Label, SUNKEN, RAISED, Frame else: from tkinter import Tk, Label, SUNKEN, RAISED, Frame # Create mainwindow (root, a Tk instance) mainwin = Tk() # Creat...
35.534884
75
0.700262
93a38f18740d890d8456443ac58d95edda9f0408
42,365
py
Python
numba/datamodel/models.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
numba/datamodel/models.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
numba/datamodel/models.py
sighingnow/numba
ae88a6ff4a41f76e50672a1af9d9aa66c205b51b
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function, absolute_import from functools import partial from llvmlite import ir from numba import cgutils, types, numpy_support from .registry import register_default class DataModel(object): """ DataModel describe how a FE type is represented in the LLVM IR at different co...
32.21673
83
0.638452
93a394fcf4941194761e9f15e45784894b1e819c
10,158
py
Python
ta/volatility.py
DandiestWaffle/ta-1
482aaa8defbe45028e1d1dc8b2adc582b8ba09b5
[ "MIT" ]
null
null
null
ta/volatility.py
DandiestWaffle/ta-1
482aaa8defbe45028e1d1dc8b2adc582b8ba09b5
[ "MIT" ]
null
null
null
ta/volatility.py
DandiestWaffle/ta-1
482aaa8defbe45028e1d1dc8b2adc582b8ba09b5
[ "MIT" ]
1
2020-10-28T20:42:02.000Z
2020-10-28T20:42:02.000Z
# -*- coding: utf-8 -*- """ .. module:: volatility :synopsis: Volatility Indicators. .. moduleauthor:: Dario Lopez Padial (Bukosabino) """ import pandas as pd def average_true_range(high, low, close, n=14, fillna=False): """Average True Range (ATR) The indicator provide an indication of the degree of pr...
27.454054
102
0.630242
93a397bb3886940ecbdf768041a85cb6aa31a4be
179
py
Python
tests/test_ipyhealth.py
mereldawu/ipyhealth
0f2135e65ea1a0071a1397c88c22bc301584e51a
[ "MIT" ]
5
2020-06-14T07:34:37.000Z
2021-04-15T12:01:19.000Z
tests/test_ipyhealth.py
mereldawu/ipyhealth
0f2135e65ea1a0071a1397c88c22bc301584e51a
[ "MIT" ]
2
2020-06-14T09:47:58.000Z
2020-07-24T21:58:56.000Z
tests/test_ipyhealth.py
mereldawu/ipyhealth
0f2135e65ea1a0071a1397c88c22bc301584e51a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `ipyhealth` package.""" # import pytest # from click.testing import CliRunner # from ipyhealth import ipyhealth # from ipyhealth import cli
16.272727
37
0.73743
93a3aaa8b103497da508d9b673dcdc6376276fd4
889
py
Python
gaiming.py
coreglass/uap
595b740b6ed554d81d217b90815387ba836264d2
[ "MIT" ]
null
null
null
gaiming.py
coreglass/uap
595b740b6ed554d81d217b90815387ba836264d2
[ "MIT" ]
null
null
null
gaiming.py
coreglass/uap
595b740b6ed554d81d217b90815387ba836264d2
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np import math def psnr1(target, ref): target_data = np.array(target, dtype=np.float64) ref_data = np.array(ref, dtype=np.float64) # 直接相减,求差值 diff = ref_data - target_data # 按第三个通道顺序把三维矩阵拉平 diff = diff.flatten('C') # 计算MSE值 rmse = math...
26.939394
78
0.563555
93a3b59f1df62218e75e6cb919349614fc12b39c
3,000
py
Python
pangadfs/base.py
sansbacon/pangadfs
0a93ea0872f4dbb57be159653d202e01dce7047c
[ "MIT" ]
7
2020-10-22T08:33:31.000Z
2021-12-28T05:07:31.000Z
pangadfs/base.py
sansbacon/pangadfs
0a93ea0872f4dbb57be159653d202e01dce7047c
[ "MIT" ]
12
2020-10-23T19:06:30.000Z
2021-05-20T16:29:51.000Z
pangadfs/base.py
sansbacon/pangadfs
0a93ea0872f4dbb57be159653d202e01dce7047c
[ "MIT" ]
null
null
null
# gadfs/gadfs/base.py # -*- coding: utf-8 -*- # Copyright (C) 2020 Eric Truett # Licensed under the MIT License import abc import logging class CrossoverBase(metaclass=abc.ABCMeta): """Base class for crossover plugins.""" def __init__(self): logging.getLogger(__name__).addHandler(logging.NullHandler...
25.423729
69
0.669667
93a3d2d919c0772fb4370403adc482f47e698815
1,455
py
Python
setup.py
Develatio/django-tradukoj
1548379d7952c84124b08534902750ad256b48bb
[ "BSD-3-Clause" ]
7
2019-06-05T11:05:05.000Z
2022-02-23T20:35:28.000Z
setup.py
Develatio/django-tradukoj
1548379d7952c84124b08534902750ad256b48bb
[ "BSD-3-Clause" ]
null
null
null
setup.py
Develatio/django-tradukoj
1548379d7952c84124b08534902750ad256b48bb
[ "BSD-3-Clause" ]
2
2020-03-04T11:40:56.000Z
2020-04-17T18:23:06.000Z
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() setup( name='django-tradukoj', python_requires='>=3.6.0', version='1.2.4', packages=find_packages(exclude=['tests*']), description='A django...
38.289474
79
0.641237
93a3d46cfcec074acfafd1708f6cbcf614de256f
1,433
py
Python
env/Lib/site-packages/azure/servicemanagement/__init__.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/servicemanagement/__init__.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/servicemanagement/__init__.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://w...
42.147059
76
0.712491
93a3e4b4aecfd2fe97fc3841869fac85ae214048
20,575
py
Python
models/DeepFit.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
87
2020-07-21T09:09:03.000Z
2022-03-28T09:29:22.000Z
models/DeepFit.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
7
2021-01-09T21:44:20.000Z
2021-11-19T08:08:09.000Z
models/DeepFit.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
19
2020-08-09T03:35:24.000Z
2022-03-25T07:00:41.000Z
import torch import torch.nn as nn import torch.nn.parallel import torch.utils.data import numpy as np import torch.nn.functional as F import normal_estimation_utils import ThreeDmFVNet def fit_Wjet(points, weights, order=2, compute_neighbor_normals=False): """ Fit a "n-jet" (n-order truncated Taylor expansio...
43.407173
229
0.575067
93a41cd2f394442fbebf3de43cf8e10035098a9a
6,242
py
Python
BSP/Simulator/Hardware/MotorController.py
lhr-solar/Controls
ca0874141968864fb9a6593e948f8992530e5f3b
[ "MIT" ]
3
2020-05-29T19:46:31.000Z
2022-01-16T20:33:01.000Z
BSP/Simulator/Hardware/MotorController.py
lhr-solar/Controls
ca0874141968864fb9a6593e948f8992530e5f3b
[ "MIT" ]
135
2020-05-30T02:28:49.000Z
2022-03-30T19:46:06.000Z
BSP/Simulator/Hardware/MotorController.py
lhr-solar/Controls
ca0874141968864fb9a6593e948f8992530e5f3b
[ "MIT" ]
1
2022-03-13T21:53:42.000Z
2022-03-13T21:53:42.000Z
# Copyright (c) 2020 UT Longhorn Racing Solar import csv import os import fcntl import CAN import math # Path of file file = "BSP/Simulator/Hardware/Data/CAN.csv" def sendTouC(): """Simulates motors sending CAN messages back to the uC Returns: CAN ID of the last message sent """ currentID = Ca...
28.372727
92
0.649151
93a42e6b8dd28dcfc77cc3a6b2562058b5d2ac8d
1,121
py
Python
130.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
130.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
130.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
''' @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt ''' class Solution: def solve(self, B: List[List[str]]) -> None: """ Do not return anything, modify board in-place instead. """ if not B:return B ax, c, r = [1,0,-1...
32.970588
86
0.416592
93a4327f0f7b834766aba57b4821110450fa6908
3,204
py
Python
sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ FILE:...
39.555556
103
0.673221
93a436733913f059540d0e048b1f9fac526a2798
390
py
Python
Exercicios do curso em video/pythonProject/pythonexercicios/ex036.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
Exercicios do curso em video/pythonProject/pythonexercicios/ex036.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
Exercicios do curso em video/pythonProject/pythonexercicios/ex036.py
HiCosta/Exercicios-de-Python
1dabbe8764f6742aba1d62a9ea14705534aaf6f7
[ "MIT" ]
null
null
null
casa = float(input('Qual o valor da casa? R$ ')) salario = float(input('Qual o seu salário? R$ ')) anos = int(input('Em quantos anos quer pagar a casa? ')) parcela = casa / (anos * 12) if parcela > (30 * salario / 100): print('Infelizmente você não poderá financiar essa casa, sinto muito!') else: print('Você fi...
43.333333
87
0.669231
93a44131e8c64d87730cd2c0165b85e8ff0f83a6
16,779
py
Python
nova/virt/firewall.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/virt/firewall.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/virt/firewall.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2011 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in complianc...
38.572414
79
0.603075
93a44712b9e38a28e07ce5a48f13638fbd2389ad
519
py
Python
fact/looping02c.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
fact/looping02c.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
fact/looping02c.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Alta3 Research | RZFeeser For - Looping across a file opened with 'with' while also being gentle on memory consumption.""" # open file in read mode with open("dnsservers.txt", "r") as dnsfile: # indent to keep the dnsfile object open # loop across the lines in the file ...
32.4375
80
0.676301
93a462753fd6a3b75d706227ce0e2b7612b9cc5f
3,879
py
Python
step_4/Code/merger.py
yogeshchellappa/cs839DataScience
e51a553b34500b7cc14144d2125f70549441f589
[ "MIT" ]
null
null
null
step_4/Code/merger.py
yogeshchellappa/cs839DataScience
e51a553b34500b7cc14144d2125f70549441f589
[ "MIT" ]
1
2018-02-19T08:30:58.000Z
2018-02-20T21:46:46.000Z
step_4/Code/merger.py
yogeshchellappa/cs839DataScience
e51a553b34500b7cc14144d2125f70549441f589
[ "MIT" ]
null
null
null
def getOlderDate(time1, time2): """ Helper function to get the older of the 2 dates, time1 and time2. """ # We have imputed missing day, month or year with a 0; Replacing the 0 with 1 here time1 = '-'.join(index if index != '0' else '1' for index in time1.split('-')) time2 = '-'.join(index if in...
41.709677
120
0.533127
93a463acc1efeb32f7c8af7a8b55061992958494
178
py
Python
stests/workers/daemon_1.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/workers/daemon_1.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/workers/daemon_1.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
from stests.workers.utils import setup_daemon from stests.workers.utils import start_orchestration # Setup. setup_daemon() # Start workload generators. start_orchestration()
16.181818
52
0.820225
93a475094a0e4247cf76324c84d88d192c4df9b7
848
py
Python
chris_cunningham/day18.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
chris_cunningham/day18.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
chris_cunningham/day18.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
from pyparsing import infixNotation, oneOf, opAssoc, pyparsing_common, ParseResults expression_strs = open("inputs/day18.txt", 'r').read().splitlines() parser_a = infixNotation(pyparsing_common.integer, [(oneOf('* +'), 2, opAssoc.LEFT)]) parser_b = infixNotation(pyparsing_common.integer, [(oneOf('+'), 2, opAssoc.LEFT...
32.615385
114
0.64033
93a47e2da218437fe591776adf3562935cff78e4
8,540
py
Python
omnipath/_core/utils/_options.py
TheAustinator/omnipath
c0d61216e3a7d95cdb098ac025f08a9b09e0f8fe
[ "MIT" ]
13
2020-12-02T15:47:54.000Z
2022-03-08T02:39:55.000Z
omnipath/_core/utils/_options.py
TheAustinator/omnipath
c0d61216e3a7d95cdb098ac025f08a9b09e0f8fe
[ "MIT" ]
15
2020-11-10T13:03:09.000Z
2022-03-29T08:51:38.000Z
omnipath/_core/utils/_options.py
TheAustinator/omnipath
c0d61216e3a7d95cdb098ac025f08a9b09e0f8fe
[ "MIT" ]
2
2020-11-06T23:08:19.000Z
2022-03-28T21:46:33.000Z
from typing import Any, Union, ClassVar, NoReturn, Optional from pathlib import Path from urllib.parse import urlparse import configparser import attr from omnipath.constants import License from omnipath._core.cache._cache import Cache, FileCache, NoopCache, MemoryCache from omnipath.constants._pkg_constants import D...
32.471483
113
0.622365
93a4959ae4dfbe2d4ce2293a31c8a417c3a72575
2,110
py
Python
qsiprep/workflows/recon/converters.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
1
2021-03-19T02:09:26.000Z
2021-03-19T02:09:26.000Z
qsiprep/workflows/recon/converters.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
null
null
null
qsiprep/workflows/recon/converters.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
null
null
null
""" Converting between file formats ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autofunction:: init_mif_to_fibgz_wf .. autofunction:: init_fibgz_to_mif_wf """ import nipype.pipeline.engine as pe import nipype.interfaces.utility as niu import logging from qsiprep.interfaces.converters import FODtoFIBGZ from .interchange imp...
34.032258
86
0.672986
93a4989ddda960344f30caf60b32eea23cea9335
9,489
py
Python
examples/main_horovod.py
tcl326/horovod
732f36eb5e4bc70f68e30fac58cefa759f3a5f1b
[ "Apache-2.0" ]
null
null
null
examples/main_horovod.py
tcl326/horovod
732f36eb5e4bc70f68e30fac58cefa759f3a5f1b
[ "Apache-2.0" ]
null
null
null
examples/main_horovod.py
tcl326/horovod
732f36eb5e4bc70f68e30fac58cefa759f3a5f1b
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from absl import flags from absl import logging import tensorflow as tf from tensorflow.python.framework import ops from tensorflow.python.ops import variables import os, sys import time s...
35.01476
114
0.717884
93a4b84bd16bcb121e8f7ac8f00baf107622b0ff
1,260
py
Python
bflib/characters/races/base.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/characters/races/base.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/characters/races/base.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
import abc from datetime import timedelta from bflib import languages, restrictions, units from bflib.characters import specialabilities, savingthrows from bflib.keywords.items import WearLocation, WieldLocation class Race(object): __metaclass__ = abc.ABCMeta name = "" average_height = units.Feet(0) ...
25.714286
62
0.68254
93a4da97a3b0f46b65fe1c36e872b8a351b87e36
11,269
py
Python
Shapely_numpy/source/numpy/lib/tests/test_type_check.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
15
2015-01-24T09:16:17.000Z
2021-12-19T10:41:07.000Z
PokerBots_2017/Johnny/numpy/lib/tests/test_type_check.py
surgebiswas/poker
019112147a3e6c208c3846ef699fb6ec24a45c30
[ "MIT" ]
3
2020-03-24T15:38:23.000Z
2021-02-02T21:44:18.000Z
numpy/lib/tests/test_type_check.py
tacaswell/numpy
1147490663d36b05fad8dcce1e104601c2724560
[ "BSD-3-Clause" ]
5
2017-01-31T21:28:01.000Z
2021-02-23T06:38:32.000Z
from __future__ import division, absolute_import, print_function import numpy as np from numpy.compat import long from numpy.testing import ( TestCase, assert_, assert_equal, assert_array_equal, run_module_suite ) from numpy.lib.type_check import ( common_type, mintypecode, isreal, iscomplex, isposinf, isn...
30.622283
79
0.580619