hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0671b27e8da87d02a9a00645b2c4b05892cec1db
1,266
py
Python
example/start_job.py
MUAS-DTLab-SoSe20-EnBeeMo/EnBeeMo_I
82240e022d4f9968adfd1e455f7f65db74d81d3b
[ "MIT" ]
null
null
null
example/start_job.py
MUAS-DTLab-SoSe20-EnBeeMo/EnBeeMo_I
82240e022d4f9968adfd1e455f7f65db74d81d3b
[ "MIT" ]
null
null
null
example/start_job.py
MUAS-DTLab-SoSe20-EnBeeMo/EnBeeMo_I
82240e022d4f9968adfd1e455f7f65db74d81d3b
[ "MIT" ]
null
null
null
# This script is an example how to start a batch of computing jobs with the PCR system. # Requires a properly set up AWS CLI or other source of credentials. # # Usage: # - copy this script to your machine (optional) # - install the PCR python package (see readme.md) # - prepare and push your example docker image ...
25.836735
87
0.741706
18427aba2ec30094b23066e7961beb84f69ee439
1,701
py
Python
pyti/ichimoku_cloud.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
635
2017-04-04T20:24:47.000Z
2022-03-28T16:00:23.000Z
pyti/ichimoku_cloud.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
24
2017-10-22T15:01:54.000Z
2021-01-30T19:51:00.000Z
pyti/ichimoku_cloud.py
dibyajyotidash/https-github.com-kylejusticemagnuson-pyti
08532970f9d2b163f1223599e3ac80f6c51533e4
[ "MIT" ]
183
2017-07-01T16:06:39.000Z
2022-03-07T23:29:11.000Z
from __future__ import absolute_import import numpy as np from pyti import catch_errors from pyti.function_helper import fill_for_noncomputable_vals from six.moves import range def conversion_base_line_helper(data, period): """ The only real difference between TenkanSen and KijunSen is the period value ""...
21.807692
88
0.63786
5c5c4380f1679f7ad9fa9b96e9ea15042f3033bb
10,416
py
Python
detectron2/export/api.py
MargeryLab/BMaskR-CNN
41f63d301d6be7fa30ba281a5a0f727fbca6ad2a
[ "Apache-2.0" ]
null
null
null
detectron2/export/api.py
MargeryLab/BMaskR-CNN
41f63d301d6be7fa30ba281a5a0f727fbca6ad2a
[ "Apache-2.0" ]
null
null
null
detectron2/export/api.py
MargeryLab/BMaskR-CNN
41f63d301d6be7fa30ba281a5a0f727fbca6ad2a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import copy import logging import os import torch from caffe2.proto import caffe2_pb2 from torch import nn from detectron2.config import CfgNode as CN from .caffe2_export import export_caffe2_detection_model from .caffe2_export import ...
36.676056
99
0.634697
466e32946f419b8db1c9881776a13054a29dca37
74
py
Python
src/functions/array/__init__.py
pfnet-research/label-efficient-brain-tumor-segmentation
aad80ed7acb510a3147bb11c3910d2e17fb355d1
[ "MIT" ]
21
2020-09-23T11:05:14.000Z
2021-12-09T13:32:59.000Z
src/functions/array/__init__.py
shiontao/label-efficient-brain-tumor-segmentation
aad80ed7acb510a3147bb11c3910d2e17fb355d1
[ "MIT" ]
null
null
null
src/functions/array/__init__.py
shiontao/label-efficient-brain-tumor-segmentation
aad80ed7acb510a3147bb11c3910d2e17fb355d1
[ "MIT" ]
5
2020-10-29T05:57:15.000Z
2021-07-16T11:30:02.000Z
from src.functions.array.resize_images_3d import resize_images_3d # NOQA
37
73
0.851351
73be96430087f0e7e27fd24c23625484bf559e01
1,277
py
Python
main.py
apotl/ayydio
ba1aa0b95d6118e763c6c383181e07f9e0575c63
[ "BSD-2-Clause" ]
null
null
null
main.py
apotl/ayydio
ba1aa0b95d6118e763c6c383181e07f9e0575c63
[ "BSD-2-Clause" ]
null
null
null
main.py
apotl/ayydio
ba1aa0b95d6118e763c6c383181e07f9e0575c63
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 from mpd import MPDClient from lib.Song import Song print('ayydioctrl micro') c = MPDClient() c.timeout = 10 c.idletimeout = None c.connect("localhost",6600) c.update() def lsdb(): #for each file/dir for f in c.lsinfo(): try: print('\033[31m'+ f['directory']) for ff in c.lsinfo(f['directo...
18.242857
44
0.605325
79a60fcb1dde792cb8826ede191818b2a8c19dcd
2,976
py
Python
lambda-python-git-secrets/demo4.py
mbacchi/secret-leak-prevention-demo
770dec9235b5dfbfb18465743aa6e1687c707eb0
[ "BSD-2-Clause" ]
3
2018-03-05T21:02:26.000Z
2022-03-25T18:08:01.000Z
lambda-python-git-secrets/demo4.py
mbacchi/secret-leak-prevention-demo
770dec9235b5dfbfb18465743aa6e1687c707eb0
[ "BSD-2-Clause" ]
null
null
null
lambda-python-git-secrets/demo4.py
mbacchi/secret-leak-prevention-demo
770dec9235b5dfbfb18465743aa6e1687c707eb0
[ "BSD-2-Clause" ]
1
2018-03-05T23:05:51.000Z
2018-03-05T23:05:51.000Z
import os import random import re import shutil from dulwich import porcelain from gitsecrets import GitSecrets from string import ascii_uppercase, ascii_lowercase, digits from tempfile import mkdtemp # For this demo we use Dulwich instead of Git to clone a repository from GitHub. # # This is because in an AWS Lambda...
35.855422
113
0.686828
951acd0b50a0fc594bef08fb82e7d05f1c53e480
31,473
py
Python
shapely/geometry/base.py
IncoCura/Shapely
5d18af283e485a427d121e05fbf8e9968db4a569
[ "BSD-3-Clause" ]
null
null
null
shapely/geometry/base.py
IncoCura/Shapely
5d18af283e485a427d121e05fbf8e9968db4a569
[ "BSD-3-Clause" ]
null
null
null
shapely/geometry/base.py
IncoCura/Shapely
5d18af283e485a427d121e05fbf8e9968db4a569
[ "BSD-3-Clause" ]
1
2019-12-27T16:56:38.000Z
2019-12-27T16:56:38.000Z
"""Base geometry class and utilities Note: a third, z, coordinate value may be used when constructing geometry objects, but has no effect on geometric analysis. All operations are performed in the x-y plane. Thus, geometries with different z values may intersect or be equal. """ from binascii import a2b_hex from ctyp...
32.313142
84
0.602326
b5ac105a1eecde7bec42a08a378ace8ccda31133
594
py
Python
order/migrations/0021_auto_20211122_0834.py
gheyderov/E-commerce-website
9a87e8e6658a69fb017bdc3b36d6dc5417e3124e
[ "MIT" ]
null
null
null
order/migrations/0021_auto_20211122_0834.py
gheyderov/E-commerce-website
9a87e8e6658a69fb017bdc3b36d6dc5417e3124e
[ "MIT" ]
null
null
null
order/migrations/0021_auto_20211122_0834.py
gheyderov/E-commerce-website
9a87e8e6658a69fb017bdc3b36d6dc5417e3124e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-11-22 08:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('order', '0020_auto_20211122_0825'), ] operations = [ migrations.RemoveField( model_name='order'...
24.75
116
0.614478
c6c381c7e793e64384ad2464c153a3208d682929
2,872
py
Python
perfkitbenchmarker/data/edw/script_driver.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
1
2018-08-28T19:33:21.000Z
2018-08-28T19:33:21.000Z
perfkitbenchmarker/data/edw/script_driver.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/data/edw/script_driver.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
null
null
null
"""Driver for running a script against a EDW cluster. Driver compiles the provider specific script execution command and returns the time taken to execute the script in seconds or -1 if the script fails. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function ...
31.56044
80
0.68663
30784f7b10bc674d258bc31324cea97f9778595b
407
py
Python
ctre/__init__.py
stmobo/robotpy-ctre
7ef83ae6f6bc0d5ef793dfb6e96ac5d641320aeb
[ "Apache-2.0" ]
null
null
null
ctre/__init__.py
stmobo/robotpy-ctre
7ef83ae6f6bc0d5ef793dfb6e96ac5d641320aeb
[ "Apache-2.0" ]
null
null
null
ctre/__init__.py
stmobo/robotpy-ctre
7ef83ae6f6bc0d5ef793dfb6e96ac5d641320aeb
[ "Apache-2.0" ]
null
null
null
from .wpi_talonsrx import WPI_TalonSRX from .wpi_victorspx import WPI_VictorSPX from .canifier import CANifier from .pigeonimu import PigeonIMU from ._impl import ( ControlMode, FeedbackDevice, RemoteFeedbackDevice, NeutralMode, ) from .trajectorypoint import TrajectoryPoint try: from .version i...
20.35
44
0.769042
e1462ea1619bc959f8fd5becf206a660ff1303b5
7,344
py
Python
plugins/module_utils/network/sonic/facts/l3_interfaces/l3_interfaces.py
ansible-collections/dellemc_networking.sonic
ca9382bb5a3bd021d3f9766077e8e452f710a1ce
[ "Apache-2.0" ]
null
null
null
plugins/module_utils/network/sonic/facts/l3_interfaces/l3_interfaces.py
ansible-collections/dellemc_networking.sonic
ca9382bb5a3bd021d3f9766077e8e452f710a1ce
[ "Apache-2.0" ]
null
null
null
plugins/module_utils/network/sonic/facts/l3_interfaces/l3_interfaces.py
ansible-collections/dellemc_networking.sonic
ca9382bb5a3bd021d3f9766077e8e452f710a1ce
[ "Apache-2.0" ]
2
2020-03-11T12:19:45.000Z
2020-03-11T15:37:53.000Z
# # -*- coding: utf-8 -*- # Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The sonic l3_interfaces fact class It is in this file the configuration is collected from the device for a given resource, pars...
39.483871
152
0.587146
1f7d86def2f3f760566e7503d01ec197d66783ae
591
py
Python
encryptfinance/users/urls.py
dark-codr/encryptfinance
573a8179c3a7c4b0f68d71bc9d461246f6fdba29
[ "Apache-2.0" ]
null
null
null
encryptfinance/users/urls.py
dark-codr/encryptfinance
573a8179c3a7c4b0f68d71bc9d461246f6fdba29
[ "Apache-2.0" ]
null
null
null
encryptfinance/users/urls.py
dark-codr/encryptfinance
573a8179c3a7c4b0f68d71bc9d461246f6fdba29
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from django.urls import path from encryptfinance.users.views import ( user_detail_view, user_redirect_view, user_update_view, user_verify_view, ) app_name = "users" urlpatterns = [ path("~redirect/", view=user_redirect_view, name="redirect"), path("<user...
29.55
78
0.712352
6bc69ffd5cd3244a545448bb077bf7b59d2250cb
602,306
py
Python
python/paddle/fluid/layers/nn.py
Joejiong/Paddle
6d6ea569dc1e9ff15fdc774c79276b0f79444f5e
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/nn.py
Joejiong/Paddle
6d6ea569dc1e9ff15fdc774c79276b0f79444f5e
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/nn.py
Joejiong/Paddle
6d6ea569dc1e9ff15fdc774c79276b0f79444f5e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.677602
946
0.577992
2b7dc6fc7937f15df8462efc8889da9dc7fcfb71
6,335
py
Python
libs/openpyxl/comments/comment_sheet.py
rocketbot-cl/PivotTableExcel
041c8db2bbcd9655d30bf4c37aca4902b3d1db7a
[ "MIT" ]
null
null
null
libs/openpyxl/comments/comment_sheet.py
rocketbot-cl/PivotTableExcel
041c8db2bbcd9655d30bf4c37aca4902b3d1db7a
[ "MIT" ]
1
2021-02-08T20:31:28.000Z
2021-02-08T20:31:28.000Z
venv/Lib/site-packages/openpyxl/comments/comment_sheet.py
ansonsry/Freshshop
79ab8beb1aa993f6365182c8d3bb478ee4e028f8
[ "MIT" ]
null
null
null
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyxl ## Incomplete! from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors import ( Typed, Float, Integer, Set, String, Bool, ) from openpyxl.descriptors.excel import Guid, ExtensionList from open...
27.188841
90
0.597632
bb38b678679f047fb4c6daaa6def4f7ddc57666d
27,730
py
Python
sifter.py
jakiki6/sandsifter
d852d01560be908b85cb95734d31ace8909b85b1
[ "BSD-3-Clause" ]
2
2021-04-21T17:18:09.000Z
2021-07-29T15:50:36.000Z
sifter.py
jakiki6/sandsifter
d852d01560be908b85cb95734d31ace8909b85b1
[ "BSD-3-Clause" ]
null
null
null
sifter.py
jakiki6/sandsifter
d852d01560be908b85cb95734d31ace8909b85b1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 # instruction injector frontend # # github.com/xoreaxeaxeax/sandsifter // domas // @xoreaxeaxeax # # run as sudo for best results import signal import sys import subprocess import os from struct import * from capstone import * from collections import namedtuple from collections import deque impor...
32.777778
107
0.549802
3113c2f7e322f8fc161c40ecbe34907c3c3f1908
3,294
py
Python
alipay/aop/api/domain/CreditBankTraining.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/CreditBankTraining.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/CreditBankTraining.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class CreditBankTraining(object): def __init__(self): self._experience_time = None self._have_project_certificate = None self._inst_name = None self._project_name = None...
32.613861
99
0.637523
19ac3b725dd3b337e776bfb232ad9525b445b0dc
17,578
py
Python
python-3.4.4.amd64/Lib/distutils/command/build_py.py
CSnap/photogate
208272ef39f4e86f40d431da2ca523e21701f789
[ "CC0-1.0" ]
null
null
null
python-3.4.4.amd64/Lib/distutils/command/build_py.py
CSnap/photogate
208272ef39f4e86f40d431da2ca523e21701f789
[ "CC0-1.0" ]
null
null
null
python-3.4.4.amd64/Lib/distutils/command/build_py.py
CSnap/photogate
208272ef39f4e86f40d431da2ca523e21701f789
[ "CC0-1.0" ]
null
null
null
"""distutils.command.build_py Implements the Distutils 'build_py' command.""" import os import importlib.util import sys from glob import glob from distutils.core import Command from distutils.errors import * from distutils.util import convert_path, Mixin2to3 from distutils import log class build_py (...
42.153477
80
0.57572
18f2f9cadf0e59e1ca73a78aa0c7a419796785fc
405
py
Python
Binary search algorithm/main.py
Noha101/python
4cafd75f3e588e8dc3cccad786781316dab836f7
[ "MIT" ]
null
null
null
Binary search algorithm/main.py
Noha101/python
4cafd75f3e588e8dc3cccad786781316dab836f7
[ "MIT" ]
1
2021-09-07T09:59:56.000Z
2021-09-07T10:00:40.000Z
Binary search algorithm/main.py
Noha101/python
4cafd75f3e588e8dc3cccad786781316dab836f7
[ "MIT" ]
1
2021-09-07T09:42:31.000Z
2021-09-07T09:42:31.000Z
def search(arr, l, r, x): if r >= l: mid = l + (r - l) // 2 if arr[mid] == x: return mid elif arr[mid] > x: return search(arr, l, mid-1, x) else: return search(arr, mid + 1, r, x) else: return -1 arr = [ 2, 3, 4, 10, 40 ] x = 10 result = search(arr, 0, len(arr)-1, x) if result != -1: print(f"El...
18.409091
47
0.562963
00bdc1e96b5a7da9a2192e93c759e5b858e5578a
6,351
py
Python
geo_png_tiler/resources.py
sasakiassociates/qgis-geo-png-db
bb71daa68e3721074482944d12f6323ce5136fed
[ "MIT" ]
1
2021-10-01T11:44:59.000Z
2021-10-01T11:44:59.000Z
geo_png_tiler/resources.py
sasakiassociates/qgis-geo-png-db
bb71daa68e3721074482944d12f6323ce5136fed
[ "MIT" ]
null
null
null
geo_png_tiler/resources.py
sasakiassociates/qgis-geo-png-db
bb71daa68e3721074482944d12f6323ce5136fed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.11.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x04\x5c\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x18\x...
47.395522
103
0.7265
aceaef86edba34239549a2829cb466ef4917088e
2,729
py
Python
sequencing_np/nn/rnn_cells/rnn.py
SwordYork/sequencing
bcbc2006bf17315411ac3d629f7014f790b70418
[ "MIT" ]
45
2017-08-06T15:02:12.000Z
2021-01-24T19:12:13.000Z
sequencing_np/nn/rnn_cells/rnn.py
SwordYork/sequencing
bcbc2006bf17315411ac3d629f7014f790b70418
[ "MIT" ]
null
null
null
sequencing_np/nn/rnn_cells/rnn.py
SwordYork/sequencing
bcbc2006bf17315411ac3d629f7014f790b70418
[ "MIT" ]
14
2017-08-07T04:56:55.000Z
2019-01-07T09:43:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Sword York # GitHub: https://github.com/SwordYork/sequencing # No rights reserved. # from abc import ABCMeta, abstractmethod from ..base import Layer from ... import np, TIME_MAJOR class RNN(Layer, metaclass=ABCMeta): def __init__(self, init_state, ...
34.1125
83
0.596189
0e29ca1eb19a7bdcc8c13c84d96ffe07b2543edc
2,199
py
Python
xlsxwriter/test/worksheet/test_worksheet05.py
DeltaEpsilon7787/XlsxWriter
550b9c5bd678c861dcc9f6f4072b33a69566e065
[ "BSD-2-Clause-FreeBSD" ]
2,766
2015-01-02T17:36:42.000Z
2022-03-31T09:23:30.000Z
xlsxwriter/test/worksheet/test_worksheet05.py
DeltaEpsilon7787/XlsxWriter
550b9c5bd678c861dcc9f6f4072b33a69566e065
[ "BSD-2-Clause-FreeBSD" ]
683
2015-01-03T09:55:02.000Z
2022-03-31T07:18:15.000Z
xlsxwriter/test/worksheet/test_worksheet05.py
jmcnamara/test_py_github_actions
d445d5d98b038b63453dd70c9c1a9ca1b325cb47
[ "BSD-2-Clause-FreeBSD" ]
636
2015-01-05T01:57:08.000Z
2022-03-25T18:42:41.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ..helperfunctions import _xml_to_list from ...worksheet import Worksheet from ...sharedstrings import ...
32.338235
171
0.482037
93350dabc6d5b32879d8f37d039b2b2a839d1408
2,003
py
Python
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/portal_global_setting.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/portal_global_setting.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/cisco/ise/plugins/modules/portal_global_setting.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: portal_global_setting short_description: Resource module for Portal Global Setting description: - Manage operation...
24.426829
92
0.651523
edfc7ece408ae46fd8045912656e1b3747cea708
105
py
Python
blogsNewsModule/apps.py
adityakekare/NewsAPIDjango
47ff0c69e3d48c10a257c8221916ccd2fdaf9abb
[ "MIT" ]
1
2020-10-14T17:13:45.000Z
2020-10-14T17:13:45.000Z
blogsNewsModule/apps.py
adityakekare/NewsAPIDjango
47ff0c69e3d48c10a257c8221916ccd2fdaf9abb
[ "MIT" ]
null
null
null
blogsNewsModule/apps.py
adityakekare/NewsAPIDjango
47ff0c69e3d48c10a257c8221916ccd2fdaf9abb
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BlogsnewsmoduleConfig(AppConfig): name = 'blogsNewsModule'
17.5
39
0.790476
945b428c3dace5fc559da30e07b3607751dcb985
3,371
py
Python
src/tests/sys/netinet6/frag6/frag6_02.py
lastweek/source-freebsd
0821950b0c40cbc891a27964b342e0202a3859ec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/tests/sys/netinet6/frag6/frag6_02.py
lastweek/source-freebsd
0821950b0c40cbc891a27964b342e0202a3859ec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/tests/sys/netinet6/frag6/frag6_02.py
lastweek/source-freebsd
0821950b0c40cbc891a27964b342e0202a3859ec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#!/usr/bin/env python #- # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2019 Netflix, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright...
30.645455
76
0.719371
24f117ff3d75ff91ae9a2a9cd2d8f1fa088a9e24
4,045
py
Python
SC101_Assignments/SC101_Assignment6/boggle.py
JIllchen487/StanCode101
8025dd4e4cf0cb3d14d7314ef4ea6dfff3e5b5cc
[ "MIT" ]
null
null
null
SC101_Assignments/SC101_Assignment6/boggle.py
JIllchen487/StanCode101
8025dd4e4cf0cb3d14d7314ef4ea6dfff3e5b5cc
[ "MIT" ]
null
null
null
SC101_Assignments/SC101_Assignment6/boggle.py
JIllchen487/StanCode101
8025dd4e4cf0cb3d14d7314ef4ea6dfff3e5b5cc
[ "MIT" ]
null
null
null
""" File: boggle.py Name: ---------------------------------------- TODO: """ import time # This is the file name of the dictionary txt file # we will be checking if a word exists by searching through it FILE = 'dictionary.txt' dic = [] def main(): """ TODO: """ start = time.time() #############...
28.286713
99
0.576267
9a3c54ee09fd8abced82afa7e500c813a3dfc431
5,190
py
Python
libs/labelFile.py
PaKyong/labelImg
8a5f08d624b4bb797aa4fad445e4fd7bb23c58cf
[ "MIT" ]
11
2018-10-17T08:57:27.000Z
2020-08-07T02:43:31.000Z
libs/labelFile.py
PaKyong/labelImg
8a5f08d624b4bb797aa4fad445e4fd7bb23c58cf
[ "MIT" ]
25
2020-09-25T22:33:07.000Z
2022-03-12T00:15:27.000Z
libs/labelFile.py
PaKyong/labelImg
8a5f08d624b4bb797aa4fad445e4fd7bb23c58cf
[ "MIT" ]
11
2019-11-02T01:31:20.000Z
2021-08-15T12:49:27.000Z
# Copyright (c) 2016 Tzutalin # Create by TzuTaLin <tzu.ta.lin@gmail.com> try: from PyQt5.QtGui import QImage except ImportError: from PyQt4.QtGui import QImage from base64 import b64encode, b64decode from libs.pascal_voc_io import PascalVocWriter from libs.yolo_io import YOLOWriter from libs.pascal_voc_io im...
35.306122
91
0.581696
b16e02eebc00ebfd9713d5d3be84c9cedd91651f
411
py
Python
old_django_malliva/communications/models.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
null
null
null
old_django_malliva/communications/models.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
null
null
null
old_django_malliva/communications/models.py
olubiyiontheweb/malliva
b212e6b359eed54c92533f0a02afe3c0042150e2
[ "MIT" ]
1
2021-07-19T12:15:52.000Z
2021-07-19T12:15:52.000Z
from django.db import models from django.contrib.auth import get_user_model from django.db.models.deletion import DO_NOTHING User = get_user_model() # Create your models here. class Message(models.Model): id = models.BigAutoField(primary_key=True) initiated_by = models.ForeignKey(User, on_delete=DO_NOTHING, b...
34.25
78
0.788321
7052b592186ce90ac9ede26c6b8d3fc11ce5c40f
5,142
py
Python
CondTools/Ecal/test/tools/inspectEcal.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CondTools/Ecal/test/tools/inspectEcal.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CondTools/Ecal/test/tools/inspectEcal.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#! /usr/bin/env python from __future__ import print_function import os,sys, DLFCN,getopt sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) from CondCore.Utilities import iovInspector as inspect from pluginCondDBPyInterface import * import pluginCondDBPyInterface as CondDB from ROOT import TCanvas,TH1F, TH2F,TFile...
25.455446
156
0.508751
1f7006bd3b5a6d1addef7364850c8a6336d4d5f8
1,085
py
Python
scripts/speech/audio-features-cat.py
zhrlove/seq2seq_attention_1
6535820c9381467508ba8dfeb8971173b3998510
[ "Apache-2.0" ]
1
2019-01-02T15:57:32.000Z
2019-01-02T15:57:32.000Z
scripts/speech/audio-features-cat.py
zhrlove/seq2seq_attention_1
6535820c9381467508ba8dfeb8971173b3998510
[ "Apache-2.0" ]
null
null
null
scripts/speech/audio-features-cat.py
zhrlove/seq2seq_attention_1
6535820c9381467508ba8dfeb8971173b3998510
[ "Apache-2.0" ]
2
2020-08-02T18:28:54.000Z
2021-07-30T07:28:40.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import struct import argparse parser = argparse.ArgumentParser() parser.add_argument('inputs', nargs='+') parser.add_argument('output') args = parser.parse_args() with open(args.output, 'wb') as output_file: lines = 0 dim = None for filename in args.inputs: ...
29.324324
68
0.581567
5bc5d289b252759bc894df219be54dfcc74df5c5
2,389
py
Python
annoyed-alligators/socl_media/urls.py
nishithshowri006/summer-code-jam-2020
a38a7c9c5e2578a803e18640a10c7d4ab96753e6
[ "MIT" ]
null
null
null
annoyed-alligators/socl_media/urls.py
nishithshowri006/summer-code-jam-2020
a38a7c9c5e2578a803e18640a10c7d4ab96753e6
[ "MIT" ]
null
null
null
annoyed-alligators/socl_media/urls.py
nishithshowri006/summer-code-jam-2020
a38a7c9c5e2578a803e18640a10c7d4ab96753e6
[ "MIT" ]
1
2021-07-10T14:23:55.000Z
2021-07-10T14:23:55.000Z
"""socl_media URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
45.942308
77
0.716199
3a480926e9a613c3913c9f6812668572b750cae7
5,871
py
Python
pyscisci/datasource/readwrite.py
kishorevasan/pyscisci
f067fa2c9feba457042aa86546270d81a4844e7e
[ "MIT" ]
null
null
null
pyscisci/datasource/readwrite.py
kishorevasan/pyscisci
f067fa2c9feba457042aa86546270d81a4844e7e
[ "MIT" ]
null
null
null
pyscisci/datasource/readwrite.py
kishorevasan/pyscisci
f067fa2c9feba457042aa86546270d81a4844e7e
[ "MIT" ]
null
null
null
import os import sys import pandas as pd import numpy as np from unidecode import unidecode import html # determine if we are loading from a jupyter notebook (to make pretty progress bars) if 'ipykernel' in sys.modules: from tqdm.notebook import tqdm else: from tqdm import tqdm from pyscisci.utils import is...
32.436464
151
0.654744
84da9ccbf194d3b94b1df994e24d7f640e48f2b2
160
py
Python
examples/models/create_supervised_opf.py
gugarosa/opfython
19b467a92d85c7c26d231efec770645096827b4e
[ "Apache-2.0" ]
26
2018-04-24T20:16:18.000Z
2022-03-09T14:03:28.000Z
examples/models/create_supervised_opf.py
gugarosa/opfython
19b467a92d85c7c26d231efec770645096827b4e
[ "Apache-2.0" ]
4
2020-12-26T14:57:18.000Z
2022-03-30T02:34:18.000Z
examples/models/create_supervised_opf.py
gugarosa/opfython
19b467a92d85c7c26d231efec770645096827b4e
[ "Apache-2.0" ]
16
2019-05-20T15:41:56.000Z
2022-03-23T17:59:53.000Z
from opfython.models import SupervisedOPF # Creates a SupervisedOPF instance opf = SupervisedOPF(distance='log_squared_euclidean', pre_computed_distance=None)
32
81
0.85
654b8fd60ba8f7734cf55bc1951fc3401b19d545
6,159
py
Python
jyotisha/custom_transliteration.py
vedatemple/jyotisha
02ff8530c567ad534905300d63b17da177e90226
[ "MIT" ]
null
null
null
jyotisha/custom_transliteration.py
vedatemple/jyotisha
02ff8530c567ad534905300d63b17da177e90226
[ "MIT" ]
null
null
null
jyotisha/custom_transliteration.py
vedatemple/jyotisha
02ff8530c567ad534905300d63b17da177e90226
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import re import swisseph as swe import sys from math import floor from indic_transliteration import xsanscript as sanscript import logging logging.basicConfig( level=logging.DEBUG, format="%(levelname)s: %(asctime)s {%(filename)s:%(lineno)d}: %(message)s " ) de...
29.753623
142
0.524436
b934ce455e4d77c9d7a39876a369462839e6ae20
2,586
py
Python
housepricesadv/data/make_dataset.py
chritter/housepricesadv
b1d17a7aa962855c34288874aaedb1abc7f7f58d
[ "MIT" ]
null
null
null
housepricesadv/data/make_dataset.py
chritter/housepricesadv
b1d17a7aa962855c34288874aaedb1abc7f7f58d
[ "MIT" ]
null
null
null
housepricesadv/data/make_dataset.py
chritter/housepricesadv
b1d17a7aa962855c34288874aaedb1abc7f7f58d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from pathlib import Path import click from dotenv import find_dotenv, load_dotenv from sklearn import model_selection import pandas as pd def create_fold_file(file_in, file_out, n_splits=5, stratify=None): """ takes training file (e.g. train.csv) and produces new file ...
28.733333
79
0.656226
04e18a5cb48b4a3d29f52f04951c0fde0d43df33
4,780
py
Python
schemas/data.py
CIMAC-CIDC/cidc-ingestion-api
1877907119efd30c7698ecc7c5da84f877ba02d7
[ "MIT" ]
null
null
null
schemas/data.py
CIMAC-CIDC/cidc-ingestion-api
1877907119efd30c7698ecc7c5da84f877ba02d7
[ "MIT" ]
26
2019-01-30T16:13:42.000Z
2019-05-28T19:58:41.000Z
schemas/data.py
CIMAC-CIDC/cidc-ingestion-api
1877907119efd30c7698ecc7c5da84f877ba02d7
[ "MIT" ]
null
null
null
""" Data schema, each record represents a file in a google bucket. """ from schemas.fastq_schema import FASTQ_SCHEMA DATA = { 'public_methods': [], 'resource_methods': ['GET'], 'item_methods': ['GET'], 'allowed_roles': ['admin', 'user', 'uploader', 'system'], 'allowed_item_roles': ['admin', 'user'...
26.120219
78
0.347908
4aa1820359d1429c99b74230f41f07ac6c48b4ec
5,448
py
Python
tests/unit/test_parse.py
benknoble/Coqtail
c4d5c58771dd854671bd26b94693ecc1ffa21e39
[ "MIT" ]
null
null
null
tests/unit/test_parse.py
benknoble/Coqtail
c4d5c58771dd854671bd26b94693ecc1ffa21e39
[ "MIT" ]
null
null
null
tests/unit/test_parse.py
benknoble/Coqtail
c4d5c58771dd854671bd26b94693ecc1ffa21e39
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- # Author: Wolf Honore """Sentence parsing unit tests.""" from __future__ import absolute_import, division, print_function import pytest from coqtail import NoDotError, UnmatchedError, _get_message_range, _strip_comments # Test Values # tests = ( # Valid tests, no offset ("word", ["A."...
38.914286
83
0.449706
d8d33fcdd9864a2e17f3d6cc2ac72cb64d4bcffb
17,664
py
Python
benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/11-sender_receiver_14.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/11-sender_receiver_14.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/11-sender_receiver_14.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
38.907489
89
0.573143
272d33d736943b6520b0411896ffec62d09a0b7a
45,757
py
Python
eventsourcing/domain.py
johnbywater/eventsourcing
83ec6aea90c3ffaf5021119c741c6b97361c4ea1
[ "BSD-3-Clause" ]
972
2015-09-16T02:03:44.000Z
2021-10-13T15:10:38.000Z
eventsourcing/domain.py
johnbywater/eventsourcing
83ec6aea90c3ffaf5021119c741c6b97361c4ea1
[ "BSD-3-Clause" ]
207
2015-10-13T15:46:29.000Z
2021-10-08T07:23:40.000Z
eventsourcing/domain.py
johnbywater/eventsourcing
83ec6aea90c3ffaf5021119c741c6b97361c4ea1
[ "BSD-3-Clause" ]
117
2015-10-13T13:24:56.000Z
2021-10-12T07:19:47.000Z
import inspect import os from abc import ABC, ABCMeta from dataclasses import dataclass from datetime import datetime, tzinfo from types import FunctionType, WrapperDescriptorType from typing import ( Any, Callable, Dict, Generic, Iterable, List, Optional, Set, Tuple, Type, T...
35.498061
88
0.61324
baa310ddd6f096314432716e92c19da3f423cffc
60,054
py
Python
pandas/tests/frame/methods/test_replace.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
1
2020-11-15T11:21:04.000Z
2020-11-15T11:21:04.000Z
pandas/tests/frame/methods/test_replace.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/methods/test_replace.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime from io import StringIO import re from typing import Dict, List, Union import numpy as np import pytest import pandas as pd from pandas import DataFrame, Index, Series, Timestamp, date_range import pandas._testing as tm @pytest.fixture def mix_ab() -> Dict[str, List[Union[int, str]]]: ...
36.730275
88
0.498968
c6200be3c56d1f1791deae6ff1ffdb2adc482e72
3,457
py
Python
src/python/pants/backend/python/pipenv_requirements.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/pipenv_requirements.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/pipenv_requirements.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from json import load from pathlib import Path from typing import Iterable, Mapping, Optional from pkg_resources import Requirement from pants.base.build_environment import get_buildroot...
38.842697
101
0.641307
c4974b063857b68e63d4627c6f8a99f6fcbd033e
6,558
py
Python
SciDataTool/Classes/Norm_ref.py
enjoyneer87/SciDataTool
37ddc4071f1edb1270ee03e43595c3f943fb9bd8
[ "Apache-2.0" ]
null
null
null
SciDataTool/Classes/Norm_ref.py
enjoyneer87/SciDataTool
37ddc4071f1edb1270ee03e43595c3f943fb9bd8
[ "Apache-2.0" ]
null
null
null
SciDataTool/Classes/Norm_ref.py
enjoyneer87/SciDataTool
37ddc4071f1edb1270ee03e43595c3f943fb9bd8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # File generated according to Generator/ClassesRef/Norm_ref.csv # WARNING! All changes made in this file will be lost! """Method code available at https://github.com/Eomys/SciDataTool/tree/master/SciDataTool/Methods//Norm_ref """ from os import linesep from sys import getsizeof from ._...
35.258065
107
0.597743
2b986fee48ef724eb923baaaa774d85889478d02
153
py
Python
CHCHCL.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
2
2021-07-26T03:32:24.000Z
2021-07-31T02:32:14.000Z
CHCHCL.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
null
null
null
CHCHCL.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
1
2021-07-14T17:45:33.000Z
2021-07-14T17:45:33.000Z
# https://www.codechef.com/problems/CHCHCL for T in range(int(input())): n,m=map(int,input().split()) print("Yes") if(n*m%2==0) else print("No")
30.6
46
0.620915
a36eb31619b5aef927e32c1f88596ef850c938d5
13,513
py
Python
sphinx/ext/autosummary/generate.py
merwok-forks/sphinx
b7cada236f765003a73ab5dca48f975d54c0c298
[ "BSD-2-Clause" ]
null
null
null
sphinx/ext/autosummary/generate.py
merwok-forks/sphinx
b7cada236f765003a73ab5dca48f975d54c0c298
[ "BSD-2-Clause" ]
null
null
null
sphinx/ext/autosummary/generate.py
merwok-forks/sphinx
b7cada236f765003a73ab5dca48f975d54c0c298
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.ext.autosummary.generate ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Usable as a library or script to generate automatic RST source files for items referred to in autosummary:: directives. Each generated RST file contains a single auto*:: directive which extracts the doc...
37.123626
114
0.577962
270f8d2368ef1ec1d66b4b1d096d66f743620362
6,613
py
Python
angr/analyses/cfg/indirect_jump_resolvers/mips_elf_fast.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
angr/analyses/cfg/indirect_jump_resolvers/mips_elf_fast.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
angr/analyses/cfg/indirect_jump_resolvers/mips_elf_fast.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
import logging import pyvex import archinfo from .... import options, BP_BEFORE from ....blade import Blade from ....annocfg import AnnotatedCFG from ....exploration_techniques import Slicecutor from .resolver import IndirectJumpResolver l = logging.getLogger(name=__name__) class OverwriteTmpValueCallback: ...
43.222222
133
0.553909
907fe77f7a1362a5ad723c5b0dadaf065b6a3bfb
562
py
Python
inventories/migrations/0025_auto_20200602_1821.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
inventories/migrations/0025_auto_20200602_1821.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
7
2021-03-19T03:09:53.000Z
2022-01-13T02:48:44.000Z
inventories/migrations/0025_auto_20200602_1821.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-02 18:21 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('digital_books', '0008_digital_book_rating'), ('inventories', '0024_auto_20200602_1450'), ] operations = [ ...
26.761905
125
0.660142
0c9f5aa187e4da721d1293488c5624083106b2f9
803
py
Python
ProgettiHWSW/api.py
ArdaSeremet/progettihwsw
565d1fb35d88d3e7c272c03b8a190231179cce74
[ "MIT" ]
1
2020-08-28T21:46:12.000Z
2020-08-28T21:46:12.000Z
ProgettiHWSW/api.py
ArdaSeremet/progettihwsw
565d1fb35d88d3e7c272c03b8a190231179cce74
[ "MIT" ]
null
null
null
ProgettiHWSW/api.py
ArdaSeremet/progettihwsw
565d1fb35d88d3e7c272c03b8a190231179cce74
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Arda Seremet <ardaseremet@outlook.com> import aiohttp import async_timeout from asyncio import TimeoutError class API: """Class to interact with the API of ProgettiHWSW boards.""" def __init__(self, ip: str): """Initialize the API.""" self.ip = ip async def request(s...
28.678571
79
0.596513
713b7f3e57676d34a8da9bfc4eb05c205744f2f1
1,007
py
Python
infinity/apps/infinite_redis/manager.py
ra101/Django-Infinity
9fd17c3c27e1d9f4c1796007b7dc053857edd294
[ "MIT" ]
null
null
null
infinity/apps/infinite_redis/manager.py
ra101/Django-Infinity
9fd17c3c27e1d9f4c1796007b7dc053857edd294
[ "MIT" ]
null
null
null
infinity/apps/infinite_redis/manager.py
ra101/Django-Infinity
9fd17c3c27e1d9f4c1796007b7dc053857edd294
[ "MIT" ]
null
null
null
import redis from django.conf import settings from django.db.models.manager import BaseManager from apps.infinite_redis.query import RedisQuerySet # Redis DB redis_ins = redis.StrictRedis( host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=0, password=settings.REDIS_PASSWORD, ) class RedisModel...
25.175
77
0.691162
56967a27884fdbc2a5fdcd117536785cb24d59ef
1,711
py
Python
app.py
minggli/mnist-dcgan
4315776c79745b0578b3601258d539821779dce1
[ "MIT" ]
4
2018-11-22T09:44:35.000Z
2020-09-21T07:12:04.000Z
app.py
minggli/mnist-dcgan
4315776c79745b0578b3601258d539821779dce1
[ "MIT" ]
19
2019-06-01T18:40:26.000Z
2022-03-11T23:13:33.000Z
app.py
minggli/mnist-dcgan
4315776c79745b0578b3601258d539821779dce1
[ "MIT" ]
1
2019-05-23T02:00:51.000Z
2019-05-23T02:00:51.000Z
#!/usr/bin/env python """ app flask app serving external client calls. """ import logging from random import randint from flask import Flask from flask_restplus import Api, Namespace, Resource from helper import _validate_integer from serving import grpc_generate from config import APP_CONFIG logger = logging.getLo...
29
77
0.694915
eca8f8a33b98426ff2cb4a71dbc4e040dd68b439
1,017
py
Python
2015/day05/python/test_part1.py
jmkacz/practice-advent-of-code
c06f474576e91ed0778c8a30a51bad848a602eb6
[ "MIT" ]
null
null
null
2015/day05/python/test_part1.py
jmkacz/practice-advent-of-code
c06f474576e91ed0778c8a30a51bad848a602eb6
[ "MIT" ]
null
null
null
2015/day05/python/test_part1.py
jmkacz/practice-advent-of-code
c06f474576e91ed0778c8a30a51bad848a602eb6
[ "MIT" ]
null
null
null
from part1 import compute_answer def test_compute_answer_sample_1(): lines = ["ugknbfddgicrmopn"] expected = 1 actual = compute_answer(lines) assert actual == expected def test_compute_answer_sample_2(): lines = ["aaa"] expected = 1 actual = compute_answer(lines) assert actual == exp...
22.108696
61
0.684366
25d23dca41f3848c0acde06b08cf5574d38495b0
1,505
py
Python
setup.py
VENULLLC/updater4pyi
8d55dd51160ab7c76ebf0bccffab8293668074b3
[ "BSD-2-Clause" ]
null
null
null
setup.py
VENULLLC/updater4pyi
8d55dd51160ab7c76ebf0bccffab8293668074b3
[ "BSD-2-Clause" ]
null
null
null
setup.py
VENULLLC/updater4pyi
8d55dd51160ab7c76ebf0bccffab8293668074b3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os import os.path #from setuptools import setup from setuptools import setup import updater4pyi.upd_version def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='updater4py...
35.833333
114
0.630565
be57a9377780dcc62681525cf4cbfef45857ce03
1,296
py
Python
dataactcore/scripts/database_setup.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactcore/scripts/database_setup.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
3
2021-08-22T11:47:45.000Z
2022-03-29T22:06:49.000Z
dataactcore/scripts/database_setup.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
import sqlalchemy_utils import logging from dataactcore.config import ALEMBIC_PATH, MIGRATION_PATH from alembic.config import Config from alembic import command from sqlalchemy.exc import ProgrammingError from dataactcore.interfaces.db import db_uri def create_database(db_name): """Create specified database if it...
33.230769
72
0.722222
13769a1470b344343e6028fda1a9aa7c060b8fc0
219
py
Python
Spotkanie 3/tr_01.py
abixadamj/lekcja-enter-przyklady
4f23ee32a139e955f992b727ad86c6effb87a6d6
[ "MIT" ]
null
null
null
Spotkanie 3/tr_01.py
abixadamj/lekcja-enter-przyklady
4f23ee32a139e955f992b727ad86c6effb87a6d6
[ "MIT" ]
null
null
null
Spotkanie 3/tr_01.py
abixadamj/lekcja-enter-przyklady
4f23ee32a139e955f992b727ad86c6effb87a6d6
[ "MIT" ]
null
null
null
width = 5.3 height = 3.67 triangle_area = (width * height) / 2 print("Pole trójkąta wynosi {triangle_area} cm^2") print(f"Pole trójkąta wynosi {triangle_area} cm^2") print("Pole trójkąta wynosi", triangle_area, "cm^2")
31.285714
52
0.726027
69eccf7fc67f3d44635e4245ed3700455444ea39
11,546
py
Python
google/cloud/dialogflowcx_v3beta1/types/security_settings.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/types/security_settings.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/types/security_settings.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
40.798587
143
0.67911
01d252b4fd98b46982c886e8e0d350121739c6d9
6,079
py
Python
hwp_9/Les_9_1.py
drednout5786/Python-UII
2c3ea3884dfdc9fbb974e515b9736207f18bd1f4
[ "MIT" ]
null
null
null
hwp_9/Les_9_1.py
drednout5786/Python-UII
2c3ea3884dfdc9fbb974e515b9736207f18bd1f4
[ "MIT" ]
1
2019-12-19T11:22:12.000Z
2019-12-19T11:22:12.000Z
hwp_9/Les_9_1.py
drednout5786/Python-UII
2c3ea3884dfdc9fbb974e515b9736207f18bd1f4
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from statsmodels.stats.weightstats import zconfint from scipy import stats from statistics import mode class EBM: # Доказа́тельная медици́на, англ. evidence-based medicine (EBM) ''' Анализ одной переменной. ''' def __init__(self, file, p_val): # Инициализация ...
54.276786
160
0.598454
1c52168f5a1830aeb1076b8be3de36d36b620de3
9,769
py
Python
Pyrado/scripts/hyperparam_optimization/hopt_qq-su_simopt-cem.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/scripts/hyperparam_optimization/hopt_qq-su_simopt-cem.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/scripts/hyperparam_optimization/hopt_qq-su_simopt-cem.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
1
2020-11-24T15:25:26.000Z
2020-11-24T15:25:26.000Z
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
43.035242
116
0.713481
88aba2aa01535de69744892927df030d6e4380c9
2,725
py
Python
tools/perf/contrib/vr_benchmarks/webvr_sample_pages.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/perf/contrib/vr_benchmarks/webvr_sample_pages.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/perf/contrib/vr_benchmarks/webvr_sample_pages.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from contrib.vr_benchmarks.vr_sample_page import VrSamplePage from contrib.vr_benchmarks.vr_story_set import VrStorySet class WebVrSamplePage(VrSamplePage)...
39.492754
80
0.711927
144ea82b1e44b223ad52714bb717b95923eb1802
181
py
Python
workbench/expenses/apps.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
15
2020-09-02T22:17:34.000Z
2022-02-01T20:09:10.000Z
workbench/expenses/apps.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
18
2020-01-08T15:28:26.000Z
2022-02-28T02:46:41.000Z
workbench/expenses/apps.py
yoshson/workbench
701558cac3357cd82e4dc99f0fefed12ee81ddc5
[ "MIT" ]
8
2020-09-29T08:00:24.000Z
2022-01-16T11:58:19.000Z
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class Config(AppConfig): name = "workbench.expenses" verbose_name = _("expenses")
22.625
54
0.762431
2e18e41f0b3b97a27c48f4a70a834b94b867381f
629
py
Python
proxyclient/hv/trace_gpio.py
phire/m1n1
41f0874f9999d2ac95ef5418dfae4fdd42cdc507
[ "MIT" ]
1,604
2021-01-14T19:04:59.000Z
2022-03-31T18:34:16.000Z
proxyclient/hv/trace_gpio.py
stvhay/asahilinux-m1n1
bad788e67e9f4da4bfc805415c8dd5726decb7df
[ "MIT" ]
105
2021-01-15T03:52:27.000Z
2022-03-30T22:16:52.000Z
proxyclient/hv/trace_gpio.py
stvhay/asahilinux-m1n1
bad788e67e9f4da4bfc805415c8dd5726decb7df
[ "MIT" ]
96
2021-01-14T21:13:53.000Z
2022-03-31T12:14:14.000Z
# SPDX-License-Identifier: MIT from m1n1.trace.gpio import GPIOTracer #trace_device("/arm-io/gpio", True) # trace gpio interrups, useful to follow the cascaded interrupts aic_phandle = getattr(hv.adt["/arm-io/aic"], "AAPL,phandle") try: node = hv.adt["/arm-io/gpio0"] path = "/arm-io/gpio0" except: node =...
27.347826
64
0.693164
bd3096bd22b278ec6095c72b869da29f87b6cefe
668
py
Python
backend/manage.py
dpouris/chore-battle
12284cc8d6566bbae368f8257f2a022d924deb71
[ "RSA-MD" ]
1
2022-03-26T17:40:16.000Z
2022-03-26T17:40:16.000Z
backend/manage.py
dpouris/chore-battle
12284cc8d6566bbae368f8257f2a022d924deb71
[ "RSA-MD" ]
null
null
null
backend/manage.py
dpouris/chore-battle
12284cc8d6566bbae368f8257f2a022d924deb71
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'chore_battle.settings') try: from django.core.management import execute_from_command_line except...
29.043478
76
0.681138
db742602a5cac6120aa55270d550a095efee8d81
22,148
py
Python
sonnet/python/modules/basic_rnn.py
ishandutta2007/sonnet
417a5bb73e579963728e3f9b40ad583ac014601a
[ "Apache-2.0" ]
345
2017-08-23T13:48:50.000Z
2022-03-17T05:43:34.000Z
sonnet/python/modules/basic_rnn.py
ishandutta2007/sonnet
417a5bb73e579963728e3f9b40ad583ac014601a
[ "Apache-2.0" ]
8
2017-09-30T15:01:23.000Z
2019-12-18T08:46:08.000Z
sonnet/python/modules/basic_rnn.py
ishandutta2007/sonnet
417a5bb73e579963728e3f9b40ad583ac014601a
[ "Apache-2.0" ]
224
2017-08-31T01:10:55.000Z
2022-03-09T06:14:12.000Z
# Copyright 2017 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
40.489945
80
0.700966
56d13b6029458edef06857a73013fd6757dafe1c
532
py
Python
melodb/loggers/ConsoleLogger.py
omarboukhris/melodb
043907857cd7a73857d8d9b06be0a2282f740253
[ "BSL-1.0" ]
null
null
null
melodb/loggers/ConsoleLogger.py
omarboukhris/melodb
043907857cd7a73857d8d9b06be0a2282f740253
[ "BSL-1.0" ]
null
null
null
melodb/loggers/ConsoleLogger.py
omarboukhris/melodb
043907857cd7a73857d8d9b06be0a2282f740253
[ "BSL-1.0" ]
null
null
null
from melodb.loggers.ILogger import ILogger from datetime import datetime class ConsoleLogger(ILogger): def __init__(self, component: str): super(ConsoleLogger, self).__init__(component) def info(self, log_message: str): print( f"INFO [{datetime.now()}] [{self.component}]: {log_message}" ) def warn(self,...
23.130435
64
0.68797
4bc64c83cb67b748c8356c55f47d67b161788b67
465
py
Python
igem_tuebingen_website/handlers/errors.py
blue1stone/igem_tuebingen_website
f0fee8d1d92459b17892fbeed1cab8fbc714316f
[ "MIT" ]
null
null
null
igem_tuebingen_website/handlers/errors.py
blue1stone/igem_tuebingen_website
f0fee8d1d92459b17892fbeed1cab8fbc714316f
[ "MIT" ]
null
null
null
igem_tuebingen_website/handlers/errors.py
blue1stone/igem_tuebingen_website
f0fee8d1d92459b17892fbeed1cab8fbc714316f
[ "MIT" ]
null
null
null
from flask import render_template from ..app import app @app.errorhandler(404) def page_not_found(error): return render_template('errors/404.html'), 404 @app.errorhandler(500) def internal_error(error): return render_template('errors/500.html'), 500 @app.errorhandler(403) def access_forbidden(error): ...
20.217391
50
0.754839
a59846e40600c6672e45266592c70a13e5b9d24d
1,497
py
Python
script/migrations/0001_initial.py
satamame/pscweb2
f15f6e2594a7339e4e964f2cb4d7363743b8cbd6
[ "MIT" ]
null
null
null
script/migrations/0001_initial.py
satamame/pscweb2
f15f6e2594a7339e4e964f2cb4d7363743b8cbd6
[ "MIT" ]
null
null
null
script/migrations/0001_initial.py
satamame/pscweb2
f15f6e2594a7339e4e964f2cb4d7363743b8cbd6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2019-12-29 04:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
41.583333
139
0.607214
477ec0c0f1488de6dbcb27b0146cfbe0319b079c
4,158
py
Python
verify-certificates.py
nanobot248/ssltools
7a940ac201559386793996eacad32e8e6dc9405e
[ "MIT" ]
null
null
null
verify-certificates.py
nanobot248/ssltools
7a940ac201559386793996eacad32e8e6dc9405e
[ "MIT" ]
null
null
null
verify-certificates.py
nanobot248/ssltools
7a940ac201559386793996eacad32e8e6dc9405e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import OpenSSL.crypto as crypto from ssltools.certificates import verify_certificate, find_certificates, load_certificate_store, certificate_to_dict import json from ssltools.json import to_json import argparse from jsonpointer import resolve_pointer from jsonpath_rw import jsonpath, p...
38.146789
116
0.633237
e3da1d0e75cf32b6d5100db02234098dfa0fd253
163
py
Python
examples/docs_snippets/docs_snippets/guides/dagster/dagster_type_factories/schema_execution.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2021-01-31T19:16:29.000Z
2021-01-31T19:16:29.000Z
examples/docs_snippets/docs_snippets/guides/dagster/dagster_type_factories/schema_execution.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/guides/dagster/dagster_type_factories/schema_execution.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2019-09-11T03:02:27.000Z
2019-09-11T03:02:27.000Z
from .schema import df, trips_schema trips_schema.validate(df) # => SchemaError: non-nullable series 'end_time' contains null values: # => 22 NaT # => 43 NaT
23.285714
70
0.711656
7ae193bf34a54e31588a5d9c60c7a4fdf2ec54e8
3,947
py
Python
sample/collect/service_imp/model/model_save.py
SelfDown/omnis-collect3
84f16ed108e4295719cf943b573aeb4ae3fe9c75
[ "MIT" ]
null
null
null
sample/collect/service_imp/model/model_save.py
SelfDown/omnis-collect3
84f16ed108e4295719cf943b573aeb4ae3fe9c75
[ "MIT" ]
null
null
null
sample/collect/service_imp/model/model_save.py
SelfDown/omnis-collect3
84f16ed108e4295719cf943b573aeb4ae3fe9c75
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time: 2021/7/14 16:32 @Author: zzhang zzhang@cenboomh.com @File: ModelUpdate.py @desc: """ from collect.collect_service import CollectService from collect.utils.collect_utils import get_safe_data class ModelSaveService(CollectService): def __init__(self, op_user): CollectServi...
35.881818
99
0.587281
aaee56c85ac1ba40fa35d33cfa62e97af249a118
203
py
Python
shortcodes/templatetags/shortcodes_filters.py
ONWT/django-shortcodes
132082384902daa814a41695a679b5436ea14e57
[ "MIT" ]
null
null
null
shortcodes/templatetags/shortcodes_filters.py
ONWT/django-shortcodes
132082384902daa814a41695a679b5436ea14e57
[ "MIT" ]
null
null
null
shortcodes/templatetags/shortcodes_filters.py
ONWT/django-shortcodes
132082384902daa814a41695a679b5436ea14e57
[ "MIT" ]
null
null
null
from shortcodes import parser from django import template register = template.Library() def shortcodes_replace(value): return parser.parse(value) register.filter('shortcodes', shortcodes_replace)
20.3
49
0.802956
3b225a65fbbadb352361ee40a5c3ac9fad1cb4f4
1,193
py
Python
Awards/urls.py
olesigilai/Awards
8404517249c34f65cd2ce49fc2b13654056047d0
[ "MIT", "Unlicense" ]
null
null
null
Awards/urls.py
olesigilai/Awards
8404517249c34f65cd2ce49fc2b13654056047d0
[ "MIT", "Unlicense" ]
1
2021-04-06T19:27:04.000Z
2021-04-06T19:27:04.000Z
Awards/urls.py
olesigilai/Awards
8404517249c34f65cd2ce49fc2b13654056047d0
[ "MIT", "Unlicense" ]
null
null
null
"""Awards URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
36.151515
77
0.70746
fc5394d88fb769d2d0b3af261ecb7a175871aad9
4,628
py
Python
tmp/quadrature.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
tmp/quadrature.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
tmp/quadrature.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
import numpy as np import logging logger = logging.getLogger(__name__) # Finding the sim root directory import sys from pathlib import Path cwd = Path.cwd() for dirname in tuple(cwd.parents): if dirname.name == '3D-CG': sim_root_dir = dirname continue sys.path.append(str(sim_root_dir.joinpath('util...
44.932039
281
0.613872
1d8dad04a98076083cfc1f8881e1f7096f5ed0b3
1,260
py
Python
Josh/Clustering/FinalCluster.py
aco8ogren/Tentin-Quarantino
08b494f5deb2c33e3bb5981135c780b0a34d5557
[ "MIT" ]
null
null
null
Josh/Clustering/FinalCluster.py
aco8ogren/Tentin-Quarantino
08b494f5deb2c33e3bb5981135c780b0a34d5557
[ "MIT" ]
null
null
null
Josh/Clustering/FinalCluster.py
aco8ogren/Tentin-Quarantino
08b494f5deb2c33e3bb5981135c780b0a34d5557
[ "MIT" ]
null
null
null
#%% import pickle import numpy as np import matplotlib.pyplot as plt import git import sys sys.path.append('Josh/Clustering') from kMeansClustering import Kmeans import time import os import pandas as pd repo=git.Repo('.', search_parent_directories=True) cwd=repo.working_dir os.chdir(cwd) File=open('Josh/Processing/P...
25.2
79
0.693651
f98a750d4dde92aefbeacf3b37a43cfa5744e9cc
166
py
Python
blog/blog_app/forms.py
nigel-otieno/assessment_reinhardt
2748560424ecccea996bff3ef8063195b580477f
[ "BSD-3-Clause" ]
null
null
null
blog/blog_app/forms.py
nigel-otieno/assessment_reinhardt
2748560424ecccea996bff3ef8063195b580477f
[ "BSD-3-Clause" ]
null
null
null
blog/blog_app/forms.py
nigel-otieno/assessment_reinhardt
2748560424ecccea996bff3ef8063195b580477f
[ "BSD-3-Clause" ]
null
null
null
from django import forms from .models import Comment class CommentForm(forms.ModelForm): class Meta: model = Comment fields = ['name', 'body']
16.6
35
0.656627
df2f76fadbcf08962ecd1f8ccddbe69fe8658705
799
py
Python
Lib/corpuscrawler/crawl_kup.py
cash/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
95
2019-06-13T23:34:21.000Z
2022-03-12T05:22:49.000Z
Lib/corpuscrawler/crawl_kup.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
31
2019-06-02T18:56:53.000Z
2021-08-10T20:16:02.000Z
Lib/corpuscrawler/crawl_kup.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
35
2019-06-18T08:26:24.000Z
2022-01-11T13:59:40.000Z
# coding: utf-8 # Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
34.73913
74
0.764706
472ba03d8d98666bce6f74cc0195d9bf067b0e19
205
py
Python
socialregistration/contrib/instagram/templatetags/instagram.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
63
2015-01-27T16:52:03.000Z
2021-08-29T04:23:51.000Z
socialregistration/contrib/instagram/templatetags/instagram.py
jairtrejo/django-socialregistration
c52b1db00bb7cfed2e0a44e587c3da6d2f5499c4
[ "MIT" ]
3
2016-05-26T07:46:53.000Z
2022-02-16T15:25:16.000Z
socialregistration/contrib/instagram/templatetags/instagram.py
jairtrejo/django-socialregistration
c52b1db00bb7cfed2e0a44e587c3da6d2f5499c4
[ "MIT" ]
23
2015-02-02T13:33:46.000Z
2020-10-25T20:02:53.000Z
from django import template from socialregistration.templatetags import button register = template.Library() register.tag('instagram_button', button('socialregistration/instagram/instagram_button.html'))
34.166667
94
0.843902
9c01b22bd1034986a6c9ec40cdb4d111c15ace27
459
py
Python
Compilation/liec_seance-e_files/jeu.py
bk211/fac
9d74875561f60978d2c39af3d5e97605d21c0cc9
[ "MIT" ]
1
2018-11-21T10:56:09.000Z
2018-11-21T10:56:09.000Z
Compilation/liec_seance-e_files/jeu.py
bk211/fac
9d74875561f60978d2c39af3d5e97605d21c0cc9
[ "MIT" ]
null
null
null
Compilation/liec_seance-e_files/jeu.py
bk211/fac
9d74875561f60978d2c39af3d5e97605d21c0cc9
[ "MIT" ]
1
2021-12-04T20:31:36.000Z
2021-12-04T20:31:36.000Z
prng_state = 42 def prng (sup): global prng_state prng_state = (prng_state * 1664525 + 1013904223) % 2**32 return prng_state % sup def jeu (max): print('Le nombre est entre 0 et ' + str(max)) n = prng(max) guess = -1 while guess != n: guess = int(input('Entrez un nombre: ')) ...
21.857143
60
0.544662
efa4a5907ca523b4fb6f6685ee55fb131fbaefd5
10,527
py
Python
test/smoothness_tests.py
Zhi-ChaoZhao/NRSurMemory_7qd4
0f49530e7602f136f99879fbb4c9bb6e2f48cdc0
[ "MIT" ]
null
null
null
test/smoothness_tests.py
Zhi-ChaoZhao/NRSurMemory_7qd4
0f49530e7602f136f99879fbb4c9bb6e2f48cdc0
[ "MIT" ]
null
null
null
test/smoothness_tests.py
Zhi-ChaoZhao/NRSurMemory_7qd4
0f49530e7602f136f99879fbb4c9bb6e2f48cdc0
[ "MIT" ]
1
2021-01-14T06:52:25.000Z
2021-01-14T06:52:25.000Z
import numpy as np import h5py import argparse import os import time import matplotlib.pyplot as P import surfinBH # Number of data points to generate for each 1d plot NUM_PARAMS = 50 # Number of 1d plots to generate per fit NUM_TESTS = 10 # plot settings marker_size=100 marker_size_star=9 label_fontsize = 14 titl...
35.684746
80
0.596181
22850b56d63e294a5c6e53cea630fe67e6f15fb6
18,045
py
Python
etc/dbus-serialbattery/test_max17853.py
trixing/dbus-serialbattery
4bcbb20b8c27a01426dd41cc8688d11be1bad8ec
[ "MIT" ]
87
2020-09-17T21:10:04.000Z
2022-03-30T08:04:20.000Z
etc/dbus-serialbattery/test_max17853.py
trixing/dbus-serialbattery
4bcbb20b8c27a01426dd41cc8688d11be1bad8ec
[ "MIT" ]
74
2021-02-04T15:14:42.000Z
2022-03-31T22:35:45.000Z
etc/dbus-serialbattery/test_max17853.py
trixing/dbus-serialbattery
4bcbb20b8c27a01426dd41cc8688d11be1bad8ec
[ "MIT" ]
28
2021-02-10T20:46:45.000Z
2022-03-28T10:04:05.000Z
import spidev import time import math from gpiozero import LED def init_spi(): global spi, Q_time ,Q_Batt,Q_B_chg,kWh_dis,kWh_chg,cum_bp_kwh_in,\ cum_bp_kwh_out,Q_B_dis,Q_nom,SOH ,R_shunt,Vt_ref,V_bat_Sum,Ai,Ai_offs,\ Tj,Tbat,bal_stat,bal_stat2,p_genrun,p_charging ,p_loadshed,Fan_run_b, V_Cells,\ Ah_b_max, ...
29.975083
93
0.572569
7f00992e6550727f70e1cc9214bfe048082a3e4e
119
py
Python
Other/IOTest.py
jonieson/pythonDemo
fde358819a43c67044b30b886c9f7dbe840d9563
[ "MIT" ]
1
2017-08-10T08:04:48.000Z
2017-08-10T08:04:48.000Z
Other/IOTest.py
jonieson/pythonDemo
fde358819a43c67044b30b886c9f7dbe840d9563
[ "MIT" ]
null
null
null
Other/IOTest.py
jonieson/pythonDemo
fde358819a43c67044b30b886c9f7dbe840d9563
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- str = raw_input('第一行输入:') print '打印输入的文字:',str str = raw_input("请输入:"); print "你输入的内容是: ", str
19.833333
25
0.605042
ddaedf55861c4643f9c40a3955ffe1300595f709
706
py
Python
tests/plots/colormap.py
ikkisoft/infnoise
3a63b97b0086b24a890b32990b75e812efd2c83f
[ "CC0-1.0" ]
631
2015-01-01T23:35:30.000Z
2022-03-24T16:42:57.000Z
tests/plots/colormap.py
ikkisoft/infnoise
3a63b97b0086b24a890b32990b75e812efd2c83f
[ "CC0-1.0" ]
45
2015-01-20T13:05:59.000Z
2021-11-14T15:24:00.000Z
tests/plots/colormap.py
ikkisoft/infnoise
3a63b97b0086b24a890b32990b75e812efd2c83f
[ "CC0-1.0" ]
83
2015-01-23T14:49:45.000Z
2022-01-06T03:33:53.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import sys from matplotlib import cm if sys.argv[1]: filename=sys.argv[1] else: filename='infnoise.bin' nx = 1000 ny = 1000 data = np.fromfile(open(filename,'rb'), dtype=np.uint8, count=nx*nx) data.resize(nx,ny) plt.xlim(0...
21.393939
69
0.674221
bfeb24dd23387b700defcc82646cd29804c36604
62,591
py
Python
data_process.py
rokosbasilisk/VD-BERT
02240d8bf0652ed38dfb4c6d83f0ab68553a4f4b
[ "MIT" ]
null
null
null
data_process.py
rokosbasilisk/VD-BERT
02240d8bf0652ed38dfb4c6d83f0ab68553a4f4b
[ "MIT" ]
null
null
null
data_process.py
rokosbasilisk/VD-BERT
02240d8bf0652ed38dfb4c6d83f0ab68553a4f4b
[ "MIT" ]
null
null
null
import sys, torch, json, copy, pickle, re, os, numpy as np, pprint as pp, cProfile, pstats, io, traceback, itertools from diff import diff, get_diff, get_next_actions, build_region_specs, dict_to_tuple, is_feasible_next_placement from diff_apps import get_type_distributions from torch.utils.data import Dataset, DataL...
44.900287
545
0.741976
541f7f05c234d3bdfad58258582dc0d3d0f6a3fc
2,936
py
Python
bin/tetris.py
ponte-vecchio/pydisc-code-jam
697dc0e5bf020a0e9d5011d7f94990b0636a55b1
[ "MIT" ]
1
2021-11-07T05:05:09.000Z
2021-11-07T05:05:09.000Z
bin/tetris.py
ponte-vecchio/pydisc-code-jam
697dc0e5bf020a0e9d5011d7f94990b0636a55b1
[ "MIT" ]
8
2021-07-11T10:34:53.000Z
2021-07-17T05:38:09.000Z
bin/tetris.py
ponte-vecchio/pydisc-code-jam
697dc0e5bf020a0e9d5011d7f94990b0636a55b1
[ "MIT" ]
3
2021-07-10T04:40:47.000Z
2021-08-30T19:54:56.000Z
import curses import locale import sys from typing import TYPE_CHECKING, Any, Callable, Dict from play_sounds import play_file as playsound from play_sounds import play_while_running from tetris.core import Game from tetris.exceptions import CollisionError, OutOfBoundsError from tetris.user_interface import UserInterf...
29.36
81
0.695163
729a75d65aa3add25a9c332c4f14cc46f65d7def
712
py
Python
Gram/migrations/0002_auto_20181009_1203.py
Drongo-1/new-ip2
51a9fa5d5d587fe5b3a038156726a45b312acbad
[ "MIT" ]
1
2021-08-16T06:02:38.000Z
2021-08-16T06:02:38.000Z
Gram/migrations/0002_auto_20181009_1203.py
danalvin/Django-IP2
3c0a6e4d2de9d4e027b11f2873ed69aba4509fc7
[ "MIT" ]
null
null
null
Gram/migrations/0002_auto_20181009_1203.py
danalvin/Django-IP2
3c0a6e4d2de9d4e027b11f2873ed69aba4509fc7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-10-09 12:03 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Gram', '0001_initial'), ...
26.37037
137
0.634831
f766678adcbb38de107f7ff94b470f5a6c23eb58
604
py
Python
S1/TP5/ex9.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex9.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex9.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
from random import randint ls = [randint(-5, 5) for i in range(3)] print(ls) if ls[0] > ls[1]: ls[0], ls[1] = ls[1], ls[0] if ls[1] > ls[2]: ls[1], ls[2] = ls[2], ls[1] if ls[0] > ls[1]: ls[0], ls[1] = ls[1], ls[0] print(ls) # le code précédent trie une liste de trois éléments def bubbleSort(lis): f...
20.827586
55
0.543046
dfeb749a1bfa898f442d08e5e4e9c3f8e1f767cf
641
py
Python
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_1/3_math_operations/client.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_1/3_math_operations/client.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_1/3_math_operations/client.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
import socket TASKS = [ 'pythagorean 3 4', 'quadratic_equation 1 2 1', 'trapezoid_area 4 5 3', 'parallelogram_area 4 2', '-1 2 4 asdasd', 'pythagorean ', 'quadratic_equation 0 2 1', 'trapezoid_area -4 5 0', 'trapezoid_area 4 asdg', 'trapezoid_area 4', 'parallelogram_area 4 0...
25.64
64
0.605304
85b42b86c120a2df19f8670a29e3427b8d0ce992
665
py
Python
tools/XstreamDL_CLI/extractors/hls/ext/xprogram_date_time.py
wayneclub/Subtitle-Downloader
4ab1e7ab075593d4245867996b0766efc5aa418a
[ "MIT" ]
57
2021-12-05T02:31:51.000Z
2022-03-31T03:36:26.000Z
tools/XstreamDL_CLI/extractors/hls/ext/xprogram_date_time.py
wayneclub/Subtitle-Downloader
4ab1e7ab075593d4245867996b0766efc5aa418a
[ "MIT" ]
25
2021-12-08T09:16:30.000Z
2022-03-31T11:09:10.000Z
tools/XstreamDL_CLI/extractors/hls/ext/xprogram_date_time.py
wayneclub/Subtitle-Downloader
4ab1e7ab075593d4245867996b0766efc5aa418a
[ "MIT" ]
17
2021-12-01T03:11:41.000Z
2022-03-26T15:22:35.000Z
from datetime import datetime from .x import X class XProgramDateTime(X): ''' #EXT-X-PROGRAM-DATE-TIME 第一个分段的绝对时间 - 2019-01-01T00:00:00.000Z ''' def __init__(self): super(XProgramDateTime, self).__init__('#EXT-X-PROGRAM-DATE-TIME') self.program_date_time = None # type: datetime ...
26.6
74
0.58797
06f0aa33d5c8b3f7f88f4324bc4dd3c885cc200f
8,335
py
Python
tensorflow/python/keras/engine/deferred_sequential_test.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/keras/engine/deferred_sequential_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/keras/engine/deferred_sequential_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
28
2020-02-10T07:03:06.000Z
2022-01-12T11:19:20.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.410138
80
0.69958
44af7162175bffc9b365d2a750baf9fd66242a80
1,860
py
Python
openstack/tests/unit/identity/v3/test_endpoint.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/tests/unit/identity/v3/test_endpoint.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/tests/unit/identity/v3/test_endpoint.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
35.09434
75
0.68871
82aff1431b37c5406e48820802f8a341d2a149bf
1,636
py
Python
recipes/crow/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/crow/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/crow/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, tools, CMake from conans.errors import ConanInvalidConfiguration import os class CrowConan(ConanFile): name = "crow" homepage = "https://github.com/ipkn/crow" description = "Crow is C++ microframework for web. (inspired by Python Flask)" topics = ("conan", "web", "microfra...
34.808511
82
0.643643
3aea16818f47ae2a215304a313e749a2c3bc1669
16,249
py
Python
example/apps/test_security/tests/output_request_log.py
druids/django-security
bca889ff1a58378a038a08ca365162d9e3ef3fbf
[ "MIT" ]
9
2019-03-12T12:31:20.000Z
2021-01-22T13:31:36.000Z
example/apps/test_security/tests/output_request_log.py
druids/django-security
bca889ff1a58378a038a08ca365162d9e3ef3fbf
[ "MIT" ]
28
2019-12-05T12:20:49.000Z
2022-03-25T08:15:10.000Z
example/apps/test_security/tests/output_request_log.py
druids/django-security
bca889ff1a58378a038a08ca365162d9e3ef3fbf
[ "MIT" ]
5
2019-07-10T15:29:44.000Z
2021-02-01T12:50:56.000Z
import json import responses from requests.exceptions import ConnectionError from django.test import override_settings from germanium.decorators import data_consumer from germanium.test_cases.client import ClientTestCase from germanium.tools import ( assert_equal, assert_raises, assert_not_in, assert_in, assert_...
45.515406
118
0.591975
6c4e7dd01cdef2526291e5ee9852323ab1b5018f
183
py
Python
yatube/yatube/urls.py
begunko/yatube_project
fe974e52fa97fa1084e7317b9366ec86da27f291
[ "BSD-3-Clause" ]
null
null
null
yatube/yatube/urls.py
begunko/yatube_project
fe974e52fa97fa1084e7317b9366ec86da27f291
[ "BSD-3-Clause" ]
null
null
null
yatube/yatube/urls.py
begunko/yatube_project
fe974e52fa97fa1084e7317b9366ec86da27f291
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path("", include('posts.urls', namespace="posts")), path('admin/', admin.site.urls), ]
22.875
55
0.688525
9e29efaa1466c9716ed219fa9a541d0f9973eb4d
5,829
py
Python
plot_univariate.py
No-Stream/pandas-snippets
f86d3d6844bb181a9ee596cf5d8a61a6edf5a60d
[ "MIT" ]
null
null
null
plot_univariate.py
No-Stream/pandas-snippets
f86d3d6844bb181a9ee596cf5d8a61a6edf5a60d
[ "MIT" ]
null
null
null
plot_univariate.py
No-Stream/pandas-snippets
f86d3d6844bb181a9ee596cf5d8a61a6edf5a60d
[ "MIT" ]
null
null
null
from typing import List from functools import partial import warnings import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from pandas.api.types import is_numeric_dtype from tqdm import tqdm def plot_feature( feat: str, y_col: str = None, # janky, making kwarg for easier functools.partia...
32.932203
96
0.569051
d1ddfbc21b42e46a6414ffd6abd9fef6e97e1d54
2,981
py
Python
test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_configuration.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_configuration.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_configuration.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.861538
125
0.686011
e2c8f7c8e41bd00c139b492bf0d373fb0f5530cb
6,024
py
Python
my_ml/model/random_forest.py
big-c-note/my_ml_from_scratch
7da54282f736b163bb82058b037755bf97c9d7b9
[ "MIT" ]
1
2020-09-20T21:32:21.000Z
2020-09-20T21:32:21.000Z
my_ml/model/random_forest.py
big-c-note/my_ml_from_scratch
7da54282f736b163bb82058b037755bf97c9d7b9
[ "MIT" ]
27
2020-09-20T21:18:48.000Z
2021-07-31T13:02:10.000Z
my_ml/model/random_forest.py
big-c-note/my_ml_from_scratch
7da54282f736b163bb82058b037755bf97c9d7b9
[ "MIT" ]
null
null
null
from typing import List, Optional, Union from multiprocessing import cpu_count import logging import numpy as np import joblib from joblib import Parallel, delayed from tqdm import trange from my_ml.model.decision_tree import DecisionTree log = logging.getLogger(__name__) class RandomForest: def __init__(self,...
39.631579
81
0.613878
218867a81401f6f52ce634a168677108c390bc49
15,800
py
Python
stm32loader.py
usc-ee250-spring2021/zwir1
3510a903ef8952a8deefe4cfb39464b4dc0806ba
[ "MIT" ]
null
null
null
stm32loader.py
usc-ee250-spring2021/zwir1
3510a903ef8952a8deefe4cfb39464b4dc0806ba
[ "MIT" ]
null
null
null
stm32loader.py
usc-ee250-spring2021/zwir1
3510a903ef8952a8deefe4cfb39464b4dc0806ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: sw=4:ts=4:si:et:enc=utf-8 # Author: Ivan A-R <ivan@tuxotronic.org> # Project page: http://tuxotronic.org/wiki/projects/stm32loader # # This file is part of stm32loader. # # stm32loader is free software; you can redistribute it and/or modify it under # the terms of ...
32.244898
113
0.52038
c0d91d00210e877f747e282991a9488de85994af
4,936
py
Python
backend/sqlite.py
relkochta/koreader-sync
49b02812fe555675dc7848dbbd289a282cac5efd
[ "MIT" ]
null
null
null
backend/sqlite.py
relkochta/koreader-sync
49b02812fe555675dc7848dbbd289a282cac5efd
[ "MIT" ]
null
null
null
backend/sqlite.py
relkochta/koreader-sync
49b02812fe555675dc7848dbbd289a282cac5efd
[ "MIT" ]
null
null
null
from backend.common import Document import sqlite3 # SQLite3 backend, stores data in a local .db file class BackendSQLite: # The database location database: str # Errors will be propagated to the object's creator def __init__(self, database: str): # Initialize the database and get a cursor ...
35.768116
116
0.595827
41fb73948c68b263afbd7b08a02ef0ce88b7d126
1,301
py
Python
Models/DCGAN/Discriminator.py
z1xuanchen/datares_GANs
f9a03950bc4ba378e9eebb7cfd07377afd72b53c
[ "MIT" ]
6
2021-04-03T03:21:49.000Z
2022-03-24T07:15:56.000Z
Models/DCGAN/Discriminator.py
z1xuanchen/datares_GANs
f9a03950bc4ba378e9eebb7cfd07377afd72b53c
[ "MIT" ]
1
2021-04-27T15:23:35.000Z
2021-04-27T15:27:31.000Z
Models/DCGAN/Discriminator.py
z1xuanchen/datares_GANs
f9a03950bc4ba378e9eebb7cfd07377afd72b53c
[ "MIT" ]
6
2021-02-15T09:46:48.000Z
2021-11-29T17:14:56.000Z
import torch.nn as nn class Discriminator(nn.Module): def __init__(self, channels_img, features_d): super(Discriminator, self).__init__() self.disc = nn.Sequential( # input: N x channels_img x 64 x 64 nn.Conv2d( channels_img, features_d, kernel_size=4, strid...
32.525
78
0.537279
933f4b73ba67403baa1aca5a194b7778271669ad
1,730
py
Python
elementary.py
chapman-phys220-2018f/cw05-frank-raha
ca52420442fb24a107345993580c1c9b0f25efda
[ "MIT" ]
null
null
null
elementary.py
chapman-phys220-2018f/cw05-frank-raha
ca52420442fb24a107345993580c1c9b0f25efda
[ "MIT" ]
null
null
null
elementary.py
chapman-phys220-2018f/cw05-frank-raha
ca52420442fb24a107345993580c1c9b0f25efda
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #### # Raha and Frank # Email: pirzadeh@chapman.edu # Elementary module for CW 5 # PHYS 220 # 10/1/18 #### import scipy.constants class Particle(object): """Particle is a class that should have 3 initialized variables: Mass(a float), Position(A triplet of floats), M...
30.350877
174
0.631792
7b3adef69524f059195e5f7f20c58d62c9bff670
6,461
py
Python
CreateJiraIssue.py
theluckyteam/sublime-jira
167b32be9b6a358795508247e80cdc6132542276
[ "BSD-3-Clause" ]
null
null
null
CreateJiraIssue.py
theluckyteam/sublime-jira
167b32be9b6a358795508247e80cdc6132542276
[ "BSD-3-Clause" ]
null
null
null
CreateJiraIssue.py
theluckyteam/sublime-jira
167b32be9b6a358795508247e80cdc6132542276
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 import sublime, sublime_plugin import re import types import json import urllib from urllib.error import URLError def parse_issue_stream(stream): # Разбить выражение на строки и понять каким образом его обрабатывать lines = [] parts = stream.split("\n") for part in parts: if par...
32.305
115
0.572822
4f88fcf8afb833ccd478636b1a8686047f70c90c
4,513
py
Python
yepes/utils/phased.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
yepes/utils/phased.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
yepes/utils/phased.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals import base64 import re from django.contrib.messages.storage.base import BaseStorage from django.http import HttpRequest from django.template.base import ( COMMENT_TAG_START, COMMENT_TAG_END, Template, TemplateSyntaxError, ) from django.templ...
30.086667
80
0.666297
acb8fe08b9f8f77c4ecb3e04e4355066b3fc66b8
1,831
py
Python
__pandas/06.py
zlikun-lang/python-data-analysis
66eaa04952e422fa881281dc2244f2984a15e9bf
[ "Apache-2.0" ]
1
2020-05-29T07:43:10.000Z
2020-05-29T07:43:10.000Z
__pandas/06.py
zlikun-lang/python-data-analysis
66eaa04952e422fa881281dc2244f2984a15e9bf
[ "Apache-2.0" ]
null
null
null
__pandas/06.py
zlikun-lang/python-data-analysis
66eaa04952e422fa881281dc2244f2984a15e9bf
[ "Apache-2.0" ]
null
null
null
import numpy as np from pandas import Series, DataFrame # 通过列表构造一个Series,指定其索引,两者数量必须匹配 obj = Series([4.5, 7.2, -5.3, 3.6], index=['a', 'b', 'c', 'd']) # a 4.5 # b 7.2 # c -5.3 # d 3.6 # dtype: float64 print(obj) # 重新索引,缺失项由NaN填充 obj2 = obj.reindex(['a', 'b', 'c', 'm', 'n']) # a 4.5 # b 7.2 # c -5...
19.072917
96
0.523211
7545239b1cb62f89d220091b1ee79e100d00c237
15,175
py
Python
src/m4_accumulating_sequences.py
craannj/12-MoreSequences
df1ca36a0c5d7e66f6bcffcddb86b2ad45dc8cd9
[ "MIT" ]
null
null
null
src/m4_accumulating_sequences.py
craannj/12-MoreSequences
df1ca36a0c5d7e66f6bcffcddb86b2ad45dc8cd9
[ "MIT" ]
null
null
null
src/m4_accumulating_sequences.py
craannj/12-MoreSequences
df1ca36a0c5d7e66f6bcffcddb86b2ad45dc8cd9
[ "MIT" ]
null
null
null
""" This module lets you practice BUILDING-UP a new SEQUENCE, one item at a time, using the ACCUMULATOR pattern. -- We will later see a more efficient way to build-up and/or modify sequences, namely by MUTATING their elements. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark H...
38.810742
79
0.492389