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
b6c218b33c362c83e5f632796bb20dddbf982cc9
273
py
Python
plugins/wklej.py
CodersCommunity/Caroline
e98beaf4daf0cdf390a49da3c3b43eb7a4f28cf9
[ "MIT" ]
null
null
null
plugins/wklej.py
CodersCommunity/Caroline
e98beaf4daf0cdf390a49da3c3b43eb7a4f28cf9
[ "MIT" ]
null
null
null
plugins/wklej.py
CodersCommunity/Caroline
e98beaf4daf0cdf390a49da3c3b43eb7a4f28cf9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from yapsy.IPlugin import IPlugin class Wklej(IPlugin): def execute(self, channel, username, command): if not command: yield channel, ("Nie bądź noobem i wklej na: " "https://gist.github.com/")
24.818182
58
0.567766
a1fe8960b48917d08adb43ce5ba67329f8c9ee01
94,750
py
Python
idaes/core/surrogate/pysmo/tests/test_polynomial_regression.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/core/surrogate/pysmo/tests/test_polynomial_regression.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/core/surrogate/pysmo/tests/test_polynomial_regression.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
42.129835
121
0.614385
543a693a98bfe331052701fa094547705cb62926
9,405
py
Python
tests/oauth2/test_utils.py
kpister/google-auth-library-python
e79b8310bfd961557bf2496e15c9148dac79b213
[ "Apache-2.0" ]
null
null
null
tests/oauth2/test_utils.py
kpister/google-auth-library-python
e79b8310bfd961557bf2496e15c9148dac79b213
[ "Apache-2.0" ]
null
null
null
tests/oauth2/test_utils.py
kpister/google-auth-library-python
e79b8310bfd961557bf2496e15c9148dac79b213
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.490566
122
0.694099
2d2c4eaf6385873c3ae24fbf5afa40eb3ce6c495
1,488
py
Python
setup.py
tritas/missing_strat
79abbcadfc8d2074f05f7e72de4f7d454a847a9c
[ "BSD-3-Clause" ]
null
null
null
setup.py
tritas/missing_strat
79abbcadfc8d2074f05f7e72de4f7d454a847a9c
[ "BSD-3-Clause" ]
null
null
null
setup.py
tritas/missing_strat
79abbcadfc8d2074f05f7e72de4f7d454a847a9c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] setup_requirements = ['pytest-run...
29.176471
63
0.644489
30b7f885b2f909dd5e05e34544624f0158ebb54b
11,343
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_job_schedule.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_job_schedule.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_job_schedule.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # (c) 2018-2019, NetApp, Inc # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'],...
38.063758
120
0.601252
d3e9591b307be3437207db2c093052070ab130d9
569
py
Python
py/scripts/software_updates.py
cristian-rincon/automatizacion
4ebda3f8e9f14aa371773be67cc95dc88689713a
[ "MIT" ]
null
null
null
py/scripts/software_updates.py
cristian-rincon/automatizacion
4ebda3f8e9f14aa371773be67cc95dc88689713a
[ "MIT" ]
null
null
null
py/scripts/software_updates.py
cristian-rincon/automatizacion
4ebda3f8e9f14aa371773be67cc95dc88689713a
[ "MIT" ]
null
null
null
import os import logging from sys import platform log = logging.getLogger(__name__) update = "sudo apt update" upgrade = "sudo apt upgrade" def updater(): """ docstring """ os.system(update) if platform == "linux" or platform == "linux2": log.debug(">>> Linux Platform") try: ...
17.242424
51
0.55536
6e61d8e0c601cea025c9d3bf2e3b01e616ce7f31
1,081
py
Python
wbb/modules/__main__.py
Purushottam-6668/MY_TelegramBot
9f09afd017e9928046cb6f0d6e0b63a7884ac902
[ "MIT" ]
1
2021-11-17T13:25:25.000Z
2021-11-17T13:25:25.000Z
wbb/modules/__main__.py
Purushottam-6668/MY_TelegramBot
9f09afd017e9928046cb6f0d6e0b63a7884ac902
[ "MIT" ]
null
null
null
wbb/modules/__main__.py
Purushottam-6668/MY_TelegramBot
9f09afd017e9928046cb6f0d6e0b63a7884ac902
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 TheProgrammerDev 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, publi...
45.041667
78
0.80111
e45bf85785ba7101cded6f45aba4c378f43359a7
2,569
py
Python
auta/configuration.py
epfahl/auta
507a2c3db21424cbf0875e7cea6b8fe49800a7c6
[ "MIT" ]
1
2021-07-13T09:33:10.000Z
2021-07-13T09:33:10.000Z
auta/configuration.py
epfahl/auta
507a2c3db21424cbf0875e7cea6b8fe49800a7c6
[ "MIT" ]
null
null
null
auta/configuration.py
epfahl/auta
507a2c3db21424cbf0875e7cea6b8fe49800a7c6
[ "MIT" ]
null
null
null
"""Configuration utilities. """ import toolz as tz DEFAULT_CONFIG = { 'time_key': 'time', 'time_type': 'asdatetime', 'data_values': [], 'status_values': [], 'params': {}, 'state_initial': { 'status': None, 'episode_start': None, 'episode_end': None, 'episode_sta...
26.484536
74
0.565979
4d9e5cfaef388e09ac2bdce0e96ad69376d79416
15,279
py
Python
PX4-Autopilot/src/modules/mavlink/mavlink/pymavlink/generator/javascript/test/make_tests.py
JinRIIS/Custom-PX4
1d11a5c944ae02d9b8f14cb42b1f99e0ab2916a8
[ "BSD-3-Clause" ]
null
null
null
PX4-Autopilot/src/modules/mavlink/mavlink/pymavlink/generator/javascript/test/make_tests.py
JinRIIS/Custom-PX4
1d11a5c944ae02d9b8f14cb42b1f99e0ab2916a8
[ "BSD-3-Clause" ]
null
null
null
PX4-Autopilot/src/modules/mavlink/mavlink/pymavlink/generator/javascript/test/make_tests.py
JinRIIS/Custom-PX4
1d11a5c944ae02d9b8f14cb42b1f99e0ab2916a8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Node/javascript mavlink test maker! # # This is written to run with python3 only, and the tests it produces are for node / javascript # It is mavlink1 and mavlink2 and multi-type aware # # Copyright David 'Buzz' Bussenschutt July 2020 # Released under GNU GPL version 3 or later # # to run:...
41.406504
222
0.562013
8f72b553404e5e2f1000d9245a201627557e557d
412
py
Python
cride/users/urls.py
EveFer/AdvancedDjangoCourse
afb7c3411f22ddefacf6a15c822b41ee7378f7e8
[ "MIT" ]
null
null
null
cride/users/urls.py
EveFer/AdvancedDjangoCourse
afb7c3411f22ddefacf6a15c822b41ee7378f7e8
[ "MIT" ]
3
2021-03-19T10:09:53.000Z
2022-01-13T02:05:38.000Z
cride/users/urls.py
EveFer/AdvancedDjangoCourse
afb7c3411f22ddefacf6a15c822b41ee7378f7e8
[ "MIT" ]
null
null
null
"""Users URLs""" #Django from django.urls import path #views from cride.users.views import ( UserLoginAPIView, UserSignupAPIView, AccountVerificationAPIView ) urlpatterns = [ path('users/login/', UserLoginAPIView.as_view(), name='login'), path('users/signup/', UserSignupAPIView.as_view(), name='...
22.888889
79
0.708738
d8f11724862cbc9e606739a555ea24dd5ab3b9e2
451
py
Python
Exercicio07.py
felipellima83/wiki.python.org.br-EstruturaSequencial
22f6ee49f9c93bbf81aa60639466c752a9ba248a
[ "MIT" ]
null
null
null
Exercicio07.py
felipellima83/wiki.python.org.br-EstruturaSequencial
22f6ee49f9c93bbf81aa60639466c752a9ba248a
[ "MIT" ]
null
null
null
Exercicio07.py
felipellima83/wiki.python.org.br-EstruturaSequencial
22f6ee49f9c93bbf81aa60639466c752a9ba248a
[ "MIT" ]
null
null
null
#Felipe Lima #Linguagem: Python #Exercício 07 do site: https://wiki.python.org.br/EstruturaSequencial #Entra com a altura do quadrado altura = float(input("Qual a altura do quadrado: ")) #Entra com a base do quadrado: base = float(input("Qual a largura do quadrado: ")) #Realiza os cálculos area = base*altura dobro =...
26.529412
69
0.722838
e87003c930f1667017f2a3904013f629b3e22783
406
py
Python
src/glod/in_out/casts.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
src/glod/in_out/casts.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
1
2021-03-10T16:48:34.000Z
2021-03-10T16:48:34.000Z
src/glod/in_out/casts.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
__copyright__ = 'Copyright(c) Gordon Elliott 2017' from datetime import date, datetime """ """ def strip_commas(value, _): return value.replace(',', '') if value else None def strip_commas_and_spaces(value, _): return value.replace(',', '').strip() if value else None def cast_dmy_date_from_string(value...
21.368421
79
0.699507
3fb44fd4be29164eb7f0f1cb26cd2bc82a08dc9c
2,623
py
Python
tiktok/uix/videocard.py
sunny363/tiktok-clone
70c1e5384773a08f342bd9c8aa953a244fa74967
[ "CC0-1.0" ]
5
2021-07-23T11:07:29.000Z
2021-12-01T11:49:05.000Z
tiktok/uix/videocard.py
sunny363/tiktok-clone
70c1e5384773a08f342bd9c8aa953a244fa74967
[ "CC0-1.0" ]
null
null
null
tiktok/uix/videocard.py
sunny363/tiktok-clone
70c1e5384773a08f342bd9c8aa953a244fa74967
[ "CC0-1.0" ]
1
2021-08-30T15:20:41.000Z
2021-08-30T15:20:41.000Z
from kivymd.uix.boxlayout import MDBoxLayout from kivy.lang.builder import Builder from kivy.properties import DictProperty Builder.load_string( """ <VideoCard>: md_bg_color: [0, 0, 0, 1] size_hint_y: None video_state: 'stop' MDFloatLayout: Video: source: root.data['sour...
31.22619
57
0.441098
a9c5496efcea0e8f21ddc77daea07e9c9e06c1a7
47,493
py
Python
distributed/utils_test.py
wwoods/distributed
a8d2176b38098a5778448d35c1cb039f97f142f9
[ "BSD-3-Clause" ]
1
2022-01-11T08:22:46.000Z
2022-01-11T08:22:46.000Z
distributed/utils_test.py
wwoods/distributed
a8d2176b38098a5778448d35c1cb039f97f142f9
[ "BSD-3-Clause" ]
null
null
null
distributed/utils_test.py
wwoods/distributed
a8d2176b38098a5778448d35c1cb039f97f142f9
[ "BSD-3-Clause" ]
null
null
null
import asyncio import collections import copy import functools import gc import inspect import io import itertools import logging import logging.config import os import queue import re import shutil import signal import socket import subprocess import sys import tempfile import threading import uuid import warnings imp...
28.019469
119
0.574211
ddb44b96cc7b7f112698d9c14ab2c1d8660cabd4
8,351
py
Python
biostar/server/templatetags/server_tags.py
biostars/support.bioconductor.org
2416b6f4ec82fce3e69a218a616761a934f82bb5
[ "MIT" ]
1
2021-08-01T23:26:12.000Z
2021-08-01T23:26:12.000Z
biostar/server/templatetags/server_tags.py
biostars/support.bioconductor.org
2416b6f4ec82fce3e69a218a616761a934f82bb5
[ "MIT" ]
null
null
null
biostar/server/templatetags/server_tags.py
biostars/support.bioconductor.org
2416b6f4ec82fce3e69a218a616761a934f82bb5
[ "MIT" ]
1
2020-03-12T07:24:27.000Z
2020-03-12T07:24:27.000Z
from django import template from django.conf import settings from django.template import Context, Template from django.template.defaultfilters import stringfilter from django.core.context_processors import csrf from biostar.apps.posts.models import Post, Tag from biostar.apps.messages.models import Message import rando...
28.697595
83
0.683271
c992e9b917b134d269d5ec4a837fdbb0da1be30d
1,628
py
Python
MLWorker/data/mnist.py
harymitchell/mscs-ml
4e284c79c9c30926c7ca24ac8bf082b4cefadddc
[ "MIT" ]
1
2018-05-31T14:58:49.000Z
2018-05-31T14:58:49.000Z
MLWorker/data/mnist.py
harymitchell/mscs-ml
4e284c79c9c30926c7ca24ac8bf082b4cefadddc
[ "MIT" ]
7
2018-03-20T15:05:55.000Z
2018-03-21T19:47:25.000Z
MLWorker/data/mnist.py
harymitchell/mscs-ml
4e284c79c9c30926c7ca24ac8bf082b4cefadddc
[ "MIT" ]
null
null
null
'''Trains a simple deep NN on the MNIST dataset. Gets to 98.40% test accuracy after 20 epochs (there is *a lot* of margin for parameter tuning). 2 seconds per epoch on a K520 GPU. ''' from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from keras.lay...
29.6
60
0.709459
d70d894d948bdae2946d754e35958455d616f122
2,552
py
Python
aws_analysis_tools/cli/convert_ip.py
krux/aws-analysis-tools
8368652d073898114b9f6cd07761f432b71009a2
[ "MIT" ]
1
2018-02-07T00:20:27.000Z
2018-02-07T00:20:27.000Z
aws_analysis_tools/cli/convert_ip.py
krux/aws-analysis-tools
8368652d073898114b9f6cd07761f432b71009a2
[ "MIT" ]
23
2015-01-08T20:20:48.000Z
2021-02-24T19:10:52.000Z
aws_analysis_tools/cli/convert_ip.py
krux/aws-analysis-tools
8368652d073898114b9f6cd07761f432b71009a2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # © 2016 Krux Digital, Inc. # # # Standard libraries # from __future__ import absolute_import from pprint import pformat # # Internal libraries # import krux.cli import krux_ec2.cli from krux_ec2.filter import Filter NAME = 'convert_ip' class Application(krux_ec2.cli.Application): ...
26.309278
100
0.590517
7130e22db5267f90f900923ebf66be07a40d08d9
5,550
py
Python
es/ch11/sudoku.py
skypather/GeneticAlgorithmsWithPython
d6d99f59e6e2b77380cadf0a1158d2442298fe89
[ "Apache-2.0" ]
2
2018-04-08T15:05:42.000Z
2018-04-08T15:06:30.000Z
es/ch11/sudoku.py
zzw95/GeneticAlgorithmsWithPython
9ab98edd04d5d06277f57e1e9edcb72ba6a43828
[ "Apache-2.0" ]
null
null
null
es/ch11/sudoku.py
zzw95/GeneticAlgorithmsWithPython
9ab98edd04d5d06277f57e1e9edcb72ba6a43828
[ "Apache-2.0" ]
1
2019-10-09T01:28:38.000Z
2019-10-09T01:28:38.000Z
# File: sudoku.py # Del capítulo 11 de _Algoritmos Genéticos con Python_ # # Author: Clinton Sheppard <fluentcoder@gmail.com> # Copyright (c) 2017 Clinton Sheppard # # 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...
32.267442
79
0.61982
3c3548b71b655f5fc4f08253af1147e86256d963
2,841
py
Python
backend/project/app/extension/history/conference_ent_plastic.py
goodyttoor/tcl_v7
ceb545fa3f0e3eaf3a1a43c7e4a2102014b82a47
[ "MIT" ]
null
null
null
backend/project/app/extension/history/conference_ent_plastic.py
goodyttoor/tcl_v7
ceb545fa3f0e3eaf3a1a43c7e4a2102014b82a47
[ "MIT" ]
null
null
null
backend/project/app/extension/history/conference_ent_plastic.py
goodyttoor/tcl_v7
ceb545fa3f0e3eaf3a1a43c7e4a2102014b82a47
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Optional from fastapi import APIRouter, Depends from sqlmodel import Field, SQLModel from ...db import get_session from sqlalchemy import select from sqlalchemy.ext.asyncio import AsyncSession router = APIRouter() class HistoryEntPlasticConference(SQLModel, table=...
32.284091
139
0.782823
394f5032e39244d74840621329a7f456e5954f61
28,641
py
Python
train_Base.py
johnr0/TaleBrush-backend
f7429e10f328087444647d5dc6bf1f3a22ccfcce
[ "BSD-3-Clause" ]
1
2022-02-25T18:36:16.000Z
2022-02-25T18:36:16.000Z
train_Base.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
train_Base.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
51.792043
165
0.664153
1d9ea6798b9641bface9c4e8e37df7b49b73f83a
13,113
py
Python
Program_Final/venv/Lib/site-packages/Bio/PDB/Entity.py
isacasini/SNV_Xia_et_al_2020
d729b68e37babf9d30941683af6723aad65319f7
[ "MIT" ]
2
2021-01-05T02:55:57.000Z
2021-04-16T15:49:08.000Z
Program_Final/venv/Lib/site-packages/Bio/PDB/Entity.py
isacasini/SNV_Xia_et_al_2020
d729b68e37babf9d30941683af6723aad65319f7
[ "MIT" ]
null
null
null
Program_Final/venv/Lib/site-packages/Bio/PDB/Entity.py
isacasini/SNV_Xia_et_al_2020
d729b68e37babf9d30941683af6723aad65319f7
[ "MIT" ]
1
2021-01-05T08:12:38.000Z
2021-01-05T08:12:38.000Z
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Base class for Residue, Chain, Model and Structure classes. It is a simple container c...
29.938356
88
0.589263
7c2124cdfff36d69bf5c47484f8720db84d353d2
4,639
py
Python
Problem Sets/ps4/problem5.py
VasuGoel/mitx-6.00.1x
dcb9e7c88cc4fd5c43c0f7b7f2fe5aa2eb49dede
[ "MIT" ]
3
2019-07-05T18:05:38.000Z
2019-09-04T12:12:40.000Z
Problem Sets/ps4/problem5.py
VasuGoel/mitx-6.00.1x
dcb9e7c88cc4fd5c43c0f7b7f2fe5aa2eb49dede
[ "MIT" ]
null
null
null
Problem Sets/ps4/problem5.py
VasuGoel/mitx-6.00.1x
dcb9e7c88cc4fd5c43c0f7b7f2fe5aa2eb49dede
[ "MIT" ]
4
2019-08-20T02:51:37.000Z
2019-09-04T12:12:42.000Z
# In ps4a.py, note that in the function playHand, there is a bunch of pseudocode. This pseudocode is provided to help guide you in writing your function. Check out the Why Pseudocode? resource to learn more about the What and Why of Pseudocode before you start coding your solution. # # Note: Do not assume that there wi...
42.172727
282
0.637637
f383b6a23459544f3dfb3b7099063bb603bab82c
1,577
py
Python
research/cv/EGnet/pretrained_model_convert/vgg_pth.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/EGnet/pretrained_model_convert/vgg_pth.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/EGnet/pretrained_model_convert/vgg_pth.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # 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...
34.282609
107
0.579581
b7427be3d968d7274f2c93ac275005fb31b5afdb
9,709
py
Python
Scripts/Fig 6C - Paced steady-state uniqueness visualisation - TT06.py
CardiacModelling/Gamma_0
05c7e16088656b343d3aa347df88fd3dd58cea87
[ "BSD-3-Clause" ]
null
null
null
Scripts/Fig 6C - Paced steady-state uniqueness visualisation - TT06.py
CardiacModelling/Gamma_0
05c7e16088656b343d3aa347df88fd3dd58cea87
[ "BSD-3-Clause" ]
null
null
null
Scripts/Fig 6C - Paced steady-state uniqueness visualisation - TT06.py
CardiacModelling/Gamma_0
05c7e16088656b343d3aa347df88fd3dd58cea87
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 8 16:04:17 2020 @author: yann-stanislas.barral@roche.com """ import numpy as np import sabs_pkpd import matplotlib.pyplot as plt import matplotlib.axes from mpl_toolkits.mplot3d import Axes3D import matplotlib.colors as colors import matplotlib.cm as cm imp...
39.46748
203
0.61891
137e9baecb1ee031a7d211849c5bc62d179732d1
2,319
py
Python
tests/test_kkiapay.py
PythonBenin/kkiapay-python
64d82670f84c432efc897b6e019f0d0be2657985
[ "MIT" ]
13
2019-07-12T05:41:32.000Z
2022-03-17T08:10:43.000Z
tests/test_kkiapay.py
PythonBenin/kkiapay-python
64d82670f84c432efc897b6e019f0d0be2657985
[ "MIT" ]
8
2019-07-12T03:55:43.000Z
2020-09-14T21:31:09.000Z
tests/test_kkiapay.py
PythonBenin/kkiapay-python
64d82670f84c432efc897b6e019f0d0be2657985
[ "MIT" ]
4
2019-07-11T19:23:50.000Z
2019-07-21T10:22:13.000Z
from .context import kkiapay from kkiapay import Kkiapay import requests_mock, requests def setup_module(module): """ setup any state specific to the execution of the given module.""" def teardown_module(module): """ teardown any state that was previously setup with a setup_module method. """ clas...
33.608696
112
0.548081
0d02f31e55a8eeee2e23cccaa145003876ad1703
5,225
py
Python
eval.py
wellowdata/pytorch-layoutnet
3d4352f94ed00d3c37890e9119452811d4f0893f
[ "MIT" ]
155
2018-08-13T05:26:35.000Z
2022-03-26T13:13:24.000Z
eval.py
wellowdata/pytorch-layoutnet
3d4352f94ed00d3c37890e9119452811d4f0893f
[ "MIT" ]
25
2018-08-17T08:39:51.000Z
2022-01-11T01:08:37.000Z
eval.py
wellowdata/pytorch-layoutnet
3d4352f94ed00d3c37890e9119452811d4f0893f
[ "MIT" ]
44
2018-08-17T19:53:05.000Z
2022-03-31T06:25:37.000Z
import os import argparse import numpy as np import torch from torch.utils.data import DataLoader from model import Encoder, Decoder from dataset import PanoDataset from utils import StatisticDict from pano import get_ini_cor from pano_opt import optimize_cor_id from utils_eval import eval_PE, eval_3diou, augment, aug...
42.137097
88
0.651675
a49b2afcbc073d2f8572205c77a0721f6f17da63
639
py
Python
bianca/orm/feedback.py
bumper-app/bumper-bianca
f2d55445b91666e3559771a89b944db10d8b3b8c
[ "MIT" ]
1
2022-03-18T02:33:49.000Z
2022-03-18T02:33:49.000Z
bianca/orm/feedback.py
bumper-app/bumper-bianca
f2d55445b91666e3559771a89b944db10d8b3b8c
[ "MIT" ]
1
2019-12-09T16:36:44.000Z
2020-01-23T16:56:47.000Z
bianca/orm/feedback.py
bumper-app/bumper-bianca
f2d55445b91666e3559771a89b944db10d8b3b8c
[ "MIT" ]
null
null
null
""" file: feedback.py description: Holds the feedback abstraction class and ORM """ import uuid from db import * from datetime import datetime class Feedback(Base): """ Commit(): description: The SQLAlchemy ORM for the feedback table """ __tablename__ = 'feedback' id = Column(String, primary_k...
22.034483
58
0.641628
2be9e8f71fbcb8d88e0bf73e102933b0f669a384
2,271
py
Python
tests/test_collections.py
daqing15/elixir
53fe515f76d31dc816e9ab99ddd0ceda1d9d574f
[ "MIT" ]
1
2015-08-25T14:23:17.000Z
2015-08-25T14:23:17.000Z
tests/test_collections.py
daqing15/elixir
53fe515f76d31dc816e9ab99ddd0ceda1d9d574f
[ "MIT" ]
null
null
null
tests/test_collections.py
daqing15/elixir
53fe515f76d31dc816e9ab99ddd0ceda1d9d574f
[ "MIT" ]
null
null
null
""" Test collections """ from sqlalchemy import Table from elixir import * import elixir def setup(): metadata.bind = 'sqlite://' def teardown(): cleanup_all() class TestCollections(object): def teardown(self): cleanup_all() def test_no_collection(self): class Person(Entity): ...
24.419355
79
0.623954
a24bd7af32345cc1f188eccc0ffd80cf83e203e0
10,705
py
Python
adversarial/cw_mnist.py
ivokun/deep-learning-workbench
16012d03bc4d58c51f739a8de32a533cae48c799
[ "MIT" ]
1
2020-11-19T03:00:54.000Z
2020-11-19T03:00:54.000Z
adversarial/cw_mnist.py
ivokun/deep-learning-workbench
16012d03bc4d58c51f739a8de32a533cae48c799
[ "MIT" ]
null
null
null
adversarial/cw_mnist.py
ivokun/deep-learning-workbench
16012d03bc4d58c51f739a8de32a533cae48c799
[ "MIT" ]
null
null
null
""" This tutorial shows how to generate adversarial examples using C&W attack in white-box setting. The original paper can be found at: https://nicholas.carlini.com/papers/2017_sp_nnrobustattacks.pdf """ # pylint: disable=missing-docstring from __future__ import absolute_import from __future__ import division from __fu...
35.44702
78
0.650724
7f0134a1f93e97e1aee9dd0849e783197d30029e
3,108
py
Python
pythonproj/pythonproj/settings.py
nam20485/pythonsite
79c1af0069efd962b45d7a6c89b80eefb2075032
[ "MIT" ]
null
null
null
pythonproj/pythonproj/settings.py
nam20485/pythonsite
79c1af0069efd962b45d7a6c89b80eefb2075032
[ "MIT" ]
null
null
null
pythonproj/pythonproj/settings.py
nam20485/pythonsite
79c1af0069efd962b45d7a6c89b80eefb2075032
[ "MIT" ]
null
null
null
""" Django settings for pythonproj project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import...
25.68595
91
0.696911
75e1ea7135ab50589aab1507928bc3015a5d824e
178,173
py
Python
ns-3-dev/src/mpi/bindings/modulegen__gcc_LP64.py
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
11
2015-11-24T11:07:28.000Z
2021-12-23T04:10:29.000Z
ns-3-dev/src/mpi/bindings/modulegen__gcc_LP64.py
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
null
null
null
ns-3-dev/src/mpi/bindings/modulegen__gcc_LP64.py
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
6
2016-03-01T06:32:21.000Z
2022-03-24T19:31:41.000Z
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
63.701466
381
0.629568
6ce8b8a45d771f5a85a8b82de62e1ec91687b8c1
1,529
py
Python
makehelper.py
bhill-slac/p4p-dev
33c20daa9d3976aa254a2f9c2d6c6edc944bbfdc
[ "BSD-3-Clause" ]
null
null
null
makehelper.py
bhill-slac/p4p-dev
33c20daa9d3976aa254a2f9c2d6c6edc944bbfdc
[ "BSD-3-Clause" ]
null
null
null
makehelper.py
bhill-slac/p4p-dev
33c20daa9d3976aa254a2f9c2d6c6edc944bbfdc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Set some python derived Makefile variables. Emits something like the following PY_OK := YES # indicates success of this script HAVE_NUMPY := YES/NO PY_VER := 2.6 PY_INCDIRS := /path ... PY_LIBDIRS := /path ... """ from __future__ import print_function import sys if len(sys.argv)<2: o...
22.820896
66
0.69915
40357176e350a8b918f56f0be75a1486327c37fe
1,854
py
Python
observer.py
kant/Server_observer
0082db24edd163ed5be829f7ba88b7e21de13287
[ "MIT" ]
null
null
null
observer.py
kant/Server_observer
0082db24edd163ed5be829f7ba88b7e21de13287
[ "MIT" ]
null
null
null
observer.py
kant/Server_observer
0082db24edd163ed5be829f7ba88b7e21de13287
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import asyncio import websockets import time import random import psutil import socket import yaml # list of the disks to observe keys = ['mmcblk0', 'ram0', 'ram1'] #read the own IP-address to serve on s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) ip = s.getso...
31.423729
192
0.685005
c12bd5f87e0dc101a74086a071512ac690bcc4e0
2,598
py
Python
data/p3BR/R2/benchmark/startPyquil357.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startPyquil357.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startPyquil357.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=71 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
26.783505
64
0.554273
457d24ca576dad7556cc5f42525bcca19e052fa8
213
py
Python
Python Problems/Chapter 1 - Output, Arithmetic/One_08.py
SJ-Coding-Club/Practice-Problems
203ef62fb2f8b786876e14c5a4ddf6735bfe5b31
[ "MIT" ]
null
null
null
Python Problems/Chapter 1 - Output, Arithmetic/One_08.py
SJ-Coding-Club/Practice-Problems
203ef62fb2f8b786876e14c5a4ddf6735bfe5b31
[ "MIT" ]
null
null
null
Python Problems/Chapter 1 - Output, Arithmetic/One_08.py
SJ-Coding-Club/Practice-Problems
203ef62fb2f8b786876e14c5a4ddf6735bfe5b31
[ "MIT" ]
1
2020-04-07T20:22:29.000Z
2020-04-07T20:22:29.000Z
# Chapter 1 Problem 8 # Write a program that displays the area and perimeter of a # circle that has a radius of 5.5 using the following formulas # area = pi x radius x radius # perimeter = 2 x pi x radius
42.6
62
0.713615
3179cef8ce6b7256f1ec5408d3ce64eaafeaaed4
7,675
py
Python
MachineLearning/kaggle/house_prices/data_analyze.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
MachineLearning/kaggle/house_prices/data_analyze.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
MachineLearning/kaggle/house_prices/data_analyze.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:utf-8 # 2019-1-20 # house prices # https://blog.csdn.net/huangxiaoyun1900/article/details/82229708 # 编码: http://www.cnblogs.com/king-lps/p/7846414.html # 博客园:https://www.cnblogs.com/massquantity/p/8640991.html import pandas as pd import warnings warnings.filterwarnings("ignore") import seaborn as sns import...
31.199187
135
0.672182
5f4eda8a586c1114ecb529e5ba43bf4596d7223a
2,224
py
Python
utils/postprocessing/SelectLabelsPostprocessor.py
bdvllrs/misinformation-detection-tensor-embeddings
eb43e55fb7d4317f4ca0d5c1db8191be3d543716
[ "MIT" ]
7
2020-03-18T03:40:48.000Z
2021-12-29T11:04:53.000Z
utils/postprocessing/SelectLabelsPostprocessor.py
bdvllrs/misinformation-detection-tensor-embeddings
eb43e55fb7d4317f4ca0d5c1db8191be3d543716
[ "MIT" ]
null
null
null
utils/postprocessing/SelectLabelsPostprocessor.py
bdvllrs/misinformation-detection-tensor-embeddings
eb43e55fb7d4317f4ca0d5c1db8191be3d543716
[ "MIT" ]
3
2019-09-30T05:41:59.000Z
2020-12-03T19:49:10.000Z
import numpy as np from utils.postprocessing import PostProcessing from utils import embedding_matrix_2_kNN from utils.Config import Config from utils.ArticlesProvider import ArticlesProvider class SelectLabelsPostprocessor(PostProcessing): """ Select smartly the articles to label to optimize the result "...
37.694915
131
0.580036
e4caeacc3e2947a1a7363d4e999199cea306fecf
240
py
Python
piccolo/utils/naming.py
coder3112/piccolo
f5f72c6b24782f1b6e04c31549654cd27fd3a148
[ "MIT" ]
null
null
null
piccolo/utils/naming.py
coder3112/piccolo
f5f72c6b24782f1b6e04c31549654cd27fd3a148
[ "MIT" ]
null
null
null
piccolo/utils/naming.py
coder3112/piccolo
f5f72c6b24782f1b6e04c31549654cd27fd3a148
[ "MIT" ]
null
null
null
import re _camel_words = re.compile(r"([A-Z][a-z0-9_]+)") def _camel_to_snake(s): """ Convert CamelCase to snake_case. """ return "_".join( [ i.lower() for i in _camel_words.split(s)[1::2] ] )
17.142857
58
0.529167
2ddb1f943839c4674efd18122cd5bfb3b089d471
9,146
py
Python
test/test_evaluation/evaluation_util.py
tangypnuaa/auto-sklearn
bc8683188ae793556ac7d23662e5b284932f5eee
[ "BSD-3-Clause" ]
null
null
null
test/test_evaluation/evaluation_util.py
tangypnuaa/auto-sklearn
bc8683188ae793556ac7d23662e5b284932f5eee
[ "BSD-3-Clause" ]
null
null
null
test/test_evaluation/evaluation_util.py
tangypnuaa/auto-sklearn
bc8683188ae793556ac7d23662e5b284932f5eee
[ "BSD-3-Clause" ]
null
null
null
import functools import traceback import unittest import numpy as np from numpy.linalg import LinAlgError import sklearn.datasets from sklearn import preprocessing import sklearn.model_selection from autosklearn.constants import \ MULTICLASS_CLASSIFICATION, MULTILABEL_CLASSIFICATION, BINARY_CLASSIFICATION, REGRE...
31.321918
95
0.561666
63e458e08145beaa3ce5664394e4e73c10a00e8d
3,782
py
Python
uncompyle6/parsers/parse35.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
1
2021-03-24T11:54:03.000Z
2021-03-24T11:54:03.000Z
uncompyle6/parsers/parse35.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
uncompyle6/parsers/parse35.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
# Copyright (c) 2016 Rocky Bernstein """ spark grammar differences over Python 3.4 for Python 3.5. """ from __future__ import print_function from uncompyle6.parser import PythonParserSingle from spark_parser import DEFAULT_DEBUG as PARSER_DEFAULT_DEBUG from uncompyle6.parsers.parse34 import Python34Parser class Pyth...
40.234043
81
0.643839
ebc03b70943b455faae81a9851c87c518cb293dd
473
py
Python
data/scripts/templates/object/mobile/shared_dressed_dathomir_sing_mt_clan_slave.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_dathomir_sing_mt_clan_slave.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_dathomir_sing_mt_clan_slave.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_dathomir_sing_mt_clan_slave.iff" result.attribute_temp...
27.823529
81
0.7463
1d53498a3da16f17af8ece8ae119525b944e8236
476
py
Python
tests/test_actions.py
arnoldasjan/Calculator
4c2e0cd0d70c077249228b1a54d8fa7b0658dd42
[ "MIT" ]
null
null
null
tests/test_actions.py
arnoldasjan/Calculator
4c2e0cd0d70c077249228b1a54d8fa7b0658dd42
[ "MIT" ]
null
null
null
tests/test_actions.py
arnoldasjan/Calculator
4c2e0cd0d70c077249228b1a54d8fa7b0658dd42
[ "MIT" ]
null
null
null
from unittest import TestCase from calculator import actions class TestAdd(TestCase): def test_add(self): self.assertEqual(actions.add(3, 9), 12) def test_add_with_negative_numbers(self): self.assertEqual(actions.add(-53, 9), -44) class TestMultiply(TestCase): def test_multiply(self): ...
25.052632
56
0.705882
1388e89c2aeb6e9fdf886cad0df288012c06ace5
14,099
py
Python
tests/simulations/plant_equipment/test_plant_equipment_boiler.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
null
null
null
tests/simulations/plant_equipment/test_plant_equipment_boiler.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2021-02-03T01:56:56.000Z
2021-02-03T01:56:56.000Z
tests/simulations/plant_equipment/test_plant_equipment_boiler.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2022-01-11T18:31:05.000Z
2022-01-11T18:31:05.000Z
from pathlib import Path from tests.simulations import BaseSimulationTest from src.epjson_handler import EPJSON test_dir = Path(__file__).parent.parent.parent class TestSimulationsPlantEquipmentBoiler(BaseSimulationTest): def setUp(self): self.ej = EPJSON() base_idf_file_path = test_dir.joinpath...
58.260331
122
0.64196
61a6c565e52cab4aa63a7e1ff1d063b4a4f50c48
1,760
py
Python
salt/modules/openbsdservice.py
sunbenxin/salt
b821f6a174e67a3e1def1ba7fa16885cd985bb0c
[ "Apache-2.0" ]
1
2019-06-27T13:03:07.000Z
2019-06-27T13:03:07.000Z
salt/modules/openbsdservice.py
sunbenxin/salt
b821f6a174e67a3e1def1ba7fa16885cd985bb0c
[ "Apache-2.0" ]
null
null
null
salt/modules/openbsdservice.py
sunbenxin/salt
b821f6a174e67a3e1def1ba7fa16885cd985bb0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The service module for OpenBSD ''' # Import python libs import os # XXX enable/disable support would be nice # Define the module's virtual name __virtualname__ = 'service' def __virtual__(): ''' Only work on OpenBSD ''' if __grains__['os'] == 'OpenBSD' and os.path.exists...
20.705882
77
0.590341
3cfa9ad9a49add410fc8a4eba610c43712d00f25
342
py
Python
simple_api/adapters/graphql/security/exceptions.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
1
2021-02-24T22:14:59.000Z
2021-02-24T22:14:59.000Z
simple_api/adapters/graphql/security/exceptions.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
null
null
null
simple_api/adapters/graphql/security/exceptions.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
null
null
null
class ResourceLimitReached(Exception): pass class QueryWeightExceeded(ResourceLimitReached): pass class DepthLimitReached(ResourceLimitReached): pass class ListLimitRequired(ResourceLimitReached): pass class ListLimitTooHigh(ResourceLimitReached): pass class ActionsLimitExceeded(ResourceLi...
14.869565
49
0.795322
8ccb9b67f2bd56eaf82df548055813e45a03f82e
4,212
py
Python
Treepedia/metadataCollector.py
Arnoldreali/Treepedia_Pubic
34d925c1f85e44c061a3ecae5ce93e6bd4d94c2a
[ "BSD-2-Clause" ]
145
2018-06-09T16:21:49.000Z
2022-03-14T03:18:27.000Z
Treepedia/metadataCollector.py
Arnoldreali/Treepedia_Pubic
34d925c1f85e44c061a3ecae5ce93e6bd4d94c2a
[ "BSD-2-Clause" ]
8
2018-11-02T20:13:44.000Z
2022-03-11T23:23:31.000Z
Treepedia/metadataCollector.py
Arnoldreali/Treepedia_Pubic
34d925c1f85e44c061a3ecae5ce93e6bd4d94c2a
[ "BSD-2-Clause" ]
87
2018-06-14T16:30:56.000Z
2022-03-29T01:28:52.000Z
# This function is used to collect the metadata of the GSV panoramas based on the sample point shapefile # Copyright(C) Xiaojiang Li, Ian Seiferling, Marwa Abdulhai, Senseable City Lab, MIT def GSVpanoMetadataCollector(samplesFeatureClass,num,ouputTextFolder): ''' This function is used to call the Google AP...
37.274336
121
0.573124
24d1434ec676cf28718ac629039713054206b962
830
py
Python
pachong/mysql_handle/mysql_conn.py
vickyi/Chestnut
a019b5bf09adb607297b38200bb4bf0a214ce64f
[ "MIT" ]
null
null
null
pachong/mysql_handle/mysql_conn.py
vickyi/Chestnut
a019b5bf09adb607297b38200bb4bf0a214ce64f
[ "MIT" ]
null
null
null
pachong/mysql_handle/mysql_conn.py
vickyi/Chestnut
a019b5bf09adb607297b38200bb4bf0a214ce64f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pymysql class MySqlConn(object): # https://dev.mysql.com/doc/connector-python/en/connector-python-example-cursor-transaction.html @staticmethod def get_mysql(): # 打开数据库连接 mysql_conn = pymysql.connect("localhost", "dev", "dev123456", "dm") return mysql_co...
22.432432
100
0.603614
ad2629cb8f86928337e5764d4c1bb755ce9f90f5
787
py
Python
test/test_status7.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
test/test_status7.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
test/test_status7.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
# coding: utf-8 """ NetBox API API to access NetBox # noqa: E501 OpenAPI spec version: 2.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import netbox_client from netbox_client.models.status7 import Status7 # noq...
19.195122
79
0.673443
5ec87702b3231e6ce748f40268efc0f66f7a2702
14,352
py
Python
implicit_fem/python/implicit_fem.py
taichi-dev/taichi-aot-demo
894a5cfbf9d0e85bcd02368b45cacb3d5063eb47
[ "Apache-2.0" ]
2
2021-12-31T09:45:10.000Z
2022-03-30T00:46:38.000Z
implicit_fem/python/implicit_fem.py
taichi-dev/taichi-aot-demo
894a5cfbf9d0e85bcd02368b45cacb3d5063eb47
[ "Apache-2.0" ]
null
null
null
implicit_fem/python/implicit_fem.py
taichi-dev/taichi-aot-demo
894a5cfbf9d0e85bcd02368b45cacb3d5063eb47
[ "Apache-2.0" ]
null
null
null
import argparse import os import pathlib import shutil import numpy as np import taichi as ti parser = argparse.ArgumentParser() parser.add_argument('--dim', type=int, default=3) parser.add_argument('--aot', default=False, action='store_true') args = parser.parse_args() # TODO: asserts cuda or vulkan backend ti.init...
29.714286
98
0.5301
15acf7daa0a43da7d0324b4b5d4c63f5dd49863d
3,599
py
Python
configs/ttflevelnet/ttflnet_r18_enh_mdcns8_min32_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttflevelnet/ttflnet_r18_enh_mdcns8_min32_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
configs/ttflevelnet/ttflnet_r18_enh_mdcns8_min32_1x.py
mrsempress/mmdetection
cb650560c97a2fe56a9b369a1abc8ec17e06583a
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='TTFNet', pretrained='modelzoo://resnet18', backbone=dict( type='ResNet', depth=18, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_eval=False, style='pytorch'), neck=None, bbox_head=dict( ...
29.743802
86
0.623229
2a325e9d0bfe8be231aa8084a824c571688bf31f
10,214
py
Python
m3u8/plugins/dl_button.py
No-OnE-Kn0wS-Me/M3U8-Converter
0baecb9d3215167cbd5aae0f4f2672198b802fd8
[ "MIT" ]
null
null
null
m3u8/plugins/dl_button.py
No-OnE-Kn0wS-Me/M3U8-Converter
0baecb9d3215167cbd5aae0f4f2672198b802fd8
[ "MIT" ]
null
null
null
m3u8/plugins/dl_button.py
No-OnE-Kn0wS-Me/M3U8-Converter
0baecb9d3215167cbd5aae0f4f2672198b802fd8
[ "MIT" ]
5
2020-10-07T04:20:30.000Z
2022-03-28T14:42:08.000Z
import logging import asyncio import aiohttp import os import time from datetime import datetime from hachoir.metadata import extractMetadata from hachoir.parser import createParser # https://stackoverflow.com/a/37631799/4723940 from PIL import Image from m3u8 import ( DOWNLOAD_LOCATION, TG_MAX_FILE_SIZE, P...
35.838596
76
0.528588
463b671af25c36d837f7482905c166cb05ec928b
2,069
py
Python
hanabi_learning_environment/agents/greedy_agent.py
saganatt/hanabi-learning-environment
4b2cef67564fbed288c44610d8a16e62dcdac8a9
[ "Apache-2.0" ]
null
null
null
hanabi_learning_environment/agents/greedy_agent.py
saganatt/hanabi-learning-environment
4b2cef67564fbed288c44610d8a16e62dcdac8a9
[ "Apache-2.0" ]
null
null
null
hanabi_learning_environment/agents/greedy_agent.py
saganatt/hanabi-learning-environment
4b2cef67564fbed288c44610d8a16e62dcdac8a9
[ "Apache-2.0" ]
null
null
null
"""Greedy Agent.""" import random import operator from hanabi_learning_environment.rl_env import Agent from hanabi_learning_environment.agents.qstate import QState from hanabi_learning_environment.agents.q_util import action_to_hash, hash_to_action class GreedyAgent(Agent): """Greedy agent for given policy.""" ...
37.618182
95
0.698405
2948e2e02cef5a0fff7939c4aaeda72b702fbe69
5,333
py
Python
sdks/python/http_client/v1/polyaxon_sdk/models/v1_status.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_status.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_status.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 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 ...
28.068421
116
0.6006
680555e5192818d31d017593405059813d89b381
2,382
py
Python
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/UpdateVodTemplateRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/UpdateVodTemplateRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-vod/aliyunsdkvod/request/v20170321/UpdateVodTemplateRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.029412
76
0.77162
39bff83122ea9d3576194041fd1b66b760656cb7
8,031
py
Python
frappe/app.py
finaxar/frappe
6da30361813c5de267889ef4970c323c626c02a3
[ "MIT" ]
null
null
null
frappe/app.py
finaxar/frappe
6da30361813c5de267889ef4970c323c626c02a3
[ "MIT" ]
null
null
null
frappe/app.py
finaxar/frappe
6da30361813c5de267889ef4970c323c626c02a3
[ "MIT" ]
1
2020-09-03T18:16:50.000Z
2020-09-03T18:16:50.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import os from six import iteritems import logging from werkzeug.wrappers import Request from werkzeug.local import LocalManager from werkzeug.exceptions ...
29.525735
128
0.756444
3ab0e0be82654a830e6d2cfc5a9011cdb489150d
1,996
py
Python
Python/Regressão Multipla.py
filipeaguiarrod/Formacao-Cientista-de-Dados-com-Python-e-R
c9b72f93b2a6ead49641d765fe2a0f23ffb4b1bf
[ "MIT" ]
null
null
null
Python/Regressão Multipla.py
filipeaguiarrod/Formacao-Cientista-de-Dados-com-Python-e-R
c9b72f93b2a6ead49641d765fe2a0f23ffb4b1bf
[ "MIT" ]
null
null
null
Python/Regressão Multipla.py
filipeaguiarrod/Formacao-Cientista-de-Dados-com-Python-e-R
c9b72f93b2a6ead49641d765fe2a0f23ffb4b1bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Feb 9 21:19:01 2020 @author: rodri """ import pandas as pd import numpy as np import matplotlib.pyplot as plt # gerar os gráficos from sklearn.linear_model import LinearRegression # modelo de regressão linear import statsmodels.formula.api as sm base=pd.read_csv('mt_cars...
29.791045
114
0.743988
ba8fd9cfff25361e4bc591a9594c403362735675
4,872
bzl
Python
repositories.bzl
stackb/grpc-cpp-proto-example
dddeec4365d96a9ac4c9fd456a65310f20209320
[ "Apache-2.0" ]
null
null
null
repositories.bzl
stackb/grpc-cpp-proto-example
dddeec4365d96a9ac4c9fd456a65310f20209320
[ "Apache-2.0" ]
null
null
null
repositories.bzl
stackb/grpc-cpp-proto-example
dddeec4365d96a9ac4c9fd456a65310f20209320
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def _maybe(repo_rule, name, **kwargs): if name not in native.existing_rules(): repo_rule(name = name, **kwargs) def protobuf_deps(): bazel_skylib() # via com_google_protobuf rules_python() # via com_google_protobuf zlib() ...
35.823529
122
0.680624
d51cb288b5b0221e0f635053470b074f80c5e802
18,201
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/fields_2e6c6da44af3295ae0e9e5e762ec2035.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/fields_2e6c6da44af3295ae0e9e5e762ec2035.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/fields_2e6c6da44af3295ae0e9e5e762ec2035.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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, ...
32.044014
717
0.595736
a0ed9a77867f9ea01786438344c5d50f2572b7e4
18
py
Python
encounter/models/__init__.py
ityaptin/encounter
82bf4d272dd2a5a65faa5ce92107b01b8711a70a
[ "MIT" ]
1
2015-11-14T16:10:07.000Z
2015-11-14T16:10:07.000Z
encounter/models/__init__.py
ityaptin/encounter
82bf4d272dd2a5a65faa5ce92107b01b8711a70a
[ "MIT" ]
null
null
null
encounter/models/__init__.py
ityaptin/encounter
82bf4d272dd2a5a65faa5ce92107b01b8711a70a
[ "MIT" ]
null
null
null
__author__ = 'it'
9
17
0.666667
5b944cff67f75fa78a3e8eed7238f7187377f819
4,198
py
Python
strikepackage/packages/provision.py
pwyliu/strikepackage
3ad28dbde09966cd6569826384b38e56d3775424
[ "MIT" ]
null
null
null
strikepackage/packages/provision.py
pwyliu/strikepackage
3ad28dbde09966cd6569826384b38e56d3775424
[ "MIT" ]
null
null
null
strikepackage/packages/provision.py
pwyliu/strikepackage
3ad28dbde09966cd6569826384b38e56d3775424
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2007 XenSource, Inc. # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
38.163636
103
0.672701
869fac0270e116a66a9cd126b8c751291a89cd9c
1,170
py
Python
.history/ClassFiles/inheritance_sub_classes_20210616144551.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
.history/ClassFiles/inheritance_sub_classes_20210616144551.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
.history/ClassFiles/inheritance_sub_classes_20210616144551.py
minefarmer/Coding101-OOP
d5655977559e3bd1acf6a4f185a6121cc3b05ce4
[ "Unlicense" ]
null
null
null
from sympy import real_root class Icecream: max_scoops = 3 def __init__(self): self.scoops = 0 def eat(self, scoops): if self.scoops < scoops: print("Not enough bites left!") else: self.scoops -= scoops def add(self, scoops): self.scoops ...
17.462687
62
0.576923
24eb80431e84d81c5fa587cb31b72dffdaaef746
605
py
Python
InternetSemLimites/core/migrations/0014_add_mandatory_on_delete.py
InternetSemLimites/PublicAPI
3dd0f17fe66688ef2895de540950f45d69bcd9d8
[ "MIT" ]
18
2016-04-14T17:03:29.000Z
2020-01-01T00:54:03.000Z
InternetSemLimites/core/migrations/0014_add_mandatory_on_delete.py
InternetSemLimites/PublicAPI
3dd0f17fe66688ef2895de540950f45d69bcd9d8
[ "MIT" ]
48
2016-04-15T12:33:33.000Z
2018-01-25T16:01:45.000Z
InternetSemLimites/core/migrations/0014_add_mandatory_on_delete.py
InternetSemLimites/PublicAPI
3dd0f17fe66688ef2895de540950f45d69bcd9d8
[ "MIT" ]
4
2016-04-15T07:57:04.000Z
2017-09-10T18:10:40.000Z
# Generated by Django 2.0.1 on 2018-01-04 09:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0013_auto_20170116_2236'), ] operations = [ migrations.AlterField( model_name='provider', name='status', ...
31.842105
270
0.61157
85398f5e9e33bd4e31413675b64426c1ee817d8b
42,125
py
Python
hddcoin/consensus/blockchain.py
zcomputerwiz/hddcoin-light-wallet
cf059817fff9753ce4b499edefc4deb39703248c
[ "Apache-2.0" ]
null
null
null
hddcoin/consensus/blockchain.py
zcomputerwiz/hddcoin-light-wallet
cf059817fff9753ce4b499edefc4deb39703248c
[ "Apache-2.0" ]
null
null
null
hddcoin/consensus/blockchain.py
zcomputerwiz/hddcoin-light-wallet
cf059817fff9753ce4b499edefc4deb39703248c
[ "Apache-2.0" ]
null
null
null
import asyncio import dataclasses import logging import multiprocessing from concurrent.futures.process import ProcessPoolExecutor from enum import Enum from typing import Dict, List, Optional, Set, Tuple, Union from clvm.casts import int_from_bytes from hddcoin.consensus.block_body_validation import validate_block_b...
45.442287
119
0.636677
ce797afc9f10e99d33634f2dc68e70866b36dc77
8,009
py
Python
facebook_business/adobjects/nativeofferview.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/nativeofferview.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/nativeofferview.py
mschmo/facebook-python-ads-sdk
bf273b4627c99dc261e4483ae0a4c5de648b37c8
[ "CNRI-Python" ]
null
null
null
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
36.404545
108
0.625421
6ba4055843259c9a3e76c0c7cf7d4e89305a034e
632
py
Python
pcbflow/footprints/xtal.py
BurtHarris/pcbflow
67b3d113c8ed58557f1ae3d1a5a25db67bcf4cc3
[ "BSD-3-Clause" ]
15
2021-04-04T01:28:53.000Z
2022-02-19T12:02:58.000Z
pcbflow/footprints/xtal.py
BurtHarris/pcbflow
67b3d113c8ed58557f1ae3d1a5a25db67bcf4cc3
[ "BSD-3-Clause" ]
4
2021-04-07T13:08:02.000Z
2021-04-29T15:22:54.000Z
pcbflow/footprints/xtal.py
BurtHarris/pcbflow
67b3d113c8ed58557f1ae3d1a5a25db67bcf4cc3
[ "BSD-3-Clause" ]
5
2021-04-15T20:40:54.000Z
2021-11-09T23:39:12.000Z
#! /usr/bin/env python3 # # Crysal Oscillator parts # from pcbflow import * class SMD_3225_4P(PCBPart): def __init__(self, *args, **kwargs): self.family = "Y" self.footprint = "4-SMD" super().__init__(*args, **kwargs) def place(self, dc): self.chamfered(dc, 2.8, 3.5, idoffset...
25.28
79
0.518987
fd2b34de5b76f75ad1baaea0c7996c208e6c7a74
1,081
py
Python
TcpServer/main.py
kkyinAdmin/pythonDemo
5bd97875bcbe08cc95b38c0e23d9c29a2ad70ada
[ "MIT" ]
1
2022-03-15T05:08:14.000Z
2022-03-15T05:08:14.000Z
TcpServer/main.py
kkyinAdmin/pythonDemo
5bd97875bcbe08cc95b38c0e23d9c29a2ad70ada
[ "MIT" ]
null
null
null
TcpServer/main.py
kkyinAdmin/pythonDemo
5bd97875bcbe08cc95b38c0e23d9c29a2ad70ada
[ "MIT" ]
null
null
null
# 这是一个示例 Python 脚本。 # socket服务端 绑定输入的端口 配合demo01调用 import socket # 按间距中的绿色按钮以运行脚本。 if __name__ == '__main__': global skServer recvMsg = '' while 1: if recvMsg == '': socketPORT = input('请输入绑定端口:') try: skServer = socket.socket() # 创建客户套接字 sk...
30.027778
82
0.502313
7eb256af7c76e015778015330ce0f7488e52495f
708
py
Python
site/flask/lib/python2.7/site-packages/migrate/changeset/__init__.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
1
2016-04-06T14:24:52.000Z
2016-04-06T14:24:52.000Z
site/flask/lib/python2.7/site-packages/migrate/changeset/__init__.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
null
null
null
site/flask/lib/python2.7/site-packages/migrate/changeset/__init__.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
2
2020-07-25T05:03:06.000Z
2020-11-04T04:55:57.000Z
""" This module extends SQLAlchemy and provides additional DDL [#]_ support. .. [#] SQL Data Definition Language """ import re import sqlalchemy from sqlalchemy import __version__ as _sa_version _sa_version = tuple(int(re.match("\d+", x).group(0)) for x in _sa_version.split(".")) SQLA_07 = _sa_version >= (0...
26.222222
85
0.747175
9532cacce99b7cc6d5c4d4d5759403603150cd9e
3,108
py
Python
anna/anna/settings.py
evanodell/scraping
18e231ba968f6e27617c0eecd66daad39516528e
[ "MIT" ]
null
null
null
anna/anna/settings.py
evanodell/scraping
18e231ba968f6e27617c0eecd66daad39516528e
[ "MIT" ]
null
null
null
anna/anna/settings.py
evanodell/scraping
18e231ba968f6e27617c0eecd66daad39516528e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for anna project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/to...
34.153846
109
0.775097
eeb1fb2dd9129c129098fb3b5814643ab0dd6e28
4,502
py
Python
blog/settings.py
mkj13146/myblog
633c2633ad895dbcef757d41b9787760f324760f
[ "Apache-2.0" ]
1
2020-01-15T02:31:13.000Z
2020-01-15T02:31:13.000Z
blog/settings.py
mkj13146/myblog
633c2633ad895dbcef757d41b9787760f324760f
[ "Apache-2.0" ]
8
2020-02-12T03:23:35.000Z
2022-03-12T00:07:13.000Z
blog/settings.py
mkj13146/myblog
633c2633ad895dbcef757d41b9787760f324760f
[ "Apache-2.0" ]
null
null
null
""" Django settings for blog project. Generated by 'django-admin startproject' using Django 1.11.12. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os i...
25.873563
91
0.680142
5fc2a7dd1b134a0f7cba0c5cb40a35cdec136763
4,036
py
Python
dnd-character/dnd_character.py
ikostan/python
a6d52ad74e36db1d2bf82ed15362c1e4341d741d
[ "Unlicense" ]
null
null
null
dnd-character/dnd_character.py
ikostan/python
a6d52ad74e36db1d2bf82ed15362c1e4341d741d
[ "Unlicense" ]
121
2020-03-16T19:25:56.000Z
2021-08-02T19:20:10.000Z
dnd-character/dnd_character.py
ikostan/python
a6d52ad74e36db1d2bf82ed15362c1e4341d741d
[ "Unlicense" ]
null
null
null
# import random import math from random import SystemRandom class Character: """ For a game of Dungeons & Dragons, each player starts by generating a character they can play with. This character has, among other things, six abilities: strength, dexterity, constitution, intelligence, wisdom and ch...
28.624113
85
0.635035
24d273a1c63bf01311b5f744976ade26c0539dbc
10,499
py
Python
tests/typechecker/test_functions.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
tests/typechecker/test_functions.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
3
2022-02-23T08:12:52.000Z
2022-03-09T00:13:33.000Z
tests/typechecker/test_functions.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
import pytest from lispyc import exceptions from lispyc.nodes import BoolType, FloatType, FunctionType, IntType, ListType, SpecialForm from lispyc.parser import parse from lispyc.typechecker import TypeChecker VALID_LAMBDAS = [ ("(lambda () 1)", FunctionType((), IntType())), ("(lambda () 1.0)", FunctionType((...
39.175373
99
0.549576
bdad26ee9b08826b72f2bf0743aadceef2bc030d
2,654
py
Python
examples/tabular/distill/example_distill_binary.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
1
2020-08-20T08:30:15.000Z
2020-08-20T08:30:15.000Z
examples/tabular/distill/example_distill_binary.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
examples/tabular/distill/example_distill_binary.py
NunoEdgarGFlowHub/autogluon
714894698495ef4352706d3c4250823ad4a43ead
[ "Apache-2.0" ]
null
null
null
""" Example: distilling AutoGluon's ensemble-predictor into a single model for binary classification. """ import shutil from autogluon import TabularPrediction as task subsample_size = 500 time_limits = 60 savedir = 'agModels/' # shutil.rmtree(savedir, ignore_errors=True) # Delete AutoGluon output directory to ensur...
54.163265
236
0.799171
ee367fa856d5f3d4ce71b450a493dc6549f44e61
1,467
py
Python
manager_website/dashboard/views.py
DaviesGit/airplane_black_person_track
1a6631d12f120c89a42d5c5e060d631ef827100b
[ "MIT" ]
1
2021-02-13T03:40:46.000Z
2021-02-13T03:40:46.000Z
manager_website/dashboard/views.py
DaviesGit/airplane_black_person_track
1a6631d12f120c89a42d5c5e060d631ef827100b
[ "MIT" ]
null
null
null
manager_website/dashboard/views.py
DaviesGit/airplane_black_person_track
1a6631d12f120c89a42d5c5e060d631ef827100b
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.shortcuts import render_to_response from django.template import Template, Context from django.views.decorators.csrf import csrf_exempt import json from . import black_person_manager # Create your views here. from django.http import HttpResponse, JsonResponse ...
34.116279
86
0.691888
b9e7d18c0d3b25e4e6c33edb56f5f23201cb78b7
2,177
py
Python
tests/test_user.py
Nicholas-muchiri/Personal-Blog
549141ece93403eb6993ecc0a732c413cab35cb5
[ "MIT" ]
2
2018-01-28T08:40:28.000Z
2018-01-28T10:36:52.000Z
tests/test_user.py
Nicholas-muchiri/Personal-Blog
549141ece93403eb6993ecc0a732c413cab35cb5
[ "MIT" ]
null
null
null
tests/test_user.py
Nicholas-muchiri/Personal-Blog
549141ece93403eb6993ecc0a732c413cab35cb5
[ "MIT" ]
null
null
null
import unittest from app.models import User,Role class TestUser(unittest.TestCase): ''' Test class to test behaviours of the User class Args: unittest.TestCase : Test case class that helps create test cases ''' def setUp(self): ''' Set up method that will run before every ...
31.1
116
0.655489
770b7e017d434c35343270002526502fc25a2d3a
189
py
Python
RecoBTag/Skimming/python/btagDijet_SkimPaths_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoBTag/Skimming/python/btagDijet_SkimPaths_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoBTag/Skimming/python/btagDijet_SkimPaths_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from RecoBTag.Skimming.btagDijet_cfi import * from RecoBTag.Skimming.btagDijet_HLT_cfi import * btagDijetPath = cms.Path(btagDijet_HLT*btagDijet)
27
49
0.84127
9b467bcb44a7eb125100ab9565b466ef0baf206e
3,847
py
Python
setup/bootstrap.py
topblue/RootTheBox
a5708e43a914e98faacdc640ea8945a0603ab361
[ "Apache-2.0" ]
1
2015-05-01T14:45:30.000Z
2015-05-01T14:45:30.000Z
setup/bootstrap.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
null
null
null
setup/bootstrap.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
1
2020-04-08T19:28:00.000Z
2020-04-08T19:28:00.000Z
# -*- coding: utf-8 -*- """ Copyright 2012 Root the Box 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 ap...
27.478571
143
0.706785
30ee4fa652f04fdac476666fee48681e92a42289
1,304
py
Python
kl_participants/views/moderators.py
fcqpl/kl-backend
0acad7fcb48ce27427f42197ba842a1d4742075d
[ "MIT" ]
null
null
null
kl_participants/views/moderators.py
fcqpl/kl-backend
0acad7fcb48ce27427f42197ba842a1d4742075d
[ "MIT" ]
null
null
null
kl_participants/views/moderators.py
fcqpl/kl-backend
0acad7fcb48ce27427f42197ba842a1d4742075d
[ "MIT" ]
null
null
null
from django.contrib.auth import login from django.http import HttpResponseRedirect from rest_framework import viewsets, permissions, filters from rest_framework.decorators import action from rest_framework.response import Response from rest_framework.serializers import Serializer from kl_backend.utils import get_token...
38.352941
80
0.773773
8e81beeeec9202628c16f5ba185251f0486e8080
256
py
Python
wielo/wielo8.py
socek/reveal.js
2738fb71af29229111788e7a41f65daf75fc9c7b
[ "MIT" ]
null
null
null
wielo/wielo8.py
socek/reveal.js
2738fb71af29229111788e7a41f65daf75fc9c7b
[ "MIT" ]
null
null
null
wielo/wielo8.py
socek/reveal.js
2738fb71af29229111788e7a41f65daf75fc9c7b
[ "MIT" ]
1
2020-01-10T16:20:16.000Z
2020-01-10T16:20:16.000Z
class FirstMeta(type): pass class SecondMeta(type): pass class First(object, metaclass=FirstMeta): pass class Second(object, metaclass=SecondMeta): pass class ThirdMeta(FirstMeta, SecondMeta): pass class Third(First, Second, metaclass=ThirdMeta): pass
23.272727
53
0.792969
9f10ef4374b253b7ec571b6af1f6d2b363b5914b
3,886
py
Python
test/functional/wallet_groups.py
vuicash/qtum
fbc207749ed96e64073b96bd8768356e6b16ecf6
[ "MIT" ]
null
null
null
test/functional/wallet_groups.py
vuicash/qtum
fbc207749ed96e64073b96bd8768356e6b16ecf6
[ "MIT" ]
null
null
null
test/functional/wallet_groups.py
vuicash/qtum
fbc207749ed96e64073b96bd8768356e6b16ecf6
[ "MIT" ]
1
2022-01-10T00:08:47.000Z
2022-01-10T00:08:47.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 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 wallet group functionality.""" from test_framework.test_framework import BitcoinTestFramework fro...
40.905263
137
0.641791
091bc125d6b07056f8e6ddf54876f53c36f287b4
2,471
py
Python
proto/task_status_pb2.py
detedetedetedete/g2p
e99a8175e7633fd413e006ed17c302f7b4f7a2c6
[ "MIT" ]
null
null
null
proto/task_status_pb2.py
detedetedetedete/g2p
e99a8175e7633fd413e006ed17c302f7b4f7a2c6
[ "MIT" ]
null
null
null
proto/task_status_pb2.py
detedetedetedete/g2p
e99a8175e7633fd413e006ed17c302f7b4f7a2c6
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: task_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message a...
29.771084
325
0.747471
74bb84e667ac55be529e6543b9daefa70e8723a7
2,176
py
Python
src/buildings/warpgate.py
franklintandy/MegazordPSC2
11152c63f55e3d94be3e8aebe1c106bdd0365abb
[ "MIT" ]
null
null
null
src/buildings/warpgate.py
franklintandy/MegazordPSC2
11152c63f55e3d94be3e8aebe1c106bdd0365abb
[ "MIT" ]
null
null
null
src/buildings/warpgate.py
franklintandy/MegazordPSC2
11152c63f55e3d94be3e8aebe1c106bdd0365abb
[ "MIT" ]
null
null
null
from sc2.ids.upgrade_id import UpgradeId from sc2.ids.ability_id import AbilityId from sc2.ids.unit_typeid import UnitTypeId import sc2 import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) class Warpgate(sc2.BotAI): def __init__(self, bot: sc2.BotAI): self.bot = bot ...
42.666667
113
0.66682
e6f16a273991eebc3f5cb464cd90c3b4e70c4893
7,310
py
Python
cadastro/usuarios/migrations/0001_initial.py
Marcio-Souza/sistema-vendas
f7d5c2dde6ddc8bf6ea3261dd4857cc8ea7bb2f3
[ "MIT" ]
null
null
null
cadastro/usuarios/migrations/0001_initial.py
Marcio-Souza/sistema-vendas
f7d5c2dde6ddc8bf6ea3261dd4857cc8ea7bb2f3
[ "MIT" ]
6
2020-10-26T22:06:11.000Z
2020-10-28T15:24:26.000Z
cadastro/usuarios/migrations/0001_initial.py
Marcio-Souza/sistema-vendas
f7d5c2dde6ddc8bf6ea3261dd4857cc8ea7bb2f3
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-27 13:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('empresas', '0001_initial'), migrations.swappable_dependency(set...
62.478632
180
0.613817
4030c1ef7eb15362f97cf557e63001716b28782f
433
py
Python
src/periodic_tasks_api/migrations/0002_auto_20211028_0728.py
VladimirDominion/periodic_tasks_utils
c2f58fd5e6c154c17d95bd9e616f53fcf10a078d
[ "MIT" ]
null
null
null
src/periodic_tasks_api/migrations/0002_auto_20211028_0728.py
VladimirDominion/periodic_tasks_utils
c2f58fd5e6c154c17d95bd9e616f53fcf10a078d
[ "MIT" ]
null
null
null
src/periodic_tasks_api/migrations/0002_auto_20211028_0728.py
VladimirDominion/periodic_tasks_utils
c2f58fd5e6c154c17d95bd9e616f53fcf10a078d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2021-10-28 07:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('periodic_tasks_api', '0001_initial'), ] operations = [ migrations.AlterField( model_name='customextendedperiodictask', ...
22.789474
74
0.628176
786b94dbb9833feee1f021182fdef5e7da6f4d26
901
py
Python
src/console_script/__init__.py
el-ideal-ideas/MocaUsersAPI
8acc17d14ad1e3c57142b24a812a1806c44180a5
[ "MIT" ]
6
2020-04-12T08:43:27.000Z
2020-06-03T07:03:19.000Z
src/console_script/__init__.py
el-ideal-ideas/MocaUsersAPI
8acc17d14ad1e3c57142b24a812a1806c44180a5
[ "MIT" ]
null
null
null
src/console_script/__init__.py
el-ideal-ideas/MocaUsersAPI
8acc17d14ad1e3c57142b24a812a1806c44180a5
[ "MIT" ]
1
2020-06-26T18:12:47.000Z
2020-06-26T18:12:47.000Z
# Ω* #             ■          ■■■■■   #             ■         ■■   ■■  #             ■        ■■     ■  #             ■        ■■        #   ■■■■■     ■        ■■■       #  ■■   ■■    ■         ■■■      # ■■     ■■   ■          ■■■■    # ■■     ■■   ■            ■■■■  # ■■■■■■■■■   ■              ■■■ ...
29.064516
87
0.209767
daa11bb5ce074659566dff7e161499a1efc13e5e
9,798
py
Python
tests/wallet/test_wallet_store.py
Aloe-Network/aloe-blockchain
72b1f64f177e144a81b9d38f194427ea39e16edb
[ "Apache-2.0" ]
3
2021-06-03T09:09:28.000Z
2021-07-24T16:22:40.000Z
tests/wallet/test_wallet_store.py
Aloe-Network/aloe-blockchain
72b1f64f177e144a81b9d38f194427ea39e16edb
[ "Apache-2.0" ]
null
null
null
tests/wallet/test_wallet_store.py
Aloe-Network/aloe-blockchain
72b1f64f177e144a81b9d38f194427ea39e16edb
[ "Apache-2.0" ]
1
2021-07-14T04:15:26.000Z
2021-07-14T04:15:26.000Z
# TODO: write tests for other stores # import asyncio # from pathlib import Path # from secrets import token_bytes # import aiosqlite # import pytest # from aloe.util.ints import uint32, uint64, uint128 # from aloe.wallet.wallet_coin_record import WalletCoinRecord # from aloe.wallet.util.wallet_types import WalletType ...
42.415584
115
0.554807
1bb7b5f355bce684ad75ea511d46c172f43213d2
1,213
py
Python
share/pineboo/scripts/flupdates.qs.py
deavid/pineboo
acc96ab6d5b8bb182990af6dea4bf0986af15549
[ "MIT" ]
2
2015-09-19T16:54:49.000Z
2016-09-12T08:06:29.000Z
share/pineboo/scripts/flupdates.qs.py
deavid/pineboo
acc96ab6d5b8bb182990af6dea4bf0986af15549
[ "MIT" ]
1
2017-08-14T17:07:14.000Z
2017-08-15T00:22:47.000Z
share/pineboo/scripts/flupdates.qs.py
deavid/pineboo
acc96ab6d5b8bb182990af6dea4bf0986af15549
[ "MIT" ]
9
2015-01-15T18:15:42.000Z
2019-05-05T18:53:00.000Z
# -*- coding: utf-8 -*- from typing import TYPE_CHECKING from pineboolib.qsa.qsa import * # noqa: F403 from pineboolib.qsa import qsa # /** @file */ # /** @class_declaration interna */ class interna(object): ctx = qsa.Object() def __init__(self, context=None): self.ctx = context def main(self)...
21.660714
47
0.661171
2c685a79616deb366d7798cf87d969da1ac960d8
5,746
py
Python
chatette/parsing/lexing/__init__.py
SimGus/Chatette
fd22b6c2e4a27b222071c93772c2ae99387aa5c3
[ "MIT" ]
263
2018-09-06T14:46:29.000Z
2022-03-31T08:40:19.000Z
chatette/parsing/lexing/__init__.py
IspML/Chatette
fd22b6c2e4a27b222071c93772c2ae99387aa5c3
[ "MIT" ]
50
2018-09-06T14:50:18.000Z
2021-11-16T03:54:27.000Z
chatette/parsing/lexing/__init__.py
IspML/Chatette
fd22b6c2e4a27b222071c93772c2ae99387aa5c3
[ "MIT" ]
49
2018-09-18T23:15:09.000Z
2022-03-02T11:23:08.000Z
# coding: utf-8 """ Module `chatette.parsing.lexing` Contains every class that has to do with lexing (transforming a text in a sequence of labelled tokens). """ from enum import Enum from chatette.parsing.utils import ESCAPEMENT_SYM, ESCAPABLE_CHARS # Supported tokens class TerminalType(Enum): """Enum of termina...
29.466667
80
0.628437
22c2fca8cc84e2a41a1490ed92b78987f77360dc
659
py
Python
class_fixtures/tests/fixtures/some_fixtures.py
jmsegrev/django-class-fixtures
525a5f8a000a3a74b654500a6809329d6de9518a
[ "BSD-3-Clause" ]
1
2020-09-12T06:00:22.000Z
2020-09-12T06:00:22.000Z
class_fixtures/tests/fixtures/some_fixtures.py
jklaiho/django-class-fixtures
72f002223b98eadc1d12574c846297be57e1e4c4
[ "BSD-3-Clause" ]
null
null
null
class_fixtures/tests/fixtures/some_fixtures.py
jklaiho/django-class-fixtures
72f002223b98eadc1d12574c846297be57e1e4c4
[ "BSD-3-Clause" ]
null
null
null
from class_fixtures.models import Fixture from class_fixtures.tests.models import Company, Employee, EmployeeHistory company_fixture = Fixture(Company) employee_fixture = Fixture(Employee) employee_history_fixture = Fixture(EmployeeHistory) company_fixture.add(3, name='Dewey, Cheatem & Howe') employee_fixture.add(5, ...
50.692308
103
0.813354
e8bbce911dd8f54a9012f98941046ef0eb783b69
66
py
Python
sample/sample.py
eaybek/dataml
c5bf07a59ce86787a0fc31f02313c88ffbed41f4
[ "MIT" ]
null
null
null
sample/sample.py
eaybek/dataml
c5bf07a59ce86787a0fc31f02313c88ffbed41f4
[ "MIT" ]
null
null
null
sample/sample.py
eaybek/dataml
c5bf07a59ce86787a0fc31f02313c88ffbed41f4
[ "MIT" ]
null
null
null
from dataml.dataml import Dataml class Dataml(object): pass
11
32
0.742424
63e7512871e92a227808574f29e0bf18bebab449
18,394
py
Python
lexicon/providers/easyname.py
1500cloud/lexicon
8fa65a4e8c844d5d7c33f55ac6e66242f7d415d9
[ "MIT" ]
1
2019-08-17T23:09:24.000Z
2019-08-17T23:09:24.000Z
lexicon/providers/easyname.py
1500cloud/lexicon
8fa65a4e8c844d5d7c33f55ac6e66242f7d415d9
[ "MIT" ]
null
null
null
lexicon/providers/easyname.py
1500cloud/lexicon
8fa65a4e8c844d5d7c33f55ac6e66242f7d415d9
[ "MIT" ]
1
2021-01-06T16:04:36.000Z
2021-01-06T16:04:36.000Z
"""Module provider for Easyname DNS""" from __future__ import absolute_import, print_function import logging from requests import Response, Session from lexicon.providers.base import Provider as BaseProvider LOGGER = logging.getLogger(__name__) NAMESERVER_DOMAINS = ['easyname.eu'] def provider_parser(subparser):...
41.149888
143
0.590464
357196669468162b7c0d7810ce44ab77ff36cdf9
6,768
py
Python
brian2/monitors/ratemonitor.py
brian-team/brian2numba
6958a9716bc87f04f8a40d0f6d7d4ed1140deb00
[ "BSD-2-Clause" ]
1
2019-03-31T09:02:08.000Z
2019-03-31T09:02:08.000Z
brian2/monitors/ratemonitor.py
brian-team/brian2numba
6958a9716bc87f04f8a40d0f6d7d4ed1140deb00
[ "BSD-2-Clause" ]
null
null
null
brian2/monitors/ratemonitor.py
brian-team/brian2numba
6958a9716bc87f04f8a40d0f6d7d4ed1140deb00
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from brian2.utils.logger import get_logger from brian2.core.variables import Variables from brian2.units.allunits import second, hertz from brian2.units.fundamentalunits import Unit, Quantity, check_units from brian2.groups.group import CodeRunner, Group __all__ = ['PopulationRateMonitor'] logger...
43.384615
85
0.585697
4480ff4d12048c779d1013edc3893dd91c6cb298
2,850
py
Python
tools/versioncmp/examples/static_web/w_tsmp_deterministic.py
dtip/magics
3247535760ca962f859c203295b508d442aca4ed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tools/versioncmp/examples/static_web/w_tsmp_deterministic.py
dtip/magics
3247535760ca962f859c203295b508d442aca4ed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tools/versioncmp/examples/static_web/w_tsmp_deterministic.py
dtip/magics
3247535760ca962f859c203295b508d442aca4ed
[ "ECL-2.0", "Apache-2.0" ]
1
2019-12-18T17:01:56.000Z
2019-12-18T17:01:56.000Z
# (C) Copyright 1996-2016 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergov...
30.978261
86
0.718596
e15e0f251181f5c0d15775311d002e00788e814f
9,615
py
Python
lib/third_party/urllib3/poolmanager.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/third_party/urllib3/poolmanager.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/third_party/urllib3/poolmanager.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import logging try: # Python 3 from urllib.parse import urljoin except ImportError: from urlparse import urljoin from ._collections import RecentlyUsedContainer from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool from .connectionpool import port_by_schem...
33.736842
86
0.625689
3cea94f949f7e6168867b90c1b967d217ecda912
5,442
py
Python
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
3
2018-11-27T06:30:23.000Z
2021-05-30T15:56:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2018-11-15T02:00:31.000Z
2021-12-06T02:20:32.000Z
VENV/lib/python3.6/site-packages/PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py
workingyifei/display-pattern-generator
b27be84c6221fa93833f283109870737b05bfbf6
[ "MIT" ]
1
2020-11-06T18:46:35.000Z
2020-11-06T18:46:35.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2005-2017, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
42.186047
85
0.620728
8a8856c54a17874112e0b683ef66503fc91b668d
10,501
py
Python
app/recipe/tests/test_recipe_api.py
AnthonyOluitan/recipe-appi-api
720c868e965efca1be7775f9d83d7e7d4b475f61
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
AnthonyOluitan/recipe-appi-api
720c868e965efca1be7775f9d83d7e7d4b475f61
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
AnthonyOluitan/recipe-appi-api
720c868e965efca1be7775f9d83d7e7d4b475f61
[ "MIT" ]
null
null
null
import tempfile import os from PIL import Image from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from core.models import Recipe, Tag, Ingredient from recipe.serializers import ...
34.656766
78
0.641082
8fec5a583b974aaefd2d6bf6b2dc59a0a461abbf
8,168
py
Python
tests/algorithms/scaling/test_scale_and_filter.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-10T17:28:16.000Z
2021-12-10T17:28:16.000Z
tests/algorithms/scaling/test_scale_and_filter.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
tests/algorithms/scaling/test_scale_and_filter.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-07T12:39:04.000Z
2021-12-07T12:39:04.000Z
"""Test that compute_delta_cchalf returns required values""" from __future__ import annotations import json from unittest import mock from dxtbx.model import Crystal, Experiment, Scan from dxtbx.model.experiment_list import ExperimentList from libtbx import phil from dials.algorithms.scaling.model.model import KBSca...
39.843902
88
0.670054
62511eb43fd155b4cfcf0aa8c3e75db8d8a874ee
6,633
py
Python
jam_stapl_jesd71_aca_boolean_array_decompress.py
DanielErikEdvinNilsson/jam_stapl_jesd71_aca_boolean_array_decompress
9cb6788b505b51d6c002e0daa6e856902b1098e0
[ "MIT" ]
1
2022-02-14T04:30:46.000Z
2022-02-14T04:30:46.000Z
jam_stapl_jesd71_aca_boolean_array_decompress.py
DanielErikEdvinNilsson/jam_stapl_jesd71_aca_boolean_array_decompress
9cb6788b505b51d6c002e0daa6e856902b1098e0
[ "MIT" ]
null
null
null
jam_stapl_jesd71_aca_boolean_array_decompress.py
DanielErikEdvinNilsson/jam_stapl_jesd71_aca_boolean_array_decompress
9cb6788b505b51d6c002e0daa6e856902b1098e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import sys import itertools # input file data with illegal characters removed, # converted according to JESD71 Table 2 # 6 bits per index inputSymbols = [] # decompressed output data # 8 bits per index outputBytes = [] # uncompressed data length in bytes uncompressed...
25.610039
83
0.648123
dc680c107becabc153eba347c11f7f1b589d04cf
367
py
Python
riotctrl/__init__.py
aabadie/riotctrl
67d04c659fd412d01b50d592ab165b00ce3c7f5a
[ "MIT" ]
null
null
null
riotctrl/__init__.py
aabadie/riotctrl
67d04c659fd412d01b50d592ab165b00ce3c7f5a
[ "MIT" ]
null
null
null
riotctrl/__init__.py
aabadie/riotctrl
67d04c659fd412d01b50d592ab165b00ce3c7f5a
[ "MIT" ]
null
null
null
"""RIOT Ctrl abstraction. This prodives python object abstraction of a RIOT node. The first goal is to be the starting point for the serial abstraction and build on top of that to provide higher level abstraction like over the shell. It could provide an RPC interface to a node in Python over the serial port and maybe...
30.583333
77
0.776567
4419be1aef49de0aa1a1466e7b4838cd6eba1d76
1,571
py
Python
solutions/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
solutions/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
1
2022-02-22T15:42:54.000Z
2022-02-25T00:10:04.000Z
solutions/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
# Leetcode 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit # # Link: https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit/ # Difficulty: Medium # Solution using two monotonically decreasing queue (deque based) # Complexity: # O(N) t...
33.425532
113
0.59007
226c5f021430d6dd8fef0befa9485da8db43db89
2,041
py
Python
examples/run_scripts.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
7
2021-08-23T18:46:27.000Z
2022-01-26T07:10:22.000Z
examples/run_scripts.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
null
null
null
examples/run_scripts.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
null
null
null
from sim21.cli.CommandInterface import run import sys import os import pathlib from tabulate import tabulate import time # Go through each directory for dir_type in ['flowsheets', 'passed', 'almost']: source_dir = os.path.join(os.getcwd(), 'scripts', dir_type) all_scripts = list(pathlib.Path(source_dir).glob('...
37.796296
117
0.625674