hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
eae142ea1ecb1f8ff613dd717c0d305593aeab43
2,128
py
Python
src/Operators/RaycastSelect.py
paigeco/VirtualGoniometer
536e7e77fbb036ad8d777b42e751a0f3e80b8242
[ "CC0-1.0" ]
1
2021-02-22T02:53:26.000Z
2021-02-22T02:53:26.000Z
src/Operators/RaycastSelect.py
paigeco/VirtualGoniometer
536e7e77fbb036ad8d777b42e751a0f3e80b8242
[ "CC0-1.0" ]
5
2021-03-26T15:15:34.000Z
2021-06-11T20:16:00.000Z
src/Operators/RaycastSelect.py
paigeco/VirtualGoniometer
536e7e77fbb036ad8d777b42e751a0f3e80b8242
[ "CC0-1.0" ]
null
null
null
""" [ raycast select module ] """ from bpy.types import Operator import bpy from bpy import ops as O from .DoRaycast import do_raycast from . import CallbackOptions class PerformRaycastSelect(Operator): """Run a side differentiation and select the points by raycast""" bl_idname = "view3d.raycast_select_pair"...
38.690909
98
0.650846
""" [ raycast select module ] """ from bpy.types import Operator import bpy from bpy import ops as O from .DoRaycast import do_raycast from . import CallbackOptions class PerformRaycastSelect(Operator): """Run a side differentiation and select the points by raycast""" bl_idname = "view3d.raycast_select_pair"...
1,426
0
58
cb5dff93b42d21207db6a7d97bdc3e24798ca2be
230
py
Python
aiogoogletrans/__init__.py
kngxscn/aiogoogletrans
f54c895f6d76b4558f8e836b05c0a4822b532bd4
[ "MIT" ]
null
null
null
aiogoogletrans/__init__.py
kngxscn/aiogoogletrans
f54c895f6d76b4558f8e836b05c0a4822b532bd4
[ "MIT" ]
null
null
null
aiogoogletrans/__init__.py
kngxscn/aiogoogletrans
f54c895f6d76b4558f8e836b05c0a4822b532bd4
[ "MIT" ]
null
null
null
"""Free Google Translate API for Python. Translates totally free of charge.""" __all__ = 'Translator', __version__ = '3.2.1' from aiogoogletrans.client import Translator from aiogoogletrans.constants import LANGCODES, LANGUAGES
28.75
78
0.791304
"""Free Google Translate API for Python. Translates totally free of charge.""" __all__ = 'Translator', __version__ = '3.2.1' from aiogoogletrans.client import Translator from aiogoogletrans.constants import LANGCODES, LANGUAGES
0
0
0
5456ae38d1bda26af82195ff1446f184342a0712
10,236
py
Python
skyportal/tests/frontend/test_scanning_page.py
rcthomas/skyportal
28f47c97a620082b0c6df54e072ed125eab1fc4a
[ "BSD-3-Clause" ]
null
null
null
skyportal/tests/frontend/test_scanning_page.py
rcthomas/skyportal
28f47c97a620082b0c6df54e072ed125eab1fc4a
[ "BSD-3-Clause" ]
null
null
null
skyportal/tests/frontend/test_scanning_page.py
rcthomas/skyportal
28f47c97a620082b0c6df54e072ed125eab1fc4a
[ "BSD-3-Clause" ]
null
null
null
import uuid import pytest from selenium.common.exceptions import TimeoutException from skyportal.tests import api @pytest.mark.flaky(reruns=2) @pytest.mark.flaky(reruns=2) @pytest.mark.flaky(reruns=2) @pytest.mark.flaky(reruns=2) @pytest.mark.flaky(reruns=2) @pytest.mark.flaky(reruns=2)
34.698305
88
0.610297
import uuid import pytest from selenium.common.exceptions import TimeoutException from skyportal.tests import api def test_candidates_page_render(driver, user, public_candidate): driver.get(f"/become_user/{user.id}") driver.get("/candidates") driver.wait_for_xpath(f'//a[text()="{public_candidate.id}"]') ...
9,779
0
155
d6098297f81cedb892e9a2baee378708a279c2c9
1,696
py
Python
pypy/translator/backendopt/test/test_checkvirtual.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/translator/backendopt/test/test_checkvirtual.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/translator/backendopt/test/test_checkvirtual.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
from pypy.rpython.ootypesystem.ootype import ROOT, Instance, \ addMethods, meth, Meth, Void from pypy.translator.backendopt.checkvirtual import check_virtual_methods
29.241379
73
0.601415
from pypy.rpython.ootypesystem.ootype import ROOT, Instance, \ addMethods, meth, Meth, Void from pypy.translator.backendopt.checkvirtual import check_virtual_methods def test_nonvirtual(): A = Instance("A", ROOT) addMethods(A, {"foo": meth(Meth([], Void))}) check_virtual_methods() assert A._metho...
1,432
0
92
e05e2f86f5041d7af068f49abaf50767e4e372f3
33
py
Python
ARCH_FILES/modules/__init__.py
Andrew95496/hypergraze
224719eb661a4069923355930ef3b5f0aca44dde
[ "MIT" ]
null
null
null
ARCH_FILES/modules/__init__.py
Andrew95496/hypergraze
224719eb661a4069923355930ef3b5f0aca44dde
[ "MIT" ]
null
null
null
ARCH_FILES/modules/__init__.py
Andrew95496/hypergraze
224719eb661a4069923355930ef3b5f0aca44dde
[ "MIT" ]
null
null
null
from .URL_PARSER import get_text
16.5
32
0.848485
from .URL_PARSER import get_text
0
0
0
95ff0eddae9687a2a7c6b035062ae599b96de1ce
6,641
py
Python
transforms/polus-recycle-vector-plugin/src/main.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
transforms/polus-recycle-vector-plugin/src/main.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
transforms/polus-recycle-vector-plugin/src/main.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
import argparse, logging, filepattern from pathlib import Path # Initialize the logger logging.basicConfig( format="%(asctime)s - %(name)-8s - %(levelname)-8s - %(message)s", datefmt="%d-%b-%y %H:%M:%S", ) logger = logging.getLogger("main") logger.setLevel(logging.INFO) if __name__ == "__main__": # Se...
35.137566
101
0.556392
import argparse, logging, filepattern from pathlib import Path # Initialize the logger logging.basicConfig( format="%(asctime)s - %(name)-8s - %(levelname)-8s - %(message)s", datefmt="%d-%b-%y %H:%M:%S", ) logger = logging.getLogger("main") logger.setLevel(logging.INFO) def close_vectors(vectors): if isi...
4,711
0
46
ee86298212e016955fab793497037c9a177307ce
377
py
Python
LeetCode/1.two-sum.py
allen-ash/OJ
1edcfb53b81fabac9a83d01a71fd74b73c5dab07
[ "MIT" ]
null
null
null
LeetCode/1.two-sum.py
allen-ash/OJ
1edcfb53b81fabac9a83d01a71fd74b73c5dab07
[ "MIT" ]
null
null
null
LeetCode/1.two-sum.py
allen-ash/OJ
1edcfb53b81fabac9a83d01a71fd74b73c5dab07
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=1 lang=python3 # # [1] Two Sum # # @lc code=start # @lc code=end
19.842105
64
0.498674
# # @lc app=leetcode id=1 lang=python3 # # [1] Two Sum # # @lc code=start class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: mem = dict() for i, num in enumerate(nums): if target - num in mem: return [mem[target-num], i] else: ...
244
-6
48
905a81519555ef280dde1a2844d6a5be9267d82a
1,652
py
Python
app/__init__.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
1
2019-06-03T14:56:05.000Z
2019-06-03T14:56:05.000Z
app/__init__.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
3
2021-03-31T19:10:28.000Z
2021-12-13T20:03:54.000Z
app/__init__.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from config import config from config import Config as CF from utils import log bootstrap = Bootstrap() db = SQLAlchemy()
31.169811
83
0.616223
from flask import Flask from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from config import config from config import Config as CF from utils import log bootstrap = Bootstrap() db = SQLAlchemy() def create_app(config_name): app = Flask(__name__) app.config.from_object(config[conf...
1,427
0
23
91cecf87858a2bfc2dd753dbe1a29fff369d9038
10,384
py
Python
source/kernels.py
aaronpmishkin/gaussian_processes
91dafe4896f45ace99cfdb0e4dbc7ff3a1086b0d
[ "Apache-2.0" ]
7
2018-12-16T05:14:13.000Z
2021-11-19T14:49:51.000Z
source/kernels.py
aaronpmishkin/gaussian_processes
91dafe4896f45ace99cfdb0e4dbc7ff3a1086b0d
[ "Apache-2.0" ]
null
null
null
source/kernels.py
aaronpmishkin/gaussian_processes
91dafe4896f45ace99cfdb0e4dbc7ff3a1086b0d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: aaronpmishkin # @Date: 2017-07-28 21:07:21 # @Last Modified by: aaronpmishkin # @Last Modified time: 2017-08-09 13:09:35 import numpy as np from scipy.spatial.distance import cdist class RBF(): """ RBF Implementation of the radial basis function kernel. Also called the ...
35.2
99
0.561152
# -*- coding: utf-8 -*- # @Author: aaronpmishkin # @Date: 2017-07-28 21:07:21 # @Last Modified by: aaronpmishkin # @Last Modified time: 2017-08-09 13:09:35 import numpy as np from scipy.spatial.distance import cdist class RBF(): """ RBF Implementation of the radial basis function kernel. Also called the ...
672
0
53
b5717efa0f43455211ed07cd99d055ff0b823b2d
2,767
py
Python
resources/waitlist.py
WareDave/flaskRepo
92e7cee6581508f878427c5cfba20a5d839e9ea7
[ "MIT" ]
null
null
null
resources/waitlist.py
WareDave/flaskRepo
92e7cee6581508f878427c5cfba20a5d839e9ea7
[ "MIT" ]
null
null
null
resources/waitlist.py
WareDave/flaskRepo
92e7cee6581508f878427c5cfba20a5d839e9ea7
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, request from playhouse.shortcuts import model_to_dict from flask_login import current_user, login_required import models waitlists = Blueprint('waitlists', 'waitlists') print() # Index route @waitlist.route('/', methods=["GET"]) # Create route @waitlist.route('/', methods=["POS...
38.971831
142
0.676545
from flask import Blueprint, jsonify, request from playhouse.shortcuts import model_to_dict from flask_login import current_user, login_required import models waitlists = Blueprint('waitlists', 'waitlists') print() # Index route @waitlist.route('/', methods=["GET"]) def get_all_waitlists(): try: waitlist...
2,139
0
110
36b34a28d70a8996132af4708395d2bc3181b745
239
py
Python
HackerRank/pairs_difference.py
SimeonRaykov/Algorithms
6f580bb69ee5badb8550e6424bfd4a8eaca775a2
[ "MIT" ]
null
null
null
HackerRank/pairs_difference.py
SimeonRaykov/Algorithms
6f580bb69ee5badb8550e6424bfd4a8eaca775a2
[ "MIT" ]
null
null
null
HackerRank/pairs_difference.py
SimeonRaykov/Algorithms
6f580bb69ee5badb8550e6424bfd4a8eaca775a2
[ "MIT" ]
null
null
null
import itertools print(pairs_difference(2,[1, 5, 3, 4, 2]))
18.384615
48
0.619247
import itertools def pairs_difference(diff, arr): counter = 0 for pair in itertools.product(arr, repeat=2): if pair[0] - pair[1] == diff: counter+=1 return counter print(pairs_difference(2,[1, 5, 3, 4, 2]))
146
0
25
739d5df8a213533b15ecfa771bf22e96091b2ad6
1,735
py
Python
ocr/MyQLabel.py
shtiyu/pyocr
83ffd13b3e95ba174d78f84ea414322832f83a7b
[ "MIT" ]
null
null
null
ocr/MyQLabel.py
shtiyu/pyocr
83ffd13b3e95ba174d78f84ea414322832f83a7b
[ "MIT" ]
null
null
null
ocr/MyQLabel.py
shtiyu/pyocr
83ffd13b3e95ba174d78f84ea414322832f83a7b
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QLabel from PyQt5.QtCore import Qt, pyqtSignal, QTimer from PyQt5.QtGui import QPainter, QColor, QPen
26.287879
75
0.549856
from PyQt5.QtWidgets import QLabel from PyQt5.QtCore import Qt, pyqtSignal, QTimer from PyQt5.QtGui import QPainter, QColor, QPen class MyQlabel(QLabel): oksignal = pyqtSignal() def __init__(self, parent=None): super(MyQlabel, self).__init__(parent=parent) self.start = (0, 0) self.end...
1,103
652
23
70b1a3efae17962ce406fcba2c7ecbf4c8b0bf0f
37
py
Python
Autokey/CapsKeybinds/alt/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
1
2021-11-05T19:39:36.000Z
2021-11-05T19:39:36.000Z
Autokey/CapsKeybinds/alt/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
Autokey/CapsKeybinds/alt/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
keyboard.send_keys("<alt>+<page_up>")
37
37
0.72973
keyboard.send_keys("<alt>+<page_up>")
0
0
0
73dc22b154058b3ebae0cfacf372a6ddb7b5daf3
3,906
py
Python
example/mqtt/listener.py
dkmalav/tavern
e8ecab9bc876523997d61c57d572c330c08124a2
[ "MIT" ]
null
null
null
example/mqtt/listener.py
dkmalav/tavern
e8ecab9bc876523997d61c57d572c330c08124a2
[ "MIT" ]
1
2019-04-01T14:12:57.000Z
2019-04-01T14:12:57.000Z
example/mqtt/listener.py
dkmalav/tavern
e8ecab9bc876523997d61c57d572c330c08124a2
[ "MIT" ]
1
2019-01-31T16:39:51.000Z
2019-01-31T16:39:51.000Z
import json import logging import logging.config import os import sqlite3 import yaml import paho.mqtt.client as paho DATABASE = os.environ.get("DB_NAME") if __name__ == "__main__": db = get_db() with db: try: db.execute("CREATE TABLE devices_table (device_id TEXT NOT NULL, lig...
23.817073
106
0.621352
import json import logging import logging.config import os import sqlite3 import yaml import paho.mqtt.client as paho DATABASE = os.environ.get("DB_NAME") def get_client(): mqtt_client = paho.Client(transport="websockets", client_id="listener") mqtt_client.enable_logger() mqtt_client.connect_async(host...
3,177
0
207
daf6b4f7b30ce0839dfcc31c06acf5c851fbc4d0
1,378
py
Python
csc work/misc/w8/p/palindrome.py
mdnu/snake
0df9d46ab226e1b9e5da0fa697862dd81f635029
[ "MIT" ]
1
2016-10-05T21:57:20.000Z
2016-10-05T21:57:20.000Z
csc work/misc/w8/p/palindrome.py
mdnu/snake
0df9d46ab226e1b9e5da0fa697862dd81f635029
[ "MIT" ]
null
null
null
csc work/misc/w8/p/palindrome.py
mdnu/snake
0df9d46ab226e1b9e5da0fa697862dd81f635029
[ "MIT" ]
1
2020-03-19T01:43:02.000Z
2020-03-19T01:43:02.000Z
def reverse(s): ''' (str) -> str Return a reversed version of s. >>> reverse('hello') 'olleh' >>> reverse('a') 'a' ''' new = '' for i in range(len(s)): new += s[len(s) - 1 - i] return new def is_palindrome(s): ''' (str) -> bool Return True iff...
19.971014
67
0.469521
def reverse(s): ''' (str) -> str Return a reversed version of s. >>> reverse('hello') 'olleh' >>> reverse('a') 'a' ''' new = '' for i in range(len(s)): new += s[len(s) - 1 - i] return new def is_palindrome(s): ''' (str) -> bool Return True iff...
238
0
27
d5c2ff21e29cae641742586603bef5a262bc823c
30,671
py
Python
Assets/StreamingAssets/.q/Lib/site-packages/docplex/mp/tck.py
hennlo/Q-shall-not-pass
8013ce891462683eb9cfedc4ac12a1e602fc1ba8
[ "Apache-2.0" ]
null
null
null
Assets/StreamingAssets/.q/Lib/site-packages/docplex/mp/tck.py
hennlo/Q-shall-not-pass
8013ce891462683eb9cfedc4ac12a1e602fc1ba8
[ "Apache-2.0" ]
null
null
null
Assets/StreamingAssets/.q/Lib/site-packages/docplex/mp/tck.py
hennlo/Q-shall-not-pass
8013ce891462683eb9cfedc4ac12a1e602fc1ba8
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------------------------- # Source file provided under Apache License, Version 2.0, January 2004, # http://www.apache.org/licenses/ # (c) Copyright IBM Corp. 2015, 2016 # -------------------------------------------------------------------------- # gendoc: ignore imp...
39.071338
124
0.636236
# -------------------------------------------------------------------------- # Source file provided under Apache License, Version 2.0, January 2004, # http://www.apache.org/licenses/ # (c) Copyright IBM Corp. 2015, 2016 # -------------------------------------------------------------------------- # gendoc: ignore imp...
24,684
3,053
1,393
895d5c7ec5c22176fbc7bef3c30c34da72d63571
2,275
py
Python
examples/density.py
dwbullok/python-colormath
4b218effd53a52da891bbbb60661426ef194d085
[ "BSD-3-Clause" ]
1
2019-06-10T20:06:31.000Z
2019-06-10T20:06:31.000Z
examples/density.py
dwbullok/python-colormath
4b218effd53a52da891bbbb60661426ef194d085
[ "BSD-3-Clause" ]
null
null
null
examples/density.py
dwbullok/python-colormath
4b218effd53a52da891bbbb60661426ef194d085
[ "BSD-3-Clause" ]
null
null
null
""" This module shows you how to perform various kinds of density calculations. """ # Does some sys.path manipulation so we can run examples in-place. # noinspection PyUnresolvedReferences import example_config from colormath.color_objects import SpectralColor from colormath.density_standards import ANSI_STA...
40.625
79
0.712967
""" This module shows you how to perform various kinds of density calculations. """ # Does some sys.path manipulation so we can run examples in-place. # noinspection PyUnresolvedReferences import example_config from colormath.color_objects import SpectralColor from colormath.density_standards import ANSI_STA...
879
0
75
461953fe324f3ff8e9df49cd3b2a5efd8490471c
7,744
py
Python
addon_common/common/fsm.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
addon_common/common/fsm.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
addon_common/common/fsm.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
''' Copyright (C) 2021 CG Cookie https://github.com/CGCookie/retopoflow This program 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) any later v...
39.510204
121
0.545584
''' Copyright (C) 2021 CG Cookie https://github.com/CGCookie/retopoflow This program 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) any later v...
6,565
272
69
9c0404f68429c409eb8f0997baf0db54ee2504c3
1,147
py
Python
pymoira/errors.py
vasilvv/pymoira
27facba223c220bf4c55d9b7e799a2ff951eef13
[ "MIT" ]
2
2015-11-13T23:03:12.000Z
2015-12-19T02:43:20.000Z
pymoira/errors.py
vasilvv/pymoira
27facba223c220bf4c55d9b7e799a2ff951eef13
[ "MIT" ]
null
null
null
pymoira/errors.py
vasilvv/pymoira
27facba223c220bf4c55d9b7e799a2ff951eef13
[ "MIT" ]
1
2019-10-23T06:26:13.000Z
2019-10-23T06:26:13.000Z
# ## PyMoira client library ## ## This file contains the Moira-related errors. # from . import constants class BaseError(Exception): """Any exception thrown by the library is inhereted from this""" pass class ConnectionError(BaseError): """An error which prevents the client from having or continuing a m...
25.488889
82
0.67306
# ## PyMoira client library ## ## This file contains the Moira-related errors. # from . import constants class BaseError(Exception): """Any exception thrown by the library is inhereted from this""" pass class ConnectionError(BaseError): """An error which prevents the client from having or continuing a m...
247
0
31
03baf1ba8ce7c71522b48fe54bd648527baf03d1
1,489
py
Python
yahoo_fantasy_bot/tests/conftest.py
spilchen/yahoo-baseball-assistant
a2bed8059cd9201b145d83f5dca20e1b9f4c67e8
[ "MIT" ]
5
2020-03-13T09:13:08.000Z
2020-12-24T18:47:12.000Z
yahoo_fantasy_bot/tests/conftest.py
spilchen/yahoo-baseball-assistant
a2bed8059cd9201b145d83f5dca20e1b9f4c67e8
[ "MIT" ]
1
2021-01-18T12:59:12.000Z
2021-01-19T03:01:12.000Z
yahoo_fantasy_bot/tests/conftest.py
spilchen/yahoo-baseball-assistant
a2bed8059cd9201b145d83f5dca20e1b9f4c67e8
[ "MIT" ]
2
2019-11-19T21:13:52.000Z
2020-12-24T18:47:18.000Z
#!/usr/bin/python import pytest import pandas as pd import numpy as np from yahoo_fantasy_bot import roster RBLDR_COLS = ["player_id", "name", "eligible_positions", "selected_position"] RSEL_COLS = ["player_id", "name", "HR", "OBP", "W", "ERA"] @pytest.fixture @pytest.fixture @pytest.fixture
32.369565
78
0.523842
#!/usr/bin/python import pytest import pandas as pd import numpy as np from yahoo_fantasy_bot import roster RBLDR_COLS = ["player_id", "name", "eligible_positions", "selected_position"] RSEL_COLS = ["player_id", "name", "HR", "OBP", "W", "ERA"] @pytest.fixture def empty_roster(): rcont = roster.Container() ...
1,122
0
66
f91f71824a7c23cd535e3952e8e8887c71192c65
2,202
py
Python
dataStructure/graph/graph_table.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
dataStructure/graph/graph_table.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
dataStructure/graph/graph_table.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ 使用邻接表表示图 A --> B A --> C B --> C B --> D C --> D D --> C E --> F F --> C """ def find_one_path(graph, start, end, path=[]): """ 寻找graph中由start到end顶点的其中一条路径 graph: dict start: str end: str return: list """ path = p...
21.80198
96
0.536331
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ 使用邻接表表示图 A --> B A --> C B --> C B --> D C --> D D --> C E --> F F --> C """ def find_one_path(graph, start, end, path=[]): """ 寻找graph中由start到end顶点的其中一条路径 graph: dict start: str end: str return: list """ path = p...
0
0
0
2d47f11252fc21b9bd13eeb20e404a8ba4f7d27d
2,340
py
Python
MyScripts/093-Examples-2nd-Order-Free-Response.py
diegoomataix/Curso_AeroPython
c2cf71a938062bc70dbbf7c2f21e09653fa2cedd
[ "CC-BY-4.0" ]
null
null
null
MyScripts/093-Examples-2nd-Order-Free-Response.py
diegoomataix/Curso_AeroPython
c2cf71a938062bc70dbbf7c2f21e09653fa2cedd
[ "CC-BY-4.0" ]
null
null
null
MyScripts/093-Examples-2nd-Order-Free-Response.py
diegoomataix/Curso_AeroPython
c2cf71a938062bc70dbbf7c2f21e09653fa2cedd
[ "CC-BY-4.0" ]
null
null
null
###________________________ 2nd-Order-Free-Response ________________________### import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams.update({'font.size': 22}) ##__________ Functions for dumping characteristic cases __________## ##__________ 2nd order free response __________## f...
27.857143
84
0.520085
###________________________ 2nd-Order-Free-Response ________________________### import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams.update({'font.size': 22}) ##__________ Functions for dumping characteristic cases __________## def undumped(wn, x0, x_dot0, t): return x0 * np.c...
1,662
0
113
146c202e3f52d8980f75ecf22eb3b1c864ef8011
2,066
py
Python
py_headless_daw/processing/stream/mixer.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
22
2020-06-09T18:46:56.000Z
2021-09-28T02:11:42.000Z
py_headless_daw/processing/stream/mixer.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
19
2020-06-03T06:34:57.000Z
2021-01-26T07:36:17.000Z
py_headless_daw/processing/stream/mixer.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
1
2020-06-18T09:25:21.000Z
2020-06-18T09:25:21.000Z
from typing import List, Dict import numpy as np from em.platform.rendering.dto.time_interval import TimeInterval from em.platform.rendering.schema.events.event import Event from em.platform.rendering.schema.processing_strategy import ProcessingStrategy
35.016949
111
0.659729
from typing import List, Dict import numpy as np from em.platform.rendering.dto.time_interval import TimeInterval from em.platform.rendering.schema.events.event import Event from em.platform.rendering.schema.processing_strategy import ProcessingStrategy class Mixer(ProcessingStrategy): def __init__(self): ...
1,586
11
212
60a55c07741b3506a72dc3654cdf78961a3b481c
981
py
Python
doubanfm/views/help_view.py
porson/douban.fm
5c492bfef331f4f17ded1e17fdb704aefdfc0716
[ "MIT" ]
2
2017-02-08T04:08:03.000Z
2017-02-08T04:08:08.000Z
doubanfm/views/help_view.py
Free-sky/douban.fm
5c492bfef331f4f17ded1e17fdb704aefdfc0716
[ "MIT" ]
null
null
null
doubanfm/views/help_view.py
Free-sky/douban.fm
5c492bfef331f4f17ded1e17fdb704aefdfc0716
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from doubanfm.views.lrc_view import Lrc from doubanfm.dal.dal_help import HelpDal class Help(Lrc): """帮助界面"""
27.25
73
0.62895
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from doubanfm.views.lrc_view import Lrc from doubanfm.dal.dal_help import HelpDal class Help(Lrc): """帮助界面""" def __init__(self, data): super(Help, self).__init__(data) def set_dal(self): dal = HelpDal(self.data) self.c = dal.c # 主题 ...
727
0
107
8e4a944b85936c87ae204d5b7eda86c6a71e9905
392
py
Python
utilities/mappings.py
PeterA182/liteSaber
6560feb70fd23916c0188ba98a751f8fee99a18b
[ "MIT" ]
null
null
null
utilities/mappings.py
PeterA182/liteSaber
6560feb70fd23916c0188ba98a751f8fee99a18b
[ "MIT" ]
null
null
null
utilities/mappings.py
PeterA182/liteSaber
6560feb70fd23916c0188ba98a751f8fee99a18b
[ "MIT" ]
1
2019-06-28T01:19:38.000Z
2019-06-28T01:19:38.000Z
maps = { 'batting': { 'a': 'assists', 'ab': 'atbats', 'ao': 'air_outs', 'avg': 'batting_avg', 'bb': 'base_on_balls', 'cs': 'caught_stealing', 'e': 'error', 'gidp': 'ground_into_dp', 'go': 'ground_out', 'h': 'hit', 'hbp': 'hit_by...
23.058824
33
0.415816
maps = { 'batting': { 'a': 'assists', 'ab': 'atbats', 'ao': 'air_outs', 'avg': 'batting_avg', 'bb': 'base_on_balls', 'cs': 'caught_stealing', 'e': 'error', 'gidp': 'ground_into_dp', 'go': 'ground_out', 'h': 'hit', 'hbp': 'hit_by...
0
0
0
58ad1179e2800ca6f9e07afcd2f2e47a8d128a3e
2,698
py
Python
tests/test_graphtools.py
HenryKenlay/grapht
3ab2485c353f87a487ed5b70e5298121a924b56e
[ "Apache-2.0" ]
1
2020-01-06T20:22:22.000Z
2020-01-06T20:22:22.000Z
tests/test_graphtools.py
HenryKenlay/graphtools
3ab2485c353f87a487ed5b70e5298121a924b56e
[ "Apache-2.0" ]
2
2021-09-28T00:16:36.000Z
2022-02-26T06:19:10.000Z
tests/test_graphtools.py
henrykenlay/grapht
3ab2485c353f87a487ed5b70e5298121a924b56e
[ "Apache-2.0" ]
1
2020-01-28T14:12:54.000Z
2020-01-28T14:12:54.000Z
import networkx as nx import numpy as np import scipy.sparse as sp from grapht.graphtools import * G = nx.barabasi_albert_graph(100, 2) G.add_edge(0, 1) # the initial condition of BA(n, 2) means it can have pendant edges, this stops that happening G_with_pendant = G.copy() G_with_pendant.add_node(100) G_with_pendant.a...
37.472222
111
0.668273
import networkx as nx import numpy as np import scipy.sparse as sp from grapht.graphtools import * G = nx.barabasi_albert_graph(100, 2) G.add_edge(0, 1) # the initial condition of BA(n, 2) means it can have pendant edges, this stops that happening G_with_pendant = G.copy() G_with_pendant.add_node(100) G_with_pendant.a...
2,165
0
142
b0382d03044bf19f6588f3ec952aded129e7e5a7
408
py
Python
keras/layers/recurrent.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
5
2020-11-30T22:26:03.000Z
2020-12-01T22:34:25.000Z
keras/layers/recurrent.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
10
2020-12-01T22:55:29.000Z
2020-12-11T18:31:46.000Z
keras/layers/recurrent.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
15
2020-11-30T22:12:22.000Z
2020-12-09T01:32:48.000Z
"""Recurrent layers and their base classes.""" from tensorflow.keras.layers import RNN from tensorflow.keras.layers import StackedRNNCells from tensorflow.keras.layers import SimpleRNN from tensorflow.keras.layers import GRU from tensorflow.keras.layers import LSTM from tensorflow.keras.layers import SimpleRNNCell f...
31.384615
51
0.843137
"""Recurrent layers and their base classes.""" from tensorflow.keras.layers import RNN from tensorflow.keras.layers import StackedRNNCells from tensorflow.keras.layers import SimpleRNN from tensorflow.keras.layers import GRU from tensorflow.keras.layers import LSTM from tensorflow.keras.layers import SimpleRNNCell f...
0
0
0
c0976b99b5d5a1ee80c9a0cfaa2ab28e201e771f
64
py
Python
Codewars/8kyu/my-head-is-at-the-wrong-end/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/8kyu/my-head-is-at-the-wrong-end/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/8kyu/my-head-is-at-the-wrong-end/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 2.7.6
16
25
0.625
# Python - 2.7.6 def fix_the_meerkat(arr): return arr[::-1]
25
0
23
da72280ee299accaeded93bb0d38638389db5680
846
py
Python
rotate.py
lstorchi/molsuperimpose
c6129e676b287040b17a7e5d5680176e2db361b6
[ "Apache-2.0" ]
null
null
null
rotate.py
lstorchi/molsuperimpose
c6129e676b287040b17a7e5d5680176e2db361b6
[ "Apache-2.0" ]
null
null
null
rotate.py
lstorchi/molsuperimpose
c6129e676b287040b17a7e5d5680176e2db361b6
[ "Apache-2.0" ]
null
null
null
import sys import pybel filename = "" verbose = False if (len(sys.argv)) == 2: filename = sys.argv[1] else: print "usage :", sys.argv[0] , " filename.xyz" exit(1) matrix = pybel.ob.matrix3x3() matrix.RotAboutAxisByAngle(pybel.ob.vector3(1, 0, 0), 90) if verbose: for i in range(3): for j in range(3): ...
21.15
57
0.620567
import sys import pybel filename = "" verbose = False if (len(sys.argv)) == 2: filename = sys.argv[1] else: print "usage :", sys.argv[0] , " filename.xyz" exit(1) matrix = pybel.ob.matrix3x3() matrix.RotAboutAxisByAngle(pybel.ob.vector3(1, 0, 0), 90) if verbose: for i in range(3): for j in range(3): ...
0
0
0
2a563552eedff6618af603ad8844730cb87f25f6
606
py
Python
core/recc/system/user.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/system/user.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/system/user.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from os import setuid, chown from pwd import getpwnam from typing import Union
23.307692
67
0.638614
# -*- coding: utf-8 -*- from os import setuid, chown from pwd import getpwnam from typing import Union def get_user_id(user: Union[str, int]) -> int: if isinstance(user, str): info = getpwnam(user) pw_uid = info[2] assert isinstance(pw_uid, int) return pw_uid elif isinstance(u...
430
0
69
d153cb3b5c03c5b94d7eb0c099254847fdec267b
16,275
py
Python
scripts/tests/test_gristle_determinator_cmd.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/test_gristle_determinator_cmd.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/test_gristle_determinator_cmd.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Tests gristle_determinator.py Contains a primary class: FileStructureFixtureManager Which is extended by six classes that override various methods or variables. This is a failed experiment - since the output isn't as informative as it should be. This should be redesigned. ...
40.086207
120
0.579908
#!/usr/bin/env python """ Tests gristle_determinator.py Contains a primary class: FileStructureFixtureManager Which is extended by six classes that override various methods or variables. This is a failed experiment - since the output isn't as informative as it should be. This should be redesigned. ...
13,613
44
655
5c7ad6f8d852ce85b7feb9c261b673e4a5fce78b
5,823
py
Python
Cuarta_escena.py
ArturoSirvent/presentacion_entropia
ab7a35dbca89b6bb868a357f09c80b0ed7198a93
[ "MIT" ]
null
null
null
Cuarta_escena.py
ArturoSirvent/presentacion_entropia
ab7a35dbca89b6bb868a357f09c80b0ed7198a93
[ "MIT" ]
null
null
null
Cuarta_escena.py
ArturoSirvent/presentacion_entropia
ab7a35dbca89b6bb868a357f09c80b0ed7198a93
[ "MIT" ]
null
null
null
from manimlib.imports import * import numpy as np #ahora vamos a explicar el caso de esferas duras, qeu por encima de 50% de ocupacion muestan cristalización #despues vamos a introducir el tema de espacio disponible #puedes decir, bueno pero esque si hay muchas esferas o su radio es muy grande, pues no les ...
38.058824
150
0.65018
from manimlib.imports import * import numpy as np class Esferas_duras(Scene): #ahora vamos a explicar el caso de esferas duras, qeu por encima de 50% de ocupacion muestan cristalización #despues vamos a introducir el tema de espacio disponible def construct(self): titulo=TextMobject("Cristalizació...
4,696
18
170
1541ac7c6b33d08f7f998f7950f090afd6c14b38
470
py
Python
Layers/Swish.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
93
2021-08-11T13:52:37.000Z
2022-03-29T23:19:07.000Z
Layers/Swish.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
4
2021-12-15T17:23:14.000Z
2022-03-24T04:51:40.000Z
Layers/Swish.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
25
2021-08-11T14:23:47.000Z
2022-03-28T20:23:51.000Z
# Copyright 2020 Johns Hopkins University (Shinji Watanabe) # Northwestern Polytechnical University (Pengcheng Guo) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) # Adapted by Florian Lux 2021 import torch class Swish(torch.nn.Module): """ Construct an Swish activation function fo...
24.736842
70
0.646809
# Copyright 2020 Johns Hopkins University (Shinji Watanabe) # Northwestern Polytechnical University (Pengcheng Guo) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) # Adapted by Florian Lux 2021 import torch class Swish(torch.nn.Module): """ Construct an Swish activation function fo...
0
0
0
b1f07dd9b9200b676df26d563936a24690638dde
365
py
Python
raspberry-pi-2/Pump/main.py
hivebio/ministat-1
4fdb0b9a016c3cfeb61f7bcf72caea885c37554d
[ "BSD-2-Clause" ]
6
2015-01-26T06:38:47.000Z
2016-04-22T16:54:43.000Z
raspberry-pi-2/Pump/main.py
hivebio/ministat-1
4fdb0b9a016c3cfeb61f7bcf72caea885c37554d
[ "BSD-2-Clause" ]
2
2015-01-26T16:35:32.000Z
2015-02-20T17:03:50.000Z
raspberry-pi-2/Pump/main.py
hivebio/ministat-1
4fdb0b9a016c3cfeb61f7bcf72caea885c37554d
[ "BSD-2-Clause" ]
3
2016-09-02T22:28:05.000Z
2020-12-26T09:12:50.000Z
import os, sys lib_path = os.path.abspath(os.path.join('..', 'utils')) sys.path.append(lib_path) import ftplib as FTP import credentials as cred import RPIO import RPi.GPIO as GPIO from pump import Pump # use BCM mode to play well with RPIO GPIO.setmode(GPIO.BCM) # start dispatch loop in background RPIO.wait_for_in...
18.25
55
0.753425
import os, sys lib_path = os.path.abspath(os.path.join('..', 'utils')) sys.path.append(lib_path) import ftplib as FTP import credentials as cred import RPIO import RPi.GPIO as GPIO from pump import Pump # use BCM mode to play well with RPIO GPIO.setmode(GPIO.BCM) # start dispatch loop in background RPIO.wait_for_in...
0
0
0
15d68f87a8909d9b38611bb04ed4dfd16984022d
163
py
Python
test/multicall/multicall.py
cxapython/Cyberbrain
8deb949a6b8a909c2ac23b2d84ae6e705940072d
[ "MIT" ]
1
2019-09-27T01:43:51.000Z
2019-09-27T01:43:51.000Z
test/multicall/multicall.py
cxapython/Cyberbrain
8deb949a6b8a909c2ac23b2d84ae6e705940072d
[ "MIT" ]
null
null
null
test/multicall/multicall.py
cxapython/Cyberbrain
8deb949a6b8a909c2ac23b2d84ae6e705940072d
[ "MIT" ]
1
2019-09-27T01:43:54.000Z
2019-09-27T01:43:54.000Z
"""Multiple calls in one logical line.""" import cyberbrain cyberbrain.init() x = {f(x=1), f(y=2)} cyberbrain.register(x)
10.1875
41
0.631902
"""Multiple calls in one logical line.""" import cyberbrain cyberbrain.init() def f(*args, **kwargs): pass x = {f(x=1), f(y=2)} cyberbrain.register(x)
11
0
23
b1cab309247d1c7528c4a53378e0baea34baeda0
2,278
py
Python
models/orpac/containers.py
olitheolix/ds2data
f0d11a5f2b02c132da7604ba9ced17089969afda
[ "Apache-2.0" ]
2
2017-08-18T05:38:45.000Z
2018-05-08T14:15:22.000Z
models/orpac/containers.py
olitheolix/ds2data
f0d11a5f2b02c132da7604ba9ced17089969afda
[ "Apache-2.0" ]
null
null
null
models/orpac/containers.py
olitheolix/ds2data
f0d11a5f2b02c132da7604ba9ced17089969afda
[ "Apache-2.0" ]
null
null
null
import math class Shape: """Container to store 3D Image/array/feature/tensor sizes. This is a convenience class because size specifications are often required yet their format is ambigous. Sometimes, images are specified as CHW (Tensorflow), sometimes as HWC (NumPy, Matplotlib). Sometimes, only the ...
30.783784
83
0.604478
import math class Shape: """Container to store 3D Image/array/feature/tensor sizes. This is a convenience class because size specifications are often required yet their format is ambigous. Sometimes, images are specified as CHW (Tensorflow), sometimes as HWC (NumPy, Matplotlib). Sometimes, only the ...
1,216
0
269
6a727db51b330233fc53a4457786c2a8e8c28735
244
py
Python
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
1
2020-10-29T03:28:08.000Z
2020-10-29T03:28:08.000Z
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
null
null
null
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
null
null
null
import os import sys folder = sys.argv[1] script = sys.argv[2] for root, dirs, files in os.walk(folder): for filename in files: data_file = "{}/{}".format(root,filename) os.system("python3 {} {}".format(script,data_file))
22.181818
59
0.639344
import os import sys folder = sys.argv[1] script = sys.argv[2] for root, dirs, files in os.walk(folder): for filename in files: data_file = "{}/{}".format(root,filename) os.system("python3 {} {}".format(script,data_file))
0
0
0
5b54e28f1e01326c5484bf6e2bf04e4d4c28018a
9,674
py
Python
Mixmatch/streetview_dataset/parse_data_to_tfrecord_lib.py
googleinterns/bizview-semi-supervised-learning
3739ee461c393069d0cf00c462248e5a99e1c55b
[ "Apache-2.0" ]
1
2020-06-26T16:23:35.000Z
2020-06-26T16:23:35.000Z
Mixmatch/streetview_dataset/parse_data_to_tfrecord_lib.py
googleinterns/bizview-semi-supervised-learning
3739ee461c393069d0cf00c462248e5a99e1c55b
[ "Apache-2.0" ]
3
2020-11-13T17:47:42.000Z
2022-02-09T23:39:42.000Z
Mixmatch/streetview_dataset/parse_data_to_tfrecord_lib.py
googleinterns/bizview-semi-supervised-learning
3739ee461c393069d0cf00c462248e5a99e1c55b
[ "Apache-2.0" ]
1
2020-09-13T07:43:21.000Z
2020-09-13T07:43:21.000Z
import numpy as np import tensorflow as tf import itertools import os # used for directory operations import io from PIL import Image # used to read images from directory import random tf.enable_eager_execution() # Global constants # Information from input tfrecord files SOURCE_ID = 'image/source_id' BBOX_CONFIDENC...
40.308333
189
0.686583
import numpy as np import tensorflow as tf import itertools import os # used for directory operations import io from PIL import Image # used to read images from directory import random tf.enable_eager_execution() # Global constants # Information from input tfrecord files SOURCE_ID = 'image/source_id' BBOX_CONFIDENC...
7,721
0
242
94f8b2db88fc9ae505d890d4c2af2378ecf5a928
1,401
py
Python
tests/test_cache.py
rexyeah/jira-cli
6a03e904b0aca4905ea8f5c22239f84d7a82b32d
[ "MIT" ]
125
2015-02-05T01:06:07.000Z
2021-12-08T19:20:26.000Z
tests/test_cache.py
lewis6991/jira-cli
a56540231fc189ac3823df97bd4d30272430446e
[ "MIT" ]
90
2015-02-12T12:41:15.000Z
2022-02-21T02:07:17.000Z
tests/test_cache.py
lewis6991/jira-cli
a56540231fc189ac3823df97bd4d30272430446e
[ "MIT" ]
68
2015-01-30T14:17:29.000Z
2021-05-20T17:22:12.000Z
import os import unittest import tempfile import hiro import jiracli.cache
32.581395
66
0.618844
import os import unittest import tempfile import hiro import jiracli.cache class CacheTests(unittest.TestCase): def setUp(self): self.cache_dir = tempfile.mkdtemp() jiracli.cache.CACHE_DIR = self.cache_dir def test_cache_data_not_exist(self): data = jiracli.cache.CachedData("foobar") ...
1,155
15
155
066eb90268da41c2823854bf89d685050ff3e7e1
1,806
py
Python
src/p_type_service.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
src/p_type_service.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
src/p_type_service.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys sys.path.insert(0, os.path.join(os.path.dirname( os.path.realpath(__file__)), "../")) from Functions import processing_utils as pu def on_log(client, userdata, level, buf): """ Log callback """ print("log: ", buf) pass def on_disconnect(client, userdata,...
26.173913
106
0.633444
# -*- coding: utf-8 -*- import sys sys.path.insert(0, os.path.join(os.path.dirname( os.path.realpath(__file__)), "../")) from Functions import processing_utils as pu def on_log(client, userdata, level, buf): """ Log callback """ print("log: ", buf) pass def on_disconnect(client, userdata,...
0
0
0
d2422cbcadfa238af5f96116a4735b6326ae1570
108
py
Python
insomniac/extra_features/action_warmup.py
chikko80/Insomniac
2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a
[ "MIT" ]
null
null
null
insomniac/extra_features/action_warmup.py
chikko80/Insomniac
2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a
[ "MIT" ]
null
null
null
insomniac/extra_features/action_warmup.py
chikko80/Insomniac
2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a
[ "MIT" ]
null
null
null
from insomniac import activation_controller exec(activation_controller.get_extra_feature("action_warmup"))
27
62
0.87963
from insomniac import activation_controller exec(activation_controller.get_extra_feature("action_warmup"))
0
0
0
fdc6ea6fc9fd6c8cf57341345967e0cba0bde198
4,677
py
Python
minimir/NewbieAction.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
minimir/NewbieAction.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
minimir/NewbieAction.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
# -*- coding:UTF-8 -*- import logging from datetime import datetime from typing import List, Callable from minimir import Struct from minimir.BattleAction import BattleAction from minimir.Utils import Utils
41.758929
116
0.492196
# -*- coding:UTF-8 -*- import logging from datetime import datetime from typing import List, Callable from minimir import Struct from minimir.BattleAction import BattleAction from minimir.Utils import Utils class NewbieAction(BattleAction): # 新账户引导 # 1. 等级低于50级,转生等级0的新账户 # 2. 优先挂机。 每间隔=((等级/10) + 1) * 10...
4,351
514
23
43a84bd4eb3fb5d8fa0a3d8ae221862f3ed8789d
5,412
py
Python
m3u8_To_MP4/v2_multithreads_processor.py
songs18/m3u8_To_MP4
cec3fedd96b1872dc823d465bcb2afc5d0e7e8d2
[ "MIT" ]
10
2021-06-08T00:20:14.000Z
2022-02-01T17:27:36.000Z
m3u8_To_MP4/v2_multithreads_processor.py
songs18/m3u8_To_MP4
cec3fedd96b1872dc823d465bcb2afc5d0e7e8d2
[ "MIT" ]
4
2021-10-31T09:28:45.000Z
2022-03-06T08:07:35.000Z
m3u8_To_MP4/v2_multithreads_processor.py
songs18/m3u8_To_MP4
cec3fedd96b1872dc823d465bcb2afc5d0e7e8d2
[ "MIT" ]
1
2022-03-20T03:38:40.000Z
2022-03-20T03:38:40.000Z
# -*- coding: utf-8 -*- import concurrent.futures import logging import os import sys from Crypto.Cipher import AES from m3u8_To_MP4 import v2_abstract_task_processor from m3u8_To_MP4.helpers import path_helper from m3u8_To_MP4.helpers import printer_helper from m3u8_To_MP4.networks.synchronous.sync_http_r...
48.756757
205
0.631559
# -*- coding: utf-8 -*- import concurrent.futures import logging import os import sys from Crypto.Cipher import AES from m3u8_To_MP4 import v2_abstract_task_processor from m3u8_To_MP4.helpers import path_helper from m3u8_To_MP4.helpers import printer_helper from m3u8_To_MP4.networks.synchronous.sync_http_r...
4,812
112
133
17114d469127b50bd167d2bb7eaef372e81edb17
295
py
Python
todo/TodoBackend/serializers.py
SumitPatel12/Atomic_Task
bfb2f36b5e00b0ff6952abb7896dc09975f838bf
[ "BSD-3-Clause" ]
null
null
null
todo/TodoBackend/serializers.py
SumitPatel12/Atomic_Task
bfb2f36b5e00b0ff6952abb7896dc09975f838bf
[ "BSD-3-Clause" ]
null
null
null
todo/TodoBackend/serializers.py
SumitPatel12/Atomic_Task
bfb2f36b5e00b0ff6952abb7896dc09975f838bf
[ "BSD-3-Clause" ]
1
2021-06-20T10:43:16.000Z
2021-06-20T10:43:16.000Z
from django.db import models from django.db.models import fields from rest_framework import serializers from .models import Todo
32.777778
76
0.735593
from django.db import models from django.db.models import fields from rest_framework import serializers from .models import Todo class TodoSerializer(serializers.ModelSerializer): class Meta: model = Todo fields = ['todo_id', 'title', 'description', 'completed', 'user_id']
0
144
23
fddde5375c0f8287d9c9492737894aa70c445e98
362
py
Python
rippl/legislature/queries/districts.py
gnmerritt/dailyrippl
9a0f9615ba597a475dbd6305b589827cb2d97b03
[ "MIT" ]
6
2016-12-03T20:30:43.000Z
2017-01-10T01:50:09.000Z
rippl/legislature/queries/districts.py
gnmerritt/dailyrippl
9a0f9615ba597a475dbd6305b589827cb2d97b03
[ "MIT" ]
24
2016-11-30T02:31:13.000Z
2020-02-25T22:47:27.000Z
rippl/legislature/queries/districts.py
gnmerritt/dailyrippl
9a0f9615ba597a475dbd6305b589827cb2d97b03
[ "MIT" ]
1
2016-12-25T21:42:31.000Z
2016-12-25T21:42:31.000Z
from rest_framework import serializers from legislature.models import District, State
20.111111
54
0.709945
from rest_framework import serializers from legislature.models import District, State class StateSerializer(serializers.ModelSerializer): class Meta: model = State fields = '__all__' class DistrictSerializer(serializers.ModelSerializer): state = StateSerializer() class Meta: mo...
0
227
46
ec32def252ff18f8e32835cc67626d633326507f
1,089
py
Python
forms/register_form.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
forms/register_form.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
forms/register_form.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import PasswordField, RadioField, StringField from wtforms.fields.html5 import EmailField import wtforms.validators as validate
60.5
108
0.584022
from flask_wtf import FlaskForm from wtforms import PasswordField, RadioField, StringField from wtforms.fields.html5 import EmailField import wtforms.validators as validate class RegisterForm(FlaskForm): email = EmailField("Email: ", validators=[validate.DataRequired()]) login = StringField("Логин (нужен для ...
0
977
23
9417b738b7f84aca758c1404b51b45d994effd14
6,665
py
Python
robotic_object_search/House3D/utils/helper.py
Xin-Ye-1/HRL-GRG
b36c0c3f9f7ec3a1b59925df0be514f7540ee122
[ "Apache-2.0" ]
7
2021-03-28T03:13:01.000Z
2022-03-30T03:16:04.000Z
utils/helper.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
utils/helper.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
2
2021-06-22T08:06:28.000Z
2021-11-09T07:33:59.000Z
#!/usr/bin/env python import tensorflow as tf import numpy as np import scipy.signal from scipy import misc import scipy.io from PIL import Image import json import os from offline_feature import * from bbox_tool import * import glob from reward_function import * from semantic_environment import * from shortest_path im...
37.44382
114
0.635259
#!/usr/bin/env python import tensorflow as tf import numpy as np import scipy.signal from scipy import misc import scipy.io from PIL import Image import json import os from offline_feature import * from bbox_tool import * import glob from reward_function import * from semantic_environment import * from shortest_path im...
5,914
0
230
b19a9236d00b7d2bec4c999cbd05278cd754cce4
671
py
Python
examples/vdist.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
examples/vdist.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
examples/vdist.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from pymap3d.vincenty import vdist from argparse import ArgumentParser if __name__ == '__main__': # pragma: no cover main()
31.952381
79
0.675112
#!/usr/bin/env python from pymap3d.vincenty import vdist from argparse import ArgumentParser def main(): p = ArgumentParser(description='vdist distance between WGS-84 coordinates') p.add_argument('lat1', help='latitude1 WGS-84 [degrees]', type=float) p.add_argument('lon1', help='longitude1 WGS-84 [degrees...
494
0
23
27794f69d075b4738175010914ffed940e109425
770
py
Python
mytravelblog/accounts/urls.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
mytravelblog/accounts/urls.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
mytravelblog/accounts/urls.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
from django.urls import path from mytravelblog.accounts.views import * urlpatterns = ( path('login/', UserLoginView.as_view(), name='login user'), path('logout/', UserLogoutConfirmationView.as_view(), name='logout user confirmation'), path('logout/signout/', UserLogoutView.as_view(), name='logout user'), ...
45.294118
96
0.711688
from django.urls import path from mytravelblog.accounts.views import * urlpatterns = ( path('login/', UserLoginView.as_view(), name='login user'), path('logout/', UserLogoutConfirmationView.as_view(), name='logout user confirmation'), path('logout/signout/', UserLogoutView.as_view(), name='logout user'), ...
0
0
0
61cf70ddffa302ce92c009ba30a09a6df91ec3f1
265
py
Python
serial_port_switch.py
truonghoangduy/esp32-gateway-devices
6232be5219528910cff380822e2d540b608bac21
[ "MIT" ]
null
null
null
serial_port_switch.py
truonghoangduy/esp32-gateway-devices
6232be5219528910cff380822e2d540b608bac21
[ "MIT" ]
null
null
null
serial_port_switch.py
truonghoangduy/esp32-gateway-devices
6232be5219528910cff380822e2d540b608bac21
[ "MIT" ]
1
2022-03-01T03:40:39.000Z
2022-03-01T03:40:39.000Z
# import util import sys import os pioPath = ".platformio/penv/lib/python3.9/site-packages fullPath = os.path.join(os.path.expanduser('~'), pioPath) print(fullPath) sys.path.append(os.path.join(os.path.expanduser('~'), pioPath)) import util util.get_serial_ports()
26.5
63
0.758491
# import util import sys import os pioPath = ".platformio/penv/lib/python3.9/site-packages fullPath = os.path.join(os.path.expanduser('~'), pioPath) print(fullPath) sys.path.append(os.path.join(os.path.expanduser('~'), pioPath)) import util util.get_serial_ports()
0
0
0
72acb6e2ec44e71ce1922b88225888035123a68d
1,536
py
Python
build/android/pylib/local/device/local_device_environment.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5
2015-04-30T00:13:21.000Z
2019-07-10T02:17:24.000Z
build/android/pylib/local/device/local_device_environment.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
build/android/pylib/local/device/local_device_environment.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from pylib.base import environment from pylib.device import adb_wrapper from pylib.device import device_errors from pylib.device import device_utils from pyl...
26.947368
72
0.727865
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from pylib.base import environment from pylib.device import adb_wrapper from pylib.device import device_errors from pylib.device import device_utils from pyl...
882
280
23
d050a0f9094cfd8b88db3f7e61314f6f7dc6f6fc
328
py
Python
miniFPL/api_url.py
sayandhar/miniFPL
c4107a8112b8f0548209cf47aad9be88262eca49
[ "MIT" ]
2
2019-02-16T18:32:42.000Z
2020-09-11T22:33:12.000Z
miniFPL/api_url.py
sayandhar/miniFPL
c4107a8112b8f0548209cf47aad9be88262eca49
[ "MIT" ]
null
null
null
miniFPL/api_url.py
sayandhar/miniFPL
c4107a8112b8f0548209cf47aad9be88262eca49
[ "MIT" ]
1
2018-08-31T09:04:54.000Z
2018-08-31T09:04:54.000Z
BASE_URL = 'https://fantasy.premierleague.com/drf/' FPL_DATA = BASE_URL + 'bootstrap-static' # (player id) PLAYER_DATA = BASE_URL + 'element-summary/{}' # (gameweek) DREAM_TEAM_DATA = BASE_URL + 'dream-team/{}' # (team id) USER_DATA = BASE_URL + 'entry/{}' # (gameweek) USER_GAMEWEEK_TEAM_DATA = USER_DATA + '/event/{}...
25.230769
55
0.698171
BASE_URL = 'https://fantasy.premierleague.com/drf/' FPL_DATA = BASE_URL + 'bootstrap-static' # (player id) PLAYER_DATA = BASE_URL + 'element-summary/{}' # (gameweek) DREAM_TEAM_DATA = BASE_URL + 'dream-team/{}' # (team id) USER_DATA = BASE_URL + 'entry/{}' # (gameweek) USER_GAMEWEEK_TEAM_DATA = USER_DATA + '/event/{}...
0
0
0
0c71477059bcf2d2c50224cbfe3dd457c1e6410a
1,319
py
Python
app/authentication.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
app/authentication.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
app/authentication.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
from flask import current_app, abort, request from dmutils.authentication import UnauthorizedWWWAuthenticate def get_allowed_tokens_from_config(config, module='main'): """Return a list of allowed auth tokens from the application config""" env_variable_name = 'DM_API_AUTH_TOKENS' if module == 'callback...
34.710526
94
0.716452
from flask import current_app, abort, request from dmutils.authentication import UnauthorizedWWWAuthenticate def requires_authentication(module='main'): if current_app.config['AUTH_REQUIRED']: incoming_token = get_token_from_headers(request.headers) if not incoming_token: raise Unaut...
780
0
69
f25042b468f867d8a3e0d386bfe6356608e13a01
3,565
py
Python
tests/autoruntests/DetunersTest.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/autoruntests/DetunersTest.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/autoruntests/DetunersTest.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.constants import m_p, c, e import matplotlib.pyplot as plt import PyHEADTAIL.particles.generators as generators from PyHEADTAIL.trackers.transverse_tracking import TransverseMap from PyHEADTAIL.trackers.detuners import Chromaticity, AmplitudeDetuning if __name__ == '__main__': run(...
25.464286
94
0.630295
import numpy as np from scipy.constants import m_p, c, e import matplotlib.pyplot as plt import PyHEADTAIL.particles.generators as generators from PyHEADTAIL.trackers.transverse_tracking import TransverseMap from PyHEADTAIL.trackers.detuners import Chromaticity, AmplitudeDetuning def run(): def track(bunch, map_...
3,219
0
23
97d53868b8cbceaa9480f55ebd5b0b00b648516c
1,007
py
Python
Chapter1/calculating_pi.py
SJHH-Nguyen-D/ClassicComputerScienceProblemsInPython
9e178432ddb8b5e0ab63bf97334f557310ccc43c
[ "Apache-2.0" ]
null
null
null
Chapter1/calculating_pi.py
SJHH-Nguyen-D/ClassicComputerScienceProblemsInPython
9e178432ddb8b5e0ab63bf97334f557310ccc43c
[ "Apache-2.0" ]
null
null
null
Chapter1/calculating_pi.py
SJHH-Nguyen-D/ClassicComputerScienceProblemsInPython
9e178432ddb8b5e0ab63bf97334f557310ccc43c
[ "Apache-2.0" ]
null
null
null
# calculating_pi.py # From Classic Computer Science Problems in Python Chapter 1 # Copyright 2018 David Kopec # # 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/license...
32.483871
74
0.712016
# calculating_pi.py # From Classic Computer Science Problems in Python Chapter 1 # Copyright 2018 David Kopec # # 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/license...
270
0
23
dd9fdc2eaacf283b85356158878ae10bfe7e7467
6,962
py
Python
extensions/auth/_test_module.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
extensions/auth/_test_module.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
extensions/auth/_test_module.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
# # auth test module - add, update, delete # """ MIT License Copyright (c) 2017, 2018 Ioan Coman 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 limitatio...
35.161616
96
0.606148
# # auth test module - add, update, delete # """ MIT License Copyright (c) 2017, 2018 Ioan Coman 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 limitatio...
4,094
2
180
4dccc417c9de8bcf074c288d63345b8ce2f1340f
12,496
py
Python
rs2wapy/models/models.py
tuokri/rs2wapy
6d4d940abca0acece4c5e36c6830c6b647c736c8
[ "MIT" ]
3
2020-03-03T09:19:40.000Z
2021-10-16T10:09:00.000Z
rs2wapy/models/models.py
tuokri/rs2wapy
6d4d940abca0acece4c5e36c6830c6b647c736c8
[ "MIT" ]
9
2020-03-03T13:57:14.000Z
2020-04-28T09:37:42.000Z
rs2wapy/models/models.py
tuokri/rs2wapy
6d4d940abca0acece4c5e36c6830c6b647c736c8
[ "MIT" ]
1
2020-03-17T16:17:36.000Z
2020-03-17T16:17:36.000Z
"""TODO: Use dataclasses.""" from __future__ import annotations import abc import datetime import sys from collections import MutableMapping from typing import Any from typing import Dict from typing import Iterator from typing import KeysView from typing import List from typing import Optional from typing import Tup...
25.398374
85
0.62356
"""TODO: Use dataclasses.""" from __future__ import annotations import abc import datetime import sys from collections import MutableMapping from typing import Any from typing import Dict from typing import Iterator from typing import KeysView from typing import List from typing import Optional from typing import Tup...
6,376
3,674
859
e8045703d37f2099bf362d4e174b682f893a37bb
190
py
Python
Coursera/ex5.1.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
1
2021-05-24T19:44:04.000Z
2021-05-24T19:44:04.000Z
Coursera/ex5.1.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
null
null
null
Coursera/ex5.1.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
null
null
null
l = int(input("digite a largura: ")) a = int(input("digite a altura: ")) L = A = 1 while A <= a: while L <= l: print("#", end="") L += 1 A += 1 L = 1 print()
17.272727
36
0.426316
l = int(input("digite a largura: ")) a = int(input("digite a altura: ")) L = A = 1 while A <= a: while L <= l: print("#", end="") L += 1 A += 1 L = 1 print()
0
0
0
a7e25c99021f2163a65c42569320cf53b830ccb4
4,219
py
Python
plotly/tests/test_core/test_graph_objs/test_properties_validated.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2018-07-16T01:51:47.000Z
2018-07-16T01:51:47.000Z
plotly/tests/test_core/test_graph_objs/test_properties_validated.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/tests/test_core/test_graph_objs/test_properties_validated.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
from unittest import TestCase import plotly.graph_objs as go from nose.tools import raises
28.506757
74
0.605831
from unittest import TestCase import plotly.graph_objs as go from nose.tools import raises class TestPropertyValidation(TestCase): def setUp(self): # Construct initial scatter object self.scatter = go.Scatter() self.scatter.name = 'Scatter 1' @raises(ValueError) def test_validato...
2,914
953
258
d3cbc1601e2628492af0ecc8529e4d4bfd2791df
1,829
py
Python
sharq/utils.py
bhuvanvenkat-plivo/sharq
32bbfbdcbbaa8e154271ffd125ac4500382f3d19
[ "MIT" ]
null
null
null
sharq/utils.py
bhuvanvenkat-plivo/sharq
32bbfbdcbbaa8e154271ffd125ac4500382f3d19
[ "MIT" ]
null
null
null
sharq/utils.py
bhuvanvenkat-plivo/sharq
32bbfbdcbbaa8e154271ffd125ac4500382f3d19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014 Plivo Team. See LICENSE.txt for details. import time import msgpack VALID_IDENTIFIER_SET = set(list('abcdefghijklmnopqrstuvwxyz0123456789_-')) def is_valid_identifier(identifier): """Checks if the given identifier is valid or not. A valid identifier may consists o...
24.386667
74
0.666484
# -*- coding: utf-8 -*- # Copyright (c) 2014 Plivo Team. See LICENSE.txt for details. import time import msgpack VALID_IDENTIFIER_SET = set(list('abcdefghijklmnopqrstuvwxyz0123456789_-')) def is_valid_identifier(identifier): """Checks if the given identifier is valid or not. A valid identifier may consists o...
0
0
0
c15ecbb686f6aadc4d7e1e63436d36887d403ee5
3,030
py
Python
lab4_simulated_annealing/task_1/main.py
j-adamczyk/Numerical-Algorithms
47cfa8154bab448d1bf87b892d83e45c68dd2e2a
[ "MIT" ]
6
2020-03-16T11:23:32.000Z
2021-01-16T21:04:01.000Z
lab4_simulated_annealing/task_1/main.py
j-adamczyk/Numerical-Algorithms
47cfa8154bab448d1bf87b892d83e45c68dd2e2a
[ "MIT" ]
null
null
null
lab4_simulated_annealing/task_1/main.py
j-adamczyk/Numerical-Algorithms
47cfa8154bab448d1bf87b892d83e45c68dd2e2a
[ "MIT" ]
null
null
null
import copy import generators import math import neighbor_states as ns import numpy as np import plotter import random as rand n = 200 iterations = 500000 temperature = 1000 decay_rate = 0.99995 swap_type = "consecutive" low = 0 high = 1 distribution = "uniform" first_path, best_path, distances_plot_data, tempera...
30.3
172
0.665017
import copy import generators import math import neighbor_states as ns import numpy as np import plotter import random as rand def get_matrix(cities): n = len(cities) result = np.zeros((n, n)) for x in range(n): for y in range(n): x1 = cities[x][0] y1 = cities[x][1] ...
2,432
0
69
4dc65ac449ff42d60012e9346f5cadec81deb3cc
10,088
py
Python
src/rcmodel/reinforce.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
5
2021-07-05T13:48:59.000Z
2021-12-08T11:40:51.000Z
src/rcmodel/reinforce.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
src/rcmodel/reinforce.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
import gym from gym import spaces import torch import torch.nn as nn from matplotlib import pyplot as plt import pandas as pd import numpy as np from xitorch.interpolate import Interp1D from tqdm.auto import tqdm, trange import time from rcmodel.room import Room from rcmodel.building import Building from rcmodel.RCMo...
34.19661
139
0.618656
import gym from gym import spaces import torch import torch.nn as nn from matplotlib import pyplot as plt import pandas as pd import numpy as np from xitorch.interpolate import Interp1D from tqdm.auto import tqdm, trange import time from rcmodel.room import Room from rcmodel.building import Building from rcmodel.RCMo...
7,394
5
367
b62f59c6e173df9ffd9859826fa97d14c5d0dc78
679
py
Python
main.py
UntriexTv/favorable-fishers
e8aa4f83982fb43a36bb150cc749db03d361a58e
[ "MIT" ]
2
2021-07-09T15:07:59.000Z
2021-07-10T08:51:03.000Z
main.py
UntriexTv/favorable-fishers
e8aa4f83982fb43a36bb150cc749db03d361a58e
[ "MIT" ]
null
null
null
main.py
UntriexTv/favorable-fishers
e8aa4f83982fb43a36bb150cc749db03d361a58e
[ "MIT" ]
2
2021-07-12T09:16:23.000Z
2021-07-31T20:19:37.000Z
import sys from WidgetManager import WidgetManager from Dashboard import Dashboard from asciimatics.screen import Screen from asciimatics.exceptions import ResizeScreenError """ The application is initialized using an asciimatics wrapper """ widgetmanager = WidgetManager() last_scene = None whil...
23.413793
86
0.715758
import sys from WidgetManager import WidgetManager from Dashboard import Dashboard from asciimatics.screen import Screen from asciimatics.exceptions import ResizeScreenError """ The application is initialized using an asciimatics wrapper """ def app(screen, scene): dashboard = Dashboard(screen,...
138
0
26
a46b7510dff06a94c65ea3c9f20676b354311ca0
416
py
Python
tabluar/metrics.py
xubujie/DataScience_utils
e064a84d1d20c70781bb6cf85dd0ce151d6decaa
[ "MIT" ]
null
null
null
tabluar/metrics.py
xubujie/DataScience_utils
e064a84d1d20c70781bb6cf85dd0ce151d6decaa
[ "MIT" ]
null
null
null
tabluar/metrics.py
xubujie/DataScience_utils
e064a84d1d20c70781bb6cf85dd0ce151d6decaa
[ "MIT" ]
null
null
null
@jit
24.470588
47
0.574519
@jit def fast_auc(y_true, y_prob): y_true = np.asarray(y_true) y_true = y_true[np.argsort(y_prob)] nfalse = 0 auc = 0 n = len(y_true) for i in range(n): y_i = y_true[i] nfalse += (1 - y_i) auc += y_i * nfalse auc /= (nfalse * (n - nfalse)) return auc def eval_auc...
367
0
45
c1cbb4533ea139bb4fcbe6f0800fc5384c15add6
631
py
Python
ho/00_hello_world.py
cie/python
b953f5e9d159abe9bd865c9642595a37ac43661b
[ "CC-BY-4.0" ]
1
2019-11-19T01:06:36.000Z
2019-11-19T01:06:36.000Z
ho/00_hello_world.py
cie/python
b953f5e9d159abe9bd865c9642595a37ac43661b
[ "CC-BY-4.0" ]
1
2020-05-07T22:09:11.000Z
2020-05-08T06:52:10.000Z
ho/00_hello_world.py
cie/python
b953f5e9d159abe9bd865c9642595a37ac43661b
[ "CC-BY-4.0" ]
null
null
null
import pyxel import math # ablak szélessége, magassága, címe pyxel.init(255,255, caption="Hello") # Mit csináljunk egy képkocka előtt # Hogyan rajzolunk ki egy-egy képkockát # Elindítjuk pyxel.run(update, draw)
28.681818
65
0.673534
import pyxel import math # ablak szélessége, magassága, címe pyxel.init(255,255, caption="Hello") # Mit csináljunk egy képkocka előtt def update(): # kiírjuk alul, hogy Hello 0!, Hello 1! stb. mindig az # aktuális képkocka sorszámát # ***** a)feladat: módosítsd úgy, hogy Hello World!-öt írjon! print("Hell...
390
0
44
db7891c16fb3e81ec2b1cee7753530ba6ee0e883
438
py
Python
crisiscleanup/calls/api/serializers/gateway.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
crisiscleanup/calls/api/serializers/gateway.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
crisiscleanup/calls/api/serializers/gateway.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
from rest_framework import serializers from crisiscleanup.calls.models import Gateway from crisiscleanup.calls.models import Language
33.692308
111
0.753425
from rest_framework import serializers from crisiscleanup.calls.models import Gateway from crisiscleanup.calls.models import Language class GatewaySerializer(serializers.ModelSerializer): language = serializers.PrimaryKeyRelatedField(queryset=Language.objects) class Meta: model = Gateway fiel...
0
280
23
8026d66a42c5933da5b8c6df58e0453ba24b348b
478
py
Python
bot/db_helpers/db_helpers.py
Dakhnovskiy/pomogator_bot
9a8b9d5f79b800020d99ffd6034df054d405e434
[ "Apache-2.0" ]
null
null
null
bot/db_helpers/db_helpers.py
Dakhnovskiy/pomogator_bot
9a8b9d5f79b800020d99ffd6034df054d405e434
[ "Apache-2.0" ]
null
null
null
bot/db_helpers/db_helpers.py
Dakhnovskiy/pomogator_bot
9a8b9d5f79b800020d99ffd6034df054d405e434
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from ..config import settings __engine = create_engine(settings.DATABASE) __session_maker = sessionmaker(bind=__engine) @contextmanager
18.384615
45
0.728033
from contextlib import contextmanager from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from ..config import settings __engine = create_engine(settings.DATABASE) __session_maker = sessionmaker(bind=__engine) def get_engine(): return __engine @contextmanager def get_session(): s...
176
0
45
2b1b96b36e62531c1a72b6f5204b04ac339df9fd
239
py
Python
Python Functionals/Validating Email Addresses with a Filter.py
Code-With-Aagam/python-hackerrank
270c75cf2ca30916183c7fe5ca130a64c7a8ed6d
[ "MIT" ]
3
2022-03-05T15:38:26.000Z
2022-03-09T13:39:30.000Z
Python Functionals/Validating Email Addresses with a Filter.py
Code-With-Aagam/python-hackerrank
270c75cf2ca30916183c7fe5ca130a64c7a8ed6d
[ "MIT" ]
null
null
null
Python Functionals/Validating Email Addresses with a Filter.py
Code-With-Aagam/python-hackerrank
270c75cf2ca30916183c7fe5ca130a64c7a8ed6d
[ "MIT" ]
null
null
null
import re
39.833333
80
0.60251
import re def fun(s): # return True if s is a valid email, else return False # Even though this is a filter challenge, it can easily be done using regex return re.match(r'^[a-z][\w-]*@[a-z0-9]+\.[a-z]{1,3}$', s, re.I)
201
0
23
e88ad22dda814f02fbaab397294bd50fd28688c5
269
py
Python
cd4ml/readers/file_reader.py
gobert/CD4ML-Scenarios
9abbbb271febea015d5d21256d6312d6ba058445
[ "MIT" ]
1
2020-12-24T19:52:58.000Z
2020-12-24T19:52:58.000Z
cd4ml/readers/file_reader.py
gobert/CD4ML-Scenarios
9abbbb271febea015d5d21256d6312d6ba058445
[ "MIT" ]
null
null
null
cd4ml/readers/file_reader.py
gobert/CD4ML-Scenarios
9abbbb271febea015d5d21256d6312d6ba058445
[ "MIT" ]
1
2020-05-04T18:21:41.000Z
2020-05-04T18:21:41.000Z
from csv import DictReader from cd4ml.filenames import file_names
24.454545
72
0.72119
from csv import DictReader from cd4ml.filenames import file_names class CSVDictionaryReader: def __init__(self): self.input_file = file_names['raw_data'] def stream_data(self): return (item for item in DictReader(open(self.input_file, 'r')))
121
5
76
025737d3d3b41f3afb2122fc8d30280b19fe4156
249
py
Python
skytour/skytour/apps/dso/urls_priority.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
skytour/skytour/apps/dso/urls_priority.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
1
2022-03-17T01:19:23.000Z
2022-03-17T01:19:23.000Z
skytour/skytour/apps/dso/urls_priority.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
from django.urls import path from .views import PriorityListView, PriorityDetailView urlpatterns = ( path('', PriorityListView.as_view(), name='priority-list'), path('<str:priority>', PriorityDetailView.as_view(), name='priority-detail'), )
35.571429
81
0.742972
from django.urls import path from .views import PriorityListView, PriorityDetailView urlpatterns = ( path('', PriorityListView.as_view(), name='priority-list'), path('<str:priority>', PriorityDetailView.as_view(), name='priority-detail'), )
0
0
0
d5dabdb3ee14b6b74a3ae95c363cf62ee4281bd3
2,790
py
Python
docs/source/conf.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
docs/source/conf.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
docs/source/conf.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.44186
79
0.670251
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
0
0
0
748ad3066400275f1cbf9df97b8a3dbd41db4235
1,229
py
Python
leetcode/433.minimum-genetic-mutation.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
177
2017-08-21T08:57:43.000Z
2020-06-22T03:44:22.000Z
leetcode/433.minimum-genetic-mutation.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
2
2018-09-06T13:39:12.000Z
2019-06-03T02:54:45.000Z
leetcode/433.minimum-genetic-mutation.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
23
2017-08-23T06:01:28.000Z
2020-04-20T03:17:36.000Z
CHOICES = ["A", "C", "G", "T"]
28.581395
67
0.436941
CHOICES = ["A", "C", "G", "T"] class Solution(object): def minMutation(self, start, end, bank): """ :type start: str :type end: str :type bank: List[str] :rtype: int """ queue = [start] level = 0 bank_set = set(bank) visited = set([star...
408
769
22
7c179bba7fe82aa4cf7a9cd397c544496afb53e9
1,530
py
Python
DailyProgrammer/DP20170826A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20170826A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20170826A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [17-08-21] Challenge #328 [Easy] Latin Squares https://www.reddit.com/r/dailyprogrammer/comments/6v29zk/170821_challenge_328_easy_latin_squares/ #**Description** A [Latin square](https://en.wikipedia.org/wiki/Latin_square) is an n × n array filled with n different symbols, each occurring exactly once in each row ...
28.333333
119
0.710458
""" [17-08-21] Challenge #328 [Easy] Latin Squares https://www.reddit.com/r/dailyprogrammer/comments/6v29zk/170821_challenge_328_easy_latin_squares/ #**Description** A [Latin square](https://en.wikipedia.org/wiki/Latin_square) is an n × n array filled with n different symbols, each occurring exactly once in each row ...
-1
0
23
6b69d1ff458af77522bd52bd85a4421763aabc2a
3,419
py
Python
main.py
ufopilot/AutomicTerminal
5e049838eb51d3b7a4f3b562187f28257dde8c23
[ "MIT" ]
null
null
null
main.py
ufopilot/AutomicTerminal
5e049838eb51d3b7a4f3b562187f28257dde8c23
[ "MIT" ]
null
null
null
main.py
ufopilot/AutomicTerminal
5e049838eb51d3b7a4f3b562187f28257dde8c23
[ "MIT" ]
null
null
null
from qore import * from libs.menu import Menu from libs.monitor import Monitor from libs.agents import Agents from libs.header import AppHeader from libs.health import Health AutomicTerminal.run(title="Automic", log="textual.log")
32.254717
87
0.678853
from qore import * from libs.menu import Menu from libs.monitor import Monitor from libs.agents import Agents from libs.header import AppHeader from libs.health import Health class AutomicTerminal(App): async def on_load(self) -> None: """Bind keys here.""" await self.bind("a", "toggle_assembly", "Toggl...
580
2,574
25
04584df5159930bd46ea83f3a8fdbd6456b725d6
3,909
py
Python
scripts/misc/quality.py
young-oct/OCT_jupyter
2d8e6897b967b28901da019b8d7ccde4bb3fee58
[ "MIT" ]
1
2021-03-09T03:57:27.000Z
2021-03-09T03:57:27.000Z
scripts/misc/quality.py
young-oct/OCT_jupyter
2d8e6897b967b28901da019b8d7ccde4bb3fee58
[ "MIT" ]
null
null
null
scripts/misc/quality.py
young-oct/OCT_jupyter
2d8e6897b967b28901da019b8d7ccde4bb3fee58
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021-04-26 7:52 p.m. # @Author : young wang # @FileName: quality.py # @Software: PyCharm import numpy as np from skimage.filters import gaussian from scipy.ndimage import median_filter from misc.processing import imag2uint def ROI(x, y, width, height,s): '''obtain the ROI fr...
23.835366
94
0.63648
# -*- coding: utf-8 -*- # @Time : 2021-04-26 7:52 p.m. # @Author : young wang # @FileName: quality.py # @Software: PyCharm import numpy as np from skimage.filters import gaussian from scipy.ndimage import median_filter from misc.processing import imag2uint def gaussian_blur(noisy, sigma=0.5): out = gaussian(...
1,442
0
69
dc811f4c086d939f2566ed85ebb5c52fd7df8113
3,467
py
Python
db.py
BPtacek/twitter_bot
9df4175cc507ce8b1f9d847e92f0b69809f61a12
[ "MIT" ]
null
null
null
db.py
BPtacek/twitter_bot
9df4175cc507ce8b1f9d847e92f0b69809f61a12
[ "MIT" ]
null
null
null
db.py
BPtacek/twitter_bot
9df4175cc507ce8b1f9d847e92f0b69809f61a12
[ "MIT" ]
null
null
null
import requests import sqlite3 conn = sqlite3.connect('twitter_resources.db', check_same_thread=False) c = conn.cursor()
37.27957
88
0.592443
import requests import sqlite3 conn = sqlite3.connect('twitter_resources.db', check_same_thread=False) c = conn.cursor() def setup_db(): c.execute("""CREATE TABLE IF NOT EXISTS teams_twitter ( id INTEGER PRIMARY KEY, team_name TEXT NOT NULL UNIQUE, twitter_handle TEXT NOT NULL...
3,249
0
92
16c75f1f1c9db46d3d956b6d325f41a44060954c
1,729
py
Python
tests/unit/test_CXCSVData.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
4
2021-03-18T17:23:40.000Z
2022-02-01T19:07:01.000Z
tests/unit/test_CXCSVData.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
8
2021-04-30T20:46:57.000Z
2022-03-10T07:25:31.000Z
tests/unit/test_CXCSVData.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
1
2022-02-03T00:35:14.000Z
2022-02-03T00:35:14.000Z
import csv from copy import copy, deepcopy import pytest from hypothesis import given from hypothesis.extra.pandas import data_frames, column from canvasxpress.data.matrix import CXCSVData from tests.util.hypothesis_support import everything_except csv_sample = """ "C1","C2","C3" 1,2,3 4,5,6 """ @given( data_f...
23.684932
73
0.728167
import csv from copy import copy, deepcopy import pytest from hypothesis import given from hypothesis.extra.pandas import data_frames, column from canvasxpress.data.matrix import CXCSVData from tests.util.hypothesis_support import everything_except csv_sample = """ "C1","C2","C3" 1,2,3 4,5,6 """ @given( data_f...
1,087
0
181
94eb96d9701dd1faff5feeed8a843a2f935f8186
30
py
Python
vis_tools/__init__.py
constantinpape/vis_tools
79bf51be97d305edd83f10f31bd5b530587bd021
[ "MIT" ]
null
null
null
vis_tools/__init__.py
constantinpape/vis_tools
79bf51be97d305edd83f10f31bd5b530587bd021
[ "MIT" ]
null
null
null
vis_tools/__init__.py
constantinpape/vis_tools
79bf51be97d305edd83f10f31bd5b530587bd021
[ "MIT" ]
null
null
null
from .edges import make_edges
15
29
0.833333
from .edges import make_edges
0
0
0
7e81a55414327b9f16871ef65751544ca50f1ea5
359
py
Python
chap_18/test_add2.py
jieyanzhu/codes-effective-computation-in-physics
0c99f2da9d462229e6b174a010d7c7b08af4482b
[ "MIT" ]
null
null
null
chap_18/test_add2.py
jieyanzhu/codes-effective-computation-in-physics
0c99f2da9d462229e6b174a010d7c7b08af4482b
[ "MIT" ]
1
2021-12-23T10:09:01.000Z
2021-12-23T12:06:25.000Z
chap_18/test_add2.py
jieyanzhu/codes-effective-computation-in-physics
0c99f2da9d462229e6b174a010d7c7b08af4482b
[ "MIT" ]
null
null
null
from nose.tools import assert_equal
17.95
35
0.470752
from nose.tools import assert_equal def add2(x, y): return x + y def check_add2(exp, x, y): obs = add2(x, y) assert_equal(exp, obs) def test_add2(): cases = [ (4, 2, 2), (5, -5, 10), (42, 40, 2), (16, 3, 13), (-128, 0, -128), ] for exp, x, y in case...
254
0
69
37622db5e295df54423f2cd1b72fd2fb623225b2
1,335
py
Python
env/Lib/site-packages/pangocffi/__init__.py
kodelaben/manimce
fef4f1bd748d1cc8c1ade73e7561d4235dc253ca
[ "MIT" ]
1
2021-06-01T19:10:23.000Z
2021-06-01T19:10:23.000Z
env/Lib/site-packages/pangocffi/__init__.py
kodelaben/manimce
fef4f1bd748d1cc8c1ade73e7561d4235dc253ca
[ "MIT" ]
null
null
null
env/Lib/site-packages/pangocffi/__init__.py
kodelaben/manimce
fef4f1bd748d1cc8c1ade73e7561d4235dc253ca
[ "MIT" ]
null
null
null
import ctypes.util from .ffi_build import ffi def _dlopen(generated_ffi, *names): """Try various names for the same library, for different platforms.""" for name in names: for lib_name in (name, 'lib' + name): try: path = ctypes.util.find_library(lib_name) l...
35.131579
78
0.668165
import ctypes.util from .ffi_build import ffi def _dlopen(generated_ffi, *names): """Try various names for the same library, for different platforms.""" for name in names: for lib_name in (name, 'lib' + name): try: path = ctypes.util.find_library(lib_name) l...
0
0
0
bf6253393c8bcc238caab589dc52fa201083043f
3,454
py
Python
word-formatter/src/classifier/classifier.py
MonsterPixel/WordFormat-Python
b6d4e4c74ca66d2076163a4187e8b2851262da65
[ "MIT" ]
null
null
null
word-formatter/src/classifier/classifier.py
MonsterPixel/WordFormat-Python
b6d4e4c74ca66d2076163a4187e8b2851262da65
[ "MIT" ]
null
null
null
word-formatter/src/classifier/classifier.py
MonsterPixel/WordFormat-Python
b6d4e4c74ca66d2076163a4187e8b2851262da65
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from datetime import datetime from src.utils.filemeta import get_filename from src.loader.converter import Converter from src.utils.logging import logger
27.854839
109
0.555298
# -*- coding: utf-8 -*- import os from datetime import datetime from src.utils.filemeta import get_filename from src.loader.converter import Converter from src.utils.logging import logger class Classifier(object): NAME = None MODEL = None def __init__(self, args=None, model=None, files=None, raw=None,...
1,632
1,608
23
fbf1ae27d9bcac66c8206372667b4d1af0f93cae
1,223
py
Python
.asv/results/benchmarkers-MacBook-Pro.local/clean.py
qwhelan/conda-benchmarks
7b7de2c0057e0d1ec1d35e2ca4d24aa8ac6b9b69
[ "BSD-3-Clause" ]
3
2018-12-29T02:39:09.000Z
2021-11-23T22:42:57.000Z
.asv/results/benchmarkers-MacBook-Pro.local/clean.py
qwhelan/conda-benchmarks
7b7de2c0057e0d1ec1d35e2ca4d24aa8ac6b9b69
[ "BSD-3-Clause" ]
1
2021-08-23T05:42:36.000Z
2021-08-23T05:42:36.000Z
.asv/results/benchmarkers-MacBook-Pro.local/clean.py
LaudateCorpus1/conda-benchmarks
7b7de2c0057e0d1ec1d35e2ca4d24aa8ac6b9b69
[ "BSD-3-Clause" ]
8
2019-01-26T09:42:52.000Z
2022-01-28T20:19:21.000Z
import os import json import glob # test_name = 'time_solve_r_essentials_r_base_conda_forge' test_name = 'time_solve_anaconda_44' for f in glob.glob("*.json"): with open(f) as fd: d = json.load(fd) if f != 'machine.json' and d: # timeval = ((d.get('results', {}) or {}).get(test_name, {}) or {}...
37.060606
97
0.503679
import os import json import glob # test_name = 'time_solve_r_essentials_r_base_conda_forge' test_name = 'time_solve_anaconda_44' for f in glob.glob("*.json"): with open(f) as fd: d = json.load(fd) if f != 'machine.json' and d: # timeval = ((d.get('results', {}) or {}).get(test_name, {}) or {}...
0
0
0
8b6a420f8f67c2fa137e731c7ca7ec8cb49f00ef
8,035
py
Python
src/model/setup.py
solevis/PSS-Fleet-Helper
4d36a31b4737a53964cde1625a3d6ff2c04bd76a
[ "MIT" ]
1
2022-01-11T11:52:36.000Z
2022-01-11T11:52:36.000Z
src/model/setup.py
solevis/PSS-Fleet-Helper
4d36a31b4737a53964cde1625a3d6ff2c04bd76a
[ "MIT" ]
16
2021-10-08T10:15:21.000Z
2022-01-23T12:59:03.000Z
src/model/setup.py
solevis/PSS-Fleet-Helper
4d36a31b4737a53964cde1625a3d6ff2c04bd76a
[ "MIT" ]
1
2022-02-07T19:48:26.000Z
2022-02-07T19:48:26.000Z
import asyncio as _asyncio from typing import Callable as _Callable from . import database as _database from .chat_log import PssChatLogger as _PssChatLogger from .reaction_role import ReactionRole as _ReactionRole from .reaction_role import ReactionRoleChange as _ReactionRoleChange from .reaction_role import Reaction...
39.387255
155
0.692097
import asyncio as _asyncio from typing import Callable as _Callable from . import database as _database from .chat_log import PssChatLogger as _PssChatLogger from .reaction_role import ReactionRole as _ReactionRole from .reaction_role import ReactionRoleChange as _ReactionRoleChange from .reaction_role import Reaction...
7,213
0
184
5a22f91d70ec399fbc9a12f833abc6e6fb9565b2
1,178
py
Python
python/main.py
gurux13/babagram
6910130f1373e09154da4ce9a744f94287d754f2
[ "CC0-1.0" ]
5
2022-02-15T20:06:58.000Z
2022-02-18T10:18:03.000Z
python/main.py
SkyFox277/babagram
6910130f1373e09154da4ce9a744f94287d754f2
[ "CC0-1.0" ]
null
null
null
python/main.py
SkyFox277/babagram
6910130f1373e09154da4ce9a744f94287d754f2
[ "CC0-1.0" ]
1
2022-02-16T08:39:03.000Z
2022-02-16T08:39:03.000Z
from button_logic import ButtonLogic from fake_hw import FakeHardware from hardware import Hardware, is_pi from internet_checker import InternetChecker from paper_status import PaperStatus from recording import Recording from tg import Telegram import os if __name__ == '__main__': main()
28.047619
53
0.679966
from button_logic import ButtonLogic from fake_hw import FakeHardware from hardware import Hardware, is_pi from internet_checker import InternetChecker from paper_status import PaperStatus from recording import Recording from tg import Telegram import os def main(): print("CWD:", os) hardware = Hardware() ...
861
0
23
e5fed20291a4c45d2300812bfeebdc77b27f19c1
23,594
py
Python
builds/Beta 0.4/src/main.py
CupOfJoeCode/ivy3d
e31a96b698029f5075fd21fd0bdc52288f842216
[ "MIT" ]
1
2020-10-30T01:15:19.000Z
2020-10-30T01:15:19.000Z
builds/Beta 0.4/src/main.py
CupOfJoeCode/ivy3d
e31a96b698029f5075fd21fd0bdc52288f842216
[ "MIT" ]
null
null
null
builds/Beta 0.4/src/main.py
CupOfJoeCode/ivy3d
e31a96b698029f5075fd21fd0bdc52288f842216
[ "MIT" ]
null
null
null
#Import Modules import pygame as pg from pygame import gfxdraw from math import * from random import randint from time import sleep from glob import glob import easygui import types #Custom Modules from sceneFile import scene,world,player import guibuttons import shapes pg.init() #Initialize pygame VERSION = "Beta 0...
34.494152
284
0.510384
#Import Modules import pygame as pg from pygame import gfxdraw from math import * from random import randint from time import sleep from glob import glob import easygui import types #Custom Modules from sceneFile import scene,world,player import guibuttons import shapes pg.init() #Initialize pygame VERSION = "Beta 0...
12,686
-3
341
4c90072340fcbafd34ed47f1674ba9b82fd3e4b6
121
py
Python
src/daipecore/decorator/tests/notebook_function_fixture.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
1
2021-09-17T09:07:09.000Z
2021-09-17T09:07:09.000Z
src/daipecore/decorator/tests/notebook_function_fixture.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
2
2021-12-20T07:46:33.000Z
2022-02-24T07:02:05.000Z
src/daipecore/decorator/tests/notebook_function_fixture.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
null
null
null
from daipecore.decorator.notebook_function import notebook_function @notebook_function
17.285714
67
0.826446
from daipecore.decorator.notebook_function import notebook_function @notebook_function def load_data(): return 155
10
0
22
2aaecf9aca1b3795f1ceb691479472897e523a63
2,172
py
Python
setup.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
33
2018-10-19T03:41:56.000Z
2022-01-23T16:26:02.000Z
setup.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
318
2018-09-23T15:16:54.000Z
2022-03-31T22:58:55.000Z
setup.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
19
2018-10-22T18:04:18.000Z
2021-12-06T19:49:05.000Z
# coding=utf-8 import re import ast from setuptools import setup from os import path _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('psi/app/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) with open('etc/requirements/common...
33.415385
98
0.632597
# coding=utf-8 import re import ast from setuptools import setup from os import path _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('psi/app/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) with open('etc/requirements/common...
0
0
0
1da281e07bc31e868ecd89b10b7296abf13775a4
1,046
py
Python
fasta/fasta_qual_to_fastq.py
linsalrob/EdwardsLab
3d4eef1dda61c31ce8163d94d86f186275a6e4a4
[ "MIT" ]
30
2015-01-25T16:22:51.000Z
2022-01-20T15:56:47.000Z
fasta/fasta_qual_to_fastq.py
linsalrob/EdwardsLab
3d4eef1dda61c31ce8163d94d86f186275a6e4a4
[ "MIT" ]
2
2020-04-13T15:00:37.000Z
2020-09-23T12:35:59.000Z
fasta/fasta_qual_to_fastq.py
linsalrob/EdwardsLab
3d4eef1dda61c31ce8163d94d86f186275a6e4a4
[ "MIT" ]
24
2015-04-17T00:52:05.000Z
2021-11-26T17:50:01.000Z
""" Convert a fasta/quality files to a fastq file. I can't believe I'm writing this in 2020 """ import os import sys import argparse from roblib import read_fasta, write_fastq, message __author__ = 'Rob Edwards' __copyright__ = 'Copyright 2020, Rob Edwards' __credits__ = ['Rob Edwards'] __license__ = 'MIT' __maintai...
30.764706
87
0.691205
""" Convert a fasta/quality files to a fastq file. I can't believe I'm writing this in 2020 """ import os import sys import argparse from roblib import read_fasta, write_fastq, message __author__ = 'Rob Edwards' __copyright__ = 'Copyright 2020, Rob Edwards' __credits__ = ['Rob Edwards'] __license__ = 'MIT' __maintai...
0
0
0
f0d4eb63ef0ed095a17e63a5117da5f1eae16b93
170
py
Python
002_time.py
a1852rw/004_Python_Training
e88906d7e7f33ca07d5e6ff87d82f526c57e71a8
[ "MIT" ]
null
null
null
002_time.py
a1852rw/004_Python_Training
e88906d7e7f33ca07d5e6ff87d82f526c57e71a8
[ "MIT" ]
null
null
null
002_time.py
a1852rw/004_Python_Training
e88906d7e7f33ca07d5e6ff87d82f526c57e71a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- codint: utf-8 -*- import datetime d1 = datetime.datetime.today() print("today: " ,d1) d2 = datetime.datetime.now() print("now: " ,d2)
11.333333
30
0.623529
#!/usr/bin/env python3 # -*- codint: utf-8 -*- import datetime d1 = datetime.datetime.today() print("today: " ,d1) d2 = datetime.datetime.now() print("now: " ,d2)
0
0
0
101a1972077d97fa989bbf8d25127ff3b11d3c6e
1,276
py
Python
amokryshev/utils/dedup_file_field.py
amokryshev/amokryshev-com
c78c8579ff1c87c07761c58f2b59846d0e16afed
[ "MIT" ]
null
null
null
amokryshev/utils/dedup_file_field.py
amokryshev/amokryshev-com
c78c8579ff1c87c07761c58f2b59846d0e16afed
[ "MIT" ]
null
null
null
amokryshev/utils/dedup_file_field.py
amokryshev/amokryshev-com
c78c8579ff1c87c07761c58f2b59846d0e16afed
[ "MIT" ]
null
null
null
import os from amokryshev import settings from django.db.models.fields.files import FieldFile, FileField class DeduplicatedFieldFile(FieldFile): """The implementation of simple deduplication functional while saving the file, I couldn't find deduplication feature in Django FileField and didn't want to install ...
39.875
97
0.709248
import os from amokryshev import settings from django.db.models.fields.files import FieldFile, FileField class DeduplicatedFieldFile(FieldFile): """The implementation of simple deduplication functional while saving the file, I couldn't find deduplication feature in Django FileField and didn't want to install ...
387
0
27
ac1dbd9bbcd51ffad9cf1a7e52c26d803fb67bd8
13,900
py
Python
texar/torch/modules/pretrained/bert.py
wwt17/texar-pytorch
9fb3ae8f7b541da5c808357033a93fba1817bfbd
[ "Apache-2.0" ]
null
null
null
texar/torch/modules/pretrained/bert.py
wwt17/texar-pytorch
9fb3ae8f7b541da5c808357033a93fba1817bfbd
[ "Apache-2.0" ]
null
null
null
texar/torch/modules/pretrained/bert.py
wwt17/texar-pytorch
9fb3ae8f7b541da5c808357033a93fba1817bfbd
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Texar Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
43.167702
101
0.576043
# Copyright 2019 The Texar Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
8,066
0
53
54fa1fa2261b14d9874756198f220bae47f20d65
7,647
py
Python
loadingmenu.py
documenti-aperti/sw-offline
4dfb34e0a3359c4e765634fdba0b26dcc4ecd32c
[ "MIT" ]
null
null
null
loadingmenu.py
documenti-aperti/sw-offline
4dfb34e0a3359c4e765634fdba0b26dcc4ecd32c
[ "MIT" ]
null
null
null
loadingmenu.py
documenti-aperti/sw-offline
4dfb34e0a3359c4e765634fdba0b26dcc4ecd32c
[ "MIT" ]
null
null
null
#Libraries from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * from os.path import split as PATHSPLIT #Pythons from settings import *
42.483333
134
0.641166
#Libraries from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * from os.path import split as PATHSPLIT #Pythons from settings import * class LoadingMenu(QGroupBox): def __init__(self, parent, w, h): #Initialize father super(LoadingMenu, self).__init__(pare...
6,973
131
370
0fc9e2a005f7bc91a275f0d524d82bc08f3c3abb
14,849
py
Python
congressclient/tests/v1/test_datasource.py
mail2nsrajesh/python-congressclient
ec89672c4a7af02af075f82285f1124ef44d942c
[ "Apache-2.0" ]
null
null
null
congressclient/tests/v1/test_datasource.py
mail2nsrajesh/python-congressclient
ec89672c4a7af02af075f82285f1124ef44d942c
[ "Apache-2.0" ]
null
null
null
congressclient/tests/v1/test_datasource.py
mail2nsrajesh/python-congressclient
ec89672c4a7af02af075f82285f1124ef44d942c
[ "Apache-2.0" ]
null
null
null
# 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 # distrib...
38.270619
79
0.57647
# 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 # distrib...
13,053
419
620
ca4497e32d8554e6566a2fee5b27ac735b5f8a0c
519
py
Python
2.py
gor-dimm/lr3
dcc1ad607a3144381c8f53759ef8546651c82555
[ "MIT" ]
null
null
null
2.py
gor-dimm/lr3
dcc1ad607a3144381c8f53759ef8546651c82555
[ "MIT" ]
null
null
null
2.py
gor-dimm/lr3
dcc1ad607a3144381c8f53759ef8546651c82555
[ "MIT" ]
null
null
null
# Напечатать три данных действительных числа , и сначала в порядке их возрастания, затем - в порядке убывания a = input("Введите первое число: ") b = input("Введите второе число: ") c = input("Введите третье число: ") print(min(a, b, c), (max(min(a, b), min(b, c)) if not min(a, b) == min(b, c) ...
37.071429
109
0.516378
# Напечатать три данных действительных числа , и сначала в порядке их возрастания, затем - в порядке убывания a = input("Введите первое число: ") b = input("Введите второе число: ") c = input("Введите третье число: ") print(min(a, b, c), (max(min(a, b), min(b, c)) if not min(a, b) == min(b, c) ...
0
0
0
2fcb27cc7a4f4d1bdf595bd91bd8f9abe77e380f
784
py
Python
users/migrations/0003_user_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
10
2017-11-25T01:47:20.000Z
2020-03-24T18:28:24.000Z
users/migrations/0003_user_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
319
2017-11-16T09:56:03.000Z
2022-03-28T00:24:37.000Z
users/migrations/0003_user_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
6
2017-11-12T14:04:08.000Z
2021-03-10T09:41:18.000Z
# Generated by Django 2.2.5 on 2019-10-18 17:41 import card.modelfields import django.core.validators from django.db import migrations
34.086957
134
0.576531
# Generated by Django 2.2.5 on 2019-10-18 17:41 import card.modelfields import django.core.validators from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_rename_user_table'), ] operations = [ migrations.AddField( model_name...
0
624
23
bb8089210e933344c7763a5a9f8498d7c72e6f93
2,010
py
Python
controller/packages.py
fossabot/do
18a76fdb611b4d4aca97b71be87d3ab4df470d81
[ "MIT" ]
null
null
null
controller/packages.py
fossabot/do
18a76fdb611b4d4aca97b71be87d3ab4df470d81
[ "MIT" ]
null
null
null
controller/packages.py
fossabot/do
18a76fdb611b4d4aca97b71be87d3ab4df470d81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # BEWARE: to not import this package at startup, # but only into functions otherwise pip will go crazy # (we cannot understand why, but it does!) # which version of python is this? # Retrocompatibility for Python < 3.6 from sultan.api import Sultan try: import_exceptions = (ModuleNotFoundE...
26.8
77
0.651741
# -*- coding: utf-8 -*- # BEWARE: to not import this package at startup, # but only into functions otherwise pip will go crazy # (we cannot understand why, but it does!) # which version of python is this? # Retrocompatibility for Python < 3.6 from sultan.api import Sultan try: import_exceptions = (ModuleNotFoundE...
1,521
0
92
11f97299c93769f17d9b167d578d54fe3e28a177
6,341
py
Python
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
from tkinter import ttk from tkinter import * import requests import json import os # variables page = 0 vplan = None tableContent = [] navigationLabel = None leftArrow = None rightArrow = None tableHeaders = ["Datum", "Kurs", "Stunde", "Fach", "Raum", "Lehrer", "Info"] #tableHeaders = ["ID", "Datum", "Kurs", "Stunde...
23.928302
121
0.657783
from tkinter import ttk from tkinter import * import requests import json import os # variables page = 0 vplan = None tableContent = [] navigationLabel = None leftArrow = None rightArrow = None tableHeaders = ["Datum", "Kurs", "Stunde", "Fach", "Raum", "Lehrer", "Info"] #tableHeaders = ["ID", "Datum", "Kurs", "Stunde...
4,584
0
341
63a798a89b68173775b421c9846d23031e773480
885
py
Python
karabo/simulation/station.py
i4Ds/Karabo-Pipeline
c9a7f120b08b56af93bb953e284b33c107fd865c
[ "MIT" ]
null
null
null
karabo/simulation/station.py
i4Ds/Karabo-Pipeline
c9a7f120b08b56af93bb953e284b33c107fd865c
[ "MIT" ]
42
2022-01-27T14:12:46.000Z
2022-03-31T14:21:26.000Z
karabo/simulation/station.py
i4Ds/Karabo-Pipeline
c9a7f120b08b56af93bb953e284b33c107fd865c
[ "MIT" ]
null
null
null
from karabo.simulation.coordinate_helper import east_north_to_long_lat from karabo.simulation.east_north_coordinate import EastNorthCoordinate
38.478261
101
0.683616
from karabo.simulation.coordinate_helper import east_north_to_long_lat from karabo.simulation.east_north_coordinate import EastNorthCoordinate class Station: def __init__(self, position: EastNorthCoordinate, parent_longitude: float = 0, parent_latitude: float = 0, ...
77
642
23
9c665169a686b2b7b6718c895e3cab0b8a5b858a
3,386
py
Python
spec2model/file_manager.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
spec2model/file_manager.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
spec2model/file_manager.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import spec2model.config_manager as yml_manager config_file_path = 'spec2model/configuration.yml'
40.795181
108
0.682812
from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import spec2model.config_manager as yml_manager config_file_path = 'spec2model/configuration.yml' class FolderDigger: gauth = "This variable will have the Google Authorization file" specs_id = '0Bw_p-HKWUjHoNThZOWNKbGhOODg' drive =...
2,779
411
23
6f303a9a3b31a25b5dc723634c5d2449fbf6c36e
2,581
py
Python
postprocessing/check_budgets_balance/futurizedReadBinaryData.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
null
null
null
postprocessing/check_budgets_balance/futurizedReadBinaryData.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
null
null
null
postprocessing/check_budgets_balance/futurizedReadBinaryData.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
1
2022-01-28T22:22:04.000Z
2022-01-28T22:22:04.000Z
#! /usr/bin/python3 # Author: Cavyn VonDeylen # Date: August 2010 # Larson-Group UWM # Updated to python 3 by Tyler Cernik from __future__ import print_function from __future__ import division from __future__ import unicode_literals import struct # Handles binary data #------------------------------------------------...
34.878378
99
0.588532
#! /usr/bin/python3 # Author: Cavyn VonDeylen # Date: August 2010 # Larson-Group UWM # Updated to python 3 by Tyler Cernik from __future__ import print_function from __future__ import division from __future__ import unicode_literals import struct # Handles binary data #------------------------------------------------...
0
0
0