hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
9ed73e407562b79ec431ff9e6ae1ee26f6ba03da
402
py
Python
PyMOTW/source/collections/collections_deque_rotate.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
PyMOTW/source/collections/collections_deque_rotate.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2020-07-18T03:52:03.000Z
2020-07-18T04:18:01.000Z
PyMOTW/source/collections/collections_deque_rotate.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
2
2021-03-06T04:28:32.000Z
2021-03-06T04:59:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """Manipulating the order of items in a deque. """ #end_pymotw_header import collections d = collections.deque(range(10)) print('Normal :', d) d = collections.deque(range(10)) d.rotate(2) print('Right rotation...
18.272727
55
0.689055
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """Manipulating the order of items in a deque. """ #end_pymotw_header import collections d = collections.deque(range(10)) print('Normal :', d) d = collections.deque(range(10)) d.rotate(2) print('Right rotation...
0
0
0
0
0
0
0
0
0
eec9a49cf9c8c2f5bd04068ea05aa3b970a23638
4,887
py
Python
curve_fitting/curve_fitting.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
3
2020-04-02T23:38:02.000Z
2020-04-08T18:57:16.000Z
curve_fitting/curve_fitting.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
24
2020-04-03T13:58:28.000Z
2021-04-27T02:12:07.000Z
curve_fitting/curve_fitting.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
null
null
null
import numpy as np import scipy import scipy.optimize import argparse import autograd.scipy import autograd.numpy as ag_np import autograd ## TODO: # - Need a mapping from timesteps to dates ################## Functions for fitting data ######################## #####################################################...
30.166667
112
0.565173
import numpy as np import scipy import scipy.optimize import argparse import sklearn.metrics import matplotlib.pyplot as plt import autograd.scipy import autograd.numpy as ag_np import autograd import pandas as pd ## TODO: # - Need a mapping from timesteps to dates ################## Functions for fitting data ####...
0
0
0
0
0
1,993
0
9
250
bf1d5832a330171a8f98c1fe7bacdfe8b23b8baa
3,059
py
Python
debug_tools.py
Obs01ete/pytorch-detection
4af02e232b38fd202bb348e9bbe7373c7eba165b
[ "MIT" ]
11
2018-07-24T09:31:19.000Z
2021-04-07T06:20:38.000Z
debug_tools.py
Obs01ete/pytorch-detection
4af02e232b38fd202bb348e9bbe7373c7eba165b
[ "MIT" ]
null
null
null
debug_tools.py
Obs01ete/pytorch-detection
4af02e232b38fd202bb348e9bbe7373c7eba165b
[ "MIT" ]
1
2019-07-10T05:48:15.000Z
2019-07-10T05:48:15.000Z
import os import cv2 import itertools import numpy as np def dump_images( names, pil_images, annotations, detections, stats, labelmap, dir): """ Dumps images with bbox overlays to disk. :param names: batch of sample names :param pil_images: batch of original PIL images :param anno...
37.304878
107
0.459954
import os import cv2 import itertools import numpy as np def dump_images( names, pil_images, annotations, detections, stats, labelmap, dir): """ Dumps images with bbox overlays to disk. :param names: batch of sample names :param pil_images: batch of original PIL images :param anno...
0
0
0
0
0
0
0
0
0
5d1fdef795f2ddcf487065b8229340dd1325c90f
4,984
py
Python
playhouse/tests/test_gfk.py
alexlatchford/peewee
f3795767f7b46c8b5335ea0257df2a1d269fc85b
[ "MIT" ]
1
2017-04-27T15:04:48.000Z
2017-04-27T15:04:48.000Z
playhouse/tests/test_gfk.py
alexlatchford/peewee
f3795767f7b46c8b5335ea0257df2a1d269fc85b
[ "MIT" ]
null
null
null
playhouse/tests/test_gfk.py
alexlatchford/peewee
f3795767f7b46c8b5335ea0257df2a1d269fc85b
[ "MIT" ]
3
2019-02-07T04:16:40.000Z
2021-05-02T17:07:18.000Z
from playhouse.tests.base import database_initializer db = database_initializer.get_in_memory_database()
29.491124
90
0.57183
from peewee import * from playhouse.gfk import * from playhouse.tests.base import database_initializer from playhouse.tests.base import ModelTestCase db = database_initializer.get_in_memory_database() class BaseModel(Model): class Meta: database = db def add_tag(self, tag): t = Tag(tag=tag) ...
0
0
0
4,640
0
0
0
30
204
25e8763f549dbe42f23a96b48a41e83507ebf36a
196
py
Python
contrib/plugins/example/cranecli_plugin_example/__init__.py
friendliai/crane-public
6f173ebc676f888f097e1d878b600a91a1637867
[ "Apache-2.0" ]
2
2022-03-13T16:30:34.000Z
2022-03-13T17:01:17.000Z
contrib/plugins/example/cranecli_plugin_example/__init__.py
friendliai/crane-public
6f173ebc676f888f097e1d878b600a91a1637867
[ "Apache-2.0" ]
1
2022-03-13T16:30:20.000Z
2022-03-13T16:30:20.000Z
contrib/plugins/example/cranecli_plugin_example/__init__.py
friendliai/crane-public
6f173ebc676f888f097e1d878b600a91a1637867
[ "Apache-2.0" ]
null
null
null
import typer app = typer.Typer()
16.333333
31
0.683673
import typer app = typer.Typer() @app.callback('example_plugin') def check_cmd_group(): """Example plugin.""" @app.command("first_command") def _first_command(): """Example command."""
0
116
0
0
0
0
0
0
46
8e3971f397a3ef8f4a832739b918a40f05532204
8,841
py
Python
src/state_test.py
mapto/-
532ec719c44eaad405d1bd7b339e92ecbdbe9021
[ "MIT" ]
null
null
null
src/state_test.py
mapto/-
532ec719c44eaad405d1bd7b339e92ecbdbe9021
[ "MIT" ]
null
null
null
src/state_test.py
mapto/-
532ec719c44eaad405d1bd7b339e92ecbdbe9021
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from state import Board, Piece def test_2_players_board_init(monkeypatch): """Make sure if we have just two players in a 4 corner board for them to be at the opposite corners instead of next to each other. """ board = Board.create([1, 3]) # Redundant assert...
29.767677
86
0.651058
#!/usr/bin/env python3 # coding: utf-8 import pytest # type: ignore from state import Board, Piece, GameState, GameMove import dataclasses, json def test_default_board_init(monkeypatch): board = Board.create() # Defaults asserts assert board.players == [0, 1, 2, 3] assert board.pieces_per_player ==...
0
0
0
0
0
5,855
0
16
314
c2b3c5c10be5ab1bf07ac062a8e5b7ccb3107bd2
697
py
Python
hcipy/atmosphere/__init__.py
kian1377/hcipy
f398e82797b3adbc263e9a35d9389ba7b62342f2
[ "MIT" ]
55
2018-06-29T01:13:26.000Z
2022-03-13T09:18:06.000Z
hcipy/atmosphere/__init__.py
kian1377/hcipy
f398e82797b3adbc263e9a35d9389ba7b62342f2
[ "MIT" ]
121
2018-06-12T05:01:05.000Z
2022-02-10T20:11:13.000Z
hcipy/atmosphere/__init__.py
kian1377/hcipy
f398e82797b3adbc263e9a35d9389ba7b62342f2
[ "MIT" ]
21
2018-07-09T11:01:29.000Z
2022-03-15T02:47:24.000Z
__all__ = [ 'MultiLayerAtmosphere', 'AtmosphericLayer', 'phase_covariance_von_karman', 'phase_structure_function_von_karman', 'power_spectral_density_von_karman', 'Cn_squared_from_fried_parameter', 'fried_parameter_from_Cn_squared', 'seeing_to_fried_parameter', 'fried_parameter_to_se...
30.304348
42
0.790531
__all__ = [ 'MultiLayerAtmosphere', 'AtmosphericLayer', 'phase_covariance_von_karman', 'phase_structure_function_von_karman', 'power_spectral_density_von_karman', 'Cn_squared_from_fried_parameter', 'fried_parameter_from_Cn_squared', 'seeing_to_fried_parameter', 'fried_parameter_to_se...
0
0
0
0
0
0
0
83
111
640d992c68c2edd7b063e2365b93402278063ebb
2,794
py
Python
trait_documenter/module_trait_documenter.py
enthought/trait-documenter
b1da37986008d2558a0e9b13b13c7a75e7b15c7a
[ "BSD-3-Clause" ]
null
null
null
trait_documenter/module_trait_documenter.py
enthought/trait-documenter
b1da37986008d2558a0e9b13b13c7a75e7b15c7a
[ "BSD-3-Clause" ]
18
2015-07-21T17:35:25.000Z
2021-06-15T07:15:40.000Z
trait_documenter/module_trait_documenter.py
enthought/trait-documenter
b1da37986008d2558a0e9b13b13c7a75e7b15c7a
[ "BSD-3-Clause" ]
null
null
null
# --------------------------------------------------------------------------- # # Copyright (c) 2014, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in /LICENSE.txt and may be redistributed only # under the conditions described in...
34.925
80
0.6267
# --------------------------------------------------------------------------- # # Copyright (c) 2014, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in /LICENSE.txt and may be redistributed only # under the conditions described in...
0
274
0
1,731
0
0
0
119
69
c86e3d3957b37e243483942d1307c1790c27f327
1,478
py
Python
photos/views.py
TracyOgutu/PersonalGallery
e1c856b2ae97beaa9a0d863bf5577566f0561648
[ "Unlicense" ]
null
null
null
photos/views.py
TracyOgutu/PersonalGallery
e1c856b2ae97beaa9a0d863bf5577566f0561648
[ "Unlicense" ]
4
2020-06-06T00:18:34.000Z
2021-09-08T01:32:07.000Z
photos/views.py
TracyOgutu/PersonalGallery
e1c856b2ae97beaa9a0d863bf5577566f0561648
[ "Unlicense" ]
null
null
null
# Create your views here.
36.95
111
0.716509
from django.shortcuts import render from django.http import HttpResponse from .models import Image # Create your views here. def welcome(request): photos = Image.display_photos() return render(request, 'welcome.html',{"photos":photos}) def singlephoto(request,photoid): try: singlephoto=Image.obje...
0
0
0
0
0
1,261
0
33
157
443055790eec7eadaf8911fdb0558e270c1e2398
813
py
Python
src/dictionaries/frequency/wordfreq/wordfreq-en.py
henge-tech/henge
33d958cf4e170fe27c92fd6dd426558d81ba46cb
[ "MIT" ]
2
2016-08-13T03:14:37.000Z
2016-08-21T14:09:13.000Z
src/dictionaries/frequency/wordfreq/wordfreq-en.py
koseki/wordcircle
17472c450b89fc780765dcb8228b27eb60dd6ea5
[ "MIT" ]
9
2017-09-18T08:37:47.000Z
2022-02-26T03:35:15.000Z
src/dictionaries/frequency/wordfreq/wordfreq-en.py
koseki/wordcircle
17472c450b89fc780765dcb8228b27eb60dd6ea5
[ "MIT" ]
null
null
null
#! /usr/bin/env python from wordfreq import word_frequency, iter_wordlist import regex iter = iter_wordlist('en', 'large') re_nonlatin = regex.compile('[^-_\p{Latin}\d\.\']') re_alphabet = regex.compile('[a-z]', regex.IGNORECASE) re_underscore = regex.compile('_') last_freq = -1 position = 0 current_line = 0 for wo...
22.583333
54
0.635916
#! /usr/bin/env python from wordfreq import word_frequency, iter_wordlist import regex iter = iter_wordlist('en', 'large') re_nonlatin = regex.compile('[^-_\p{Latin}\d\.\']') re_alphabet = regex.compile('[a-z]', regex.IGNORECASE) re_underscore = regex.compile('_') last_freq = -1 position = 0 current_line = 0 for wo...
2
0
0
0
0
0
0
0
0
f751044e28cb4bad581409c61f6d9e220bf09d27
3,184
py
Python
setup.py
unicef/etools-permissions
7a6da87c9829290af3cea458314e60dd6d1239fd
[ "Apache-2.0" ]
null
null
null
setup.py
unicef/etools-permissions
7a6da87c9829290af3cea458314e60dd6d1239fd
[ "Apache-2.0" ]
null
null
null
setup.py
unicef/etools-permissions
7a6da87c9829290af3cea458314e60dd6d1239fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import ast import codecs import os.path import re import sys from codecs import open from setuptools import find_packages, setup ROOT = os.path.realpath(os.path.dirname(__file__)) init = os.path.join(ROOT, 'src', 'etools_permissions', '__init__.py') _version_re = re.compi...
31.524752
139
0.617148
#!/usr/bin/env python # -*- coding: utf-8 -*- import ast import codecs import os.path import re import subprocess import sys from codecs import open from distutils import log from distutils.errors import DistutilsError from setuptools import find_packages, setup from setuptools.command.install import install from setu...
0
0
0
602
0
756
0
88
202
a29321a5dfee1bcf168d56d8a42fcfb8f629e1cb
1,123
py
Python
Python3/Books/Douson/chapter12/rotate_sprite.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter12/rotate_sprite.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter12/rotate_sprite.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Rotate Sprite # Demonstrates rotating a sprite from livewires import games games.init(screen_width = 640, screen_height = 480, fps = 50) main()
28.794872
70
0.606411
# Rotate Sprite # Demonstrates rotating a sprite from livewires import games games.init(screen_width = 640, screen_height = 480, fps = 50) class Ship(games.Sprite): """ A rotating ship. """ def update(self): """ Rotate based on keys pressed. """ if games.keyboard.is_pressed(games.K_RIGHT): ...
0
0
0
581
0
346
0
0
47
0e56b0b9402261570a2145b88b4a3fc791c04b2d
106
py
Python
Code/data/__init__.py
SimpleLonely/DataIntegration
7222c5fde66608a8fa68ae398c5f8116fe3776f3
[ "MIT" ]
null
null
null
Code/data/__init__.py
SimpleLonely/DataIntegration
7222c5fde66608a8fa68ae398c5f8116fe3776f3
[ "MIT" ]
2
2021-03-31T19:52:58.000Z
2021-12-13T20:43:37.000Z
Code/data/__init__.py
SimpleLonely/DataIntegration
7222c5fde66608a8fa68ae398c5f8116fe3776f3
[ "MIT" ]
1
2020-07-04T12:26:27.000Z
2020-07-04T12:26:27.000Z
__all__ = ['get_bond_yields','get_company','get_fund','get_manager','get_stock_holders','return_rate_dao']
106
106
0.792453
__all__ = ['get_bond_yields','get_company','get_fund','get_manager','get_stock_holders','return_rate_dao']
0
0
0
0
0
0
0
0
0
c5d9bcd78d1ba9621a55491bdce0f549cc198d5e
964
py
Python
examples/07_compare_extthiem3d_grfsteady.py
JarnoHerr/AnaFlow
a7c56cdadf90d652f80bc1e1d38d3687d0365a63
[ "MIT" ]
null
null
null
examples/07_compare_extthiem3d_grfsteady.py
JarnoHerr/AnaFlow
a7c56cdadf90d652f80bc1e1d38d3687d0365a63
[ "MIT" ]
null
null
null
examples/07_compare_extthiem3d_grfsteady.py
JarnoHerr/AnaFlow
a7c56cdadf90d652f80bc1e1d38d3687d0365a63
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from matplotlib import pyplot as plt from anaflow import ext_thiem_3d, ext_grf_steady from anaflow.tools.coarse_graining import K_CG rad = np.geomspace(0.05, 4) # radius from the pumping well in [0, 4] r_ref = 2.0 # reference radius var = 0.5 ...
35.703704
107
0.645228
# -*- coding: utf-8 -*- import numpy as np from matplotlib import pyplot as plt from anaflow import ext_thiem_3d, ext_grf_steady from anaflow.tools.coarse_graining import K_CG rad = np.geomspace(0.05, 4) # radius from the pumping well in [0, 4] r_ref = 2.0 # reference radius var = 0.5 ...
0
0
0
0
0
0
0
0
0
51531174e63cb89f2b96f409e0af0903be0a85f6
2,339
py
Python
trodesnetwork-0.0.9/trodesnetwork-0.0.9/trodesnetwork/trodes/digital.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
1
2021-11-13T17:21:44.000Z
2021-11-13T17:21:44.000Z
trodesnetwork-0.0.9/trodesnetwork-0.0.9/trodesnetwork/trodes/digital.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
null
null
null
trodesnetwork-0.0.9/trodesnetwork-0.0.9/trodesnetwork/trodes/digital.py
JohnLauFoo/clc_packages_Yu
259f01d9b5c02154ce258734d519ae8995cd0991
[ "MIT" ]
null
null
null
import trodesnetwork.socket as socket import trodesnetwork.trodes as trodes ''' Use this class to subscribe to analog sources Requires input of a channel map object. The channel map is just a JSON-like dictionary of the XML HardwareConfiguration node in the `.trodesconfig` file. Requires a server_address to connect ...
33.414286
98
0.690894
import trodesnetwork.socket as socket import trodesnetwork.trodes as trodes import threading ''' Use this class to subscribe to analog sources Requires input of a channel map object. The channel map is just a JSON-like dictionary of the XML HardwareConfiguration node in the `.trodesconfig` file. Requires a server_a...
0
0
0
1,624
0
0
0
-5
90
38776c3e628fb4fa238fe4f7201f3af52af17c74
17,389
py
Python
qiskit/transpiler/passes/mapping/legacy_swap.py
biplab37/qiskit-aakash
e10b204887606f1f75bdfde182bb0c6d0a322c68
[ "Apache-2.0" ]
22
2019-08-15T04:39:15.000Z
2022-03-06T05:17:04.000Z
qiskit/transpiler/passes/mapping/legacy_swap.py
biplab37/qiskit-aakash
e10b204887606f1f75bdfde182bb0c6d0a322c68
[ "Apache-2.0" ]
2
2020-10-26T07:12:12.000Z
2021-12-09T16:22:51.000Z
qiskit/transpiler/passes/mapping/legacy_swap.py
biplab37/qiskit-aakash
e10b204887606f1f75bdfde182bb0c6d0a322c68
[ "Apache-2.0" ]
9
2019-09-05T05:33:00.000Z
2021-10-09T16:04:53.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
43.690955
98
0.546782
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
0
0
0
16,458
0
0
0
125
179
cc0e6a9f0ec7d82d3157a57807c5e477b2c5ecae
616
py
Python
src/unicon/plugins/ironware/settings.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/ironware/settings.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/ironware/settings.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
""" Module: unicon.plugins.ironware.settings Author: James Di Trapani <james@ditrapani.com.au> - https://github.com/jamesditrapani Description: Define/Override Generic Settings specific to the Ironware NOS """ __author__ = "James Di Trapani <james@ditrapani.com.au>"
24.64
81
0.717532
""" Module: unicon.plugins.ironware.settings Author: James Di Trapani <james@ditrapani.com.au> - https://github.com/jamesditrapani Description: Define/Override Generic Settings specific to the Ironware NOS """ from unicon.plugins.generic.settings import GenericSettings __author__ = "James Di Trapani <ja...
0
0
0
249
0
0
0
38
46
bcfabb13a4472146d128e09dc0769e2bdd86cab1
1,354
py
Python
exemples/get-leaf-location.py
RenzoF/pycarwings2
3fd51b4211fa39bc40b0121f7648fbcb79cab2bc
[ "Apache-2.0" ]
1
2020-10-28T13:59:34.000Z
2020-10-28T13:59:34.000Z
exemples/get-leaf-location.py
gym22/pycarwings2
d4dfe9cd198a1207ae18ec17c8345c7e3a545a39
[ "Apache-2.0" ]
null
null
null
exemples/get-leaf-location.py
gym22/pycarwings2
d4dfe9cd198a1207ae18ec17c8345c7e3a545a39
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #import sys # sys.path.append('/home/ruben/leaf/pycarwings2/pycarwings2') import pycarwings2 import time from ConfigParser import SafeConfigParser import logging import sys import pprint logging.basicConfig(stream=sys.stdout, level=logging.ERROR) parser = SafeConfigParser() candidates = ['config....
28.208333
101
0.717134
#!/usr/bin/python #import sys # sys.path.append('/home/ruben/leaf/pycarwings2/pycarwings2') import pycarwings2 import time from ConfigParser import SafeConfigParser import logging import sys import pprint logging.basicConfig(stream=sys.stdout, level=logging.ERROR) parser = SafeConfigParser() candidates = ['config....
0
0
0
0
0
0
0
0
0
87528d07a78c77bbc785544cc66be4a15f2c6f6b
521
py
Python
files/main.py
Jelaque/Topics-on-database
fd9ab659203dbd205b9e255d920b4ebc1cacd2a5
[ "MIT" ]
null
null
null
files/main.py
Jelaque/Topics-on-database
fd9ab659203dbd205b9e255d920b4ebc1cacd2a5
[ "MIT" ]
null
null
null
files/main.py
Jelaque/Topics-on-database
fd9ab659203dbd205b9e255d920b4ebc1cacd2a5
[ "MIT" ]
null
null
null
from distances import recommender s = recommender(0) s.readMovies() ''' s = recommender(0,k=3,metric='manhattan') s.readBooks() #print(s.jaccard(s.data['Stephen'],s.data['Amy'])) print(s.ProjectedRanting('Patrick C','Scarface')) ''' ''' r = recommenderMl100k(0,metric='cosine') r.loadMovieLens('../datasets/ml-100k/') ...
26.05
53
0.706334
from ml100k import recommenderMl100k import time as tm from distances import recommender s = recommender(0) s.readMovies() ''' s = recommender(0,k=3,metric='manhattan') s.readBooks() #print(s.jaccard(s.data['Stephen'],s.data['Amy'])) print(s.ProjectedRanting('Patrick C','Scarface')) ''' ''' r = recommenderMl100k(0,me...
0
0
0
0
0
0
0
11
44
facc083e9f0d0807df4902b88bbc45dae0e14c0e
13,750
py
Python
notebooks/scripts/graphs.py
mtsnel006/covid19za
5db79ecb616041ff7980230d5995d90d6dbc86f5
[ "MIT" ]
266
2020-03-13T13:39:38.000Z
2022-03-18T06:51:57.000Z
notebooks/scripts/graphs.py
mtsnel006/covid19za
5db79ecb616041ff7980230d5995d90d6dbc86f5
[ "MIT" ]
287
2020-03-13T12:22:50.000Z
2022-02-22T16:06:24.000Z
notebooks/scripts/graphs.py
mtsnel006/covid19za
5db79ecb616041ff7980230d5995d90d6dbc86f5
[ "MIT" ]
263
2020-03-13T11:44:05.000Z
2022-03-27T15:11:52.000Z
import os import seaborn as sns import pandas as pd import numpy as np import matplotlib.pyplot as plt from textwrap import wrap ### NOTE: `conda install basemap` import conda conda_file_dir = conda.__file__ conda_dir = conda_file_dir.split('lib')[0] proj_lib = os.path.join(os.path.join(conda_dir, 'share'), 'proj') os....
47.250859
188
0.627564
import os import seaborn as sns import pandas as pd import numpy as np import matplotlib.pyplot as plt from datetime import datetime from textwrap import wrap ### NOTE: `conda install basemap` import conda conda_file_dir = conda.__file__ conda_dir = conda_file_dir.split('lib')[0] proj_lib = os.path.join(os.path.join(co...
0
0
0
0
0
0
0
8
22
05cf4149c5c572c18ab5076c38f9371a9b8b39cc
855
py
Python
lesson-04/classwork6.py
weibak/lessons
414f030650427d7167c2e58ecb9f858c2e5edb40
[ "BSD-3-Clause" ]
null
null
null
lesson-04/classwork6.py
weibak/lessons
414f030650427d7167c2e58ecb9f858c2e5edb40
[ "BSD-3-Clause" ]
null
null
null
lesson-04/classwork6.py
weibak/lessons
414f030650427d7167c2e58ecb9f858c2e5edb40
[ "BSD-3-Clause" ]
null
null
null
""" , n m ( n m), x . """ start_number = int(input("Enter start number:")) end_number = int(input("Enter end number:")) # Generate elements from start_number to end_number (including) my_count = 0 for element in range(start_number, end_number + 1): # Check if this element is the prime number ...
29.482759
102
0.676023
""" Вывести в порядке возрастания все простые числа, расположенные между n и m (включая сами числа n и m), а также количество x этих чисел. """ start_number = int(input("Enter start number:")) end_number = int(input("Enter end number:")) # Generate elements from start_number to end_number (including) my_count = 0 fo...
204
0
0
0
0
0
0
0
0
537aa9bfd787ebe3ac95f20a3cad16a9e5582a19
1,131
py
Python
test2.py
Atul-Anand-Jha/Email_Automation_Python
2bd558ef4d58d2ad9e1807b227872db655dfa0bd
[ "MIT" ]
2
2020-11-07T13:50:33.000Z
2020-11-09T04:34:52.000Z
test2.py
Atul-Anand-Jha/Email-Automation-Python
2bd558ef4d58d2ad9e1807b227872db655dfa0bd
[ "MIT" ]
null
null
null
test2.py
Atul-Anand-Jha/Email-Automation-Python
2bd558ef4d58d2ad9e1807b227872db655dfa0bd
[ "MIT" ]
null
null
null
import pandas as pd import smtplib import imghdr from email.message import EmailMessage SenderAddress = "XYZ@gmail.com" password = "ndXX@XX3$#XXX" e = pd.read_excel("email.xlsx") emails = e['Emails'].values names = e["Names"].values file = "banner.jpg" msg = EmailMessage() msg['Subject'] = "Hello world - dynamic" msg...
28.275
88
0.697613
import pandas as pd import smtplib import imghdr from email.message import EmailMessage SenderAddress = "XYZ@gmail.com" password = "ndXX@XX3$#XXX" e = pd.read_excel("email.xlsx") emails = e['Emails'].values names = e["Names"].values file = "banner.jpg" msg = EmailMessage() msg['Subject'] = "Hello world - dynamic" msg...
0
0
0
0
0
0
0
0
0
aa61305c266822997c121859d13f0a5ce52bfaef
737
py
Python
ocrd_models/ocrd_page_user_methods/set_points.py
hnesk/core
5a79220bc31572410e705d13ca178cf284cdc9fb
[ "Apache-2.0" ]
91
2018-05-23T12:52:11.000Z
2022-03-19T20:43:49.000Z
ocrd_models/ocrd_page_user_methods/set_points.py
hnesk/core
5a79220bc31572410e705d13ca178cf284cdc9fb
[ "Apache-2.0" ]
636
2018-04-23T15:57:31.000Z
2022-03-31T11:46:11.000Z
ocrd_models/ocrd_page_user_methods/set_points.py
hnesk/core
5a79220bc31572410e705d13ca178cf284cdc9fb
[ "Apache-2.0" ]
25
2018-05-22T11:53:09.000Z
2021-07-20T13:07:43.000Z
def set_points(self, points): """ Set coordinate polygon by given string. Moreover, invalidate the parent's ``pc:AlternativeImage``s (because they will have been cropped with a bbox of the previous polygon). """ if hasattr(self, 'parent_object_'): parent = self.parent_object_ ...
43.352941
113
0.693351
def set_points(self, points): """ Set coordinate polygon by given string. Moreover, invalidate the parent's ``pc:AlternativeImage``s (because they will have been cropped with a bbox of the previous polygon). """ if hasattr(self, 'parent_object_'): parent = self.parent_object_ ...
0
0
0
0
0
0
0
0
0
01053b6bf07baa6c1e179859a8d3d680039a21b1
3,455
py
Python
utils.py
JiekaiJia/pettingzoo_comunication
1e85d5edb87ac867385649616e030284c0b6910f
[ "MIT" ]
1
2021-11-14T13:16:16.000Z
2021-11-14T13:16:16.000Z
utils.py
JiekaiJia/pettingzoo_comunication
1e85d5edb87ac867385649616e030284c0b6910f
[ "MIT" ]
null
null
null
utils.py
JiekaiJia/pettingzoo_comunication
1e85d5edb87ac867385649616e030284c0b6910f
[ "MIT" ]
null
null
null
"""This module provides functions that make sure environment to be compatible with RLlib. If Rllib is not used, please directly use the wrapper in comm_channel.py.""" def main_comm_env(base_env, comm_dict): """Wrap the communication channel into Pettingzoo main environment, and padding the environment.""" ret...
33.221154
118
0.661939
"""This module provides functions that make sure environment to be compatible with RLlib. If Rllib is not used, please directly use the wrapper in comm_channel.py.""" import numpy as np from pettingzoo.utils.conversions import to_parallel_wrapper from pettingzoo.utils.wrappers import AssertOutOfBoundsWrapper, OrderEnf...
0
0
0
875
0
1,330
0
245
329
0820dda78f060e137ddbdd471c8564150d4f60cc
1,844
py
Python
devtest/roles/__init__.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
devtest/roles/__init__.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
devtest/roles/__init__.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "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 # distributed under the ...
27.939394
80
0.70282
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the ...
0
0
0
727
0
0
0
-11
69
4112cc494680d71604be0aece6b9d93ed3587371
555
py
Python
tests/unitary/LiquidityGaugeV3/test_checkpoint.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
217
2020-06-24T14:01:21.000Z
2022-03-29T08:35:24.000Z
tests/unitary/LiquidityGaugeV3/test_checkpoint.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
25
2020-06-24T09:39:02.000Z
2022-03-22T17:03:00.000Z
tests/unitary/LiquidityGaugeV3/test_checkpoint.py
AqualisDAO/curve-dao-contracts
beec73a068da8ed01c0f710939dc5adb776d565b
[ "MIT" ]
110
2020-07-10T22:45:49.000Z
2022-03-29T02:51:08.000Z
YEAR = 86400 * 365
29.210526
68
0.727928
import brownie YEAR = 86400 * 365 def test_user_checkpoint(accounts, gauge_v3): gauge_v3.user_checkpoint(accounts[1], {"from": accounts[1]}) def test_user_checkpoint_new_period(accounts, chain, gauge_v3): gauge_v3.user_checkpoint(accounts[1], {"from": accounts[1]}) chain.sleep(int(YEAR * 1.1)) gaug...
0
0
0
0
0
448
0
-7
91
19ecc76fe435519b4c3484ec1cf271408e0a23af
85
py
Python
src/Paterns/run.py
seyedalirahimi/tehran-stocks
e22950f0534ad4962c9a2f00560675a1d8c8d94d
[ "MIT" ]
null
null
null
src/Paterns/run.py
seyedalirahimi/tehran-stocks
e22950f0534ad4962c9a2f00560675a1d8c8d94d
[ "MIT" ]
null
null
null
src/Paterns/run.py
seyedalirahimi/tehran-stocks
e22950f0534ad4962c9a2f00560675a1d8c8d94d
[ "MIT" ]
null
null
null
from ta.momentum import rsi if __name__ == "__main__": _rsi14 = rsi(Closes, 14)
17
28
0.682353
from ta.momentum import rsi if __name__ == "__main__": _rsi14 = rsi(Closes, 14)
0
0
0
0
0
0
0
0
0
6a17f2469eaf20aab41dc48c7e885593c2f915e8
2,322
py
Python
setup.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
null
null
null
setup.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
null
null
null
setup.py
pberkes/enaml
cbcbee929e3117dfe56c0b06dc2385acc832b0e8
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
25.8
79
0.518949
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
0
0
0
0
0
0
0
0
0
9f11efd5d577c1b8e6eeefaf3cd91e56b5e55c1d
566
py
Python
python_program/myProject/ProjectTest/TestCase/test_information.py
luei1987kg/July_Learn
3ac6eab5d4442f9e4c2a254e0933382a52921b99
[ "MIT" ]
null
null
null
python_program/myProject/ProjectTest/TestCase/test_information.py
luei1987kg/July_Learn
3ac6eab5d4442f9e4c2a254e0933382a52921b99
[ "MIT" ]
null
null
null
python_program/myProject/ProjectTest/TestCase/test_information.py
luei1987kg/July_Learn
3ac6eab5d4442f9e4c2a254e0933382a52921b99
[ "MIT" ]
null
null
null
__author__='administrator' # -*- coding:utf-8 -*- # if __name__=="__main__": # unittest.main() # tester=Test() # tester.setUp() # tester.test01() # tester.test02() # tester.test03() # tester.tearDown()
20.962963
31
0.558304
__author__='administrator' # -*- coding:utf-8 -*- import unittest import time class Test(unittest.TestCase): def setUp(self): print "start!" def tearDown(self): time.sleep(1) print"end!" def test01(self): print"执行测试用例01" def test03(self): print"执行测试...
54
0
0
255
0
0
0
-16
69
6f50dd888966d3ffd28e4e4c221644a077b33442
15,416
py
Python
lenstronomy/ImSim/Numerics/convolution.py
lucateo/lenstronomy
3ab6cfd4adea2222f02d3f0f1a9cb5390c533aab
[ "MIT" ]
107
2017-08-25T20:03:51.000Z
2022-03-30T19:52:21.000Z
lenstronomy/ImSim/Numerics/convolution.py
pierrefleury/lenstronomy
5973f9b45761bab434bb273a1882ca3b45f5264b
[ "MIT" ]
235
2017-06-07T13:30:53.000Z
2022-03-28T12:44:04.000Z
lenstronomy/ImSim/Numerics/convolution.py
pierrefleury/lenstronomy
5973f9b45761bab434bb273a1882ca3b45f5264b
[ "MIT" ]
68
2018-02-01T15:47:20.000Z
2022-03-27T12:44:32.000Z
import threading #from scipy._lib._version import NumpyVersion _rfft_mt_safe = True # (NumpyVersion(np.__version__) >= '1.9.0.dev-e24486e') _rfft_lock = threading.Lock() import lenstronomy.Util.kernel_util as kernel_util import lenstronomy.Util.util as util import lenstronomy.Util.image_util as image_util from lenst...
41.219251
153
0.644006
from scipy import fftpack, ndimage, signal import numpy as np import threading #from scipy._lib._version import NumpyVersion _rfft_mt_safe = True # (NumpyVersion(np.__version__) >= '1.9.0.dev-e24486e') _rfft_lock = threading.Lock() import lenstronomy.Util.kernel_util as kernel_util import lenstronomy.Util.util as uti...
0
14,504
0
0
0
316
0
18
182
9b6f47641a5011280fdcbe941a421e6f089aa809
490
py
Python
2_3_plistlib.py
gregneagle/mtc2013_python
210aa9f216a143f1723d1f9b04dfc79c545f4df6
[ "Apache-2.0" ]
4
2015-05-23T16:05:45.000Z
2017-09-17T17:12:56.000Z
2_3_plistlib.py
gregneagle/mtc2013_python
210aa9f216a143f1723d1f9b04dfc79c545f4df6
[ "Apache-2.0" ]
null
null
null
2_3_plistlib.py
gregneagle/mtc2013_python
210aa9f216a143f1723d1f9b04dfc79c545f4df6
[ "Apache-2.0" ]
null
null
null
import plistlib filename = "/Applications/Safari.app/Contents/Info.plist" info = plistlib.readPlist(filename) info["CFBundleGetInfoString"] version = info["CFBundleShortVersionString"] print version print info["CFBundleURLTypes"] print info["CFBundleURLTypes"][0] print info["CFBundleURLTypes"][0]["CFBundleURLSchem...
24.5
61
0.789796
import plistlib filename = "/Applications/Safari.app/Contents/Info.plist" info = plistlib.readPlist(filename) info["CFBundleGetInfoString"] version = info["CFBundleShortVersionString"] print version print info["CFBundleURLTypes"] print info["CFBundleURLTypes"][0] print info["CFBundleURLTypes"][0]["CFBundleURLSchem...
0
0
0
0
0
0
0
0
0
64bf82724827db0750f356eef07f3af56df5720b
668
py
Python
kpi/unical_accounts/migrations/0008_alter_user_codice_fiscale_alter_user_email.py
UniversitaDellaCalabria/kpiManagement
d045a464298e17f50e005b89ba3b71e53d57f368
[ "Apache-2.0" ]
null
null
null
kpi/unical_accounts/migrations/0008_alter_user_codice_fiscale_alter_user_email.py
UniversitaDellaCalabria/kpiManagement
d045a464298e17f50e005b89ba3b71e53d57f368
[ "Apache-2.0" ]
null
null
null
kpi/unical_accounts/migrations/0008_alter_user_codice_fiscale_alter_user_email.py
UniversitaDellaCalabria/kpiManagement
d045a464298e17f50e005b89ba3b71e53d57f368
[ "Apache-2.0" ]
1
2022-03-28T10:48:38.000Z
2022-03-28T10:48:38.000Z
# Generated by Django 4.0 on 2022-03-28 09:59
25.692308
75
0.579341
# Generated by Django 4.0 on 2022-03-28 09:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('unical_accounts', '0007_user_created_by'), ] operations = [ migrations.AlterField( model_name='user', name='codice_fis...
0
0
0
556
0
0
0
19
46
738d2e0e79482160026dbee0a2e0a9bb2f953f8a
6,255
py
Python
src/questions/views.py
saadmk11/yourquery
5bc64f91846908803becb4e0cb6fece417bbe49a
[ "MIT" ]
null
null
null
src/questions/views.py
saadmk11/yourquery
5bc64f91846908803becb4e0cb6fece417bbe49a
[ "MIT" ]
null
null
null
src/questions/views.py
saadmk11/yourquery
5bc64f91846908803becb4e0cb6fece417bbe49a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # Create your views here.
32.748691
72
0.639488
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.decorators import login_required from django.contrib import messages from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Q from django.http import Http404 from django.shortcuts impo...
0
3,225
0
0
0
2,295
0
228
407
4e31b05eb0d20a8423ef63d1655c310369f5df37
261
py
Python
wotpy/protocols/http/__init__.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
24
2019-02-15T09:00:27.000Z
2021-12-23T05:45:03.000Z
wotpy/protocols/http/__init__.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
20
2020-03-17T09:41:51.000Z
2021-07-14T12:29:02.000Z
wotpy/protocols/http/__init__.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
5
2019-10-10T13:38:20.000Z
2021-12-22T14:22:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ HTTP Protocol Binding implementation. .. autosummary:: :toctree: _http wotpy.protocols.http.handlers wotpy.protocols.http.client wotpy.protocols.http.enums wotpy.protocols.http.server """
17.4
37
0.681992
#!/usr/bin/env python # -*- coding: utf-8 -*- """ HTTP Protocol Binding implementation. .. autosummary:: :toctree: _http wotpy.protocols.http.handlers wotpy.protocols.http.client wotpy.protocols.http.enums wotpy.protocols.http.server """
0
0
0
0
0
0
0
0
0
d2c0f445720e982d0abf551cb916c5f8646b23fd
3,588
py
Python
QCPU_Setup/DWave-library/dist-packages/dwave_networkx2/algorithms/independent_set.py
cogrpar/qcpuWARE
9b8233e830f8cfacbef787781b2279e42f26fec5
[ "Apache-2.0" ]
1
2022-02-01T14:40:05.000Z
2022-02-01T14:40:05.000Z
QCPU_Setup/DWave-library/dist-packages/dwave_networkx2/algorithms/independent_set.py
cogrpar/qcpuWARE
9b8233e830f8cfacbef787781b2279e42f26fec5
[ "Apache-2.0" ]
null
null
null
QCPU_Setup/DWave-library/dist-packages/dwave_networkx2/algorithms/independent_set.py
cogrpar/qcpuWARE
9b8233e830f8cfacbef787781b2279e42f26fec5
[ "Apache-2.0" ]
1
2022-02-01T14:40:31.000Z
2022-02-01T14:40:31.000Z
__all__ = ["maximum_independent_set", "is_independent_set"] def is_independent_set(G, indep_nodes): """Determines whether the given nodes form an independent set. An independent set is a set of nodes such that the subgraph of G induced by these nodes contains no edges. Parameters ---------- ...
33.53271
94
0.686734
from dwave_networkx.utils import binary_quadratic_model_sampler __all__ = ["maximum_independent_set", "is_independent_set"] @binary_quadratic_model_sampler(1) def maximum_independent_set(G, sampler=None, **sampler_args): """Returns an approximate maximum independent set. Defines a QUBO with ground states co...
0
2,867
0
0
0
0
0
42
45
a33ac7c4f39b26557ddcab1ab4337752858138d3
2,628
py
Python
2016/launcher.py
bartmanus/advent_of_code
8c5a2d639302c95e49e15d011db2df844bc4e010
[ "Unlicense" ]
null
null
null
2016/launcher.py
bartmanus/advent_of_code
8c5a2d639302c95e49e15d011db2df844bc4e010
[ "Unlicense" ]
null
null
null
2016/launcher.py
bartmanus/advent_of_code
8c5a2d639302c95e49e15d011db2df844bc4e010
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """ Launcher for AoC 2016 puzzles. Handles puzzle selection and puzzle input. """ if __name__ == '__main__': AVAILABLE_PUZZLES = {1: run_taxicab, 2:run_keypad} print('Welcome to inifinity! Try an available solution to AoC 2016 puzzles in', \ list(AVAILABLE_PUZZLES.keys()), '...
38.086957
94
0.603501
#!/usr/bin/env python3 """ Launcher for AoC 2016 puzzles. Handles puzzle selection and puzzle input. """ import day_1_no_time_for_a_taxicab as d1 import day_2_bathroom_security as d2 def run_taxicab(): while True: instructions = input('Instructions in <dir><steps>[, <dir><steps>]* format, please: ') ...
0
0
0
0
0
1,596
0
34
91
6438cabcc2ee27593e57c71efd247356f05e9634
3,980
py
Python
App.py
tyasvdspree/assignmentNetworking
b61a517c40c449298f173f492c50f24947785944
[ "MIT" ]
1
2020-10-05T14:54:07.000Z
2020-10-05T14:54:07.000Z
App.py
tyasvdspree/assignmentNetworking
b61a517c40c449298f173f492c50f24947785944
[ "MIT" ]
null
null
null
App.py
tyasvdspree/assignmentNetworking
b61a517c40c449298f173f492c50f24947785944
[ "MIT" ]
1
2020-10-05T15:16:18.000Z
2020-10-05T15:16:18.000Z
import threading import socket # team: PWA # member: 0870508 Tyas van de Spree # member: 0966770 Maarten de Goede # class: DINF2 BYTE_SIZE = 1024 TEAMNAME = "PWA" # programmers with attitude CLASSNAME = "DINF2" TEAMMATESTUDENTNR = '' STUDENTNR = input("Please provide your student number") if STUDENTNR == "0870508...
26.711409
123
0.651759
from _thread import * import threading import socket import json # team: PWA # member: 0870508 Tyas van de Spree # member: 0966770 Maarten de Goede # class: DINF2 BYTE_SIZE = 1024 TEAMNAME = "PWA" # programmers with attitude CLASSNAME = "DINF2" TEAMMATESTUDENTNR = '' STUDENTNR = input("Please provide your student...
0
0
0
828
0
2,004
0
-10
136
7a6bc09f03fc1366993dfe34eea65ffbcef063a0
1,203
py
Python
src/astro/dataframe/__init__.py
jlaneve/astro
4528162c7582f3860d1d21de7af954f20c9f9a6a
[ "Apache-2.0" ]
null
null
null
src/astro/dataframe/__init__.py
jlaneve/astro
4528162c7582f3860d1d21de7af954f20c9f9a6a
[ "Apache-2.0" ]
null
null
null
src/astro/dataframe/__init__.py
jlaneve/astro
4528162c7582f3860d1d21de7af954f20c9f9a6a
[ "Apache-2.0" ]
null
null
null
from typing import Callable, Optional from airflow.decorators.base import task_decorator_factory from astro.sql.operators.sql_dataframe import SqlDataframeOperator def dataframe( python_callable: Optional[Callable] = None, multiple_outputs: Optional[bool] = None, conn_id: str = "", database: Optiona...
32.513514
119
0.697423
from typing import Callable, Optional from airflow.decorators.base import task_decorator_factory from astro.sql.operators.sql_dataframe import SqlDataframeOperator def dataframe( python_callable: Optional[Callable] = None, multiple_outputs: Optional[bool] = None, conn_id: str = "", database: Optiona...
0
0
0
0
0
0
0
0
0
1dbf4b7b9733bf48989a9616acea576abb284c79
421
py
Python
core/urls.py
AmoleR/otis-web
afcb1f595675bd1478e231b9de2579d02234a076
[ "MIT" ]
null
null
null
core/urls.py
AmoleR/otis-web
afcb1f595675bd1478e231b9de2579d02234a076
[ "MIT" ]
null
null
null
core/urls.py
AmoleR/otis-web
afcb1f595675bd1478e231b9de2579d02234a076
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path(r'classroom/', views.classroom, name='classroom'), path(r'synopsis/', views.UnitGroupListView.as_view(), name='synopsis'), path(r'unit/problems/<int:pk>/', views.unit_problems, name='view-problems'), path(r'unit/tex/<int:pk>/', views.unit_tex, ...
35.083333
80
0.714964
from django.urls import path from . import views urlpatterns = [ path(r'classroom/', views.classroom, name='classroom'), path(r'synopsis/', views.UnitGroupListView.as_view(), name='synopsis'), path(r'unit/problems/<int:pk>/', views.unit_problems, name='view-problems'), path(r'unit/tex/<int:pk>/', views.unit_tex, ...
0
0
0
0
0
0
0
0
0
d795ac9c432f6e0f1f8a67d8417295173eebd7aa
5,901
py
Python
src/hannoy/index.py
marijnl/AquilaDB
ff837f135715619e1d09e94f94b3d25b12a8c5db
[ "Apache-2.0" ]
2
2020-04-30T19:47:07.000Z
2020-05-03T16:58:34.000Z
src/hannoy/index.py
marijnl/AquilaDB
ff837f135715619e1d09e94f94b3d25b12a8c5db
[ "Apache-2.0" ]
null
null
null
src/hannoy/index.py
marijnl/AquilaDB
ff837f135715619e1d09e94f94b3d25b12a8c5db
[ "Apache-2.0" ]
null
null
null
model_location = '/data/model_ha'
35.335329
102
0.534147
import numpy as np from annoy import AnnoyIndex import yaml import os import threading import queue import time model_location = '/data/model_ha' class Annoy: def __init__(self): # to keep the thread & queue running self.process_flag = True self.q_maxsize = 10100 self.process_thre...
0
0
0
5,731
0
0
0
-42
178
4bb8af7cfebda4f5b9abf228a7db10c33ad3ff2e
52
py
Python
salt/returners/__init__.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
111
2015-01-16T02:48:12.000Z
2022-02-08T10:24:56.000Z
salt/returners/__init__.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
60
2015-01-06T12:28:44.000Z
2020-12-01T21:30:38.000Z
salt/returners/__init__.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
163
2015-01-06T09:40:31.000Z
2022-02-03T11:41:23.000Z
# -*- coding: utf-8 -*- ''' Returners Directory '''
10.4
23
0.538462
# -*- coding: utf-8 -*- ''' Returners Directory '''
0
0
0
0
0
0
0
0
0
eddc16387b276719fe8d1b5a9e83d853a078ea81
5,702
py
Python
app.py
a-tanman/vigil-hotline
21b73e76c2c3de77f9c93cb11ae47295a064dabd
[ "Apache-2.0" ]
null
null
null
app.py
a-tanman/vigil-hotline
21b73e76c2c3de77f9c93cb11ae47295a064dabd
[ "Apache-2.0" ]
null
null
null
app.py
a-tanman/vigil-hotline
21b73e76c2c3de77f9c93cb11ae47295a064dabd
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------# # Imports #----------------------------------------------------------------------------# from flask import Flask from datetime import datetime from flask_cors import CORS # from flask.ext.sqlalchemy import SQLAlchemy import logging from log...
27.023697
98
0.590845
#----------------------------------------------------------------------------# # Imports #----------------------------------------------------------------------------# from flask import Flask, render_template, request, jsonify, redirect, url_for import random from datetime import datetime from flask_cors import CORS f...
0
2,341
0
0
0
502
0
103
430
f61d11acc6629c2b63f97227a5134b008acfe309
511
py
Python
sphinx/source/docs/user_guide/examples/interaction_tab_panes.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
12
2020-07-20T14:58:31.000Z
2021-09-04T22:15:14.000Z
sphinx/source/docs/user_guide/examples/interaction_tab_panes.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
1
2020-09-05T02:46:20.000Z
2020-09-05T02:46:20.000Z
sphinx/source/docs/user_guide/examples/interaction_tab_panes.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
3
2019-03-27T23:27:05.000Z
2020-08-05T19:03:19.000Z
from bokeh.models import Panel, Tabs from bokeh.io import output_file, show from bokeh.plotting import figure output_file("slider.html") p1 = figure(plot_width=300, plot_height=300) p1.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=20, color="navy", alpha=0.5) tab1 = Panel(child=p1, title="circle") p2 = figure(plot_w...
28.388889
80
0.675147
from bokeh.models import Panel, Tabs from bokeh.io import output_file, show from bokeh.plotting import figure output_file("slider.html") p1 = figure(plot_width=300, plot_height=300) p1.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=20, color="navy", alpha=0.5) tab1 = Panel(child=p1, title="circle") p2 = figure(plot_w...
0
0
0
0
0
0
0
0
0
a8b1d0d3f419b87fe666dbebbfa8c7d0b7bd9341
576
py
Python
DSA/string/letterCombinations.py
lance-lh/Data-Structures-and-Algorithms
c432654edaeb752536e826e88bcce3ed2ab000fb
[ "MIT" ]
1
2019-03-27T13:00:28.000Z
2019-03-27T13:00:28.000Z
DSA/string/letterCombinations.py
lance-lh/Data-Structures-and-Algorithms
c432654edaeb752536e826e88bcce3ed2ab000fb
[ "MIT" ]
null
null
null
DSA/string/letterCombinations.py
lance-lh/Data-Structures-and-Algorithms
c432654edaeb752536e826e88bcce3ed2ab000fb
[ "MIT" ]
null
null
null
# test digits = "23" print(Solution().letterCombinations(digits))
25.043478
100
0.447917
class Solution: # @return a list of strings, [s1, s2] def letterCombinations(self, digits): from functools import reduce if digits == '': return [] mapping = { '2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'm...
0
0
0
488
0
0
0
0
22
3f8c4f5fff8a542b17ea599da32d09636a18443d
5,767
py
Python
plastron/pcdm.py
peichman-umd/plastron
8453b1dc598eaf60e50a4614444a2c713b96190a
[ "Apache-2.0" ]
3
2019-06-12T08:07:52.000Z
2019-09-13T18:16:30.000Z
plastron/pcdm.py
peichman-umd/plastron
8453b1dc598eaf60e50a4614444a2c713b96190a
[ "Apache-2.0" ]
14
2018-05-11T15:17:40.000Z
2022-03-11T23:27:50.000Z
plastron/pcdm.py
peichman-umd/plastron
8453b1dc598eaf60e50a4614444a2c713b96190a
[ "Apache-2.0" ]
5
2018-04-13T20:58:30.000Z
2020-03-25T12:59:34.000Z
from plastron.namespaces import pcdm # alias the rdflib Namespace ns = pcdm FILE_CLASS_FOR = { '.tif': PreservationMasterFile, '.jpg': IntermediateFile, '.txt': ExtractedText, '.xml': ExtractedText, }
31.342391
120
0.648344
from plastron import ldp, ore, rdf from plastron.namespaces import dcterms, dcmitype, ebucore, fabio, pcdm, pcdmuse, premis from plastron.files import LocalFileSource, RepositoryFileSource from PIL import Image # alias the rdflib Namespace ns = pcdm @rdf.object_property('members', pcdm.hasMember) @rdf.object_proper...
0
4,887
0
0
0
269
0
108
273
923893bcf3fdc9e6ae96e21578684f8468825b24
5,591
py
Python
gpustats/sampler.py
dukestats/gpustats
570fdeb4d1da204b1e56717ba29db07a08be8629
[ "BSD-3-Clause" ]
23
2015-02-01T23:46:52.000Z
2021-01-13T18:07:47.000Z
gpustats/sampler.py
dukestats/gpustats
570fdeb4d1da204b1e56717ba29db07a08be8629
[ "BSD-3-Clause" ]
null
null
null
gpustats/sampler.py
dukestats/gpustats
570fdeb4d1da204b1e56717ba29db07a08be8629
[ "BSD-3-Clause" ]
6
2015-06-18T10:23:59.000Z
2020-05-05T22:32:40.000Z
import numpy as np import gpustats.kernels as kernels import gpustats.codegen as codegen import gpustats.util as util import pycuda.driver as drv from pycuda.gpuarray import GPUArray, to_gpu from pycuda.gpuarray import empty as gpu_empty from pycuda.curandom import rand as curand # reload(kernels) # reload(codegen) ...
27.541872
88
0.640315
import numpy as np import gpustats.kernels as kernels import gpustats.codegen as codegen import gpustats.util as util import pycuda.driver as drv from pycuda.gpuarray import GPUArray, to_gpu from pycuda.gpuarray import empty as gpu_empty from pycuda.curandom import rand as curand # reload(kernels) # reload(codegen) ...
0
0
0
0
0
192
0
0
27
93ddc216aa03e77588852f7a7e577c8e48d8a891
5,544
py
Python
wandb/sdk/data_types/helper_types/classes.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
wandb/sdk/data_types/helper_types/classes.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
wandb/sdk/data_types/helper_types/classes.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING from .. import _dtypes if TYPE_CHECKING: # pragma: no cover _dtypes.TypeRegistry.add(_ClassesIdType)
34.222222
119
0.592352
import os from typing import Any, Dict, Optional, Sequence, Type, TYPE_CHECKING, Union from .. import _dtypes from ..base_types.media import Media if TYPE_CHECKING: # pragma: no cover from wandb.apis.public import Artifact as PublicArtifact from ...wandb_artifacts import Artifact as LocalArtifact from ....
0
1,019
0
4,079
0
0
0
136
169
08c4b55684bc43747f4a9875f98c55d0ce244fb7
6,018
py
Python
test/rest/clienttests.py
geoco84/comodit-client
4cf47e60a6739ed8b88ce8b955ed57375c4d400d
[ "MIT" ]
1
2015-01-20T17:24:34.000Z
2015-01-20T17:24:34.000Z
test/rest/clienttests.py
geoco84/comodit-client
4cf47e60a6739ed8b88ce8b955ed57375c4d400d
[ "MIT" ]
null
null
null
test/rest/clienttests.py
geoco84/comodit-client
4cf47e60a6739ed8b88ce8b955ed57375c4d400d
[ "MIT" ]
24
2016-09-07T15:28:00.000Z
2021-12-08T16:03:16.000Z
import unittest if __name__ == '__main__': unittest.main()
29.5
113
0.623463
import unittest, json from comodit_client.rest.client import HttpClient from comodit_client.rest.exceptions import ApiException from test.mock.urllib_mocks import RequestWithMethodMock, RequestResult class ClientTest(unittest.TestCase): def setUp(self): self._url = "url" self._params = "" ...
0
0
0
5,745
0
0
0
118
90
f4436d2fd8b94b5828d5d0b7ad6611c0470a1208
95
py
Python
terrascript/chef/__init__.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/chef/__init__.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/chef/__init__.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/chef/__init__.py
13.571429
33
0.778947
# terrascript/chef/__init__.py import terrascript class chef(terrascript.Provider): pass
0
0
0
21
0
0
0
-3
45
e2daa8f9b242d23b6e640ea90ef23c05a358f900
1,670
py
Python
pybpodgui_plugin/settings.py
ckarageorgkaneen/pybpod-gui-plugin
ef9ca8a7094b9d225dde8e3db58d94ae084aaac5
[ "MIT" ]
null
null
null
pybpodgui_plugin/settings.py
ckarageorgkaneen/pybpod-gui-plugin
ef9ca8a7094b9d225dde8e3db58d94ae084aaac5
[ "MIT" ]
null
null
null
pybpodgui_plugin/settings.py
ckarageorgkaneen/pybpod-gui-plugin
ef9ca8a7094b9d225dde8e3db58d94ae084aaac5
[ "MIT" ]
1
2021-02-22T21:32:03.000Z
2021-02-22T21:32:03.000Z
# # !/usr/bin/python3 # # -*- coding: utf-8 -*- import logging SETTINGS_PRIORITY = 100 # THESE SETTINGS ARE NEEDED FOR PYSETTINGS APP_LOG_FILENAME = 'app.log' APP_LOG_HANDLER_CONSOLE_LEVEL = logging.WARNING APP_LOG_HANDLER_FILE_LEVEL = logging.WARNING CONTROL_EVENTS_GRAPH_DEFAULT_SCALE = 100 BOARD_LOG_WINDOW_...
27.377049
102
0.782036
# # !/usr/bin/python3 # # -*- coding: utf-8 -*- import logging, os SETTINGS_PRIORITY = 100 # THESE SETTINGS ARE NEEDED FOR PYSETTINGS APP_LOG_FILENAME = 'app.log' APP_LOG_HANDLER_CONSOLE_LEVEL = logging.WARNING APP_LOG_HANDLER_FILE_LEVEL = logging.WARNING CONTROL_EVENTS_GRAPH_DEFAULT_SCALE = 100 BOARD_LOG_WIN...
0
0
0
0
0
0
0
4
0
51b66a26418cbf9c12132319bfeb2cb5131c8eef
6,798
py
Python
pdfmajor/interpreter/commands/state/PDFTextState/PDFFont/fonts.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
23
2019-01-13T23:32:24.000Z
2021-07-08T04:29:15.000Z
pdfmajor/interpreter/commands/state/PDFTextState/PDFFont/fonts.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
3
2019-08-09T18:42:01.000Z
2019-12-13T15:43:24.000Z
pdfmajor/interpreter/commands/state/PDFTextState/PDFFont/fonts.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
2
2020-01-09T11:18:20.000Z
2020-03-24T06:02:30.000Z
# PDFType1Font # PDFTrueTypeFont # PDFType3Font # PDFCIDFont
38.625
110
0.612533
from io import BytesIO from pdfmajor.execptions import FontError, UnicodeNotDefined, CMapNotFound from pdfmajor.parser.PSStackParser import literal_name from pdfmajor.parser.PDFStream import int_value from pdfmajor.parser.PDFStream import num_value from pdfmajor.parser.PDFStream import list_value from pdfmajor.parser....
0
0
0
5,836
0
0
0
452
442
0d06b0adc2fd7a6757d80b73c268e069d1397b68
125
py
Python
PYTHON/starwars fingers/mixersample.py
arpitarunkumaar/Hacktoberfest2021
0af40f90a6c0716caadbbfff44ece947b6146f60
[ "MIT" ]
125
2021-10-01T19:05:26.000Z
2021-10-03T13:32:42.000Z
PYTHON/starwars fingers/mixersample.py
arpitarunkumaar/Hacktoberfest2021
0af40f90a6c0716caadbbfff44ece947b6146f60
[ "MIT" ]
201
2021-10-30T20:40:01.000Z
2022-03-22T17:26:28.000Z
PYTHON/starwars fingers/mixersample.py
arpitarunkumaar/Hacktoberfest2021
0af40f90a6c0716caadbbfff44ece947b6146f60
[ "MIT" ]
294
2021-10-01T18:46:05.000Z
2021-10-03T14:25:07.000Z
import pygame soun_obj=pygame.mixer.Sound("Star Wars Main Theme (Full).mp3") soun_obj.play() soun_obj.stop()
25
63
0.76
import mixer import pygame soun_obj=pygame.mixer.Sound("Star Wars Main Theme (Full).mp3") soun_obj.play() soun_obj.stop()
0
0
0
0
0
0
0
-9
23
cf8a9ddef46ebe737e00e9f4684a2b26991ee7b0
3,111
py
Python
mols2grid/utils.py
cbouy/mol2grid
1f0dc632e2b2b471b924f27a441950fe5209823d
[ "Apache-2.0" ]
105
2021-03-22T16:08:51.000Z
2022-03-07T15:38:32.000Z
mols2grid/utils.py
cbouy/molgrid
1f0dc632e2b2b471b924f27a441950fe5209823d
[ "Apache-2.0" ]
19
2021-03-24T13:08:05.000Z
2022-03-30T20:33:47.000Z
mols2grid/utils.py
cbouy/molgrid
1f0dc632e2b2b471b924f27a441950fe5209823d
[ "Apache-2.0" ]
13
2021-03-22T19:26:24.000Z
2022-03-22T06:01:10.000Z
from jinja2 import Environment, FileSystemLoader from pathlib import Path from rdkit import Chem import pandas as pd env = Environment(loader=FileSystemLoader(Path(__file__).parent / 'templates'), autoescape=False) def tooltip_formatter(s, subset, fmt, style, transform): """Function to generate...
34.566667
79
0.627772
from functools import wraps from importlib.util import find_spec from jinja2 import Environment, FileSystemLoader from pathlib import Path from rdkit import Chem import pandas as pd env = Environment(loader=FileSystemLoader(Path(__file__).parent / 'templates'), autoescape=False) def requires(module...
0
270
0
0
0
91
0
21
67
5c2b633eae20fd8c195dffb3e55c0d408377fe88
41,361
py
Python
pypy/objspace/std/bytesobject.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
4
2019-02-11T06:58:43.000Z
2020-03-15T14:12:32.000Z
pypy/objspace/std/bytesobject.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/objspace/std/bytesobject.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
"""The builtin str implementation""" from pypy.interpreter.gateway import (interp2app, interpindirect2app) from pypy.interpreter.typedef import TypeDef from pypy.objspace.std.basestringtype import basestring_typedef W_BytesObject.EMPTY = W_BytesObject('') W_BytesObject.typedef = TypeDef( "pal", basestring_type...
40.431085
80
0.677595
"""The builtin str implementation""" from rpython.rlib import jit from rpython.rlib.jit import we_are_jitted from rpython.rlib.objectmodel import ( compute_hash, compute_unique_id, import_from_mixin) from rpython.rlib.buffer import StringBuffer from rpython.rlib.rstring import StringBuilder, replace from pypy.int...
288
7,071
0
24,408
0
140
0
520
380
078e765fcfe27de2aa9ef67e4be7f01a4827155c
569
py
Python
drive-google-deinit.py
scivision/deprecated-google-drive-public
33dd090a0be381abd1938ca403d91c6bf9db0b1c
[ "MIT" ]
4
2017-03-19T22:58:20.000Z
2017-12-02T14:25:53.000Z
drive-google-deinit.py
scivision/deprecated-google-drive-public
33dd090a0be381abd1938ca403d91c6bf9db0b1c
[ "MIT" ]
1
2017-04-13T09:54:29.000Z
2017-05-11T07:17:11.000Z
drive-google-deinit.py
scivision/deprecated-google-drive-public
33dd090a0be381abd1938ca403d91c6bf9db0b1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ recursive search and deinit (disconnection) for drive-google directories """ from pathlib import Path from gdrivepublic import isgdrive from subprocess import call from argparse import ArgumentParser p = ArgumentParser() p.add_argument('rdir',help='root directory to search for active drive-g...
24.73913
112
0.697715
#!/usr/bin/env python """ recursive search and deinit (disconnection) for drive-google directories """ from pathlib import Path from gdrivepublic import isgdrive from subprocess import call from argparse import ArgumentParser p = ArgumentParser() p.add_argument('rdir',help='root directory to search for active drive-g...
0
0
0
0
0
0
0
0
0
b7ec571afdc19b55f0b9873d557e9ca53ed0a12f
977
py
Python
data/generateQuickdrawDataset.py
manas-avi/detection-2016-nipsws
b25669dbf1c5d3d1a79638f928c989aca1c32622
[ "MIT" ]
null
null
null
data/generateQuickdrawDataset.py
manas-avi/detection-2016-nipsws
b25669dbf1c5d3d1a79638f928c989aca1c32622
[ "MIT" ]
null
null
null
data/generateQuickdrawDataset.py
manas-avi/detection-2016-nipsws
b25669dbf1c5d3d1a79638f928c989aca1c32622
[ "MIT" ]
2
2018-12-02T08:39:24.000Z
2018-12-08T15:55:54.000Z
from numpy import random import numpy as np import cv2 import os import sys dataset_name = sys.argv[1] data_dir = './quickdraw/' + dataset_name + '/r128/' save_dir = './quickdraw/' + dataset_name + '/obj-in-image/' os.makedirs(save_dir + 'test/' , exist_ok=True) os.makedirs(save_dir + 'train/' , exist_ok=True) list_...
25.051282
68
0.684749
from numpy import random import gc import numpy as np import pdb import cv2 import os import sys import matplotlib.pyplot as plt dataset_name = sys.argv[1] data_dir = './quickdraw/' + dataset_name + '/r128/' save_dir = './quickdraw/' + dataset_name + '/obj-in-image/' os.makedirs(save_dir + 'test/' , exist_ok=True) os...
0
0
0
0
0
0
0
-13
66
8ef7c1aa85b2e0042a2dcefa5ce7a98ed26ddaef
49,547
py
Python
pytest_cases/main_fixtures.py
keszybz/python-pytest-cases
424d35108228716d7ea0276f6a89ef72181dd919
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/main_fixtures.py
keszybz/python-pytest-cases
424d35108228716d7ea0276f6a89ef72181dd919
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/main_fixtures.py
keszybz/python-pytest-cases
424d35108228716d7ea0276f6a89ef72181dd919
[ "BSD-3-Clause" ]
null
null
null
# Use true division operator always even in old python 2.x (used in `_get_case_getter_s`) from __future__ import division from distutils.version import LooseVersion from enum import Enum from inspect import isgeneratorfunction, getmodule, currentframe from itertools import product from warnings import warn from decop...
41.882502
125
0.653844
# Use true division operator always even in old python 2.x (used in `_get_case_getter_s`) from __future__ import division from distutils.version import LooseVersion from enum import Enum from inspect import isgeneratorfunction, getmodule, currentframe from itertools import product from warnings import warn from decop...
0
15,532
0
1,833
2,541
2,153
0
12
616
da8d8071d750b685956d79ac77bbc0a8b708951e
5,257
py
Python
nb/toxin.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
1
2020-08-20T07:49:10.000Z
2020-08-20T07:49:10.000Z
nb/toxin.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
null
null
null
nb/toxin.py
pgniewko/deep-toxin
fa61b06405749e5de7d74eedadb5de7c67981471
[ "BSD-3-Clause" ]
null
null
null
AA_MODIFICATIONS = { "Benzoylphenylalanine": "F", "C-term amidation": "", "Sulfotyrosine": "Y", "4-Hydroxyproline": "P", "Pyroglutamic acid": "E", "Gamma carboxylic glutamic acid": "E", "Any": "G", "D-leucine": "L", "D-phenylalanine": "F", "D-methionine": "M", "D-tryptophan"...
27.814815
141
0.561917
from pydpi.pypro import PyPro import logging AA_MODIFICATIONS = { "Benzoylphenylalanine": "F", "C-term amidation": "", "Sulfotyrosine": "Y", "4-Hydroxyproline": "P", "Pyroglutamic acid": "E", "Gamma carboxylic glutamic acid": "E", "Any": "G", "D-leucine": "L", "D-phenylalanine": "F"...
0
0
0
3,512
0
0
0
1
67
c068615ba5c8b41d1a83e195bf09fa87e4327bd6
247
py
Python
exercicios/ex029.py
RaquelBotelhoof/Python-curso-em-video
919b2f44e85647c096c6b734c991635f1bfd1af9
[ "MIT" ]
null
null
null
exercicios/ex029.py
RaquelBotelhoof/Python-curso-em-video
919b2f44e85647c096c6b734c991635f1bfd1af9
[ "MIT" ]
null
null
null
exercicios/ex029.py
RaquelBotelhoof/Python-curso-em-video
919b2f44e85647c096c6b734c991635f1bfd1af9
[ "MIT" ]
null
null
null
v = int(input('Digite a velocidade do carro: ')) if v<=80: print('Dirija com segurana. Boa viagem.') else: print('Voc foi multado por exeder o limite de 80km/h.') m = (v - 80) * 7 print('A multa vai custar {:.2f} reais'.format(m))
35.285714
60
0.62753
v = int(input('Digite a velocidade do carro: ')) if v<=80: print('Dirija com segurança. Boa viagem.') else: print('Você foi multado por exeder o limite de 80km/h.') m = (v - 80) * 7 print('A multa vai custar {:.2f} reais'.format(m))
4
0
0
0
0
0
0
0
0
215499b87f796abd452312b91b2724408513c326
4,893
py
Python
rhea/system/stream/fifobus.py
mngr0/rhea
9ad8d193f7f78f1d192af438568d45fb5a398c8c
[ "MIT" ]
null
null
null
rhea/system/stream/fifobus.py
mngr0/rhea
9ad8d193f7f78f1d192af438568d45fb5a398c8c
[ "MIT" ]
null
null
null
rhea/system/stream/fifobus.py
mngr0/rhea
9ad8d193f7f78f1d192af438568d45fb5a398c8c
[ "MIT" ]
null
null
null
# # Copyright (c) 2013-2015 Christopher L. Felton # See the licence file in the top directory # _fb_num = 0 _fb_list = {} def _add_bus(fb, name=''): """ globally keep track of all the buses added. """ global _fb_num, _fb_list _fb_num += 1 _fb_list[name] = fb
35.201439
74
0.600245
# # Copyright (c) 2013-2015 Christopher L. Felton # See the licence file in the top directory # import myhdl from myhdl import Signal, intbv, always_comb from ..clock import Clock from .streamers import Streamers _fb_num = 0 _fb_list = {} def _add_bus(fb, name=''): """ globally keep track of all the buses added...
0
1,578
0
2,891
0
0
0
29
112
9d2f8b6243abe41aff1ec1f3cbc03b7f2abd38ac
3,215
py
Python
code/plot_likelihood_parameters.py
matfontaine/alpha_SpatialNMF
d4d64e187af3a808a4c0e380f704b1d9d7afdeaa
[ "CC0-1.0" ]
null
null
null
code/plot_likelihood_parameters.py
matfontaine/alpha_SpatialNMF
d4d64e187af3a808a4c0e380f704b1d9d7afdeaa
[ "CC0-1.0" ]
null
null
null
code/plot_likelihood_parameters.py
matfontaine/alpha_SpatialNMF
d4d64e187af3a808a4c0e380f704b1d9d7afdeaa
[ "CC0-1.0" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import pickle as pic import os import numpy as np import math as math HYP = 1.4 BETA = 0.0 it = 500 S = 2 M = 2 K = 32 init = "circ" EST_DIR_A = "/home/mafontai/Documents/project/git_project/speech_separation/alpha_SpatialMNMF/results_2anechoic/dev...
39.691358
172
0.691135
import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import pickle as pic import sys, os import numpy as np import math as math HYP = 1.4 BETA = 0.0 it = 500 S = 2 M = 2 K = 32 init = "circ" EST_DIR_A = "/home/mafontai/Documents/project/git_project/speech_separation/alpha_SpatialMNMF/results_2anechoi...
0
0
0
0
0
0
0
5
0
69073497cb0a3bfc6f2b0ab40c3ed6ca440904e9
8,528
py
Python
tests/parts/test_fields.py
peterandluc/PyHDB
826539d06b8bcef74fe755e7489b8a8255628f12
[ "Apache-2.0" ]
332
2015-01-03T21:50:28.000Z
2021-04-28T08:37:18.000Z
tests/parts/test_fields.py
peterandluc/PyHDB
826539d06b8bcef74fe755e7489b8a8255628f12
[ "Apache-2.0" ]
132
2015-01-12T10:26:09.000Z
2021-05-04T17:46:34.000Z
tests/parts/test_fields.py
peterandluc/PyHDB
826539d06b8bcef74fe755e7489b8a8255628f12
[ "Apache-2.0" ]
147
2015-01-10T16:25:29.000Z
2021-04-08T08:02:20.000Z
# Copyright 2014, 2015 SAP SE. # # 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, #...
60.48227
77
0.681168
# Copyright 2014, 2015 SAP SE. # # 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, #...
0
0
0
0
0
7,794
0
19
137
cc3165670824b1fcde6ca5d3c946a9eaf5909394
132
py
Python
desafio03.py
TrojanYT/TrojanPython
d64b9b6c1889e4fb637a7dacf850f7e159dd92aa
[ "MIT" ]
null
null
null
desafio03.py
TrojanYT/TrojanPython
d64b9b6c1889e4fb637a7dacf850f7e159dd92aa
[ "MIT" ]
null
null
null
desafio03.py
TrojanYT/TrojanPython
d64b9b6c1889e4fb637a7dacf850f7e159dd92aa
[ "MIT" ]
null
null
null
n1 = input('Digite o primeiro nmero? ') n2 = input('Digite o segundo nmero? ') soma = int(n1) + int(n2) print('A soma : ', soma)
26.4
40
0.636364
n1 = input('Digite o primeiro número? ') n2 = input('Digite o segundo número? ') soma = int(n1) + int(n2) print('A soma é: ', soma)
6
0
0
0
0
0
0
0
0
4c4628ff35b366104fe2e07d36da43520634355b
11,938
py
Python
models/hourglass_relu/hg_blocks.py
dp-isi/VaryingSkinTone
2e595c1d668a8424d86b76dae1fef4b607c26fc8
[ "MIT" ]
null
null
null
models/hourglass_relu/hg_blocks.py
dp-isi/VaryingSkinTone
2e595c1d668a8424d86b76dae1fef4b607c26fc8
[ "MIT" ]
null
null
null
models/hourglass_relu/hg_blocks.py
dp-isi/VaryingSkinTone
2e595c1d668a8424d86b76dae1fef4b607c26fc8
[ "MIT" ]
null
null
null
# from keras_lr_multiplier import LRMultiplier ''' code source: https://github.com/yuanyuanli85/Stacked_Hourglass_Network_Keras ''' import os # os.system('export CUDA_VISIBLE_DEVICES=1') os.environ['CUDA_VISIBLE_DEVICES']='1' # inres=(256,256) # num_channels=3 # bottleneck=bottleneck_mobile def connect_left_to...
40.467797
145
0.667951
from keras.models import * from keras.layers import * from keras.optimizers import Adam, RMSprop from keras.losses import mean_squared_error import keras.backend as K # from keras_lr_multiplier import LRMultiplier ''' code source: https://github.com/yuanyuanli85/Stacked_Hourglass_Network_Keras ''' import os # os.syst...
0
0
0
0
0
9,208
0
57
339
1688966a6e7972cf565faa45fe80c6782bde8c46
469
py
Python
project_euler_5.py
andrazm123/Project-Euler
260a46810bce73e1079c13518ae94732c8cb1acb
[ "MIT" ]
null
null
null
project_euler_5.py
andrazm123/Project-Euler
260a46810bce73e1079c13518ae94732c8cb1acb
[ "MIT" ]
null
null
null
project_euler_5.py
andrazm123/Project-Euler
260a46810bce73e1079c13518ae94732c8cb1acb
[ "MIT" ]
null
null
null
def gcd(a, b): '''Najvecji skupni veckratnik''' if b == 0: return a else: return gcd(b, a % b) def lcm(a, b): '''Najmanjsi skupni delitelj''' return int((a * b) / gcd(a, b)) def stevilo_deljivo_prvimi_stevili(n): '''Vrne najmanjso stevilo deljivo s prvimi n naravnimi stevili'''...
21.318182
69
0.607676
def gcd(a, b): '''Najvecji skupni veckratnik''' if b == 0: return a else: return gcd(b, a % b) def lcm(a, b): '''Najmanjsi skupni delitelj''' return int((a * b) / gcd(a, b)) def stevilo_deljivo_prvimi_stevili(n): '''Vrne najmanjso stevilo deljivo s prvimi n naravnimi stevili'''...
0
0
0
0
0
0
0
0
0
ef1cc60922f5404a124cd5c3f0ddb5a1c2b477e4
6,730
py
Python
GameEvents.py
justinbeetle/pyDragonWarrior
cfaf57161ab4950da537de9937d688bc7d24bf4a
[ "MIT" ]
3
2021-04-07T14:43:20.000Z
2021-04-17T21:26:08.000Z
GameEvents.py
justinbeetle/pyDragonWarrior
cfaf57161ab4950da537de9937d688bc7d24bf4a
[ "MIT" ]
1
2022-01-02T15:52:23.000Z
2022-01-12T01:51:50.000Z
GameEvents.py
justinbeetle/pyDragonWarrior
cfaf57161ab4950da537de9937d688bc7d24bf4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python joysticks = [] if __name__ == '__main__': try: main() except Exception as e: import sys import traceback print(traceback.format_exception(None, # <- type(e) by docs, but ignored e, ...
41.036585
118
0.625854
#!/usr/bin/env python from typing import List, Optional, Tuple import pygame joysticks = [] def setup_joystick() -> bool: print('pygame.joystick.get_count() =', pygame.joystick.get_count(), flush=True) for joystickId in range(pygame.joystick.get_count()): joystick = pygame.joystick.Joystick(joystic...
0
0
0
0
0
6,110
0
11
184
1a359f8c4679c96bac746dc20017997049f8367c
1,699
py
Python
data/emoji2vec/visualize.py
mitchelljeff/SUMMAD4.3
33bb3a74cff16a7aa699660a08d98ddcd662cad5
[ "MIT" ]
1
2017-09-15T14:06:07.000Z
2017-09-15T14:06:07.000Z
data/emoji2vec/visualize.py
mitchelljeff/SUMMAD4.3
33bb3a74cff16a7aa699660a08d98ddcd662cad5
[ "MIT" ]
null
null
null
data/emoji2vec/visualize.py
mitchelljeff/SUMMAD4.3
33bb3a74cff16a7aa699660a08d98ddcd662cad5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector import os import numpy as np dir = "./jtr/data/emoji2vec/" emojis = [] vecs = [] with open(dir + "metadata.tsv", "w") as f_out: # f_out.write("emoji\n") with open(dir + "emoji2vec.txt", "r") as f_in: ...
32.673077
85
0.660388
# -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector import os import numpy as np dir = "./jtr/data/emoji2vec/" emojis = [] vecs = [] with open(dir + "metadata.tsv", "w") as f_out: # f_out.write("emoji\n") with open(dir + "emoji2vec.txt", "r") as f_in: ...
0
0
0
0
0
0
0
0
0
2d8709b2618ae2bd21be1ef05a498b81db9df3ac
308
py
Python
RecoTracker/GeometryESProducer/python/TrackerMTDRecoGeometryESProducer_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoTracker/GeometryESProducer/python/TrackerMTDRecoGeometryESProducer_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoTracker/GeometryESProducer/python/TrackerMTDRecoGeometryESProducer_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms TrackerRecoGeometryESProducer = cms.ESProducer("TrackerMTDRecoGeometryESProducer", usePhase2Stacks = cms.bool(False) ) from Configuration.ProcessModifiers.vectorHits_cff import vectorHits vectorHits.toModify(TrackerRecoGeometryESProducer, usePhase2Stacks = True)
34.222222
82
0.86039
import FWCore.ParameterSet.Config as cms TrackerRecoGeometryESProducer = cms.ESProducer("TrackerMTDRecoGeometryESProducer", usePhase2Stacks = cms.bool(False) ) from Configuration.ProcessModifiers.vectorHits_cff import vectorHits vectorHits.toModify(TrackerRecoGeometryESProducer, usePhase2Stacks = True)
0
0
0
0
0
0
0
0
0
38a11636d3f125019cc9e573d3dc9f0b6ef5e60d
1,114
py
Python
Aves2/job_manager/aves2_schemas/data_schema.py
jd-aig/aves2
10aeb832feb94adf563f9795013c77bfd115b44e
[ "Apache-2.0" ]
3
2020-09-24T01:36:02.000Z
2022-03-28T11:53:54.000Z
Aves2/job_manager/aves2_schemas/data_schema.py
jd-aig/aves2
10aeb832feb94adf563f9795013c77bfd115b44e
[ "Apache-2.0" ]
null
null
null
Aves2/job_manager/aves2_schemas/data_schema.py
jd-aig/aves2
10aeb832feb94adf563f9795013c77bfd115b44e
[ "Apache-2.0" ]
1
2020-12-08T05:14:23.000Z
2020-12-08T05:14:23.000Z
data_schema = { "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://example.com/root.json", "type": "object", "title": "The Root Schema", "required": [ "type", "pvc", "path", "filename" ], "properties": { "type": { "$id": "#/properties/type",...
19.892857
55
0.409336
data_schema = { "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://example.com/root.json", "type": "object", "title": "The Root Schema", "required": [ "type", "pvc", "path", "filename" ], "properties": { "type": { "$id": "#/properties/type",...
0
0
0
0
0
0
0
0
0
223c2cc1668c0e1fd8c5eb1b2306bcd64971a335
32,181
py
Python
nullomers_assessor.py
vpennetti/nullomers-assessor
352de001f865efeb7ad37a1a51533a5a9f963682
[ "Apache-2.0" ]
3
2021-03-23T07:29:00.000Z
2021-12-02T21:36:35.000Z
nullomers_assessor.py
vpennetti/nullomers-assessor
352de001f865efeb7ad37a1a51533a5a9f963682
[ "Apache-2.0" ]
null
null
null
nullomers_assessor.py
vpennetti/nullomers-assessor
352de001f865efeb7ad37a1a51533a5a9f963682
[ "Apache-2.0" ]
1
2022-02-03T16:11:08.000Z
2022-02-03T16:11:08.000Z
import sys import math import numpy as np from statsmodels.compat.python import range from Bio import SeqIO from Bio.SeqUtils.ProtParam import ProteinAnalysis from itertools import product from time import process_time ########## main function ################################################################...
59.15625
291
0.650726
import sys import Bio import statsmodels import math import numpy as np import pandas as pd from statsmodels.compat.python import range from statsmodels.compat.collections import OrderedDict from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqUtils.ProtParam import ProteinAnalysis from collections impo...
0
0
0
0
0
1,569
0
79
238
0e73708eef7cd9ff9448de35b947d3c6d63f0ce7
9,968
py
Python
torch_models/models/seq_encoders.py
Ryou0634/pytorch_models
cd48f9b3797839df5dbf4e51bed81de44e7b962e
[ "BSD-3-Clause" ]
null
null
null
torch_models/models/seq_encoders.py
Ryou0634/pytorch_models
cd48f9b3797839df5dbf4e51bed81de44e7b962e
[ "BSD-3-Clause" ]
null
null
null
torch_models/models/seq_encoders.py
Ryou0634/pytorch_models
cd48f9b3797839df5dbf4e51bed81de44e7b962e
[ "BSD-3-Clause" ]
null
null
null
import torch.nn as nn
45.104072
133
0.652087
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence class SeqEncoderBase(nn.Module): ''' Sequence encoder takes sequences as input, transform them into embeddings, and then outputs encoded fixed-size representation. ...
0
0
0
9,688
0
0
0
52
204
0aa4c846dd24707f46527bf0c43bdc971d716dd5
6,693
py
Python
experiments/vitchyr/icra2018/train_separate_policies.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/icra2018/train_separate_policies.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/icra2018/train_separate_policies.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import random from rlkit.envs.mujoco.pusher_avoider_3dof import PusherAvoiderEnv3DOF from rlkit.launchers.launcher_util import run_experiment import rlkit.misc.hyperparameter as hyp from rlkit.torch.naf import NAF if __name__ == '__main__': num_configurations = 1 # for random mode n_seeds = 1 mode = "he...
31.570755
76
0.511729
import random import numpy as np from rlkit.envs.mujoco.pusher3dof import PusherEnv3DOF from rlkit.envs.mujoco.pusher_avoider_3dof import PusherAvoiderEnv3DOF from rlkit.exploration_strategies.ou_strategy import OUStrategy from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.networks import FeedFo...
0
0
0
0
0
1,486
0
189
179
5e5c6b74133371a4d1f0b9e965d2da016f8cbdbe
180
py
Python
ctpbee/interface/ctp/__init__.py
Faithforus/ctpbee
18cd81aa9218803ba649cde7389a1f249f4a24db
[ "MIT" ]
null
null
null
ctpbee/interface/ctp/__init__.py
Faithforus/ctpbee
18cd81aa9218803ba649cde7389a1f249f4a24db
[ "MIT" ]
null
null
null
ctpbee/interface/ctp/__init__.py
Faithforus/ctpbee
18cd81aa9218803ba649cde7389a1f249f4a24db
[ "MIT" ]
null
null
null
from .md_api import BeeMdApi from .md_api import BeeMdApiApp from .td_api import BeeTdApi from .td_api import BeeTdApiApp __all__ = [BeeMdApiApp, BeeMdApi, BeeTdApi, BeeTdApiApp]
25.714286
56
0.816667
from .md_api import BeeMdApi from .md_api import BeeMdApiApp from .td_api import BeeTdApi from .td_api import BeeTdApiApp __all__ = [BeeMdApiApp, BeeMdApi, BeeTdApi, BeeTdApiApp]
0
0
0
0
0
0
0
0
0
3b6757229fa4e0ec61c4e05d1d0337ce1546f654
2,904
py
Python
weibospider/pipelines.py
keyboardpianist/weiboSpider
e4ccaad4ee0e4dce31a18f6ddf16fba75d955aba
[ "MIT" ]
null
null
null
weibospider/pipelines.py
keyboardpianist/weiboSpider
e4ccaad4ee0e4dce31a18f6ddf16fba75d955aba
[ "MIT" ]
null
null
null
weibospider/pipelines.py
keyboardpianist/weiboSpider
e4ccaad4ee0e4dce31a18f6ddf16fba75d955aba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # twisted: ()cursor.execute()
31.565217
68
0.607094
# -*- coding: utf-8 -*- import pymongo from pymongo.errors import DuplicateKeyError from settings import MONGO_HOST, MONGO_PORT import pymysql # twisted: 用于异步写入(包含数据库)的框架,cursor.execute()是同步写入 from twisted.enterprise import adbapi class MongoDBPipeline(object): def __init__(self): client = pymongo.MongoCli...
708
761
0
1,651
0
0
0
47
156
0f2d10bfbdf173a3b75f3bacad2078c1e1729a98
24,301
py
Python
tlh/data/constraints.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
null
null
null
tlh/data/constraints.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
null
null
null
tlh/data/constraints.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
2
2021-10-05T20:40:12.000Z
2022-01-05T00:17:36.000Z
""" New idea: insert constraints one at a time as they come in and only move all existing relations accordingly - calculate the current virtual addresses for both sides of the constraint - take the lesser one and at a relation to place it at the higher one TODO what other relations need to be affected? - la...
45.592871
212
0.611127
from tlh.const import RomVariant from dataclasses import dataclass from sortedcontainers import SortedKeyList from bisect import bisect_left, bisect_right from intervaltree import Interval, IntervalTree @dataclass class Constraint: """ A constraint defines that two local addresses of different rom variants sho...
0
631
0
22,699
0
22
0
93
340
63f1240754200fb3db6c8ba0af5ce8147b8df1e0
4,001
py
Python
comparison/scikit_optimize/skopt_synthetic.py
zhanglei1172/XBBO
9bf9b778b29735f108457d5e491680785212d580
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
comparison/scikit_optimize/skopt_synthetic.py
zhanglei1172/XBBO
9bf9b778b29735f108457d5e491680785212d580
[ "MIT" ]
null
null
null
comparison/scikit_optimize/skopt_synthetic.py
zhanglei1172/XBBO
9bf9b778b29735f108457d5e491680785212d580
[ "MIT" ]
null
null
null
import numpy as np from skopt import gp_minimize from skopt import forest_minimize from skopt import gbrt_minimize from skopt import dummy_minimize if __name__ == "__main__": repeat_num = 10 max_call = 200 optimizers = [("gp_minimize", gp_minimize), ("forest_minimize", forest_minimize),...
38.471154
98
0.535116
import numpy as np import argparse from skopt.benchmarks import branin from skopt import gp_minimize from skopt import forest_minimize from skopt import gbrt_minimize from skopt import dummy_minimize def run(n_calls, n_runs, optimizers, acq_optimizer="lbfgs"): bounds = [(-5.0, 10.0), (0.0, 15.0)] results = ...
0
0
0
0
0
2,129
0
8
68
123407deed2006aaea02f0978e86eba377859f9f
1,048
py
Python
src/01/1.1.3_affine_cipher.py
fujiawei-dev/cryptography-note
5f4fe1d9139e6b68e4307dce66d3881b184368bd
[ "MIT" ]
1
2022-01-31T03:30:33.000Z
2022-01-31T03:30:33.000Z
src/01/1.1.3_affine_cipher.py
fujiawei-dev/cryptography-notes
5f4fe1d9139e6b68e4307dce66d3881b184368bd
[ "MIT" ]
null
null
null
src/01/1.1.3_affine_cipher.py
fujiawei-dev/cryptography-notes
5f4fe1d9139e6b68e4307dce66d3881b184368bd
[ "MIT" ]
null
null
null
''' Date: 2022.01.26 15:01:37 Description: LastEditors: Rustle Karl LastEditTime: 2022.01.26 15:27:13 ''' def get_multiplicative_inverse(a): '''''' return { 1: 1, 3: 9, 9: 3, 5: 21, 21: 5, 7: 15, 15: 7, 11: 19, 19: 11, 17: 23, 23: 17, 25: 25 }[a] ...
18.385965
60
0.53626
''' Date: 2022.01.26 15:01:37 Description: 仿射密码 LastEditors: Rustle Karl LastEditTime: 2022.01.26 15:27:13 ''' from math import gcd def get_multiplicative_inverse(a): '''求乘法逆,这里只是简单列举''' return { 1: 1, 3: 9, 9: 3, 5: 21, 21: 5, 7: 15, 15: 7, 11: 19, 19: 11, 17:...
93
0
0
0
0
494
0
-1
115
198033a9e06ba521eb44e04eebe28e277a882980
1,853
py
Python
deliver/send.py
sirech/deliver
0ddb47d9b7c7a4bddfcf92e4bd683803c95efd3a
[ "MIT" ]
3
2017-06-07T21:48:20.000Z
2020-06-15T16:27:43.000Z
deliver/send.py
sirech/deliver
0ddb47d9b7c7a4bddfcf92e4bd683803c95efd3a
[ "MIT" ]
null
null
null
deliver/send.py
sirech/deliver
0ddb47d9b7c7a4bddfcf92e4bd683803c95efd3a
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
34.962264
95
0.639504
import smtplib from converter.simple import UnicodeMessage import logging logger = logging.getLogger(__name__) class Sender: ''' Class that is responsible of sending emails. It uses a specified SMTP server. ''' def __init__(self, config): self._cfg = config def send(self, msg, *recipien...
0
0
0
1,717
0
0
0
15
68
53d7106d7c33b79a64f1f311fcf25ed2d46352f6
353
py
Python
models/authenticate.py
DamirZaripov16/test_ui-project
45dfc7ce84c40ecff68405bf1a39e8487cfec421
[ "Apache-2.0" ]
null
null
null
models/authenticate.py
DamirZaripov16/test_ui-project
45dfc7ce84c40ecff68405bf1a39e8487cfec421
[ "Apache-2.0" ]
null
null
null
models/authenticate.py
DamirZaripov16/test_ui-project
45dfc7ce84c40ecff68405bf1a39e8487cfec421
[ "Apache-2.0" ]
null
null
null
from faker import Faker fake = Faker("Ru-ru")
22.0625
53
0.660057
from faker import Faker fake = Faker("Ru-ru") class AuthenticationData: def __init__(self, username=None, password=None): self.username = username self.password = password @staticmethod def random(): username = fake.email() password = fake.password() return Authen...
0
131
0
151
0
0
0
0
23
0b0963e3eb7fa01e3e078eec3daa95d6180ad53b
570,120
py
Python
Python Codes/Webscrapper/BeautifulSoup Webscrapper.py
ryukeno/Onepark-ParkingProject
cc09e2dc41024776e0c24921fb0ce94eefb61d98
[ "MIT" ]
2
2020-06-12T03:34:31.000Z
2020-11-04T11:23:10.000Z
Python Codes/Webscrapper/BeautifulSoup Webscrapper.py
ryukeno/Onepark-DataProject
cc09e2dc41024776e0c24921fb0ce94eefb61d98
[ "MIT" ]
null
null
null
Python Codes/Webscrapper/BeautifulSoup Webscrapper.py
ryukeno/Onepark-DataProject
cc09e2dc41024776e0c24921fb0ce94eefb61d98
[ "MIT" ]
null
null
null
import pandas as pd import sys import time url_list = ["https://www.google.com/search?q=Thomas+Muntzer+Strasse+122+parking+Gamstadt", "https://www.google.com/search?q=Bierweg+2+parking+Schkeuditz", "https://www.google.com/search?q=Terminalring+3+parking+Schkeuditz", "https://www.google.com/search?q=Kohlmeisenweg+3+par...
67.151943
133
0.766698
from urllib.request import Request, urlopen import urllib import requests import pandas as pd from xlwt import Workbook from bs4 import BeautifulSoup import sys import time import random url_list = ["https://www.google.com/search?q=Thomas+Muntzer+Strasse+122+parking+Gamstadt", "https://www.google.com/search?q=Bierweg+...
0
0
0
0
246
335
0
12
223
da884f5ead10b94e4d9a92da7b24ea0d8fd2c498
58
py
Python
moodle/mod/data/__init__.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
moodle/mod/data/__init__.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
moodle/mod/data/__init__.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
from .base import BaseData __all__ = [ "BaseData", ]
9.666667
26
0.637931
from .base import BaseData __all__ = [ "BaseData", ]
0
0
0
0
0
0
0
0
0
5cfd293577337dc1790faa870bc3e821cc967e76
2,751
py
Python
hospitals/views.py
Lifespark-Technologies/Infomed
25a20788b4f9314360e4e1c1d8592597e9e0587c
[ "MIT" ]
2
2020-05-18T12:15:27.000Z
2020-06-16T12:26:23.000Z
hospitals/views.py
Lifespark-Technologies/Infomed
25a20788b4f9314360e4e1c1d8592597e9e0587c
[ "MIT" ]
76
2020-04-29T07:00:39.000Z
2021-06-10T19:14:11.000Z
hospitals/views.py
Lifespark-Technologies/Infomed
25a20788b4f9314360e4e1c1d8592597e9e0587c
[ "MIT" ]
2
2020-05-07T19:25:06.000Z
2020-06-05T14:30:29.000Z
# Create your views here.
37.684932
118
0.677208
from django.shortcuts import render from isodate import parse_duration from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.response import Response from rest_framework_extensions.mixins import NestedViewSetMixin from .models import Hospital, AppointmentSlot from .seriali...
0
268
0
1,995
0
0
0
193
266
2a448b798c76e008bc6f72e7e626401e5a351245
5,205
py
Python
futuquant/examples/app/shock_alarm/mysql_interface.py
hxhxhx88/futuquant
a1b4a875604f1de451ddde4bfa3e713452482b0a
[ "Apache-2.0" ]
null
null
null
futuquant/examples/app/shock_alarm/mysql_interface.py
hxhxhx88/futuquant
a1b4a875604f1de451ddde4bfa3e713452482b0a
[ "Apache-2.0" ]
null
null
null
futuquant/examples/app/shock_alarm/mysql_interface.py
hxhxhx88/futuquant
a1b4a875604f1de451ddde4bfa3e713452482b0a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # test code # myopenid = "kdhfskgadfvbsdvkjgkaghsdzfkigv_dgfjsdzfvbjazsgdcfvgh" # p1 = 1000000.0 # p2 = 4000000.0 # stockid = "" # user_setting = '' + ' ' + str(p1) + ' ' + str(p2) + ' ' # mi = mysql_interaction() # mi.mysql_connect() # mi.create_table() # mi.update_threshold(myopenid, user_se...
35.650685
205
0.615946
# -*- coding: utf-8 -*- import pymysql import sys class mysql_interface: def __init__(self): self.host = '127.0.0.1' self.port = 3306 self.user = 'root' self.passwd = 'hackch' self.database = 'stock_alarm' def mysql_connect(self): conn = pymysql.connect(host=se...
54
0
0
4,508
0
0
0
-18
67
e1b2c1149369f6df05254a3b3334843b99dc7b5a
536
py
Python
var/spack/repos/builtin/packages/minisign/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/minisign/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/minisign/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT)
29.777778
77
0.733209
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Minisign(CMakePackage): """Minisign is a dead simple tool to sign files and verify signatu...
0
0
0
294
0
0
0
-2
46
0630d97b18daffadde771908896b42a254081608
1,335
py
Python
test_local.py
schnabel/pyhifiberry
95db6332bbff87ec5b06e13c5f564131d9118281
[ "MIT" ]
1
2020-11-29T08:22:04.000Z
2020-11-29T08:22:04.000Z
test_local.py
schnabel/pyhifiberry
95db6332bbff87ec5b06e13c5f564131d9118281
[ "MIT" ]
6
2021-10-03T07:09:08.000Z
2022-03-31T15:29:24.000Z
test_local.py
schnabel/pyhifiberry
95db6332bbff87ec5b06e13c5f564131d9118281
[ "MIT" ]
2
2021-11-12T19:53:16.000Z
2022-01-19T15:48:07.000Z
import asyncio if __name__ == "__main__": asyncio.get_event_loop().run_until_complete(main())
29.666667
86
0.570037
import aiohttp import asyncio from pyhifiberry import audiocontrol2 async def main(): try: async with aiohttp.ClientSession() as session: api = audiocontrol2.Audiocontrol2(session, host="192.168.1.150") status = await api.status() print(status) ...
0
0
1,153
0
0
0
0
9
74
ed98849faa6ce5bb0f07c478c4b1591efe3043de
5,377
py
Python
tests/test_DataLoaderStock.py
GuQiangJS/LSTM-for-Stock
3bae9e5075f5c612a125726777c8275e805ccd9e
[ "MIT" ]
1
2019-07-28T02:26:38.000Z
2019-07-28T02:26:38.000Z
tests/test_DataLoaderStock.py
GuQiangJS/LSTM-for-Stock
3bae9e5075f5c612a125726777c8275e805ccd9e
[ "MIT" ]
null
null
null
tests/test_DataLoaderStock.py
GuQiangJS/LSTM-for-Stock
3bae9e5075f5c612a125726777c8275e805ccd9e
[ "MIT" ]
1
2019-05-16T23:43:36.000Z
2019-05-16T23:43:36.000Z
""" DataLoaderStock Wrapper """ import datetime from LSTM_for_Stock.data_processor import get_ipo_date def _test_dt(code): """""" try: return datetime.datetime(2005, 1, 1) >= get_ipo_date(code) except: return False # def test_111(): # import time # import os # import...
30.378531
71
0.639018
""" 训练 DataLoaderStock 及 相关的 Wrapper """ import datetime import logging import numpy as np import pandas as pd from QUANTAXIS.QAFetch.QAQuery_Advance import \ QA_fetch_stock_block_adv as get_block from LSTM_for_Stock.data_processor import DataLoader from LSTM_for_Stock.data_processor import DataLoaderStock from L...
87
0
0
179
0
4,089
0
257
406
a8f76f6390fbed3c3d6e253fc4b28b526902315e
7,470
py
Python
tests/old_tests/hessian_graphs.py
jiangzhongshi/acorns-benchmark
df5f43af90a32f4c1578cdea1f4f412237e18c75
[ "MIT" ]
1
2021-09-24T21:24:02.000Z
2021-09-24T21:24:02.000Z
tests/old_tests/hessian_graphs.py
jiangzhongshi/acorns-benchmark
df5f43af90a32f4c1578cdea1f4f412237e18c75
[ "MIT" ]
null
null
null
tests/old_tests/hessian_graphs.py
jiangzhongshi/acorns-benchmark
df5f43af90a32f4c1578cdea1f4f412237e18c75
[ "MIT" ]
1
2021-09-24T21:22:54.000Z
2021-09-24T21:22:54.000Z
import seaborn as sns import re sns.set(style="darkgrid") num_params_list = [10, 2010, 4010, 6010, 8010, 10010, 20010, 30010, 40010] def natural_keys(text): ''' alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementat...
50.816327
183
0.690495
import matplotlib.pyplot as plt import numpy as np import os import json import seaborn as sns import re sns.set(style="darkgrid") num_params_list = [10, 2010, 4010, 6010, 8010, 10010, 20010, 30010, 40010] def atoi(text): return int(text) if text.isdigit() else text def natural_keys(text): ''' ...
0
0
0
0
0
6,010
0
-15
242
03deef2de38b0f04176a1d773cb0ba5094bea1a4
6,375
py
Python
neuronova_siet/convolutionalNetwork_ResNet50_4class.py
pavolmarak/level1_extractor
55cb4b0d32a9740a963a069c732548363dc010fe
[ "MIT" ]
null
null
null
neuronova_siet/convolutionalNetwork_ResNet50_4class.py
pavolmarak/level1_extractor
55cb4b0d32a9740a963a069c732548363dc010fe
[ "MIT" ]
null
null
null
neuronova_siet/convolutionalNetwork_ResNet50_4class.py
pavolmarak/level1_extractor
55cb4b0d32a9740a963a069c732548363dc010fe
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras import numpy as np from PIL import Image import glob from sklearn.metrics import confusion_matrix classes = {'Arch': 0, 'Left Loop': 1, 'Right Loop': 2, 'Whorl': 3} class_num = len(classes.keys()) file_folder_arch = '/home/editav/Desktop/FVC2002_Db4_a_b...
38.636364
148
0.741961
import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib.pyplot as plt from PIL import Image import glob from sklearn.metrics import confusion_matrix from sklearn.metrics import plot_confusion_matrix classes = {'Arch': 0, 'Left Loop': 1, 'Right Loop': 2, 'Whorl': 3} class_n...
0
0
0
0
0
0
0
38
46
56d69f9e2fee5329e715995a7c1f3bdb114a0f2b
11,991
py
Python
rest_tools/client/client.py
WIPACrepo/rest-tools
01f5822db4c8d2546cf3a8cdfaaae6afd1e96679
[ "MIT" ]
1
2020-08-24T19:05:57.000Z
2020-08-24T19:05:57.000Z
rest_tools/client/client.py
WIPACrepo/rest-tools
01f5822db4c8d2546cf3a8cdfaaae6afd1e96679
[ "MIT" ]
32
2020-05-15T20:14:31.000Z
2022-03-16T15:01:45.000Z
rest_tools/client/client.py
WIPACrepo/rest-tools
01f5822db4c8d2546cf3a8cdfaaae6afd1e96679
[ "MIT" ]
null
null
null
"""A simple REST json client using `requests`_ for the http connection. .. _requests: http://docs.python-requests.org The REST protocol is built on http(s), with the body containing a json-encoded dictionary as necessary. """ # fmt:off
33.308333
131
0.566258
"""A simple REST json client using `requests`_ for the http connection. .. _requests: http://docs.python-requests.org The REST protocol is built on http(s), with the body containing a json-encoded dictionary as necessary. """ # fmt:off import asyncio import logging import os import time from typing import Any, Call...
0
3,947
0
7,306
0
95
0
86
314
ad03574d359a584a0abdfeb741bbba716131c257
8,543
py
Python
sts_wrldom/pawarModel.py
BigBossAnwer/STS-Pipeline
952d2c577dd4b8a66c99b80a24589a98e20c2e60
[ "MIT" ]
null
null
null
sts_wrldom/pawarModel.py
BigBossAnwer/STS-Pipeline
952d2c577dd4b8a66c99b80a24589a98e20c2e60
[ "MIT" ]
null
null
null
sts_wrldom/pawarModel.py
BigBossAnwer/STS-Pipeline
952d2c577dd4b8a66c99b80a24589a98e20c2e60
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np from wn.path import WordNetPaths def disambiguate_pipe(df, name=None): """Returns a list of 2-tuples (s1_disam, s2_disam), for each sentence pair in the dataframe, where each tuple is a list of disambiguated 2-tuples (word, synset). Args: ...
33.900794
94
0.584923
import argparse import json import sys from collections import OrderedDict from pathlib import Path import numpy as np import pandas as pd from scipy.stats import pearsonr from wn.path import WordNetPaths from sts_wrldom.corpusReader import read_data from sts_wrldom.utils import accuracy, get_scores, log_frame, rmse ...
0
0
0
0
0
2,562
0
70
200
36b1b8ec9746579c952c7aa0820a277b8669d81b
2,360
py
Python
modules/gender.py
adnan3856/BUDDY-A-face-recognition-based-voice-assistant-
69833de3fda4ba6f4fef4e64ed12623fdd436ac7
[ "MIT" ]
null
null
null
modules/gender.py
adnan3856/BUDDY-A-face-recognition-based-voice-assistant-
69833de3fda4ba6f4fef4e64ed12623fdd436ac7
[ "MIT" ]
null
null
null
modules/gender.py
adnan3856/BUDDY-A-face-recognition-based-voice-assistant-
69833de3fda4ba6f4fef4e64ed12623fdd436ac7
[ "MIT" ]
null
null
null
import cv2 as cv import sys faceProto = "datasets/opencv_face_detector.pbtxt" faceModel = "datasets/opencv_face_detector_uint8.pb" genderProto = "datasets/gender_deploy.prototxt" genderModel = "datasets/gender_net.caffemodel" MODEL_MEAN_VALUES = (78.4263377603, 87.7689143744, 114.895847746) genderList = ['Ma...
35.223881
141
0.652542
import cv2 as cv import sys faceProto = "datasets/opencv_face_detector.pbtxt" faceModel = "datasets/opencv_face_detector_uint8.pb" genderProto = "datasets/gender_deploy.prototxt" genderModel = "datasets/gender_net.caffemodel" MODEL_MEAN_VALUES = (78.4263377603, 87.7689143744, 114.895847746) genderList = ['Ma...
0
0
0
0
0
870
0
0
25
6f43492bb77ef0f38b74347e7530ab085fb9e453
2,307
py
Python
liv_learn/utils/plot_utils.py
neilswainston/synbiochem-learn
9608b867a74989fd685b564dfa0f90f4c4f0165a
[ "MIT" ]
null
null
null
liv_learn/utils/plot_utils.py
neilswainston/synbiochem-learn
9608b867a74989fd685b564dfa0f90f4c4f0165a
[ "MIT" ]
null
null
null
liv_learn/utils/plot_utils.py
neilswainston/synbiochem-learn
9608b867a74989fd685b564dfa0f90f4c4f0165a
[ "MIT" ]
null
null
null
''' (c) University of Liverpool 2019 All rights reserved. @author: neilswainston ''' # pylint: disable=invalid-name # pylint: disable=wrong-import-order import math from sklearn.linear_model import LinearRegression from liv_learn.utils import coeff_corr import matplotlib.pyplot as plt def plot_histogram(data, xla...
26.215909
73
0.654963
''' (c) University of Liverpool 2019 All rights reserved. @author: neilswainston ''' # pylint: disable=invalid-name # pylint: disable=wrong-import-order import math from sklearn.linear_model import LinearRegression from liv_learn.utils import coeff_corr import matplotlib.pyplot as plt def plot_histogram(data, xla...
0
0
0
0
0
0
0
0
0
9871639d9becee08a4b2d8ffdfd538d2ebce9557
1,083
py
Python
eureka/server/server_config.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-06T09:48:23.000Z
2020-10-07T13:19:46.000Z
eureka/server/server_config.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-05T09:57:01.000Z
2020-10-12T19:52:48.000Z
eureka/server/server_config.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
8
2020-10-05T06:34:49.000Z
2020-10-07T13:19:46.000Z
# -*- coding: utf-8 -*- __author__ = "Daniel1147 (sxn91401@gmail.com)" __license__ = "Apache 2.0" # standard library
18.672414
116
0.604801
# -*- coding: utf-8 -*- __author__ = "Daniel1147 (sxn91401@gmail.com)" __license__ = "Apache 2.0" # standard library from abc import ABC, abstractmethod class ServerConfig(ABC): """ The configuration for starting up the eureka server. It allows clients to override the entities through setters. """ ...
0
426
0
454
0
0
0
14
68
b98bf1453272b88db2f452b3a0e08b868e90f6cd
76,294
py
Python
testSuite/scripts/test_service_to_service_copy.py
evenh/azure-storage-azcopy
2c30af330b681d3a1f31db32e11245eafce9c5c3
[ "MIT" ]
null
null
null
testSuite/scripts/test_service_to_service_copy.py
evenh/azure-storage-azcopy
2c30af330b681d3a1f31db32e11245eafce9c5c3
[ "MIT" ]
null
null
null
testSuite/scripts/test_service_to_service_copy.py
evenh/azure-storage-azcopy
2c30af330b681d3a1f31db32e11245eafce9c5c3
[ "MIT" ]
null
null
null
import os
56.514074
216
0.705586
import json import os import shutil import time import urllib from collections import namedtuple import utility as util import unittest import filecmp import os.path class Service_2_Service_Copy_User_Scenario(unittest.TestCase): def setUp(self): # init bucket_name common_prefix = 's2scopybucket' ...
0
2,726
0
73,380
0
0
0
-42
221
db79d585651835308738e9521ec3d1ce8968000d
6,340
py
Python
ipet/parsing/StatisticReader_CustomReader.py
stephenjmaher/ipet
3a23d81ba6ed7cb41e86211cb0507170e8cd205a
[ "MIT" ]
null
null
null
ipet/parsing/StatisticReader_CustomReader.py
stephenjmaher/ipet
3a23d81ba6ed7cb41e86211cb0507170e8cd205a
[ "MIT" ]
null
null
null
ipet/parsing/StatisticReader_CustomReader.py
stephenjmaher/ipet
3a23d81ba6ed7cb41e86211cb0507170e8cd205a
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2018 Zuse Institute Berlin, www.zib.de Permissions are granted as stated in the license file you have obtained with this software. If you find the library useful for your purpose, please refer to README.md for how to cite IPET. @author: Gregor Hendel """ import logging logger...
32.680412
151
0.588644
""" The MIT License (MIT) Copyright (c) 2018 Zuse Institute Berlin, www.zib.de Permissions are granted as stated in the license file you have obtained with this software. If you find the library useful for your purpose, please refer to README.md for how to cite IPET. @author: Gregor Hendel """ from .StatisticReader ...
0
0
0
5,829
0
0
0
27
133
b84431952fff96610f94856bd885e4cef0405172
6,509
py
Python
python/rikai/spark/sql/codegen/fs.py
adRise/rikai
052022594bf924fa7cd6062d290e3392c6b7571a
[ "Apache-2.0" ]
null
null
null
python/rikai/spark/sql/codegen/fs.py
adRise/rikai
052022594bf924fa7cd6062d290e3392c6b7571a
[ "Apache-2.0" ]
null
null
null
python/rikai/spark/sql/codegen/fs.py
adRise/rikai
052022594bf924fa7cd6062d290e3392c6b7571a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Rikai Authors # # 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 wri...
28.548246
76
0.590413
# Copyright 2021 Rikai Authors # # 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 wri...
0
1,065
0
2,186
0
0
0
133
158
e037b8fad5f5e0b9e9debd08dec5e87d2f5dfa16
11,261
py
Python
contrib/opencensus-ext-django/tests/test_django_middleware.py
hkwi/opencensus-python
4673e1bbe091f5ca4d2e8d2b778005104396f764
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-django/tests/test_django_middleware.py
hkwi/opencensus-python
4673e1bbe091f5ca4d2e8d2b778005104396f764
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-django/tests/test_django_middleware.py
hkwi/opencensus-python
4673e1bbe091f5ca4d2e8d2b778005104396f764
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus Authors # # 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 w...
32.45245
127
0.642572
# Copyright 2017, OpenCensus Authors # # 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 w...
0
0
0
10,167
0
0
0
218
291
fa86dfd13823fdc44a4452c3202176dc16c4eabb
1,198
py
Python
analyze/calc_run_20180202-l.py
JeroenvO/pulsedpowerplasmaplots
dd953359569826edfae321a039b6f9af2340d560
[ "MIT" ]
null
null
null
analyze/calc_run_20180202-l.py
JeroenvO/pulsedpowerplasmaplots
dd953359569826edfae321a039b6f9af2340d560
[ "MIT" ]
null
null
null
analyze/calc_run_20180202-l.py
JeroenvO/pulsedpowerplasmaplots
dd953359569826edfae321a039b6f9af2340d560
[ "MIT" ]
null
null
null
base = 'G:/Prive/MIJN-Documenten/TU/62-Stage/20180202-l/' d=-5 # calc_run(base + 'run1b', # REACTOR_GLASS_SHORT_QUAD, # scope_multiple=True, # scope_file_name_index=2, # lengt # meas=SHORT_MEAS_LEN, # current_scaling=0.5, # delay=d, # voltage_offset=30, ...
24.44898
57
0.565109
from analyze.calc_run import * base = 'G:/Prive/MIJN-Documenten/TU/62-Stage/20180202-l/' d=-5 # calc_run(base + 'run1b', # REACTOR_GLASS_SHORT_QUAD, # scope_multiple=True, # scope_file_name_index=2, # lengt # meas=SHORT_MEAS_LEN, # current_scaling=0.5, # delay=d,...
0
0
0
0
0
0
0
9
22
f71b9cde058636291fadd916f2bb3f983e61f130
3,694
py
Python
BM/1.Pipelines_For_Running_Tools/1.B.pipe_M2S2MH/python.MH_conc.py
hiyoothere/Benchmarking-mosaic-variant-detection
a627602276273c10bbdcf2b9cf30a634765e40f8
[ "CECILL-B" ]
2
2021-11-24T04:38:34.000Z
2022-01-21T08:38:24.000Z
BM/1.Pipelines_For_Running_Tools/1.B.pipe_M2S2MH/python.MH_conc.py
hiyoothere/Benchmarking-mosaic-variant-detection
a627602276273c10bbdcf2b9cf30a634765e40f8
[ "CECILL-B" ]
null
null
null
BM/1.Pipelines_For_Running_Tools/1.B.pipe_M2S2MH/python.MH_conc.py
hiyoothere/Benchmarking-mosaic-variant-detection
a627602276273c10bbdcf2b9cf30a634765e40f8
[ "CECILL-B" ]
null
null
null
import glob import sys ##### creatin dict that will have all control positions ##### EXECUTION ###### MHpath = sys.argv[1] ID_con = sys.argv[2] ID_cas = sys.argv[3] OutPath = sys.argv[4] DP = sys.argv[5] if "ND" in DP: con_MH = MHpath + "/ND-" + ID_con + "/final.passed.tsv" cas_MH = MHpath + "/ND-" + ID_cas + "/...
30.278689
96
0.566594
import glob import sys ##### creatin dict that will have all control positions def con_pos(con_MH): con_dict = {} f = open(con_MH, 'r') for line in f: s = line.split() chr = s[0] pos = s[1] ref = int(s[7]) #ref depth alt = int(s[9]) #alt depth vaf = float(alt)/(ref+alt) alt_type = s[8] #alt base ...
0
0
0
0
0
3,031
0
0
118
4144ce31063b1d2b9decd3583fe037bc287fa1f0
8,305
py
Python
src/tener/models/embeddings/sinusoidal_embd.py
dhiraa/tener
54b78aead492390b2ea0016596a3ebe2b9c3b986
[ "Apache-2.0" ]
8
2020-02-21T09:16:43.000Z
2020-10-17T02:33:32.000Z
src/tener/models/embeddings/sinusoidal_embd.py
dhiraa/tener
54b78aead492390b2ea0016596a3ebe2b9c3b986
[ "Apache-2.0" ]
6
2020-09-25T19:03:58.000Z
2022-02-28T07:18:00.000Z
src/tener/models/embeddings/sinusoidal_embd.py
dhiraa/tener
54b78aead492390b2ea0016596a3ebe2b9c3b986
[ "Apache-2.0" ]
6
2020-04-28T06:27:35.000Z
2022-02-20T19:17:15.000Z
import math import tensorflow as tf import torch def make_positions(tensor, padding_idx=0): """Replace non-padding symbols with their position numbers. Position numbers begin at padding_idx+1. Padding symbols are ignored. """ # The series of casts and type-conversions here are carefully # balan...
37.922374
120
0.636725
import math import numpy as np import tensorflow as tf import torch from torch import nn import torch.nn.functional as F import math from tener.misc.pretty_print import print_info def get_angles(pos, i, d_model): angle_rates = 1 / np.power(10000, (2 * (i//2)) / np.float32(d_model)) return pos * angle_rates...
21
1,706
0
4,296
0
609
0
21
250