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
6fd08494a3ca1279fc553e7ba2f5e4e6e8104fd1
8,400
py
Python
metrics/get_predictions_metrics.py
sparks-baird/RoboCrab
9b7577911e42c87b911ebb4d9d3e691a58c63cbe
[ "MIT" ]
44
2020-02-20T09:56:39.000Z
2022-03-09T08:49:31.000Z
metrics/get_predictions_metrics.py
sparks-baird/RoboCrab
9b7577911e42c87b911ebb4d9d3e691a58c63cbe
[ "MIT" ]
21
2020-02-24T14:30:05.000Z
2022-03-26T19:38:42.000Z
metrics/get_predictions_metrics.py
sparks-baird/RoboCrab
9b7577911e42c87b911ebb4d9d3e691a58c63cbe
[ "MIT" ]
13
2020-12-15T13:53:12.000Z
2022-03-31T12:25:26.000Z
import pandas as pd import os from utils.composition import _fractional_composition def norm_form(formula): comp = _fractional_composition(formula) form = '' for key, value in comp.items(): form += f'{key}{str(value)[0:9]}' return form def count_elems(string): count = 0 switch = 1 ...
43.076923
104
0.577738
2f12f4e95050f417c0829adab8a631326ae7c192
8,720
py
Python
Utils/download_packs_and_docker_images.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
1
2022-03-15T13:16:24.000Z
2022-03-15T13:16:24.000Z
Utils/download_packs_and_docker_images.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Utils/download_packs_and_docker_images.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
null
null
null
# Perquisites to run this script: # # 1. Python 3.8+ # 2. requests python lib should be installed (can be installed by running "pip install requests" or "pip3 install requests") # 3. docker is installed (if docker is not install, you can skip docker download using the `-sd` option) # 4. docker python is installed (inst...
43.6
125
0.652638
e24849c1589ecafda5e401d1c491fc6ee9506089
11,840
py
Python
examples/Nolan/AFRL/Hipersonica/hyper23.py
Rapid-Design-of-Systems-Laboratory/beluga-legacy
d14713d8211b64293c4427005cf02fbd58630598
[ "MIT" ]
1
2019-03-26T03:00:03.000Z
2019-03-26T03:00:03.000Z
examples/Nolan/AFRL/Hipersonica/hyper23.py
Rapid-Design-of-Systems-Laboratory/beluga-legacy
d14713d8211b64293c4427005cf02fbd58630598
[ "MIT" ]
null
null
null
examples/Nolan/AFRL/Hipersonica/hyper23.py
Rapid-Design-of-Systems-Laboratory/beluga-legacy
d14713d8211b64293c4427005cf02fbd58630598
[ "MIT" ]
1
2019-07-14T22:53:52.000Z
2019-07-14T22:53:52.000Z
if __name__ == "__main__": import numpy as np import beluga.Beluga as Beluga import beluga.bvpsol as bvpsol import beluga.bvpsol.algorithms as algorithms import beluga.optim.Problem from beluga.optim.problem import * from beluga.continuation import * import logging # Import Librari...
35.987842
288
0.509459
7a63af95b623349d41866798a766b2bfb8754e26
5,297
py
Python
src/esapy/api_growi.py
KosukeMizuno/esapy
9b4955f3e50a83f8336a5d155cd47c27c3a135ae
[ "MIT" ]
6
2020-02-25T00:53:09.000Z
2021-07-21T16:49:41.000Z
src/esapy/api_growi.py
KosukeMizuno/esapy
9b4955f3e50a83f8336a5d155cd47c27c3a135ae
[ "MIT" ]
28
2020-02-24T10:48:35.000Z
2021-07-25T18:01:00.000Z
src/esapy/api_growi.py
KosukeMizuno/esapy
9b4955f3e50a83f8336a5d155cd47c27c3a135ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from pathlib import Path import mimetypes import requests import json import uuid from urllib.parse import quote import hashlib # logger from logging import getLogger logger = getLogger(__name__) from .loadrc import KEY_GROWI_USERNAME def _set_proxy(proxy): if proxy is None: ...
28.175532
90
0.603738
342f41edd126c7ad0c1dd0e2d5eb76844d9467b7
1,430
py
Python
FeatureAssembler/fstrategies/ASTEmbedding/tool_io/readAndCompareResults.py
sed-inf-u-szeged/DeepWaterFramework
30e9c0145300e24834a3d4a7dde25002c638dd5a
[ "Apache-2.0" ]
6
2020-06-18T22:38:09.000Z
2022-01-13T14:32:56.000Z
FeatureAssembler/fstrategies/ASTEmbedding/tool_io/readAndCompareResults.py
sed-inf-u-szeged/DeepWaterFramework
30e9c0145300e24834a3d4a7dde25002c638dd5a
[ "Apache-2.0" ]
18
2020-01-13T08:32:53.000Z
2021-07-23T08:26:02.000Z
FeatureAssembler/fstrategies/ASTEmbedding/tool_io/readAndCompareResults.py
sed-inf-u-szeged/DeepWaterFramework
30e9c0145300e24834a3d4a7dde25002c638dd5a
[ "Apache-2.0" ]
2
2020-06-18T09:50:59.000Z
2021-03-18T04:52:53.000Z
import csv import sys import json def readDbhCsv(directory): retData = dict() filename=directory+"/dbh.csv" with open(filename, mode='r', encoding='utf-8' ) as resultFile: reader=csv.reader(resultFile, dialect='excel', delimiter = ";") data=list(reader) for i in range(len(data)): retData[da...
32.5
94
0.537762
c3994e857ad786403ca45e6ddd0bf13f31707920
3,970
py
Python
dcodex_lectionary/migrations/0030_auto_20201119_2131.py
rbturnbull/dcodex_lectionary
9a4787eb353d09fef023cd82af8859a7ee041aee
[ "Apache-2.0" ]
null
null
null
dcodex_lectionary/migrations/0030_auto_20201119_2131.py
rbturnbull/dcodex_lectionary
9a4787eb353d09fef023cd82af8859a7ee041aee
[ "Apache-2.0" ]
2
2021-08-09T01:11:59.000Z
2021-08-09T01:12:49.000Z
dcodex_lectionary/migrations/0030_auto_20201119_2131.py
rbturnbull/dcodex_lectionary
9a4787eb353d09fef023cd82af8859a7ee041aee
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.11 on 2020-11-19 10:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('dcodex_lectionary', '0029_auto_20201116_2119'), ] opera...
47.261905
225
0.58262
a15539defe06aaaee59a56bdf879cfcb36c49150
2,371
py
Python
07-the-sum-of-its-parts.py
gosiqueira/advent-of-code-2018
04e784afadd71adcce7c33c6e07ed116b4d0a350
[ "MIT" ]
null
null
null
07-the-sum-of-its-parts.py
gosiqueira/advent-of-code-2018
04e784afadd71adcce7c33c6e07ed116b4d0a350
[ "MIT" ]
null
null
null
07-the-sum-of-its-parts.py
gosiqueira/advent-of-code-2018
04e784afadd71adcce7c33c6e07ed116b4d0a350
[ "MIT" ]
null
null
null
""" Day 07 - The Sum of Its Parts --- source: https://adventofcode.com/2018/day/7 """ import argparse import string import time from collections import deque from utils import get_input def the_sum_of_its_parts(verbose=False): instructions = get_input(day=7) tasks = {} for ch in string.ascii_uppercase:...
25.771739
81
0.537748
762639efb4dcf533016583515f36a965fdd98f1a
533
py
Python
djenealog/tables.py
nim65s/djenealog
3666cd65d22e118294f477b41f8e56b04b56a52d
[ "BSD-2-Clause" ]
null
null
null
djenealog/tables.py
nim65s/djenealog
3666cd65d22e118294f477b41f8e56b04b56a52d
[ "BSD-2-Clause" ]
2
2018-04-25T11:54:34.000Z
2020-03-09T07:11:35.000Z
djenealog/tables.py
nim65s/djenealog
3666cd65d22e118294f477b41f8e56b04b56a52d
[ "BSD-2-Clause" ]
null
null
null
import django_tables2 as tables from . import models class IndividuTable(tables.Table): edit = tables.Column(accessor="get_link", orderable=False) class Meta: model = models.Individu fields = ("prenom", "nom", "masculin", "parents", "edit") def render_masculin(self, value): retu...
23.173913
65
0.643527
ae244ebc1fd2cdd1307f87bf93cc983ef58bf53a
10,060
py
Python
pybind/slxos/v16r_1_00b/routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/af_ipv4_uc_and_vrf_cmds_call_point_holder/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/af_ipv4_uc_and_vrf_cmds_call_point_holder/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/af_ipv4_uc_and_vrf_cmds_call_point_holder/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
63.27044
544
0.74672
5fa4c9a3b44213887af00e87cbfca8002d360f0d
3,408
py
Python
iommi/page__tests.py
yanhuixie/iommi
b6ae39c270b10b553a7ef2ab52e8c1c96489db0b
[ "BSD-3-Clause" ]
192
2020-01-30T14:29:56.000Z
2022-03-28T19:55:30.000Z
iommi/page__tests.py
yanhuixie/iommi
b6ae39c270b10b553a7ef2ab52e8c1c96489db0b
[ "BSD-3-Clause" ]
105
2020-03-29T21:59:01.000Z
2022-03-24T12:29:09.000Z
iommi/page__tests.py
yanhuixie/iommi
b6ae39c270b10b553a7ef2ab52e8c1c96489db0b
[ "BSD-3-Clause" ]
28
2020-02-02T20:51:09.000Z
2022-03-08T16:23:42.000Z
from platform import python_implementation import pytest from django.test import override_settings from iommi import ( Fragment, html, Page, ) from iommi._web_compat import ( Template, ) from iommi.member import _force_bind_all from iommi.part import as_html from tests.helpers import ( prettify, ...
24.875912
125
0.631455
b34a7a2b6f42413f938aa27d7894a8c779efa992
339
py
Python
csv_manager/views.py
Apfirebolt/CSV-File-Manager-in-Django
e708038c1f9951ec593b37bee5dd329268643af0
[ "MIT" ]
null
null
null
csv_manager/views.py
Apfirebolt/CSV-File-Manager-in-Django
e708038c1f9951ec593b37bee5dd329268643af0
[ "MIT" ]
null
null
null
csv_manager/views.py
Apfirebolt/CSV-File-Manager-in-Django
e708038c1f9951ec593b37bee5dd329268643af0
[ "MIT" ]
null
null
null
from django.shortcuts import render def handler404(request, exception): return render(request, '404.html') def handler403(request, exception): return render(request, '403.html') def handler500(request, exception): return render(request, '500.html') def handler400(request, exception): return render(r...
19.941176
37
0.740413
902da8cbd33808618399125bb013b3cfef957b80
4,479
py
Python
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018-2020 NXP # SPDX-License-Identifier: Apache-2.0 # # """License text""" import logging from . import sss_api as apis from .keystore import KeyStore from .keyobject import KeyObject from .getkey import Get from .util import get_ecc_cypher_type log = logging.getLogger(__name__) class Generate: "...
33.177778
124
0.621121
2272a3280e0c69e50c6002475d88955fc50890e0
5,289
py
Python
tests/test_pack.py
genenetwork/cwltool
15539fba76993f951af9eba913bea6d677c74005
[ "Apache-2.0" ]
null
null
null
tests/test_pack.py
genenetwork/cwltool
15539fba76993f951af9eba913bea6d677c74005
[ "Apache-2.0" ]
null
null
null
tests/test_pack.py
genenetwork/cwltool
15539fba76993f951af9eba913bea6d677c74005
[ "Apache-2.0" ]
null
null
null
import json import os import tempfile from functools import partial from six import StringIO import pytest import cwltool.pack import cwltool.workflow from cwltool import load_tool from cwltool.load_tool import fetch_document, validate_document from cwltool.main import main, make_relative, print_pack from cwltool.pat...
34.122581
92
0.726035
46a1d62394f245ebdd51b0b2aee95597abd0c394
3,881
py
Python
webCrawler_scrapy/dbhelper.py
bobobo0826/scrapy_wallpaper
8f2eb9a05d49557feab04d9565be211a73e58184
[ "MIT" ]
null
null
null
webCrawler_scrapy/dbhelper.py
bobobo0826/scrapy_wallpaper
8f2eb9a05d49557feab04d9565be211a73e58184
[ "MIT" ]
null
null
null
webCrawler_scrapy/dbhelper.py
bobobo0826/scrapy_wallpaper
8f2eb9a05d49557feab04d9565be211a73e58184
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* #import MySQLdb import scrapy #引入pymysql import pymysql #当成是mysqldb一样使用,当然也可以不写这句,那就按照pymysql的方式 pymysql.install_as_MySQLdb() from scrapy.utils.project import get_project_settings #导入seetings配置 class DBHelper(): '''这个类也是读取settings中的配置,自行修改代码进行操作''' def __init__(self): self.s...
30.801587
105
0.581809
2350ff6eec4023fcc73d69bdc9ddff611b891a58
205
py
Python
app/app.py
jieyinybl/immoscore
0daf9e455a307aed522e2498804776362d6c17ae
[ "MIT" ]
null
null
null
app/app.py
jieyinybl/immoscore
0daf9e455a307aed522e2498804776362d6c17ae
[ "MIT" ]
null
null
null
app/app.py
jieyinybl/immoscore
0daf9e455a307aed522e2498804776362d6c17ae
[ "MIT" ]
null
null
null
from mara_app.app import MaraApp app = MaraApp() # from werkzeug.contrib.profiler import ProfilerMiddleware # app.wsgi_app = ProfilerMiddleware(app.wsgi_app, profile_dir='/tmp/') wsgi_app = app.wsgi_app
25.625
70
0.790244
8f77fcd785601a7a20f1d4d0681c03ec6f82b687
3,197
py
Python
PhoneProbes/eval.py
archiki/ASR-Accent-Analysis
da1dcb8e3a4476c392e01ed410cc47691d693882
[ "MIT" ]
12
2020-07-02T06:51:22.000Z
2022-03-22T19:40:42.000Z
PhoneProbes/eval.py
csalt-research/ASR-Accent-Analysis
da1dcb8e3a4476c392e01ed410cc47691d693882
[ "MIT" ]
1
2021-05-12T08:27:30.000Z
2021-05-28T21:24:53.000Z
PhoneProbes/eval.py
csalt-research/ASR-Accent-Analysis
da1dcb8e3a4476c392e01ed410cc47691d693882
[ "MIT" ]
3
2021-07-26T18:55:05.000Z
2022-02-14T15:17:17.000Z
import torch import torch.nn.functional as F from torch import nn from torch.utils.data import DataLoader from torch.autograd import Variable from model import PhoneNet from data_loader import PhoneDataset import argparse import pdb import time from tqdm import tqdm from torch.nn.parallel import DistributedDataParallel...
34.010638
141
0.720988
4adbeea2b6ac2608aa77e390442913bb60daec86
920
py
Python
xlsxwriter/test/comparison/test_object_position17.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_object_position17.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_object_position17.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
24.864865
83
0.618478
1190e0deda18d8ab82e5bdab9249f996eb7e0b9e
1,023
py
Python
dns/rdtypes/ANY/SPF.py
Ashiq5/dnspython
5449af5318d88bada34f661247f3bcb16f58f057
[ "ISC" ]
1,666
2015-01-02T17:46:14.000Z
2022-03-30T07:27:32.000Z
dns/rdtypes/ANY/SPF.py
felixonmars/dnspython
2691834df42aab74914883fdf26109aeb62ec647
[ "ISC" ]
591
2015-01-16T12:19:49.000Z
2022-03-30T21:32:11.000Z
dns/rdtypes/ANY/SPF.py
felixonmars/dnspython
2691834df42aab74914883fdf26109aeb62ec647
[ "ISC" ]
481
2015-01-14T04:14:43.000Z
2022-03-30T19:28:52.000Z
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and...
36.535714
75
0.772239
879865cf0b47a9e17a6e95d834d9401129ca793b
3,821
py
Python
0.16/_downloads/plot_configuration.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
null
null
null
0.16/_downloads/plot_configuration.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
1
2020-10-29T19:53:46.000Z
2020-10-29T19:53:46.000Z
0.16/_downloads/plot_configuration.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
1
2021-04-12T12:45:31.000Z
2021-04-12T12:45:31.000Z
# -*- coding: utf-8 -*- """ ====================== Configuring MNE python ====================== This tutorial gives a short introduction to MNE configurations. """ import os.path as op import mne from mne.datasets.sample import data_path fname = op.join(data_path(), 'MEG', 'sample', 'sample_audvis_raw.fif') raw = m...
43.420455
79
0.55352
9652256664a0856948516ad9450b9edd8f91bab1
44,515
py
Python
google_images_download/google_images_download.py
buddydvd/google-images-download
368de9d4a54d22bd16d2d7b4be7e1a8db833f4f0
[ "MIT" ]
1
2021-06-30T06:16:18.000Z
2021-06-30T06:16:18.000Z
google_images_download/google_images_download.py
buddydvd/google-images-download
368de9d4a54d22bd16d2d7b4be7e1a8db833f4f0
[ "MIT" ]
null
null
null
google_images_download/google_images_download.py
buddydvd/google-images-download
368de9d4a54d22bd16d2d7b4be7e1a8db833f4f0
[ "MIT" ]
1
2021-03-23T19:21:35.000Z
2021-03-23T19:21:35.000Z
#!/usr/bin/env python # In[ ]: # coding: utf-8 ###### Searching and Downloading Google Images to the local disk ###### # Import Libraries import sys version = (3, 0) cur_version = sys.version_info if cur_version >= version: # If the Current Version of Python is 3.0 or above import urllib.request from urllib...
49.516129
622
0.572841
3d478f4b46989fe06239d903f6be61f4d471af15
1,431
py
Python
Framework/SpriteText.py
EpicTofuu/Froggers
0395ef801fe11a7881fd32fd570bf3135a4a761f
[ "MIT" ]
1
2020-11-17T04:32:55.000Z
2020-11-17T04:32:55.000Z
Framework/SpriteText.py
EpicTofuu/Froggers
0395ef801fe11a7881fd32fd570bf3135a4a761f
[ "MIT" ]
null
null
null
Framework/SpriteText.py
EpicTofuu/Froggers
0395ef801fe11a7881fd32fd570bf3135a4a761f
[ "MIT" ]
null
null
null
import pygame from Sprite import * # all text is drawn as a sprite class SpriteText (Sprite): def __init__(self, text, size = 48, fontPath = None, font = None, colour = [255,255,255], Background = None): self.Background = Background # text background self._colour = colour # colo...
31.8
113
0.599581
547f00581059eb0796a07be4063e8622c2a75c6f
335
py
Python
plugins/labels/kivy.py
lionzeye/reddelectrum
e39497aee08b08bed89efa10072d17fb1e37920c
[ "MIT" ]
null
null
null
plugins/labels/kivy.py
lionzeye/reddelectrum
e39497aee08b08bed89efa10072d17fb1e37920c
[ "MIT" ]
null
null
null
plugins/labels/kivy.py
lionzeye/reddelectrum
e39497aee08b08bed89efa10072d17fb1e37920c
[ "MIT" ]
null
null
null
from labels import LabelsPlugin from reddelectrum.plugins import hook class Plugin(LabelsPlugin): @hook def load_wallet(self, wallet, window): self.window = window self.start_wallet(wallet) def on_pulled(self, wallet): self.print_error('on pulled') self.window._trigger_upd...
22.333333
45
0.698507
f009e8b7b040f8c20036b9ea9497e2b4fcfeb8db
7,664
py
Python
apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py
yongshengwang/builthue
c63af09d8284cc5a6f613bffd621ccdcac265ffc
[ "Apache-2.0" ]
1
2020-04-23T21:08:43.000Z
2020-04-23T21:08:43.000Z
apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py
yongshengwang/builthue
c63af09d8284cc5a6f613bffd621ccdcac265ffc
[ "Apache-2.0" ]
null
null
null
apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py
yongshengwang/builthue
c63af09d8284cc5a6f613bffd621ccdcac265ffc
[ "Apache-2.0" ]
1
2019-01-04T08:08:11.000Z
2019-01-04T08:08:11.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
34.367713
113
0.689849
dbe483066088aff4c7af263e1da1e6dc7ac70ab1
4,169
py
Python
Hangman/Hangman_Game/py/entry2.py
mthavaf/hangman
eb86a23fc00fe73139a6fe74c978b3eb14cd909d
[ "MIT" ]
null
null
null
Hangman/Hangman_Game/py/entry2.py
mthavaf/hangman
eb86a23fc00fe73139a6fe74c978b3eb14cd909d
[ "MIT" ]
null
null
null
Hangman/Hangman_Game/py/entry2.py
mthavaf/hangman
eb86a23fc00fe73139a6fe74c978b3eb14cd909d
[ "MIT" ]
null
null
null
from tkinter import * #import pygame import pymysql def getWord(num): global guessedWord,wrongAttempts,gameOver,level,data level = num gameOver = 0 guessedWord = [] wrongAttempts = 8 conn = pymysql.connect(host="localhost",user="root",passwd="cout<<password;",db="hangman") cur = conn.cursor(...
37.9
94
0.576157
08fa384a4080078af0c52e7feed410e81071c905
7,620
py
Python
kubernetes/client/models/v1_subject_access_review.py
fsduser/python
2b20069ebc05283352fbdc95bbdca2b6133a4175
[ "Apache-2.0" ]
1
2021-10-15T13:05:45.000Z
2021-10-15T13:05:45.000Z
kubernetes/client/models/v1_subject_access_review.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
10
2020-10-01T03:15:01.000Z
2022-03-01T03:06:31.000Z
kubernetes/client/models/v1_subject_access_review.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.19 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
33.130435
312
0.629134
22d85e1b2c909be8b15f080d08373d47a2e99883
1,784
py
Python
lyman/tools/fileutils.py
sgagnon/lyman
f2ca8c7e40a4f090e5ed8aaf47f87b71a0bc2cff
[ "BSD-3-Clause" ]
null
null
null
lyman/tools/fileutils.py
sgagnon/lyman
f2ca8c7e40a4f090e5ed8aaf47f87b71a0bc2cff
[ "BSD-3-Clause" ]
null
null
null
lyman/tools/fileutils.py
sgagnon/lyman
f2ca8c7e40a4f090e5ed8aaf47f87b71a0bc2cff
[ "BSD-3-Clause" ]
null
null
null
import os import json import os.path as op from nipype.utils.filemanip import fname_presuffix from nipype.interfaces.base import (BaseInterface, BaseInterfaceInputSpec, TraitedSpec, InputMultiPath, File, traits) class SaveParametersInput(BaseInterfaceInputSpec): exp_info = tra...
28.774194
78
0.647422
7f55d5076d31f420b5b039d80d39cbc69365c80f
1,851
py
Python
day5/part1.py
dcramer/aoc19
01581292773de71f1e4f1abfa02c2ada37e8857d
[ "BSD-3-Clause" ]
null
null
null
day5/part1.py
dcramer/aoc19
01581292773de71f1e4f1abfa02c2ada37e8857d
[ "BSD-3-Clause" ]
null
null
null
day5/part1.py
dcramer/aoc19
01581292773de71f1e4f1abfa02c2ada37e8857d
[ "BSD-3-Clause" ]
null
null
null
import itertools import math import sys valid_ops = sorted([1, 2, 3, 4, 99], reverse=True) def splitop(op): op = str(op) return int(''.join(op[-2:])), [int(o) for o in op[-3::-1]] def execute(data, input): def instr(offset, params): try: inst = params[offset - 1] except Ind...
26.442857
129
0.508374
6ae5616d2d089ac5d4fdfddfce21b9a6a81109c1
4,844
py
Python
src/domainClient/models/domain_listing_admin_service_v1_model_inspection_details.py
diabolical-ninja/smart-property-search
0931c7c8195ec21cbd56768c9c84cea2927a9e1d
[ "MIT" ]
5
2021-04-12T04:10:42.000Z
2021-04-28T05:54:22.000Z
src/domainClient/models/domain_listing_admin_service_v1_model_inspection_details.py
diabolical-ninja/smart-property-search
0931c7c8195ec21cbd56768c9c84cea2927a9e1d
[ "MIT" ]
35
2020-05-26T14:21:37.000Z
2022-03-29T16:14:42.000Z
src/domainClient/models/domain_listing_admin_service_v1_model_inspection_details.py
diabolical-ninja/smart-property-search
0931c7c8195ec21cbd56768c9c84cea2927a9e1d
[ "MIT" ]
2
2020-05-26T14:02:12.000Z
2022-01-10T08:19:49.000Z
# coding: utf-8 """ Domain Group API V1 Provides public access to Domain's microservices # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DomainListingAdminServiceV1ModelInspect...
33.178082
138
0.643683
42d92b7d9de1aeb5b9b59852244f18a5de4bc9b9
984
py
Python
Task2/IGNORE_miscellaneousScripts/setup_ensemble.py
Jacob-L-Vincent/project-athena
d1d300e375941399f116cbaa4678a9ed7c6652db
[ "MIT" ]
1
2020-11-11T19:22:25.000Z
2020-11-11T19:22:25.000Z
Task2/IGNORE_miscellaneousScripts/setup_ensemble.py
Jacob-L-Vincent/project-athena
d1d300e375941399f116cbaa4678a9ed7c6652db
[ "MIT" ]
null
null
null
Task2/IGNORE_miscellaneousScripts/setup_ensemble.py
Jacob-L-Vincent/project-athena
d1d300e375941399f116cbaa4678a9ed7c6652db
[ "MIT" ]
null
null
null
""" Code pieces for collecting raw values from WDs on the input(s). @author: Isaac Keohane isackeohane95@gmail.com adapted from: Ying Meng (y(dot)meng201011(at)gmail(dot)com) """ import sys sys.path.append("../") from utils.model import load_pool from models.athena import Ensemble, ENSEMBLE_STRATEGY def setup_ensem...
29.818182
68
0.606707
3ffec33bc5e5573cb59f993460f4847230e33c77
2,236
py
Python
config.py
darwinharianto/pvnet-rendering
8af589f9208fb2bad9bca3595f68ad7ca2563849
[ "Apache-2.0" ]
143
2019-04-12T09:09:43.000Z
2022-03-31T08:12:52.000Z
config.py
darwinharianto/pvnet-rendering
8af589f9208fb2bad9bca3595f68ad7ca2563849
[ "Apache-2.0" ]
66
2019-04-01T08:33:24.000Z
2022-02-14T07:11:14.000Z
config.py
darwinharianto/pvnet-rendering
8af589f9208fb2bad9bca3595f68ad7ca2563849
[ "Apache-2.0" ]
46
2019-04-07T06:53:40.000Z
2022-01-02T13:11:16.000Z
from easydict import EasyDict import os import sys import numpy as np cfg = EasyDict() """ Path settings """ cfg.ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) cfg.DATA_DIR = os.path.join(cfg.ROOT_DIR, 'data') cfg.MODEL_DIR = os.path.join(cfg.DATA_DIR, 'model') cfg.REC_DIR = os.path.join(cfg.DATA_DIR, 'record'...
26.305882
92
0.639535
07d024b60eaeec927203a504b8347a00cb76e9cc
990
py
Python
pyasdf/tags/time/tests/test_time.py
mdboom/pyasdf
ac4e9f85bf96206fdd6bc3d0708875c953c66dc5
[ "BSD-3-Clause" ]
null
null
null
pyasdf/tags/time/tests/test_time.py
mdboom/pyasdf
ac4e9f85bf96206fdd6bc3d0708875c953c66dc5
[ "BSD-3-Clause" ]
null
null
null
pyasdf/tags/time/tests/test_time.py
mdboom/pyasdf
ac4e9f85bf96206fdd6bc3d0708875c953c66dc5
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals, print_function import six try: import astropy except ImportError: HAS_ASTROPY = False else: HAS_ASTROPY = True from astropy import time import n...
20.625
82
0.692929
4373e7eccb2a9f1a599ac7a4de289863fde3dea2
26,619
py
Python
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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 ...
48.398182
139
0.783162
a8998afc3d4d92d142fe13c4efd8453b9ca58b45
1,161
py
Python
http_request_builder.py
armiantos/CMPUT404-assignment-web-client
f3e2e685aaae4fda1ed399bcc73eb014a1ec9273
[ "Apache-2.0" ]
null
null
null
http_request_builder.py
armiantos/CMPUT404-assignment-web-client
f3e2e685aaae4fda1ed399bcc73eb014a1ec9273
[ "Apache-2.0" ]
null
null
null
http_request_builder.py
armiantos/CMPUT404-assignment-web-client
f3e2e685aaae4fda1ed399bcc73eb014a1ec9273
[ "Apache-2.0" ]
null
null
null
def build_http_request(method: str, path: str, host: str, extra_headers=[], body: str = "") -> str: """ Returns a valid HTTP request from the given parameters. Parameters: - `method` - valid HTTP methods (e.g. "POST" or "GET") - `path` - the path part of a URL (e.g. "/" or "/index.html") - `hos...
36.28125
99
0.596038
3e44ce3ad007c9a9079e2a432648dcd4ccaebe52
5,734
py
Python
ljdata/ds/JPEGBaseline/__init__.py
scaramallion/pylibjpeg-data
2ab4b8a65b070656eca2582bd23197a3d01cdccd
[ "MIT" ]
3
2020-03-07T21:54:09.000Z
2020-06-11T02:23:58.000Z
ljdata/ds/JPEGBaseline/__init__.py
scaramallion/pylibjpeg-data
2ab4b8a65b070656eca2582bd23197a3d01cdccd
[ "MIT" ]
2
2020-03-08T00:35:51.000Z
2020-07-19T23:42:13.000Z
ljdata/ds/JPEGBaseline/__init__.py
scaramallion/pylibjpeg-data
2ab4b8a65b070656eca2582bd23197a3d01cdccd
[ "MIT" ]
1
2020-03-07T21:49:07.000Z
2020-03-07T21:49:07.000Z
"""1.2.840.10008.1.2.4.50 - JPEG Baseline (Process 1)""" INDEX = { "color3d_jpeg_baseline.dcm" : { 'TransferSyntaxUID' : ('UI', '1.2.840.10008.1.2.4.50'), 'SamplesPerPixel' : ('US', 3), 'PhotometricInterpretation' : ('CS', 'YBR_FULL_422'), 'PlanarConfiguration' : ('US', 0), ...
36.993548
76
0.465992
cdcd6ef1d58f41937328ea7500a51a4923057b26
9,945
py
Python
tests/unit/cloud/clouds/test_openstack.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
tests/unit/cloud/clouds/test_openstack.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
tests/unit/cloud/clouds/test_openstack.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
""" :codeauthor: `Tyler Johnson <tjohnson@saltstack.com>` tests.unit.cloud.clouds.openstack_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from salt.cloud.clouds import openstack from salt.utils import dictupdate from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMoc...
36.29562
98
0.591252
1fe1cf7a83f186a26294a432f7012ef585af5e08
274
py
Python
pyibge/__init__.py
renanbirck/pyibge
f70ad060ab7d491fa61afa2b01181a2dd176e319
[ "MIT" ]
6
2019-06-15T03:40:11.000Z
2021-02-27T08:59:04.000Z
pyibge/__init__.py
renanbirck/pyibge
f70ad060ab7d491fa61afa2b01181a2dd176e319
[ "MIT" ]
null
null
null
pyibge/__init__.py
renanbirck/pyibge
f70ad060ab7d491fa61afa2b01181a2dd176e319
[ "MIT" ]
4
2017-10-09T21:30:06.000Z
2019-12-18T04:56:53.000Z
#!/usr/bin/env python3 # # pyIBGE: A module to access data from the Brazilian Institute of Geography and Statistics (IBGE) # (c) 2016 Renan Birck Pinheiro [renan.birck.pinheiro@gmail.com] from .extra_routines import state_to_id, period_to_date from .query import IBGEQuery
34.25
97
0.788321
4c1d921925d8409fd85e0126d81a5a21a1b9424a
186
py
Python
dikedata_api/tests.py
ddsc/dikedata-api
74776575a848863975793a9fde106161c655ee44
[ "MIT" ]
null
null
null
dikedata_api/tests.py
ddsc/dikedata-api
74776575a848863975793a9fde106161c655ee44
[ "MIT" ]
null
null
null
dikedata_api/tests.py
ddsc/dikedata-api
74776575a848863975793a9fde106161c655ee44
[ "MIT" ]
null
null
null
# (c) Nelen & Schuurmans. MIT licensed, see LICENSE.rst. from django.test import TestCase class ExampleTest(TestCase): def test_something(self): self.assertEquals(1, 1)
18.6
57
0.704301
e69892fd895e0852d48fed48e20638d6fd32f61a
2,145
py
Python
esp32_ds1307.py
tnoumar/esp32-libraries
98a7c9ba90ddb65c9eece2849f255142931e3e9a
[ "MIT" ]
1
2021-07-29T09:04:32.000Z
2021-07-29T09:04:32.000Z
esp32_ds1307.py
vittascience/esp32-libraries
98a7c9ba90ddb65c9eece2849f255142931e3e9a
[ "MIT" ]
null
null
null
esp32_ds1307.py
vittascience/esp32-libraries
98a7c9ba90ddb65c9eece2849f255142931e3e9a
[ "MIT" ]
null
null
null
from micropython import const # I2C-Address - DS1307 RTC_V1_ADDRESS = const(0x68) # registar overview - crtl & status reg RTC_CTRL_1 = const(0x00) RTC_CTRL_2 = const(0x01) # registar overview - time & data reg RTC_SECOND_ADDR = const(0x00) RTC_MINUTE_ADDR = const(0x01) RTC_HOUR_ADDR = const(0x02) RTC_WDAY_ADDR =...
34.047619
110
0.69324
85ca6cf9633d0895a007f833038fc88ba0402d92
1,430
py
Python
torch2trt/converters/__init__.py
nuhpiskin/torch2trt
ce39d035d067cd6596dbed60aa05b37051915c74
[ "MIT" ]
null
null
null
torch2trt/converters/__init__.py
nuhpiskin/torch2trt
ce39d035d067cd6596dbed60aa05b37051915c74
[ "MIT" ]
null
null
null
torch2trt/converters/__init__.py
nuhpiskin/torch2trt
ce39d035d067cd6596dbed60aa05b37051915c74
[ "MIT" ]
null
null
null
# dummy converters throw warnings method encountered import tensorrt as trt from .dummy_converters import * # supported converters will override dummy converters from .AdaptiveAvgPool2d import * from .BatchNorm1d import * from .BatchNorm2d import * from .Conv import * from .Conv1d import * from .Conv2d import * from ...
23.064516
53
0.74965
1d07c1ee206e1db1c91d6b827c3c492d1f7b65e5
735
py
Python
techgig.py
heykush/Coding-Challenge-Scaper
da4c88d93faa21b3562b937d70575cb777010f5a
[ "Apache-2.0" ]
null
null
null
techgig.py
heykush/Coding-Challenge-Scaper
da4c88d93faa21b3562b937d70575cb777010f5a
[ "Apache-2.0" ]
null
null
null
techgig.py
heykush/Coding-Challenge-Scaper
da4c88d93faa21b3562b937d70575cb777010f5a
[ "Apache-2.0" ]
null
null
null
import requests from bs4 import BeautifulSoup from selenium import webdriver from time import sleep driver = webdriver.Chrome(r"C:\Users\gkush\Downloads\chromedriver.exe") url="https://www.techgig.com/challenge" r = requests.get(url) driver.get(url) content = driver.page_source.encode('utf-8').strip() soup...
27.222222
75
0.682993
cee0741bc2e3be8859b9ae592096c3453fd46ce9
4,359
py
Python
texar/modules/networks/conv_networks_test.py
Holmeswww/Text_Infilling
f63cd24bee5c62d7dedd8fb35c4e52aee20c39f3
[ "Apache-2.0" ]
87
2019-09-11T04:41:46.000Z
2022-03-23T02:37:52.000Z
texar/modules/networks/conv_networks_test.py
ysglh/texar
9c699e8143fd8ecb5d65a41ceef09c45832b9258
[ "Apache-2.0" ]
10
2019-10-01T16:09:17.000Z
2021-10-19T21:20:11.000Z
texar/modules/networks/conv_networks_test.py
ysglh/texar
9c699e8143fd8ecb5d65a41ceef09c45832b9258
[ "Apache-2.0" ]
20
2019-09-13T16:32:37.000Z
2021-06-03T07:14:11.000Z
# """ Unit tests for conv networks. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import tensorflow as tf import texar as tx from texar.modules.networks.conv_networks import Conv1DNetwork class Conv1DNetworkT...
34.322835
77
0.571691
c97227d163fc11631da08a508114cfc008987e3f
1,929
py
Python
tests/ipc_test.py
atikur/mythril
d0a3858400b727bdc5c927487e0dcc69ca1ef14d
[ "MIT" ]
2
2018-04-13T00:07:28.000Z
2022-02-15T23:18:14.000Z
tests/ipc_test.py
vanessabridge/mythril
fb28d30f880057a735f0a932ad4c9bff4d50c2c3
[ "MIT" ]
null
null
null
tests/ipc_test.py
vanessabridge/mythril
fb28d30f880057a735f0a932ad4c9bff4d50c2c3
[ "MIT" ]
1
2020-10-11T21:49:05.000Z
2020-10-11T21:49:05.000Z
from unittest import TestCase from mythril.ipc.client import EthIpc class IpcTest(TestCase): client = None def setUp(self): self.client = EthIpc() def test_eth_coinbase(self): coinbase = self.client.eth_coinbase() self.assertTrue(coinbase.startswith("0x"), "coinbase should be a h...
47.04878
161
0.75324
9f00ed665a3d7e3d865a1f146ea9ed4c15687557
11,833
py
Python
safe_transaction_service/notifications/tests/test_views.py
kanhirun/safe-transaction-service
9bd6103be7d77469a337b6f02c8e0693e7951e4c
[ "MIT" ]
2
2021-09-29T23:54:40.000Z
2021-11-26T15:22:15.000Z
safe_transaction_service/notifications/tests/test_views.py
kanhirun/safe-transaction-service
9bd6103be7d77469a337b6f02c8e0693e7951e4c
[ "MIT" ]
8
2022-03-15T18:39:45.000Z
2022-03-28T01:28:13.000Z
safe_transaction_service/notifications/tests/test_views.py
kanhirun/safe-transaction-service
9bd6103be7d77469a337b6f02c8e0693e7951e4c
[ "MIT" ]
1
2022-03-29T12:19:51.000Z
2022-03-29T12:19:51.000Z
import time import uuid from unittest import mock from django.urls import reverse from eth_account import Account from rest_framework import status from rest_framework.test import APITestCase from gnosis.safe.tests.safe_test_case import SafeTestCaseMixin from safe_transaction_service.history.tests.factories import ...
55.294393
115
0.681653
ef652e2d3a91ac44dcf5abe6fc8889ab26a28b6c
8,954
py
Python
src/sasctl/_services/microanalytic_score.py
InvalidPointer/python-sasctl
bc40918fcde7439b9c2eff0e286469354b2e9fc9
[ "Apache-2.0" ]
null
null
null
src/sasctl/_services/microanalytic_score.py
InvalidPointer/python-sasctl
bc40918fcde7439b9c2eff0e286469354b2e9fc9
[ "Apache-2.0" ]
null
null
null
src/sasctl/_services/microanalytic_score.py
InvalidPointer/python-sasctl
bc40918fcde7439b9c2eff0e286469354b2e9fc9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """A stateless, memory-resident, high-performance program execution service.""" import re from collections import OrderedDict from math import isnan import six ...
31.528169
81
0.517199
e57e35683a98e760ffc2ccbea67e42947c9c3092
62,079
py
Python
torchbenchmark/models/hf_Bert/modeling.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/hf_Bert/modeling.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/hf_Bert/modeling.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. 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 cop...
48.423557
134
0.65378
2624c148bae85093e9ddb4a311244a475455bd01
5,497
py
Python
ci/build.py
TheButlah/SlimeVR-Tracker-ESP
0ec39b41eb59e4dd0b411f6407a34a3ffded3aea
[ "MIT" ]
4
2022-01-06T14:41:10.000Z
2022-03-11T02:27:47.000Z
ci/build.py
TheButlah/SlimeVR-Tracker-ESP
0ec39b41eb59e4dd0b411f6407a34a3ffded3aea
[ "MIT" ]
null
null
null
ci/build.py
TheButlah/SlimeVR-Tracker-ESP
0ec39b41eb59e4dd0b411f6407a34a3ffded3aea
[ "MIT" ]
null
null
null
import json import os import shutil from enum import Enum from textwrap import dedent from typing import List COLOR_ESC = '\033[' COLOR_RESET = f'{COLOR_ESC}0m' COLOR_GREEN = f'{COLOR_ESC}32m' COLOR_RED = f'{COLOR_ESC}31m' COLOR_CYAN = f'{COLOR_ESC}36m' COLOR_GRAY = f'{COLOR_ESC}30;1m' class Board(Enum): SLIMEVR...
25.929245
102
0.617973
73448355aedee533025f0389d1b1b517535a68f3
232
py
Python
application.py
vanveele/docker-demo
eafd5dec9da5b103718749feaaecf4e6d3defba3
[ "MIT" ]
null
null
null
application.py
vanveele/docker-demo
eafd5dec9da5b103718749feaaecf4e6d3defba3
[ "MIT" ]
null
null
null
application.py
vanveele/docker-demo
eafd5dec9da5b103718749feaaecf4e6d3defba3
[ "MIT" ]
null
null
null
from flask import Flask import os app = Flask(__name__) @app.route("/") def hello(): ver = os.getenv('VERSION', 'undef') return "Hello World! Version: {}".format(ver) if __name__ == "__main__": app.run(host='0.0.0.0')
19.333333
49
0.633621
41ee78b6c443d34f7d49666d8b4e6e171ab614d4
412
py
Python
detagger.py
CrysthelAparicio/html-xml-detagger
5951d17062c2e301a37b127e5a1731d4acfe0c5a
[ "MIT" ]
null
null
null
detagger.py
CrysthelAparicio/html-xml-detagger
5951d17062c2e301a37b127e5a1731d4acfe0c5a
[ "MIT" ]
null
null
null
detagger.py
CrysthelAparicio/html-xml-detagger
5951d17062c2e301a37b127e5a1731d4acfe0c5a
[ "MIT" ]
null
null
null
import sys import re r = open(sys.argv[1], 'r') w = open(sys.argv[1] + '_detagged.txt', 'w') regex = re.compile(r'<.*?>') regex_tag_to_end_of_line = re.compile(r'<.*?\n') regex_start_of_line_to_tag = re.compile(r'^.*?>') for line in r: line = regex.sub(' ', line) line = regex_tag_to_end_of_line.sub('', lin...
20.6
50
0.63835
4a27916aaed4e9d577d8960eb3a0d3ceb20db678
18,424
py
Python
sample_mods/distl/dist_col.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
sample_mods/distl/dist_col.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
sample_mods/distl/dist_col.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from pyomo.core.base import ConcreteModel, Set, Constraint, Var,\ Param, Objective, minimize, sqrt, exp, Suffix, Expression, value from nmpc_mhe.aux.cpoinsc import collptsgen from nmpc_mhe.aux.lagran...
40.942222
122
0.547981
7749968593dca61f8932979a24a68864c24e4e6e
18,297
py
Python
chainer/links/model/vision/googlenet.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
2
2018-02-05T07:25:48.000Z
2018-08-28T20:29:45.000Z
chainer/links/model/vision/googlenet.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
null
null
null
chainer/links/model/vision/googlenet.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
1
2018-08-23T01:34:57.000Z
2018-08-23T01:34:57.000Z
from __future__ import print_function import collections import os import numpy try: from PIL import Image available = True except ImportError as e: available = False _import_error = e import chainer from chainer.dataset.convert import concat_examples from chainer.dataset import download from chainer ...
41.024664
80
0.615183
e01d7f2fb3d7dea2928271a9ce27690cf02144dd
10,156
py
Python
AdminServer/appscale/admin/push_worker_manager.py
Honcharov12/appscale
be1cf90fcd24f1a5a88848f7eb73331b6e4e66d9
[ "Apache-2.0" ]
null
null
null
AdminServer/appscale/admin/push_worker_manager.py
Honcharov12/appscale
be1cf90fcd24f1a5a88848f7eb73331b6e4e66d9
[ "Apache-2.0" ]
null
null
null
AdminServer/appscale/admin/push_worker_manager.py
Honcharov12/appscale
be1cf90fcd24f1a5a88848f7eb73331b6e4e66d9
[ "Apache-2.0" ]
null
null
null
""" Keeps track of queue configuration details for push workers. """ import logging import json import os from datetime import timedelta from kazoo.exceptions import ZookeeperError from tornado import gen from tornado.ioloop import IOLoop from tornado.options import options from appscale.common.async_retrying import...
36.532374
102
0.697026
1a3216d5de8a1019665eaddf0dfdc2e7d2377833
7,102
py
Python
FP_Growth/FPGrowth.py
Vyzrala/ZTED_Algorithms
bc4c70d4d350d0bb644e2973b6c6994b336d94c6
[ "MIT" ]
null
null
null
FP_Growth/FPGrowth.py
Vyzrala/ZTED_Algorithms
bc4c70d4d350d0bb644e2973b6c6994b336d94c6
[ "MIT" ]
null
null
null
FP_Growth/FPGrowth.py
Vyzrala/ZTED_Algorithms
bc4c70d4d350d0bb644e2973b6c6994b336d94c6
[ "MIT" ]
null
null
null
from typing import List, Dict, Tuple from collections import Counter from datasets import translation class Node: def __init__(self, key: str, counter: int, parent_node) -> None: self.key = key self.counter = counter self.parent = parent_node self.childs: Dict[str, Node] = {} ...
36.797927
120
0.558434
c5a71e1a26ed5ac11bfe58e7492eee40ff45f762
186
py
Python
POO/EX010/EX10B.py
0Fernando0/CursoPython
1dcfdb6556e41c6dedcba2857aa4382b2f81aa59
[ "MIT" ]
null
null
null
POO/EX010/EX10B.py
0Fernando0/CursoPython
1dcfdb6556e41c6dedcba2857aa4382b2f81aa59
[ "MIT" ]
null
null
null
POO/EX010/EX10B.py
0Fernando0/CursoPython
1dcfdb6556e41c6dedcba2857aa4382b2f81aa59
[ "MIT" ]
null
null
null
class A: def __new__(cls,*args,**kwargs): cls.nome = 'Fernando' return super().__new__(cls) def __init__(self): print('inicio...')
18.6
36
0.489247
b5d65e6553b5d8232ba618fef57743de51392303
2,665
py
Python
tests/unit/cli/test_ranged_argument.py
adrianfusco/cibyl
421fb537e21abddeecdde42c18f4de60425cc804
[ "Apache-2.0" ]
3
2022-02-17T18:07:07.000Z
2022-03-19T10:22:38.000Z
tests/unit/cli/test_ranged_argument.py
adrianfusco/cibyl
421fb537e21abddeecdde42c18f4de60425cc804
[ "Apache-2.0" ]
58
2022-02-14T14:41:22.000Z
2022-03-31T10:54:28.000Z
tests/unit/cli/test_ranged_argument.py
adrianfusco/cibyl
421fb537e21abddeecdde42c18f4de60425cc804
[ "Apache-2.0" ]
6
2022-02-14T19:21:26.000Z
2022-03-29T09:31:31.000Z
""" # Copyright 2022 Red Hat # # 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 agr...
40.378788
78
0.657786
5093a8930e14019680620baa6093d3207f2e29ec
9,010
py
Python
experiments/tests/faker_populator.py
neuromat/portal
78c1f8c9e20c46d283b693d54d009bd19bda90de
[ "CC-BY-4.0" ]
3
2017-12-14T12:09:28.000Z
2021-07-02T02:26:55.000Z
experiments/tests/faker_populator.py
neuromat/portal
78c1f8c9e20c46d283b693d54d009bd19bda90de
[ "CC-BY-4.0" ]
null
null
null
experiments/tests/faker_populator.py
neuromat/portal
78c1f8c9e20c46d283b693d54d009bd19bda90de
[ "CC-BY-4.0" ]
1
2018-06-13T19:55:33.000Z
2018-06-13T19:55:33.000Z
from datetime import datetime from random import randint, choice from subprocess import call from django.contrib.auth import models from faker import Factory from experiments.models import Experiment, Study, Group, Researcher, \ Questionnaire # python manage.py shell < experiments/tests/faker_populator.py # TODO:...
35.753968
79
0.734628
3a465ee1345fd954066261bdfb000a18869e6742
1,472
py
Python
Coding-interview-problems/Programs/prog03.py
gnsalok/algo-ds-python
6e37f9a536c634673451d9acaeb4968536fb0b8b
[ "MIT" ]
3
2021-12-17T17:12:23.000Z
2022-03-29T13:41:21.000Z
Coding-interview-problems/Programs/prog03.py
gnsalok/algo-ds-python
6e37f9a536c634673451d9acaeb4968536fb0b8b
[ "MIT" ]
null
null
null
Coding-interview-problems/Programs/prog03.py
gnsalok/algo-ds-python
6e37f9a536c634673451d9acaeb4968536fb0b8b
[ "MIT" ]
null
null
null
''' programs on fibonacci series ''' def fibonacci(size): a = 0 b = 1 print(a) print(b) for i in range(size-1): c = a + b a = b b = c print(c) def fibonacci_nth(n): a = 0 b = 1 if n < 0: print('invalid') return elif n == 0: r...
18.871795
59
0.501359
6091cf291ef2a7972a015fb0bc955004a5dfdf74
2,336
py
Python
eng/tox/import_all.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
eng/tox/import_all.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
eng/tox/import_all.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
35.938462
148
0.636558
104399b42b3d6c624bc52fbaa571560bd48b4104
2,057
py
Python
plugins/lastlog.py
Perdu/poezio-1
ed645d9403ecf7bebfe2406f914868c3bbd1ef34
[ "Zlib" ]
null
null
null
plugins/lastlog.py
Perdu/poezio-1
ed645d9403ecf7bebfe2406f914868c3bbd1ef34
[ "Zlib" ]
null
null
null
plugins/lastlog.py
Perdu/poezio-1
ed645d9403ecf7bebfe2406f914868c3bbd1ef34
[ "Zlib" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2018 Maxime “pep” Buquet # Copyright © 2019 Madhur Garg # # Distributed under terms of the zlib license. See the COPYING file. """ Search provided string in the buffer and return all results on the screen """ import re from typing im...
28.569444
105
0.605737
03bc36335c57a7145118276da7b0c913c57dfb06
930
py
Python
tests/test_tradehub_get_username_check.py
Mai-Te-Pora/tradehub-python
8355b862f5cabeb9f5ee3d17682941116c95d08c
[ "MIT" ]
7
2021-01-18T07:50:22.000Z
2022-01-16T15:14:08.000Z
tests/test_tradehub_get_username_check.py
Mai-Te-Pora/tradehub-python
8355b862f5cabeb9f5ee3d17682941116c95d08c
[ "MIT" ]
13
2021-01-22T12:26:56.000Z
2021-03-07T09:24:49.000Z
tests/test_tradehub_get_username_check.py
Mai-Te-Pora/tradehub-python
8355b862f5cabeb9f5ee3d17682941116c95d08c
[ "MIT" ]
1
2022-01-16T15:14:13.000Z
2022-01-16T15:14:13.000Z
from tests import APITestCase, mainnet_client, USERNAME_DEVEL class TestTradeHubGetUsernameCheck(APITestCase): def setUp(self) -> None: self._client = mainnet_client def test_get_username_check_structure(self): """ Check if response match expected dict structure. :return: ...
37.2
112
0.698925
5d364aaffe15cdc117d31ab482f13f23b3b560c7
895
py
Python
utils/utils.py
LuChenLab/SCAPE
49c4063f1ec3ac2d72f935b61de4a18c66db754d
[ "MIT" ]
3
2022-03-15T05:22:29.000Z
2022-03-21T18:32:04.000Z
utils/utils.py
LuChenLab/SCAPE
49c4063f1ec3ac2d72f935b61de4a18c66db754d
[ "MIT" ]
3
2022-02-20T04:43:18.000Z
2022-03-19T12:19:56.000Z
utils/utils.py
LuChenLab/SCAPE
49c4063f1ec3ac2d72f935b61de4a18c66db754d
[ "MIT" ]
1
2022-03-21T18:32:15.000Z
2022-03-21T18:32:15.000Z
from collections import defaultdict from itertools import islice # This two fucntion were used for wraper the nested dict not lambda function def dict_list(): return defaultdict(list) def wrapdict(): return defaultdict(dict_list) def window(seq, n=2): """ Return a sliding window over a list ""...
19.456522
76
0.642458
b207694baa808f6e49262a4ebd284a4c21dda7a2
8,635
py
Python
art/attacks/evasion/targeted_universal_perturbation.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-01-31T15:17:20.000Z
2022-01-31T15:17:20.000Z
art/attacks/evasion/targeted_universal_perturbation.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-03-18T00:41:02.000Z
2022-03-18T00:41:02.000Z
art/attacks/evasion/targeted_universal_perturbation.py
david-shmailov/adversarial-robustness-toolbox
ad8b94d3928abe218cd6ab2eed1c5c21f1d6e420
[ "MIT" ]
1
2022-03-22T05:30:31.000Z
2022-03-22T05:30:31.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # 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 # r...
40.924171
120
0.651882
25aa5db4427e94d5a28b3047c44378aab71003d6
736
py
Python
data/products.py
IlyaLyamin/buynet
8cef028cbe06af8ce25bd2c9980a9a4cf94aac79
[ "MIT" ]
null
null
null
data/products.py
IlyaLyamin/buynet
8cef028cbe06af8ce25bd2c9980a9a4cf94aac79
[ "MIT" ]
null
null
null
data/products.py
IlyaLyamin/buynet
8cef028cbe06af8ce25bd2c9980a9a4cf94aac79
[ "MIT" ]
null
null
null
import sqlalchemy from .db_session import SqlAlchemyBase from sqlalchemy import orm from flask_login import UserMixin from sqlalchemy_serializer import SerializerMixin class Products(SqlAlchemyBase, UserMixin, SerializerMixin): __tablename__ = 'products' id = sqlalchemy.Column(sqlalchemy.Integer, primary_key...
40.888889
86
0.785326
3e6c902c81dee9cfcceb72611973d4e85842a12b
14,125
py
Python
imagenet/augment/augment_ops.py
sinemmy/fixmatch
3386d275fe59782936570b047dc66821ff96d5de
[ "Apache-2.0" ]
null
null
null
imagenet/augment/augment_ops.py
sinemmy/fixmatch
3386d275fe59782936570b047dc66821ff96d5de
[ "Apache-2.0" ]
null
null
null
imagenet/augment/augment_ops.py
sinemmy/fixmatch
3386d275fe59782936570b047dc66821ff96d5de
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.630952
151
0.661027
53504463a5832d9541809f18f90330f3b3262a82
44,269
py
Python
rl_server/myAlgo_1_server.py
888yzbt888/Pensieve-multiagent
b5409c949a4855afedc910de5dd6eabe076567cc
[ "MIT" ]
2
2018-06-20T07:23:15.000Z
2019-05-17T08:13:57.000Z
rl_server/myAlgo_1_server.py
888yzbt888/Pensieve-multiagent
b5409c949a4855afedc910de5dd6eabe076567cc
[ "MIT" ]
null
null
null
rl_server/myAlgo_1_server.py
888yzbt888/Pensieve-multiagent
b5409c949a4855afedc910de5dd6eabe076567cc
[ "MIT" ]
null
null
null
""" post_data:lastRequest(the order number of last chunk) lastquality(0-5,0 is the lowest quality) lastChunkSize(bit,kb/1024) lastChunkStartTime(ms from 1970.1.1) lastChunkFinishTime(ms from 1970.1.1) buffer(s) bufferAdjust(buffer time except the chunk played now) RebufferTime(s) bandwidthEst(...
64.626277
455
0.702794
8d4cb18ce2bee1b8d97e6219c898212a80f7b2e2
4,263
py
Python
plasma/cli/cli.py
bakaoh/plasma-mvp
91e04bd4e3a618fde009b27afaef9024b0515c6d
[ "Apache-2.0" ]
null
null
null
plasma/cli/cli.py
bakaoh/plasma-mvp
91e04bd4e3a618fde009b27afaef9024b0515c6d
[ "Apache-2.0" ]
null
null
null
plasma/cli/cli.py
bakaoh/plasma-mvp
91e04bd4e3a618fde009b27afaef9024b0515c6d
[ "Apache-2.0" ]
null
null
null
import click from ethereum import utils from plasma_core.constants import NULL_ADDRESS from plasma_core.transaction import Transaction from plasma_core.utils.utils import confirm_tx from plasma.client.client import Client from plasma.client.exceptions import ChildChainServiceError CONTEXT_SETTINGS = dict( help_op...
29.19863
85
0.688717
3a110b86aed7d9bbecbfadfa07d87fc44967fdb0
4,098
py
Python
application/app.py
mortbauer/webapp
e8d70bcf7e20f50a8e5ce7e6132f8b48dc7d150e
[ "MIT" ]
null
null
null
application/app.py
mortbauer/webapp
e8d70bcf7e20f50a8e5ce7e6132f8b48dc7d150e
[ "MIT" ]
null
null
null
application/app.py
mortbauer/webapp
e8d70bcf7e20f50a8e5ce7e6132f8b48dc7d150e
[ "MIT" ]
null
null
null
import json from flask import request, render_template, jsonify, url_for, redirect, g, Response from sqlalchemy.exc import IntegrityError from .utils.auth import generate_token, requires_auth, verify_token from .import models from .schemas import UserSchema, GroupSchema from .import constants from .import app, db, so...
28.859155
84
0.630796
5b5beb06456c4202a95b04d36af44ff311cc420f
6,770
py
Python
test/util/bitcoin-util-test.py
im818/litecoin
c95cea081e28a1bfd6aae4a96d1f336ddffac08d
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
im818/litecoin
c95cea081e28a1bfd6aae4a96d1f336ddffac08d
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
im818/litecoin
c95cea081e28a1bfd6aae4a96d1f336ddffac08d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2014 BitPay Inc. # Copyright 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test framework for litecoin utils. Runs automatically during `make che...
38.465909
126
0.617134
cba923fa5a4f8ed9c2e8e052e7a4116d87e45d5b
1,760
py
Python
demos/demo_1_alignment/faces/make_collages.py
SourCherries/auto-face-align
365bd01c22da6f3a44190261786fcc585687ea50
[ "Apache-2.0" ]
13
2021-11-11T04:36:14.000Z
2022-03-08T00:20:54.000Z
demos/demo_1_alignment/faces/make_collages.py
SourCherries/auto-face-align
365bd01c22da6f3a44190261786fcc585687ea50
[ "Apache-2.0" ]
null
null
null
demos/demo_1_alignment/faces/make_collages.py
SourCherries/auto-face-align
365bd01c22da6f3a44190261786fcc585687ea50
[ "Apache-2.0" ]
null
null
null
import os import shutil import random from collage_maker import make_collage # ------------------------------------------------------------------------ # Helper function def getAllFiles(dirName): listOfFiles = list() for (dirpath, dirnames, filenames) in os.walk(dirName): listOfFiles += [os.path.join(...
32.592593
105
0.522159
bc142b60a66fe3f76ccf4328b376b87e2f44a338
179
py
Python
xpulumi/pulumi_cli/__init__.py
sammck/xpulumi
1e25229cc5de113c6d4655ba81e391c29014aa5f
[ "MIT" ]
null
null
null
xpulumi/pulumi_cli/__init__.py
sammck/xpulumi
1e25229cc5de113c6d4655ba81e391c29014aa5f
[ "MIT" ]
null
null
null
xpulumi/pulumi_cli/__init__.py
sammck/xpulumi
1e25229cc5de113c6d4655ba81e391c29014aa5f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2022 Samuel J. McKelvie # # MIT License - See LICENSE file accompanying this package. # """Tools for working with standard Pulumi CLI"""
19.888889
59
0.715084
8e7d54568d44a3f6b2edb1725362f6de7e2aea13
775
py
Python
src/tests/part2/q234_test_linked_palin.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/tests/part2/q234_test_linked_palin.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/tests/part2/q234_test_linked_palin.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
from src.base.test_cases import TestCases from src.mappers.list2linkedlist import to_linkedlist class LinkedPalinTestCases(TestCases): def __init__(self): super(LinkedPalinTestCases, self).__init__() self.__add_test_case__('Test 1', to_linkedlist(['a', 'a', 'b', 'a', 'a']), True) self.__ad...
55.357143
93
0.63871
ce769dd2b588b49967e95c7511bae175dfc0462b
5,580
py
Python
headpose_estimation_pairs.py
MitchellX/deep-head-pose
b26ca3a437cf8fb201d35184ea14be681c0a8231
[ "Apache-2.0" ]
9
2021-05-10T11:42:58.000Z
2022-03-17T05:51:41.000Z
headpose_estimation_pairs.py
MitchellX/deep-head-pose
b26ca3a437cf8fb201d35184ea14be681c0a8231
[ "Apache-2.0" ]
null
null
null
headpose_estimation_pairs.py
MitchellX/deep-head-pose
b26ca3a437cf8fb201d35184ea14be681c0a8231
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import dlib import sys, os, argparse import numpy as np import cv2 import torch from torch.autograd import Variable from torchvision import transforms import torch.backends.cudnn as cudnn import torchvision import torch.nn.functional as F from PIL import Image sys.path.append('code/') import datasets, h...
32.631579
171
0.608781
3ad912f405c96df8a68213ac2052d7e82fe4870e
42,007
py
Python
numpy/core/setup.py
udaygp/numpy
1f35a1d6320fc4b30b62a619dd64d20aa7911334
[ "BSD-3-Clause" ]
null
null
null
numpy/core/setup.py
udaygp/numpy
1f35a1d6320fc4b30b62a619dd64d20aa7911334
[ "BSD-3-Clause" ]
null
null
null
numpy/core/setup.py
udaygp/numpy
1f35a1d6320fc4b30b62a619dd64d20aa7911334
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function import imp import os import sys import shutil import pickle import copy import warnings import re from os.path import join from numpy.distutils import log from distutils.dep_util import newer from distutils.sysconfig import get_config_var from setup_common import * # S...
41.79801
97
0.549408
862f5f3c9eea4790effc4a258bf761e618a4b6a9
1,220
py
Python
LeetCode/incomplete/522-Longest-Uncommon-Subsequence-II.py
PyroGenesis/Comprehensive-Coding-Solutions
46684c07f16e35a779c075946b1b96956f2797e8
[ "MIT" ]
null
null
null
LeetCode/incomplete/522-Longest-Uncommon-Subsequence-II.py
PyroGenesis/Comprehensive-Coding-Solutions
46684c07f16e35a779c075946b1b96956f2797e8
[ "MIT" ]
null
null
null
LeetCode/incomplete/522-Longest-Uncommon-Subsequence-II.py
PyroGenesis/Comprehensive-Coding-Solutions
46684c07f16e35a779c075946b1b96956f2797e8
[ "MIT" ]
null
null
null
# LeetCode imports from typing import List class Solution: def findLUSlength(self, strs: List[str]) -> int: n = len(strs) strs.sort(key=len) strs.reverse() def isSubSeq(string, parent): i, j = 0, 0 while i < len(string) and j < len(parent): ...
30.5
89
0.443443
3733ced1a00ae45b2e08c01b962c2ae436fea55e
7,814
py
Python
openapi_spec_validator/validators.py
gcallaghan/openapi-spec-validator
3ab3411936faaee91246627f957ba6108cd47d44
[ "Apache-2.0" ]
null
null
null
openapi_spec_validator/validators.py
gcallaghan/openapi-spec-validator
3ab3411936faaee91246627f957ba6108cd47d44
[ "Apache-2.0" ]
null
null
null
openapi_spec_validator/validators.py
gcallaghan/openapi-spec-validator
3ab3411936faaee91246627f957ba6108cd47d44
[ "Apache-2.0" ]
null
null
null
import logging import string from jsonschema.validators import RefResolver from six import iteritems from openapi_spec_validator.exceptions import ( ParameterDuplicateError, ExtraParametersError, UnresolvableParameterError, ) from openapi_spec_validator.managers import ResolverManager log = logging.getLogger(__n...
32.423237
79
0.67891
100b4eff6789424351f91453e5bc1cf4269b60bd
3,562
py
Python
bindings/python/ensmallen/datasets/string/ralstoniaeutrophajmp134.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/ralstoniaeutrophajmp134.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/ralstoniaeutrophajmp134.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Ralstonia eutropha JMP134. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--prot...
32.981481
223
0.67799
645c1d0d08a8951d121ad71750179ecdef0a53ce
1,568
py
Python
backend/env/lib/python3.8/site-packages/gevent/testing/hub.py
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
10
2021-03-23T03:46:19.000Z
2022-03-08T07:20:25.000Z
backend/env/lib/python3.8/site-packages/gevent/testing/hub.py
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
7
2021-05-21T16:51:48.000Z
2022-03-12T00:50:26.000Z
backend/env/lib/python3.8/site-packages/gevent/testing/hub.py
lubitelpospat/CFM-source
4e6af33ee68c6f2f05b6952b64a6b3f0591d5b03
[ "MIT" ]
4
2021-04-21T00:49:34.000Z
2021-11-21T09:18:29.000Z
# Copyright (c) 2018 gevent community # # 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, di...
43.555556
79
0.760842
0aa1ab7b4279c6c9ca678196684aac82b267c34c
1,240
py
Python
code/cfgs/TSUNAMIconfig.py
kensakurada/SceneChangeDet
0530e0162863fec0c5296188526f0d27e0109814
[ "MIT" ]
null
null
null
code/cfgs/TSUNAMIconfig.py
kensakurada/SceneChangeDet
0530e0162863fec0c5296188526f0d27e0109814
[ "MIT" ]
null
null
null
code/cfgs/TSUNAMIconfig.py
kensakurada/SceneChangeDet
0530e0162863fec0c5296188526f0d27e0109814
[ "MIT" ]
null
null
null
import os BASE_PATH = '/home/sakurada/work/src/SceneChangeDet/code' PRETRAIN_MODEL_PATH = os.path.join(BASE_PATH,'pretrain') DATA_PATH = '/projects/g-nedo-geospatial/work/sakurada/work/data/pcd/pcd_2018_0906_r4s4/set0' TRAIN_DATA_PATH = os.path.join(DATA_PATH+'/train') TRAIN_LABEL_PATH = os.path.join(DATA_PATH+'/train...
37.575758
107
0.778226
cbdc20894eb541af242719db73af364ed38396f7
923
py
Python
AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/demo.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/demo.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/demo.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#! /usr/bin/env python """Print names of all methods defined in module This script demonstrates use of the visitor interface of the compiler package. """ import compiler class MethodFinder: """Print the names of all the methods Each visit method takes two arguments, the node and its current ...
23.666667
70
0.603467
0f7c15fc9ea65031ebad1c7efad966887a1be49e
4,063
py
Python
venv/lib/python2.7/site-packages/tensorflow/contrib/seq2seq/ops/gen_beam_search_ops.py
nainkunal933/subspace-clustering
17bae7cb632a9ca786f03dcd002848ca0a4058d1
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/tensorflow/contrib/seq2seq/ops/gen_beam_search_ops.py
nainkunal933/subspace-clustering
17bae7cb632a9ca786f03dcd002848ca0a4058d1
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/tensorflow/contrib/seq2seq/ops/gen_beam_search_ops.py
nainkunal933/subspace-clustering
17bae7cb632a9ca786f03dcd002848ca0a4058d1
[ "MIT" ]
1
2022-03-20T08:11:49.000Z
2022-03-20T08:11:49.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: beam_search_ops.cc """ import collections as _collections from tensorflow.python.eager import execute as _execute from tensorflow.python.eager import context as _context from tensorflow.python.eager impor...
35.640351
248
0.71745
1e85d01327935714e4a049c0001f26e6ba4f90ec
6,325
py
Python
python/http_client/v1/polyaxon_sdk/models/v1_list_agents_response.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_list_agents_response.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_list_agents_response.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
1
2021-12-03T07:12:03.000Z
2021-12-03T07:12:03.000Z
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
27.863436
120
0.594941
1cd53a7160479fd6d4a68eca68eca4dd0b9f0b52
715
py
Python
glue/core/qt/tests/test_style_dialog.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/core/qt/tests/test_style_dialog.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/core/qt/tests/test_style_dialog.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
import time from qtpy import QtCore from glue.core import Data from glue.core.tests.util import simple_session from ..style_dialog import StyleDialog class NonBlockingStyleDialog(StyleDialog): def exec_(self, *args): self.show() time.sleep(0.1) self.accept() def test_style_dialog(): ...
22.34375
74
0.637762
159dcc6c35b4c0ec9b1e9d31057da94fde1ce933
6,017
py
Python
src/insulaudit/devices/onetouch/proto.py
bewest/insulaudit
2c0aa04a596775517a1e651723796dc19ea99ea7
[ "MIT" ]
22
2015-03-10T20:50:23.000Z
2020-11-28T13:23:54.000Z
src/insulaudit/devices/onetouch/proto.py
bewest/insulaudit
2c0aa04a596775517a1e651723796dc19ea99ea7
[ "MIT" ]
2
2016-03-13T12:56:34.000Z
2018-11-17T18:11:43.000Z
src/insulaudit/devices/onetouch/proto.py
bewest/insulaudit
2c0aa04a596775517a1e651723796dc19ea99ea7
[ "MIT" ]
10
2015-06-14T21:30:59.000Z
2018-09-13T19:01:43.000Z
from insulaudit.log import io, logger as log from insulaudit import lib, core from insulaudit.data import glucose import time HEADER = [ 0x11, 0x0D ] STX = 0x02 ETX = 0x03 TIMEOUT = 0.5 RETRIES = 3 def ls_long( B ): B.reverse( ) return lib.BangLong( B ) def ls_int( B ): B.reverse( ) return lib.BangInt( B...
29.067633
76
0.590161
3c19fe5723da55805c9a14d9ca66ab3a99aa5421
1,728
py
Python
setup.py
kottilukkalarun/CosineSimilary
450c3bae10495109c3b3e494a0e91f46adfb623f
[ "MIT" ]
null
null
null
setup.py
kottilukkalarun/CosineSimilary
450c3bae10495109c3b3e494a0e91f46adfb623f
[ "MIT" ]
null
null
null
setup.py
kottilukkalarun/CosineSimilary
450c3bae10495109c3b3e494a0e91f46adfb623f
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'CosineSimilarityFinder', # How you named your package folder (MyLib) packages = ['SimilarityFinder'], # Chose the same as "name" version = '0.4', # Start with a small number and increase it with every change you make license='MIT', # Chose a ...
59.586207
146
0.674769
ac259ef12c963775ca6584eab63bba8a58af5196
2,454
py
Python
test/test_content_view.py
gustavs408650/looker_sdk_30
8b52449f216b2cb3b84f09e2856bcea1ed4a2b0c
[ "MIT" ]
null
null
null
test/test_content_view.py
gustavs408650/looker_sdk_30
8b52449f216b2cb3b84f09e2856bcea1ed4a2b0c
[ "MIT" ]
null
null
null
test/test_content_view.py
gustavs408650/looker_sdk_30
8b52449f216b2cb3b84f09e2856bcea1ed4a2b0c
[ "MIT" ]
1
2019-11-12T10:05:51.000Z
2019-11-12T10:05:51.000Z
# coding: utf-8 """ Looker API 3.0 Reference ### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token....
59.853659
1,639
0.757131
394f64845380a60bd70d44950f60d76bba837896
66
py
Python
test/test_preprocess.py
foldfelis/sqstate
a6a14a48d6ac7e41c55e2d62de3072074ba86ece
[ "MIT" ]
1
2021-07-14T08:23:54.000Z
2021-07-14T08:23:54.000Z
test/test_preprocess.py
akjmo97/sqstate
a6a14a48d6ac7e41c55e2d62de3072074ba86ece
[ "MIT" ]
10
2021-01-16T17:09:57.000Z
2021-01-29T16:03:45.000Z
test/test_preprocess.py
akjmo97/sqstate
a6a14a48d6ac7e41c55e2d62de3072074ba86ece
[ "MIT" ]
1
2021-07-02T07:15:21.000Z
2021-07-02T07:15:21.000Z
import sqstate.preprocess as pre class TestPreprocess: pass
11
32
0.772727
0e465ee0ed62186a0ca2ed3ae3f5b3fb8f47d102
2,298
py
Python
mud/piece_filter.py
akortman/mud
3b0fcff7b57a7fdc2f1c06d076cb0d6ed8eb5881
[ "MIT" ]
null
null
null
mud/piece_filter.py
akortman/mud
3b0fcff7b57a7fdc2f1c06d076cb0d6ed8eb5881
[ "MIT" ]
null
null
null
mud/piece_filter.py
akortman/mud
3b0fcff7b57a7fdc2f1c06d076cb0d6ed8eb5881
[ "MIT" ]
null
null
null
''' Usually, you want to restrict a dataset to a particular kind of Piece, e.g. 4/4 time. This module provides implementations of some predicate functions to use as filters. ''' def failure_reason(filter): if isinstance(filter, PieceFilter): return filter.why() return f"Failed on testing {filter.type}...
26.413793
78
0.63577
2b443cc5355d5d17448d3afc8bce7c9469a1db5c
1,609
py
Python
cloudkittyclient/v2/client.py
NeCTAR-RC/python-cloudkittyclient
20003a58cec701dd39945246955d5434681e5184
[ "Apache-2.0" ]
19
2015-10-18T02:56:16.000Z
2019-07-19T16:33:08.000Z
cloudkittyclient/v2/client.py
NeCTAR-RC/python-cloudkittyclient
20003a58cec701dd39945246955d5434681e5184
[ "Apache-2.0" ]
1
2018-12-17T13:11:24.000Z
2018-12-17T13:11:24.000Z
cloudkittyclient/v2/client.py
NeCTAR-RC/python-cloudkittyclient
20003a58cec701dd39945246955d5434681e5184
[ "Apache-2.0" ]
11
2016-02-02T02:32:58.000Z
2022-02-11T02:22:56.000Z
# -*- coding: utf-8 -*- # Copyright 2018 Objectif Libre # # 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 ...
35.755556
78
0.677439
993af1509f9127592b735a7412939002c28e2d30
1,880
py
Python
tests/contract_tests/KT1TnwBxgK4ayHuxrti6KKkJpWBHXBYRCX6H/test_tnwbxg_updateBaker.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
98
2019-02-07T16:33:38.000Z
2022-03-31T15:53:41.000Z
tests/contract_tests/KT1TnwBxgK4ayHuxrti6KKkJpWBHXBYRCX6H/test_tnwbxg_updateBaker.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
152
2019-05-20T16:38:56.000Z
2022-03-30T14:24:38.000Z
tests/contract_tests/KT1TnwBxgK4ayHuxrti6KKkJpWBHXBYRCX6H/test_tnwbxg_updateBaker.py
konchunas/pytezos
65576d18bdf1956fae8ea21241b6c43a38921b83
[ "MIT" ]
34
2019-07-25T12:03:51.000Z
2021-11-11T22:23:38.000Z
from unittest import TestCase from os.path import dirname, join import json from pytezos.michelson.program import MichelsonProgram from pytezos.michelson.types.big_map import big_map_diff_to_lazy_diff from pytezos.michelson.forge import forge_micheline, unforge_micheline folder = 'dexter_usdtz_xtz' entrypoint = 'remo...
39.166667
112
0.722872
7d51210d235aede3eeab7d1c30bfeef18e2115e4
1,126
py
Python
rasa_exp/nlu/tokenizers/simple_tokenizer.py
shfshf/rasa_exp
dd6db46c14c36f0ffe9602551836af43cebcfead
[ "Apache-2.0" ]
null
null
null
rasa_exp/nlu/tokenizers/simple_tokenizer.py
shfshf/rasa_exp
dd6db46c14c36f0ffe9602551836af43cebcfead
[ "Apache-2.0" ]
null
null
null
rasa_exp/nlu/tokenizers/simple_tokenizer.py
shfshf/rasa_exp
dd6db46c14c36f0ffe9602551836af43cebcfead
[ "Apache-2.0" ]
null
null
null
import logging import typing from typing import Any, Dict, Optional, Text, List from rasa.nlu.tokenizers.tokenizer import Token, Tokenizer from rasa.nlu.training_data import Message, TrainingData logger = logging.getLogger(__name__) if typing.TYPE_CHECKING: from rasa.nlu.model import Metadata class OneCharTok...
26.809524
73
0.652753
3060b102169b208a856b773ebd3cb7841408f650
4,461
py
Python
graphql/validation/tests/test_no_unused_variables.py
phil303/graphql-core
f983e19cc8cd818275621e2909fb485cf227fe0c
[ "MIT" ]
1
2021-01-13T15:06:53.000Z
2021-01-13T15:06:53.000Z
graphql/validation/tests/test_no_unused_variables.py
phil303/graphql-core
f983e19cc8cd818275621e2909fb485cf227fe0c
[ "MIT" ]
null
null
null
graphql/validation/tests/test_no_unused_variables.py
phil303/graphql-core
f983e19cc8cd818275621e2909fb485cf227fe0c
[ "MIT" ]
1
2020-07-23T17:53:27.000Z
2020-07-23T17:53:27.000Z
from graphql.language.location import SourceLocation from graphql.validation.rules import NoUnusedVariables from .utils import expect_fails_rule, expect_passes_rule def unused_variable(variable_name, op_name, line, column): return { 'message': NoUnusedVariables.unused_variable_message(variable_name, op_n...
21.975369
85
0.516924
61247d8da8430ca6893ca1789461cc9c70467db6
3,898
py
Python
pytet_v0.3/matrix.py
tlsrbwls999/pytet
865cd9a4702b278cab0882d9e1ec15abb3a7396f
[ "Apache-2.0" ]
null
null
null
pytet_v0.3/matrix.py
tlsrbwls999/pytet
865cd9a4702b278cab0882d9e1ec15abb3a7396f
[ "Apache-2.0" ]
null
null
null
pytet_v0.3/matrix.py
tlsrbwls999/pytet
865cd9a4702b278cab0882d9e1ec15abb3a7396f
[ "Apache-2.0" ]
null
null
null
class MatrixError(Exception): pass class Matrix: nAlloc = 0 nFree = 0 def get_nAlloc(self): return Matrix.nAlloc def get_nFree(self): return Matrix.nFree def get_dy(self): return self._dy def get_dx(self): return self._dx def g...
29.530303
84
0.452027
faa234c60116541c5f983eb0a3cc562bf0f3f29d
1,455
py
Python
flatten_dict.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
flatten_dict.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
flatten_dict.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
def flatten_dictionary(dictionary): # init keys array new_dict = dict() keys = list() def make_key(keys, key): """Form the key""" new_key = ".".join(keys) if key != "": new_key = ".".join((new_key, key)) return new_key def flatten(flatten_dict, keys): ...
25.526316
66
0.452921
8bf40651b3c721850d8504a21a53a6e461375d32
338
py
Python
Desafios/des098.py
vitormrts/ExerciciosPython
176b1c21e147670f7495678bdd4fc97241440d28
[ "MIT" ]
1
2021-02-07T18:58:57.000Z
2021-02-07T18:58:57.000Z
Desafios/des098.py
vitormrts/ExerciciosPython
176b1c21e147670f7495678bdd4fc97241440d28
[ "MIT" ]
null
null
null
Desafios/des098.py
vitormrts/ExerciciosPython
176b1c21e147670f7495678bdd4fc97241440d28
[ "MIT" ]
null
null
null
pessoa = dict() dados = [] pessoa['Nome'] = str(input('Nome: ')) pessoa['Nota'] = float(input(f'Média de {pessoa["Nome"]}: ')) if pessoa['Nota'] >= 5: pessoa['Situação'] = 'Aprovado' else: pessoa['Situação'] = 'Reprovado' dados.append(pessoa.copy()) for p in dados: for k, v in p.items(): print(f'{k}...
24.142857
61
0.58284
258c4f86b6802d87073bc671867892fe134a32b8
840
py
Python
tests/opcodes/cases/test_and_36.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-08-11T02:31:24.000Z
2020-08-11T02:31:24.000Z
tests/opcodes/cases/test_and_36.py
juztin/pytezos-1
7e608ff599d934bdcf129e47db43dbdb8fef9027
[ "MIT" ]
1
2020-12-30T16:44:56.000Z
2020-12-30T16:44:56.000Z
tests/opcodes/cases/test_and_36.py
tqtezos/pytezos
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
[ "MIT" ]
1
2022-03-20T19:01:00.000Z
2022-03-20T19:01:00.000Z
from unittest import TestCase from tests import abspath from pytezos.repl.interpreter import Interpreter from pytezos.michelson.converter import michelson_to_micheline from pytezos.repl.parser import parse_expression class OpcodeTestand_36(TestCase): def setUp(self): self.maxDiff = None self.i ...
32.307692
84
0.686905
f451753d808d1e0491a8bba28157444b4b08d345
2,245
py
Python
plot_code/tau_delta_success.py
pondbooks/STL_SAC_NCSs_Ver2
bee0db08a33182419e2b3a0b49e5798bccf17bcd
[ "MIT" ]
1
2022-03-08T03:33:16.000Z
2022-03-08T03:33:16.000Z
plot_code/tau_delta_success.py
pondbooks/STL_SAC_NCSs_Ver2
bee0db08a33182419e2b3a0b49e5798bccf17bcd
[ "MIT" ]
null
null
null
plot_code/tau_delta_success.py
pondbooks/STL_SAC_NCSs_Ver2
bee0db08a33182419e2b3a0b49e5798bccf17bcd
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt plt.rcParams["font.family"] = "DejaVu Serif" # Font plt.rcParams["font.size"] = 10 # Size of word for i in range(14): data_nopretrain = np.loadtxt('tau_preprocess/success'+str(i)+'.csv',skiprows=1,delimiter=",") data_nopretrain_temp = data_...
43.173077
186
0.773274
9617bcf3d2e5ffbbfda2b79409a5c6201807a592
13,568
py
Python
python/cuml/utils/input_utils.py
efajardo-nv/cuml
bc86714836284ed4752c267513e5d447e884e1c5
[ "Apache-2.0" ]
null
null
null
python/cuml/utils/input_utils.py
efajardo-nv/cuml
bc86714836284ed4752c267513e5d447e884e1c5
[ "Apache-2.0" ]
null
null
null
python/cuml/utils/input_utils.py
efajardo-nv/cuml
bc86714836284ed4752c267513e5d447e884e1c5
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019-2020, NVIDIA CORPORATION. # # 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 ag...
33.173594
79
0.601415
d9b53737dcd4f1df9fd790329113b1488cdef923
199
py
Python
Python/Chapter03/progex03_5.py
msiplab/EicProgLab
4ca523d09c3b414fceda10f3cff055e94fbcc2a9
[ "MIT" ]
1
2021-04-16T04:26:05.000Z
2021-04-16T04:26:05.000Z
Python/Chapter03/progex03_5.py
msiplab/EicProgLab
4ca523d09c3b414fceda10f3cff055e94fbcc2a9
[ "MIT" ]
null
null
null
Python/Chapter03/progex03_5.py
msiplab/EicProgLab
4ca523d09c3b414fceda10f3cff055e94fbcc2a9
[ "MIT" ]
2
2020-06-30T02:11:18.000Z
2021-08-09T04:44:16.000Z
from person import Person def main(): taro = Person('太郎','アニメ') hanako = Person('花子','アイドル') print('太郎の気分:' + taro.kibun) print('花子の気分:' + hanako.kibun) if __name__ == '__main__': main()
14.214286
31
0.623116
fc568bbad86d5e77fcb85a897ac12efae61034a7
6,612
py
Python
sdk/python/pulumi_azure_native/sql/v20200801preview/get_managed_instance_vulnerability_assessment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200801preview/get_managed_instance_vulnerability_assessment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200801preview/get_managed_instance_vulnerability_assessment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# 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...
44.675676
216
0.702662
9623aa1e71d06b5def859bf55974fd720b08b3d0
1,572
py
Python
functions/subsFunc.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
functions/subsFunc.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
functions/subsFunc.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
from app import app from flask_mail import Message from classes.shared import email from classes import settings from classes import subscriptions from classes import Sec from functions import system @system.asynch def runSubscription(subject, destination, message): with app.app_context(): sysSettings = ...
44.914286
238
0.689567
a6350f3cc364bb749fe1c4116550af41a0219f77
31,348
py
Python
tests/query_test.py
Jaymon/prom
b9eab53f9cc9870a3212e96129671c36a749aa94
[ "MIT" ]
8
2018-04-10T17:42:34.000Z
2022-01-14T09:20:23.000Z
tests/query_test.py
Jaymon/prom
b9eab53f9cc9870a3212e96129671c36a749aa94
[ "MIT" ]
85
2018-03-29T00:48:28.000Z
2021-10-16T07:31:02.000Z
tests/query_test.py
firstopinion/prom
b9eab53f9cc9870a3212e96129671c36a749aa94
[ "MIT" ]
3
2019-02-19T23:50:37.000Z
2021-05-12T02:07:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import import datetime import time from threading import Thread import sys import testdata #from testdata.threading import Thread from . import BaseTestCase, EnvironTestCase, TestCase, SkipTest from prom.query import (...
28.216022
90
0.540034