hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7954c8af792875efbcc8e9429c327a6d2a9d4746
692
py
Python
final_project/server.py
bkcelebi/flaskTranslatorEng-Fr
442c86e04c9bb91f84d13abfefea18754b9e49d9
[ "Apache-2.0" ]
null
null
null
final_project/server.py
bkcelebi/flaskTranslatorEng-Fr
442c86e04c9bb91f84d13abfefea18754b9e49d9
[ "Apache-2.0" ]
null
null
null
final_project/server.py
bkcelebi/flaskTranslatorEng-Fr
442c86e04c9bb91f84d13abfefea18754b9e49d9
[ "Apache-2.0" ]
null
null
null
from machinetranslation import translator from flask import Flask, render_template, request import json app = Flask("Web Translator") @app.route("/englishToFrench") def englishToFrench(): textToTranslate = request.args.get('textToTranslate') # Write your code here return translator.english_to_french(text...
25.62963
57
0.748555
7954c9b1ec3ab694f0dd79d71de4ff7164db79b8
6,635
py
Python
vtk_example.py
SebastianRiedel/python_scratchbook
cdd5a9864873fce2d510ae0977f68d36b3caa56b
[ "MIT" ]
null
null
null
vtk_example.py
SebastianRiedel/python_scratchbook
cdd5a9864873fce2d510ae0977f68d36b3caa56b
[ "MIT" ]
null
null
null
vtk_example.py
SebastianRiedel/python_scratchbook
cdd5a9864873fce2d510ae0977f68d36b3caa56b
[ "MIT" ]
null
null
null
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. from mayavi import mlab # To access any VTK object, we use 'tvtk', which is a Python wrapping of # VTK replacing C++ setters and getters by Python properties and # converting numpy arrays to VTK arrays...
27.878151
108
0.702185
7954ccce87979aa5e57f3a60abf6bc169d407823
1,531
py
Python
mwcleric/fandom_client.py
AttemptToCallNil/mwcleric
83a4a21b39de6cfde78131ea2237632947a0f705
[ "MIT" ]
null
null
null
mwcleric/fandom_client.py
AttemptToCallNil/mwcleric
83a4a21b39de6cfde78131ea2237632947a0f705
[ "MIT" ]
null
null
null
mwcleric/fandom_client.py
AttemptToCallNil/mwcleric
83a4a21b39de6cfde78131ea2237632947a0f705
[ "MIT" ]
null
null
null
from mwclient import InvalidResponse from .auth_credentials import AuthCredentials from .cargo_client import CargoClient from .site import Site from .wiki_client import WikiClient class FandomClient(WikiClient): """ Functions for connecting to and editing specifically Gamepedia wikis. """ cargo_clien...
33.282609
101
0.636839
7954cd0e1b4d31901fa1aab1e61cdb82b9310a0e
218
py
Python
setup.py
singh-karanpal/Capstone
807ca3f70276a0dd17244a123a759a914d358424
[ "MIT" ]
null
null
null
setup.py
singh-karanpal/Capstone
807ca3f70276a0dd17244a123a759a914d358424
[ "MIT" ]
null
null
null
setup.py
singh-karanpal/Capstone
807ca3f70276a0dd17244a123a759a914d358424
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='BCStats Capstone project 2020', author='Karanpal Singh', license='MIT', )
19.818182
48
0.674312
7954cd677edf5c959284af1950fecf63f02372cf
1,789
py
Python
iperon/contrib/pwned.py
kostya-ten/iperon
ad00b7bcbab3675a73448073c52b8b383e8354d5
[ "Apache-2.0" ]
1
2022-01-11T17:38:30.000Z
2022-01-11T17:38:30.000Z
iperon/contrib/pwned.py
kostya-ten/iperon
abbfc12b15cdbd496e50720f957d5bce5ab8f382
[ "Apache-2.0" ]
5
2022-01-12T07:59:25.000Z
2022-02-09T20:53:01.000Z
iperon/contrib/pwned.py
kostya-ten/iperon
abbfc12b15cdbd496e50720f957d5bce5ab8f382
[ "Apache-2.0" ]
1
2022-01-11T18:54:28.000Z
2022-01-11T18:54:28.000Z
import hashlib import logging import httpx from pydantic import BaseModel from ..exceptions import PwnedConnectionErrorException from ..http_base_client import HttpBaseClient from ..redis import RedisClient PWNED_URL = 'https://api.pwnedpasswords.com/range' logger = logging.getLogger('iperon') class Pwned(BaseMod...
30.844828
96
0.600894
7954cdb1e1d128fb0c44e5df8cf1de62dd938223
2,254
py
Python
7. Trees/abstract_data_type_tree.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
7. Trees/abstract_data_type_tree.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
7. Trees/abstract_data_type_tree.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
# The Tree Abstract Data Type # Implementation of Tree abstract base class class Tree: """Abstract base class representing a tree structure.""" #-------------------------------- nested Position class ----------------------------------- class Position: """An abstraction representing the location of...
40.25
95
0.602041
7954cddf64ac6d0a7ccef9cffbebd8a50d005086
8,699
py
Python
model-optimizer/mo/utils/pipeline_config.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/utils/pipeline_config.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/mo/utils/pipeline_config.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2018-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
56.487013
120
0.724681
7954ce7033922810b5a085321f6cb82731c815ae
1,070
py
Python
actions/nodes_node_qemu_vmid_firewall_ipset_name_delete_ipset.py
nzlosh/stackstorm-proxmox
fc4388f0b62dd1d4a360e9542eb55dea387149f4
[ "Apache-2.0" ]
null
null
null
actions/nodes_node_qemu_vmid_firewall_ipset_name_delete_ipset.py
nzlosh/stackstorm-proxmox
fc4388f0b62dd1d4a360e9542eb55dea387149f4
[ "Apache-2.0" ]
null
null
null
actions/nodes_node_qemu_vmid_firewall_ipset_name_delete_ipset.py
nzlosh/stackstorm-proxmox
fc4388f0b62dd1d4a360e9542eb55dea387149f4
[ "Apache-2.0" ]
null
null
null
import json from packlib.base import ProxmoxAction class NodesNodeQemuVmidFirewallIpsetNameDeleteIpsetAction(ProxmoxAction): """ Delete IPSet """ def run(self, name, node, vmid, profile_name=None): super().run(profile_name) # Only include non None arguments to pass through to proxmox...
31.470588
79
0.530841
7954ceb5941b74631fcac32ba1e35a9ee562fe36
829
py
Python
DQM/SiStripMonitorTrack/python/SiStripMonitorTrack_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/SiStripMonitorTrack/python/SiStripMonitorTrack_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/SiStripMonitorTrack/python/SiStripMonitorTrack_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 DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi import * # TrackInfo #### from RecoTracker.TrackProducer.TrackRefitters_cff import * #----------------------- # Reconstruction Modules #----------------------- from RecoLocalTracker.SiStripZeroSuppression.SiStripZeroSuppress...
41.45
112
0.816647
7954cff3f786cc73d526a46e114e1e046750fdcf
11,927
py
Python
test/distributed/elastic/rendezvous/utils_test.py
guoyejun/pytorch
57cba8e60116bfff37d10bc2b4596d8c478ffd0a
[ "Intel" ]
null
null
null
test/distributed/elastic/rendezvous/utils_test.py
guoyejun/pytorch
57cba8e60116bfff37d10bc2b4596d8c478ffd0a
[ "Intel" ]
null
null
null
test/distributed/elastic/rendezvous/utils_test.py
guoyejun/pytorch
57cba8e60116bfff37d10bc2b4596d8c478ffd0a
[ "Intel" ]
1
2022-02-23T02:34:50.000Z
2022-02-23T02:34:50.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import threading import time import socket from datetime import timedelta from typing import List from unittest i...
33.315642
100
0.595288
7954d0d2712af20ea1c08fd593a0314c5874b7cd
2,331
py
Python
sahara/tests/unit/base.py
openstack/sahara
c4f4d29847d5bcca83d49ef7e9a3378458462a79
[ "Apache-2.0" ]
161
2015-01-05T11:46:42.000Z
2022-01-05T07:41:39.000Z
sahara_plugin_storm/tests/unit/base.py
openstack/sahara-plugin-storm
960d5f6e49e3f27e2f40939df02d8e8ed0888bb5
[ "Apache-2.0" ]
1
2021-01-28T06:06:41.000Z
2021-01-28T06:06:43.000Z
sahara_plugin_storm/tests/unit/base.py
openstack/sahara-plugin-storm
960d5f6e49e3f27e2f40939df02d8e8ed0888bb5
[ "Apache-2.0" ]
118
2015-01-29T06:34:35.000Z
2021-12-06T07:30:09.000Z
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
31.08
78
0.687259
7954d23dc02c93159315e4220ec2db0289fddb44
8,866
py
Python
fluid/ocr_recognition/train.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
1
2018-09-12T09:36:44.000Z
2018-09-12T09:36:44.000Z
fluid/ocr_recognition/train.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
null
null
null
fluid/ocr_recognition/train.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
2
2018-06-14T13:59:36.000Z
2018-11-14T12:34:47.000Z
"""Trainer for OCR CTC or attention model.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import paddle.fluid as fluid from utility import add_arguments, print_arguments, to_lodtensor, get_ctc_feeder_data, get_attention_feeder_data import paddle.fluid.pro...
40.484018
199
0.604557
7954d2425049f7814699c4832275e2531ce41cf8
6,107
py
Python
bot/ext/tabletop/tictactoe.py
Rickaym/Nexus-Bot
86b17ca5f7cce10eae981157971990875eda0a06
[ "MIT" ]
null
null
null
bot/ext/tabletop/tictactoe.py
Rickaym/Nexus-Bot
86b17ca5f7cce10eae981157971990875eda0a06
[ "MIT" ]
null
null
null
bot/ext/tabletop/tictactoe.py
Rickaym/Nexus-Bot
86b17ca5f7cce10eae981157971990875eda0a06
[ "MIT" ]
null
null
null
from discord import ui from discord.embeds import Embed from discord.enums import ButtonStyle from discord.ext import commands from discord.interactions import Interaction from asyncio.exceptions import TimeoutError from discord.ui.button import Button from bot.utils.shadchan import MatchInstance, MatchModes, Pool, Mat...
35.300578
139
0.54544
7954d37059baf4c9e974e983518556b976230d4f
401
py
Python
populate.py
NealWhitlock/auto_populate
9e3d960dc715c9b57abcc4de54473f217398ea07
[ "MIT" ]
null
null
null
populate.py
NealWhitlock/auto_populate
9e3d960dc715c9b57abcc4de54473f217398ea07
[ "MIT" ]
null
null
null
populate.py
NealWhitlock/auto_populate
9e3d960dc715c9b57abcc4de54473f217398ea07
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from pydantic import BaseModel from getter import ingredient_getter app = FastAPI() class Item(BaseModel): word: str @app.post("/populate/{word}") async def feature(item: Item): item = jsonable_encoder(item) word_string = item['...
20.05
49
0.755611
7954d38e693efe735aee351a4ddb68b5f8bb0135
1,429
py
Python
locations/spiders/winn_dixie.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/winn_dixie.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/winn_dixie.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from locations.items import GeojsonPointItem class FiestaMartSpider(scrapy.Spider): name = "winndixie" item_attributes = {"brand": "Winn Dixie"} allowed_domains = ["winndixie.com"] start_urls = [ "https://www.winndixie.com/locator", ] def start_...
31.755556
127
0.549335
7954d3ed19c77ea5d54f5daa08cc58940c630754
10,944
py
Python
pprp/crypto_2.py
Avalon913/FGODailyBonus
6dbb46485b536361b99a098a500a62d3f73931c0
[ "MIT" ]
18
2021-09-01T09:39:45.000Z
2022-03-29T13:37:39.000Z
pprp/crypto_2.py
Avalon913/FGODailyBonus
6dbb46485b536361b99a098a500a62d3f73931c0
[ "MIT" ]
4
2021-09-09T03:51:25.000Z
2022-02-24T10:48:02.000Z
pprp/crypto_2.py
Avalon913/FGODailyBonus
6dbb46485b536361b99a098a500a62d3f73931c0
[ "MIT" ]
48
2021-09-01T05:32:02.000Z
2022-03-29T04:53:36.000Z
""" A pure python (slow) implementation of rijndael with a decent interface To include - from rijndael import rijndael To do a key setup - r = rijndael(key, block_size = 16) key must be a string of length 16, 24, or 32 blocksize must be 16, 24, or 32. Default is 16 To use - ciphertext = r.encrypt(plaintext) plai...
29.029178
117
0.426992
7954d41a1866d33c8a8539dbdf2b54758cc13843
7,535
py
Python
Collect/JRC/DataAccess.py
ali1100/wa
700e5014533c45f38a245c3abdeacc537cb307bc
[ "Apache-2.0" ]
16
2017-04-27T21:22:37.000Z
2020-10-21T12:57:03.000Z
Collect/JRC/DataAccess.py
ali1100/wa
700e5014533c45f38a245c3abdeacc537cb307bc
[ "Apache-2.0" ]
1
2017-06-17T08:07:53.000Z
2017-08-22T12:28:37.000Z
Collect/JRC/DataAccess.py
wateraccounting/wa
29ed8e7eac732135678a5d171cd5e53a54c95313
[ "Apache-2.0" ]
19
2016-10-24T13:24:34.000Z
2020-02-03T17:42:22.000Z
# -*- coding: utf-8 -*- """ Authors: Tim Hessels UNESCO-IHE 2017 Contact: t.hessels@unesco-ihe.org Repository: https://github.com/wateraccounting/wa Module: Collect/JRC """ # import general python modules import os import numpy as np import shutil # Water Accounting modules import wa.General.raster_conversio...
37.864322
117
0.603583
7954d48729c7910a3dd39b88b9dc6690453eb42b
816
py
Python
tests/test_examples/test_result/test_result_pattern_matching.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
null
null
null
tests/test_examples/test_result/test_result_pattern_matching.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
92
2022-01-03T01:14:21.000Z
2022-03-30T00:32:09.000Z
tests/test_examples/test_result/test_result_pattern_matching.py
thepabloaguilar/returns
5fe76feb9cfd4d9535306a2da0b1dded25fd29f6
[ "BSD-2-Clause" ]
null
null
null
from returns.result import Failure, Success, safe @safe def div(first_number: int, second_number: int) -> int: return first_number // second_number match div(1, 0): # Matches if the result stored inside `Success` is `10` case Success(10): print('Result is "10"') # Same as above but using ma...
28.137931
80
0.665441
7954d596c754744a3b7737456a9ca3340506c492
170
py
Python
katas/kyu_7/some_circles.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_7/some_circles.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_7/some_circles.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
from math import pi OUTPUT = 'We have this much circle: {:.0f}'.format def sum_circles(*args): return OUTPUT(sum(pi * (diameter / 2.0) ** 2 for diameter in args))
21.25
71
0.664706
7954d596d17d7202cbede7b05191922d40a8bf8d
178
py
Python
modularodm/signals.py
felliott/modular-odm
8a34891892b8af69b21fdc46701c91763a5c1cf9
[ "Apache-2.0" ]
4
2018-09-21T18:57:03.000Z
2020-10-19T05:38:14.000Z
modularodm/signals.py
cos-archives/modular-odm
8a34891892b8af69b21fdc46701c91763a5c1cf9
[ "Apache-2.0" ]
null
null
null
modularodm/signals.py
cos-archives/modular-odm
8a34891892b8af69b21fdc46701c91763a5c1cf9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import blinker signals = blinker.Namespace() load = signals.signal('load') before_save = signals.signal('before_save') save = signals.signal('save')
14.833333
43
0.691011
7954d6f484b4e501cff9d380db43252caa0e329c
5,167
py
Python
tests/compiler/dataflow/test_model_relations.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
6
2021-03-09T10:24:02.000Z
2022-01-16T03:52:11.000Z
tests/compiler/dataflow/test_model_relations.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
1,319
2020-12-18T08:52:29.000Z
2022-03-31T18:17:32.000Z
tests/compiler/dataflow/test_model_relations.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
4
2021-03-03T15:36:50.000Z
2022-03-11T11:41:51.000Z
""" Copyright 2020 Inmanta 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 ...
20.105058
120
0.628605
7954d73f446c343c4c0fbf1e55bf7095f3d52925
5,588
py
Python
ALGO_BreadthFirstSearch.py
divergent63/DataStructureAlgorithms
1e378a31beb6ac1b333b560f0bfe2a3daeef7be2
[ "Apache-2.0" ]
null
null
null
ALGO_BreadthFirstSearch.py
divergent63/DataStructureAlgorithms
1e378a31beb6ac1b333b560f0bfe2a3daeef7be2
[ "Apache-2.0" ]
null
null
null
ALGO_BreadthFirstSearch.py
divergent63/DataStructureAlgorithms
1e378a31beb6ac1b333b560f0bfe2a3daeef7be2
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import math import DST_Graph import DST_Queue # 词梯问题 def BuildWordGraph(file): with open(file) as f: word_data = f.readlines() buckets = {} for line in word_data: for i in range(len(line)-1): bucket = line[:i] + '_' + line[i+1:] if bucket no...
34.073171
123
0.535612
7954d8d2ddc97a571c7bfe05ddb0799eca64b525
20,642
py
Python
tfx/orchestration/experimental/core/async_pipeline_task_gen_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1
2021-08-22T21:10:48.000Z
2021-08-22T21:10:48.000Z
tfx/orchestration/experimental/core/async_pipeline_task_gen_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
5
2020-07-14T10:14:34.000Z
2020-09-03T01:35:09.000Z
tfx/orchestration/experimental/core/async_pipeline_task_gen_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1
2020-12-13T22:07:53.000Z
2020-12-13T22:07:53.000Z
# Copyright 2020 Google LLC. 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 a...
42.212679
89
0.734425
7954d8eb867e6b05e58aeb637ab70133f64edc4a
3,004
py
Python
tensorflow_gan/examples/self_attention_estimator/discriminator_test.py
sanidhyamangal/gan
540ab76c04b5ad80cefa068e0f349b80ea4decb1
[ "Apache-2.0" ]
1
2022-01-05T11:48:21.000Z
2022-01-05T11:48:21.000Z
tensorflow_gan/examples/self_attention_estimator/discriminator_test.py
HabibMrad/gan-1
6a2bf12f968d0a913e8040121edc8bb6e0680a08
[ "Apache-2.0" ]
1
2021-02-24T00:51:29.000Z
2021-02-24T00:51:29.000Z
tensorflow_gan/examples/self_attention_estimator/discriminator_test.py
HabibMrad/gan-1
6a2bf12f968d0a913e8040121edc8bb6e0680a08
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow GAN Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
38.512821
79
0.721039
7954d9d64c2672f636daa3aef67464d8a108a6fd
2,369
py
Python
Optimus_5Prime/dataloader.py
Luma-1994/lama
60d802e2e4cce789f03eea11b038212ba5f7fd1b
[ "MIT" ]
137
2018-03-13T17:44:46.000Z
2022-02-18T06:07:45.000Z
Optimus_5Prime/dataloader.py
Luma-1994/lama
60d802e2e4cce789f03eea11b038212ba5f7fd1b
[ "MIT" ]
111
2018-03-14T08:16:35.000Z
2022-03-04T18:26:41.000Z
Optimus_5Prime/dataloader.py
Luma-1994/lama
60d802e2e4cce789f03eea11b038212ba5f7fd1b
[ "MIT" ]
57
2018-03-14T08:39:24.000Z
2022-02-01T15:56:04.000Z
import gffutils import pybedtools from kipoi.data import Dataset from kipoiseq.transforms import OneHot from kipoiseq.extractors import FastaStringExtractor from kipoi.metadata import GenomicRanges def get_upstream(feature, n_bases): """Get the upstream interval of the genomic feature Args: feature: gff...
35.893939
92
0.590967
7954d9eed3f9d91d444cc16f6f724caf872c0435
1,518
py
Python
pysrc/lecture.py
kamnxt/campuscircle
8b5c2aa823709472fc501174626a7089fdcc1743
[ "MIT" ]
null
null
null
pysrc/lecture.py
kamnxt/campuscircle
8b5c2aa823709472fc501174626a7089fdcc1743
[ "MIT" ]
null
null
null
pysrc/lecture.py
kamnxt/campuscircle
8b5c2aa823709472fc501174626a7089fdcc1743
[ "MIT" ]
null
null
null
import event from utils import get_last_part_of_string_filtered, get_time_from_period class Lecture(event.Event): def __init__(self, dictform): self._dictform = dictform def to_jsonable(self): return self._dictform @classmethod def from_html(cls, date, html): split = html.tex...
30.979592
95
0.538208
7954db89b7afa3d5db0bed4c5263e2822789afa6
5,139
py
Python
ansible/lib/ansible/modules/extras/network/citrix/netscaler.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/network/citrix/netscaler.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/network/citrix/netscaler.py
kiv-box/kafka
debec1c4bc8c43776070ee447a53b55fef42bd52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Ansible module to manage Citrix NetScaler entities (c) 2013, Nandor Sivok <nandor@gawker.com> This file is part of Ansible Ansible is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softwa...
26.765625
129
0.643316
7954dc2dac231e61c25b29da283258592517e0ff
8,427
py
Python
back-end/object_detection/trainer_test.py
scorelab/Elphas
be3e3906fa1f69155dc3f61f5c0bf21568e712c9
[ "Apache-2.0" ]
59
2018-09-23T09:34:24.000Z
2020-03-10T04:31:27.000Z
back-end/object_detection/trainer_test.py
scorelab/Elphas
be3e3906fa1f69155dc3f61f5c0bf21568e712c9
[ "Apache-2.0" ]
5
2018-10-02T14:49:12.000Z
2020-07-14T02:54:30.000Z
back-end/object_detection/trainer_test.py
scorelab/Elphas
be3e3906fa1f69155dc3f61f5c0bf21568e712c9
[ "Apache-2.0" ]
58
2018-09-23T10:31:47.000Z
2021-11-08T11:34:40.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
38.131222
85
0.628219
7954dc8cfc36b35bf3e7d164bf39e6d187d97ff4
1,834
py
Python
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/operation.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/operation.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/operation.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.68
76
0.610142
7954dd3647c450f2a05a6d8dfbc85c0882bfa594
354
py
Python
Code.py
Sup3Legacy/TIPE
7e01cef869183c4d609c45d5fcf0bb371a9579f5
[ "BSD-3-Clause" ]
null
null
null
Code.py
Sup3Legacy/TIPE
7e01cef869183c4d609c45d5fcf0bb371a9579f5
[ "BSD-3-Clause" ]
null
null
null
Code.py
Sup3Legacy/TIPE
7e01cef869183c4d609c45d5fcf0bb371a9579f5
[ "BSD-3-Clause" ]
1
2020-06-28T06:07:17.000Z
2020-06-28T06:07:17.000Z
import os from PIL.Image import * def image(): image = open("TR.jpg") print(image.format, image.size, image.mode) (x, y) = image.size for i in range(x): for j in range(y): (r, g, b) = image.getpixel((i, j)) image.putpixel((i, j), (2 * r, 2 * g, 2 * b)) Ima...
25.285714
58
0.511299
7954dd78e94e5ae2af66831564c1c8a6c7623ca8
1,301
py
Python
No_0172_Factorial Trailing Zeroes/factorial_trailing_zeroes_iterative.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
32
2020-01-05T13:37:16.000Z
2022-03-26T07:27:09.000Z
No_0172_Factorial Trailing Zeroes/factorial_trailing_zeroes_iterative.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
null
null
null
No_0172_Factorial Trailing Zeroes/factorial_trailing_zeroes_iterative.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
8
2020-06-18T16:17:27.000Z
2022-03-15T23:58:18.000Z
''' Description: Given an integer n, return the number of trailing zeroes in n!. Example 1: Input: 3 Output: 0 Explanation: 3! = 6, no trailing zero. Example 2: Input: 5 Output: 1 Explanation: 5! = 120, one trailing zero. ''' # Hint: # Trailing 0s are generated from the product of 5 x 2 pair. # And the bounding ...
16.896104
97
0.595696
7954dea37f6e9a6fb91fbb15629b0d1e379f177e
223,668
py
Python
venv/lib/python3.8/site-packages/plotly/basedatatypes.py
SvtFilatov/soccer-predict-prices
b003ebd7c3657688790183ef7d719c42290c11b9
[ "MIT" ]
10
2021-05-31T07:18:08.000Z
2022-03-19T09:20:11.000Z
venv/lib/python3.8/site-packages/plotly/basedatatypes.py
SvtFilatov/soccer-predict-prices
b003ebd7c3657688790183ef7d719c42290c11b9
[ "MIT" ]
1
2021-08-03T12:23:01.000Z
2021-08-10T08:35:22.000Z
venv/lib/python3.8/site-packages/plotly/basedatatypes.py
SvtFilatov/soccer-predict-prices
b003ebd7c3657688790183ef7d719c42290c11b9
[ "MIT" ]
3
2021-01-31T16:40:52.000Z
2021-08-29T18:32:34.000Z
from __future__ import absolute_import import collections from collections import OrderedDict import re import six from six import string_types import warnings from contextlib import contextmanager from copy import deepcopy, copy import itertools from functools import reduce from _plotly_utils.utils import ( _nat...
35.463453
101
0.560317
7954dec9730d49ebd5d8f8c135f57f0c8a984d3f
769
py
Python
neat/__init__.py
hugoaboud/neat-python
73618fdfb393df8b6816213547b2ade419151afc
[ "BSD-3-Clause" ]
3
2022-01-30T19:31:26.000Z
2022-03-14T01:32:28.000Z
neat/__init__.py
hugoaboud/neat-python
73618fdfb393df8b6816213547b2ade419151afc
[ "BSD-3-Clause" ]
null
null
null
neat/__init__.py
hugoaboud/neat-python
73618fdfb393df8b6816213547b2ade419151afc
[ "BSD-3-Clause" ]
null
null
null
"""A NEAT (NeuroEvolution of Augmenting Topologies) implementation""" import neat.nn as nn import neat.ctrnn as ctrnn import neat.iznn as iznn import neat.nsga2 as nsga2 import neat.distributed as distributed from neat.config import Config from neat.population import Population, CompleteExtinctionException from neat.g...
38.45
69
0.863459
7954df0dc39e2e805a2b19212fb5304428672822
3,240
py
Python
Exareme-Docker/src/exareme/exareme-tools/madis/src/functions/vtable/whilevt.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/functions/vtable/whilevt.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/functions/vtable/whilevt.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
""" .. function:: whilevt([from:0,[to:10, step:1]], query) Returns a range of integer numbers while a query's result is true. :Returned table schema: - *value* int Number in range. :from: Number to begin from. Default is 0 :to: Number to reach. Default is 10. The *to* number is not returned :step...
19.756098
84
0.493519
7954df11ecda4051159df278e22d495a860d0422
93
py
Python
logindemo/apps.py
KONE-XAD/django_project
4d1a3a1eb59ab8dc43a5554bffc4d172104bf1cf
[ "Apache-2.0" ]
1
2020-12-30T12:01:05.000Z
2020-12-30T12:01:05.000Z
logindemo/apps.py
KONE-XAD/django_project
4d1a3a1eb59ab8dc43a5554bffc4d172104bf1cf
[ "Apache-2.0" ]
null
null
null
logindemo/apps.py
KONE-XAD/django_project
4d1a3a1eb59ab8dc43a5554bffc4d172104bf1cf
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class LogindemoConfig(AppConfig): name = 'logindemo'
15.5
33
0.763441
7954df651d958eafb150fa055879f8594a99af0e
290
py
Python
scrapbook/items.py
ayushnagar123/scrapbook
b081fcac9a7826ff485ae0a580fb33ba8fa48967
[ "MIT" ]
1
2020-12-19T19:04:41.000Z
2020-12-19T19:04:41.000Z
scrapbook/items.py
ayushnagar123/scrapbook
b081fcac9a7826ff485ae0a580fb33ba8fa48967
[ "MIT" ]
null
null
null
scrapbook/items.py
ayushnagar123/scrapbook
b081fcac9a7826ff485ae0a580fb33ba8fa48967
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class ScrapbookItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
19.333333
53
0.689655
7954e078efe64e089051d22b81bd2027d8aabdd3
105
py
Python
dataduct/__init__.py
recurly/dataduct
29aec3526e170e5ad3b59a135780e72b69209f0b
[ "Apache-2.0" ]
3
2017-12-29T11:26:15.000Z
2022-02-11T16:44:28.000Z
dataduct/__init__.py
EverFi/dataduct
9833ac57fece80509c68cb29d14895874caa9552
[ "Apache-2.0" ]
7
2017-09-21T23:25:24.000Z
2021-03-29T21:46:45.000Z
dataduct/__init__.py
recurly/dataduct
29aec3526e170e5ad3b59a135780e72b69209f0b
[ "Apache-2.0" ]
null
null
null
"""Welcome to DataDuct """ __version__ = '0.5.0' __import__('pkg_resources').declare_namespace(__name__)
21
55
0.752381
7954e0f8cc879bb2d2caeac53b8f707f4fc7a24b
831
py
Python
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/bpy/ops/workspace.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/bpy/ops/workspace.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/bpy/ops/workspace.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
def add(): '''Add a new workspace by duplicating the current one or appending one from the user configuration ''' pass def append_activate(idname="", filepath=""): '''Append a workspace and make it the active one in the current window :param idname: Identifier, Name of the workspace to append...
16.294118
103
0.632972
7954e366cf859910a653d2a8531948cc692c9fd3
4,079
py
Python
data/p3BR/R2/benchmark/startCirq308.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startCirq308.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startCirq308.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=62 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
39.990196
77
0.683746
7954e3dcd0a02351b155eb963626da7cc34ef7bd
11,288
py
Python
Bayesian/MKM_corrected.py
Shyamdeokr/Bayesian_CO_oxidation
3d58c1ad967522266609259eea667bff55cfef0f
[ "MIT" ]
null
null
null
Bayesian/MKM_corrected.py
Shyamdeokr/Bayesian_CO_oxidation
3d58c1ad967522266609259eea667bff55cfef0f
[ "MIT" ]
null
null
null
Bayesian/MKM_corrected.py
Shyamdeokr/Bayesian_CO_oxidation
3d58c1ad967522266609259eea667bff55cfef0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Microkinetic Model for CO Oxidation (Pd), (PdO) and (PdO2) + O2 ads - corrected for DFT energetics and barriers # Reactions - 1 - 8 # # ![image.png](attachment:image.png) # Reactions 6' - 11 # ![image.png](attachment:image.png) # Reactions 12-14 # ![image.png](attachment:i...
35.721519
181
0.536588
7954e4238d1958fc0a3c74febf2243695b29ad56
2,563
py
Python
python/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
python/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
python/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
from random import randint import numpy as np import random class BehaviorPolicy: def __init__(self): self.lastAction = 0 self.i = 0 self.ACTIONS = { 'forward': "move 1", 'turn_left': "turn -1", 'turn_right': "turn 1", 'extend_hand':"move 0" } ''' self.ACTIONS = { ...
26.153061
112
0.62778
7954e4b7437835e9b134957a4e097830a9031d2a
2,134
py
Python
metrics/metrics.py
ksboy/ccks3
c500af33b6b879751ea04ce5fab456b01db9868c
[ "Apache-2.0" ]
1
2021-07-14T06:30:20.000Z
2021-07-14T06:30:20.000Z
metrics/metrics.py
ksboy/ccks3
c500af33b6b879751ea04ce5fab456b01db9868c
[ "Apache-2.0" ]
null
null
null
metrics/metrics.py
ksboy/ccks3
c500af33b6b879751ea04ce5fab456b01db9868c
[ "Apache-2.0" ]
null
null
null
def precision_score(batch_labels, batch_preds): assert len(batch_labels) == len(batch_preds) nb_correct, nb_pred = 0, 0 for labels, preds in zip(batch_labels, batch_preds): for label in labels: if label in preds: nb_correct += 1 nb_pred += len(preds) p = nb_co...
29.638889
56
0.592315
7954e54b7f90e1996e0825e843eeb686206c43af
1,640
py
Python
src/atexits.py
necessary129/IRC-Lib
a291d236a6fdcc85779a65b205efe2f5661230bd
[ "BSD-2-Clause" ]
null
null
null
src/atexits.py
necessary129/IRC-Lib
a291d236a6fdcc85779a65b205efe2f5661230bd
[ "BSD-2-Clause" ]
null
null
null
src/atexits.py
necessary129/IRC-Lib
a291d236a6fdcc85779a65b205efe2f5661230bd
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2015 noteness # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, ...
40
79
0.716463
7954e5ff05a05f799796cff9f3bb5849f82851d0
14,216
py
Python
python_modules/dagster/dagster/core/definitions/sensor.py
soyelherein/dagster
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/sensor.py
soyelherein/dagster
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/sensor.py
soyelherein/dagster
f969a3b24e66e61f91e3a7beaedbd2a87f86f85d
[ "Apache-2.0" ]
null
null
null
import inspect import warnings from contextlib import ExitStack from typing import Any, Callable, Generator, List, NamedTuple, Optional, Union, cast from dagster import check from dagster.core.errors import DagsterInvalidInvocationError, DagsterInvariantViolationError from dagster.core.instance import DagsterInstance ...
38.010695
105
0.662704
7954e6066e5a19cf56e5e8b8a59be50725a60bdc
5,454
py
Python
spambayes/chi2.py
nascheme/spambayes-core
aa2f6983c936af86c70953c93b276831e5d19429
[ "PSF-2.0" ]
null
null
null
spambayes/chi2.py
nascheme/spambayes-core
aa2f6983c936af86c70953c93b276831e5d19429
[ "PSF-2.0" ]
null
null
null
spambayes/chi2.py
nascheme/spambayes-core
aa2f6983c936af86c70953c93b276831e5d19429
[ "PSF-2.0" ]
null
null
null
from __future__ import print_function import math as _math import random def chi2Q(x2, v, exp=_math.exp, min=min): """Return prob(chisq >= x2, with v degrees of freedom). v must be even. """ assert v & 1 == 0 # XXX If x2 is very large, exp(-m) will underflow to 0. m = x2 / 2.0 sum = term ...
25.726415
79
0.506051
7954e6d79e7f2c969e9da72997e8aedbf6ef83fa
2,031
py
Python
akshare/air/air_hebei.py
dindom999/akshare
95b38d3430c71637c3ee9ba799618c20afe4a010
[ "MIT" ]
1
2020-05-14T13:20:48.000Z
2020-05-14T13:20:48.000Z
akshare/air/air_hebei.py
dindom999/akshare
95b38d3430c71637c3ee9ba799618c20afe4a010
[ "MIT" ]
1
2020-09-07T11:18:55.000Z
2020-09-07T11:18:55.000Z
akshare/air/air_hebei.py
dindom999/akshare
95b38d3430c71637c3ee9ba799618c20afe4a010
[ "MIT" ]
2
2020-09-23T08:50:14.000Z
2020-09-28T09:57:07.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2020/4/29 12:33 Desc: 河北省空气质量预报信息发布系统 http://110.249.223.67/publish/ 每日 17 时发布 等级划分 1. 空气污染指数为0-50,空气质量级别为一级,空气质量状况属于优。此时,空气质量令人满意,基本无空气污染,各类人群可正常活动。 2. 空气污染指数为51-100,空气质量级别为二级,空气质量状况属于良。此时空气质量可接受,但某些污染物可能对极少数异常敏感人群健康有较弱影响,建议极少数异常敏感人群应减少户外活动。 3. 空气污染指数为101-150,空气质量...
39.057692
120
0.716396
7954e82f3d1d2912222e367392c4e5fc6f9ca09f
1,835
py
Python
learned_optimization/tasks/parametric/image_mlp_ae_test.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
70
2021-12-16T07:12:11.000Z
2022-03-31T19:13:36.000Z
learned_optimization/tasks/parametric/image_mlp_ae_test.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
10
2021-12-29T10:03:37.000Z
2022-03-22T15:59:55.000Z
learned_optimization/tasks/parametric/image_mlp_ae_test.py
Sohl-Dickstein/learned_optimization
cd929359a51d09444665021387c058aac11b63ba
[ "Apache-2.0" ]
5
2021-12-16T04:52:35.000Z
2022-03-22T03:45:31.000Z
# coding=utf-8 # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
34.622642
74
0.777112
7954e96bfda7f3778511b6705774b7981004f354
8,061
py
Python
docs/shared_bindings_matrix.py
Neradoc/circuitpython
932131b4ff4b95066a872b5b299a84e80b7c45d3
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
3,010
2017-01-07T23:43:33.000Z
2022-03-31T06:02:59.000Z
docs/shared_bindings_matrix.py
Neradoc/circuitpython
932131b4ff4b95066a872b5b299a84e80b7c45d3
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
4,478
2017-01-06T01:35:02.000Z
2022-03-31T23:03:27.000Z
docs/shared_bindings_matrix.py
Neradoc/circuitpython
932131b4ff4b95066a872b5b299a84e80b7c45d3
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
1,149
2017-01-09T00:35:23.000Z
2022-03-31T21:24:29.000Z
# The MIT License (MIT) # # SPDX-FileCopyrightText: Copyright (c) 2019 Michael Schroeder # # 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 th...
34.596567
110
0.639747
7954e9fb36a62654dd195f865961ef9645f9f960
6,622
py
Python
livesettings/functions.py
craigds/django-livesettings
134bc0644ada8e657f724fc65b4161066e749230
[ "BSD-3-Clause" ]
2
2015-12-18T06:17:45.000Z
2016-10-18T15:59:24.000Z
livesettings/functions.py
craigds/django-livesettings
134bc0644ada8e657f724fc65b4161066e749230
[ "BSD-3-Clause" ]
null
null
null
livesettings/functions.py
craigds/django-livesettings
134bc0644ada8e657f724fc65b4161066e749230
[ "BSD-3-Clause" ]
null
null
null
from django.utils.translation import ugettext from livesettings import values from livesettings.exceptions import SettingNotSet from livesettings.utils import is_string_like import logging import warnings log = logging.getLogger('configuration') _NOTSET = object() class ConfigurationSettings(object): _instance ...
28.420601
147
0.62232
7954ea78837f88af5afcabfd5963c5fc9ffc510b
4,624
py
Python
nuitka/codegen/LoaderCodes.py
dmikushin/Nuitka
1e7e05257b9b39ec74be807bfdb0dec11a68e1ed
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/LoaderCodes.py
dmikushin/Nuitka
1e7e05257b9b39ec74be807bfdb0dec11a68e1ed
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/LoaderCodes.py
dmikushin/Nuitka
1e7e05257b9b39ec74be807bfdb0dec11a68e1ed
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
34.766917
88
0.647708
7954ec7885d6a6baddf325f9507fee8e996b0c7e
956
py
Python
dynabuffers-python/dynabuffers/ast/datatype/ArrayType.py
leftshiftone/dynabuffers
c3e94c56989be3df87b50b8d9e17d1ea86199ede
[ "Apache-2.0" ]
2
2019-10-28T12:28:01.000Z
2020-07-07T12:25:40.000Z
dynabuffers-python/dynabuffers/ast/datatype/ArrayType.py
leftshiftone/dynabuffers
c3e94c56989be3df87b50b8d9e17d1ea86199ede
[ "Apache-2.0" ]
1
2021-12-21T07:35:22.000Z
2021-12-21T07:35:22.000Z
dynabuffers-python/dynabuffers/ast/datatype/ArrayType.py
leftshiftone/dynabuffers
c3e94c56989be3df87b50b8d9e17d1ea86199ede
[ "Apache-2.0" ]
1
2020-03-19T09:19:43.000Z
2020-03-19T09:19:43.000Z
from dynabuffers.api.ISerializable import ISerializable from dynabuffers.ast.datatype.ByteType import ByteType class ArrayTypeOptions: def __init__(self, datatype:ISerializable): self.datatype = datatype class ArrayType(ISerializable): def __init__(self, options): self.options = options ...
28.969697
79
0.666318
7954edb21b1eb909fa766e429f6a0cf59945a6e5
44,248
py
Python
tools/idl_parser/idl_parser.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/idl_parser/idl_parser.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/idl_parser/idl_parser.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-03-07T14:20:02.000Z
2021-03-07T14:20:02.000Z
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Parser for Web IDL.""" # # IDL Parser # # The parser uses the PLY yacc library to build a set of parsing rules based # on Web I...
33.244177
110
0.605406
7954edb31ecff2dab11975302a5c1f61e65dedba
57,420
py
Python
src/trunk/apps/fdsnws/fdsnws/gnupg.py
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
94
2015-02-04T13:57:34.000Z
2021-11-01T15:10:06.000Z
src/trunk/apps/fdsnws/fdsnws/gnupg.py
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
233
2015-01-28T15:16:46.000Z
2021-08-23T11:31:37.000Z
src/trunk/apps/fdsnws/fdsnws/gnupg.py
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
95
2015-02-13T15:53:30.000Z
2021-11-02T14:54:54.000Z
""" A wrapper for the 'gpg' command:: Portions of this module are derived from A.M. Kuchling's well-designed GPG.py, using Richard Jones' updated version 1.3, which can be found in the pycrypto CVS repository on Sourceforge: http://pycrypto.cvs.sourceforge.net/viewvc/pycrypto/gpg/GPG.py This module is *not* forward-...
36.067839
148
0.566388
7954f1110e7072d2caf60c06fbd029edc261d2c8
29,069
bzl
Python
tensorflow/lite/build_def.bzl
Halo9Pan/_tensorflow
85c8b2a817f95a3e979ecd1ed95bff1dc1335cff
[ "Apache-2.0" ]
74
2020-07-06T17:11:39.000Z
2022-01-28T06:31:28.000Z
tensorflow/lite/build_def.bzl
Halo9Pan/_tensorflow
85c8b2a817f95a3e979ecd1ed95bff1dc1335cff
[ "Apache-2.0" ]
9
2020-10-13T23:25:29.000Z
2022-02-10T06:54:48.000Z
tensorflow/lite/build_def.bzl
Halo9Pan/_tensorflow
85c8b2a817f95a3e979ecd1ed95bff1dc1335cff
[ "Apache-2.0" ]
12
2020-07-08T07:27:17.000Z
2021-12-27T08:54:27.000Z
"""Generate Flatbuffer binary from json.""" load( "//tensorflow:tensorflow.bzl", "clean_dep", "tf_binary_additional_srcs", "tf_cc_shared_object", "tf_cc_test", ) load("//tensorflow/lite/java:aar_with_jni.bzl", "aar_with_jni") load("@build_bazel_rules_android//android:rules.bzl", "android_library") ...
32.883484
133
0.601225
7954f1bbc29135d85c0c2ea93ee80960217d90da
2,220
py
Python
gmid2/scripts/jg_bte_bw.py
junkyul/gmid2-public
363472b8b69212dd6a9dac61d3e5d23936a5a6d2
[ "MIT" ]
null
null
null
gmid2/scripts/jg_bte_bw.py
junkyul/gmid2-public
363472b8b69212dd6a9dac61d3e5d23936a5a6d2
[ "MIT" ]
null
null
null
gmid2/scripts/jg_bte_bw.py
junkyul/gmid2-public
363472b8b69212dd6a9dac61d3e5d23936a5a6d2
[ "MIT" ]
1
2020-12-28T20:06:37.000Z
2020-12-28T20:06:37.000Z
PRJ_PATH = "/home/junkyul/conda/gmid2" import sys sys.path.append(PRJ_PATH) import os import time from pprint import PrettyPrinter pp = PrettyPrinter(indent=4) from gmid2.global_constants import * from gmid2.basics.uai_files import read_limid, read_vo, write_vo from gmid2.basics.undirected_network import PrimalGraph,...
34.153846
112
0.682883
7954f3c7d0f872e8ed360755da5dd9132b698a31
840
py
Python
backend/posts/migrations_back/0003_auto_20170303_2103.py
stevethompsonstar/django-react-blog
88af926454901c826acc9e2996addd0d53b0626a
[ "MIT" ]
592
2017-03-07T04:29:08.000Z
2020-09-21T00:36:58.000Z
backend/posts/migrations_back/0003_auto_20170303_2103.py
stevethompsonstar/django-react-blog
88af926454901c826acc9e2996addd0d53b0626a
[ "MIT" ]
8
2017-03-08T01:22:36.000Z
2020-08-20T15:45:42.000Z
backend/posts/migrations_back/0003_auto_20170303_2103.py
stevethompsonstar/django-react-blog
88af926454901c826acc9e2996addd0d53b0626a
[ "MIT" ]
102
2017-03-07T05:42:47.000Z
2020-08-28T20:02:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-03 21:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20170301_1328'), ] operations = [ migrations.CreateModel...
27.096774
114
0.55119
7954f3ecda5067f6e523c31c01f28a2b51d2eab0
520
py
Python
rookie/users/admin.py
rookie0806/ajounice
eb1780a8f94d847cfcfe83f4b555729ab9f9a44a
[ "MIT" ]
null
null
null
rookie/users/admin.py
rookie0806/ajounice
eb1780a8f94d847cfcfe83f4b555729ab9f9a44a
[ "MIT" ]
16
2020-06-05T19:35:23.000Z
2022-03-08T22:33:45.000Z
rookie/users/admin.py
rookie0806/ajounice
eb1780a8f94d847cfcfe83f4b555729ab9f9a44a
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from rookie.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm add_f...
30.588235
91
0.748077
7954f46899f49f21d66ade05a31fc9161694ded1
4,006
py
Python
pix2pix/options/test_options.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pix2pix/options/test_options.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pix2pix/options/test_options.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
from .base_options import BaseOptions class TestOptions(BaseOptions): """This class includes test options. It also includes shared options defined in BaseOptions. """ def initialize(self, parser): parser = BaseOptions.initialize(self, parser) # define shared options parser.add_argum...
57.228571
108
0.590614
7954f51c6ff43641a67cf2179b2a47727c9213a2
23,340
py
Python
src/spectrum.py
eirikgje/c3pp
0efe2cba7960131509d5d968ac825c4f1dbbc552
[ "MIT" ]
null
null
null
src/spectrum.py
eirikgje/c3pp
0efe2cba7960131509d5d968ac825c4f1dbbc552
[ "MIT" ]
null
null
null
src/spectrum.py
eirikgje/c3pp
0efe2cba7960131509d5d968ac825c4f1dbbc552
[ "MIT" ]
null
null
null
from matplotlib import rcParams, rc import matplotlib.patheffects as path_effects import matplotlib.ticker as ticker import matplotlib.pyplot as plt from cycler import cycler from tqdm import trange, tqdm import numpy as np import healpy as hp import sys import math from brokenaxes import brokenaxes import src.tools a...
49.449153
274
0.527763
7954f58b233c4cfa79c3d2bea27230f16e89f73e
9,815
py
Python
src/olympia/lib/es/tests/test_commands.py
rochisha0/addons-server
55eb6ccee7ec075cf8f5ed25095c123410186532
[ "BSD-3-Clause" ]
1
2021-11-27T15:47:47.000Z
2021-11-27T15:47:47.000Z
src/olympia/lib/es/tests/test_commands.py
rochisha0/addons-server
55eb6ccee7ec075cf8f5ed25095c123410186532
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/lib/es/tests/test_commands.py
rochisha0/addons-server
55eb6ccee7ec075cf8f5ed25095c123410186532
[ "BSD-3-Clause" ]
1
2021-11-24T07:29:55.000Z
2021-11-24T07:29:55.000Z
import re import threading import time import io from unittest import mock from django.conf import settings from django.core import management from django.db import connection from django.test.testcases import TransactionTestCase from celery import group, task from celery.canvas import _chain from olympia.amo.tests ...
38.641732
79
0.645339
7954f7b2c5c44c2cb5ca833a258c4d7d9e60f895
1,927
py
Python
metaopt/cifar/main_quotient.py
vuiseng9/OHO
1c0bdd10502317f41f717deb317d6dcb04b3c6bf
[ "MIT" ]
8
2021-02-24T19:20:30.000Z
2021-08-11T21:25:54.000Z
metaopt/cifar/main_quotient.py
vuiseng9/OHO
1c0bdd10502317f41f717deb317d6dcb04b3c6bf
[ "MIT" ]
null
null
null
metaopt/cifar/main_quotient.py
vuiseng9/OHO
1c0bdd10502317f41f717deb317d6dcb04b3c6bf
[ "MIT" ]
2
2021-04-13T00:54:58.000Z
2021-08-10T21:08:30.000Z
import os, sys, math, argparse, time import torch import torch.optim as optim from torch.autograd import Variable import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader from torchvision import datasets, transforms from copy import copy import numpy as np import matplotlib.pyplot as plt from itert...
28.761194
119
0.679294
7954f7ce4f27753d1a7bef49658650263d9c9fa5
3,333
py
Python
pyslowloris/attack.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
75
2017-06-15T05:58:02.000Z
2022-03-31T22:59:25.000Z
pyslowloris/attack.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
8
2017-08-25T04:14:19.000Z
2021-09-10T06:21:33.000Z
pyslowloris/attack.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
32
2017-03-22T22:52:26.000Z
2022-03-07T15:53:01.000Z
""" MIT License Copyright (c) 2020 Maxim Krivich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
37.449438
79
0.658266
7954f82d239e542282c5bffa346183deae986f0d
16,259
py
Python
offline_regression.py
alankarj/bioasq_l2r
b11b7a91a95f8086df371b678058a2237f992eb3
[ "Apache-2.0" ]
null
null
null
offline_regression.py
alankarj/bioasq_l2r
b11b7a91a95f8086df371b678058a2237f992eb3
[ "Apache-2.0" ]
null
null
null
offline_regression.py
alankarj/bioasq_l2r
b11b7a91a95f8086df371b678058a2237f992eb3
[ "Apache-2.0" ]
null
null
null
""" Offline Supervised Regression Model Train and Testing Usage: offline_regression.py train [options] offline_regression.py baseline [options] offline_regression.py test --model-path=<file> [options] offline_regression.py example --model-path=<file> [options] Options: --data-dir=<file> Direc...
32.648594
219
0.658958
7954f847f70a2a541f9dd119f5f6022818422d87
261
py
Python
test/case/export_mysql_dumper.py
mawentao007/reading_grab
a8b64d235d60e5c895e70f59739888f6748d4407
[ "MIT" ]
null
null
null
test/case/export_mysql_dumper.py
mawentao007/reading_grab
a8b64d235d60e5c895e70f59739888f6748d4407
[ "MIT" ]
null
null
null
test/case/export_mysql_dumper.py
mawentao007/reading_grab
a8b64d235d60e5c895e70f59739888f6748d4407
[ "MIT" ]
null
null
null
from unittest import TestCase from test.util import get_temp_file from grab.export.mysql_dumper import MysqlCSVDumper class MysqlCSVDumperTestCase(TestCase): def test_constructor(self): path = get_temp_file() dumper = MysqlCSVDumper(path)
26.1
51
0.773946
7954f86cdba0cb1c520f3ab77c0bd5d1225abfdc
18,900
py
Python
superset/common/query_context_processor.py
iudeen/superset
d304849b46b39bb6a261b735b7ca658962bc31e0
[ "Apache-2.0" ]
null
null
null
superset/common/query_context_processor.py
iudeen/superset
d304849b46b39bb6a261b735b7ca658962bc31e0
[ "Apache-2.0" ]
5
2022-03-25T19:48:31.000Z
2022-03-25T20:02:59.000Z
superset/common/query_context_processor.py
iudeen/superset
d304849b46b39bb6a261b735b7ca658962bc31e0
[ "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...
38.729508
88
0.617725
7954f9dd58bf9eb5823a0fd415d17fe2a88be583
3,434
py
Python
mbed-client/factory-configurator-client/TESTS/generate-test-data/generate_test_utils.py
ghsecuritylab/mini-client
955e1d213ec0784101061075932dbbac97d98cd9
[ "Apache-2.0" ]
null
null
null
mbed-client/factory-configurator-client/TESTS/generate-test-data/generate_test_utils.py
ghsecuritylab/mini-client
955e1d213ec0784101061075932dbbac97d98cd9
[ "Apache-2.0" ]
null
null
null
mbed-client/factory-configurator-client/TESTS/generate-test-data/generate_test_utils.py
ghsecuritylab/mini-client
955e1d213ec0784101061075932dbbac97d98cd9
[ "Apache-2.0" ]
1
2020-03-06T22:23:26.000Z
2020-03-06T22:23:26.000Z
# ---------------------------------------------------------------------------- # Copyright 2016-2017 ARM 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...
33.666667
116
0.637158
7954fa17285bdad5ae5291499ec86a44ea1b2732
430
py
Python
tests/unit/ses/conftest.py
mixja/ses-custom-resources
1523c632fd7f4c4ef0e55533e8f06376186205d8
[ "MIT" ]
null
null
null
tests/unit/ses/conftest.py
mixja/ses-custom-resources
1523c632fd7f4c4ef0e55533e8f06376186205d8
[ "MIT" ]
null
null
null
tests/unit/ses/conftest.py
mixja/ses-custom-resources
1523c632fd7f4c4ef0e55533e8f06376186205d8
[ "MIT" ]
null
null
null
from importlib import reload import pytest @pytest.fixture def app(mocker): """ Fixture for node app """ # Patch environment variables mocker.patch.dict('os.environ', values=dict( MAX_WORKERS='4' )) from app import ses as app # Override app parameters with mocks here # app...
21.5
51
0.669767
7954fa504bb455cb739711aeb41b27121e4d9ddc
1,970
py
Python
src/goodbooks-10k/utils/evaluate.py
ds-wook/goodbooks-10k
26ec6256405b6e8ecd04d4bb80c063ea43b1fb8c
[ "Apache-2.0" ]
10
2021-01-29T09:21:28.000Z
2021-09-05T13:24:58.000Z
src/goodbooks-10k/utils/evaluate.py
ds-wook/goodbooks-10k
26ec6256405b6e8ecd04d4bb80c063ea43b1fb8c
[ "Apache-2.0" ]
null
null
null
src/goodbooks-10k/utils/evaluate.py
ds-wook/goodbooks-10k
26ec6256405b6e8ecd04d4bb80c063ea43b1fb8c
[ "Apache-2.0" ]
null
null
null
import six import math from typing import Dict, List class Evaluate: def __init__( self, recs: Dict[int, List[int]], gt: Dict[int, List[int]], topn: int = 100 ): self.recs = recs self.gt = gt self.topn = topn def _ndcg(self) -> float: Q, S = 0.0, 0.0 for u,...
29.402985
83
0.443655
7954faa5e93e168704286e6ca4a0418ae123332f
25,413
py
Python
fastai/data_block.py
wrrnwng/fastai
ccd3ec66d5e46c97ab99313b68d35a0d7dd4fb91
[ "Apache-2.0" ]
null
null
null
fastai/data_block.py
wrrnwng/fastai
ccd3ec66d5e46c97ab99313b68d35a0d7dd4fb91
[ "Apache-2.0" ]
null
null
null
fastai/data_block.py
wrrnwng/fastai
ccd3ec66d5e46c97ab99313b68d35a0d7dd4fb91
[ "Apache-2.0" ]
null
null
null
from .torch_core import * from .basic_data import * from .layers import * __all__ = ['ItemList', 'CategoryList', 'MultiCategoryList', 'MultiCategoryProcessor', 'LabelList', 'ItemLists', 'get_files', 'PreProcessor', 'LabelLists', 'FloatList', 'CategoryProcessor'] def _decode(df): return np.array([[df.co...
46.458867
141
0.649274
7954fb50a2b11e88542cf691174dc90a701b0b56
54,193
py
Python
runtime/python/Lib/pathlib.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
null
null
null
runtime/python/Lib/pathlib.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
null
null
null
runtime/python/Lib/pathlib.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
null
null
null
import fnmatch import functools import io import ntpath import os import posixpath import re import sys from _collections_abc import Sequence from errno import EINVAL, ENOENT, ENOTDIR, EBADF, ELOOP from operator import attrgetter from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISCHR, S_ISFIF...
34.212753
96
0.546491
7954fc0a9a70a4d486df33b06037f170a9aea005
167
py
Python
ypc/__init__.py
dbeley/youtube_playlist_converter
3dc28620095ec0f06934a346083386e5b2d308cf
[ "MIT" ]
18
2019-08-24T11:18:46.000Z
2021-11-16T12:47:10.000Z
ypc/__init__.py
dbeley/youtube_playlist_converter
3dc28620095ec0f06934a346083386e5b2d308cf
[ "MIT" ]
18
2019-06-28T04:27:05.000Z
2021-12-27T23:33:03.000Z
ypc/__init__.py
dbeley/youtube_playlist_converter
3dc28620095ec0f06934a346083386e5b2d308cf
[ "MIT" ]
2
2019-06-12T13:26:07.000Z
2021-07-13T20:42:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ convert spotify/deezer/text playlists to youtube urls or audio/video files """ __version__ = "1.7.2" name = "ypc"
15.181818
74
0.652695
7954fc91212869fde54d7bd530f7a6dbefe19ecb
56
py
Python
hello.py
ck4xa/cs3240-labdemo
390a486b843569777b16ac5e27cc14429349eecb
[ "MIT" ]
null
null
null
hello.py
ck4xa/cs3240-labdemo
390a486b843569777b16ac5e27cc14429349eecb
[ "MIT" ]
null
null
null
hello.py
ck4xa/cs3240-labdemo
390a486b843569777b16ac5e27cc14429349eecb
[ "MIT" ]
null
null
null
from helper import greeting msg = "hello" greeting(msg)
14
27
0.767857
7954fe36a22d2ed5520ef965d1480f5e3994c11d
3,678
py
Python
shed/writers.py
st3107/shed-streaming
c632fc465d7e11fe0155fbc3e8add1965615dd51
[ "BSD-3-Clause" ]
4
2017-09-20T16:26:34.000Z
2020-03-24T15:51:28.000Z
shed/writers.py
st3107/shed-streaming
c632fc465d7e11fe0155fbc3e8add1965615dd51
[ "BSD-3-Clause" ]
172
2017-07-25T21:36:12.000Z
2022-02-25T16:05:36.000Z
shed/writers.py
st3107/shed-streaming
c632fc465d7e11fe0155fbc3e8add1965615dd51
[ "BSD-3-Clause" ]
6
2017-08-08T12:39:18.000Z
2021-03-29T22:28:47.000Z
from rapidz import Stream import os import numpy as np from event_model import compose_resource @Stream.register_api() class Store(Stream): def __init__(self, upstream, root, writer, resource_kwargs=None, **kwargs): Stream.__init__(self, upstream, **kwargs) if writer is None: writer = ...
36.058824
79
0.517673
7954fee54bcf1d2d6b63f0c043bf6cd818686879
1,218
py
Python
{{cookiecutter.app_name}}/models.py
cericoda/cookiecutter-django-crud
dceb75c927957eb0cee34b926f1856b0597050b2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.app_name}}/models.py
cericoda/cookiecutter-django-crud
dceb75c927957eb0cee34b926f1856b0597050b2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.app_name}}/models.py
cericoda/cookiecutter-django-crud
dceb75c927957eb0cee34b926f1856b0597050b2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.core.urlresolvers import reverse from django.db import models from django.utils.encoding import python_2_unicode_compatible from model_utils.models import StatusModel, TimeStampedModel from model_utils.choices import Choices class NonArchived{{ cookiecutter.model_na...
38.0625
110
0.713465
7954ff49c9e9c31a84610d6d3f033b9460688ee2
2,819
py
Python
server/routes/api/v1/discord/tokens/all.py
SpartanPlume/TosurnamentWeb
6326f51d9cc958b948e0068cbf92dd16294d9d62
[ "MIT" ]
1
2018-04-23T16:44:50.000Z
2018-04-23T16:44:50.000Z
server/routes/api/v1/discord/tokens/all.py
SpartanPlume/TosurnamentWeb
6326f51d9cc958b948e0068cbf92dd16294d9d62
[ "MIT" ]
null
null
null
server/routes/api/v1/discord/tokens/all.py
SpartanPlume/TosurnamentWeb
6326f51d9cc958b948e0068cbf92dd16294d9d62
[ "MIT" ]
null
null
null
"""Route to all tokens""" import requests import time import uuid import json import constants from databases.token import Token from helpers.crypt import hash_str API_ENDPOINT = 'https://discordapp.com/api/v6' def get_user_id(handler, data): headers = { 'Authorization': 'Bearer ' + data["access_token"] ...
34.802469
106
0.640298
7955001d563c27bfcf02d34774564ee9dee2c117
1,620
py
Python
tAPP/1/Slicing.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/1/Slicing.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/1/Slicing.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
''' Description: Exercise 1. Slicing Version: 1.0.3.20210117 Author: Arvin Zhao Date: 2021-01-12 04:01:07 Last Editors: Arvin Zhao LastEditTime: 2021-01-17 12:12:28 ''' def get_line() -> str: ''' Get input for the first line of a favourite song. Returns ------- line : input for the first line of a...
19.756098
69
0.511728
79550158e3f26c85be88a468b81c05fb33212755
1,245
py
Python
god/twinter/init_stripped.py
makefu/painload
9bf3a190d158bbda66a4c80e5ac3d818dd1217fa
[ "WTFPL" ]
9
2018-12-03T12:54:40.000Z
2021-02-25T22:47:24.000Z
god/twinter/init_stripped.py
makefu/painload
9bf3a190d158bbda66a4c80e5ac3d818dd1217fa
[ "WTFPL" ]
1
2018-12-02T22:47:34.000Z
2018-12-02T22:47:34.000Z
god/twinter/init_stripped.py
makefu/painload
9bf3a190d158bbda66a4c80e5ac3d818dd1217fa
[ "WTFPL" ]
2
2016-04-02T17:18:33.000Z
2017-03-30T12:38:16.000Z
#!/usr/bin/env python import os.path import sys import tweepy import re from socket import * CONSUMER_KEY = '' CONSUMER_SECRET = '' ACCESS_KEY= '' ACCESS_SECRET = '' printer = "" auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) auth.set_access_token(ACCESS_KEY, ACCESS_SECRET) api = tweepy.API(auth) mention = ...
30.365854
101
0.684337
7955018c2af4555260bb615bd5f744d892807b4d
238
py
Python
Python Files/15c.py
kaskrex/pythonexercises
2afff8495529f9b1fc1d3f40c03d41227c1f253f
[ "MIT" ]
1
2021-08-10T05:40:35.000Z
2021-08-10T05:40:35.000Z
Python Files/15c.py
kaskrex/pythonexercises
2afff8495529f9b1fc1d3f40c03d41227c1f253f
[ "MIT" ]
null
null
null
Python Files/15c.py
kaskrex/pythonexercises
2afff8495529f9b1fc1d3f40c03d41227c1f253f
[ "MIT" ]
null
null
null
a = "a b c d e fg" b = ["h", "g", 2, "t"] #converts string into list x = a.split(' ') print(x) while len(x) != 10: #debug b = b.pop() print("Add", b) x.append(b) print("Got %d items now" % len(x)) print(" ".join(a))
15.866667
38
0.491597
795502273dc48fdf684fe2e0b8c17dbaab75cc3f
8,530
pyw
Python
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
main.pyw
Niyco/Cipher-tool
a0689daf8e8a087571d447efe6e98c206364316f
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog from Solve_stages import * from Text_stages import * from Analysis_stages import * from Output import * root = tk.Tk() root.title("Cipher program") root.geometry("1500x500") root.state("zoomed") #apparently windows only def getOutputText(): text = "" for sta...
36.609442
149
0.710785
7955037236fae4b34edd6fb7dc82e21157d942de
4,462
py
Python
castlib3/castor/parsing.py
CrankOne/castlib
9db26c435be1ba51ef82b138542a02f96cb595b4
[ "MIT" ]
null
null
null
castlib3/castor/parsing.py
CrankOne/castlib
9db26c435be1ba51ef82b138542a02f96cb595b4
[ "MIT" ]
null
null
null
castlib3/castor/parsing.py
CrankOne/castlib
9db26c435be1ba51ef82b138542a02f96cb595b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016 Renat R. Dusaev <crank@qcrypt.org> # Author: Renat R. Dusaev <crank@qcrypt.org> # # 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 restric...
42.09434
161
0.616988
7955039792878fe95752ad867f4e98cb408398c1
6,770
py
Python
py61850/types/base.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
3
2020-09-21T02:13:58.000Z
2021-09-18T02:32:56.000Z
py61850/types/base.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
null
null
null
py61850/types/base.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
2
2020-12-29T15:09:50.000Z
2022-01-04T16:19:48.000Z
from abc import ABC from typing import Any, Optional, Tuple, Union from struct import pack as s_pack from py61850.utils.errors import raise_type class Generic(ABC): def _parse(self, anything: Any) -> Tuple[Optional[bytes], Any]: unpacked = anything if not isinstance(anything, bytes): ...
31.488372
96
0.593058
795503d8e8fac7568e6436b1bc5402fd8c93de17
5,309
py
Python
tests/unit/utils/test_http.py
lnattrass/salt
fdf72b9fc9a0531daacb4bc5cda9e5ba980c0852
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_http.py
lnattrass/salt
fdf72b9fc9a0531daacb4bc5cda9e5ba980c0852
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_http.py
lnattrass/salt
fdf72b9fc9a0531daacb4bc5cda9e5ba980c0852
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ :codeauthor: Nicole Thomas <nicole@saltstack.com> """ from __future__ import absolute_import, print_function, unicode_literals import socket from contextlib import closing import salt.utils.http as http from tests.support.helpers import MirrorPostHandler, Webserver, slowTest from tests...
35.15894
114
0.630062
79550456108b442dc25b5b1d93e12cfa8a2540de
1,840
py
Python
csi-monitor-gui/CsiDMClient/Main.py
brunosoaresds/csi-monitor
bb89cd50688f48d3f236d9654be7d845b8ba873c
[ "MIT" ]
38
2018-05-11T18:55:42.000Z
2022-03-02T03:37:13.000Z
csi-monitor-gui/CsiDMClient/Main.py
brunosoaresds/csi-monitor
bb89cd50688f48d3f236d9654be7d845b8ba873c
[ "MIT" ]
10
2018-10-22T13:06:42.000Z
2021-11-22T12:03:10.000Z
csi-monitor-gui/CsiDMClient/Main.py
brunosoaresds/csi-monitor
bb89cd50688f48d3f236d9654be7d845b8ba873c
[ "MIT" ]
11
2018-10-24T11:54:47.000Z
2021-12-14T07:07:24.000Z
#!/usr/bin/env python import getopt import sys import glob import os from Server import Server def usage(): print("/*************************************/") print("/* CSI Device Manager Client usage: */") print("/*************************************/") print("$ Main.py --port=<server_port> --sender...
29.206349
114
0.515217
79550538db50a8a03f70b7e6e3ec0b92a9a02833
14,455
py
Python
lib/spack/spack/patch.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
lib/spack/spack/patch.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
lib/spack/spack/patch.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import hashlib import os import os.path import inspect import llnl.util.filesystem import llnl.util.lang import spack.er...
34.58134
79
0.604773
7955065c642fbca718d3d93e7a775f518cc4ed8d
4,699
py
Python
polaris/polaris/settings.py
lijamie98/django-polaris
5cdda7434281988deb761b34f574dfcaf7ae9f5d
[ "Apache-2.0" ]
null
null
null
polaris/polaris/settings.py
lijamie98/django-polaris
5cdda7434281988deb761b34f574dfcaf7ae9f5d
[ "Apache-2.0" ]
null
null
null
polaris/polaris/settings.py
lijamie98/django-polaris
5cdda7434281988deb761b34f574dfcaf7ae9f5d
[ "Apache-2.0" ]
null
null
null
""" Polaris-specific settings. This is not django.conf.settings. """ import os import environ from urllib.parse import urlparse from django.conf import settings from django.core.exceptions import ImproperlyConfigured from stellar_sdk.server import Server from stellar_sdk.keypair import Keypair def env_or_settings(var...
33.805755
94
0.739093
7955072cbad765e72de2fa778467d9bc6785de67
2,067
py
Python
setup.py
tnolan8/pyeodhistorical
0fed17925c479b36f035c17e9aeea0a22882b1e4
[ "MIT" ]
1
2021-04-20T11:50:56.000Z
2021-04-20T11:50:56.000Z
setup.py
tnolan8/pyeodhistorical
0fed17925c479b36f035c17e9aeea0a22882b1e4
[ "MIT" ]
null
null
null
setup.py
tnolan8/pyeodhistorical
0fed17925c479b36f035c17e9aeea0a22882b1e4
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # Always prefer setuptools over distutils from os import path import io def is_requirement(line): line = line.strip() # Skip blank lines, comments, and editable installs return not ( line == "" or line.startswith("--") or line.startswith...
34.45
146
0.657475
795508010bddfb8e246cbc3a4c561ede0c7439d2
6,870
py
Python
exercises/hello-world-v4/metrics.py
GrahamDumpleton/lab-mod-wsgi-metrics
6bf8371523992163548573928ae1b6a4bbb010de
[ "Apache-2.0" ]
null
null
null
exercises/hello-world-v4/metrics.py
GrahamDumpleton/lab-mod-wsgi-metrics
6bf8371523992163548573928ae1b6a4bbb010de
[ "Apache-2.0" ]
null
null
null
exercises/hello-world-v4/metrics.py
GrahamDumpleton/lab-mod-wsgi-metrics
6bf8371523992163548573928ae1b6a4bbb010de
[ "Apache-2.0" ]
null
null
null
import socket import threading import queue import time import atexit import traceback import os from threading import Thread from queue import Queue import wrapt import mod_wsgi from influxdb import InfluxDBClient from datetime import datetime session_namespace = os.environ["SESSION_NAMESPACE"] influxdb_hostname ...
30
78
0.664192
7955086afad6cc87f9c7dd03f2519d6069369260
7,554
py
Python
contrib/bitrpc/bitrpc.py
Whitecoin-XWC/XWCC_Wallet
a568af3bdcbe473a791025e9d6c01626781f5967
[ "MIT" ]
24
2017-06-29T03:12:13.000Z
2021-03-13T17:16:20.000Z
contrib/bitrpc/bitrpc.py
Whitecoin-XWC/XWCC_Wallet
a568af3bdcbe473a791025e9d6c01626781f5967
[ "MIT" ]
1
2020-12-03T10:06:32.000Z
2020-12-03T10:06:32.000Z
contrib/bitrpc/bitrpc.py
Whitecoin-XWC/XWCC_Wallet
a568af3bdcbe473a791025e9d6c01626781f5967
[ "MIT" ]
17
2017-05-15T06:40:32.000Z
2019-11-30T05:50:35.000Z
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:15815") else: access = Se...
24.057325
79
0.668388
795508a13b5ee83e355ff5e56f343dba927764f0
5,370
py
Python
src/processing/IJM/lipidomics/4.0-lipidomics_processing.py
coongroup/MITOMICS
6515c23017288ee91984ba052ce6b6cc74ade60a
[ "MIT" ]
null
null
null
src/processing/IJM/lipidomics/4.0-lipidomics_processing.py
coongroup/MITOMICS
6515c23017288ee91984ba052ce6b6cc74ade60a
[ "MIT" ]
null
null
null
src/processing/IJM/lipidomics/4.0-lipidomics_processing.py
coongroup/MITOMICS
6515c23017288ee91984ba052ce6b6cc74ade60a
[ "MIT" ]
null
null
null
# load modules import pandas as pd import re import numpy as np from collections import Counter # load proteomics data lipidomics_path = "combined_lipidomics_data_filtered.tsv" lipidomics_df = pd.read_csv(lipidomics_path, sep="\t", index_col=0) # drop batch column and transpose lipidomics_df = lipidomics_df.drop(['ba...
31.403509
99
0.622346
79550a37893f506c6e1c27e9cb55a76db0222c8b
11,013
py
Python
src/python/interop/interop/methods.py
iMilind/grpc
f5b20ce8ec0c1dde684840f6ea8dcf80822bbb1d
[ "BSD-3-Clause" ]
1
2015-09-27T23:20:05.000Z
2015-09-27T23:20:05.000Z
src/python/interop/interop/methods.py
iMilind/grpc
f5b20ce8ec0c1dde684840f6ea8dcf80822bbb1d
[ "BSD-3-Clause" ]
3
2020-12-31T09:08:34.000Z
2021-09-28T05:42:02.000Z
third_party/grpc/src/python/interop/interop/methods.py
acidburn0zzz/kythe
6cd4e9c81a1158de43ec783607a4d7edd9b7e4a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
37.975862
78
0.764006
79550c496c01cc593c5a60bb791235d515c0b59e
1,352
py
Python
gamma_limits_sensitivity/tests/test_command_predict.py
mahnen/gamma-limits-sensitivity
f105d7e2ba5bdc5cabd48594151968304850a499
[ "MIT" ]
4
2021-06-11T03:37:38.000Z
2021-06-11T10:42:24.000Z
tests/test_command_predict.py
JohannesBuchner/poissonregime
8047914428bb9e4f0f6fc366111d7a9d42701502
[ "MIT" ]
4
2016-11-14T11:58:48.000Z
2018-03-20T11:42:11.000Z
tests/test_command_predict.py
JohannesBuchner/poissonregime
8047914428bb9e4f0f6fc366111d7a9d42701502
[ "MIT" ]
null
null
null
''' [TODO] Explain logic behind command: 'predict' ''' import gamma_limits_sensitivity as gls import numpy as np import matplotlib from helper_functions_for_tests import get_effective_area_list def test_get_predict_phasespace_figure(): ''' A simple test for the get_phasespace_figure() function ''' a_...
25.037037
74
0.659763
79550d7a522ccab167495b644b137e72bde01074
1,014
py
Python
gsse_python_client/testSet.py
ogdans3/gsse-python-client
4ee6409aa3f3c558fbd4d43ccb53fdd91a7923f5
[ "MIT" ]
null
null
null
gsse_python_client/testSet.py
ogdans3/gsse-python-client
4ee6409aa3f3c558fbd4d43ccb53fdd91a7923f5
[ "MIT" ]
null
null
null
gsse_python_client/testSet.py
ogdans3/gsse-python-client
4ee6409aa3f3c558fbd4d43ccb53fdd91a7923f5
[ "MIT" ]
null
null
null
class TestSet: def __init__(self, stocks=[], fromTime="", toTime="", exchange=""): self.tickers = stocks self.fromTime = fromTime self.toTime = toTime self.exchange = exchange def addStock(self, ticker): self.tickers.append(ticker) def removeStock(self, ticker): ...
22.533333
71
0.599606
79550f14826e411fd7827f251a7b9d5f85be8f7b
1,721
py
Python
localization/launch/particle_filter_localizer.launch.py
pr05/software-training
b38036bf0d2231b0c8a058b9b7bcb27883bd4bba
[ "MIT" ]
null
null
null
localization/launch/particle_filter_localizer.launch.py
pr05/software-training
b38036bf0d2231b0c8a058b9b7bcb27883bd4bba
[ "MIT" ]
null
null
null
localization/launch/particle_filter_localizer.launch.py
pr05/software-training
b38036bf0d2231b0c8a058b9b7bcb27883bd4bba
[ "MIT" ]
null
null
null
# Copyright 2021 RoboJackets # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute,...
39.113636
79
0.732132
79550fd3f0c4322212c8ceb81c26ee585df680a8
56,382
py
Python
Integrations/Slack/Slack.py
JustinJohnWilliams/content
13e26fe338d7f90cc6e95a673316d1445033d31d
[ "MIT" ]
null
null
null
Integrations/Slack/Slack.py
JustinJohnWilliams/content
13e26fe338d7f90cc6e95a673316d1445033d31d
[ "MIT" ]
null
null
null
Integrations/Slack/Slack.py
JustinJohnWilliams/content
13e26fe338d7f90cc6e95a673316d1445033d31d
[ "MIT" ]
null
null
null
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import slack from slack.errors import SlackApiError from distutils.util import strtobool import asyncio import concurrent import requests from typing import Tuple # disable unsecure warnings requests.packages.urllib3.d...
37.512974
119
0.621794
79550ff6cdb6364b3bf3778a54e6503802957c6b
643
py
Python
yaml_test/ex7_yam_json_read.py
terblac/mypynetcourse
3252204e1c7996bad97e984e2c5182ddccbd2ce3
[ "Apache-2.0" ]
null
null
null
yaml_test/ex7_yam_json_read.py
terblac/mypynetcourse
3252204e1c7996bad97e984e2c5182ddccbd2ce3
[ "Apache-2.0" ]
null
null
null
yaml_test/ex7_yam_json_read.py
terblac/mypynetcourse
3252204e1c7996bad97e984e2c5182ddccbd2ce3
[ "Apache-2.0" ]
null
null
null
import yaml import json from pprint import pprint def output_format(my_list, my_str): ''' Make the output easier to read ''' print '\n\n' print '#'*3 print '#'*3+my_str print '#'*3 pprint(my_list) def main(): ''' Read YAML and JSON files. Pretty print to standard out '''...
17.378378
58
0.600311
795510c043ad4db4a7279a8116b558665b3c808b
24,898
py
Python
toontown/building/DistributedBoardingPartyAI.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
null
null
null
toontown/building/DistributedBoardingPartyAI.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-06-08T17:16:48.000Z
2021-06-08T17:16:48.000Z
toontown/building/DistributedBoardingPartyAI.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from otp.otpbase import OTPGlobals from otp.ai.AIBase import * from toontown.toonbase import ToontownGlobals from direct.distributed.ClockDelta import * from ElevatorConstants import * from direct.distributed import DistributedObjectAI from direct.fsm import ClassicFSM, State from direct.fsm import State from direct.ta...
51.548654
213
0.616395
795510dd419cbfd0e9411acb56126cfee17a10bd
218
py
Python
src/setup.py
illescasDaniel/SendEmailPython
49b6d32264a0af6872776968f002c57db250c121
[ "MIT" ]
null
null
null
src/setup.py
illescasDaniel/SendEmailPython
49b6d32264a0af6872776968f002c57db250c121
[ "MIT" ]
null
null
null
src/setup.py
illescasDaniel/SendEmailPython
49b6d32264a0af6872776968f002c57db250c121
[ "MIT" ]
null
null
null
from setuptools import setup APP = ['SendEmail.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], )
16.769231
34
0.665138
79551100bd9b4540d4dd11994aadcf9448b4b396
1,394
py
Python
setup.py
insad/SpeedTorch
82cfcbe3908de6baba5cb01b51aafb97da4c99f4
[ "MIT" ]
683
2019-09-14T11:28:17.000Z
2022-03-31T02:06:22.000Z
setup.py
insad/SpeedTorch
82cfcbe3908de6baba5cb01b51aafb97da4c99f4
[ "MIT" ]
8
2019-09-10T21:23:46.000Z
2021-11-03T03:11:59.000Z
setup.py
insad/SpeedTorch
82cfcbe3908de6baba5cb01b51aafb97da4c99f4
[ "MIT" ]
42
2019-09-09T07:09:13.000Z
2022-03-31T02:06:17.000Z
import codecs from setuptools import setup, find_packages with codecs.open('README.md', 'r', 'utf8') as reader: long_description = reader.read() with codecs.open('requirements.txt', 'r', 'utf8') as reader: install_requires = list(map(lambda x: x.strip(), reader.readlines())) try: import cupy except: ...
36.684211
135
0.685079
7955120232963d500ec7530b9402964ccd053f9f
2,033
py
Python
RASA_Restaurant_Chatbot/core/train_init.py
anugrahasinha/nlp
3fd7ac305678eb6c2d761f6239ce5e53a016a3e4
[ "MIT" ]
null
null
null
RASA_Restaurant_Chatbot/core/train_init.py
anugrahasinha/nlp
3fd7ac305678eb6c2d761f6239ce5e53a016a3e4
[ "MIT" ]
null
null
null
RASA_Restaurant_Chatbot/core/train_init.py
anugrahasinha/nlp
3fd7ac305678eb6c2d761f6239ce5e53a016a3e4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import logging import os from datetime import datetime from rasa_core.agent import Agent from rasa_core.policies.keras_policy import KerasPolicy from rasa_core.policies.memoization import MemoizationPolicy fr...
36.303571
110
0.735858
7955125e500373157e10828a165c439ade25fa2c
4,326
py
Python
gpy_dla_detection/plottings/plot_model.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
1
2020-07-31T01:31:52.000Z
2020-07-31T01:31:52.000Z
gpy_dla_detection/plottings/plot_model.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
12
2020-07-20T18:55:15.000Z
2021-09-23T05:08:26.000Z
gpy_dla_detection/plottings/plot_model.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
null
null
null
""" Plot the GP model with sample likelihoods """ from typing import Optional import numpy as np from matplotlib import pyplot as plt from ..dla_gp import DLAGP def plot_dla_model( dla_gp: DLAGP, nth_dla: int, title: Optional[str] = None, label: Optional[str] = None, ): # plot both mean GP model...
31.808824
89
0.629219