hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
090a042fdb172133fc8a7549c6014b2194047447
12,410
py
Python
compute_mainmodes.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
1
2020-06-24T12:49:49.000Z
2020-06-24T12:49:49.000Z
compute_mainmodes.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
null
null
null
compute_mainmodes.py
mehrdad-bm/mobility_shift
242f12b60dc8e07e3da13b5f1199456fd0fd697e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 27 00:17:55 2020 @author: mehrdad """ import json import numpy as np import pandas as pd import time import math #import blist import tslib.mining import tslib.common import tslib.trip_detection import tslib.trip STORE_RESULTS = False #output_fol...
40.032258
135
0.652458
0
0
0
0
0
0
0
0
5,026
0.404996
090a8d868906c9c97d5b54db58497792e9cd606d
24,054
py
Python
envs/env.py
CMU-Light-Curtains/SafetyEnvelopes
e2b32f99437ea36c8b22f97470c5a7f406d3ec78
[ "BSD-3-Clause" ]
null
null
null
envs/env.py
CMU-Light-Curtains/SafetyEnvelopes
e2b32f99437ea36c8b22f97470c5a7f406d3ec78
[ "BSD-3-Clause" ]
null
null
null
envs/env.py
CMU-Light-Curtains/SafetyEnvelopes
e2b32f99437ea36c8b22f97470c5a7f406d3ec78
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod import gym import matplotlib.pyplot as plt import numpy as np from pathlib import Path import time from setcpp import SmoothnessDPL1Cost, SmoothnessDPPairGridCost, SmoothnessGreedy import tqdm from typing import Optional, Tuple, NoReturn from data.synthia import Frame, append_xyz_to...
46.436293
130
0.547435
22,885
0.951401
0
0
3,045
0.12659
0
0
11,543
0.479879
090ac8191b92a41692dec58a6457de7f58261791
17,884
py
Python
pw_console/py/pw_console/plugins/clock_pane.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
86
2021-03-09T23:49:40.000Z
2022-03-30T08:14:51.000Z
pw_console/py/pw_console/plugins/clock_pane.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
4
2021-07-27T20:32:03.000Z
2022-03-08T10:39:07.000Z
pw_console/py/pw_console/plugins/clock_pane.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
22
2021-03-11T15:15:47.000Z
2022-02-09T06:16:36.000Z
# Copyright 2021 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
41.207373
132
0.597238
16,416
0.917915
0
0
340
0.019011
0
0
9,386
0.524827
090c37be215b0f5ca5159ca3a58646804fc96e15
163
py
Python
workshop_material/superfast/test/test_stuff.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
106
2018-08-30T01:45:38.000Z
2021-06-03T11:05:15.000Z
workshop_material/superfast/test/test_stuff.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
3
2019-04-12T02:03:25.000Z
2019-05-07T00:16:55.000Z
workshop_material/superfast/test/test_stuff.py
nrupatunga/pyimageconf2018
2f4c83a78206106b50835730749028a03fbbc565
[ "BSL-1.0" ]
36
2018-08-30T04:08:31.000Z
2021-05-18T07:02:10.000Z
import numpy as np import superfast def test_sum(): a = np.array([[1,2,3],[2,3,4]]).astype('float64') assert(a.sum() == superfast.sum_row_major_order(a))
23.285714
55
0.656442
0
0
0
0
0
0
0
0
9
0.055215
090c9c265a0fb2fb0dad7a18bd49965eaa38157a
3,816
py
Python
mono/model/mono_autoencoder/layers.py
Jenaer/FeatDepth
64128b03873b27ffa5e99a5cb1712dd8aa15cb0d
[ "MIT" ]
179
2020-08-21T08:57:22.000Z
2022-03-26T21:55:20.000Z
mono/model/mono_autoencoder/layers.py
sconlyshootery/feature_metric_depth
550420b3fb51a027549716b74c6fbce41651d3a5
[ "MIT" ]
84
2020-08-30T14:25:19.000Z
2022-03-08T12:29:37.000Z
mono/model/mono_autoencoder/layers.py
sconlyshootery/feature_metric_depth
550420b3fb51a027549716b74c6fbce41651d3a5
[ "MIT" ]
31
2020-10-01T12:12:19.000Z
2022-03-06T08:04:18.000Z
from __future__ import absolute_import, division, print_function import torch import torch.nn as nn import torch.nn.functional as F class SSIM(nn.Module): def __init__(self): super(SSIM, self).__init__() self.mu_x_pool = nn.AvgPool2d(3, 1) self.mu_y_pool = nn.AvgPool2d(3, 1) s...
33.473684
128
0.586478
3,051
0.799528
0
0
0
0
0
0
45
0.011792
090caec635d034601a9a45a30d2d0ee7c652da16
2,413
py
Python
pdnn/helpers/the_graveyard.py
alamorre/pdnn-experiment
b07b509e8610c324b11aa81204cfca06b8437f16
[ "BSD-2-Clause-FreeBSD" ]
17
2017-06-14T16:36:12.000Z
2021-01-31T18:16:10.000Z
pdnn/helpers/the_graveyard.py
alamorre/pdnn-experiment
b07b509e8610c324b11aa81204cfca06b8437f16
[ "BSD-2-Clause-FreeBSD" ]
1
2018-02-26T16:04:48.000Z
2018-03-01T06:42:57.000Z
pdnn/helpers/the_graveyard.py
alamorre/pdnn-experiment
b07b509e8610c324b11aa81204cfca06b8437f16
[ "BSD-2-Clause-FreeBSD" ]
5
2017-09-12T13:20:02.000Z
2019-02-06T08:41:58.000Z
import numpy as np from plato.core import as_floatx, create_shared_variable, symbolic, add_update from theano import tensor as tt class FutureWeightGradCalculator(object): def __init__(self, kp, kd, shapes): """ :param kp: :param kd: :param shapes: A tuple that specifies (minibatc...
29.426829
86
0.61293
1,125
0.466225
0
0
1,762
0.730211
0
0
411
0.170327
090cd84d945d6fe0adc3e503a0af7a8286c3e451
5,603
py
Python
shop/views/cart_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/views/cart_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/views/cart_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
import logging from cart import Cart from django.conf import settings from django.contrib.sites.models import get_current_site from django.utils import translation from mailtemplates.models import EMailTemplate from payment.models import PrePayment from payment.services.paypal import paypal from shop.checkout_wizard im...
35.916667
116
0.641442
3,370
0.601464
0
0
1,511
0.269677
0
0
686
0.122434
090d1859bb4cd8c066260b4c5385d95d8db098d8
498
py
Python
solutions/python3/984.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/984.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/984.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def strWithout3a3b(self, A: int, B: int) -> str: if not A and not B: return '' if A >= B: a = 2 if A >= 2 else 1 b = 2 if A - a - B < 1 and B >= 2 else 1 if B else 0 return a * 'a' + b * 'b' + self.strWithout3a3b(A - a, B - b) else: ...
41.5
72
0.421687
485
0.973896
0
0
0
0
0
0
14
0.028112
090e30708a609fe03c64ef91c96c83167bd3b51a
4,178
py
Python
niftypad/api/__init__.py
AMYPAD/NiftyPAD
80bc005ca409f503a8df3a13a071d2f3f413553f
[ "Apache-2.0" ]
null
null
null
niftypad/api/__init__.py
AMYPAD/NiftyPAD
80bc005ca409f503a8df3a13a071d2f3f413553f
[ "Apache-2.0" ]
2
2021-09-06T21:38:43.000Z
2021-10-05T11:07:08.000Z
niftypad/api/__init__.py
AMYPAD/NiftyPAD
80bc005ca409f503a8df3a13a071d2f3f413553f
[ "Apache-2.0" ]
null
null
null
"""Clean API""" import logging from pathlib import Path from . import readers log = logging.getLogger(__name__) def kinetic_model(src, dst=None, params=None, model='srtmb_basis', input_interp_method='linear', w=None, r1=1, k2p=0.000250, beta_lim=None, n_beta=40, linear_phase_start=500, ...
43.978947
99
0.66539
0
0
0
0
0
0
0
0
2,101
0.502872
09112b983864e08dcf3260b85da5bc6f69581ccc
1,360
py
Python
cli/src/accretion_cli/_commands/raw/__init__.py
mattsb42/accretion
7cce5f4ed6d290bd9314b116be91417ded6b0f64
[ "Apache-2.0" ]
1
2019-10-19T11:18:17.000Z
2019-10-19T11:18:17.000Z
cli/src/accretion_cli/_commands/raw/__init__.py
mattsb42/accretion
7cce5f4ed6d290bd9314b116be91417ded6b0f64
[ "Apache-2.0" ]
13
2019-06-10T07:03:26.000Z
2019-11-06T01:09:38.000Z
cli/src/accretion_cli/_commands/raw/__init__.py
mattsb42/accretion
7cce5f4ed6d290bd9314b116be91417ded6b0f64
[ "Apache-2.0" ]
null
null
null
"""Raw CLI commands.""" from typing import IO import click from ..._templates import artifact_builder, replication_listener, source_region_core from ..._util.workers_zip import build_and_write_workers from .add import add_to_deployment from .init import init_project _TEMPLATES = {"builder": artifact_builder, "listen...
27.2
111
0.733088
0
0
0
0
894
0.657353
0
0
503
0.369853
09121593cc5ea6a702aa8923134e504c5a40889f
503
py
Python
ZiggeoConfig.py
Ziggeo/ZiggeoPythonSdk
7c1e46bdd0649bdd58707747279da40783f14f8b
[ "Apache-2.0" ]
3
2018-07-17T16:38:17.000Z
2020-10-31T19:56:47.000Z
ZiggeoConfig.py
Ziggeo/ZiggeoPythonSdk
7c1e46bdd0649bdd58707747279da40783f14f8b
[ "Apache-2.0" ]
8
2015-08-20T15:59:13.000Z
2022-01-17T13:08:45.000Z
ZiggeoConfig.py
Ziggeo/ZiggeoPythonSdk
7c1e46bdd0649bdd58707747279da40783f14f8b
[ "Apache-2.0" ]
7
2015-08-12T14:32:12.000Z
2019-10-30T05:26:51.000Z
class ZiggeoConfig: def __init__(self): self.server_api_url = "https://srv-api.ziggeo.com" self.regions = {"r1":"https://srv-api-eu-west-1.ziggeo.com"} self.api_url = "https://api-us-east-1.ziggeo.com" self.api_regions = {"r1":"https://api-eu-west-1.ziggeo.com"} self.cdn...
29.588235
74
0.612326
502
0.998012
0
0
0
0
0
0
216
0.429423
0913490c7e8b8a24f711e0b9a27fb487a58be19f
77
py
Python
recipes/stages/_base_/optimizers/adam.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
recipes/stages/_base_/optimizers/adam.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
recipes/stages/_base_/optimizers/adam.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
_base_ = './optimizer.py' optimizer = dict( type='Adam', lr=0.003 )
11
25
0.571429
0
0
0
0
0
0
0
0
22
0.285714
091385b6dc5d31a226660eaa47c59dfda0a2329a
5,998
py
Python
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
.virtual_documents/project_workbook.ipynb.py
manolaz/bordeaux-data-mining-2021-workbook
bdb2b1418d20921878d9d74afcb6eac54c474061
[ "MIT" ]
null
null
null
from IPython.display import display from IPython.display import HTML import IPython.core.display as di # This line will hide code by default when the notebook is exported as HTML di.display_html('<script>jQuery(function() {if (jQuery("body.notebook_app").length == 0) { jQuery(".input_area").toggle(); jQuery(".promp...
24.283401
175
0.649883
0
0
0
0
0
0
0
0
3,918
0.653218
0913a064947d243f614c619b7153c8fd3f692bd6
228
py
Python
benders-decomposition/src/input/facility.py
grzegorz-siekaniec/benders-decomposition-gurobi
5435e82c7ef4fe14fc53ff07b8eaa1516208b57c
[ "MIT" ]
6
2021-05-31T10:23:18.000Z
2022-02-15T08:45:30.000Z
benders-decomposition/src/input/facility.py
grzegorz-siekaniec/benders-decomposition-gurobi
5435e82c7ef4fe14fc53ff07b8eaa1516208b57c
[ "MIT" ]
null
null
null
benders-decomposition/src/input/facility.py
grzegorz-siekaniec/benders-decomposition-gurobi
5435e82c7ef4fe14fc53ff07b8eaa1516208b57c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Dict @dataclass(frozen=True) class Facility: name: str exists: bool build_cost: float supply: float transport_cost: Dict[str, float] # customer to cost
19
56
0.723684
143
0.627193
0
0
167
0.732456
0
0
18
0.078947
0913ad0ca10d6662285de519bc20eb0bf251e5c6
3,834
py
Python
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/toolkit/crashreporter/client/certdata2pem.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
#!/usr/bin/python # vim:set et sw=4: # # Originally from: # http://cvs.fedoraproject.org/viewvc/F-13/ca-certificates/certdata2pem.py?revision=1.1&content-type=text%2Fplain&view=co # # certdata2pem.py - converts certdata.txt into PEM format. # # Copyright (C) 2009 Philipp Kern <pkern@debian.org> # # This program is fre...
34.232143
121
0.639541
0
0
0
0
0
0
0
0
1,997
0.520866
0913cfe9fc0c893e99396e709cf82a81dfd1ee9b
56
py
Python
pandaharvester/commit_timestamp.py
PalNilsson/harvester
dab4f388c6d1f33291b44c1a8d656d210330e767
[ "Apache-2.0" ]
null
null
null
pandaharvester/commit_timestamp.py
PalNilsson/harvester
dab4f388c6d1f33291b44c1a8d656d210330e767
[ "Apache-2.0" ]
null
null
null
pandaharvester/commit_timestamp.py
PalNilsson/harvester
dab4f388c6d1f33291b44c1a8d656d210330e767
[ "Apache-2.0" ]
null
null
null
timestamp = "02-03-2022 13:12:15 on flin (by mightqxc)"
28
55
0.696429
0
0
0
0
0
0
0
0
43
0.767857
0914e1a28a157c416a8a2c605a43e0263d7aefd4
701
py
Python
distil/utils/config_helper.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
83
2021-01-06T06:50:30.000Z
2022-03-31T05:16:32.000Z
distil/utils/config_helper.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
30
2021-02-27T06:09:47.000Z
2021-12-23T11:03:36.000Z
distil/utils/config_helper.py
ansunsujoe/distil
cf6cae2b88ef129d09c159aae0569978190e9f98
[ "MIT" ]
13
2021-03-05T18:26:58.000Z
2022-03-12T01:53:17.000Z
import json import os def read_config_file(filename): """ Loads and returns a configuration from the supplied filename / path. Parameters ---------- filename: string The name/path of the config file to load. Returns ---------- config: object The resulting configura...
24.172414
72
0.600571
0
0
0
0
0
0
0
0
377
0.537803
0915536721dec4fcf77cccd8a1e6caa20567b01f
1,944
py
Python
Easy/26.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Easy/26.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Easy/26.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 26. Remove Duplicates from Sorted Array # # Description: # Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. # Do not allocate extra space for another array, you must do this in place with constant memory. # # For...
34.714286
161
0.587963
554
0.284979
0
0
0
0
0
0
1,311
0.674383
091779d4a3220139baaa8d0f21ee1690811fd3bf
197
py
Python
enote/__init__.py
tkjacobsen/enote
b8150885733599016b2d0b1d36f03e62ca8e3cdc
[ "MIT" ]
16
2015-04-30T22:36:57.000Z
2021-04-29T16:38:17.000Z
enote/__init__.py
tkjacobsen/enote
b8150885733599016b2d0b1d36f03e62ca8e3cdc
[ "MIT" ]
1
2017-02-18T18:42:31.000Z
2017-02-18T18:48:47.000Z
enote/__init__.py
tkjacobsen/enote
b8150885733599016b2d0b1d36f03e62ca8e3cdc
[ "MIT" ]
2
2017-06-03T08:00:28.000Z
2017-07-15T16:50:47.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # Copyright (c) 2016 Troels Agergaard Jacobsen __version__ = '0.2.0' __description__ = 'Command line utility to backup Evernote notes and notebooks.'
32.833333
80
0.725888
0
0
0
0
0
0
0
0
160
0.812183
0919fdf2ce825bd818ddbc07ef5fd14d15e3d623
6,373
py
Python
ncpsort/cluster_synthetic_data/inference_plot_synthetic.py
yueqiw/ncp-sort
045361d93bc9d8ef2596cdda7c485b6ffd77dd81
[ "MIT" ]
2
2019-08-06T10:10:37.000Z
2020-09-30T12:11:28.000Z
ncpsort/cluster_synthetic_data/inference_plot_synthetic.py
yueqiw/ncp-sort
045361d93bc9d8ef2596cdda7c485b6ffd77dd81
[ "MIT" ]
1
2021-04-14T12:09:02.000Z
2021-07-19T04:06:05.000Z
ncpsort/cluster_synthetic_data/inference_plot_synthetic.py
yueqiw/ncp-sort
045361d93bc9d8ef2596cdda7c485b6ffd77dd81
[ "MIT" ]
null
null
null
"""Plot clustered spikes Usage: python ncpsort.cluster_synthetic_data.inference_plot_synthetic \ --inference_dir ./inference_synthetic_N-1000/cluster_S-150-beam_NCP-10000 \ --min_cls_size 50 --plot_type overlay or --inference_dir --min_cls_size 50 --plot_type tsne """ import numpy as np imp...
45.198582
132
0.661541
0
0
0
0
0
0
0
0
1,366
0.214342
091cc72f8820abb4968972f3dd6375ff59862250
27,920
py
Python
src/loanpy/loanfinder.py
martino-vic/Framework-for-computer-aided-borrowing-detection
efce90390db14009fd27d96f32b1252a74aac1ef
[ "AFL-3.0" ]
4
2020-05-18T15:10:44.000Z
2020-10-10T05:06:26.000Z
src/loanpy/loanfinder.py
martino-vic/Soundchange
09a276e16daed2828b144227a21e53746cbb72e4
[ "AFL-3.0" ]
null
null
null
src/loanpy/loanfinder.py
martino-vic/Soundchange
09a276e16daed2828b144227a21e53746cbb72e4
[ "AFL-3.0" ]
null
null
null
""" Find (old) loanwords between two languages """ from ast import literal_eval from functools import partial from logging import getLogger from pandas import DataFrame, Series, concat, read_csv from tqdm import tqdm from panphon.distance import Distance from loanpy.helpers import gensim_multiword from loanpy.adrc ...
42.691131
79
0.641261
23,846
0.849822
1,849
0.065895
0
0
0
0
20,412
0.727441
091cd8c5724529a22ff674589812a3252e946388
1,172
py
Python
scripts/tmp.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
2
2021-06-22T05:43:25.000Z
2021-06-22T08:40:16.000Z
scripts/tmp.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-04-19T12:25:26.000Z
2021-04-19T12:25:26.000Z
scripts/tmp.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-06-21T01:18:07.000Z
2021-06-21T01:18:07.000Z
import scipy from scipy.io import loadmat import random import numpy as np from sklearn.metrics import zero_one_loss from sklearn.naive_bayes import BernoulliNB,MultinomialNB,GaussianNB import matplotlib.pyplot as plt from sklearn.feature_selection import mutual_info_classif import os data = loadmat('../data/Xwindo...
25.478261
72
0.726962
0
0
0
0
0
0
0
0
192
0.163823
091da9e65fdc6e81e6f673354f6d6d367b942a8d
5,961
py
Python
src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py
eclipselu/google-cloudevents-python
aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d
[ "Apache-2.0" ]
10
2020-09-19T10:43:34.000Z
2022-02-05T14:28:12.000Z
src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py
eclipselu/google-cloudevents-python
aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d
[ "Apache-2.0" ]
39
2020-07-15T22:58:46.000Z
2022-02-03T23:19:26.000Z
src/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.py
eclipselu/google-cloudevents-python
aa7ae3a593f94bd5810f68ca9b7c36eb1e32192d
[ "Apache-2.0" ]
6
2020-06-30T12:58:02.000Z
2021-01-23T02:53:44.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.458065
264
0.694347
4,194
0.703573
0
0
1,206
0.202315
0
0
1,833
0.307499
091f35696f2a895a9356bd5b3024410d89838b05
5,051
py
Python
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
89
2017-02-24T14:35:00.000Z
2022-03-23T11:56:52.000Z
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
8
2017-05-10T04:47:07.000Z
2020-12-23T10:45:49.000Z
iotgarden/bluey_beacon.py
mkvenkit/pp2e
b74aafd0f1a61fbb919b2b5e22dcccba6a13a35d
[ "MIT" ]
59
2017-04-22T11:36:53.000Z
2022-03-24T19:39:15.000Z
""" bluey_beacon.py This program connects to the bluey 1.1 Nordic nRF52 dev board made by Electronut Labs. The firmware on Bluey has to be running the "bluey beacon" example. This code is expected to be run on a Raspverry Pi 3. It assumes that you have bluez installed - it uses hcidump and hcitool. The code rea...
30.245509
110
0.530588
1,486
0.294199
731
0.144724
0
0
0
0
1,358
0.268858
0925149b145bd29447f47950402ae72fc46058f2
18,374
py
Python
Converter_V09102021_gkernel_stop.py
SolaleT/KTMnet
ded379cceac560eccfc9a05e8e0c55292544f8b9
[ "MIT" ]
null
null
null
Converter_V09102021_gkernel_stop.py
SolaleT/KTMnet
ded379cceac560eccfc9a05e8e0c55292544f8b9
[ "MIT" ]
null
null
null
Converter_V09102021_gkernel_stop.py
SolaleT/KTMnet
ded379cceac560eccfc9a05e8e0c55292544f8b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 8 12:43:42 2019 @author: solale In this version I will try to shrink the network and reduce the tensorization """ # Multilayer Perceptron import pandas import numpy # fix random seed for reproducibility seed = 7 numpy.random.seed(seed) # from tensorflow import set_rando...
39.770563
140
0.637967
0
0
0
0
0
0
0
0
7,058
0.38413
09252c654e5dd6c2c427adfbd63c5afde450b576
1,641
py
Python
sentiment_analysis.py
Submanifold/us-inauguration-speeches
d86221c47cc8b34363cc4ca9faaa4236436fc9c0
[ "MIT" ]
null
null
null
sentiment_analysis.py
Submanifold/us-inauguration-speeches
d86221c47cc8b34363cc4ca9faaa4236436fc9c0
[ "MIT" ]
null
null
null
sentiment_analysis.py
Submanifold/us-inauguration-speeches
d86221c47cc8b34363cc4ca9faaa4236436fc9c0
[ "MIT" ]
1
2019-08-12T11:40:28.000Z
2019-08-12T11:40:28.000Z
#!/usr/bin/env python3 # # Calculates sentiment polarity scores over the progression of a speech # and writes them to STDOUT. The output can be parsed by gnuplot. # # Original author: Bastian Rieck from textblob import TextBlob import os import sys """ Calculates sentiments over the progression of a given speech. Th...
22.791667
72
0.652651
0
0
0
0
0
0
0
0
617
0.37599
092739ee8d9e52a0a47febefb10eeb7490145d9b
8,174
py
Python
EGEF_operation.py
zahraghh/Operation-Planning
dfa1fbbcce8d07544e96131f4e1f42c1846ce95b
[ "MIT" ]
null
null
null
EGEF_operation.py
zahraghh/Operation-Planning
dfa1fbbcce8d07544e96131f4e1f42c1846ce95b
[ "MIT" ]
null
null
null
EGEF_operation.py
zahraghh/Operation-Planning
dfa1fbbcce8d07544e96131f4e1f42c1846ce95b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import warnings import pandas as pd import scipy.stats as st import statsmodels as sm import seaborn as sns import math import collections from collections import Counter import statistics import matplotlib # By state level - Fuels emission factors - 1999 t...
57.160839
279
0.725104
0
0
0
0
0
0
0
0
2,228
0.272572
09292afd918a49c812addd31394b503bc8e8b012
16,757
py
Python
Core_Functions.py
CadellVDH/gardinette
e8200a0f8369e4a6d5a5a73c11d04282e98a927f
[ "MIT" ]
3
2020-10-31T23:19:37.000Z
2021-04-06T06:57:50.000Z
Core_Functions.py
CadellVDH/gardinette
e8200a0f8369e4a6d5a5a73c11d04282e98a927f
[ "MIT" ]
null
null
null
Core_Functions.py
CadellVDH/gardinette
e8200a0f8369e4a6d5a5a73c11d04282e98a927f
[ "MIT" ]
2
2020-11-01T01:10:16.000Z
2020-11-07T23:01:31.000Z
import os #tools for working with the CLI import logging #needed for logging import pigpio #needed for GPIO control import time #needed for function timing import threading #needed for OLED data continuous updating import csv #needed for temporary data logging import config as global_vars #import global variable initia...
50.933131
173
0.617652
15,838
0.945157
0
0
0
0
0
0
6,346
0.378707
092b8a66d28f45edb39d1f480fa99961ca8a29ee
257
py
Python
en/en.py
iremlaya/brainhack17
95e0374785dd7aa7856cac149e04c2949d3ee852
[ "MIT" ]
2
2017-06-04T10:01:49.000Z
2017-10-23T23:40:09.000Z
en/en.py
iremlaya/brainhack17
95e0374785dd7aa7856cac149e04c2949d3ee852
[ "MIT" ]
3
2017-10-23T22:54:43.000Z
2018-10-02T15:57:22.000Z
en/en.py
iremlaya/brainhack17
95e0374785dd7aa7856cac149e04c2949d3ee852
[ "MIT" ]
2
2018-10-02T16:00:23.000Z
2018-10-02T18:05:27.000Z
nums = list(map(int,input().split(" "))) list = [] for j in range(0,5): sum = 0 for i in range(0,4): sum += nums[i] list.append(sum) temp = nums[0] del nums[0] nums.append(temp) print("{} {}".format(min(list), max(list)))
17.133333
43
0.525292
0
0
0
0
0
0
0
0
10
0.038911
092d7b160711ea95b44c682ad660b8ddb0e66742
352
py
Python
src/test_instrumenter/if_expr.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
1
2020-11-29T20:00:39.000Z
2020-11-29T20:00:39.000Z
src/test_instrumenter/if_expr.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
null
null
null
src/test_instrumenter/if_expr.py
joeldentici/python_stepper
ab32c62d0d0333ad901d7329fb198c7a23988007
[ "MIT" ]
null
null
null
import instrumenter import unittest class TestIfExpr(unittest.TestCase): def test_if_expr(self): src = """ 5 if x > 7 else 10 """.strip() expected = """ stepper_lib.if_expr(x > 7, 5, 10) """.strip() actual = instrumenter.instrument(src, "ifexpr").strip() self.assertEqual(actual, expected) if __name__...
17.6
57
0.676136
270
0.767045
0
0
0
0
0
0
89
0.252841
092e872c851914a08cabf8af551b3897a9d46816
1,394
py
Python
Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Server/Python/src/dbs/dao/Oracle/Run/SummaryList.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
""" This module provides Run.SummaryList data access object """ from WMCore.Database.DBFormatter import DBFormatter from dbs.utils.dbsExceptionHandler import dbsExceptionHandler class SummaryList(DBFormatter): def __init__(self, logger, dbi, owner=""): DBFormatter.__init__(self, logger, dbi) self...
39.828571
97
0.65208
1,212
0.86944
0
0
0
0
0
0
389
0.279053
092ff28cf017dfa08a6c336b9f9f79e5dc743c1f
25
py
Python
rewx/__init__.py
akrk1986/re-wx
2f50d1c0afe77313548847b279327d7041623721
[ "MIT" ]
103
2021-01-18T22:06:46.000Z
2022-03-24T15:57:25.000Z
rewx/__init__.py
ronny-rentner/re-wx
185c509ef7a590d7abb758be687fb59048019adb
[ "MIT" ]
6
2021-01-26T11:45:40.000Z
2022-01-15T08:18:12.000Z
rewx/__init__.py
ronny-rentner/re-wx
185c509ef7a590d7abb758be687fb59048019adb
[ "MIT" ]
4
2021-01-26T10:13:20.000Z
2022-01-10T09:02:27.000Z
from rewx.core import *
8.333333
23
0.72
0
0
0
0
0
0
0
0
0
0
093304601d844ced3162c5c77ac72110623bc543
117
py
Python
ci/kubetest/test_placeholder.py
PostHog/charts-clickhouse
06e3ee904460eaa74eb88d2c33392406d7456ebf
[ "MIT" ]
19
2021-06-17T22:21:12.000Z
2022-03-26T21:53:35.000Z
ci/kubetest/test_placeholder.py
PostHog/charts-clickhouse
06e3ee904460eaa74eb88d2c33392406d7456ebf
[ "MIT" ]
220
2021-06-18T07:18:55.000Z
2022-03-31T23:00:41.000Z
ci/kubetest/test_placeholder.py
PostHog/charts-clickhouse
06e3ee904460eaa74eb88d2c33392406d7456ebf
[ "MIT" ]
21
2021-07-27T16:02:18.000Z
2022-03-30T22:56:00.000Z
import pytest @pytest.fixture def setup(kube): pass def test_something(setup, kube): assert True == True
10.636364
32
0.692308
0
0
0
0
41
0.350427
0
0
0
0
093315dcd39f337b13a244cffb3617bb0e05e77d
2,852
py
Python
thingsdb/client/abc/events.py
Koos85/python-thingsdb
034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5
[ "MIT" ]
null
null
null
thingsdb/client/abc/events.py
Koos85/python-thingsdb
034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5
[ "MIT" ]
null
null
null
thingsdb/client/abc/events.py
Koos85/python-thingsdb
034649b0cbd38c27bdbdd4fed7bc13ed76d69cb5
[ "MIT" ]
null
null
null
from ..protocol import Proto import abc from typing import Any class Events(abc.ABC): def __init__(self): self._evmap = { Proto.ON_NODE_STATUS: self.on_node_status, Proto.ON_WARN: self.on_warning, Proto.ON_WATCH_INI: self.on_watch_init, Proto.ON_WATCH_UPD: ...
25.017544
78
0.491585
2,786
0.976858
0
0
2,262
0.793128
0
0
1,642
0.575736
0933f309561e041149760fb500eeef98ca5f1483
4,650
py
Python
PyGame/racey.py
esserafael/PythonStuff
97900e48f989b64ccde02f5d676f7f823ec0eed7
[ "MIT" ]
1
2020-08-03T00:19:05.000Z
2020-08-03T00:19:05.000Z
PyGame/racey.py
esserafael/PythonStuff
97900e48f989b64ccde02f5d676f7f823ec0eed7
[ "MIT" ]
1
2021-08-23T20:43:21.000Z
2021-08-23T20:43:21.000Z
PyGame/racey.py
esserafael/python-learning-stuff
97900e48f989b64ccde02f5d676f7f823ec0eed7
[ "MIT" ]
null
null
null
import pygame import time import random pygame.init() # display display_width = 1024 display_height = 768 gameDisplay = pygame.display.set_mode((display_width,display_height)) pygame.display.set_caption('Relâmpago Marquinhos') # colors black = (0,0,0) white = (255,255,255) red = (255,0,0) # car ca...
30.392157
143
0.550108
0
0
0
0
0
0
0
0
481
0.103419
0934154c75f6f3525bf51eb76b65fd596ded22e6
9,521
py
Python
src/tuco/base.py
eatfirst/python-tuco
47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db
[ "MIT" ]
8
2018-01-05T15:25:45.000Z
2018-02-19T02:41:43.000Z
src/tuco/base.py
eatfirst/python-tuco
47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db
[ "MIT" ]
7
2018-01-04T15:51:32.000Z
2021-04-28T21:54:57.000Z
src/tuco/base.py
eatfirst/python-tuco
47e58a3ebaf3f7e8ac3e2ba18dfaf9ce993f82db
[ "MIT" ]
null
null
null
"""Base classes to be used in FSM.""" import copy from datetime import datetime from typing import Dict, Iterator, List, Tuple, Type # noqa import pytz from tuco.exceptions import ( TucoAlreadyLockedError, TucoEventNotFoundError, TucoInvalidStateChangeError, TucoInvalidStateHolderError, ) from tuco.l...
34.496377
114
0.635648
8,958
0.940868
570
0.059868
3,115
0.327172
0
0
2,043
0.214578
0934dae8263a1eb5eb984ac917bcab294f2ec303
7,962
py
Python
mmseg/models/backbones/colorize_mask.py
yong-qiang/BANet
eb0964664dff0b2d581b8de68306def8d586c55d
[ "MIT" ]
4
2021-09-25T15:29:45.000Z
2022-03-01T09:38:13.000Z
mmseg/models/backbones/colorize_mask.py
yong-qiang/BANet
eb0964664dff0b2d581b8de68306def8d586c55d
[ "MIT" ]
null
null
null
mmseg/models/backbones/colorize_mask.py
yong-qiang/BANet
eb0964664dff0b2d581b8de68306def8d586c55d
[ "MIT" ]
null
null
null
from PIL import Image import torch import numpy as np cityscapes_palette = [128, 64, 128, 244, 35, 232, 70, 70, 70, 102, 102, 156, 190, 153, 153, 153, 153, 153, 250, 170, 30, 220, 220, 0, 107, 142, 35, 152, 251, 152, 70, 130, 180, 220, 20, 60, 255, 0, 0, 0, 0, 142, 0, 0, 70,...
45.497143
975
0.503893
706
0.088671
0
0
0
0
0
0
488
0.061291
093766ed7bbbb3c00312fb45947b1f3698212662
2,342
py
Python
rest_framework_apidoc/apidoc.py
jespino/django-rest-framework-apidoc
94e47811f96058bcfe33e37e433eda065096c053
[ "BSD-3-Clause" ]
3
2015-04-23T02:06:26.000Z
2017-12-06T12:52:04.000Z
rest_framework_apidoc/apidoc.py
jespino/django-rest-framework-apidoc
94e47811f96058bcfe33e37e433eda065096c053
[ "BSD-3-Clause" ]
null
null
null
rest_framework_apidoc/apidoc.py
jespino/django-rest-framework-apidoc
94e47811f96058bcfe33e37e433eda065096c053
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from rest_framework.settings import import_from_string from .mixins import FileContentMixin, DocStringContentMixin, MarkupProcessMixin, NoProcessMixin, SafeProcessMixin APIDOC_DEFAULT_DOCUMENTER_CLASSES = getattr( settings, 'APIDOC_DEFAULT_DOCUMENTER_CLASSES', ['rest_fra...
28.560976
113
0.760034
1,336
0.570453
0
0
0
0
0
0
251
0.107173
09382774afac9a4d300d0854f84c2849faef3aed
541
py
Python
malcolm/modules/ADAndor/parts/andordriverpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/ADAndor/parts/andordriverpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/ADAndor/parts/andordriverpart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
from malcolm.modules.ADCore.parts import ExposureDetectorDriverPart class AndorDriverPart(ExposureDetectorDriverPart): def setup_detector(self, child, completed_steps, steps_to_do, params=None): fs = super(AndorDriverPart, self).setup_detector( child, completed_steps, steps_to_do, params) ...
41.615385
79
0.728281
470
0.868762
0
0
0
0
0
0
53
0.097967
09390bc16efe546bdac818e37e914aa39899f96d
1,336
py
Python
qcos_addons/access_log/log.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
null
null
null
qcos_addons/access_log/log.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
null
null
null
qcos_addons/access_log/log.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
null
null
null
import json from typing import Callable, TypeVar, cast from .constants import CUSTOM_LOG_FORMAT, CUSTOM_EVENT_NAME_MAP, CUSTOM_PAGE_NAME_MAP from datetime import datetime import logging from airflow.settings import TIMEZONE from airflow.utils.session import create_session import functools T = TypeVar("T", bound=Calla...
31.809524
115
0.657186
0
0
0
0
718
0.503506
0
0
275
0.192847
093956eeb27c748398dcb88a46fcaaac217e34f7
2,674
py
Python
setup.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
8
2018-10-31T04:53:18.000Z
2020-11-18T18:47:48.000Z
setup.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
24
2020-03-27T11:38:39.000Z
2020-10-23T07:12:41.000Z
setup.py
addisonElliott/pyqt5AutoCompile
5945a85f6230a97f3467c79441d87f5f9cdb478d
[ "MIT" ]
3
2019-05-08T16:41:26.000Z
2021-08-23T12:37:55.000Z
import os import re from setuptools import setup currentPath = os.path.abspath(os.path.dirname(__file__)) def find_version(filename): with open(filename, 'r') as fh: # Read first 2048 bytes, __version__ string will be within that data = fh.read(2048) match = re.search(r'^__version__ = [...
30.735632
116
0.597233
0
0
0
0
0
0
0
0
1,293
0.483545
093964aaffee860bb39cdc436116d852d48d0571
799
py
Python
setup.py
sz144/TPy
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
4
2018-08-20T13:38:13.000Z
2020-08-31T08:57:12.000Z
setup.py
sz144/pydale
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
null
null
null
setup.py
sz144/pydale
689e38bdc2549015bc45cfacfe42e20a51c76e5a
[ "MIT" ]
2
2021-09-28T08:24:30.000Z
2022-01-29T08:29:46.000Z
from setuptools import setup setup( name='pydale', version='0.1.0a1', description='A Transfer Learning Python package', url='https://github.com/sz144/TPy', author='Shuo Zhou', author_email='szhou20@sheffield.ac.uk', license='MIT License', packages=['pydale'], install_requires=['nump...
30.730769
54
0.579474
0
0
0
0
0
0
0
0
447
0.559449
093974a11fcf0bc9652927c15386f72ab4614908
8,738
py
Python
Progetto_dataset_adult/Utils/Analisi_variabili.py
pasqualefiore/Adult_dataset_analysis
c13b229e1f69df765fc2da5f0b64084816ad39c3
[ "Apache-2.0" ]
null
null
null
Progetto_dataset_adult/Utils/Analisi_variabili.py
pasqualefiore/Adult_dataset_analysis
c13b229e1f69df765fc2da5f0b64084816ad39c3
[ "Apache-2.0" ]
null
null
null
Progetto_dataset_adult/Utils/Analisi_variabili.py
pasqualefiore/Adult_dataset_analysis
c13b229e1f69df765fc2da5f0b64084816ad39c3
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import seaborn as sns from scipy.stats import kendalltau,chi2_contingency, pearsonr import pandas as pd def plot_var_num(dataset,variabile): """ Plot delle variabili numeriche -------------- Parametri: dataset: dataset di riferimento variabile: variabile da plott...
42.009615
111
0.653353
0
0
0
0
0
0
0
0
4,296
0.49114
093bf5bdc043f66b0cd5177690b3e94ae535b5dd
592
py
Python
exceptions/spotify/search_exceptions.py
mohamey/gpm_to_spotify
295ed18d475ea22452c062eadc04914d7cc695be
[ "MIT" ]
6
2020-06-06T21:18:22.000Z
2020-07-03T10:26:44.000Z
exceptions/spotify/search_exceptions.py
mohamey/gpm_to_spotify
295ed18d475ea22452c062eadc04914d7cc695be
[ "MIT" ]
1
2020-06-07T20:07:07.000Z
2020-06-07T20:07:07.000Z
exceptions/spotify/search_exceptions.py
mohamey/gpm_to_spotify
295ed18d475ea22452c062eadc04914d7cc695be
[ "MIT" ]
1
2020-06-07T15:17:16.000Z
2020-06-07T15:17:16.000Z
class NoMatchException(Exception): """ This exception is thrown when we fail to find a Spotify equivalent for a google play music track Args: message (str): Description of the exception """ def __init__(self, message: str): super().__init__(message) class SpotifyMalformedTrackExc...
25.73913
100
0.679054
588
0.993243
0
0
0
0
0
0
350
0.591216
093ee142adce433cf7aaa24dd679b5d6c4fc05b5
638
py
Python
shares/urls.py
ab1cd2eefre3/stock-trading-website
f19b3ff11c5348ed9758816dab0ea0b44ec027a9
[ "MIT" ]
null
null
null
shares/urls.py
ab1cd2eefre3/stock-trading-website
f19b3ff11c5348ed9758816dab0ea0b44ec027a9
[ "MIT" ]
null
null
null
shares/urls.py
ab1cd2eefre3/stock-trading-website
f19b3ff11c5348ed9758816dab0ea0b44ec027a9
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("login", views.login_view, name="login"), path("logout", views.logout_view, name="logout"), path("register", views.register, name="register"), path("", views.index, name="index"), path("open", views.openPage, name="openPage"), ...
33.578947
67
0.647335
0
0
0
0
0
0
0
0
193
0.302508
09427cf92374db5f7f6567478a568e972eec2cff
1,198
py
Python
memex_images/image_space/migrations/0001_initial.py
quasiben/image_space
811180d5b39cef20e2e3322c650de9602d6afb29
[ "BSD-3-Clause" ]
null
null
null
memex_images/image_space/migrations/0001_initial.py
quasiben/image_space
811180d5b39cef20e2e3322c650de9602d6afb29
[ "BSD-3-Clause" ]
null
null
null
memex_images/image_space/migrations/0001_initial.py
quasiben/image_space
811180d5b39cef20e2e3322c650de9602d6afb29
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Images', fields=[ ('id', models.AutoField(verbo...
37.4375
114
0.601002
1,089
0.909015
0
0
0
0
0
0
247
0.206177
094372a474d52adb03ce58de44449d7f0c3ddd56
295
py
Python
Intermediate/collections_namedtuple.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
Intermediate/collections_namedtuple.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
Intermediate/collections_namedtuple.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
# Collections namedTuple nr7 import collections from collections import namedtuple Point = namedtuple("Point", {"x": 0, "y": 0, "z": 0}) newP = Point(3, 4, 5) print(newP.x, newP.y, newP.z) print(newP._fields) newP = newP._replace(x=6) print(newP) p2 = Point._make(["a", "b", "c"]) print(p2)
18.4375
53
0.661017
0
0
0
0
0
0
0
0
53
0.179661
09440d91afca8dc4e9e6734e9c8588fc67d05760
2,879
py
Python
bootstrap_ranks.py
baprice/Genewise-Cohort-Integration
d1a7434f2a461f572fd85ed8bdeebcda268ef29c
[ "MIT" ]
null
null
null
bootstrap_ranks.py
baprice/Genewise-Cohort-Integration
d1a7434f2a461f572fd85ed8bdeebcda268ef29c
[ "MIT" ]
null
null
null
bootstrap_ranks.py
baprice/Genewise-Cohort-Integration
d1a7434f2a461f572fd85ed8bdeebcda268ef29c
[ "MIT" ]
null
null
null
import os from pathlib import Path import argparse import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from jive.AJIVE import AJIVE from jive.PCA import PCA import warnings import time, datetime from random import shuffle warnings.filterwarnings(action='once') def getVarianceE...
34.686747
140
0.740188
0
0
0
0
0
0
0
0
397
0.137895
0944b27a3e77a2bfb7e1cf5754e2405188a4cf6d
643
py
Python
algorithm/module/limit/tools/any.py
alpavlenko/EvoGuess
19bc54e75cd959e445becda16fa6f488f0fb2367
[ "MIT" ]
1
2021-12-12T15:09:56.000Z
2021-12-12T15:09:56.000Z
algorithm/module/limit/tools/any.py
alpavlenko/EvoGuess
19bc54e75cd959e445becda16fa6f488f0fb2367
[ "MIT" ]
1
2021-10-10T09:16:57.000Z
2021-10-10T09:16:57.000Z
algorithm/module/limit/tools/any.py
alpavlenko/evoguess
e8510c32c8325c9fe66fc15899d378b7bf731557
[ "MIT" ]
null
null
null
from ..limit import * class Any(Limit): slug = 'any' name = 'Limit: Any' def __init__(self, **kwargs): super().__init__(None) self.args = kwargs.values() for arg in self.args: arg.limits = self.limits def exhausted(self) -> bool: return any(arg.exhausted()...
20.741935
73
0.527216
592
0.920684
0
0
0
0
0
0
41
0.063764
094570371ac6509b0c55dba57d84871c450cb274
396
py
Python
Python/PythonExercicios/ex035.py
isabellathome/College-Activities
12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f
[ "MIT" ]
null
null
null
Python/PythonExercicios/ex035.py
isabellathome/College-Activities
12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f
[ "MIT" ]
null
null
null
Python/PythonExercicios/ex035.py
isabellathome/College-Activities
12fc73f8416f5a9572d0a8c59eb7403d9c88ed0f
[ "MIT" ]
null
null
null
print('-=-' * 15) print('Analisador de Triângulos') print('-=-' * 15) sega = float(input('Primeiro Segmento: ')) segb = float(input('Segundo Segmento: ')) segc = float(input('Terceiro Segmento: ')) if sega < segb + segc and segb < sega + segc and segc < sega + segb: print('Os segmentos acima PODEM FORMAR um triângu...
36
68
0.676768
0
0
0
0
0
0
0
0
201
0.5025
0947468639821686ebec6a09d533e71a8f80b28d
445
py
Python
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
tests/urls.py
hbuyse/dj-vcn-accounts
27100428b3a4bccaa0b03752366c98e81f333230
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.urls import include, path from django.contrib.auth import views as auth_views urlpatterns = [ path('login', auth_views.LoginView.as_view(), name='vcn-account-login'), path('logout', auth_views.LogoutView.as_view(), {...
34.230769
99
0.721348
0
0
0
0
0
0
0
0
132
0.296629
094aa257693558a2208948c81f0f7751ce318d41
736
py
Python
annoying_dogbone/code.py
Tobi-Swali/pypy-Gamejam
a6e9455802ae0ea460fd7e2b497d58f94ee35228
[ "MIT" ]
1
2019-10-12T13:45:09.000Z
2019-10-12T13:45:09.000Z
annoying_dogbone/code.py
Tobi-Swali/pypy-Gamejam
a6e9455802ae0ea460fd7e2b497d58f94ee35228
[ "MIT" ]
2
2019-10-13T17:50:42.000Z
2019-10-13T17:53:18.000Z
annoying_dogbone/code.py
Tobi-Swali/pypy-Gamejam
a6e9455802ae0ea460fd7e2b497d58f94ee35228
[ "MIT" ]
3
2019-10-12T13:33:23.000Z
2019-10-12T17:15:45.000Z
# /bin/hacken GameJam 2019, f0wL """This example lights up the third NeoPixel while button A is being pressed, and lights up the eighth NeoPixel while button B is being pressed.""" from adafruit_circuitplayground.express import cpx import random import time import math cpx.pixels.brightness = 0.1 while True: ...
26.285714
95
0.618207
0
0
0
0
0
0
0
0
197
0.267663
094be0cf0f33e0827cc74563503d2f32fbf9ae51
1,787
py
Python
solver.py
tamnguyen820/SudokuSolver
a4adf311fca7bdbf7d2e5f7a676197e39218e53a
[ "MIT" ]
null
null
null
solver.py
tamnguyen820/SudokuSolver
a4adf311fca7bdbf7d2e5f7a676197e39218e53a
[ "MIT" ]
null
null
null
solver.py
tamnguyen820/SudokuSolver
a4adf311fca7bdbf7d2e5f7a676197e39218e53a
[ "MIT" ]
null
null
null
''' For testing with the text version ''' b = [ [1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0,...
26.279412
70
0.409625
0
0
0
0
0
0
0
0
119
0.066592
094cff1135e104cc38ed7c1dc2ae3fc5641b7f5b
5,321
py
Python
open_publishing/__init__.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/__init__.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/__init__.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
from .context import Context as _Context from .user import User from .document import Document from .order import Order from .order_fulfillment import OrderFulfillment from .prices import public as prices from .catalog import public as catalog from .taxes import public as tax from .core.enums import DocumentStatus as ...
32.054217
74
0.738207
1,362
0.255967
0
0
0
0
0
0
131
0.024619
094d11be09267ae59e086160b2251d8815fde678
22,234
py
Python
lib/id3c/cli/command/manifest.py
UWIT-IAM/uw-redcap-client
38a1eb426fa80697446df7a466a41e0305382606
[ "MIT" ]
21
2019-04-19T22:45:22.000Z
2022-01-28T01:32:09.000Z
lib/id3c/cli/command/manifest.py
UWIT-IAM/uw-redcap-client
38a1eb426fa80697446df7a466a41e0305382606
[ "MIT" ]
219
2019-04-19T21:42:24.000Z
2022-03-29T21:41:04.000Z
lib/id3c/cli/command/manifest.py
UWIT-IAM/uw-redcap-client
38a1eb426fa80697446df7a466a41e0305382606
[ "MIT" ]
9
2020-03-11T20:07:26.000Z
2022-03-05T00:36:11.000Z
""" Parse, diff, and upload sample manifests. Manifests are listings of known samples with associated barcodes and other, minimal metadata. They are usually produced by the lab processing collection tubes and contain the link between encounter survey data and molecular biology results. The workflow for processing ne...
36.509031
225
0.655707
0
0
0
0
10,545
0.473677
0
0
13,912
0.624921
094d33103d978e85aa343035479d553c0e19592e
419
py
Python
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
csone/migrations/0008_auto_20200412_1828.py
Ayaz9/Django-Ticketing_System
e3ae749dec3668cb756bd59bcb967e486221bb53
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-12 14:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('csone', '0007_gcinotes_upload'), ] operations = [ migrations.AlterField( model_name='gcinotes', name='...
22.052632
69
0.575179
320
0.763723
0
0
0
0
0
0
101
0.24105
094d973f1a0b76ddedf08b03767accf5c0cfd497
7,467
py
Python
mlcomponents/encoderdecoder.py
microsoft/aaai21-copy-that
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
[ "MIT" ]
7
2021-06-21T17:13:23.000Z
2022-02-25T06:28:24.000Z
mlcomponents/encoderdecoder.py
microsoft/aaai21-copy-that
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
[ "MIT" ]
null
null
null
mlcomponents/encoderdecoder.py
microsoft/aaai21-copy-that
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
[ "MIT" ]
2
2021-09-13T12:32:16.000Z
2022-02-19T13:28:35.000Z
import logging from typing import Optional, Dict, Any, List, Tuple, NamedTuple import torch from data.edits import Edit from dpu_utils.ptutils import BaseComponent from mlcomponents.seqdecoding import SeqDecoder from mlcomponents.seqencoder import SequenceEncoder class EncoderDecoder(BaseComponent): ...
57.438462
171
0.613633
7,186
0.962368
0
0
279
0.037364
0
0
281
0.037632
094ecb7e5b2ee93093ff48eabf2ef2a4ed487787
8,195
py
Python
mplStyle/MplTickStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/MplTickStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/MplTickStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
37.591743
80
0.634899
5,889
0.718609
0
0
0
0
0
0
5,047
0.615863
094ef253be0b76a79fd33964caa1191f38c73c76
19,035
py
Python
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
null
null
null
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
null
null
null
tests/test_newsonkrumm2009.py
ryan-lang/LeuvenMapMatching
c0821fbc0b19ad13985cf6ae665216cef83c57ac
[ "Apache-2.0" ]
1
2021-11-25T01:53:17.000Z
2021-11-25T01:53:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 """ tests.test_path_newsonkrumm2009 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Based on the data available at: https://www.microsoft.com/en-us/research/publication/hidden-markov-map-matching-noise-sparseness/ Notes: * There is a 'bug' in the map available from the website. Multiple se...
44.578454
119
0.626425
0
0
0
0
9,265
0.486735
0
0
3,769
0.198004
09519d2350c1ab8d636ad2b299e65de2bd927e8f
785
py
Python
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
simplemooc/core/migrations/0066_auto_20190606_2257.py
DiegoBrian/Eureka
27cf952b27af7fc8cfcc797dffc43a92c9a16d15
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2019-06-07 01:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0065_auto_20190606_2240'), ] operations = [ migrations.AddField( model_name='document',...
31.4
161
0.647134
659
0.83949
0
0
0
0
0
0
180
0.229299
0952e905288174cbfdd1f35d6dcc51f31902d2fc
104
py
Python
janus/qm_wrapper/__init__.py
zhenglz/janus
f3f1ed3f2b6e377c51e958cae2d919069d221eda
[ "BSD-3-Clause" ]
16
2019-04-18T15:45:02.000Z
2021-12-17T17:51:18.000Z
janus/qm_wrapper/__init__.py
zhenglz/janus
f3f1ed3f2b6e377c51e958cae2d919069d221eda
[ "BSD-3-Clause" ]
2
2019-06-20T16:56:08.000Z
2020-08-28T16:09:16.000Z
janus/qm_wrapper/__init__.py
zhenglz/janus
f3f1ed3f2b6e377c51e958cae2d919069d221eda
[ "BSD-3-Clause" ]
8
2018-11-16T17:00:58.000Z
2022-01-11T05:36:50.000Z
from janus.qm_wrapper.qm_wrapper import QMWrapper from janus.qm_wrapper.psi4_wrapper import Psi4Wrapper
34.666667
53
0.884615
0
0
0
0
0
0
0
0
0
0
0953201cd4a8eed2a34cc8ac8eb5c23d6fdfa5f0
729
py
Python
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
9
2016-09-15T05:12:36.000Z
2016-10-27T21:38:40.000Z
batch_client.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
import urllib import urllib2 import sys import batch_interface import json if len(sys.argv) == 1: print 'Usage: python %s <command> [parameter=value] ...' % sys.argv[0] print 'Try python %s batch/help to see list of functions' % sys.argv[0] print '\tor pythor %s batch/reload to reload functions' % sys.arg...
27
75
0.688615
0
0
0
0
0
0
0
0
217
0.297668
095359d3e1736ca0199f424b5cea96012cb5fc24
3,286
py
Python
micolog/cache2.py
tclh123/micolog
9b6fcddb9f147fe20a0cbfe0e89eda07f69d0f68
[ "MIT" ]
null
null
null
micolog/cache2.py
tclh123/micolog
9b6fcddb9f147fe20a0cbfe0e89eda07f69d0f68
[ "MIT" ]
null
null
null
micolog/cache2.py
tclh123/micolog
9b6fcddb9f147fe20a0cbfe0e89eda07f69d0f68
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Name: cache.py # Purpose: # # Author: xuming # # Created: 23-01-2011 # Copyright: (c) xuming 2011 # Licence: GPL #------------------------------------------------------------------------------- #!/usr/bin/env python...
30.71028
121
0.529215
0
0
0
0
0
0
0
0
1,319
0.4014
0953eab6b8dde84574f531e58e6ab4f8446f3952
908
py
Python
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
api/main.py
KleinerKobold/team_board
da89ed78625d8d99752024f5701813d25717faa7
[ "Apache-2.0" ]
null
null
null
from typing import Optional from fastapi import FastAPI import redis import json from models.team_member import Team_Member app = FastAPI() r = redis.StrictRedis(host='localhost', port=6379, db=0, password="sOmE_sEcUrE_pAsS", socket_timeout=None, connection_pool=None, charset='utf-8', errors='strict', unix_so...
29.290323
186
0.69163
0
0
0
0
557
0.613436
0
0
186
0.204846
095502239b92541af036182c1af9eb6e40d0190e
133
py
Python
EPI - Python/Chapter 5- Arrays/page_47/code.py
therealmaxkim/Playground
29c3513464bee07efaac1e41686bf391b52d475d
[ "MIT" ]
null
null
null
EPI - Python/Chapter 5- Arrays/page_47/code.py
therealmaxkim/Playground
29c3513464bee07efaac1e41686bf391b52d475d
[ "MIT" ]
null
null
null
EPI - Python/Chapter 5- Arrays/page_47/code.py
therealmaxkim/Playground
29c3513464bee07efaac1e41686bf391b52d475d
[ "MIT" ]
null
null
null
''' the number numbers are not always the same length 23 * 4 4 * 3 + 20 * 4 ''' def multiply_two_numbers(A, B):
11.083333
49
0.556391
0
0
0
0
0
0
0
0
90
0.676692
09561ca6902a9a4c28924212271eea54357e460c
915
py
Python
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
src/keyboard.py
Hsinfu/NanChangPark
4226c2d91b9e0bf39582c928da65c73a77ea6d66
[ "MIT" ]
null
null
null
import pygame as pg class Keyboard: def __init__(self): self.reset_keys() def reset_keys(self): self.keys = { pg.K_ESCAPE: False, pg.K_LEFT: False, pg.K_RIGHT: False, pg.K_DOWN: False, pg.K_UP: False, pg.K_a: False, ...
21.785714
36
0.469945
893
0.975956
0
0
0
0
0
0
0
0
095a069a14c07f558794d8c7a79e4d6f35007a78
53,243
py
Python
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
serializejson/tools.py
SmartAudioTools/serializejson
226a299968df424df3e73712f59692e8e18d948a
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
from . import serialize_parameters from SmartFramework.string.encodings import ascii_printables from SmartFramework.tools.dictionaries import sorted_dict, sorted_filtered # ,filtered from SmartFramework.tools.objects import ( isInstance, class_has_method, ismethod_methoddescriptor_or_function, ) # ,hasMe...
41.890637
307
0.574254
111
0.002083
0
0
4,370
0.08199
0
0
18,934
0.355241
095b1d80f095695d78ca8e32322128326b38659a
5,112
py
Python
LeetCode-All-Solution/Python3/LC-0189-Rotate-Array.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0189-Rotate-Array.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0189-Rotate-Array.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """================================================================= @Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3 @File : LC-0189-Rotate-Array.py @Author : [YuweiYin](https://github.com/YuweiYin) @Date : 2022-01-02 ======================================...
34.77551
121
0.569836
3,141
0.614437
0
0
327
0.063967
0
0
3,619
0.707942
095c5cd039268240cc1f5e992dfc55ceb574b9a1
921
py
Python
d1/repeatedcharacter.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
d1/repeatedcharacter.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
d1/repeatedcharacter.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
''' One fcn returns the first nonrepeated character from string, s. The other returns the first repeated character from the string. ''' def print_dict(d): for k, v in d.items(): print('\t', k, '=> ', v) def char_count_dict(s): d = dict() for char in s: count = d.get(char, 0) d[char...
20.931818
66
0.599349
0
0
0
0
0
0
0
0
319
0.346363
095ca8346512b61fba41d3997f22f02f7c9433ae
2,652
py
Python
alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class KoubeiCateringPosDishcateTransferModel(object): def __init__(self): self._cate_id = None self._cook_id = None self._dish_ids = None self._shop_id = None @prop...
28.212766
67
0.553922
2,535
0.955882
0
0
1,072
0.404223
0
0
272
0.102564
095cddc3c05dd03a088f06ee8064ef92e069c45e
181
py
Python
face_recognition_final_year/face_recognizer_app/admin.py
chiragsaraswat/automated_authentication_system_using_face_recognition
9f63f582d79db44c9e10fec6f72d4f835af8ab3a
[ "MIT" ]
null
null
null
face_recognition_final_year/face_recognizer_app/admin.py
chiragsaraswat/automated_authentication_system_using_face_recognition
9f63f582d79db44c9e10fec6f72d4f835af8ab3a
[ "MIT" ]
null
null
null
face_recognition_final_year/face_recognizer_app/admin.py
chiragsaraswat/automated_authentication_system_using_face_recognition
9f63f582d79db44c9e10fec6f72d4f835af8ab3a
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from user_manager_app.models import Attendance, Support admin.site.register(Attendance) admin.site.register(Support)
22.625
55
0.828729
0
0
0
0
0
0
0
0
28
0.154696
0961afc6929e36d21b0d3df4440d37f44a042e71
3,557
py
Python
main.py
darshanvjani/Wrapper_EVAI_Pytorch
cd3f11ad8b36f5d512288b8e5f7e15174bd2bbd1
[ "MIT" ]
null
null
null
main.py
darshanvjani/Wrapper_EVAI_Pytorch
cd3f11ad8b36f5d512288b8e5f7e15174bd2bbd1
[ "MIT" ]
null
null
null
main.py
darshanvjani/Wrapper_EVAI_Pytorch
cd3f11ad8b36f5d512288b8e5f7e15174bd2bbd1
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import albumentations import numpy as np # from __future__ import print_function import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets , transforms import torchvision fr...
39.966292
153
0.699185
2,843
0.799269
0
0
0
0
0
0
162
0.045544
096225f2fe88cf681e03f2ad2b31e29903932c92
1,733
py
Python
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
8
2016-10-24T12:37:32.000Z
2019-06-01T10:00:18.000Z
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
109
2016-08-09T04:51:48.000Z
2020-02-11T02:33:35.000Z
cloudpassage/cve_details.py
patricksanders/cloudpassage-halo-python-sdk
7fccaaacf20cc469e03d5727c6528a105ae7e790
[ "BSD-3-Clause" ]
14
2016-01-23T00:10:30.000Z
2021-07-07T21:13:56.000Z
"""CveDetail Class""" from .halo_endpoint import HaloEndpoint from .http_helper import HttpHelper class CveDetails(HaloEndpoint): """Initializing the CveDetail class: Args: session (:class:`cloudpassage.HaloSession`): This will define how you interact with the Halo API, including proxy s...
28.409836
77
0.641662
1,631
0.941143
0
0
0
0
0
0
980
0.565493
116d9139d5f83f9fbcc89073ff6134259db521b6
5,245
py
Python
generators_and_CLIs/baldir_markdown_mvp_incomplete/test_baldir_markdown_lib.py
marc-bouvier/sandbox
84993257edcfd39e88a3e28378d8dbed965576dc
[ "Unlicense" ]
null
null
null
generators_and_CLIs/baldir_markdown_mvp_incomplete/test_baldir_markdown_lib.py
marc-bouvier/sandbox
84993257edcfd39e88a3e28378d8dbed965576dc
[ "Unlicense" ]
8
2020-06-13T11:38:30.000Z
2020-06-15T06:22:44.000Z
test_baldir_markdown_lib.py
marc-bouvier/baldir_markdown
edd386493856fc4109f4ab3fd99bd69fb9017bf9
[ "Unlicense" ]
null
null
null
import pytest import tempfile import shutil from baldir_markdown_lib import read_source_file, parse_source_listing_start, import_code_snippet, format_markdown_snippet, split_against_source_listing_tags, pre_process_markdown_file_in_place, pre_process_markdown_text, pre_process_markdown_file_to_string, verify def test...
34.966667
322
0.717255
0
0
0
0
0
0
0
0
3,023
0.576358
11735286aed7be5c4d27974b285468a44294e89a
3,014
py
Python
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
shadow/bot.py
TraylorBoy/Shadow
bf8f2f32f443a7e4c4381eaaa3136bf20f4829bb
[ "MIT" ]
null
null
null
"""Automated task runner""" from typing import Any, Callable, Dict, Optional from loguru import logger from shadow.clone import ShadowClone from shadow.helpers.state import ShadowState class ShadowBot: """Base bot class""" def __init__(self): """Sets the default name and attaches the state machin...
25.327731
83
0.601526
2,823
0.936629
0
0
0
0
0
0
918
0.304579
11736bcc1f4851da6758b8dc02337693096d5be6
1,597
py
Python
waio/factory/models/contact.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
24
2021-11-08T13:37:05.000Z
2022-03-24T12:49:54.000Z
waio/factory/models/contact.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
1
2022-01-19T03:11:58.000Z
2022-01-19T03:13:30.000Z
waio/factory/models/contact.py
dotX12/waio
6bc41df2d650f31fdb11a1a2b67c6149afa0e11a
[ "MIT" ]
5
2021-11-11T04:11:12.000Z
2022-02-15T10:41:58.000Z
from dataclasses import dataclass from typing import List, Optional, Union @dataclass class PayloadSender: phone: int name: str @dataclass class BaseModel: sender: PayloadSender payload_id: str @dataclass class PayloadContactName: first_name: str formatted_name: str last_name: Optional...
20.474359
59
0.724483
1,368
0.856606
0
0
1,489
0.932373
0
0
0
0
117383a0b92d5b2084b9f6d9093f315d7ed4bad1
1,501
py
Python
util/visualizer.py
google/tim-gan
0139ad452b3c74e3c12791ebb719ea5979eb0d1f
[ "Apache-2.0" ]
7
2020-11-17T21:38:46.000Z
2022-02-15T02:33:10.000Z
util/visualizer.py
google/tim-gan
0139ad452b3c74e3c12791ebb719ea5979eb0d1f
[ "Apache-2.0" ]
null
null
null
util/visualizer.py
google/tim-gan
0139ad452b3c74e3c12791ebb719ea5979eb0d1f
[ "Apache-2.0" ]
2
2021-01-23T12:13:29.000Z
2021-03-27T21:20:49.000Z
# Copyright 2020 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
30.632653
80
0.688874
0
0
0
0
0
0
0
0
686
0.457029
11760b46f1fe55bc25871f161153fb36dff70ac5
922
py
Python
transcv/swin.py
Ys-Prakash/transcv
fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9
[ "Apache-2.0" ]
6
2021-09-19T07:47:04.000Z
2021-11-15T17:08:28.000Z
transcv/swin.py
Ys-Prakash/transcv
fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9
[ "Apache-2.0" ]
null
null
null
transcv/swin.py
Ys-Prakash/transcv
fe72f8dac2bbdb5cffaaf36352cb039c1ca5b8a9
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 01_swin.ipynb (unless otherwise specified). __all__ = ['SwinT'] # Cell #hide import timm from nbdev.showdoc import * from fastai.vision.all import * # Cell class SwinT : """Class for setting up a Swin Transformer model. The architecture is specified by `arch`, and the ...
32.928571
111
0.686551
719
0.779826
0
0
0
0
0
0
434
0.470716
117624463673d5965908bc5b693e638ca894611b
407
py
Python
authorize/apis/base_api.py
aryeh/py-authorize
e0a2e8d9828efa2146b22cb855fa28d723913e41
[ "MIT" ]
30
2015-03-13T01:31:52.000Z
2021-06-11T08:49:43.000Z
authorize/apis/base_api.py
aryeh/py-authorize
e0a2e8d9828efa2146b22cb855fa28d723913e41
[ "MIT" ]
41
2015-01-30T20:01:05.000Z
2022-03-31T23:11:56.000Z
authorize/apis/base_api.py
aryeh/py-authorize
e0a2e8d9828efa2146b22cb855fa28d723913e41
[ "MIT" ]
34
2015-01-11T20:22:03.000Z
2022-03-28T20:34:22.000Z
import colander from authorize.exceptions import AuthorizeInvalidError class BaseAPI(object): def __init__(self, api): self.api = api self.config = api.config def _deserialize(self, schema, params={}): try: deserialized = schema.deserialize(params) except colande...
22.611111
54
0.65602
332
0.815725
0
0
0
0
0
0
0
0
11766920d1f9e38bf6634e7585ed79d49348e3c1
1,237
py
Python
stable_baselines/trpo_mpi/run_mujoco.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
stable_baselines/trpo_mpi/run_mujoco.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
stable_baselines/trpo_mpi/run_mujoco.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
import stable_baselines.common.tf_util as tf_util from mpi4py import MPI from stable_baselines import logger from stable_baselines.common.cmd_util import make_mujoco_env, mujoco_arg_parser from stable_baselines.common.policies import MlpPolicy from stable_baselines.trpo_mpi import TRPO def train(env_id, num_timesteps...
28.767442
79
0.631366
0
0
0
0
0
0
0
0
10
0.008084
11767e77d6369d63f87f78e8e4f1ac800b3e2e86
929
py
Python
Day-16/part1.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
Day-16/part1.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
Day-16/part1.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
import sys sys.path.append("..") from common import * def parse(data): data = list(map(lambda s: s.strip(),filter(lambda s: len(s) > 1,data.split("\n")))) conds = {} for i in range(20): kv = data[i].split(":") cs = kv[1].split("or") conds[kv[0]] = ([int(v) for v in cs[0].split("-")]...
28.151515
87
0.52099
0
0
0
0
0
0
0
0
27
0.029064
11791aa64e3598994f4ffc54bf2c561214125d3a
1,931
py
Python
NewQshop/AppStore/Buyer/views.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
null
null
null
NewQshop/AppStore/Buyer/views.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
3
2020-04-30T15:16:56.000Z
2022-02-13T08:02:39.000Z
NewQshop/AppStore/Buyer/views.py
bestwishfang/FlaskFrameWork
e5f2af0b82be6d5b32febadc244a72aadceaa58b
[ "MIT" ]
null
null
null
import time import json import datetime from flask import request from flask import render_template from flask_restful import Resource from . import buyer, apibuyer from AppStore.models import Class_Info @buyer.route('/buyer/index/') def index(): return 'Hello World! This is buyer index.' @buyer.route('/api/b...
25.407895
72
0.578975
1,413
0.728726
0
0
1,721
0.887571
0
0
460
0.237236
11791d8dd54ab856a076d61973de8d77641f2d2d
115
py
Python
app/route.py
Indexyz/pods-info-example
e36657d2e4448a9d42450fd5e41671bba11ee9b4
[ "Unlicense" ]
null
null
null
app/route.py
Indexyz/pods-info-example
e36657d2e4448a9d42450fd5e41671bba11ee9b4
[ "Unlicense" ]
null
null
null
app/route.py
Indexyz/pods-info-example
e36657d2e4448a9d42450fd5e41671bba11ee9b4
[ "Unlicense" ]
null
null
null
from flask_restful import Api import info def add_route(api: Api): api.add_resource(info.InfoRoute, '/')
19.166667
42
0.713043
0
0
0
0
0
0
0
0
3
0.026087
117a656b53ebd25b52d2ba050419669977c82183
219
py
Python
apps/integrations/github/resources/followers.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
apps/integrations/github/resources/followers.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
apps/integrations/github/resources/followers.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
from integrations.github.resources.base import GitHubListResource class FollowersListResource(GitHubListResource): """Ресурс данных подписчиков пользователя GitHub""" endpoint = 'users/{user_slug}/followers'
27.375
65
0.799087
185
0.728346
0
0
0
0
0
0
115
0.452756
117ccff29d39a8a303a7911cf64c178e84256843
681
py
Python
tests/test_provider_unicell_kind.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_unicell_kind.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_unicell_kind.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_unicell_kind.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:21 UTC) def test_provider_import(): import terrascript.provider.unicell.kind def test_resource_import(): from terrascript.resource.unicell.kind import kind_cluster # TODO: Shortcut imports without names...
27.24
80
0.737151
0
0
0
0
0
0
0
0
497
0.729809
1180dde3665390d3a54ac55203c8a6a39a04cbc1
1,993
py
Python
addpapers.py
tarrow/librarybase-pwb
6c86aba7cbcb6200bfade0170aea8be3593cafec
[ "MIT" ]
1
2017-05-23T14:14:16.000Z
2017-05-23T14:14:16.000Z
addpapers.py
tarrow/librarybase-pwb
6c86aba7cbcb6200bfade0170aea8be3593cafec
[ "MIT" ]
7
2015-12-09T10:14:37.000Z
2016-01-19T12:55:33.000Z
addpapers.py
tarrow/librarybase-pwb
6c86aba7cbcb6200bfade0170aea8be3593cafec
[ "MIT" ]
null
null
null
import queryCiteFile import librarybase import pywikibot from epmclib.getPMCID import getPMCID from epmclib.exceptions import IDNotResolvedException import queue import threading import time def rununthreaded(): citefile = queryCiteFile.CiteFile() citations = citefile.findRowsWithIDType('pmc') ...
29.746269
93
0.606121
0
0
0
0
0
0
0
0
232
0.116407
118141ccfae972e74c17e2b33370161c604fe8c4
2,491
py
Python
day18/script2.py
Moremar/advent_of_code_2019
572200ad8c24efd38fb3fac428d086bcd7090ca9
[ "Apache-2.0" ]
null
null
null
day18/script2.py
Moremar/advent_of_code_2019
572200ad8c24efd38fb3fac428d086bcd7090ca9
[ "Apache-2.0" ]
null
null
null
day18/script2.py
Moremar/advent_of_code_2019
572200ad8c24efd38fb3fac428d086bcd7090ca9
[ "Apache-2.0" ]
null
null
null
from day18.script1 import parse_matrix, read_char_matrix, alpha_lower, solve_world # We could use the same logic as part 1 with a state made of a distance and 4 (x, y) pairs (one for each bot) # This works with examples, but there are too many combinations for the real input so it runs for very long # # To get it qui...
34.123288
116
0.607788
0
0
0
0
0
0
0
0
738
0.296267
1183ffbe924869fb7a592b3839706503e0ba51ef
1,029
py
Python
test/test_clamp.py
XiaoxuanZhangCM/igakit
71bc4237a561272f6189d067688c182aa705c5eb
[ "BSD-2-Clause" ]
2
2022-03-21T09:38:55.000Z
2022-03-24T23:33:55.000Z
test/test_clamp.py
XiaoxuanZhangCM/igakit
71bc4237a561272f6189d067688c182aa705c5eb
[ "BSD-2-Clause" ]
1
2022-03-24T22:50:35.000Z
2022-03-27T06:33:16.000Z
test/test_clamp.py
XiaoxuanZhangCM/igakit
71bc4237a561272f6189d067688c182aa705c5eb
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from igakit.cad import circle, Pi def make_crv(p,u): c = circle(radius=1, angle=Pi/2) c.rotate(Pi/4) c.elevate(0,p-2) c.refine(0,u) return c def check_crv(c): u0, u1 = c.breaks(0)[[0,-1]] u = np.linspace(u0,u1,100) x, y, z = c(u).T r = np.hypot(x,y) return np...
27.810811
67
0.477162
0
0
0
0
0
0
0
0
10
0.009718
1186952effff0749fbfa4fc2d6b7b1c8935379fb
4,261
py
Python
autoload/vim_ext/vim_opt.py
nielsmadan/venom
87dee312fe8dbaa64fe29fba7a2ccd5f41a55b4a
[ "0BSD" ]
1
2022-01-26T04:57:28.000Z
2022-01-26T04:57:28.000Z
autoload/vim_ext/vim_opt.py
nielsmadan/venom
87dee312fe8dbaa64fe29fba7a2ccd5f41a55b4a
[ "0BSD" ]
null
null
null
autoload/vim_ext/vim_opt.py
nielsmadan/venom
87dee312fe8dbaa64fe29fba7a2ccd5f41a55b4a
[ "0BSD" ]
1
2021-08-19T08:11:58.000Z
2021-08-19T08:11:58.000Z
import vim _BOOL_OPTS = set(('allowrevins', 'altkeymap', 'antialias', 'autochdir', 'arabic', 'arabicshape', 'autoindent', 'autoread', 'autowrite', 'backup', 'ballooneval', 'binary', 'bioskey', 'bomb', 'buflisted', 'buftype', 'cindent', 'compatible', 'confirm', 'con...
59.180556
106
0.553157
579
0.135884
0
0
0
0
0
0
2,567
0.602441
118876cb679cde240360c27b46916d06a9308fee
997
py
Python
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
docker/postgresql-backup/tasks.py
angelopolotto/awesome-docker-sh
2b1bba817974504835b5b6a9863fad59a8581a19
[ "MIT" ]
null
null
null
#!/bin/python # coding=utf-8 import schedule import time from subprocess import call # Referências: # https://pypi.org/project/schedule/ # https://stackoverflow.com/questions/373335/how-do-i-get-a-cron-like-scheduler-in-python # https://www.geeksforgeeks.org/python-schedule-library/ def postgres_backup_00_h(): ...
28.485714
89
0.605817
0
0
0
0
0
0
0
0
597
0.597598
1188f7d771d6606445861a8c6c54d6fe5f5f1785
40,198
py
Python
statestream/utils/shared_memory.py
boschresearch/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
9
2019-02-21T14:25:26.000Z
2021-07-21T08:14:32.000Z
statestream/utils/shared_memory.py
VolkerFischer/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
null
null
null
statestream/utils/shared_memory.py
VolkerFischer/statestream
3ea93b2e0434cfaf5d546f37b2068dc0a0b8c281
[ "Apache-2.0", "MIT" ]
1
2019-03-04T03:17:00.000Z
2019-03-04T03:17:00.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/boschresearch/statestream # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
48.962241
113
0.449898
37,241
0.926439
0
0
0
0
0
0
9,478
0.235783
118905449900c13944077442978a29530c910266
382
py
Python
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
setup.py
ldacosta/geometry2D
9be0df6544777d29740991234bc92a7004ef775e
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='Geometry2D', version='0.7.1', author='Luis Da Costa', author_email='dacosta.le@gmail.com', packages=['geometry'], scripts=[], url='https://github.com/ldacosta/geometry2D/', license='LICENSE.txt', long_description=open('README.txt').read(...
22.470588
50
0.617801
0
0
0
0
0
0
0
0
149
0.390052
1189f4feaa6f37baba240eba239b4e25d3d105ed
1,341
py
Python
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
rainbowplot/tests.py
ioreshnikov/rainbowplot
42022e0dd427b0ec245d2d703f6ad591a87861d9
[ "MIT" ]
null
null
null
from unittest import TestCase import numpy as np import matplotlib.pyplot as plt from .plot import rainbowplot class Fixtures: """ This class is a namespace for all the fixtures used in tests. """ nt = 2**10 nx = 2**10 t = np.linspace(0, 10, nt) x = np.linspace(-10, +10, nx) @stat...
23.12069
80
0.529456
1,223
0.911326
0
0
800
0.596125
0
0
281
0.209389
118a041ae6d96652625804e1d8039c4ff86c7d07
3,957
py
Python
core/views.py
MichelAtieno/Rogue-Nation
c4d78b42b5e6312043de2308a591951d0ba297b8
[ "Unlicense" ]
null
null
null
core/views.py
MichelAtieno/Rogue-Nation
c4d78b42b5e6312043de2308a591951d0ba297b8
[ "Unlicense" ]
11
2020-06-05T22:42:25.000Z
2022-03-11T23:58:46.000Z
core/views.py
MichelAtieno/Rogue-Nation
c4d78b42b5e6312043de2308a591951d0ba297b8
[ "Unlicense" ]
null
null
null
from django.db.models import Count, Q from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.shortcuts import render, get_object_or_404 from .models import NewsItem, SignUp, Artist, Athlete,Category # Create your views here. def search(request): queryset = NewsItem.objects.all() ...
28.06383
96
0.668183
0
0
0
0
0
0
0
0
505
0.127622
118a9196e211cb95ce33a333ef7a6481cddafdd3
2,133
py
Python
process-invoices/update_invoice_statuses.py
MITLibraries/alma-scripts
c312692a71a83dc0b5e60761bc3e7b37d7d42099
[ "Apache-2.0" ]
null
null
null
process-invoices/update_invoice_statuses.py
MITLibraries/alma-scripts
c312692a71a83dc0b5e60761bc3e7b37d7d42099
[ "Apache-2.0" ]
16
2021-07-23T20:46:29.000Z
2022-03-10T19:34:10.000Z
process-invoices/update_invoice_statuses.py
MITLibraries/alma-scripts
c312692a71a83dc0b5e60761bc3e7b37d7d42099
[ "Apache-2.0" ]
null
null
null
import datetime import glob import sys import requests from defusedxml import ElementTree as ET sys.path.append("..") from llama.alma import Alma_API_Client import llama.config as config TODAY = datetime.date.today() count_total_invoices = 0 count_invoices_updated = 0 count_invoice_errors = 0 # Update empty invoice...
35.55
86
0.735115
0
0
0
0
0
0
0
0
950
0.445382
118a963b9511f86ed9bf75aa58347aecde3de782
4,117
py
Python
src/converter/convert_mobilenetv2.py
xiongzhiyao/pytorch-segmentation
a13b1aa1b316d06f050deef29d5be8b6e99460e7
[ "MIT" ]
359
2018-11-22T04:13:19.000Z
2022-03-08T09:05:47.000Z
src/converter/convert_mobilenetv2.py
xiongzhiyao/pytorch-segmentation
a13b1aa1b316d06f050deef29d5be8b6e99460e7
[ "MIT" ]
21
2018-12-07T22:37:09.000Z
2021-01-22T02:18:28.000Z
src/converter/convert_mobilenetv2.py
xiongzhiyao/pytorch-segmentation
a13b1aa1b316d06f050deef29d5be8b6e99460e7
[ "MIT" ]
73
2018-11-22T06:16:54.000Z
2021-03-30T18:26:47.000Z
import argparse from pathlib import Path import tensorflow as tf import torch from models.net import SPPNet def convert_mobilenetv2(ckpt_path, num_classes): def conv_converter(pt_layer, tf_layer_name, depthwise=False, bias=False): if depthwise: pt_layer.weight.data = torch.Tensor( ...
45.744444
116
0.747389
0
0
0
0
0
0
0
0
1,160
0.281759
118aedb6c6d513ed6f6c93f84ecac295ca601bc5
347
py
Python
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
create_securty_group.py
whojarr/drupal_aws
e9a7e42a554158b6e068d0fa54ab87151a3ae807
[ "ADSL" ]
null
null
null
#!/usr/bin/env python import ec2 security_group = ec2.DrupalSecurityGroup() print("Created new Drupal Security Group Object:{}".format(security_group)) if security_group.exists(): print("Security Group Exists") exit(1) security_group_id = security_group.create() print("Created new EC2 Security Group ID:{}"....
24.785714
75
0.760807
0
0
0
0
0
0
0
0
127
0.365994
118bb9cc42104087368b917dcb655edae791e512
2,624
py
Python
extract-subimages-videos.py
rzaluska/fcnn-conferences
509946a4d342451f29e7b8706b6ff46b0af20f36
[ "MIT" ]
1
2018-04-07T05:55:48.000Z
2018-04-07T05:55:48.000Z
extract-subimages-videos.py
rzaluska/fcnn-conferences
509946a4d342451f29e7b8706b6ff46b0af20f36
[ "MIT" ]
null
null
null
extract-subimages-videos.py
rzaluska/fcnn-conferences
509946a4d342451f29e7b8706b6ff46b0af20f36
[ "MIT" ]
null
null
null
# script for extracting patches from video frames suitable for neural network # training from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array, array_to_img from PIL import Image import sys import os import glob from PIL import Image from os.path import basename, splitext import numpy as n...
39.164179
172
0.626905
0
0
0
0
0
0
0
0
334
0.127287
118c04c3ee9fe35ac75935787959d36e0b22d4b3
269
py
Python
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
sample.py
tiholic/Rubiks
20618a4271973cb8244ba602beea4d79b0ba52f8
[ "Apache-2.0" ]
null
null
null
side = [ [ "Y", "O", "W" ], [ "R", "G", "O" ], [ "O", "O", "B" ] ] new_side = [ [ 'X' for i in range(3) ] for i in range(3) ] for row_idx, row in enumerate(side): for unit_idx, unit in enumerate(row): new_side[2-unit_idx][row_idx] = unit print(new_side)
24.454545
58
0.535316
0
0
0
0
0
0
0
0
30
0.111524
118d551ca0c80c0e51a840c724d05bb79e776a14
2,113
py
Python
src/extract_cdi/__init__.py
igorgbr/extract_cdi
66d8aa56d0099c04ef491908ab246389b79fdc7e
[ "MIT" ]
null
null
null
src/extract_cdi/__init__.py
igorgbr/extract_cdi
66d8aa56d0099c04ef491908ab246389b79fdc7e
[ "MIT" ]
null
null
null
src/extract_cdi/__init__.py
igorgbr/extract_cdi
66d8aa56d0099c04ef491908ab246389b79fdc7e
[ "MIT" ]
null
null
null
import os import time import json from random import random from datetime import datetime import pandas as pd import seaborn as sns import requests class SearchAndExtractData(object): def __init__(self, file: str, graph_name: str) -> None: self.file = file self.graph_name = graph_name def cr...
32.507692
78
0.549456
1,965
0.9282
0
0
0
0
0
0
567
0.267832