hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
f83f6977354074227de8507f3a2a55a87f9d6abe
5,752
py
Python
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class BranchConfigur...
29.497436
113
0.595271
5,451
0.94767
0
0
2,704
0.470097
0
0
3,153
0.548157
f840464edc80ddc50844d1de4a6669b63272a7ea
1,156
py
Python
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
162
2017-01-27T02:54:17.000Z
2022-03-03T09:06:28.000Z
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
79
2017-02-17T08:58:39.000Z
2021-05-29T09:24:31.000Z
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
43
2017-02-23T10:58:42.000Z
2022-01-17T10:29:31.000Z
from click.testing import CliRunner import unittest from mock import patch, Mock, PropertyMock from floyd.cli.version import upgrade class TestFloydVersion(unittest.TestCase): """ Tests cli utils helper functions """ def setUp(self): self.runner = CliRunner() @patch('floyd.cli.version.pi...
32.111111
98
0.702422
1,020
0.882353
0
0
857
0.741349
0
0
353
0.305363
f8423088619bdfe61a95a3f318f27fab6ca0c75a
4,181
py
Python
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
2
2020-08-31T15:45:07.000Z
2021-09-26T22:15:43.000Z
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
17
2020-06-02T02:29:48.000Z
2021-10-13T23:47:44.000Z
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
3
2020-05-31T23:17:10.000Z
2022-03-09T22:23:22.000Z
"""Contains HelpCommand class.""" import discord from discord.ext import commands from offthedialbot import utils class HelpCommand(commands.DefaultHelpCommand): """Set up help command for the bot.""" async def send_bot_help(self, mapping): """Send bot command page.""" list_commands = [ ...
38.712963
165
0.577613
4,031
0.964123
0
0
0
0
3,159
0.755561
1,095
0.261899
f8430cf263194ac34b0078e29e9eec8808714370
255
py
Python
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
def is_anagram ( word1, word2 ): ''' Returns True if word1 is 'anagram' of word2 or False if otherwise. word1: str word2: str ''' return sorted(word1) == sorted(word2) print(is_anagram("silence", "listen"))
19.615385
70
0.576471
0
0
0
0
0
0
0
0
134
0.52549
f8433cd21799446edb00e1ccf569de9f138f3e9c
3,017
py
Python
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
import torch from torch import nn as nn from learning.modules.blocks import ResBlock, ResBlockConditional class ResNetConditional(nn.Module): def __init__(self, embed_size, channels, c_out): super(ResNetConditional, self).__init__() self.block1 = ResBlock(channels) # RF...
46.415385
86
0.552536
2,909
0.964203
0
0
0
0
0
0
272
0.090156
f8459ec6a60f2e71cf7db3476a3460a08e1783eb
110
wsgi
Python
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
8
2019-05-14T02:41:34.000Z
2021-11-25T08:07:22.000Z
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
null
null
null
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
2
2019-05-14T20:20:07.000Z
2021-11-25T08:07:24.000Z
# Used for deploying on Apache with mod_wsgi from cryptovote.app import create_app application = create_app()
27.5
44
0.818182
0
0
0
0
0
0
0
0
44
0.4
f845c07a85b4945884e014911b73cc010e95c5c2
802
py
Python
problems/203_remove-linked-list-elements.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/203_remove-linked-list-elements.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/203_remove-linked-list-elements.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=203 lang=python3 # # [203] Remove Linked List Elements # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def removeElements(self, head: ListNode, val: int)...
23.588235
67
0.55985
535
0.667082
0
0
0
0
0
0
322
0.401496
f8470708904f8b5b4aa1dabc0a1785bf58a61c23
7,178
py
Python
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
2
2022-03-22T12:16:37.000Z
2022-03-22T12:48:46.000Z
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
null
null
null
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
null
null
null
""" A module that defines the QLearning Agent for the pricing game as a class. Note that we have a numba version (for speed) which inherits everything from QLearningAgentBase. """ import numpy as np from numba import float64 from numba import int32 from numba import njit from numba.experimental import jitclass from ....
31.621145
97
0.633185
5,750
0.801059
0
0
551
0.076762
0
0
4,722
0.657843
f848ba579a50c6fd3ee1c43bc3d139711769e3be
2,825
py
Python
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
#!/usr/bin/python # with help from teleop_keyboard.py, # https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py # Graylin Trevor Jay and Austin Hendrix, BSD licensed import roslib; #roslib.load_manifest('teleop_move') import rospy from geometry_msgs.msg import Twist import sys, ...
25
92
0.524602
0
0
0
0
0
0
0
0
1,042
0.36885
f84a7601115fccffa87d1679d8be58c1f83890a1
1,561
py
Python
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
""" File: shrink.py Name: Wilson Wang 2020/08/05 ------------------------------- Create a new "out" image half the width and height of the original. Set pixels at x=0 1 2 3 in out , from x=0 2 4 6 in original, and likewise in the y direction. """ from simpleimage import SimpleImage def shrink(filename): ...
31.857143
95
0.632287
0
0
0
0
0
0
0
0
852
0.545106
f84a986b558a36ee9782c5da91c77b0601aa7b43
15,349
py
Python
src/genie/libs/parser/iosxe/show_ip_dhcp.py
komurzak-cisco/genieparser
e6cd6bb133bab7260b2b82da198fd14a4dec66c7
[ "Apache-2.0" ]
1
2021-07-26T02:56:27.000Z
2021-07-26T02:56:27.000Z
src/genie/libs/parser/iosxe/show_ip_dhcp.py
zhangineer/genieparser
d6abcb49bf6d39092d835d9490d817452920ae98
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_ip_dhcp.py
zhangineer/genieparser
d6abcb49bf6d39092d835d9490d817452920ae98
[ "Apache-2.0" ]
null
null
null
""" show ip dhcp database show ip dhcp snooping database show ip dhcp snooping database detail """ # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import (Schema, Any, Optional, Or, And, Default, Use) # Pa...
37.436585
133
0.485699
14,190
0.92449
0
0
0
0
0
0
7,120
0.463874
f84ba2d7e5aa592c0ac62dbc711d229b2f13adeb
848
py
Python
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
import os import sys import json import ipaddress import paramiko def func_createcont(br,r,IP): print("\nMaking containers "+r) print("sudo docker run -itd --cap-add=NET_ADMIN --name "+r+" main-vm") os.system("sudo docker run -itd --cap-add=NET_ADMIN --name "+r+" main-vm") print("ovs-docker add-port "+...
33.92
78
0.650943
0
0
0
0
0
0
0
0
482
0.568396
f84d7afc084777032cfb27a9f3d492736584d51d
1,051
py
Python
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
1
2021-05-11T04:08:58.000Z
2021-05-11T04:08:58.000Z
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
11
2021-04-06T15:22:47.000Z
2021-06-01T05:13:43.000Z
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
null
null
null
### flaskr/__init__.py import os from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(test_config = None): # create and configure the app app = Flask(__name__, instance_relative_config=True) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:toor!@lo...
26.948718
104
0.698382
0
0
0
0
0
0
0
0
341
0.324453
f84fd6a36061acc80024ef6237230dcd9e8feabc
7,228
py
Python
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
1
2020-02-21T07:40:46.000Z
2020-02-21T07:40:46.000Z
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
null
null
null
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
null
null
null
import boto3 import time class AwsEc2(object): def __init__(self, access_key, secret_key): self.access_key = access_key self.secret_key = secret_key self.client = boto3.client(service_name='ec2', region_name="ap-northeast-1", aws_access_key_id=self.access_key, ...
34.419048
119
0.445075
7,049
0.975235
0
0
0
0
0
0
813
0.112479
f851380879e61799e28a7ffd91239a32f370bf71
2,299
py
Python
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
2
2021-03-08T02:30:58.000Z
2021-03-17T12:57:33.000Z
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
null
null
null
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
null
null
null
import control import speech_recognition as sr def recognize_speech_from_mic(recognizer, microphone): """Transcribe speech from recorded from `microphone`. Returns a dictionary with three keys: "success": a boolean indicating whether or not the API request was successful "error": `Non...
33.808824
104
0.653763
0
0
0
0
0
0
0
0
1,215
0.528491
f85295b6cbccfde4504d51121948d6ed5ff3e3c4
6,721
py
Python
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
2
2018-01-18T13:22:29.000Z
2018-02-03T13:10:20.000Z
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
from .consts import * # Object matching by classid OBJECTS_CLSID_RULES = [ {'type' : RULETYPE_EQUAL, 'text' : 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', 'entities' : [ {'name' : 'web:tech/flash'} ] }, {'type' : RULETYPE_EQUAL, 'text' : 'clsid:d27cdb6e-ae6d-11cf-96b8-44455354...
30.139013
112
0.494867
0
0
0
0
0
0
0
0
3,591
0.534295
f856a06399d0483aa5762d750435935c90b3dd55
6,020
py
Python
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
6
2020-10-14T07:22:31.000Z
2022-02-13T23:17:56.000Z
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
10
2020-04-29T12:29:43.000Z
2021-07-31T10:35:36.000Z
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
1
2021-08-07T03:23:41.000Z
2021-08-07T03:23:41.000Z
# Why does this file exist, and why not put this in `__main__`? # # You might be tempted to import things from `__main__` later, # but that will cause problems: the code will get executed twice: # # - When you run `python -m failprint` python will execute # `__main__.py` as a script. That means there won't be any # ...
36.707317
126
0.635382
1,141
0.189535
0
0
0
0
0
0
3,554
0.590365
f858848401df27fd04f2c1792b618ab879328af0
1,112
py
Python
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
1
2021-08-07T12:48:02.000Z
2021-08-07T12:48:02.000Z
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
null
null
null
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
4
2021-01-16T06:14:58.000Z
2022-02-07T06:36:41.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, RC and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class ItemLabel(Document): def on_submit(self): for d in self.get("items"): # Check for Price list...
37.066667
116
0.732914
896
0.805755
0
0
0
0
0
0
411
0.369604
f859b964e5f9c3a181c35199baa7176223613982
1,308
py
Python
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
1
2019-01-05T12:35:51.000Z
2019-01-05T12:35:51.000Z
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
null
null
null
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
null
null
null
# coding:utf-8 # author:MurphyWan # 蓝图放在www.py中 """ controller.py/index.py from flask import Blueprint route_index = Blueprint('index_page', __name__) @route_index.route("/") def index(): return "Hello World" """ from application import app ''' 统一拦截器 , 都放在这里 ''' from web.interceptors.Authinterceptor import * '...
29.727273
65
0.798165
0
0
0
0
0
0
0
0
555
0.379617
f85a24e0d9a829e5ba4097a173e5c180ffe2795f
1,410
py
Python
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #path of the data file- path data=pd.read_csv(path) data["Gender"].replace("-","Agender",inplace=True) gender_count=data.Gender.value_counts() gender_count.plot(kind="bar") #Code starts here # ---...
20.434783
53
0.698582
0
0
0
0
0
0
0
0
328
0.232624
f85c11db5b31e7e4088a63d0697d91e4986e3c85
6,962
py
Python
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
48
2019-09-16T09:49:54.000Z
2022-02-09T20:59:10.000Z
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
18
2019-10-15T04:17:35.000Z
2021-05-25T00:12:52.000Z
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
8
2019-10-15T17:27:41.000Z
2022-01-26T20:42:07.000Z
#!/usr/bin/env python3 #MIT License #Copyright (c) 2018 The University of Michigan #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 ...
44.063291
418
0.668342
0
0
0
0
0
0
0
0
2,382
0.342143
f85e27ad10e7814b11be2c93c0c4dca76deac4ea
2,222
py
Python
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
9
2019-04-07T06:17:50.000Z
2021-07-11T14:31:36.000Z
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
1
2019-05-17T01:57:07.000Z
2019-11-19T01:57:05.000Z
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
6
2019-04-15T07:17:26.000Z
2019-08-04T02:55:36.000Z
# coding: utf-8 # In[35]: import matplotlib.pyplot as plt from pylab import * import numpy as np main_image=plt.figure(figsize=(10,10)) subplots_adjust(hspace=0.3,wspace=0.3)#控制子图间的行间距、列间距 #子图1-单线 x_0=np.linspace(0,2*np.pi,20) #自变量X的取值范围 sub_image_1=plt.subplot(2,2,1) plt.xlabel('X value') plt.ylabel('Sin value')...
32.676471
165
0.729973
0
0
0
0
0
0
0
0
687
0.28365
f85ead752c9700ddc5fb73af13b5441235631493
2,190
py
Python
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
1
2022-02-24T22:57:37.000Z
2022-02-24T22:57:37.000Z
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
5
2022-02-24T21:32:24.000Z
2022-03-23T15:52:25.000Z
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
null
null
null
"""Generated class for event_audit.json""" class Object0C54FB6D: """Generated schema class""" def __init__(self): self.subFolder = None self.subType = None @staticmethod def from_dict(source): if not source: return None result = Object0C54FB6D() result.subFolder = source.get('subFo...
23.548387
77
0.648402
2,115
0.965753
0
0
1,277
0.583105
0
0
228
0.10411
f85f1ff5fdc55f6eaa86305ff1243afdf2c3c231
7,624
py
Python
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
1
2019-06-27T11:32:48.000Z
2019-06-27T11:32:48.000Z
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ RGB Colourspace Transformations =============================== Defines the *RGB* colourspace transformations: - :func:`XYZ_to_RGB` - :func:`RGB_to_XYZ` - :func:`RGB_to_RGB` See Also -------- `RGB Colourspaces IPython Notebook <http://nbviewer.ipython.org/gith...
31.766667
115
0.613458
0
0
0
0
0
0
0
0
5,395
0.707634
f85f4b7c7b491177a0f091a1844ac24655fff102
1,768
py
Python
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
from typing import List import pandas as pd import pytest from preprocessing.assign_folds import assign_folds testdata = [ [ [ "patient1", "patient2", "patient3", "patient4", "patient5", "patient6", "patient7", ...
24.901408
99
0.526584
0
0
0
0
898
0.507919
0
0
583
0.329751
f85fde926cda35a9fc74acc2b0acaa097f44bc32
456
py
Python
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from apps.tags.models import Tag class Note(models.Model): owner = models.ForeignKey(User, related_name="notes") tags = models.ManyToManyField(Tag, related_name="notes", blank=True) created = models.DateTimeField(auto_now_add=True)...
26.823529
72
0.736842
346
0.758772
0
0
0
0
0
0
14
0.030702
f86011337ef051c071ef0fd89e5bf4792bb54439
1,116
py
Python
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
399
2020-08-31T21:13:07.000Z
2022-03-31T18:54:26.000Z
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
157
2020-09-01T18:59:56.000Z
2022-03-25T07:14:19.000Z
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
53
2020-09-01T07:35:59.000Z
2022-03-28T23:21:16.000Z
"""Tests for __main__.py.""" # import logging from unittest.mock import MagicMock, patch import pytest import viseron.__main__ @pytest.fixture def mocked_viseron(mocker): """Mock Viseron class.""" mocker.patch("viseron.__main__.Viseron", return_value="Testing") def test_init(simple_config, mocked_viseron)...
27.219512
74
0.606631
0
0
0
0
142
0.12724
0
0
654
0.586022
f8626522d55b3754f7c28ddbfd44245ded575b28
11,950
py
Python
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
41
2015-01-29T20:10:48.000Z
2022-01-26T10:04:28.000Z
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
46
2015-01-19T17:46:52.000Z
2021-12-19T01:22:47.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
33.194444
78
0.573138
8,565
0.716736
0
0
1,944
0.162678
0
0
2,711
0.226862
f8629eacf541222ae1970586720f609c2d762f08
1,105
py
Python
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
1
2015-07-17T19:20:45.000Z
2015-07-17T19:20:45.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
33
2015-07-18T02:31:51.000Z
2015-08-04T02:07:41.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
7
2015-07-17T16:29:18.000Z
2021-08-31T01:03:53.000Z
from flask import session, redirect, url_for from flask.json import jsonify from api import app, oauth from api import models @app.route("/api/v2/login") def _get_api_v2_login(): redirect_uri = url_for("_get_api_v2_redirect", _external=True) return oauth.google.authorize_redirect(redirect_uri) @app.route("/...
27.625
83
0.656109
0
0
0
0
967
0.875113
0
0
244
0.220814
f863fdd49bdc9fc91c5a6863a1a6f2c9cb1fed2c
418
py
Python
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
1
2018-09-19T06:27:14.000Z
2018-09-19T06:27:14.000Z
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
def column_generator(): with open('columns.csv', encoding='utf-8') as f: for line in f: keyword = line.strip('\n') # <columnOverride column="tid" property="tid"/> # print(r'<columnOverride column="{}" property="{}"/>'.format(keyword,keyword)) print(r'<ignoreCo...
34.833333
91
0.586124
0
0
0
0
0
0
0
0
190
0.454545
f86413e599720995225d5a002a0228bfbc9b7ed7
22,250
py
Python
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
1
2019-02-25T10:27:41.000Z
2019-02-25T10:27:41.000Z
# -*- coding: utf-8 -*- """ This file contains language-specific implementation for an Afrikaans voice. The idea is that this file contains subclassed Voice and Phoneset implementations. This package ttslab/voices may then also contain speaker specific implementations e.g. "afrikaans_SPEAKER.py" """ fr...
52.352941
177
0.465573
21,581
0.967801
0
0
0
0
0
0
8,110
0.363693
f865843e860d96b7840567719ae0919a197d73ae
144,813
py
Python
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
1
2020-01-14T21:40:29.000Z
2020-01-14T21:40:29.000Z
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module contains analysis done for the Ocean iodide (Oi!) project This includes presentation at conferences etc... """ import numpy as np import pandas as pd import sparse2spatial as s2s import sparse2spatial.utils as utils import matplotlib import matplotlib.pyplot...
38.048607
340
0.57818
0
0
0
0
0
0
0
0
51,927
0.358557
f8675dfd4e125d168dde1ba9e29185bd73af107b
4,331
py
Python
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
null
null
null
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
null
null
null
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
1
2021-01-24T17:07:37.000Z
2021-01-24T17:07:37.000Z
import pandas as pd from . import cashUtils as utils class ReadStockBhavDataCSV: def __init__(self, fileName): self.df = pd.read_csv(fileName) self.columns = self.df.columns def getCSVColumnList(self): return self.columns def getStockFlatData(self): ''' Returns a ...
36.091667
93
0.484184
4,271
0.986146
0
0
0
0
0
0
1,734
0.400369
f8683ceaf922240bb0a9b5391ea9deb94effc25d
253
py
Python
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
from distutils.core import Extension, setup from Cython.Build import cythonize from Cython.Compiler import Options Options.docstrings = False ext = Extension(name="cyt_module", sources=["cyt_module.pyx"]) setup( ext_modules = cythonize(ext), )
18.071429
62
0.766798
0
0
0
0
0
0
0
0
28
0.110672
f86cbd077218ced0fe45ca2c5ef698554acc3ecd
18,995
py
Python
server_code.py
johnr0/TaleBrush-backend
f7429e10f328087444647d5dc6bf1f3a22ccfcce
[ "BSD-3-Clause" ]
1
2022-02-25T18:36:16.000Z
2022-02-25T18:36:16.000Z
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
from flask import request, url_for from flask_api import FlaskAPI, status, exceptions from flask_cors import CORS, cross_origin import torch import json import numpy as np import torch from modeling_gptneo import GPTNeoForCausalLM from modeling_gpt2 import GPT2LMHeadModel from transformers import ( GPTNeoConfig...
41.025918
140
0.588944
0
0
0
0
2,870
0.151092
0
0
3,850
0.202685
f86d0468889ac52f5ce1040fe21e913a6db95f94
20,391
py
Python
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
""" post_bands: post_bands extract data from static-o_DS3_EBANDS.agr and it will build the kpoints length: xcoord_k from the high symmetry line and the corresponding basis for reciprocal space. b1 = 1 / a1, b2 = 1 / a2 and b3 = 1 / a3. """ import os import numpy as np import matplotlib.pypl...
51.492424
142
0.529106
20,056
0.983571
0
0
0
0
0
0
7,702
0.377716
f86d356d798352c0185a9ec2592dc21b131a7ed8
337
py
Python
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
import logging import logging.config logging.config.fileConfig('./instance/logging.conf') # create logger logger = logging.getLogger('Cognitive-API') # 'application' code ''' logger.debug('debug message') logger.info('info message') logger.warning('warn message') logger.error('error message') logger.critical('criti...
19.823529
52
0.756677
0
0
0
0
0
0
0
0
237
0.703264
f86db685725dd6affbd6d16efda49f2dd028eb93
1,735
py
Python
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
2
2017-11-21T10:00:47.000Z
2018-02-02T04:40:09.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
1
2018-10-31T06:56:22.000Z
2018-11-01T00:58:16.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
5
2017-12-14T01:07:21.000Z
2020-04-29T02:21:46.000Z
import json import unittest from buter.app.services import load_from_file, detect_app_name from buter.server import docker from buter.util.Utils import unzip from config import getConfig class AppServiceTest(unittest.TestCase): def setUp(self): """ 这里只需要初始化 server.docker 对象 :return: ...
30.982143
109
0.609222
1,515
0.863248
0
0
0
0
0
0
395
0.225071
f86f8495a3b204ecbbc51199ca2187879cae3c8e
397
py
Python
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8-*- __author__ = 'Mason' import re import zipfile z = zipfile.ZipFile('channel.zip', mode='r') number = '90052' comments = [] while True: text = z.read(number + '.txt') number = re.findall('([0-9]+)', text) print number try: number = number[0] comments.append(z.getinfo...
19.85
59
0.594458
0
0
0
0
0
0
0
0
74
0.186398
f870be2bd112b621b44e0d7642b1d268ee31edf5
728
py
Python
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
from products.product import Product from notifications.notification import Notification from clients.client import Client class Subscription: def __init__(self, product: Product, timing: int): self.notifications = [] self.product = product self.timing = timing def add_notification(se...
33.090909
67
0.696429
602
0.826923
0
0
0
0
0
0
0
0
f871c0ad8b9204fef05550a10cc4ceb534586079
654
py
Python
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
# https://atcoder.jp/contests/joi2008yo/tasks/joi2008yo_e R, C = list(map(int, input().split())) senbei_pos = [] ans = 0 for _ in range(R): pos = list(map(int, input().split())) senbei_pos.append(pos) for bit in range(2**R): total = 0 copied_pos = senbei_pos[:] # Rの上限が10なので10桁の2進数になるように0で埋める fl...
29.727273
66
0.59633
0
0
0
0
0
0
0
0
135
0.193966
f8724ce5a5705922dd55fcf91b7512b691dc8ab7
2,850
py
Python
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2018-03-27T00:08:26.000Z
2018-03-27T00:08:26.000Z
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
null
null
null
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2020-06-04T02:49:20.000Z
2020-06-04T02:49:20.000Z
#!/usr/env python3 import requests import os import glob import telegram from time import sleep token = "token" bot = telegram.Bot(token=token) # Боту шлется ссылка на ютуб, он загоняет ее в bash комманду youtube-dl -x --audio-format mp3 <link>, шлет загруженный mp3 обратно клиенту class BotHandler: def __init__...
30.978261
138
0.597895
954
0.326489
0
0
0
0
0
0
622
0.212868
f873639a13e98ee3a4151d1be3542d91c969ac64
530
py
Python
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
1
2020-05-11T08:00:49.000Z
2020-05-11T08:00:49.000Z
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from djangobmf.views import ModuleCreateView from djangobmf.views import ModuleUpdateView from djangobmf.views import ModuleDetailView from .forms import BMFTeamUpdateForm from .forms import BMFTeamCreateForm class TeamCreateVie...
22.083333
44
0.828302
222
0.418868
0
0
0
0
0
0
45
0.084906
f873731d39e77de62eb053df48244e290afd54de
1,038
py
Python
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function import sys, os, glob, time, warnings, gc # import matplotlib.pyplot as plt import numpy as np from astropy.table import Table, vstack, hstack import fitsio from astropy.io import fits from scipy.interpolate import interp1d output_path = '/global/cfs/cdirs/desi/users/ro...
33.483871
116
0.706166
0
0
0
0
0
0
0
0
274
0.263969
f87515fbbdca8d3d26053fb65bc3d5ece4d188b8
290
py
Python
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
import telepot # Não criei um bot no telegram ainda, dessa forma este codigo não funciona # TODO: Criar bot no telegram e pegar chave bot = telepot.Bot("Aqui vai minha chave do Telegram") def recebendoMsg(msg): print(msg['text']) bot.message_loop(recebendoMsg) while True: pass
20.714286
74
0.741379
0
0
0
0
0
0
0
0
159
0.544521
f875e138fd658884c3bfbd92197a369b04338ea0
4,590
py
Python
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
null
null
null
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
15
2018-08-30T13:56:27.000Z
2021-07-21T08:58:03.000Z
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
null
null
null
# Support for english (EN) language def missing_translation(tr_id): return "MISSING TRANSLATION FOR STRING ID '" + str(tr_id) + "'" helper_commands = { "AUTHORIZE": "Usage:\n/authorize @<username>\n/authorize <user id>", "DEAUTHORIZE": "Usage:\n/deauthorize @<username>\n/deauthorize <user id>", "GIVEN": "Usage:\n...
49.891304
144
0.70305
0
0
0
0
0
0
0
0
3,693
0.799351
f87b501fc4a702c459b5a826cf1537ec0638bb2a
1,855
py
Python
core/migrations/0001_initial.py
SanjaLV/Tenis
ea714da10207723c27ff7204b4285ea6a773521b
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
SanjaLV/Tenis
ea714da10207723c27ff7204b4285ea6a773521b
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
SanjaLV/Tenis
ea714da10207723c27ff7204b4285ea6a773521b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-31 10:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
37.1
132
0.581132
1,696
0.914286
0
0
0
0
0
0
228
0.122911
f87cfb9c6282ebda75b44ea58b3afec144dcbcf4
448
py
Python
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2020-04-10T07:29:56.000Z
2020-05-27T03:45:21.000Z
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
null
null
null
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2018-11-24T08:16:59.000Z
2019-02-24T04:41:30.000Z
#!/usr/bin/env python3 # encoding: utf-8 # Douglas Crockford's idea for making generators # basically "why do you need a `yield` keyword when you can just maintain some state" # in my view, a class would be a better way to do this, and indeed, in python, # that's how Iterators are defined. def iter(list): i = 0 def ...
22.4
85
0.683036
0
0
0
0
0
0
0
0
285
0.636161
f87d14c4254943a1783a77600bab62106f89c898
6,336
py
Python
pddlstream/ss/algorithms/fast_downward.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
35
2018-03-15T14:26:33.000Z
2022-02-09T15:37:59.000Z
pddlstream/ss/algorithms/fast_downward.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
1
2020-11-03T04:49:43.000Z
2020-11-17T16:42:48.000Z
pddlstream/ss/algorithms/fast_downward.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
12
2018-04-28T20:11:21.000Z
2021-09-18T22:24:46.000Z
from time import time from ss.utils import INF import sys import os import shutil TEMP_DIR = 'temp/' DOMAIN_INPUT = 'domain.pddl' PROBLEM_INPUT = 'problem.pddl' TRANSLATE_OUTPUT = 'output.sas' SEARCH_OUTPUT = 'sas_plan' ENV_VAR = 'FD_PATH' FD_BIN = 'bin' TRANSLATE_DIR = 'translate/' SEARCH_COMMAND = 'downward --inter...
34.064516
94
0.646938
0
0
0
0
0
0
0
0
2,533
0.399779
f881c0e0b875dfcd895b81b936783f36c735935f
564
py
Python
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
import requests from api import config def get_docgen_token(): params = { "grant_type": "client_credentials", "client_id": config.COMMON_DOCGEN_CLIENT_ID, "client_secret": config.COMMON_DOCGEN_CLIENT_SECRET, "scope": "" } req = requests.post( config.COMMON_DOCGEN_S...
21.692308
64
0.615248
0
0
0
0
0
0
0
0
130
0.230496
f88205db59ac35f6745b81386eb53c57775a1972
3,164
py
Python
gcode_gen/gcode.py
tulth/gcode_gen
d6e276f2074d4fe66755b2ae06c5b4d85583c563
[ "BSD-3-Clause" ]
null
null
null
gcode_gen/gcode.py
tulth/gcode_gen
d6e276f2074d4fe66755b2ae06c5b4d85583c563
[ "BSD-3-Clause" ]
null
null
null
gcode_gen/gcode.py
tulth/gcode_gen
d6e276f2074d4fe66755b2ae06c5b4d85583c563
[ "BSD-3-Clause" ]
null
null
null
''' Library for gcode commands objects that render to strings. ''' from .number import num2str from .point import XYZ class GcodePoint(XYZ): def __str__(self): ret_list = [] for label, val in zip(('X', 'Y', 'Z'), self.xyz): if val is not None: ret_list.append('{}{}'.for...
24.913386
71
0.60335
2,994
0.946271
0
0
0
0
0
0
686
0.216814
f8825ad47b75cf630d4ad3f98bb97cd2847d852d
619
py
Python
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
''' Description: Problem 3 (rearrange the code) Version: 1.0.1.20210116 Author: Arvin Zhao Date: 2021-01-14 22:51:16 Last Editors: Arvin Zhao LastEditTime: 2021-01-16 04:11:18 ''' def get_data(): username = input('Enter your username: ') age = int(input('Enter your age: ')) data_tuple = (username, age) ...
20.633333
74
0.646204
0
0
0
0
0
0
0
0
287
0.463651
f8825cac93ae51da9c9e342930c13e66cd5b1a63
1,046
py
Python
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
from tensorflow import keras # Make sure the tf_trees directory is in the search path. from tf_trees import TEL # The documentation of TEL can be accessed as follows print(TEL.__doc__) # We will fit TEL on the Boston Housing regression dataset. # First, load the dataset. from keras.datasets import boston_housing (x_t...
38.740741
82
0.772467
0
0
0
0
0
0
0
0
566
0.541109
f88367f68dcb96f708907ba780b8dfe0c11ecea5
725
py
Python
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
4
2015-01-26T17:56:05.000Z
2020-04-01T05:52:00.000Z
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
11
2015-01-06T10:34:36.000Z
2021-03-22T18:29:45.000Z
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
6
2015-01-02T15:02:27.000Z
2021-05-12T18:09:35.000Z
#!/usr/bin/env python # Core Library modules import argparse import os # Third party modules import pytest # First party modules import nntoolkit.utils as utils def test_is_valid_file(): parser = argparse.ArgumentParser() # Does exist path = os.path.realpath(__file__) assert utils.is_valid_file(pa...
20.714286
62
0.704828
0
0
0
0
0
0
0
0
198
0.273103
f8837ac94ce790820bfbaf796665ce3cc290523c
101
py
Python
ex1.py
luismachado/python_project_euler
79798ee00c18f4f8cc1b397aa7c92f8175a3ed33
[ "MIT" ]
null
null
null
ex1.py
luismachado/python_project_euler
79798ee00c18f4f8cc1b397aa7c92f8175a3ed33
[ "MIT" ]
null
null
null
ex1.py
luismachado/python_project_euler
79798ee00c18f4f8cc1b397aa7c92f8175a3ed33
[ "MIT" ]
null
null
null
sum = 0 for x in range(1,1000): if x%3 == 0 or x%5 == 0: sum += x print ("Total is:", sum)
14.428571
26
0.485149
0
0
0
0
0
0
0
0
11
0.108911
f885cb85cd328a59b1d3f0d46e987b871f1a5d6d
1,977
py
Python
apiser/10-grpc/src/utils/tools/zemail.py
hyhlinux/demo_vue
cf61d0ba21cce93b04951076c8c23c0fe693bb5b
[ "Apache-2.0" ]
null
null
null
apiser/10-grpc/src/utils/tools/zemail.py
hyhlinux/demo_vue
cf61d0ba21cce93b04951076c8c23c0fe693bb5b
[ "Apache-2.0" ]
2
2022-02-10T12:00:22.000Z
2022-03-02T02:31:40.000Z
apiser/10-grpc/src/utils/tools/zemail.py
hyhlinux/demo_vue
cf61d0ba21cce93b04951076c8c23c0fe693bb5b
[ "Apache-2.0" ]
null
null
null
import smtplib import os from email.mime.text import MIMEText from email.utils import formataddr from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header try: from src.config import CONFIG except ImportError: class...
29.954545
107
0.630754
1,672
0.773
0
0
0
0
0
0
464
0.214517
f8885de2c1bf956e3ffc0a2b8c32753cd240d5eb
2,679
py
Python
can_decoder/Frame.py
justinwald99/can_decoder
abfdd839856745f88b3fc3a58c8bedbdd05d5616
[ "MIT" ]
17
2020-08-18T02:34:57.000Z
2022-03-16T16:26:53.000Z
can_decoder/Frame.py
justinwald99/can_decoder
abfdd839856745f88b3fc3a58c8bedbdd05d5616
[ "MIT" ]
4
2020-09-09T04:18:28.000Z
2022-02-23T10:29:14.000Z
can_decoder/Frame.py
justinwald99/can_decoder
abfdd839856745f88b3fc3a58c8bedbdd05d5616
[ "MIT" ]
3
2021-08-18T18:30:43.000Z
2022-02-21T07:11:09.000Z
from typing import List, Optional from can_decoder.Signal import Signal class Frame(object): id = 0 # type: int size = 0 # type: int signals = None # type: List[Signal] multiplexer = None # type: Optional[Signal] def __init__( self, frame_id: int, fram...
29.43956
117
0.528182
2,603
0.971631
0
0
0
0
0
0
840
0.31355
f888a9124299142dae94af378de65454815c28dd
268
py
Python
Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
largura = float(input('Digite a largura da parede: ')) altura = float(input('Digite a altura da parede: ')) area = largura * altura tinta = area / 2 print('A área da parede é de {}'.format(area)) print('Será necessário para pintar {} litros de tinta'.format(tinta))
29.777778
69
0.697761
0
0
0
0
0
0
0
0
137
0.503676
f888dc9c7ee0e666487347bc03cdcb3278274bed
174
py
Python
terraform.py
kyleslater/254-space-log
7496ff4e134b1a916580d8c0f8a0493e4863e9a2
[ "MIT" ]
null
null
null
terraform.py
kyleslater/254-space-log
7496ff4e134b1a916580d8c0f8a0493e4863e9a2
[ "MIT" ]
null
null
null
terraform.py
kyleslater/254-space-log
7496ff4e134b1a916580d8c0f8a0493e4863e9a2
[ "MIT" ]
null
null
null
#Kyle Slater import re def terraformable(content:str): pattern = re.compile("\"TerraformState\":\"Terraformable\"") matches = pattern.findall(content) return len(matches)
24.857143
61
0.752874
0
0
0
0
0
0
0
0
50
0.287356
f88a9c72050c19a376ad171a7a2391d21f7e3ac6
256
py
Python
bugzilla_service/bzservice_flask/app/tests/test_flaskr.py
5GEVE/5G-EVE-PORTAL-BACKEND-tsb
3fe3140b26d30e7e7ff1a034315183eaed60a599
[ "MIT" ]
null
null
null
bugzilla_service/bzservice_flask/app/tests/test_flaskr.py
5GEVE/5G-EVE-PORTAL-BACKEND-tsb
3fe3140b26d30e7e7ff1a034315183eaed60a599
[ "MIT" ]
3
2021-02-08T20:38:29.000Z
2021-06-02T00:55:43.000Z
file_storage_service/tests/test_flaskr.py
5GEVE/5G-EVE-PORTAL-BACKEND-fs
27d5d10fa39e3007cfee2e48e3b95047abf2c144
[ "MIT" ]
null
null
null
import os import tempfile import requests api_url = "http://127.0.0.1:8989" def test_no_token(): """Request home without token""" response = requests.get(api_url+"/isvalid") print(response.status_code) assert response.status_code == 401
23.272727
47
0.707031
0
0
0
0
0
0
0
0
65
0.253906
f88aa3fcd8cfa698889ea39a72ffe01decd8c2ea
6,279
py
Python
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
1
2021-07-22T14:06:08.000Z
2021-07-22T14:06:08.000Z
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
null
null
null
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # MIT License # # Copyright (c) 2021 gh0$t # # 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,...
34.5
218
0.645963
0
0
0
0
0
0
0
0
3,790
0.603599
f88ab7cb09ff4cce53f828728ecd959e4a4ca37a
955
py
Python
djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py
muhanzi/Django-REST-API
08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb
[ "Apache-2.0" ]
null
null
null
djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py
muhanzi/Django-REST-API
08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb
[ "Apache-2.0" ]
null
null
null
djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py
muhanzi/Django-REST-API
08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.2 on 2021-09-23 21:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('payment_module', '0004_auto_20210924_0009'), ] operations = [ migrations.RenameField( model_name='commission', old_name='age...
24.487179
54
0.536126
870
0.910995
0
0
0
0
0
0
241
0.252356
f88e5bdd49e9b79ee78760de491336a0c465e929
935
py
Python
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
import tensorflow as tf import keras import numpy as np def get_bias_major_weights(model): weights = model.get_weights() biasMajor = [] for arrI in range(0, len(weights), 2): inWeights = weights[arrI] biasWeights = weights[arrI+1].reshape((1,-2)) l = np.concatenate((biasWeights, inW...
32.241379
73
0.698396
0
0
0
0
0
0
0
0
0
0
f88f6e13c4185abcf8cceff79dbfda6d0f9a19ba
486
py
Python
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
1
2022-02-02T10:40:59.000Z
2022-02-02T10:40:59.000Z
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
null
null
null
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
null
null
null
import os MONGO_HOST = os.getenv('OPENSHIFT_NOSQL_DB_HOST') MONGO_PORT = os.getenv('OPENSHIFT_NOSQL_DB_PORT') MONGO_USERNAME = os.getenv('OPENSHIFT_NOSQL_DB_USERNAME') MONGO_PASSWORD = os.getenv('OPENSHIFT_NOSQL_DB_PASSWORD') MONGO_DBNAME = 'speakeasy' PRIV_KEY_FILE = os.getenv('OPENSHIFT_DATA_DIR') + '/server_privat...
30.375
71
0.790123
0
0
0
0
0
0
0
0
200
0.411523
f8900e5fac4e08162311478b3ed9cf017f5cb02c
10,047
py
Python
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
r''' perl_io - Opens a file or pipe in the Perl style Copyright (c) 2016 Yoichi Hariguchi 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 rig...
33.602007
78
0.54902
7,070
0.703693
0
0
115
0.011446
0
0
4,315
0.429481
f89039eac3e7b46b0d707c6f7b3927ce103b2914
919
py
Python
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
152
2020-12-07T13:26:53.000Z
2022-03-23T02:00:04.000Z
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
16
2020-12-07T17:04:36.000Z
2022-03-10T11:12:52.000Z
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
36
2020-12-09T13:04:40.000Z
2022-03-12T18:14:36.000Z
from .. import bp from flask import request, render_template, flash, redirect, url_for from flask_login import current_user, login_required from app.lib.base.provider import Provider from app.lib.base.decorators import admin_required @bp.route('/logs/errors', methods=['GET']) @login_required @admin_required def logs_...
26.257143
68
0.688792
0
0
0
0
682
0.742111
0
0
67
0.072905
f8905d54c870fed2c5b2b1831a4130a25651f566
5,539
py
Python
MR-OCP/mrcap/utils/downsample_atlas.py
justi/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
12
2015-03-11T22:07:17.000Z
2016-01-29T21:24:29.000Z
MR-OCP/mrcap/utils/downsample_atlas.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
213
2015-01-30T16:02:57.000Z
2016-01-29T21:45:02.000Z
MR-OCP/mrcap/utils/downsample_atlas.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
5
2015-02-04T13:58:12.000Z
2016-01-29T21:24:46.000Z
#!/usr/bin/env python # Copyright 2014 Open Connectome Project (http://openconnecto.me) # # 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 # #...
32.582353
157
0.667268
0
0
0
0
0
0
0
0
2,532
0.457122
f890b528c3dd1757b9098304393522baa32267a2
2,241
py
Python
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
1
2021-08-23T19:49:03.000Z
2021-08-23T19:49:03.000Z
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
null
null
null
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2017 reinforce.io. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
30.283784
96
0.622936
1,307
0.583222
0
0
0
0
0
0
895
0.399375
f891f4ca2c23bac0817312243666f8fd196ddfcf
9,970
py
Python
selinum_basics.py
elithaxxor/craiglist_scraper
db35d06004e306229cd10d7678574763cf48c625
[ "MIT" ]
null
null
null
selinum_basics.py
elithaxxor/craiglist_scraper
db35d06004e306229cd10d7678574763cf48c625
[ "MIT" ]
null
null
null
selinum_basics.py
elithaxxor/craiglist_scraper
db35d06004e306229cd10d7678574763cf48c625
[ "MIT" ]
null
null
null
import os import re import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver import Chrome from s...
57.298851
1,381
0.768907
0
0
0
0
0
0
0
0
7,722
0.774524
f893a81b68249d96ab59017996d9f35493423f0f
8,644
py
Python
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
null
null
null
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
32
2021-03-17T13:17:22.000Z
2021-05-04T14:25:31.000Z
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
1
2021-03-24T13:47:44.000Z
2021-03-24T13:47:44.000Z
import os import tempfile import shutil import requests import sys import logging import json from src.server.dependency import ModelData import tensorflow as tf class StreamToLogger(object): """ Fake file-like stream object that redirects writes to a logger instance. Source: https://stackoverflow.com/a/3...
32.618868
117
0.614762
450
0.052059
0
0
0
0
0
0
2,453
0.283781
f894286d87c8139bf9e7bda1448f050c5b02eb70
3,287
py
Python
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2017-05-03T12:18:31.000Z
2017-05-03T12:18:31.000Z
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
null
null
null
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2020-10-29T04:00:04.000Z
2020-10-29T04:00:04.000Z
from flask import Flask from flask import render_template from flask import request from model import MovieWebDAO import json from ml import Forcast app = Flask(__name__) @app.route('/') def hello_world(): return render_template('index.html') @app.route('/hello/') @app.route('/hello/<name>') def hello(name=None)...
31.009434
79
0.703377
0
0
0
0
2,970
0.903559
0
0
668
0.203225
f89a1bc1e1f90da376a0c1761bee56b1db485561
1,438
py
Python
remove_negative_from_positive_augmented_samples.py
DarkElement75/object-detection-experiments
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
[ "MIT" ]
null
null
null
remove_negative_from_positive_augmented_samples.py
DarkElement75/object-detection-experiments
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
[ "MIT" ]
null
null
null
remove_negative_from_positive_augmented_samples.py
DarkElement75/object-detection-experiments
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
[ "MIT" ]
null
null
null
import h5py import numpy as np import cv2 def read_new(archive_dir): with h5py.File(archive_dir, "r", chunks=True, compression="gzip") as hf: """ Load our X data the usual way, using a memmap for our x data because it may be too large to hold in RAM, and loading Y as normal ...
35.95
112
0.632823
0
0
0
0
0
0
0
0
544
0.378303
f89ade1e452186e4d101ccde6adaccc57996d66d
646
py
Python
Automate_Whatsapp_Sending_Text.py
IshvinaKapoor/Automate-WhatsApp
f499db0540c56b74152a368af1fa361ecea69806
[ "MIT" ]
null
null
null
Automate_Whatsapp_Sending_Text.py
IshvinaKapoor/Automate-WhatsApp
f499db0540c56b74152a368af1fa361ecea69806
[ "MIT" ]
null
null
null
Automate_Whatsapp_Sending_Text.py
IshvinaKapoor/Automate-WhatsApp
f499db0540c56b74152a368af1fa361ecea69806
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Automate WhatsApp - Sending WhatsApp message @author: DELL Ishvina Kapoor """ #importing the necessary modules import pywhatkit as pkt import getpass as gp #displaying a welcome message print("Automating Whatsapp!") #capturing the target phone number from the user phone_...
23.925926
96
0.716718
0
0
0
0
0
0
0
0
450
0.696594
f89c748dd51197d30a5af7af230eb9f70959fb01
894
py
Python
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import gast as ast from beniget import Ancestors, DefUseChains as DUC, UseDefChains from beniget.beniget import Def __all__ = ["Ancestors", "DefUseChains", "UseDefChains"] class DefUseChains(DUC): def visit_List(self, node): if isinstance(node.ctx, ast.Load): dnode = self.chains.setdefault...
29.8
64
0.659955
588
0.657718
0
0
0
0
0
0
212
0.237136
f89ffb26ee589ce79dc400f7f5cf4afa16b557b3
88
py
Python
view/resources/__init__.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
null
null
null
view/resources/__init__.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
3
2021-09-08T03:02:25.000Z
2022-03-12T01:00:06.000Z
view/resources/__init__.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 3 16:43:28 2020 @author: nicholls """
11
35
0.568182
0
0
0
0
0
0
0
0
85
0.965909
f8a219513d5df677c7712f374a4d0f79bdc2f13b
2,401
py
Python
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
1
2021-12-29T09:32:08.000Z
2021-12-29T09:32:08.000Z
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
from collections import Counter def read_file(filepath): with open(filepath,'r') as f: a = [x for x in f.read().split('\n\n')] b = []; d = [] for x in [[x[0],x[1].split(' or ')] for x in [x.split(': ') for x in a[0].split('\n')]]: for y in x[1]: ...
24.752577
96
0.43107
0
0
0
0
0
0
0
0
62
0.025823
f8a565676ba40410367b887bd52120b87f5a4d60
9,512
py
Python
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
2
2020-09-15T18:10:12.000Z
2021-01-25T21:54:04.000Z
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
null
null
null
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
null
null
null
# Author: Ibrahim Alhas - ID: 1533204. # MODEL 3: CNN with built-in tensorflow tokenizer. # This is the final version of the model (not the base). # Packages and libraries used for this model. # ** Install these if not installed already **. import numpy as np import pandas as pd import matplotlib.pyplot ...
37.746032
120
0.700694
0
0
0
0
0
0
0
0
4,574
0.480866
f8a57061a44b4ce6c14481e8a79c00cddf4bc7c8
40,857
py
Python
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
6
2015-07-27T21:50:39.000Z
2020-06-25T14:32:35.000Z
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
89
2015-06-24T09:35:40.000Z
2022-02-13T14:40:31.000Z
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
12
2015-07-13T17:31:04.000Z
2021-08-06T06:50:21.000Z
#!/usr/bin/env python2 # -*- coding: utf8 -*- # # Copyright (c) 2017 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Richard Mahn <rich.mahn@unfoldingword.org> """ This script generates the HTML tN documents for each book of the Bible """ from __future_...
49.46368
254
0.548303
37,886
0.927283
0
0
1,067
0.026115
0
0
8,752
0.214211
f8a59fce72ffcde75ac9e9b378c6906ab092d7dd
2,565
py
Python
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
1
2021-11-04T00:08:00.000Z
2021-11-04T00:08:00.000Z
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
null
null
null
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from tqdm import tqdm import argparse from pyscenic.aucell import aucell from .aucell import create_gene_signatures from .aucell import assign_bootstrap def main(): parser = argparse.ArgumentParser(description='AUcell Bootstrapping.') parser.add_argument( '-i', '-...
28.5
91
0.617934
0
0
0
0
0
0
0
0
655
0.255361
f8a65542e1ebb18eabea4f393380c912f8314bfc
696
py
Python
network/topo-custom.py
kstough/pox
152625fcd40fc5ddfce87b7632fd40777507205c
[ "Apache-2.0" ]
null
null
null
network/topo-custom.py
kstough/pox
152625fcd40fc5ddfce87b7632fd40777507205c
[ "Apache-2.0" ]
null
null
null
network/topo-custom.py
kstough/pox
152625fcd40fc5ddfce87b7632fd40777507205c
[ "Apache-2.0" ]
null
null
null
"""Custom topology example s7 ---- s8 ---- s9 / \ / \ / \ h1 h2 h3 h4 h5 h6 """ from mininet.topo import Topo print('Loading MyTopo') class MyTopo(Topo): "Simple topology example." def __init__(self): Topo.__init__(self) # Add hosts and switches h1, h2, h3, h4, h5, h6 = (se...
19.885714
79
0.570402
492
0.706897
0
0
0
0
0
0
195
0.280172
f8a77e8060730c4c9bc76d9c5c083f084aed00b7
2,383
py
Python
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
from rule_condition import Condition from rule_action import Action from rule_template import RuleTemplate from rule_engine import RuleEngine from rule import Rule from rule_data import Data from rule_scope import Scope from action_handler_send_email import SendEmailHandler from action_handler_report_alarm import Repor...
29.419753
81
0.660512
0
0
0
0
0
0
0
0
527
0.22115
f8a7cc80262619abcc2b85bf1530f105f8f8ce34
362
py
Python
agri/urls.py
Bhavesh0327/Agriblock
72015e1765214b153771dbc3868eae01fe8898b3
[ "MIT" ]
1
2020-10-01T08:28:57.000Z
2020-10-01T08:28:57.000Z
agri/urls.py
Bhavesh0327/Agriblock
72015e1765214b153771dbc3868eae01fe8898b3
[ "MIT" ]
14
2020-06-05T20:37:13.000Z
2022-02-26T22:51:36.000Z
agri/urls.py
Bhavesh0327/Agriblock
72015e1765214b153771dbc3868eae01fe8898b3
[ "MIT" ]
3
2020-01-29T04:34:28.000Z
2020-09-30T21:48:30.000Z
from django.urls import path from .views import * rest_urls = list(map(lambda x: path(x[0], x[1], name=x[2]), [ ('login/', login, 'login'), ('issue_asset/', issue_asset, 'issue_asset'), ('buy/', buy, 'buy'), ('get_assets/', get_assets, 'get_assets'), ('get_transactions/', get_transactions, 'get_tr...
25.857143
63
0.638122
0
0
0
0
0
0
0
0
115
0.31768
f8a96eee4517afeca4532922b8ea2f6d38dc101a
4,898
py
Python
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
import os import numpy as np import monai import math import torch import glob from skimage.morphology import remove_small_holes, remove_small_objects from monai.transforms import ( LoadImaged, AddChanneld, Orientationd, Spacingd, ScaleIntensityRanged, SpatialPadd, RandAffined, RandCropB...
39.5
111
0.669661
0
0
0
0
0
0
0
0
842
0.171907
f8ab0286f449987129eeade795e566330ff36d18
867
py
Python
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
2
2019-12-09T10:19:36.000Z
2020-01-11T11:48:41.000Z
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
null
null
null
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
null
null
null
import json import pytest from unittest import TestCase from rest_framework.test import APIClient from ..models import Group, Prediction @pytest.mark.django_db class PredictionViewSetTest(TestCase): def setUp(self): self.client = APIClient() def test_prediction_list(self): response = self.cl...
27.967742
63
0.704729
677
0.780854
0
0
723
0.83391
0
0
33
0.038062
f8ab70b04aa64ecaf4843be345aba0efec2cfc69
414
py
Python
sapextractor/utils/string_matching/distances.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
2
2021-02-10T08:09:35.000Z
2021-05-21T06:25:34.000Z
sapextractor/utils/string_matching/distances.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
null
null
null
sapextractor/utils/string_matching/distances.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
3
2021-11-22T13:27:00.000Z
2022-03-16T22:08:51.000Z
import stringdist def levenshtein(stru1, stru2): """ Measures the Levenshtein distance between two strings Parameters --------------- stru1 First string stru2 Second string Returns --------------- levens_dist Levenshtein distance """ return stringd...
16.56
57
0.601449
0
0
0
0
0
0
0
0
246
0.594203
f8acaa7460d221225a0bd79d4a5ca48dc091b0af
2,873
py
Python
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
"""Specification for the RoboMaker delete. simulation application component.""" # 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 require...
32.280899
88
0.725374
1,763
0.613644
0
0
711
0.247477
0
0
941
0.327532
f8aeac4c82055a9ca0856652e23d45a0af0bcf39
7,595
py
Python
ckanext-hdx_theme/ckanext/hdx_theme/util/jql_queries.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
ckanext-hdx_theme/ckanext/hdx_theme/util/jql_queries.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
ckanext-hdx_theme/ckanext/hdx_theme/util/jql_queries.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
DOWNLOADS_PER_DATASET = ''' /* VER 1.2 used for total downloads from 2016-08-01 which is used to sort datasets by "most downloads" for the "XXX downloads" counter on /search and on each individual dataset gets all download events and counts occurrences of unique combinations of user, resource, and dataset, and day, t...
42.194444
493
0.688743
0
0
0
0
0
0
0
0
7,325
0.96445
f8afd1b0a1d62c5e20c07db83d59c2c494f17348
13,343
py
Python
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div83/077.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/077.py" self["Q"] = numpy.array([ 3.01408100e+00, 3.40341800e+00, 3.94918400e+00, 4.08209300e+00, 4.65722800e+00, 5.59385900e+00, 5.9688...
57.512931
92
0.566739
0
0
0
0
0
0
0
0
462
0.034625
f8b003880b2b0c817a1e02d7db8475b7ea56eada
2,624
py
Python
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import fnmatch import logging class sflow_sub_record: def __init__(self,scheme,app_id,app_ip,app_port,subscription_info,sub_info_filter): logging.debug("* Updating subscription_info ") self.scheme = scheme self.app_id = app_id self.ipaddress = app_ip self...
41
91
0.62843
388
0.147866
0
0
0
0
0
0
616
0.234756
f8b2fa45ad6aa0b508fe2d6b2b81fce66e566e4c
3,148
py
Python
scripts/gcorr/run_xfaster.py
SPIDER-CMB/xfaster
1b8e56d775f2c3a8693d1372ae461392c21da7ca
[ "MIT" ]
1
2021-03-25T14:15:44.000Z
2021-03-25T14:15:44.000Z
scripts/gcorr/run_xfaster.py
annegambrel/xfaster
03d5a2971d3cc19ae360d78995e3575f3f678d6e
[ "MIT" ]
7
2021-04-20T23:34:38.000Z
2021-08-24T00:00:53.000Z
scripts/gcorr/run_xfaster.py
SPIDER-CMB/xfaster
1b8e56d775f2c3a8693d1372ae461392c21da7ca
[ "MIT" ]
1
2021-05-18T16:43:54.000Z
2021-05-18T16:43:54.000Z
""" A script to run XFaster for gcorr calculation. Called by iterate.py. """ import os import xfaster as xf import argparse as ap from configparser import ConfigParser # Change XFaster options here to suit your purposes opts = dict( likelihood=False, residual_fit=False, foreground_fit=False, # change o...
28.618182
88
0.661055
0
0
0
0
0
0
0
0
1,313
0.41709
f8b309e5e28868df32235aef95ba627c1ca50e48
1,888
py
Python
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
null
null
null
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
null
null
null
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
1
2022-02-12T03:50:32.000Z
2022-02-12T03:50:32.000Z
import unittest from src.examples.c_decisions.decisions import is_letter_consonant, logical_op_precedence, num_is_not_in_range_or, number_is_in_range_and, test_config from src.examples.c_decisions.decisions import get_letter_grade from src.examples.c_decisions.decisions import logical_op_precedence from src.examples.c...
46.04878
150
0.743114
1,516
0.802966
0
0
0
0
0
0
37
0.019597
f8b46b6ff72b56497017d6f934899df81b96c51a
32
py
Python
badge/__init__.py
krisgesling/swag-badge-skill
7640264880d8ae14f9c49c3ba40c6e388e58dcaf
[ "Apache-2.0" ]
1
2021-01-24T01:42:15.000Z
2021-01-24T01:42:15.000Z
badge/__init__.py
krisgesling/swag-badge-skill
7640264880d8ae14f9c49c3ba40c6e388e58dcaf
[ "Apache-2.0" ]
null
null
null
badge/__init__.py
krisgesling/swag-badge-skill
7640264880d8ae14f9c49c3ba40c6e388e58dcaf
[ "Apache-2.0" ]
null
null
null
from .client import MQTT_Client
16
31
0.84375
0
0
0
0
0
0
0
0
0
0
f8b5ae0ccaf93b252b0712f888f73a49ece568a6
23,824
py
Python
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
1
2021-03-29T22:09:47.000Z
2021-03-29T22:09:47.000Z
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
49
2021-03-29T20:13:28.000Z
2021-05-01T10:38:19.000Z
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
37.815873
80
0.580423
11,117
0.46663
0
0
1,276
0.053559
0
0
12,496
0.524513
f8b628877707fa6132110ae047367879935e3268
444
py
Python
mezzanine_pagedown/defaults.py
eht16/mezzanine-pagedown
e6090f5713097e664e85b279a4a17febb73b00a1
[ "BSD-2-Clause" ]
94
2015-01-28T15:46:02.000Z
2020-11-02T12:56:15.000Z
mezzanine_pagedown/defaults.py
eht16/mezzanine-pagedown
e6090f5713097e664e85b279a4a17febb73b00a1
[ "BSD-2-Clause" ]
56
2015-04-05T03:18:41.000Z
2021-08-29T00:50:57.000Z
mezzanine_pagedown/defaults.py
eht16/mezzanine-pagedown
e6090f5713097e664e85b279a4a17febb73b00a1
[ "BSD-2-Clause" ]
38
2015-08-26T08:10:12.000Z
2021-06-11T19:36:31.000Z
from mezzanine.conf import register_setting register_setting( name="PAGEDOWN_SERVER_SIDE_PREVIEW", description="Render previews on the server using the same " "converter that generates the actual pages.", editable=False, default=False, ) register_setting( name="PAGEDOWN_MARKDOWN_E...
24.666667
73
0.725225
0
0
0
0
0
0
0
0
207
0.466216
f8b864241fa615529ec19943c7bf44bcc5c33cfb
4,274
py
Python
solutions/2021/day5/day5.py
teije01/adventofcode
2742985f8437e9784e7ec5430e3846a755b5d386
[ "MIT" ]
null
null
null
solutions/2021/day5/day5.py
teije01/adventofcode
2742985f8437e9784e7ec5430e3846a755b5d386
[ "MIT" ]
null
null
null
solutions/2021/day5/day5.py
teije01/adventofcode
2742985f8437e9784e7ec5430e3846a755b5d386
[ "MIT" ]
null
null
null
""" --- Day 5: Hydrothermal Venture --- You come across a field of hydrothermal vents on the ocean floor! These vents constantly produce large, opaque clouds, so it would be best to avoid them if possible. They tend to form in lines; the submarine helpfully produces a list of nearby lines of vents (your puzzle input)...
31.426471
111
0.653486
649
0.151848
0
0
434
0.101544
0
0
2,869
0.671268
f8b88aa220e765ebad5849f646d7fa3f22e031df
1,316
py
Python
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
6
2021-05-21T01:10:42.000Z
2021-12-16T16:12:30.000Z
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
null
null
null
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
null
null
null
from typing import Callable class Solution: def sortArrayByParityII(self, nums: list[int]) -> list[int]: # Crucial lesson: 2 pointer approach doesn't necessarily mean # the pointers should start at opposite ends of the array. evens, odds = 0, 1 end = len(nums) while evens <...
24.830189
77
0.50152
596
0.452888
0
0
0
0
0
0
119
0.090426
f8ba3fd25de458d4df99e4ca579804ce22c8dbdc
112
py
Python
database.py
anthonypang99/TakeNote
7da668d48b72ee825f3fb9f503f8d4d6fe2ff644
[ "MIT" ]
null
null
null
database.py
anthonypang99/TakeNote
7da668d48b72ee825f3fb9f503f8d4d6fe2ff644
[ "MIT" ]
null
null
null
database.py
anthonypang99/TakeNote
7da668d48b72ee825f3fb9f503f8d4d6fe2ff644
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy # Initialize the Flask-SQLAlchemy extension instance db = SQLAlchemy()
22.4
52
0.830357
0
0
0
0
0
0
0
0
52
0.464286
f8ba6e975ac143461562e6b418e4b0a0aee2b105
4,285
py
Python
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
2
2019-09-17T10:20:20.000Z
2020-02-10T11:46:33.000Z
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
null
null
null
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
null
null
null
import re UNITS_XML_FILE = 'poscUnits22.xml' UNITS_PICKLE_FILE = 'units.pickle' OUTPUT_DECIMALS = 6 SOURCE_PATTERN = r'^(?P<quantity>.*[\d.]+)\s*(?P<from>[^\d\s]([^\s]*|.+?))' SOURCE_RE = re.compile(SOURCE_PATTERN + '$', re.IGNORECASE | re.VERBOSE) FULL_PATTERN = r'(\s+as|\s+to|\s+in|\s*>|\s*=)\s(?P<to>[^\d\s][^\s...
22.792553
76
0.54189
0
0
0
0
0
0
0
0
2,141
0.49965
f8bab3dc683ade4a29b7e25ca1a99e68f49ac849
462
py
Python
30/00/1.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
null
null
null
30/00/1.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
46
2017-06-30T22:19:07.000Z
2017-07-31T22:51:31.000Z
30/00/1.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
null
null
null
def RetT(): print('True'); return True def RetF(): print('False'); return False print('----- or -----') RetT() or RetF() RetF() or RetT() #第一引数が偽のときにのみ、第二引数が評価されます。 print('----- and -----') RetT() and RetF() #第一引数が真のときにのみ、第二引数が評価されます。 RetF() and RetT() #第一引数が真のときにのみ、第二引数が評価されます。 print('----- not -----') print(not Tr...
25.666667
53
0.645022
0
0
0
0
0
0
0
0
344
0.562092
f8bc9f66b7afd106a2727f0668012f3210c6ab27
1,548
py
Python
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
null
null
null
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
2
2020-07-19T21:03:34.000Z
2020-09-11T14:56:34.000Z
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
null
null
null
from enum import Enum from pathlib import Path import click from mbox.click import EnumChoice, ParsedDate, PathParam class AF(Enum): IPv4 = 4 IPv6 = 6 def test_enum_choice(runner): @click.command() @click.option("--af", type=EnumChoice(AF, int)) def cmd(af): click.echo(af) result ...
24.1875
72
0.623385
41
0.026486
0
0
519
0.335271
0
0
247
0.159561