hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7966d559f244ebec1640766f852254c6743b070e
1,525
py
Python
src/run/run_thickness_cloud.py
Charbel199/Oil-Spill-Thickness-Estimation
dd600f6da611461f3b8072389bc34e6285109246
[ "MIT" ]
null
null
null
src/run/run_thickness_cloud.py
Charbel199/Oil-Spill-Thickness-Estimation
dd600f6da611461f3b8072389bc34e6285109246
[ "MIT" ]
null
null
null
src/run/run_thickness_cloud.py
Charbel199/Oil-Spill-Thickness-Estimation
dd600f6da611461f3b8072389bc34e6285109246
[ "MIT" ]
null
null
null
from data.data_loader import DataLoader from visualization import points_cloud from model.nn_model import NNModel # Parameters # ================================================================================================================== FILE_NAME = 'thickness-smallstep_9freqs-variance0.001-' MODEL_NAME = 'WITHO...
37.195122
116
0.640656
7966d58db12588c94bf5631c55a0f50d5b562cb3
3,347
py
Python
update_dns.py
gumlooter/libcloud-dynamic-dns
a16a3bfedce532956ae255c2c6835462780a1792
[ "MIT" ]
1
2021-02-16T06:39:43.000Z
2021-02-16T06:39:43.000Z
update_dns.py
gumlooter/libcloud-dynamic-dns
a16a3bfedce532956ae255c2c6835462780a1792
[ "MIT" ]
null
null
null
update_dns.py
gumlooter/libcloud-dynamic-dns
a16a3bfedce532956ae255c2c6835462780a1792
[ "MIT" ]
null
null
null
import libcloud from libcloud.common.types import LibcloudError from libcloud.dns.drivers.google import GoogleDNSDriver from libcloud.dns.types import RecordType import requests import time from config import Config import os class GoogleDNSUpdater: dns_driver = None def __init__(self): self.create_d...
32.495146
87
0.62922
7966d6ae12218c7690ffb19e803332d60c5b31f7
858
py
Python
setup.py
rena2damas/o365-notifications
229a42af33d8506987a55d1208ee45753c3566e6
[ "MIT" ]
null
null
null
setup.py
rena2damas/o365-notifications
229a42af33d8506987a55d1208ee45753c3566e6
[ "MIT" ]
null
null
null
setup.py
rena2damas/o365-notifications
229a42af33d8506987a55d1208ee45753c3566e6
[ "MIT" ]
null
null
null
import setuptools with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='o365_notifications', version='0.1.0', author='Renato Damas', author_email='me@renatodamas.com', description='O365 notifications service', long_description=long_descri...
30.642857
81
0.657343
7966d7095ae040adb8fd7ee3dbed7a799c0f04b2
16,587
py
Python
mesonbuild/mesonmain.py
5paceToast/meson
221c3ec105e2765356f180e01591ebcad3588ced
[ "Apache-2.0" ]
null
null
null
mesonbuild/mesonmain.py
5paceToast/meson
221c3ec105e2765356f180e01591ebcad3588ced
[ "Apache-2.0" ]
null
null
null
mesonbuild/mesonmain.py
5paceToast/meson
221c3ec105e2765356f180e01591ebcad3588ced
[ "Apache-2.0" ]
1
2021-03-11T08:12:20.000Z
2021-03-11T08:12:20.000Z
# Copyright 2012-2016 The Meson development team # 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...
42.640103
141
0.62338
7966d78f14b39e28dfff3a2e675d9fb78793fa3d
4,880
py
Python
main.py
liao961120/ASBC
ad00b320e264e35ab6d40af40dce973499983d4f
[ "MIT" ]
null
null
null
main.py
liao961120/ASBC
ad00b320e264e35ab6d40af40dce973499983d4f
[ "MIT" ]
null
null
null
main.py
liao961120/ASBC
ad00b320e264e35ab6d40af40dce973499983d4f
[ "MIT" ]
null
null
null
import falcon import json import io from falcon_cors import CORS from KWIC.queryDB import Corpus import KWIC.queryParser as Parser # Initialize corpus DB = 'data/asbc.sqlite' CORP = 'data/asbc_lite.jsonl' CONCORDANCE_CACHE = [] C = Corpus(db=DB, corp=CORP) ############ DEBUGGING ############## print("Corpus Loaded")...
35.362319
140
0.522131
7966d8d87b0a07a594068e24c6703903b8bc9c29
574
py
Python
models/grid.py
LunaDilangalen/gpu-pathfinding
ba34c44595a6ede0c3c47bc60bb2a34355fc4891
[ "MIT" ]
null
null
null
models/grid.py
LunaDilangalen/gpu-pathfinding
ba34c44595a6ede0c3c47bc60bb2a34355fc4891
[ "MIT" ]
4
2021-06-08T22:56:00.000Z
2022-03-12T00:53:10.000Z
models/grid.py
LunaDilangalen/gpu-pathfinding
ba34c44595a6ede0c3c47bc60bb2a34355fc4891
[ "MIT" ]
null
null
null
class Grid: def __init__(self, width, height): self.width = width self.height = height self.walls = [] def in_bounds(self, id): (x, y) = id return 0 <= x < self.width and 0 <= y < self.height def passable(self, id): return id not in self.walls def neighbor...
33.764706
59
0.533101
7966d96e0d8c0f4d48dd2e8327060f16d6646552
1,155
py
Python
libs/colorprint.py
thiagodasilva/runway
a5455e885302df534fcfff0470881fbd2ad8eed5
[ "Apache-2.0" ]
null
null
null
libs/colorprint.py
thiagodasilva/runway
a5455e885302df534fcfff0470881fbd2ad8eed5
[ "Apache-2.0" ]
null
null
null
libs/colorprint.py
thiagodasilva/runway
a5455e885302df534fcfff0470881fbd2ad8eed5
[ "Apache-2.0" ]
null
null
null
import datetime import platform if platform.system() == 'Windows': from colorama import init init() class bcolors: PINK = '\033[95m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def colorize...
21.388889
71
0.635498
7966d9ad5aca5ed081b4a000e74c6e2f8bfe0173
4,739
py
Python
util/test/tests/Vulkan/VK_Vertex_Attr_Zoo.py
songtm/renderdoc
7533c6b7ac7cac7cfab2d1a1ddc011c693202a47
[ "MIT" ]
1
2019-11-14T08:52:26.000Z
2019-11-14T08:52:26.000Z
util/test/tests/Vulkan/VK_Vertex_Attr_Zoo.py
songtm/renderdoc
7533c6b7ac7cac7cfab2d1a1ddc011c693202a47
[ "MIT" ]
null
null
null
util/test/tests/Vulkan/VK_Vertex_Attr_Zoo.py
songtm/renderdoc
7533c6b7ac7cac7cfab2d1a1ddc011c693202a47
[ "MIT" ]
null
null
null
import copy import rdtest import renderdoc as rd class VK_Vertex_Attr_Zoo(rdtest.TestCase): demos_test_name = 'VK_Vertex_Attr_Zoo' def check_capture(self): draw = self.find_draw("Draw") self.check(draw is not None) self.controller.SetFrameEvent(draw.eventId, False) ref = { ...
37.611111
101
0.520574
7966dae5cb386716da7a87706a94589f1e6eb69b
2,032
py
Python
hackdayproject/utils/util_function.py
alstn2468/Naver_Campus_Hackday_Project
e8c3b638638182ccb8b4631c03cf5cb153c7278a
[ "MIT" ]
1
2019-11-15T05:03:54.000Z
2019-11-15T05:03:54.000Z
hackdayproject/utils/util_function.py
alstn2468/Naver_Campus_Hackday_Project
e8c3b638638182ccb8b4631c03cf5cb153c7278a
[ "MIT" ]
null
null
null
hackdayproject/utils/util_function.py
alstn2468/Naver_Campus_Hackday_Project
e8c3b638638182ccb8b4631c03cf5cb153c7278a
[ "MIT" ]
null
null
null
from hackdayproject.utils.github_api \ import get_user_repo, get_orgs_repo from datetime import datetime from django.utils import timezone from collections import OrderedDict import pytz def get_user_all_repo(username, orgs_data): user_repo = get_user_repo(username) for orgs in orgs_data: orgs_re...
27.835616
75
0.620571
7966daef4aa65e5ee128cd18aa0ead3cab914efb
1,724
py
Python
mayan/apps/sources/tests/mixins.py
chrisranjana/Mayan-EDMS
34b414ce49a2eb156e27dc1a2915e52121c9d1b7
[ "Apache-2.0" ]
null
null
null
mayan/apps/sources/tests/mixins.py
chrisranjana/Mayan-EDMS
34b414ce49a2eb156e27dc1a2915e52121c9d1b7
[ "Apache-2.0" ]
5
2021-03-19T22:59:52.000Z
2022-03-12T00:13:16.000Z
mayan/apps/sources/tests/mixins.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals from ..literals import SOURCE_CHOICE_WEB_FORM, SOURCE_UNCOMPRESS_CHOICE_Y from ..models.watch_folder_sources import WatchFolderSource from ..models.webform_sources import WebFormSource from .literals import TEST_SOURCE_LABEL, TEST_SOURCE_UNCOMPRESS_N class SourceTestMixin(obj...
32.528302
73
0.700116
7966dbd70b6b2b4ab8ae67de46c951ddb973315c
1,046
py
Python
setup.py
bbelyeu/osis2usfm
d4738ad25e1ad2d38f23bd3045760b427116ce56
[ "MIT" ]
null
null
null
setup.py
bbelyeu/osis2usfm
d4738ad25e1ad2d38f23bd3045760b427116ce56
[ "MIT" ]
5
2019-10-18T14:38:52.000Z
2021-06-01T21:39:39.000Z
setup.py
bbelyeu/osis2usfm
d4738ad25e1ad2d38f23bd3045760b427116ce56
[ "MIT" ]
null
null
null
"""A package for converting OSIS refs to USFM.""" from setuptools import setup setup( name='osis2usfm', version='1.3', url='https://github.com/bbelyeu/osis2usfm', download_url='https://github.com/bbelyeu/osis2usfm/archive/1.2.zip', license='MIT', author='Brad Belyeu', author_email='bradleyl...
32.6875
72
0.637667
7966dbe8a810b353a1ad62013667cb31421ade4c
961
py
Python
mhxxinfo_server/quest/models.py
aiirohituzi/MHXXInfo
941469b44e746ad97a03bf0dd5bfdea4cd96f5ae
[ "MIT" ]
null
null
null
mhxxinfo_server/quest/models.py
aiirohituzi/MHXXInfo
941469b44e746ad97a03bf0dd5bfdea4cd96f5ae
[ "MIT" ]
2
2018-02-01T13:54:32.000Z
2018-03-31T14:02:40.000Z
mhxxinfo_server/quest/models.py
aiirohituzi/MHXXInfo
941469b44e746ad97a03bf0dd5bfdea4cd96f5ae
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Quest(models.Model): questName = models.CharField(max_length=30) questName_kr = models.CharField(max_length=30) rating = models.CharField(max_length=8) contents = models.CharField(max_length=200, null=True) questMap = models.CharField(m...
34.321429
66
0.742976
7966dcd183e933d15b3edfba90bcef3c1d1ea604
2,018
py
Python
dsblist.py
misc77/wordDSEGenerator
f879a8140f322b1f59cd45d0f512327cd9a648ed
[ "MIT" ]
null
null
null
dsblist.py
misc77/wordDSEGenerator
f879a8140f322b1f59cd45d0f512327cd9a648ed
[ "MIT" ]
1
2020-11-10T14:18:33.000Z
2020-11-10T14:18:33.000Z
dsblist.py
misc77/wordDSEGenerator
f879a8140f322b1f59cd45d0f512327cd9a648ed
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET import const import logger from const import DSBDOC_ATTRIB_LAND from dsb import DSB from resources import Resources class DSBList: def __init__(self): self.dsbList = self.readFile() def readFile(self): log = logger.getLogger() liste = [] ...
36.035714
106
0.511397
7966dcd27d91b15ffb44d8ddc067fe8ff0bf4fe2
3,993
py
Python
src/main/python/app_config.py
afichet/candela
eafa61fb6054b3beedbb63d9b9ca3c1f5a15f562
[ "MIT" ]
1
2020-07-27T21:37:28.000Z
2020-07-27T21:37:28.000Z
src/main/python/app_config.py
afichet/candela
eafa61fb6054b3beedbb63d9b9ca3c1f5a15f562
[ "MIT" ]
1
2020-06-22T13:36:37.000Z
2020-10-04T19:26:52.000Z
src/main/python/app_config.py
afichet/candela
eafa61fb6054b3beedbb63d9b9ca3c1f5a15f562
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 import json import requests import phue import os from PySide2.QtCore import QObject from PySide2.QtCore import Slot from PySide2.QtCore import QStandardPaths class AppConfig(QObject): config_file = os.path.join( QStandardPaths.writableLocation(QStan...
31.195313
82
0.515903
7966dd79ee41689d7678223a3807c522ec9cba05
2,024
py
Python
setup.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
9
2018-10-03T00:30:57.000Z
2021-12-29T07:48:08.000Z
setup.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
9
2020-02-10T17:08:01.000Z
2021-11-19T17:21:18.000Z
setup.py
robabram/Quickstart-Secure-Django-Template
22f304e864f8f6ce972f44bce6fe9b885341201a
[ "MIT" ]
null
null
null
# # Author: Robert Abram <rabram991@gmail.com> # # This file is subject to the terms and conditions defined in the # file 'LICENSE', which is part of this source code package. # import os import sys from distutils.core import setup from setuptools import find_packages __VERSION__ = "0.1" def find_package_data_files...
28.111111
106
0.615119
7966de20db06e10422282bb52af356e62c6968b4
1,821
py
Python
IG_bruteForce.py
MosenzonTal/Instagram-Brute-Forcer
ea41551ca9aca28b012cdf309564aea833571d94
[ "FSFAP" ]
2
2021-01-26T21:32:27.000Z
2021-06-06T06:05:18.000Z
IG_bruteForce.py
MosenzonTal/Instagram-Brute-Forcer
ea41551ca9aca28b012cdf309564aea833571d94
[ "FSFAP" ]
null
null
null
IG_bruteForce.py
MosenzonTal/Instagram-Brute-Forcer
ea41551ca9aca28b012cdf309564aea833571d94
[ "FSFAP" ]
2
2021-06-06T07:53:34.000Z
2021-12-19T00:00:21.000Z
from colorama import Fore import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC class pwdCracking: def __init__(self, username, pswFilePath): self.usern...
47.921053
119
0.630972
7966de6588a431e6885a0dfd3e10bcffe37eb4dc
558
py
Python
pyactus/domain/enums/scaling_effect.py
CasperLabs/actus-core-py
070de8a31a29792f3e488db93300947a11f496b7
[ "Apache-2.0" ]
null
null
null
pyactus/domain/enums/scaling_effect.py
CasperLabs/actus-core-py
070de8a31a29792f3e488db93300947a11f496b7
[ "Apache-2.0" ]
null
null
null
pyactus/domain/enums/scaling_effect.py
CasperLabs/actus-core-py
070de8a31a29792f3e488db93300947a11f496b7
[ "Apache-2.0" ]
null
null
null
import enum class ScalingEffect(enum.Enum): """SCEF :: Scaling Effect. Indicates which payments are scaled. I = Interest payments, N = Nominal payments and M = Maximum deferred interest amount. They can be scaled in any combination. """ # No Scaling :: No scaling applies. _000 = 0 # Interes...
25.363636
165
0.677419
7966dee0a2fc7f8e60e5cad5a92fd870eb1e55aa
1,566
py
Python
tools/python/nuketools/uistate.py
imagesurgery/nuke-config
bdc6a3deac53a4125a4cb8b8eacf1f156c293737
[ "MIT" ]
null
null
null
tools/python/nuketools/uistate.py
imagesurgery/nuke-config
bdc6a3deac53a4125a4cb8b8eacf1f156c293737
[ "MIT" ]
null
null
null
tools/python/nuketools/uistate.py
imagesurgery/nuke-config
bdc6a3deac53a4125a4cb8b8eacf1f156c293737
[ "MIT" ]
null
null
null
import os import nuke try: from PySide2.QtCore import QSettings, QRect, QSize except ImportError: from PySide.QtCore import QSettings, QRect, QSize # Populate the uistate.ini file with some sane defaults. # User overrides will stay in place # https://support.foundry.com/hc/en-us/articles/360006950439-Q100538-...
32.625
142
0.756066
7966e01f3a16b6c163a2f289431c1405403ccfe4
431
py
Python
venv/Scripts/pip3.6-script.py
mphelp/FORD_GTT_DealerAddressBookFixer
8b55c1d6731d35a61802801f9aff5e9fb86d5fe2
[ "MIT" ]
1
2018-06-19T15:57:21.000Z
2018-06-19T15:57:21.000Z
venv/Scripts/pip3.6-script.py
mphelp/FORD_GTT_DealerAddressBookFixer
8b55c1d6731d35a61802801f9aff5e9fb86d5fe2
[ "MIT" ]
null
null
null
venv/Scripts/pip3.6-script.py
mphelp/FORD_GTT_DealerAddressBookFixer
8b55c1d6731d35a61802801f9aff5e9fb86d5fe2
[ "MIT" ]
null
null
null
#!C:\Users\mphelp20\PycharmProjects\FORD_UKCityParsing\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$...
33.153846
78
0.679814
7966e0f569ca7ad032103376fac2223ea6305003
9,177
py
Python
scripts/visualize_exception_provenance.py
google-research/runtime-error-prediction
1eefe57183434a754171dd3db893831d45d12671
[ "Apache-2.0" ]
10
2022-03-09T13:24:35.000Z
2022-03-14T20:29:15.000Z
scripts/visualize_exception_provenance.py
google-research/runtime-error-prediction
1eefe57183434a754171dd3db893831d45d12671
[ "Apache-2.0" ]
null
null
null
scripts/visualize_exception_provenance.py
google-research/runtime-error-prediction
1eefe57183434a754171dd3db893831d45d12671
[ "Apache-2.0" ]
2
2022-03-09T13:25:07.000Z
2022-03-10T18:25:50.000Z
# Copyright (C) 2021 Google Inc. # # 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, ...
38.885593
120
0.737932
7966e117574928e1e93a74b01511b730d1ef8f9b
2,256
py
Python
monitor/models.py
Kyeonga-Kim/HyundaiSteel_PJ
83705e6ee2e37bebe8e4b7a0626274d15a19f448
[ "MIT" ]
null
null
null
monitor/models.py
Kyeonga-Kim/HyundaiSteel_PJ
83705e6ee2e37bebe8e4b7a0626274d15a19f448
[ "MIT" ]
8
2021-04-08T21:51:46.000Z
2022-03-12T00:38:29.000Z
monitor/models.py
Kyeonga-Kim/HyundaiSteel_PJ
83705e6ee2e37bebe8e4b7a0626274d15a19f448
[ "MIT" ]
2
2020-07-10T02:08:44.000Z
2020-09-04T12:43:22.000Z
from django.db import models from django_pandas.managers import DataFrameManager class PlantEnviron(models.Model): PLANT_CHOICE = [('1', '1'), ('2', '2')] plant = models.CharField(max_length=1, choices=PLANT_CHOICE) recTime = models.DateTimeField() tem_in_loc1 = models.FloatField() ...
35.809524
75
0.652039
7966e4006430cadade41872cafebebd00955250f
20,260
py
Python
src/build/skia_gold_common/skia_gold_session.py
jsylin/naiveproxy
4ad4827d3ed3e5fd72eded69c14a90028880fc20
[ "BSD-3-Clause" ]
3
2020-11-30T15:35:37.000Z
2022-01-06T14:17:18.000Z
src/build/skia_gold_common/skia_gold_session.py
jsylin/naiveproxy
4ad4827d3ed3e5fd72eded69c14a90028880fc20
[ "BSD-3-Clause" ]
54
2020-06-23T17:34:04.000Z
2022-03-31T02:04:06.000Z
src/build/skia_gold_common/skia_gold_session.py
jsylin/naiveproxy
4ad4827d3ed3e5fd72eded69c14a90028880fc20
[ "BSD-3-Clause" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
# Copyright 2020 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. """Class for interacting with the Skia Gold image diffing service.""" import logging import os import shutil import subprocess import sys import tempfile CH...
38.226415
80
0.675518
7966e40e2e40fa124a7bdad3c21e96647ffe59e0
901
py
Python
pypso/tests/optimizers/test_bpso.py
rmill040/pypso
69acad4b71addaea679677da4695b5db30b1c76a
[ "MIT" ]
null
null
null
pypso/tests/optimizers/test_bpso.py
rmill040/pypso
69acad4b71addaea679677da4695b5db30b1c76a
[ "MIT" ]
null
null
null
pypso/tests/optimizers/test_bpso.py
rmill040/pypso
69acad4b71addaea679677da4695b5db30b1c76a
[ "MIT" ]
1
2022-01-20T23:38:42.000Z
2022-01-20T23:38:42.000Z
import numpy as np from pypso.optimizers import BPSO # Simple objective and constraint function def sphere(x): return np.sum(x*x) def cons(x) : return sum(x) > 1 # Define global class pso = BPSO(n_particles=5, n_dimensions=2, random_state=1718) lb = [0]*2 ub = [1]*2 def test_str(): """Tests __str__ method of...
26.5
73
0.651498
7966e572f919eaf45e7880e7efce02e06c7a9869
937
py
Python
env/lib/python3.7/site-packages/matplotlib/testing/jpl_units/UnitDblFormatter.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
102
2016-10-09T01:33:00.000Z
2022-01-28T01:03:23.000Z
env/lib/python3.7/site-packages/matplotlib/testing/jpl_units/UnitDblFormatter.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
41
2017-06-04T16:09:43.000Z
2022-01-20T21:11:42.000Z
env/lib/python3.7/site-packages/matplotlib/testing/jpl_units/UnitDblFormatter.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
50
2017-05-10T06:25:36.000Z
2021-08-02T20:28:54.000Z
"""UnitDblFormatter module containing class UnitDblFormatter.""" import matplotlib.ticker as ticker __all__ = ['UnitDblFormatter'] class UnitDblFormatter(ticker.ScalarFormatter): """The formatter for UnitDbl data types. This allows for formatting with the unit string. """ def __init__(self, *ar...
31.233333
75
0.645678
7966e61d8fe0c07a4546a7683a18e0a046db7f41
4,161
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/avi/avi_trafficcloneprofile.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/avi/avi_trafficcloneprofile.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/avi/avi_trafficcloneprofile.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
32.007692
106
0.628214
7966e6d8224e20fc49ff7758036313948cea52d7
6,247
py
Python
coza/api/public.py
Derek-tjhwang/CATS-LAB
1068c33fdbd55bc7e8e0968fcee62ef0786ff323
[ "MIT" ]
2
2019-03-29T14:34:53.000Z
2021-02-18T04:55:07.000Z
coza/api/public.py
Derek-tjhwang/CATS-LAB
1068c33fdbd55bc7e8e0968fcee62ef0786ff323
[ "MIT" ]
null
null
null
coza/api/public.py
Derek-tjhwang/CATS-LAB
1068c33fdbd55bc7e8e0968fcee62ef0786ff323
[ "MIT" ]
null
null
null
import time import requests import datetime import pandas as pd from coza.config import COZA_HOST from coza.utils import now from coza.errors import (CozaRequestException, CozaCurrencyException, CozaExchangeException) def _request(url, method, **kwargs): params = kwargs.get('params', {}) data = kwargs.get('d...
28.013453
118
0.5409
7966e74e3b1717638aadec3a990c93fd1eda6afc
9,281
py
Python
docker_containers/demo_conts/RADIO_demo/model2rule.py
brytul/IoT_Sec_Gateway
f4fbb622c2c0556ee1c8b0d4661c1cb82b8bfb8f
[ "MIT" ]
8
2018-08-08T14:42:01.000Z
2020-09-24T15:53:32.000Z
docker_containers/demo_conts/RADIO_demo/model2rule.py
brytul/IoT_Sec_Gateway
f4fbb622c2c0556ee1c8b0d4661c1cb82b8bfb8f
[ "MIT" ]
1
2020-06-02T19:01:21.000Z
2020-06-02T19:01:21.000Z
docker_containers/demo_conts/RADIO_demo/model2rule.py
brytul/IoT_Sec_Gateway
f4fbb622c2c0556ee1c8b0d4661c1cb82b8bfb8f
[ "MIT" ]
9
2018-01-29T00:54:33.000Z
2020-05-31T20:32:51.000Z
# -*- coding: utf-8 -*- import logging from pathlib import Path logging.basicConfig(level=logging.INFO, filename='/var/log/model2rule.log', format="[%(levelname)s] - %(asctime)s - %(message)s", datefmt='%H:%M:%S') fModel = "/etc/radio/model2" fProto = "/etc/radio/proto" fIOT_IP = "IOT_IP" fRules = "/etc/radio/modbus...
36.829365
173
0.579894
7966e76db122c079cd542309191460b99271d05f
25,663
py
Python
src/sage/modular/hecke/algebra.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
1
2021-03-15T21:45:56.000Z
2021-03-15T21:45:56.000Z
src/sage/modular/hecke/algebra.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
null
null
null
src/sage/modular/hecke/algebra.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
null
null
null
""" Hecke algebras In Sage a "Hecke algebra" always refers to an algebra of endomorphisms of some explicit module, rather than the abstract Hecke algebra of double cosets attached to a subgroup of the modular group. We distinguish between "anemic Hecke algebras", which are algebras of Hecke operators whose indices do...
36.043539
317
0.587149
7966e928d0a0e6962025fa4b0470f0b3682a1d09
864
py
Python
thenewboston_node/business_logic/models/signed_change_request_message/node_declaration.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/models/signed_change_request_message/node_declaration.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/models/signed_change_request_message/node_declaration.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Optional from thenewboston_node.core.utils.dataclass import cover_docstring, revert_docstring from thenewboston_node.core.utils.types import hexstr from ..node import Node from .base import SignedChangeRequestMessage @revert_docstring @dataclass @cover_docstring ...
26.181818
116
0.699074
7966e9acc8c89b4583335cebc634d3ff81e6bfa6
15
py
Python
assets/tuned/daemon/tests/unit/utils/__init__.py
cfergeau/cluster-node-tuning-operator
b5af40d25b93266bdd4d09ed12ac7ca62848e52b
[ "Apache-2.0" ]
53
2018-11-13T07:02:03.000Z
2022-03-25T00:00:04.000Z
assets/tuned/daemon/tests/unit/utils/__init__.py
cfergeau/cluster-node-tuning-operator
b5af40d25b93266bdd4d09ed12ac7ca62848e52b
[ "Apache-2.0" ]
324
2018-10-02T14:18:54.000Z
2022-03-31T23:47:33.000Z
assets/tuned/daemon/tests/unit/utils/__init__.py
cfergeau/cluster-node-tuning-operator
b5af40d25b93266bdd4d09ed12ac7ca62848e52b
[ "Apache-2.0" ]
54
2018-10-01T16:55:09.000Z
2022-03-28T13:56:53.000Z
import globals
7.5
14
0.866667
7966e9d40f276e048d58d5d465c003f9a5befa24
1,211
py
Python
pot-gui.py
lanig35/Arduino
7d5e752de6024ae6612fbd4f657772c61b89f167
[ "MIT" ]
1
2017-05-02T10:05:58.000Z
2017-05-02T10:05:58.000Z
pot-gui.py
lanig35/Arduino
7d5e752de6024ae6612fbd4f657772c61b89f167
[ "MIT" ]
null
null
null
pot-gui.py
lanig35/Arduino
7d5e752de6024ae6612fbd4f657772c61b89f167
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import Tkinter import tkMessageBox import pyfirmata import serial def Fermeture (): print ('Fermeture') if tkMessageBox.askyesno ('Info', 'Sûr ?'): board.exit () top.destroy () def OnStart (): print ('start') b1.config (state=Tk...
21.245614
58
0.666391
7966ea1fab85fdac56774d02118b13f8b67c3247
7,673
py
Python
bot/utils/scheduling.py
bsoyka/roboben
63b2ae5c18d24d6224907645fb476c34a62ded2a
[ "MIT" ]
2
2022-01-31T07:00:30.000Z
2022-02-25T13:05:36.000Z
bot/utils/scheduling.py
bsoyka/roboben
63b2ae5c18d24d6224907645fb476c34a62ded2a
[ "MIT" ]
11
2022-01-31T06:33:02.000Z
2022-02-01T05:05:00.000Z
bot/utils/scheduling.py
bsoyka/roboben
63b2ae5c18d24d6224907645fb476c34a62ded2a
[ "MIT" ]
null
null
null
"""Task scheduling.""" import asyncio import typing as t from contextlib import suppress from datetime import datetime from functools import partial from inspect import getcoroutinestate from arrow import Arrow from loguru import logger class Scheduler: """An async task scheduler.""" def __init__(self, nam...
43.106742
114
0.644728
7966ea3311e13c1cbe07d2cd1b2a4ff843f7f421
1,354
py
Python
guitab_nn/train.py
bestvibes/guitab
b3491bab9bc7390eb3722ada44e0284731abf521
[ "MIT" ]
1
2022-03-02T09:36:28.000Z
2022-03-02T09:36:28.000Z
guitab_nn/train.py
bestvibes/guitab
b3491bab9bc7390eb3722ada44e0284731abf521
[ "MIT" ]
3
2020-02-12T00:40:58.000Z
2021-06-10T20:15:45.000Z
guitab_nn/train.py
bestvibes/guitab
b3491bab9bc7390eb3722ada44e0284731abf521
[ "MIT" ]
2
2020-09-23T16:26:46.000Z
2022-02-16T23:57:39.000Z
import tensorflow as tf import numpy as np import cPickle as pickle import os # Array showing guitar string's relative pitches, in semi-tones, with "0" being low E # ["Low E", "A", "D", "G", "B", "High E"] strings = [40, 45, 50, 55, 60, 65]; # our neural network from nn import nn_train, nn_eval def midi_to_label(mid...
26.038462
108
0.604874
7966ea34c0ec262aa5d6d4f9bad62d06be8c3432
113
py
Python
countingNumbers.py
RolexOgada/python_projects
eec83d3f5019500604c4161420dad0969348976f
[ "MIT" ]
null
null
null
countingNumbers.py
RolexOgada/python_projects
eec83d3f5019500604c4161420dad0969348976f
[ "MIT" ]
null
null
null
countingNumbers.py
RolexOgada/python_projects
eec83d3f5019500604c4161420dad0969348976f
[ "MIT" ]
null
null
null
print("We'll count numbers from one to ten") counter = 1 while counter <= 10: print(counter) counter += 1
22.6
44
0.663717
7966eae88174d10cdb6fdb6fd3ff507ae7ba97ab
9,676
py
Python
controllers/args.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
controllers/args.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
controllers/args.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
import argparse import argcomplete from .rest_controller import RestController from .schema import QaironSchema def __gen_completers__(rest): resources = QaironSchema.CREATE_FIELDS.keys() for res in resources: def completer(self, prefix, parsed_args, resource=res, **kwargs): return rest....
50.926316
127
0.624638
7966ebdc7a799de313dfdc36ca37d0d21d82972b
2,020
py
Python
datasets/extract_frames_and_masks_3dhp.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
52
2020-03-10T05:18:02.000Z
2021-12-23T04:03:38.000Z
datasets/extract_frames_and_masks_3dhp.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
2
2020-03-30T08:08:06.000Z
2020-03-31T04:26:10.000Z
datasets/extract_frames_and_masks_3dhp.py
anibali/metro-pose3d
dd0c8a82ae271ce69441d216d615428e5ab1d5d1
[ "MIT" ]
7
2020-04-02T09:02:00.000Z
2020-12-12T07:11:07.000Z
#!/usr/bin/env python3 import glob import multiprocessing import os import pathlib import sys import imageio import numpy as np def main(): if 'DATA_ROOT' not in os.environ: print('Set the DATA_ROOT environment variable to the parent dir of the 3dhp directory.') sys.exit(1) pool = multiproce...
33.666667
96
0.673762
7966ec5a4c284eb2c1f64d4bb41c8dd7cc8cc81c
861
py
Python
bin/events_to_timeseries.py
not7cd/calendonator
95c30e33f7dc15427b098516dc17b9ac675d3ad6
[ "MIT" ]
null
null
null
bin/events_to_timeseries.py
not7cd/calendonator
95c30e33f7dc15427b098516dc17b9ac675d3ad6
[ "MIT" ]
1
2021-03-25T22:13:46.000Z
2021-03-25T22:13:46.000Z
bin/events_to_timeseries.py
not7cd/calendonator
95c30e33f7dc15427b098516dc17b9ac675d3ad6
[ "MIT" ]
null
null
null
import csv import ics import requests import arrow OLD_CAL = u"https://calendar.google.com/calendar/ical/8s96dmhr9qv1akadn3b2el9kk8%40group.calendar.google.com/public/basic.ics" CURRENT_CAL = u"https://calendar.google.com/calendar/ical/codeme.pl_ksn59c5sr9fn3bd78lh7vj07pg%40group.calendar.google.com/public/basic.ics" ...
26.090909
140
0.714286
7966ed68d9ff5e6cc7200871523a3a6513a7ebf0
2,415
py
Python
colour/models/rgb/datasets/pal_secam.py
jchwei/colour
2b2ad0a0f2052a1a0b4b076b489687235e804fdf
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/datasets/pal_secam.py
jchwei/colour
2b2ad0a0f2052a1a0b4b076b489687235e804fdf
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/datasets/pal_secam.py
jchwei/colour
2b2ad0a0f2052a1a0b4b076b489687235e804fdf
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Pal/Secam Colourspace ===================== Defines the *Pal/Secam* colourspace: - :attr:`colour.models.PAL_SECAM_COLOURSPACE`. References ---------- - :cite:`InternationalTelecommunicationUnion1998a` : International Telecommunication Union. (1998). Recommendation ITU-R BT.470-6 -...
26.25
79
0.768944
7966eddaf39d38a98acc0ef046b5d41c816a775d
1,769
py
Python
lapis/writer.py
movermeyer/lapis
623a3fc623a7a8fa8c292912b4172787f772f807
[ "CC0-1.0" ]
3
2015-02-21T05:32:35.000Z
2017-04-22T21:18:32.000Z
lapis/writer.py
movermeyer/lapis
623a3fc623a7a8fa8c292912b4172787f772f807
[ "CC0-1.0" ]
32
2015-02-04T00:52:32.000Z
2017-03-05T17:17:57.000Z
lapis/writer.py
dandesousa/Lapis
623a3fc623a7a8fa8c292912b4172787f772f807
[ "CC0-1.0" ]
1
2018-03-05T17:16:16.000Z
2018-03-05T17:16:16.000Z
#!/usr/bin/env python # encoding: utf-8 """module repsonsible for writing content data to different formats""" import os from datetime import datetime from jinja2 import Environment, FileSystemLoader from lapis.formats import default_format TEMPLATES_DIRECTORY = os.path.join(os.path.dirname(__file__), "templates")...
35.38
94
0.6987
7966eee9df8a8c6557b3f097531da70531fe3715
5,355
py
Python
baka/core/backend/lxc.py
tim-sueberkrueb/grout
b19bce094e97464087390206eabbc5e770d61799
[ "MIT" ]
null
null
null
baka/core/backend/lxc.py
tim-sueberkrueb/grout
b19bce094e97464087390206eabbc5e770d61799
[ "MIT" ]
12
2017-03-28T11:22:40.000Z
2017-06-14T12:39:21.000Z
baka/core/backend/lxc.py
tim-sueberkrueb/baka
b19bce094e97464087390206eabbc5e770d61799
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Dict, List import subprocess import pylxd from . import base from . import _utils class LXCCommand(base.BaseCommand): def _build_command(self) -> str: cmd = ['lxc', 'exec', self._container_name] if self._path: cmd += ['--env', 'HOME={}'.for...
33.46875
119
0.563025
7966eefb17dc8aaf3cbdd7ea94ea73580e0ccffa
492
py
Python
Python/Sorting/gnomeSort.py
opensourceisthebest/learn2code
2f9ed20642fb04f9ce3f54dd3f8ed39f5fa54ed9
[ "MIT" ]
13
2021-10-01T03:47:31.000Z
2022-03-27T15:07:27.000Z
Python/Sorting/gnomeSort.py
opensourceisthebest/learn2code
2f9ed20642fb04f9ce3f54dd3f8ed39f5fa54ed9
[ "MIT" ]
17
2021-10-01T06:30:33.000Z
2021-10-17T14:35:40.000Z
Python/Sorting/gnomeSort.py
opensourceisthebest/learn2code
2f9ed20642fb04f9ce3f54dd3f8ed39f5fa54ed9
[ "MIT" ]
41
2021-10-01T01:54:26.000Z
2021-10-31T09:06:41.000Z
# Python program to implement Gnome Sort # A function to sort the given list using Gnome sort def gnomeSort( arr, n): index = 0 while index < n: if index == 0: index = index + 1 if arr[index] >= arr[index - 1]: index = index + 1 else: arr[index], arr[index-1] = arr[index-1], arr[index] index = inde...
19.68
54
0.634146
7966ef902ffa2539e45bbd1574868871dcaab273
948
py
Python
fiber/context_processors.py
bsimons/django-fiber
0f4b03217a4aeba6b48908825507fbe8c5732c8d
[ "Apache-2.0" ]
null
null
null
fiber/context_processors.py
bsimons/django-fiber
0f4b03217a4aeba6b48908825507fbe8c5732c8d
[ "Apache-2.0" ]
null
null
null
fiber/context_processors.py
bsimons/django-fiber
0f4b03217a4aeba6b48908825507fbe8c5732c8d
[ "Apache-2.0" ]
null
null
null
import warnings from fiber.mixins import FiberPageMixin warnings.warn('NOTE: the page_info context processor is deprecated and will be removed in the near future.', DeprecationWarning) import re from .app_settings import EXCLUDE_URLS class FiberPageContext(FiberPageMixin): def __init__(self, request): ...
28.727273
128
0.703586
7966f0a376a812c66d5b6507590c5cdf62d0a616
2,388
py
Python
src/main.py
mnichol3/glm-cases
73b936b3a4f640ecfa8a762ba0f6afc4521c30bb
[ "MIT" ]
1
2020-08-11T23:57:28.000Z
2020-08-11T23:57:28.000Z
src/main.py
mnichol3/glm-cases
73b936b3a4f640ecfa8a762ba0f6afc4521c30bb
[ "MIT" ]
null
null
null
src/main.py
mnichol3/glm-cases
73b936b3a4f640ecfa8a762ba0f6afc4521c30bb
[ "MIT" ]
null
null
null
import sys import six import pandas as pd from sys import exit, getrefcount from datetime import datetime from os.path import isfile from os import remove import recipes def main(): case_coords = '/home/mnichol3/Coding/glm-cases/resources/05232019-coords.txt' wwa_fname = ('/home/mnichol3/Coding/glm-cases/re...
29.121951
97
0.64196
7966f156b58e70db7a307b819108a7860b5d2863
2,012
py
Python
src/whylogs/viz/base.py
cswarth/whylogs
6805b252f1d07efde84836d3924949f7ec2d97b1
[ "Apache-2.0" ]
603
2020-07-31T23:26:10.000Z
2022-03-31T23:05:36.000Z
src/whylogs/viz/base.py
cswarth/whylogs
6805b252f1d07efde84836d3924949f7ec2d97b1
[ "Apache-2.0" ]
284
2021-03-02T21:28:03.000Z
2022-03-31T22:36:08.000Z
src/whylogs/viz/base.py
jamie256/whylogs
e4b8288a61c00fbe033c0248a015e6e91ee6c8b0
[ "Apache-2.0" ]
39
2020-08-14T21:22:08.000Z
2022-03-29T20:24:54.000Z
class BaseProfileVisualizer: def __init__(self, framework=None, visualizer=None): self.framework = framework self.visualizer = visualizer self.profiles = [] def set_profiles(self, profiles): """""" if len(profiles) <= 1: self.profiles = [profiles] els...
39.45098
95
0.673459
7966f2ba667ab1fd1b80433927a684722e4fdf3e
5,857
py
Python
tractags/tests/ticket.py
t-kenji/trac-tags-plugin
0bf909d311a0acc0ecd7f907d74c6c7c98ec6b52
[ "MIT" ]
null
null
null
tractags/tests/ticket.py
t-kenji/trac-tags-plugin
0bf909d311a0acc0ecd7f907d74c6c7c98ec6b52
[ "MIT" ]
null
null
null
tractags/tests/ticket.py
t-kenji/trac-tags-plugin
0bf909d311a0acc0ecd7f907d74c6c7c98ec6b52
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2011 Odd Simon Simonsen <oddsimons@gmail.com> # Copyright (C) 2012-2014 Steffen Hoffmann <hoff.st@web.de> # Copyright (C) 2014 Jun Omae <jun66j5@gmail.com> # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribut...
35.071856
78
0.634284
7966f2c578ae9cab7afbc7ea7f61b5ae5780703b
2,283
py
Python
assemblyline_service_server/logger.py
CybercentreCanada/assemblyline-service-server
f4fbc7dcab122fa63fcc598db1c23a770c10145f
[ "MIT" ]
6
2020-06-29T14:32:24.000Z
2022-01-03T19:40:39.000Z
assemblyline_service_server/logger.py
CybercentreCanada/assemblyline-service-server
f4fbc7dcab122fa63fcc598db1c23a770c10145f
[ "MIT" ]
null
null
null
assemblyline_service_server/logger.py
CybercentreCanada/assemblyline-service-server
f4fbc7dcab122fa63fcc598db1c23a770c10145f
[ "MIT" ]
2
2021-01-15T18:31:17.000Z
2021-05-29T15:57:08.000Z
from flask import request from assemblyline_service_server.config import VERSION def get_traceback_info(tb): tb_list = [] tb_id = 0 last_ui = None while tb is not None: f = tb.tb_frame line_no = tb.tb_lineno tb_list.append((f, line_no)) tb = tb.tb_next if "/ui/...
29.649351
103
0.516864
7966f31d3b487cd1eb2f4e8024f6414e31a6501b
7,472
py
Python
isi_sdk_8_2_2/isi_sdk_8_2_2/models/filepool_policy_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/filepool_policy_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/filepool_policy_create_params.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_2_2.models.filepoo...
32.206897
126
0.631825
7966f3990903e86b16d590f43aaf1e215c24921e
5,562
py
Python
sumo/tests/complex/tutorial/traci_pedestrian_crossing/runner.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/complex/tutorial/traci_pedestrian_crossing/runner.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/complex/tutorial/traci_pedestrian_crossing/runner.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python """ @file runner.py @author Lena Kalleske @author Daniel Krajzewicz @author Michael Behrisch @author Jakob Erdmann @date 2009-03-26 @version $Id$ Tutorial for traffic light control via the TraCI interface. This scenario models a pedestrian crossing which switches on demand. SUMO, Simul...
34.122699
160
0.657138
7966f3f3faf570e5540af9987a943dd4c6f3a2ed
133
py
Python
character_type.py
brunofreeman/CoupSim
29e0d78784e5d554c81c05d31b8a0c4d61b7dcf0
[ "MIT" ]
null
null
null
character_type.py
brunofreeman/CoupSim
29e0d78784e5d554c81c05d31b8a0c4d61b7dcf0
[ "MIT" ]
null
null
null
character_type.py
brunofreeman/CoupSim
29e0d78784e5d554c81c05d31b8a0c4d61b7dcf0
[ "MIT" ]
null
null
null
from enum import Enum class CharacterType(Enum): duke = 0 assassin = 1 ambassador = 2 captain = 3 contessa = 4
13.3
26
0.616541
7966f48c441196ff6a89a8be6270dc76b7430394
832
py
Python
examples/basic_auth.py
tsarnowski/jira-python
a215dd2592b40297448d4dc45216e3398b4dff16
[ "BSD-2-Clause" ]
1
2020-07-27T23:04:54.000Z
2020-07-27T23:04:54.000Z
examples/basic_auth.py
jameskeane/jira-python
924478d79131eee6464c0bd164bccd90234b0022
[ "BSD-2-Clause" ]
null
null
null
examples/basic_auth.py
jameskeane/jira-python
924478d79131eee6464c0bd164bccd90234b0022
[ "BSD-2-Clause" ]
null
null
null
# This script shows how to connect to a JIRA instance with a # username and password over HTTP BASIC authentication. from jira.client import JIRA # By default, the client will connect to a JIRA instance started from the Atlassian Plugin SDK. # See https://developer.atlassian.com/display/DOCS/Installing+the+Atlassian+...
43.789474
105
0.790865
7966f4b17108b1437bdc9531795532ee33997f9e
1,802
py
Python
setup.py
maestrofjp/django-cms
c2d23b6b028e3795d204a5ca3c1d326235f71a44
[ "BSD-3-Clause" ]
null
null
null
setup.py
maestrofjp/django-cms
c2d23b6b028e3795d204a5ca3c1d326235f71a44
[ "BSD-3-Clause" ]
null
null
null
setup.py
maestrofjp/django-cms
c2d23b6b028e3795d204a5ca3c1d326235f71a44
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages import os import cms CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independ...
30.033333
88
0.602664
7966f507592c0e45edb24f6d74092205e1b7a389
1,274
py
Python
ecommerce/shop/api/v1/urls.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/shop/api/v1/urls.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/shop/api/v1/urls.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( CancelPaidCartView, CartRetrieveCreateView, DeleteCartView, NotPaidCartView, PaidCartView, PayCartView, ProductListView, ShopListView, ShopTypeListView, ) urlpatterns = [ path( "shops/", ShopListView.as_view(), ...
21.965517
52
0.569859
7966f64bc9198c7b0cc441a0883a292adfb6efbb
5,688
py
Python
make_tpu_dataset.py
Ely-S/EfficientDet
da1d0f25c38d5498edf93f23b0f85661ee6e589d
[ "Apache-2.0" ]
null
null
null
make_tpu_dataset.py
Ely-S/EfficientDet
da1d0f25c38d5498edf93f23b0f85661ee6e589d
[ "Apache-2.0" ]
null
null
null
make_tpu_dataset.py
Ely-S/EfficientDet
da1d0f25c38d5498edf93f23b0f85661ee6e589d
[ "Apache-2.0" ]
null
null
null
import os import math import tensorflow as tf import tensorflow_datasets as tfds import argparse import utils import utils.anchors import utils.anchors_tpu import utils.compute_overlap from model import image_sizes parser = argparse.ArgumentParser( description='Generate a preprocessed dataset .') parser.add_arg...
33.656805
109
0.668249
7966f7c0bda28eff75a323b20dc75bdd45a34b13
1,839
py
Python
WebApplication/projects.py
henningpohl/body-based-ar
dc7d5d6eaf8dd4427de0f2b1cfdcc415cbfffdfb
[ "MIT" ]
1
2020-11-09T09:17:53.000Z
2020-11-09T09:17:53.000Z
WebApplication/projects.py
henningpohl/body-based-ar
dc7d5d6eaf8dd4427de0f2b1cfdcc415cbfffdfb
[ "MIT" ]
null
null
null
WebApplication/projects.py
henningpohl/body-based-ar
dc7d5d6eaf8dd4427de0f2b1cfdcc415cbfffdfb
[ "MIT" ]
1
2021-10-08T09:41:29.000Z
2021-10-08T09:41:29.000Z
from flask import Blueprint, render_template, redirect, abort, request, url_for, jsonify # from db import db.get_db # from . import db import db import json bp = Blueprint('projects', __name__) @bp.route('/create', methods=('GET', 'POST')) def create(): if request.method == 'GET': return render_template('projects/...
27.863636
88
0.678086
7966f7d0a535e542b4e0d9ecda667701fb341afa
1,573
py
Python
old_code/plt_bar.py
yuguiyang/python_demo
1be2406bfc920e22a0f92bf10d9a3665984067ba
[ "Apache-2.0" ]
null
null
null
old_code/plt_bar.py
yuguiyang/python_demo
1be2406bfc920e22a0f92bf10d9a3665984067ba
[ "Apache-2.0" ]
null
null
null
old_code/plt_bar.py
yuguiyang/python_demo
1be2406bfc920e22a0f92bf10d9a3665984067ba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 10 14:01:31 2017 @author: hexo """ import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties font_set = FontProperties(fname=r'C:\Windows\Fonts\simsun.ttc', size=13) ''' matplotlib.pyplot.bar(left, height, width=0.8, bottom...
22.15493
91
0.693579
7966f7e50c88a6bb805006e49630ba456bf67cdb
452
py
Python
env/lib/python3.8/site-packages/plotly/validators/funnel/_hoverinfosrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/funnel/_hoverinfosrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/funnel/_hoverinfosrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="hoverinfosrc", parent_name="funnel", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name,...
34.769231
83
0.661504
7966f7ed7b458ce827000e9669ef28edb8424c89
393
py
Python
Back-end/fog_node/fog_node/wsgi.py
sepahanit/IOT-SMARTHOME-IUT
9a86ea8fff870ea147c6efd60745e19a289d0d4e
[ "MIT" ]
1
2022-01-29T22:57:26.000Z
2022-01-29T22:57:26.000Z
Back-end/fog_node/fog_node/wsgi.py
sepahanit/IOT-SMARTHOME-IUT
9a86ea8fff870ea147c6efd60745e19a289d0d4e
[ "MIT" ]
null
null
null
Back-end/fog_node/fog_node/wsgi.py
sepahanit/IOT-SMARTHOME-IUT
9a86ea8fff870ea147c6efd60745e19a289d0d4e
[ "MIT" ]
2
2022-01-27T09:15:19.000Z
2022-01-30T20:57:43.000Z
""" WSGI config for fog_node project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
7966f849a29e53c40e0aa168b93b3cd8e669d4ec
3,191
py
Python
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 2/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
from collections import deque as LL class VM_Manager: def __init__(self): self.s_size = 9 self.p_size = 9 self.w_size = 9 self.PM = [None] * 2**19 # PM[524288] self.D = [[None] * 2**10] * 2**9 # D[1024][512] self.free_frames = LL([i for i in range(2**10)]) ...
27.991228
62
0.531808
7966f84fc339857fdf7d00fcd0f312cef9324c07
3,448
py
Python
tests/unit/trace/test_span_data.py
kshithijiyer/opencensus-python
fdfd3b10cdf9d51ac3137749541548c4edfe1e3e
[ "Apache-2.0" ]
null
null
null
tests/unit/trace/test_span_data.py
kshithijiyer/opencensus-python
fdfd3b10cdf9d51ac3137749541548c4edfe1e3e
[ "Apache-2.0" ]
null
null
null
tests/unit/trace/test_span_data.py
kshithijiyer/opencensus-python
fdfd3b10cdf9d51ac3137749541548c4edfe1e3e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
35.546392
75
0.62964
7966fa1826b6f24ee98405c51c1b8d2361dd941b
9,287
py
Python
tests/test_dataframe_writer.py
anacode/anacode-toolkit
8d3ad0f2efe9f7e923fac95a30c85a4ec43ddc91
[ "BSD-3-Clause" ]
null
null
null
tests/test_dataframe_writer.py
anacode/anacode-toolkit
8d3ad0f2efe9f7e923fac95a30c85a4ec43ddc91
[ "BSD-3-Clause" ]
null
null
null
tests/test_dataframe_writer.py
anacode/anacode-toolkit
8d3ad0f2efe9f7e923fac95a30c85a4ec43ddc91
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from anacode.api import writers @pytest.fixture def concept_frames_reduced(concepts): for response in concepts: for concept in response: del concept['surface'] del concept['relevance_score'] writer = writers.DataFrameWriter() writer.ini...
41.275556
79
0.650156
7966fa5b152acb96f6a8299a0910e92eaae7d414
4,690
py
Python
stdplugins/profilepicgrab.py
kaalhoonme/PepeBot
d1678f3c5e57adb8c9d2e1bc5a54568ad2938258
[ "Apache-2.0" ]
2
2019-10-23T12:30:32.000Z
2019-10-23T20:33:26.000Z
stdplugins/profilepicgrab.py
shn999/PepeBot
912b97dc89c4c7581cbaee337d4fcc05c98d79c0
[ "Apache-2.0" ]
1
2021-02-08T20:40:39.000Z
2021-02-08T20:40:39.000Z
stdplugins/profilepicgrab.py
shn999/PepeBot
912b97dc89c4c7581cbaee337d4fcc05c98d79c0
[ "Apache-2.0" ]
12
2019-10-25T18:48:16.000Z
2020-04-26T11:31:21.000Z
"""Get Telegram Profile Picture and other information Syntax: .ppg @username""" import html from telethon.tl.functions.photos import GetUserPhotosRequest from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import MessageEntityMentionName from telethon.utils import get_input_location from ...
35.530303
91
0.628145
7966fb5222f92a1c16b793eace914c15d9adff07
1,331
py
Python
host/greatfet/commands/greatfet_dac.py
colinoflynn/greatfet
ee81a2101b21f69052240698ebd4da83f6126f10
[ "BSD-3-Clause" ]
4
2018-10-18T05:36:46.000Z
2021-06-29T21:15:09.000Z
host/greatfet/commands/greatfet_dac.py
colinoflynn/greatfet
ee81a2101b21f69052240698ebd4da83f6126f10
[ "BSD-3-Clause" ]
null
null
null
host/greatfet/commands/greatfet_dac.py
colinoflynn/greatfet
ee81a2101b21f69052240698ebd4da83f6126f10
[ "BSD-3-Clause" ]
1
2021-05-19T17:20:41.000Z
2021-05-19T17:20:41.000Z
#!/usr/bin/env python3 # # This file is part of GreatFET from __future__ import print_function import errno import sys import greatfet from greatfet import GreatFET from greatfet.utils import log_silent, log_verbose def main(): from greatfet.utils import GreatFETArgumentParser # Set up a simple argument p...
28.934783
105
0.689707
7966fe3ea6ab6cb80ff096b6f464cccbd1de0ce2
3,425
py
Python
homeassistant/components/device_tracker/swisscom.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/device_tracker/swisscom.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/device_tracker/swisscom.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for Swisscom routers (Internet-Box). For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.swisscom/ """ import logging import threading from datetime import timedelta import requests import voluptuous as vol import homeassistant.he...
31.422018
77
0.628613
7966feae592c6aedee2bbabe9211c814d60718e5
750
py
Python
Java/javaCode/add_port_to_nodes.py
jdecouchant/PAG
99c1d6afac05e3f4b488e45e6ef08c17aed6d193
[ "MIT" ]
null
null
null
Java/javaCode/add_port_to_nodes.py
jdecouchant/PAG
99c1d6afac05e3f4b488e45e6ef08c17aed6d193
[ "MIT" ]
null
null
null
Java/javaCode/add_port_to_nodes.py
jdecouchant/PAG
99c1d6afac05e3f4b488e45e6ef08c17aed6d193
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys nb_args = len(sys.argv) args = sys.argv if len(sys.argv) != 5: print "Usage: ", sys.argv[0], " nbClientsPerHost InFile OutFile startPortNbr" sys.exit(1) # The first node is also affected the source of the stream nb_clients_per_host = int(sys.argv[1]) fin = open(sys.argv[2], '...
20.833333
81
0.566667
7966ff0e3ec71eb4e1488f14179e8279435c501d
2,142
py
Python
exe0908.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe0908.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe0908.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
class User(): """Represent a simple user profile.""" def __init__(self, first_name, last_name, username, email, location): """Initialize the user.""" self.first_name = first_name.title() self.last_name = last_name.title() self.username = username self.email = email ...
29.342466
79
0.634454
79670024d3338fc580ec46141a92062fc87a9f12
213
py
Python
palindrome.py
ShreyaDayma-cse/Python_Scripts
b5b97eb65349863c2227dacc5c430116f95c53fb
[ "Unlicense" ]
null
null
null
palindrome.py
ShreyaDayma-cse/Python_Scripts
b5b97eb65349863c2227dacc5c430116f95c53fb
[ "Unlicense" ]
null
null
null
palindrome.py
ShreyaDayma-cse/Python_Scripts
b5b97eb65349863c2227dacc5c430116f95c53fb
[ "Unlicense" ]
null
null
null
num=int(input("Enter a number:")) temp=num rev=0 while(num>0): dig=num%10 rev=rev*10+dig num=num//10 if(temp==rev): print("The number is palindrome!") else: print("Not a palindrome!")
19.363636
39
0.600939
7967007db00551ce7c13c370318434ef73c3d68b
2,537
py
Python
src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_vault_commands.py
JosephClarkClayton/azure-cli
44e1af8768f0365601014f6aa7f411abe990623b
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_vault_commands.py
JosephClarkClayton/azure-cli
44e1af8768f0365601014f6aa7f411abe990623b
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/netappfiles/tests/latest/test_vault_commands.py
JosephClarkClayton/azure-cli
44e1af8768f0365601014f6aa7f411abe990623b
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
52.854167
112
0.600315
79670080044bdfa9e512c53517f99447c283b904
5,181
py
Python
tictactoe.py
LocOpenDev/snippets
3f51c6d2a7fb1f7e057bc9cd7d680a1b62d748a5
[ "MIT" ]
null
null
null
tictactoe.py
LocOpenDev/snippets
3f51c6d2a7fb1f7e057bc9cd7d680a1b62d748a5
[ "MIT" ]
null
null
null
tictactoe.py
LocOpenDev/snippets
3f51c6d2a7fb1f7e057bc9cd7d680a1b62d748a5
[ "MIT" ]
null
null
null
import random, sys class Error(Exception): """Tictactoe module base Error class""" pass class DuplicationInputError(Error): """Duplication input error""" pass class OutOfRangeInputError(Error): """Out of range input error""" pass class Node: """Tictactoe node Attributes: ...
30.656805
87
0.489674
7967008472e57de20102cb59be6e0535ea6280b0
4,171
py
Python
CIM100/IEC61970/Base/Meas/Accumulator.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM100/IEC61970/Base/Meas/Accumulator.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM100/IEC61970/Base/Meas/Accumulator.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
40.892157
169
0.69192
7967011afdc042fa0ff1550b103ddaa601c9df36
4,431
py
Python
synapse/storage/_base.py
dsonck92/synapse
2560b1b6b2f74b5724253396c0e3665fa1f7968c
[ "Apache-2.0" ]
9,945
2015-01-02T07:41:06.000Z
2022-03-31T23:22:42.000Z
synapse/storage/_base.py
dsonck92/synapse
2560b1b6b2f74b5724253396c0e3665fa1f7968c
[ "Apache-2.0" ]
9,320
2015-01-08T14:09:03.000Z
2022-03-31T21:11:24.000Z
synapse/storage/_base.py
dsonck92/synapse
2560b1b6b2f74b5724253396c0e3665fa1f7968c
[ "Apache-2.0" ]
2,299
2015-01-31T22:16:29.000Z
2022-03-31T06:08:26.000Z
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2017-2018 New Vector Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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....
34.617188
88
0.683367
796701b3bdb0ff2ed02caeadff36cb9a45669e56
8,764
py
Python
HyBayes/make_configs.py
allenai/HyBayes
9ac1b923953f471f104a4312499d007a676edc92
[ "Apache-2.0" ]
15
2019-12-07T18:37:43.000Z
2021-11-10T12:21:35.000Z
HyBayes/make_configs.py
allenai/HyBayes
9ac1b923953f471f104a4312499d007a676edc92
[ "Apache-2.0" ]
null
null
null
HyBayes/make_configs.py
allenai/HyBayes
9ac1b923953f471f104a4312499d007a676edc92
[ "Apache-2.0" ]
1
2019-11-14T04:46:02.000Z
2019-11-14T04:46:02.000Z
import argparse import configparser import copy import os from .utils import * script_address = os.path.abspath(__file__) config_folder_name = "configs" config_template_address = script_address.replace("make_configs.py", "config_template.ini") artificial_data_folder_name = "artificial_data" def read_template_config...
37.452991
117
0.67298
796702da4320d9a0c472e01cbea357fe2dd54596
299
py
Python
test_package/conanfile.py
mjvk/conan-gcovr_installer
6c5d399eab366ed43aab8b05f795e93afbe225ec
[ "MIT" ]
null
null
null
test_package/conanfile.py
mjvk/conan-gcovr_installer
6c5d399eab366ed43aab8b05f795e93afbe225ec
[ "MIT" ]
null
null
null
test_package/conanfile.py
mjvk/conan-gcovr_installer
6c5d399eab366ed43aab8b05f795e93afbe225ec
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake_paths" def test(self): if not tools.cross_building(self.settings): self.run("gcovr --version", run_environment=True)
29.9
61
0.67893
7967034be682c5b4949b14bb812f51236698e052
2,171
py
Python
experiments/results_pystruct_cv.py
vene/marseille
c86faf3d97fd9063a6fe0ee74b302f09250e36c5
[ "BSD-3-Clause" ]
65
2017-04-25T01:14:03.000Z
2022-03-22T06:11:48.000Z
experiments/results_pystruct_cv.py
vene/marseille
c86faf3d97fd9063a6fe0ee74b302f09250e36c5
[ "BSD-3-Clause" ]
9
2017-07-18T16:47:51.000Z
2021-03-15T20:25:27.000Z
experiments/results_pystruct_cv.py
vene/marseille
c86faf3d97fd9063a6fe0ee74b302f09250e36c5
[ "BSD-3-Clause" ]
34
2017-04-25T14:38:18.000Z
2021-12-20T12:50:56.000Z
import numpy as np import sys from marseille.io import load_results from marseille.custom_logging import logging if __name__ == '__main__': dataset = sys.argv[1] pystruct_df = [] class_weight = 'balanced' Cs = (0.001, 0.003, 0.01, 0.03, 0.1, 0.3, 1, 3, 10) constraint_vals = ('', dataset, datase...
39.472727
76
0.452326
7967038e76cd1c23c343e64894b8b956ec1ace97
14,595
py
Python
tensorflow/python/keras/_impl/keras/estimator_test.py
acharal/tensorflow
c5d99169bea3f5d1e3cef973690d2ec7fdbac80f
[ "Apache-2.0" ]
3
2017-10-27T05:37:59.000Z
2018-05-25T02:46:40.000Z
tensorflow/python/keras/_impl/keras/estimator_test.py
acharal/tensorflow
c5d99169bea3f5d1e3cef973690d2ec7fdbac80f
[ "Apache-2.0" ]
1
2018-05-04T23:17:25.000Z
2018-05-04T23:17:25.000Z
tensorflow/python/keras/_impl/keras/estimator_test.py
acharal/tensorflow
c5d99169bea3f5d1e3cef973690d2ec7fdbac80f
[ "Apache-2.0" ]
2
2021-01-04T21:15:02.000Z
2021-10-15T10:45:47.000Z
# Copyright 2016 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...
37.137405
80
0.675642
796705a39269ed1b0f20406e6d945dd4f5085410
6,445
py
Python
Tools/scons/scons-local/SCons/Tool/dmd.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/dmd.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/dmd.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
from __future__ import print_function """SCons.Tool.dmd Tool-specific initialization for the Digital Mars D compiler. (http://digitalmars.com/d) Originally coded by Andy Friesen (andy@ikagames.com) 15 November 2003 Evolved by Russel Winder (russel@winder.org.uk) 2010-02-07 onwards Compiler variables: ...
39.783951
138
0.674787
796707a4256778838c8db25b0dbf83329ac08df1
134
py
Python
profile_api/admin.py
dipanshu-13/django-api-begin
b008bf051efe300b3fd12091242203b61c4b3205
[ "MIT" ]
null
null
null
profile_api/admin.py
dipanshu-13/django-api-begin
b008bf051efe300b3fd12091242203b61c4b3205
[ "MIT" ]
6
2021-03-19T12:03:56.000Z
2022-02-10T15:14:30.000Z
profile_api/admin.py
dipanshu-13/django-api-begin
b008bf051efe300b3fd12091242203b61c4b3205
[ "MIT" ]
null
null
null
from django.contrib import admin from profile_api import models admin.site.register(models.UserProfile) # Register your models here.
22.333333
39
0.828358
79670877216f5544bdb2219b26a7182814bba578
555
py
Python
manage.py
zdassen/jim-on-git
aa006abdab984c43ea3545d2b8a766a6a003d1c5
[ "Apache-2.0" ]
null
null
null
manage.py
zdassen/jim-on-git
aa006abdab984c43ea3545d2b8a766a6a003d1c5
[ "Apache-2.0" ]
null
null
null
manage.py
zdassen/jim-on-git
aa006abdab984c43ea3545d2b8a766a6a003d1c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jimongit.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import D...
34.6875
74
0.668468
796709070ac90c7d0e8debe314aa9cd8b0990a52
3,446
py
Python
calender/calender/settings.py
lamaqdahodwala/calender
3b21f35b695ed18e648a3e92651a594d2b62b5e6
[ "MIT" ]
null
null
null
calender/calender/settings.py
lamaqdahodwala/calender
3b21f35b695ed18e648a3e92651a594d2b62b5e6
[ "MIT" ]
null
null
null
calender/calender/settings.py
lamaqdahodwala/calender
3b21f35b695ed18e648a3e92651a594d2b62b5e6
[ "MIT" ]
null
null
null
""" Django settings for calender project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathli...
26.106061
91
0.700522
79670921ffeca430a258b090b06d90f8406d663e
4,922
py
Python
avaya/loadIQ.py
nd1/odds-and-ends
8be5c6dfab733038bb3b7a35eaa6ae4f630d2ace
[ "MIT" ]
null
null
null
avaya/loadIQ.py
nd1/odds-and-ends
8be5c6dfab733038bb3b7a35eaa6ae4f630d2ace
[ "MIT" ]
null
null
null
avaya/loadIQ.py
nd1/odds-and-ends
8be5c6dfab733038bb3b7a35eaa6ae4f630d2ace
[ "MIT" ]
null
null
null
''' Load Avaya IQ report data to a MS SQL db. Nicole Donnelly 20170530 ''' import os import sys import pandas as pd from sqlalchemy import create_engine, text, types def convert_time(x): # change a hh:mm:ss string to number of seconds times = x.split(':') return (360*int(times[0])+60*int(times[1]))+in...
39.063492
79
0.58208
79670ad8787cdccec2d1880f315c46a2b7db3199
1,426
py
Python
lang/py/pylib/code/xml/etree/ElementTree/ElementTree_podcast_csv_treebuilder.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/xml/etree/ElementTree/ElementTree_podcast_csv_treebuilder.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/xml/etree/ElementTree/ElementTree_podcast_csv_treebuilder.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Convert XML list of podcasts to a CSV file. """ #end_pymotw_header import csv from xml.etree.ElementTree import XMLTreeBuilder import sys class PodcastListToCSV(object): def __init__(self, outputFile): ...
26.407407
67
0.545582
79670c920116e7da0d7dbbe59192fbaf092ac61e
2,940
py
Python
examples/demineur.py
GabrielAmare/tklib37
5da3353045b0f75ccfcec48b33ea2ba70f4854a0
[ "MIT" ]
null
null
null
examples/demineur.py
GabrielAmare/tklib37
5da3353045b0f75ccfcec48b33ea2ba70f4854a0
[ "MIT" ]
null
null
null
examples/demineur.py
GabrielAmare/tklib37
5da3353045b0f75ccfcec48b33ea2ba70f4854a0
[ "MIT" ]
null
null
null
from tklib37 import * import random colors = ["black", "#1fcf19", "#1d9119", "#4b6b0f", "#7a630d", "#995711", "#802e05", "#800505", "#330202"] deltas = [(-1, 0), (1, 0), (0, -1), (0, 1), (-1, 1), (1, -1), (1, 1), (-1, -1)] hidden_cell_config = dict(bd=1, relief=RAISED, bg="lightgray", width=2, height=1, font="Helvetic...
34.186047
107
0.55
79670ccf1f85564c8c291f4a4439fc9ffc095bf9
1,099
py
Python
tests/molecular/topology_graphs/vertex/placement/cases/macrocycle/fixtures/no_flip.py
andrewtarzia/stk
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
tests/molecular/topology_graphs/vertex/placement/cases/macrocycle/fixtures/no_flip.py
JelfsMaterialsGroup/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
tests/molecular/topology_graphs/vertex/placement/cases/macrocycle/fixtures/no_flip.py
supramolecular-toolkit/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
import pytest import numpy as np import stk from ....case_data import CaseData from .utilities import ( get_closest_point, get_fg_position, get_edges, get_points, ) @pytest.fixture def no_flip(position, building_block_2, angle): point1, point2 = points = tuple(get_points(position, angle)) d...
22.895833
64
0.623294
79670d436cf08b8d897a3b27b69698e8637e9831
2,037
gyp
Python
content/browser/debugger/devtools_resources.gyp
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
7
2015-05-20T22:41:35.000Z
2021-11-18T19:07:59.000Z
content/browser/debugger/devtools_resources.gyp
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
1
2015-02-02T06:55:08.000Z
2016-01-20T06:11:59.000Z
content/browser/debugger/devtools_resources.gyp
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
# Copyright (c) 2012 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. { 'variables': { 'conditions': [ ['inside_chromium_build==0', { 'webkit_src_dir': '../../../../../..', },{ 'webkit_src_...
35.12069
90
0.526755
79670e51e2528eaff81fe96a2dcb12f813ec2ac1
4,948
py
Python
test/functional/p2p_ping.py
asuka431/fujicoin-22.0
9e338be2116022f0d18df153298b8881e6145f04
[ "MIT" ]
null
null
null
test/functional/p2p_ping.py
asuka431/fujicoin-22.0
9e338be2116022f0d18df153298b8881e6145f04
[ "MIT" ]
null
null
null
test/functional/p2p_ping.py
asuka431/fujicoin-22.0
9e338be2116022f0d18df153298b8881e6145f04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Baricoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test ping message """ import time from test_framework.messages import msg_pong from test_framework.p2p im...
41.579832
97
0.692401
79670ef0254d8e3c6ed06da1887b0e30f8cdef69
6,512
py
Python
sdk/python/pulumi_azure_nextgen/appconfiguration/v20191001/get_configuration_store.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/appconfiguration/v20191001/get_configuration_store.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/appconfiguration/v20191001/get_configuration_store.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
35.391304
169
0.64266
79670f74a134728e07948695a3be8838ea58e9f6
6,939
py
Python
GO-Bot-DRL-master-reinforce/train.py
prajwalbv99/RLChatBot
daba1d60b691d46fdd8e4cefd38fb275b5cb369e
[ "MIT" ]
null
null
null
GO-Bot-DRL-master-reinforce/train.py
prajwalbv99/RLChatBot
daba1d60b691d46fdd8e4cefd38fb275b5cb369e
[ "MIT" ]
null
null
null
GO-Bot-DRL-master-reinforce/train.py
prajwalbv99/RLChatBot
daba1d60b691d46fdd8e4cefd38fb275b5cb369e
[ "MIT" ]
null
null
null
from user_simulator import UserSimulator from error_model_controller import ErrorModelController from dqn_agent import DQNAgent from state_tracker import StateTracker import pickle, argparse, json, math from utils import remove_empty_slots from user import User if __name__ == "__main__": # Can provide constants f...
34.351485
120
0.661334
7967109c04e0e0bd08d3e6ec2e21cbb0c21a2337
2,359
py
Python
data/p4VQE/R4/benchmark/startQiskit_Class54.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class54.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_Class54.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=9 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
26.806818
118
0.6312
79671183285baf02f1fe04cfa50cd52ce2b83d3a
426
py
Python
PACKAGES/DIRMOD/dirMe.py
OSHI7/Learning1
fa8014066e226465bb7989fbbb82a35412c4f634
[ "MIT" ]
null
null
null
PACKAGES/DIRMOD/dirMe.py
OSHI7/Learning1
fa8014066e226465bb7989fbbb82a35412c4f634
[ "MIT" ]
3
2020-03-24T18:02:39.000Z
2020-10-06T21:32:23.000Z
PACKAGES/DIRMOD/dirMe.py
OSHI7/Learning1
fa8014066e226465bb7989fbbb82a35412c4f634
[ "MIT" ]
1
2017-07-31T13:15:54.000Z
2017-07-31T13:15:54.000Z
# -*- coding: utf-8 -*- ''' j.philipson 10:51 PM, 2/25/2021 ''' import os def listDirectoryContents(mydir=None): if mydir is None: mydir = os.getcwd() else: pass contents = os.listdir(mydir) # returns list print(f"\ncontents of >>{mydir}<< are:") for i, content in enumerate(conte...
19.363636
47
0.596244
7967124ba6a81f12caa08e242c065334c9e21863
2,186
py
Python
earth_enterprise/src/fusion/portableglobe/cutter/cgi-bin/admin/apache_logs.py
seamusdunlop123/earthenterprise
a2651b1c00dd6230fd5d3d47502d228dbfca0f63
[ "Apache-2.0" ]
1
2020-02-12T10:28:29.000Z
2020-02-12T10:28:29.000Z
earth_enterprise/src/fusion/portableglobe/cutter/cgi-bin/admin/apache_logs.py
seamusdunlop123/earthenterprise
a2651b1c00dd6230fd5d3d47502d228dbfca0f63
[ "Apache-2.0" ]
null
null
null
earth_enterprise/src/fusion/portableglobe/cutter/cgi-bin/admin/apache_logs.py
seamusdunlop123/earthenterprise
a2651b1c00dd6230fd5d3d47502d228dbfca0f63
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # # Copyright 2017 Google Inc. # # 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...
28.38961
75
0.690759
796712aacca06f3963ab41b2cbd66fa769bc48ca
980
py
Python
fmcheck/tests/test_utils.py
vsk2015/fmtool
c7c9c786e258294f65883c45d14cdcb263be35d2
[ "MIT" ]
null
null
null
fmcheck/tests/test_utils.py
vsk2015/fmtool
c7c9c786e258294f65883c45d14cdcb263be35d2
[ "MIT" ]
null
null
null
fmcheck/tests/test_utils.py
vsk2015/fmtool
c7c9c786e258294f65883c45d14cdcb263be35d2
[ "MIT" ]
null
null
null
""" Unit test utils functionality """ import pytest from fmcheck.switch import Switch from fmcheck.link import Link from fmcheck.group import Group from fmcheck.utils import check_mandatory_values from fmcheck.utils import contains_filters import logging def return_switch(): return {'switch': [{'name': 's11', '...
31.612903
308
0.677551
796715d0405eba9495fbd42af53345ffa5f4aff7
121
py
Python
asynchronous_qiwi/models/QIWIWallet/webhook_m/hook_response.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
3
2021-05-20T02:36:30.000Z
2021-11-28T16:00:15.000Z
asynchronous_qiwi/models/QIWIWallet/webhook_m/hook_response.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
null
null
null
asynchronous_qiwi/models/QIWIWallet/webhook_m/hook_response.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
1
2021-11-28T16:00:20.000Z
2021-11-28T16:00:20.000Z
from pydantic import BaseModel, Field class HookResponse(BaseModel): response: str = Field(..., alias="response")
17.285714
48
0.719008
7967160a229d2d40f504cfca6dee4e9a675dcd59
1,785
py
Python
1. Variables and Data Types/exercises.py
Descent098/python-exercises
767ba750e5cae0d213b9abfd709ff8f6e4d4a1ac
[ "MIT" ]
null
null
null
1. Variables and Data Types/exercises.py
Descent098/python-exercises
767ba750e5cae0d213b9abfd709ff8f6e4d4a1ac
[ "MIT" ]
3
2019-11-21T20:00:06.000Z
2020-05-24T03:23:52.000Z
1. Variables and Data Types/exercises.py
Descent098/PYTH-101
767ba750e5cae0d213b9abfd709ff8f6e4d4a1ac
[ "MIT" ]
null
null
null
""" =========== Exercise 1 ============= Using a list, create a shopping list of 5 items. Then print the whole list, and then each item individually. """ shopping_list = [] # Fill in with some values print(shopping_list) # Print the whole list print() # Figure out how to print individual values """ ...
28.333333
141
0.67451
796716963672e66a98733d4af3b4e3a7c5c4ce3a
2,896
py
Python
frappe-bench/env/lib/python2.7/site-packages/faker/providers/isbn/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/faker/providers/isbn/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/faker/providers/isbn/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import BaseProvider from .isbn import ISBN, ISBN10, ISBN13 from .rules import RULES class Provider(BaseProvider): """ Generates fake ISBNs. ISBN rules vary across languages/regions so this class makes no attempt at replicating all of the rules. ...
39.135135
78
0.660912
796719f51b2b1678350bc1ca2994a8e8b117c79d
407
py
Python
Ago-Dic-2019/IvanMedina/pythonCrash/guestList.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/IvanMedina/pythonCrash/guestList.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/IvanMedina/pythonCrash/guestList.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
''' Juan Ivan Medina Martinez Exercise 3.4 ''' def inviteguests(list_guests): for guest in list_guests: print("Hey {}!, We haven't talked for a long time, do you want to go out to dinner with me today?".format(guest)) return len(list_guests)#This is for exercise 3.9 if __name__ == "__main__": lis...
25.4375
116
0.687961
79671a24bd61f345cadeaf2d359768c286898298
36,777
py
Python
meraki/aio/api/sm.py
ez1mm/dashboard-api-python
e95348fbb7d663855bde1ada54a1d195c658a881
[ "MIT" ]
null
null
null
meraki/aio/api/sm.py
ez1mm/dashboard-api-python
e95348fbb7d663855bde1ada54a1d195c658a881
[ "MIT" ]
null
null
null
meraki/aio/api/sm.py
ez1mm/dashboard-api-python
e95348fbb7d663855bde1ada54a1d195c658a881
[ "MIT" ]
null
null
null
class AsyncSm: def __init__(self, session): super().__init__() self._session = session def createNetworkSmBypassActivationLockAttempt(self, networkId: str, ids: list): """ **Bypass activation lock attempt** https://developer.cisco.com/meraki/api-v1/#!create-network-sm-...
41.982877
314
0.635152
79671a53722d0e4142404ff01a31ff43f2883646
248
py
Python
ex03a.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
ex03a.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
ex03a.py
arunkumarang/python
1960e285dfe2ef54d2e3ab37584bfef8b24ecca9
[ "Apache-2.0" ]
null
null
null
print "Area of circle (radius = 10): ", 2 * 3.141562 * 10 * 10 # 2 * Pi * r * r print "PI is greater than -PI:", 3.141532 > -3.141532 print "PI is less than -PI:", 3.141532 < -3.141532 print "PI is greater or equal to PI:", 3.141532 >= 3.141532
35.428571
80
0.612903
79671a9cf7dfdd0c5be3b1bf84311245495c37ab
798
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractCobaSemuanyaBlogspotCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractCobaSemuanyaBlogspotCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractCobaSemuanyaBlogspotCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractCobaSemuanyaBlogspotCom(item): ''' Parser for 'coba-semuanya.blogspot.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None if 'Game' in item['tags']: return None if 'Bahasa Indonesia' in item['...
27.517241
104
0.62406
79671cd1ce88bca54af1b4145308172ea7174db8
96,119
py
Python
addons/iqbrims/tests/test_views.py
yacchin1205/RDM2-osf.io
969327b37acb667f6f3b3631832b0644c08cc3d5
[ "Apache-2.0" ]
null
null
null
addons/iqbrims/tests/test_views.py
yacchin1205/RDM2-osf.io
969327b37acb667f6f3b3631832b0644c08cc3d5
[ "Apache-2.0" ]
2
2018-06-05T07:51:29.000Z
2019-01-21T06:14:52.000Z
addons/iqbrims/tests/test_views.py
yacchin1205/RDM2-osf.io
969327b37acb667f6f3b3631832b0644c08cc3d5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib import json import mock from nose.tools import * # noqa import pytest import re import urllib from addons.base.tests.views import OAuthAddonAuthViewsTestCaseMixin, OAuthAddonConfigViewsTestCaseMixin from addons.iqbrims.tests.utils import mock_folders as sample_folder_data from a...
47.536597
203
0.626713
79671ec45b59b667fe471f17a9b24f009db84744
8,493
py
Python
src/cnaas_nac/api/external/auth.py
SUNET/cnaas-nac
9acb7e767e9464f9879ba4669dc3d3dfc2149ca8
[ "BSD-2-Clause" ]
1
2020-12-23T03:31:03.000Z
2020-12-23T03:31:03.000Z
src/cnaas_nac/api/external/auth.py
SUNET/cnaas-nac
9acb7e767e9464f9879ba4669dc3d3dfc2149ca8
[ "BSD-2-Clause" ]
4
2020-02-18T10:43:46.000Z
2021-12-07T09:16:33.000Z
src/cnaas_nac/api/external/auth.py
SUNET/cnaas-nac
9acb7e767e9464f9879ba4669dc3d3dfc2149ca8
[ "BSD-2-Clause" ]
2
2019-09-19T07:13:02.000Z
2021-06-18T12:39:09.000Z
import os import json from flask import request, make_response from flask_restx import Resource, Namespace, fields from flask_jwt_extended import jwt_required from cnaas_nac.api.generic import empty_result from cnaas_nac.tools.log import get_logger from cnaas_nac.db.user import User, get_users, UserInfo from cnaas_na...
31.928571
91
0.565878
79671ed21e66343ea60ad61558b39b65085250e5
14,325
py
Python
tools/codesigningtool/codesigningtool.py
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
313
2017-03-29T21:47:08.000Z
2022-03-29T03:09:50.000Z
tools/codesigningtool/codesigningtool.py
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
786
2017-03-30T16:15:59.000Z
2022-03-31T19:58:05.000Z
tools/codesigningtool/codesigningtool.py
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
172
2017-04-24T01:55:24.000Z
2022-03-25T19:23:31.000Z
# Copyright 2018 The Bazel 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 la...
34.435096
126
0.688517