hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
1757c182b12f55c79e5d7989984e96836c9b0525
2,150
py
Python
CraftProtocol/Protocol/v1_8/Packet/Play/ClientSettingsPacket.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
21
2018-05-12T20:18:02.000Z
2022-02-18T17:33:50.000Z
CraftProtocol/Protocol/v1_8/Packet/Play/ClientSettingsPacket.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
1
2018-06-23T09:13:39.000Z
2018-06-27T01:22:27.000Z
CraftProtocol/Protocol/v1_8/Packet/Play/ClientSettingsPacket.py
Toranktto/CraftProtocol
a6f4a67756c3868820ab76df5e148d76b020d990
[ "MIT" ]
2
2018-05-19T21:36:00.000Z
2020-10-02T03:23:13.000Z
#!/usr/bin/env python from CraftProtocol.Protocol.Packet.BasePacket import BasePacket from CraftProtocol.Protocol.Packet.PacketDirection import PacketDirection from CraftProtocol.StreamIO import StreamIO class ClientSettingsPacket(BasePacket): PACKET_ID = 0x15 PACKET_DIRECTION = PacketDirection.SERVERBOUND ...
32.089552
94
0.713953
54242c3a5ff99883e8cb54dd6ec506173de03862
936
py
Python
iv/Leetcode/easy/283_move_zero.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
2
2020-09-19T22:28:15.000Z
2020-10-03T01:44:53.000Z
iv/Leetcode/easy/283_move_zero.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
null
null
null
iv/Leetcode/easy/283_move_zero.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
1
2020-10-03T01:43:30.000Z
2020-10-03T01:43:30.000Z
""" Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. """ class Solution: def moveZeroes(self, nums: list) -> None: """ Do not return anything, modify nums in-place instead. """ lastfound = 0 ...
24.631579
133
0.494658
3b6d77f1b00ae3c13074ddda0710ce9bc0eae050
86
py
Python
exercicio20.py
Alexkakakaka/infosatc-lp-avaliativo-01
eff4350eb2ec8bebd169155b3ac86a6396544fd9
[ "MIT" ]
null
null
null
exercicio20.py
Alexkakakaka/infosatc-lp-avaliativo-01
eff4350eb2ec8bebd169155b3ac86a6396544fd9
[ "MIT" ]
null
null
null
exercicio20.py
Alexkakakaka/infosatc-lp-avaliativo-01
eff4350eb2ec8bebd169155b3ac86a6396544fd9
[ "MIT" ]
null
null
null
K = float(input("Digite um numero")) L = K/0.45 print("Convertido massa em libras:",L)
28.666667
38
0.686047
9f5b1476089bcef73ad991f0b0546b6f2f490c86
1,767
py
Python
sdk/python/pulumi_azure_native/devices/v20200101/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/devices/v20200101/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/devices/v20200101/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'AccessRightsDescription', 'AllocationPolicy', 'IotDpsSku', 'IpFilterActionType', 'IpFilterTarge...
22.653846
80
0.65931
e1cbf1508dddd3c46dbf4e9e2680af36f0b491a2
17,287
py
Python
houseSock.py
Scor09/house
32b0d16f43fa1fd45a6e5c70ac23672716838459
[ "MIT" ]
null
null
null
houseSock.py
Scor09/house
32b0d16f43fa1fd45a6e5c70ac23672716838459
[ "MIT" ]
null
null
null
houseSock.py
Scor09/house
32b0d16f43fa1fd45a6e5c70ac23672716838459
[ "MIT" ]
1
2020-01-07T03:02:21.000Z
2020-01-07T03:02:21.000Z
# MIT License # Copyright (c) 2018 NCC Group Plc # 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, ...
36.165272
217
0.682883
df6a9e311c0891bdb4c25acc51ad3ca054655b60
3,772
py
Python
benchmarks/benchmark_iterating.py
NihalHarish/datasets
67574a8d74796bc065a8b9b49ec02f7b1200c172
[ "Apache-2.0" ]
9
2021-04-26T14:43:52.000Z
2021-11-08T09:47:24.000Z
benchmarks/benchmark_iterating.py
NihalHarish/datasets
67574a8d74796bc065a8b9b49ec02f7b1200c172
[ "Apache-2.0" ]
null
null
null
benchmarks/benchmark_iterating.py
NihalHarish/datasets
67574a8d74796bc065a8b9b49ec02f7b1200c172
[ "Apache-2.0" ]
3
2021-01-03T22:08:20.000Z
2021-08-12T20:09:39.000Z
import json import os import tempfile from utils import generate_example_dataset, get_duration import datasets SPEED_TEST_N_EXAMPLES = 50_000 SMALL_TEST = 5_000 RESULTS_BASEPATH, RESULTS_FILENAME = os.path.split(__file__) RESULTS_FILE_PATH = os.path.join(RESULTS_BASEPATH, "results", RESULTS_FILENAME.replace(".py",...
37.72
108
0.635472
6b1863243edf99b5d1c26511baf66237d21ae231
6,457
py
Python
httpolice/inputs/har.py
vfaronov/httpolice
0008cb746798eb8a7981d57f16f0b91b87e1a8d6
[ "MIT" ]
1,027
2016-04-25T11:17:13.000Z
2022-02-06T23:47:45.000Z
httpolice/inputs/har.py
vfaronov/httpolice
0008cb746798eb8a7981d57f16f0b91b87e1a8d6
[ "MIT" ]
9
2016-07-25T11:30:34.000Z
2021-03-23T20:42:29.000Z
httpolice/inputs/har.py
vfaronov/httpolice
0008cb746798eb8a7981d57f16f0b91b87e1a8d6
[ "MIT" ]
27
2016-05-19T22:17:39.000Z
2020-09-18T05:53:39.000Z
import base64 import io import json from urllib.parse import urlparse from httpolice.exchange import Exchange from httpolice.helpers import pop_pseudo_headers from httpolice.inputs.common import InputError from httpolice.known import h, m, st from httpolice.request import Request from httpolice.response import Respons...
38.664671
79
0.602292
41a34fa36edf581c273cf650e4dfd8268c732634
3,141
py
Python
tests/integration_tests/dashboard_utils.py
nieaijun99/superset
86368dd406b9e828f31186a4b6179d24758a7d87
[ "Apache-2.0" ]
2
2021-12-21T15:57:16.000Z
2022-01-31T02:22:02.000Z
tests/integration_tests/dashboard_utils.py
nieaijun99/superset
86368dd406b9e828f31186a4b6179d24758a7d87
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/dashboard_utils.py
nieaijun99/superset
86368dd406b9e828f31186a4b6179d24758a7d87
[ "Apache-2.0" ]
2
2021-12-21T13:41:18.000Z
2021-12-26T22:16:43.000Z
# 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...
31.727273
81
0.720471
2919d7a8668edd013807391b5a92799b369efd18
1,571
py
Python
tf-undistributed/train_val_split.py
markandersonintel/distributed-tensorflow
5fa31d8aa0c7eec54890d91155712096975e9075
[ "Apache-2.0" ]
null
null
null
tf-undistributed/train_val_split.py
markandersonintel/distributed-tensorflow
5fa31d8aa0c7eec54890d91155712096975e9075
[ "Apache-2.0" ]
null
null
null
tf-undistributed/train_val_split.py
markandersonintel/distributed-tensorflow
5fa31d8aa0c7eec54890d91155712096975e9075
[ "Apache-2.0" ]
null
null
null
import os from shutil import copyfile from shutil import rmtree import random def split(): datafolder = 'data/' trainfolder = 'train/' valfolder = 'val/' valpercentage = .2 if not os.path.exists(datafolder): print(datafolder,'does not exist.') return; if os.path.exi...
34.152174
70
0.527689
722ef645e7a54ca886dac115ae13d4bf80f8a4a7
5,858
py
Python
tests/scripts/thread-cert/Cert_5_3_04_AddressMapCache.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/Cert_5_3_04_AddressMapCache.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
2
2019-02-25T10:21:34.000Z
2022-01-23T13:05:08.000Z
tests/scripts/thread-cert/Cert_5_3_04_AddressMapCache.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
1
2020-10-22T16:33:36.000Z
2020-10-22T16:33:36.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
38.539474
79
0.662854
10cdeddbcbe69c44b6e8d37feebd141c15549b07
6,610
py
Python
pajbot/modules/pointlottery.py
KasperHelsted/pajbot
c366dcfc5e6076f9adcfce24c7a666653068b031
[ "MIT" ]
null
null
null
pajbot/modules/pointlottery.py
KasperHelsted/pajbot
c366dcfc5e6076f9adcfce24c7a666653068b031
[ "MIT" ]
null
null
null
pajbot/modules/pointlottery.py
KasperHelsted/pajbot
c366dcfc5e6076f9adcfce24c7a666653068b031
[ "MIT" ]
1
2020-03-11T19:37:10.000Z
2020-03-11T19:37:10.000Z
import logging from numpy import random from pajbot.models.command import Command from pajbot.models.command import CommandExample from pajbot.modules.base import BaseModule log = logging.getLogger(__name__) class PointLotteryModule(BaseModule): ID = __name__.split(".")[-1] NAME = "Point Lottery" DESCR...
33.383838
117
0.543722
f0f7283f5930c31495d9e4dbb04ec69eb9e43246
439
py
Python
nose2/tests/functional/support/scenario/slow/test_slow.py
Metaswitch/nose2
1fdb46ef9eb279fb1f9b2321dc978977876e8230
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/support/scenario/slow/test_slow.py
Metaswitch/nose2
1fdb46ef9eb279fb1f9b2321dc978977876e8230
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/support/scenario/slow/test_slow.py
Metaswitch/nose2
1fdb46ef9eb279fb1f9b2321dc978977876e8230
[ "BSD-2-Clause" ]
1
2019-11-24T12:11:52.000Z
2019-11-24T12:11:52.000Z
import time import unittest import logging log = logging.getLogger(__name__) class TestSlow(unittest.TestCase): def test_ok(self): print("hide this") time.sleep(2) def test_fail(self): print("show this") log.debug("hola") time.sleep(2) self.assertEqual(1, 2) ...
18.291667
34
0.574032
a0d3bbdd9c82da419a89e54082798ca68188d71a
2,645
py
Python
potara/similaritymeasures.py
sildar/potara
cb98b337531e4833058c95ac1eb29d8bcdac0104
[ "MIT" ]
86
2015-04-09T08:47:38.000Z
2021-12-31T03:16:53.000Z
potara/similaritymeasures.py
sildar/potara
cb98b337531e4833058c95ac1eb29d8bcdac0104
[ "MIT" ]
11
2016-02-24T03:02:58.000Z
2021-01-20T16:30:30.000Z
potara/similaritymeasures.py
sildar/potara
cb98b337531e4833058c95ac1eb29d8bcdac0104
[ "MIT" ]
31
2015-04-13T12:50:16.000Z
2021-08-23T08:42:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Contains several similarity measures. These measures deal with raw strings which words are supposed to be white-space separated. """ from collections import Counter from operator import itemgetter import math def cosine(s1, s2): """ Retuns the cosine value b...
26.989796
76
0.567108
45544ee9f2232c52ae106632c2d90919702d7a92
2,800
py
Python
dna/query_ontology_specific_classes.py
ontoinsights/deep_narrative_analysis
2c01e4d870de30a325d9aa84896d346a3ccb4bbd
[ "CC-BY-4.0" ]
9
2020-03-02T03:41:48.000Z
2022-03-30T09:28:38.000Z
dna/query_ontology_specific_classes.py
ontoinsights/deep_narrative_analysis
2c01e4d870de30a325d9aa84896d346a3ccb4bbd
[ "CC-BY-4.0" ]
null
null
null
dna/query_ontology_specific_classes.py
ontoinsights/deep_narrative_analysis
2c01e4d870de30a325d9aa84896d346a3ccb4bbd
[ "CC-BY-4.0" ]
null
null
null
# Query ontology class details # To avoid passing a store name parameter, the ontology files are preloaded into an 'ontologies' database # Called by create_event_turtle.py from database import query_ontology from utilities import empty_string, owl_thing domain_query_norp_emotion_or_enum = \ 'prefix : <urn:ontoins...
59.574468
109
0.658214
6cd61170c0b767169dda44e3fc52ea646493e784
3,043
py
Python
janitor/engineering.py
Ram-N/pyjanitor
b85d9c9e8d823e356cb095643db0af05e351b009
[ "MIT" ]
null
null
null
janitor/engineering.py
Ram-N/pyjanitor
b85d9c9e8d823e356cb095643db0af05e351b009
[ "MIT" ]
null
null
null
janitor/engineering.py
Ram-N/pyjanitor
b85d9c9e8d823e356cb095643db0af05e351b009
[ "MIT" ]
null
null
null
""" Engineering-specific data cleaning functions. """ import numpy as np import pandas as pd import pandas_flavor as pf from janitor import check from .utils import import_message try: import unyt except ImportError: import_message("engineering", "unyt", "conda install -c conda-forge unyt") @pf.register_d...
29.833333
78
0.678607
3f1ef6ce7357d20969a260bb0d6f57f2517d53ea
222
py
Python
Python/pythonChallenge/5.py
JanStoltman/100DaysOfCode
1d18b76ed1e3e942e8392006a5d4bfb41484d047
[ "MIT" ]
null
null
null
Python/pythonChallenge/5.py
JanStoltman/100DaysOfCode
1d18b76ed1e3e942e8392006a5d4bfb41484d047
[ "MIT" ]
null
null
null
Python/pythonChallenge/5.py
JanStoltman/100DaysOfCode
1d18b76ed1e3e942e8392006a5d4bfb41484d047
[ "MIT" ]
null
null
null
import urllib2,pickle url = "http://www.pythonchallenge.com/pc/def/banner.p" req = urllib2.urlopen(url).read() data = pickle.loads(req) print data #for line in data: # print ''.join(elem[0]*elem[1] for elem in line)
22.2
54
0.698198
c249ef05a39971272570c44647ad173174573b38
1,963
py
Python
SC/aq_dashboard.py
alqu7095/DS-Unit-3-Sprint-3-Productization-and-Cloud
ff1d2a7ab04f503ca346734a9089203c632172bb
[ "MIT" ]
null
null
null
SC/aq_dashboard.py
alqu7095/DS-Unit-3-Sprint-3-Productization-and-Cloud
ff1d2a7ab04f503ca346734a9089203c632172bb
[ "MIT" ]
null
null
null
SC/aq_dashboard.py
alqu7095/DS-Unit-3-Sprint-3-Productization-and-Cloud
ff1d2a7ab04f503ca346734a9089203c632172bb
[ "MIT" ]
null
null
null
from flask import Flask import requests import openaq from flask_sqlalchemy import SQLAlchemy import pandas as pd from flask import render_template from .models import DB, Record api = openaq.OpenAQ() def create_app(): app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3' D...
29.298507
90
0.599083
bf4f7bee2af60c6d48dd9cc60c36890984d86fc3
689
py
Python
backend/app/main.py
flsworld/comment-rick-n-morty
fdab96ca5d14fedd2428fbdad7e49ec8e31b4ddd
[ "MIT" ]
null
null
null
backend/app/main.py
flsworld/comment-rick-n-morty
fdab96ca5d14fedd2428fbdad7e49ec8e31b4ddd
[ "MIT" ]
null
null
null
backend/app/main.py
flsworld/comment-rick-n-morty
fdab96ca5d14fedd2428fbdad7e49ec8e31b4ddd
[ "MIT" ]
null
null
null
from fastapi import FastAPI from app.api.router import api_router from app.core.config import settings description = """ Comment R&M API helps you do awesome stuff 🚀 ## Characters Characters from the animated series ## Episodes Episodes from the animated series ## Appearances An appearance represents a charact...
16.023256
86
0.753266
14486cbfa7549cfe8daf7b33116acecea5bf62c4
526
py
Python
Aula_54/Dao/base_dao.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_54/Dao/base_dao.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
Aula_54/Dao/base_dao.py
Mateus-Silva11/AulasPython
d34dc4f62ade438e68b0a80e0baac4d6ec0d378e
[ "MIT" ]
null
null
null
import sqlalchemy as db # criando a class base_dao Orientação a objeto simplificando o codigo class BaseDao: def __init__(self): #criando a conexeção com o banco de dados # ----database+conector://user:passwd@url:porta/database conexao = db.create_engine("mysql+mysqlconnector://topskills01:t...
43.833333
116
0.712928
110d5b55f447cf2f02df1bc26a4277efba24f1a3
477
py
Python
data/scripts/templates/object/tangible/deed/city_deed/shared_garden_tatooine_med_03_deed.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/deed/city_deed/shared_garden_tatooine_med_03_deed.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/deed/city_deed/shared_garden_tatooine_med_03_deed.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/deed/city_deed/shared_garden_tatooine_med_03_deed.iff" result.attri...
28.058824
90
0.744235
a3caf39b5642ec5764d6241a59d2e3004c226158
736
py
Python
tests/utils/test_math.py
lx120/tinynn
88b941a706700ca7f6b1cc4ae7f271df7049348c
[ "MIT" ]
217
2019-08-19T07:23:57.000Z
2022-03-31T13:00:46.000Z
tests/utils/test_math.py
lx120/tinynn
88b941a706700ca7f6b1cc4ae7f271df7049348c
[ "MIT" ]
19
2019-09-06T17:11:13.000Z
2022-03-12T00:02:47.000Z
tests/utils/test_math.py
lx120/tinynn
88b941a706700ca7f6b1cc4ae7f271df7049348c
[ "MIT" ]
57
2019-09-06T12:12:24.000Z
2022-03-29T03:33:01.000Z
import numpy as np import tinynn as tn tn.seeder.random_seed(31) def test_softmax(): x = np.array([1.0, 2.0, 3.0, 4.0]) a = np.exp(x - np.max(x)) expect = a / a.sum() assert np.allclose(tn.math.softmax(x), expect) x = np.array([1e10, 1e10]) expect = [0.5, 0.5] assert np.allclose(tn.math...
23.741935
74
0.629076
5f3507eb5ecfa89fb9b5be5b4548773a2c25a3c1
1,111
py
Python
blog/urls.py
ZiYin-ss/python-blog
df2b18384a6ff691ea4b35a0659d54979eb9da15
[ "MIT" ]
null
null
null
blog/urls.py
ZiYin-ss/python-blog
df2b18384a6ff691ea4b35a0659d54979eb9da15
[ "MIT" ]
null
null
null
blog/urls.py
ZiYin-ss/python-blog
df2b18384a6ff691ea4b35a0659d54979eb9da15
[ "MIT" ]
null
null
null
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
33.666667
86
0.70117
9123a8f0a0461930239491c951ec5a47ff13dc92
18,627
py
Python
evennia/scripts/scripts.py
pakhnu/my-world
405983dca81e70fc64d58d6a60126ffa5e8ada8c
[ "BSD-3-Clause" ]
null
null
null
evennia/scripts/scripts.py
pakhnu/my-world
405983dca81e70fc64d58d6a60126ffa5e8ada8c
[ "BSD-3-Clause" ]
null
null
null
evennia/scripts/scripts.py
pakhnu/my-world
405983dca81e70fc64d58d6a60126ffa5e8ada8c
[ "BSD-3-Clause" ]
null
null
null
""" This module defines Scripts, out-of-character entities that can store data both on themselves and on other objects while also having the ability to run timers. """ from twisted.internet.defer import Deferred, maybeDeferred from twisted.internet.task import LoopingCall from django.core.exceptions import ObjectDoes...
31.732538
102
0.571643
ed2f21b005e347f409fc308b43b9bb80520b4697
3,430
py
Python
examples/python/native/cifar10_cnn_concat.py
rvinaybharadwaj/FlexFlow
bb8a3e24ac623ac48cd97e103b37ba7e715d3d3a
[ "Apache-2.0" ]
2
2021-03-17T12:00:35.000Z
2021-03-17T12:18:28.000Z
examples/python/native/cifar10_cnn_concat.py
rvinaybharadwaj/FlexFlow
bb8a3e24ac623ac48cd97e103b37ba7e715d3d3a
[ "Apache-2.0" ]
null
null
null
examples/python/native/cifar10_cnn_concat.py
rvinaybharadwaj/FlexFlow
bb8a3e24ac623ac48cd97e103b37ba7e715d3d3a
[ "Apache-2.0" ]
null
null
null
from flexflow.core import * from flexflow.keras.datasets import cifar10 from accuracy import ModelAccuracy def top_level_task(): ffconfig = FFConfig() alexnetconfig = NetConfig() print(alexnetconfig.dataset_path) ffconfig.parse_args() print("Python API batchSize(%d) workersPerNodes(%d) numNodes(%d)" %(ffcon...
38.539326
167
0.737026
b1647c267dc651f218079210988d83f539769102
37
py
Python
loop.py
pexceful/test
02e1336a3f5383dd9cc0569cbc5105b39b8799ad
[ "MIT" ]
null
null
null
loop.py
pexceful/test
02e1336a3f5383dd9cc0569cbc5105b39b8799ad
[ "MIT" ]
null
null
null
loop.py
pexceful/test
02e1336a3f5383dd9cc0569cbc5105b39b8799ad
[ "MIT" ]
null
null
null
for i in range(69): print (i)
12.333333
20
0.513514
873c4bb37ec797c4ec251cbf24cefca20d45d25e
22,602
py
Python
a5_public/nmt_model.py
thophan92/cs224n-winter2019
f3f8041b35e949e73167135d662a2bd93e7406de
[ "MIT" ]
null
null
null
a5_public/nmt_model.py
thophan92/cs224n-winter2019
f3f8041b35e949e73167135d662a2bd93e7406de
[ "MIT" ]
null
null
null
a5_public/nmt_model.py
thophan92/cs224n-winter2019
f3f8041b35e949e73167135d662a2bd93e7406de
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2018-19: Homework 5 nmt_model.py: NMT Model Pencheng Yin <pcyin@cs.cmu.edu> Sahil Chopra <schopra8@stanford.edu> """ from collections import namedtuple import sys from typing import List, Tuple, Dict, Set, Union import torch import torch.nn as nn import torch.n...
51.485194
176
0.631714
12eb0ac032ca0ddfbe6dece3e9903078f5562987
10,942
py
Python
tests/zpill.py
kjhosein/cloud-custodian
b1b24b3d497849f2b80c45071d73e15f2a868ea9
[ "Apache-2.0" ]
null
null
null
tests/zpill.py
kjhosein/cloud-custodian
b1b24b3d497849f2b80c45071d73e15f2a868ea9
[ "Apache-2.0" ]
null
null
null
tests/zpill.py
kjhosein/cloud-custodian
b1b24b3d497849f2b80c45071d73e15f2a868ea9
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2017 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
32.858859
93
0.61561
74bb4253cc3841ff6d81fc81ca5850e23c65ad05
1,279
py
Python
install.py
ohrn/critic
26d38be643703d8bf9e6bfdb370c887251b1c109
[ "Apache-2.0" ]
null
null
null
install.py
ohrn/critic
26d38be643703d8bf9e6bfdb370c887251b1c109
[ "Apache-2.0" ]
null
null
null
install.py
ohrn/critic
26d38be643703d8bf9e6bfdb370c887251b1c109
[ "Apache-2.0" ]
null
null
null
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2012 Jens Lindström, Opera Software ASA # # 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...
30.452381
80
0.724003
dbaa624ae9d6a5a5949db692e52c0c1deb18b8df
28,542
py
Python
tensorflow/contrib/gan/python/losses/python/losses_impl_test.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
13
2018-07-23T18:53:35.000Z
2021-11-18T19:56:45.000Z
tensorflow/contrib/gan/python/losses/python/losses_impl_test.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
1
2018-03-28T23:47:43.000Z
2018-03-28T23:47:43.000Z
tensorflow/contrib/gan/python/losses/python/losses_impl_test.py
M155K4R4/Tensorflow
e5e03ef3148303b3dfed89a1492dedf92b45be25
[ "Apache-2.0" ]
13
2018-09-07T13:28:38.000Z
2020-07-17T15:06:24.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 applica...
42.097345
83
0.713335
5a9a926c8e4843485b838d0f2a91f8492753fe55
289
py
Python
st_marys/pipelines.py
nbanion/blah
cf14d33d6f6222f4ba8e7582f11150a887508fa2
[ "MIT" ]
null
null
null
st_marys/pipelines.py
nbanion/blah
cf14d33d6f6222f4ba8e7582f11150a887508fa2
[ "MIT" ]
8
2019-10-12T16:38:21.000Z
2019-10-21T03:20:56.000Z
st_marys/pipelines.py
nbanion/blah
cf14d33d6f6222f4ba8e7582f11150a887508fa2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html class StMarysPipeline(object): def process_item(self, item, spider): return item
24.083333
66
0.712803
1bba371c954dbca889533f304ca64467f503494e
40
py
Python
maps/spice_islands/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/spice_islands/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
maps/spice_islands/__init__.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from .spice_islands import SpiceIslands
20
39
0.875
81c6d9adb42681e3a614f7af89d9c2b4524cfb4d
1,450
py
Python
pypiorg/app.py
paulburnz314/flask_talkpython
65a13c0fc6ab37d13cc996172d7e120e346116a9
[ "MIT" ]
null
null
null
pypiorg/app.py
paulburnz314/flask_talkpython
65a13c0fc6ab37d13cc996172d7e120e346116a9
[ "MIT" ]
null
null
null
pypiorg/app.py
paulburnz314/flask_talkpython
65a13c0fc6ab37d13cc996172d7e120e346116a9
[ "MIT" ]
null
null
null
import os import sys from flask import Flask # import app.data.__all_models # from flask_sqlalchemy import SQLAlchemy # from flask_migrate import Migrate # from app.config import Config # abspath returns absolute path of a path # join means join to path strings # dirname returns the directory of a file # __file__ refer...
25.892857
79
0.775172
83639e3d429f438857b498bf839d646192101206
5,759
py
Python
srunner/tools/scenario_config_parser.py
Disiok/scenario_runner
b883f61005375012b47b17c9b857daad141d1506
[ "MIT" ]
1
2020-07-01T08:01:04.000Z
2020-07-01T08:01:04.000Z
srunner/tools/scenario_config_parser.py
Disiok/scenario_runner
b883f61005375012b47b17c9b857daad141d1506
[ "MIT" ]
null
null
null
srunner/tools/scenario_config_parser.py
Disiok/scenario_runner
b883f61005375012b47b17c9b857daad141d1506
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This module provides access to a scenario configuration parser """ import glob import os import xml.etree.ElementTree as ET from sru...
40.272727
119
0.641952
9b24c94a638cf1ba168a444fcf48ea086f4213ea
25,881
py
Python
multiworld/envs/pygame/multiobject_pygame_env.py
williamd4112/multiworld
bfcbe52db9ac67913ca38b7b3313afb8fdcfaaf7
[ "Apache-2.0" ]
null
null
null
multiworld/envs/pygame/multiobject_pygame_env.py
williamd4112/multiworld
bfcbe52db9ac67913ca38b7b3313afb8fdcfaaf7
[ "Apache-2.0" ]
null
null
null
multiworld/envs/pygame/multiobject_pygame_env.py
williamd4112/multiworld
bfcbe52db9ac67913ca38b7b3313afb8fdcfaaf7
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import logging import numpy as np from gym import spaces from pygame import Color import random from multiworld.core.multitask_env import MultitaskEnv from multiworld.core.serializable import Serializable from multiworld.envs.env_util import ( get_stat_in_paths, create_stats...
33.920052
180
0.524516
49fac59a3cce64570d0887fff3e479694e411592
5,872
py
Python
mtm/mtm.py
imclab/python-ssa-mtm
9c081485c9bb78773f1d9a3587dd1c070e23b495
[ "MIT" ]
2
2019-01-09T07:10:52.000Z
2020-07-21T00:44:50.000Z
mtm/mtm.py
imclab/python-ssa-mtm
9c081485c9bb78773f1d9a3587dd1c070e23b495
[ "MIT" ]
null
null
null
mtm/mtm.py
imclab/python-ssa-mtm
9c081485c9bb78773f1d9a3587dd1c070e23b495
[ "MIT" ]
2
2019-01-09T07:10:53.000Z
2020-07-21T00:44:52.000Z
# -*- coding: utf-8 -*- # # # mtm.py # # purpose: Wrap mtm2.f # author: Filipe P. A. Fernandes # e-mail: ocefpaf@gmail # web: http://ocefpaf.tiddlyspot.com/ # created: 27-Jul-2012 # modified: Fri 27 Jul 2012 06:43:45 PM BRT # # obs: MultiTaper Spectral Analysis. # import mtm2 import numpy as np import matp...
32.622222
79
0.604394
9f2b9a943dd8c9ba18ae389f7c8571bdad3ba99f
31,252
py
Python
pymatgen/io/abinit/abitimer.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
1
2021-10-18T01:26:50.000Z
2021-10-18T01:26:50.000Z
pymatgen/io/abinit/abitimer.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
null
null
null
pymatgen/io/abinit/abitimer.py
Chessmag/pymatgen
61a4bb7a1792e1ea2379abd45b3c40efb816fd64
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides objects for extracting timing data from the ABINIT output files It also provides tools to analye and to visualize the parallel efficiency. """ import sys import os import collections im...
33.895879
119
0.565308
ebdd9074b2abe09a12e479c79af89c5258c3c947
10,110
py
Python
wetterdienst/provider/eccc/observation/metadata/unit.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
155
2020-07-03T05:09:22.000Z
2022-03-28T06:57:39.000Z
wetterdienst/provider/eccc/observation/metadata/unit.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
453
2020-07-02T21:21:52.000Z
2022-03-31T21:35:36.000Z
wetterdienst/provider/eccc/observation/metadata/unit.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
21
2020-09-07T12:13:27.000Z
2022-03-26T16:26:09.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. from wetterdienst.metadata.unit import OriginUnit, SIUnit, UnitEnum from wetterdienst.util.parameter import DatasetTreeCore class EcccObservationUnit(DatasetTreeCore): c...
35.104167
84
0.609298
164cf366e05cfa38df5c72d3b5a4b3501478d058
59,119
py
Python
api/chalicelib/core/sessions.py
tares003/openreplay
098a0675286710f261425a2aece51644c86e1900
[ "MIT" ]
1
2022-02-16T11:41:05.000Z
2022-02-16T11:41:05.000Z
api/chalicelib/core/sessions.py
tares003/openreplay
098a0675286710f261425a2aece51644c86e1900
[ "MIT" ]
null
null
null
api/chalicelib/core/sessions.py
tares003/openreplay
098a0675286710f261425a2aece51644c86e1900
[ "MIT" ]
null
null
null
import schemas from chalicelib.core import events, metadata, events_ios, \ sessions_mobs, issues, projects, errors, resources, assist, performance_event from chalicelib.utils import pg_client, helper, dev, metrics_helper SESSION_PROJECTION_COLS = """s.project_id, s.session_id::text AS session_id, s.user_uuid, s.us...
54.892293
203
0.518311
3376ad41740ce43c7aeebeebf3d549d2f66a7c1d
1,577
py
Python
src/accounts/migrations/0001_initial.py
Saruni0305/oop-work-2
371787017cdd8446220b646c0070c4e53065bff5
[ "MIT" ]
24
2018-11-17T21:02:06.000Z
2021-11-18T23:02:00.000Z
src/accounts/migrations/0001_initial.py
Saruni0305/oop-work-2
371787017cdd8446220b646c0070c4e53065bff5
[ "MIT" ]
9
2020-06-05T21:43:20.000Z
2021-11-15T17:49:01.000Z
src/accounts/migrations/0001_initial.py
SaruniM/oop-work-2
371787017cdd8446220b646c0070c4e53065bff5
[ "MIT" ]
15
2019-03-08T20:19:17.000Z
2021-12-29T10:16:14.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2017-12-31 17:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User',...
36.674419
114
0.567533
03dba78cf64649ea49e6e5e3a78d739d706ce563
25,375
py
Python
examples/autoignition-mpi.py
illinois-ceesd/mirgecom
6ae28905dbb9d073a9f778111d12b10e474fe799
[ "MIT" ]
3
2020-08-18T16:31:30.000Z
2021-03-02T20:20:07.000Z
examples/autoignition-mpi.py
illinois-ceesd/mirgecom
6ae28905dbb9d073a9f778111d12b10e474fe799
[ "MIT" ]
356
2020-05-29T04:44:50.000Z
2022-03-31T00:09:49.000Z
examples/autoignition-mpi.py
illinois-ceesd/mirgecom
6ae28905dbb9d073a9f778111d12b10e474fe799
[ "MIT" ]
16
2020-09-11T20:56:57.000Z
2021-07-28T19:21:05.000Z
"""Demonstrate combustive mixture with Pyrometheus.""" __copyright__ = """ Copyright (C) 2020 University of Illinois Board of Trustees """ __license__ = """ 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...
39.648438
85
0.647764
e985bd0f16edf042c605bd328098f8e34f1f2e0a
662
py
Python
vcr/serializers/gzipserializer.py
mrgrassho/vcrpy-custom
695076ef53f4989dab023ae35215a033c2182fd2
[ "MIT" ]
null
null
null
vcr/serializers/gzipserializer.py
mrgrassho/vcrpy-custom
695076ef53f4989dab023ae35215a033c2182fd2
[ "MIT" ]
null
null
null
vcr/serializers/gzipserializer.py
mrgrassho/vcrpy-custom
695076ef53f4989dab023ae35215a033c2182fd2
[ "MIT" ]
null
null
null
import yaml # Use the libYAML versions if possible try: from yaml import CLoader as Loader, CDumper as Dumper import zlib from base64 import b64encode, b64decode except ImportError: from yaml import Loader, Dumper def deserialize(b64encoded_cassete): compressed_cassete = b64decode(b64encoded_cass...
31.52381
66
0.777946
96be88e3ec643dbd19e58fcf4364bce0fafb6c5b
7,285
py
Python
scipy/integrate/odepack.py
FRidh/scipy
dabfb4586e0b656b5f6da8b301643b918259e61f
[ "BSD-3-Clause" ]
39
2016-11-08T11:24:30.000Z
2021-11-18T06:50:21.000Z
scipy/integrate/odepack.py
FRidh/scipy
dabfb4586e0b656b5f6da8b301643b918259e61f
[ "BSD-3-Clause" ]
1
2015-09-30T05:26:54.000Z
2016-03-22T15:09:56.000Z
scipy/integrate/odepack.py
FRidh/scipy
dabfb4586e0b656b5f6da8b301643b918259e61f
[ "BSD-3-Clause" ]
13
2017-04-08T08:03:12.000Z
2021-08-25T08:38:52.000Z
# Author: Travis Oliphant from __future__ import division, print_function, absolute_import __all__ = ['odeint'] from . import _odepack from copy import copy import warnings class ODEintWarning(Warning): pass _msgs = {2: "Integration successful.", 1: "Nothing was done; the integration time was 0.", ...
43.106509
102
0.613452
19ba8983dba3b7513a0bfecfd4859025c0cc4087
8,010
py
Python
src/api/dcps/python/test/test_instance_operations.py
brezillon/opensplice
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
[ "Apache-2.0" ]
133
2017-11-09T02:10:00.000Z
2022-03-29T09:45:10.000Z
src/api/dcps/python/test/test_instance_operations.py
brezillon/opensplice
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
[ "Apache-2.0" ]
131
2017-11-07T14:48:43.000Z
2022-03-13T15:30:47.000Z
src/api/dcps/python/test/test_instance_operations.py
brezillon/opensplice
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
[ "Apache-2.0" ]
94
2017-11-09T02:26:19.000Z
2022-02-24T06:38:25.000Z
# # Vortex OpenSplice # # This software and documentation are Copyright 2006 to TO_YEAR ADLINK # Technology Limited, its affiliated companies and licensors. All rights # reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in ...
34.085106
85
0.607116
551bacb09ffe983de8bc4b0940f7459b262f390e
2,114
py
Python
swerve/core/qml.py
Swerved/Hulkster
a7b5fd9cefe17032d3a738247cb2633d3ecddb31
[ "blessing" ]
null
null
null
swerve/core/qml.py
Swerved/Hulkster
a7b5fd9cefe17032d3a738247cb2633d3ecddb31
[ "blessing" ]
null
null
null
swerve/core/qml.py
Swerved/Hulkster
a7b5fd9cefe17032d3a738247cb2633d3ecddb31
[ "blessing" ]
null
null
null
""" Property Bindings for QML https://stackoverflow.com/questions/62378735/how-to-acheive-simpliefed-two-way-data-binding-in-python-and-qt-quick-qml-applic """ from PySide2 import QtCore class PropertyMeta(type(QtCore.QObject)): def __new__(cls, name, bases, attrs): for key in list(attrs.keys()): ...
33.03125
125
0.667928
29bb5ecdbe6fd583da3aece9cb12e417a905d199
23,839
py
Python
python/tvm/micro/contrib/zephyr.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
3
2019-06-18T12:53:48.000Z
2021-11-17T10:56:51.000Z
python/tvm/micro/contrib/zephyr.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/tvm/micro/contrib/zephyr.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2021-02-06T01:56:20.000Z
2021-02-06T01:56:20.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.84812
100
0.608163
e8dc330e0cd659f91bc0d09987ce9d2246f68c1b
25,508
py
Python
python/ray/tune/logger.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
1
2021-09-20T15:45:59.000Z
2021-09-20T15:45:59.000Z
python/ray/tune/logger.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
53
2021-10-06T20:08:04.000Z
2022-03-21T20:17:25.000Z
python/ray/tune/logger.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
1
2022-03-24T22:48:21.000Z
2022-03-24T22:48:21.000Z
import csv import json import logging import numpy as np import os import yaml from typing import Iterable, TYPE_CHECKING, Dict, List, Optional, TextIO, Type import ray.cloudpickle as cloudpickle from ray.tune.callback import Callback from ray.tune.utils.util import SafeFallbackEncoder from ray.util.debug import log...
33.607378
88
0.601968
7e6ae4c8def60153196a4e2bedc03f3c8c8584fc
6,656
py
Python
qa/rpc-tests/setmaxconnections.py
steve-cw-chung/dogecoin
35914ee5c76e41777307366f579eecbbad9b35de
[ "MIT" ]
null
null
null
qa/rpc-tests/setmaxconnections.py
steve-cw-chung/dogecoin
35914ee5c76e41777307366f579eecbbad9b35de
[ "MIT" ]
null
null
null
qa/rpc-tests/setmaxconnections.py
steve-cw-chung/dogecoin
35914ee5c76e41777307366f579eecbbad9b35de
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2021 The Dogecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Exercise setmaxconnections RPC command # # from the constants MAX_ADDNODE_CONNECTIONS and PROTECTED_INBOU...
34.848168
114
0.662109
481b509e4cb5c60412e24a54570f60e996a90d57
8,268
py
Python
tests/sources/test_license.py
junjihashimoto/webots
12eb8c010275f390ae97d91d5c04906ffa00c262
[ "Apache-2.0" ]
null
null
null
tests/sources/test_license.py
junjihashimoto/webots
12eb8c010275f390ae97d91d5c04906ffa00c262
[ "Apache-2.0" ]
null
null
null
tests/sources/test_license.py
junjihashimoto/webots
12eb8c010275f390ae97d91d5c04906ffa00c262
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 1996-2019 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.978723
126
0.620827
05e48ddac63f21b99f039b1744b101ef5fd78816
8,166
py
Python
mmedit/models/backbones/sr_backbones/tof.py
rivergold/mmediting
fd972635c48bb065db29d1b5090592a87c7263d2
[ "Apache-2.0" ]
null
null
null
mmedit/models/backbones/sr_backbones/tof.py
rivergold/mmediting
fd972635c48bb065db29d1b5090592a87c7263d2
[ "Apache-2.0" ]
null
null
null
mmedit/models/backbones/sr_backbones/tof.py
rivergold/mmediting
fd972635c48bb065db29d1b5090592a87c7263d2
[ "Apache-2.0" ]
2
2021-09-07T05:21:18.000Z
2021-09-17T22:34:54.000Z
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmcv.runner import load_checkpoint from mmedit.models.common import flow_warp from mmedit.models.registry import BACKBONES from mmedit.utils import get_root_logger class BasicModule(nn.Module): """Basic module...
31.167939
79
0.52841
f15bfe153051ea5c40d291d1aa581aef1a7e1f03
5,477
py
Python
src/HavokMud/logging_support.py
Beirdo/HavokMud-redux
c681a320a99f299744abb2ef5b728779ad5d7710
[ "MIT" ]
null
null
null
src/HavokMud/logging_support.py
Beirdo/HavokMud-redux
c681a320a99f299744abb2ef5b728779ad5d7710
[ "MIT" ]
null
null
null
src/HavokMud/logging_support.py
Beirdo/HavokMud-redux
c681a320a99f299744abb2ef5b728779ad5d7710
[ "MIT" ]
null
null
null
import logging import logging.config import os LOGDIR = "/var/log/havokmud" class AccountLogMessage(object): def __init__(self, account, message, _global=False): self.ip = account.ip_address self.email = account.email self.message = message self._global = _global def __str__(...
30.259669
115
0.50356
edeacde1e693fdf92d440db9887e835d1b86a4c9
12,180
py
Python
photoshop/views.py
kmranrg/BabyPhotoshop
52efb2bad9f46e6c2d1351aae0b1e1587a98d736
[ "BSD-3-Clause" ]
null
null
null
photoshop/views.py
kmranrg/BabyPhotoshop
52efb2bad9f46e6c2d1351aae0b1e1587a98d736
[ "BSD-3-Clause" ]
null
null
null
photoshop/views.py
kmranrg/BabyPhotoshop
52efb2bad9f46e6c2d1351aae0b1e1587a98d736
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render from django.core.files.storage import FileSystemStorage from os import path, remove from PIL import ImageEnhance, Image, ImageFilter # Create your views here. def index(request): return render(request, 'index.html') def sharpness(sharpnessValue, imageFileName): imageFileNa...
34.213483
103
0.666092
27dbd3e3b8ace7587c10551fec9b3d89a4a402b7
10,733
py
Python
python_modules/dagster/dagster/core/types/config_schema.py
sd2k/dagster
d15542e2be374a0c35f2b1623c1fff98f002c605
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/types/config_schema.py
sd2k/dagster
d15542e2be374a0c35f2b1623c1fff98f002c605
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/types/config_schema.py
sd2k/dagster
d15542e2be374a0c35f2b1623c1fff98f002c605
[ "Apache-2.0" ]
null
null
null
import hashlib from dagster import check from dagster.config.config_type import ConfigType, ConfigTypeKind from dagster.core.decorator_utils import ( split_function_parameters, validate_decorated_fn_positionals, ) from dagster.core.errors import DagsterInvalidDefinitionError from dagster.utils import ensure_ge...
37.138408
107
0.724122
43c46b118676e930174fb52942f6f952fd173a19
33,223
py
Python
aikit/cross_validation.py
gfournier/aikit
23257f365a4f387cbb86f0ed3994b696a81b57c6
[ "BSD-2-Clause" ]
23
2018-09-14T07:29:21.000Z
2021-07-08T19:48:23.000Z
aikit/cross_validation.py
gfournier/aikit
23257f365a4f387cbb86f0ed3994b696a81b57c6
[ "BSD-2-Clause" ]
40
2019-05-28T09:17:25.000Z
2022-01-31T15:53:36.000Z
aikit/cross_validation.py
gfournier/aikit
23257f365a4f387cbb86f0ed3994b696a81b57c6
[ "BSD-2-Clause" ]
11
2018-11-21T09:38:45.000Z
2020-09-25T10:24:54.000Z
# -*- coding: utf-8 -*- """ Created on Thu Aug 23 09:40:33 2018 @author: Lionel Massoulard """ import numpy as np import pandas as pd import scipy.sparse as sp from collections import OrderedDict from time import time import numbers from joblib import Parallel, delayed import sklearn.model_selection from sklearn....
33.256256
146
0.604461
87cf0393cba6c3c7f1662ba9624bdbd45fe92e0f
2,931
py
Python
tests/test_table_creator.py
schafrn/s3parq
f854819540e069f53fe42938a9bb6b8f800907b5
[ "MIT" ]
null
null
null
tests/test_table_creator.py
schafrn/s3parq
f854819540e069f53fe42938a9bb6b8f800907b5
[ "MIT" ]
null
null
null
tests/test_table_creator.py
schafrn/s3parq
f854819540e069f53fe42938a9bb6b8f800907b5
[ "MIT" ]
null
null
null
import pytest from mock import patch import s3parq.publish_redshift as rs from s3parq.session_helper import SessionHelper class MockScopeObj(): def execute(self, schema_string: str): pass def scope_execute_mock(mock_session_helper): pass class Test(): # Test that the function is called with the...
42.478261
111
0.669737
6bd396487493814fb8cb42657951c90f99beb143
1,479
py
Python
stats/frames.py
fc8240/Python-Baseball
68c94963006838c22770b3ce69b18a98af68acab
[ "MIT" ]
null
null
null
stats/frames.py
fc8240/Python-Baseball
68c94963006838c22770b3ce69b18a98af68acab
[ "MIT" ]
null
null
null
stats/frames.py
fc8240/Python-Baseball
68c94963006838c22770b3ce69b18a98af68acab
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt try: from data import games plays_frame = games.query("type == 'play' & event != 'NP'") plays_frame.columns = ['type', 'inning', 'team', 'player', 'count', 'pitches', 'event', 'game_id', 'year'] info = games.query("type == 'info' & (multi2 ...
43.5
111
0.555781
65502fd927e25057221882134dea60be9b1a9b95
1,320
py
Python
gcloud/tasktmpl3/migrations/0005_tasktemplate_tmp_field.py
gangh/bk-sops
29f4b4915be42650c2eeee637e0cf798e4066f09
[ "Apache-2.0" ]
1
2019-12-23T07:23:35.000Z
2019-12-23T07:23:35.000Z
gcloud/tasktmpl3/migrations/0005_tasktemplate_tmp_field.py
bk-sops/bk-sops
9f5950b13473bf7b5032528b20016b7a571bb3cd
[ "Apache-2.0" ]
9
2020-02-12T03:15:49.000Z
2021-06-10T22:04:51.000Z
gcloud/tasktmpl3/migrations/0005_tasktemplate_tmp_field.py
bk-sops/bk-sops
9f5950b13473bf7b5032528b20016b7a571bb3cd
[ "Apache-2.0" ]
1
2022-01-17T11:32:05.000Z
2022-01-17T11:32:05.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
38.823529
166
0.738636
2743bc2c43954cd790a7312943facee63d01fc87
292
py
Python
config.py
Wilscos/recommender-systems-bibliometric-analysis
bbba45340bf4d494278784ca1376e443f47d5012
[ "MIT" ]
null
null
null
config.py
Wilscos/recommender-systems-bibliometric-analysis
bbba45340bf4d494278784ca1376e443f47d5012
[ "MIT" ]
null
null
null
config.py
Wilscos/recommender-systems-bibliometric-analysis
bbba45340bf4d494278784ca1376e443f47d5012
[ "MIT" ]
null
null
null
import os import pathlib MASTER = pathlib.Path().absolute() DATA_PATH = os.path.join(MASTER, 'data') PLOT_PATH = os.path.join(MASTER, 'plots') PDF_PATH = os.path.join(DATA_PATH, 'articles_pdf') TXT_PATH = os.path.join(DATA_PATH, 'texts') POS_PATH = os.path.join(DATA_PATH, 'pos_tags.json')
26.545455
51
0.736301
6489923fe5c2757dd3b558298b99d07c6fdcdfcf
5,093
py
Python
cache_utils/tests.py
listingmirror/django-cache-utils
086a8a60625023aa744b3f0de90bd8d9198681be
[ "BSD-3-Clause" ]
25
2015-04-26T13:44:03.000Z
2022-02-14T16:08:35.000Z
cache_utils/tests.py
listingmirror/django-cache-utils
086a8a60625023aa744b3f0de90bd8d9198681be
[ "BSD-3-Clause" ]
20
2015-06-04T23:45:06.000Z
2022-03-29T23:57:41.000Z
cache_utils/tests.py
listingmirror/django-cache-utils
086a8a60625023aa744b3f0de90bd8d9198681be
[ "BSD-3-Clause" ]
20
2015-10-30T02:27:38.000Z
2022-02-24T01:40:44.000Z
# -*- coding: utf-8 -*- from unittest import TestCase from django.core.cache import cache from cache_utils.decorators import cached from cache_utils.utils import sanitize_memcached_key, _func_type, _func_info def foo(a, b): pass class Foo(object): def foo(self, a, b): pass @classmethod ...
26.94709
93
0.597683
873eb6de4b696f1240de38efcf7c40168581d257
1,780
py
Python
menpo/shape/base.py
apapaion/menpo
9834f0437ca3cbe6a972c2a62f7c970ae950cf32
[ "BSD-3-Clause" ]
311
2015-01-01T17:16:18.000Z
2021-12-20T11:25:23.000Z
menpo/shape/base.py
apapaion/menpo
9834f0437ca3cbe6a972c2a62f7c970ae950cf32
[ "BSD-3-Clause" ]
298
2015-01-02T17:30:22.000Z
2022-01-02T22:12:17.000Z
menpo/shape/base.py
apapaion/menpo
9834f0437ca3cbe6a972c2a62f7c970ae950cf32
[ "BSD-3-Clause" ]
80
2015-02-02T14:17:36.000Z
2021-12-22T10:09:28.000Z
from menpo.base import Vectorizable from menpo.landmark import Landmarkable from menpo.transform.base import Transformable from menpo.visualize import LandmarkableViewable, Viewable class Shape(Vectorizable, Transformable, Landmarkable, LandmarkableViewable, Viewable): """ Abstract representation of shape. Sh...
34.230769
87
0.653933
21cdbfdd2f46ccb6d24b0dd201d61edff9807ad9
8,974
py
Python
openmdao/core/tests/test_system.py
fzahle/OpenMDAO
ce53b0a0862ac1162d5daad7b0ca34ae085ee47c
[ "Apache-2.0" ]
1
2016-05-10T17:01:17.000Z
2016-05-10T17:01:17.000Z
openmdao/core/tests/test_system.py
gsoxley/OpenMDAO
709401e535cf6933215abd942d4b4d49dbf61b2b
[ "Apache-2.0" ]
3
2016-05-10T16:55:46.000Z
2018-10-22T23:28:52.000Z
openmdao/core/tests/test_system.py
gsoxley/OpenMDAO
709401e535cf6933215abd942d4b4d49dbf61b2b
[ "Apache-2.0" ]
2
2018-04-05T15:53:54.000Z
2018-10-22T22:48:00.000Z
""" Unit tests for the system interface.""" import unittest from six import assertRaisesRegex import numpy as np from openmdao.api import Problem, Group, IndepVarComp, ExecComp from openmdao.utils.assert_utils import assert_rel_error, assert_warning class TestSystem(unittest.TestCase): def test_vector_context...
34.121673
92
0.585358
fb456b19d9a00a7fd5e0d692313892c0fd834462
27,188
py
Python
nnunet/network_architecture/generic_BTS_Netv5_5.py
zjdcts/H-FC
60a00322d77ae07519174a3eb0b02270aa8578c1
[ "Apache-2.0" ]
2
2022-03-17T07:12:58.000Z
2022-03-17T07:13:02.000Z
nnunet/network_architecture/generic_BTS_Netv5_5.py
zjdcts/H-FC
60a00322d77ae07519174a3eb0b02270aa8578c1
[ "Apache-2.0" ]
null
null
null
nnunet/network_architecture/generic_BTS_Netv5_5.py
zjdcts/H-FC
60a00322d77ae07519174a3eb0b02270aa8578c1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
45.013245
147
0.617405
53bb5936b5c59c77bfea56da9dd3efe0cee4c117
489
py
Python
official/vision/keypoints/models/__init__.py
ChenXinhao/Models
91fa3b9710caefaeeb0d95cab003b58c2c8ba043
[ "Apache-2.0" ]
null
null
null
official/vision/keypoints/models/__init__.py
ChenXinhao/Models
91fa3b9710caefaeeb0d95cab003b58c2c8ba043
[ "Apache-2.0" ]
null
null
null
official/vision/keypoints/models/__init__.py
ChenXinhao/Models
91fa3b9710caefaeeb0d95cab003b58c2c8ba043
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
34.928571
88
0.748466
6a40e198b75e479a57dd99f5d3a651eb34f4db37
36,553
py
Python
TrainingExtensions/tensorflow/test/python/test_qc_quantize_op.py
styler00dollar/Colab-docker-aimet
9e70d1e3729be8e890bc58e1f5af30a706a15e96
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/tensorflow/test/python/test_qc_quantize_op.py
seaun163/aimet
de94e5522e0c9250fb422d064b77ef9ecc70f239
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/tensorflow/test/python/test_qc_quantize_op.py
seaun163/aimet
de94e5522e0c9250fb422d064b77ef9ecc70f239
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2019, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condi...
53.05225
140
0.572046
1f2c8c9110006e29e721717eeefa09ee02643c3e
548
py
Python
models/BOS_SVM.py
probeu/RDS
1c6cb75a000a5d95ef61a4e26b45de6b587a011d
[ "MIT" ]
10
2020-06-12T12:29:29.000Z
2020-09-05T06:28:34.000Z
models/BOS_SVM.py
ReML-AI/RDS
1c6cb75a000a5d95ef61a4e26b45de6b587a011d
[ "MIT" ]
1
2020-06-22T12:08:52.000Z
2020-06-22T12:08:52.000Z
models/BOS_SVM.py
probeu/RDS
1c6cb75a000a5d95ef61a4e26b45de6b587a011d
[ "MIT" ]
3
2020-06-15T17:21:16.000Z
2020-08-27T02:22:54.000Z
import numpy as np from sklearn.svm import SVR class BOS_SVM: def __init__(self): pass def run(self, state, action): data_x, data_y = state train_x, train_y, test_x, test_y = ( data_x[action == 1], data_y[action == 1].ravel(), data_x[action == 0]...
26.095238
60
0.536496
27d6b61321c60319bee66bfe49f4ebca87f8a1eb
1,450
py
Python
data/settings.py
lothesven/Help-MacGyver-to-escape
4df57a172fb1eb0e32af24bbfc177064d91ff69b
[ "Unlicense" ]
null
null
null
data/settings.py
lothesven/Help-MacGyver-to-escape
4df57a172fb1eb0e32af24bbfc177064d91ff69b
[ "Unlicense" ]
1
2019-07-12T16:38:20.000Z
2019-07-12T16:38:20.000Z
data/settings.py
lothesven/Help-MacGyver-to-escape
4df57a172fb1eb0e32af24bbfc177064d91ff69b
[ "Unlicense" ]
null
null
null
"""Contains all settings constants such as:\n colors, fonts, sounds, images, positions, structures and sizes""" import os.path from pygame import font DIRECTORY = os.path.abspath(os.path.dirname(__file__)) HEIGHT, WIDTH = 600, 600 MARGIN = 40 FOOTLOGS = 80 TILESIZE = 40 MENU = os.path.join(DIRECTORY, "images", "mac...
35.365854
76
0.707586
503e515a2d49e7822e79270dc3185ee187e08440
1,547
py
Python
RunModel_CoNLL_Format.py
tommasoc80/event_interoperability
0dcdb72a2bd32f65e021c15d44a40a37601e9367
[ "CC0-1.0" ]
null
null
null
RunModel_CoNLL_Format.py
tommasoc80/event_interoperability
0dcdb72a2bd32f65e021c15d44a40a37601e9367
[ "CC0-1.0" ]
null
null
null
RunModel_CoNLL_Format.py
tommasoc80/event_interoperability
0dcdb72a2bd32f65e021c15d44a40a37601e9367
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python # This scripts loads a pretrained model and a input file in CoNLL format (each line a token, sentences separated by an empty line). # The input sentences are passed to the model for tagging. Prints the tokens and the tags in a CoNLL format to stdout # Usage: python RunModel_ConLL_Format.py modelPath i...
30.333333
131
0.738849
62b35b79ea0bcca181dc64abe40436b3f1b57f1d
1,234
py
Python
main/auth/google.py
ssxenon01/contact-sharing
ad2bec5b03f123837eab6a7126896a8faf17639c
[ "MIT" ]
1
2015-09-12T10:12:16.000Z
2015-09-12T10:12:16.000Z
main/auth/google.py
ssxenon01/contact-sharing
ad2bec5b03f123837eab6a7126896a8faf17639c
[ "MIT" ]
null
null
null
main/auth/google.py
ssxenon01/contact-sharing
ad2bec5b03f123837eab6a7126896a8faf17639c
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from google.appengine.api import users import flask import auth import model import util from main import app @app.route('/signin/google/') def signin_google(): auth.save_request_params() google_url = users.create_login_url(flask.url_for('google_authorize...
24.68
73
0.740681
7d1a423f796912b6a820e050ad98b3e355a32e9c
1,365
py
Python
project/urls.py
Rajkumar-brk/Emotion-recognition-using-Text
d854247e1ce2721bcdf19bc237957c78ff1d100c
[ "MIT" ]
52
2019-07-26T04:19:57.000Z
2022-03-29T12:03:41.000Z
project/urls.py
Rajkumar-brk/Emotion-recognition-using-Text
d854247e1ce2721bcdf19bc237957c78ff1d100c
[ "MIT" ]
2
2019-09-17T02:11:52.000Z
2021-12-07T01:30:35.000Z
project/urls.py
Rajkumar-brk/Emotion-recognition-using-Text
d854247e1ce2721bcdf19bc237957c78ff1d100c
[ "MIT" ]
87
2019-07-26T18:22:24.000Z
2022-03-29T07:15:36.000Z
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
34.125
91
0.676923
49efa0df5be83a301cd2551d1a02c0fc8c39d482
95
py
Python
mailclient/apps.py
sudhanshu456/email-client-django
fc59dc1a3ba4e7f5fec5f8ce82dfae73a64ff537
[ "MIT" ]
null
null
null
mailclient/apps.py
sudhanshu456/email-client-django
fc59dc1a3ba4e7f5fec5f8ce82dfae73a64ff537
[ "MIT" ]
null
null
null
mailclient/apps.py
sudhanshu456/email-client-django
fc59dc1a3ba4e7f5fec5f8ce82dfae73a64ff537
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MailclientConfig(AppConfig): name = 'mailclient'
15.833333
34
0.768421
12483ef4de2e39137f52b9282b4e28830906dde5
11,591
py
Python
fsdet/data/builtin.py
luweishuang/few-shot-object-detection
956517f4e714a205583ce113ebc56b38af53df09
[ "Apache-2.0" ]
null
null
null
fsdet/data/builtin.py
luweishuang/few-shot-object-detection
956517f4e714a205583ce113ebc56b38af53df09
[ "Apache-2.0" ]
null
null
null
fsdet/data/builtin.py
luweishuang/few-shot-object-detection
956517f4e714a205583ce113ebc56b38af53df09
[ "Apache-2.0" ]
null
null
null
""" This file registers pre-defined datasets at hard-coded paths, and their metadata. We hard-code metadata for common datasets. This will enable: 1. Consistency check when loading the datasets 2. Use models on these standard datasets directly and run demos, without having to download the dataset annotations We hard...
37.390323
87
0.570356
47711d6f57d1e19b269abd90dd4ff104cb3a9aad
409
py
Python
code/course_py_docker/wsgi.py
leandrolasnor/todo
cdf1377511427c942b2819954880acba3830f685
[ "Apache-2.0" ]
null
null
null
code/course_py_docker/wsgi.py
leandrolasnor/todo
cdf1377511427c942b2819954880acba3830f685
[ "Apache-2.0" ]
null
null
null
code/course_py_docker/wsgi.py
leandrolasnor/todo
cdf1377511427c942b2819954880acba3830f685
[ "Apache-2.0" ]
null
null
null
""" WSGI config for course_py_docker project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
24.058824
78
0.794621
337a8fa821705d9ae2f4a8df167f1faf0c0d9695
2,700
py
Python
packages/cspell-lib/samples/src/sample.py
DenysVuika/cspell
126b28fc501d4e709699b381edc09e0c9dad48fb
[ "MIT" ]
406
2019-05-29T15:57:00.000Z
2022-03-31T17:34:41.000Z
packages/cspell-lib/samples/src/sample.py
DenysVuika/cspell
126b28fc501d4e709699b381edc09e0c9dad48fb
[ "MIT" ]
1,002
2019-05-13T08:18:49.000Z
2022-03-31T06:52:11.000Z
packages/cspell-lib/samples/src/sample.py
DenysVuika/cspell
126b28fc501d4e709699b381edc09e0c9dad48fb
[ "MIT" ]
50
2019-06-14T20:54:27.000Z
2022-02-28T23:34:18.000Z
""" Roman Numbers Sample Python file. with email address: ExampleCode <possiblyhelpfulcodeexamples@code.example.com> """ import re class OutOfRangeError(ValueError): pass class NotIntegerError(ValueError): pass class InvalidRomanNumeral(ValueError): pass romanNumeralValues = { 'I': 1, 'V': 5, 'X': 10, ...
23.478261
84
0.612222
767854b0fbace8cf6d38a03e5b1457428e94741a
5,192
py
Python
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pad.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pad.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pad.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2021 PaddlePaddle 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 appli...
37.085714
131
0.585901
2167091cd087a4618b75242f018ca06db6d9c38a
230
py
Python
test.py
qwc-services/qwc-data-service
b20f47ad08275439233034ef3b31a4c437be3fc7
[ "MIT" ]
2
2021-08-11T10:34:44.000Z
2022-02-24T10:26:39.000Z
test.py
qwc-services/qwc-data-service
b20f47ad08275439233034ef3b31a4c437be3fc7
[ "MIT" ]
7
2020-10-17T15:38:39.000Z
2022-01-08T09:59:21.000Z
test.py
qwc-services/qwc-data-service
b20f47ad08275439233034ef3b31a4c437be3fc7
[ "MIT" ]
5
2019-05-17T11:27:55.000Z
2020-12-28T09:24:25.000Z
import unittest # from tests.api_tests import * from tests.feature_validation_tests import * # from tests.feature_validation_tests_somap import * if __name__ == '__main__': # run all imported test cases unittest.main()
20.909091
52
0.76087
79bcf770250a23086d0fc88be1ad1dc2cfedf0ac
2,075
py
Python
oauth2_provider/admin.py
redhawkIT/django-oauth-toolkit
3909595f5d212b689fa9903ea70001503850d689
[ "BSD-2-Clause-FreeBSD" ]
2
2021-03-21T03:35:24.000Z
2021-04-20T05:49:19.000Z
oauth2_provider/admin.py
redhawkIT/django-oauth-toolkit
3909595f5d212b689fa9903ea70001503850d689
[ "BSD-2-Clause-FreeBSD" ]
4
2018-06-20T11:33:43.000Z
2021-05-28T08:02:21.000Z
oauth2_provider/admin.py
redhawkIT/django-oauth-toolkit
3909595f5d212b689fa9903ea70001503850d689
[ "BSD-2-Clause-FreeBSD" ]
4
2018-06-20T11:14:46.000Z
2021-05-21T15:56:02.000Z
from django.contrib import admin from oauth2_provider.models import ( get_access_token_admin_class, get_access_token_model, get_application_admin_class, get_application_model, get_grant_admin_class, get_grant_model, get_id_token_admin_class, get_id_token_model, get_refresh_token_adm...
32.421875
84
0.773976
b1f3186e133d4b984298a17501a5e530a15f3a57
1,559
py
Python
examples/user/components/run_examples.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
1
2015-11-30T08:01:39.000Z
2015-11-30T08:01:39.000Z
examples/user/components/run_examples.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
27
2018-05-24T18:31:25.000Z
2021-10-16T03:57:52.000Z
examples/user/components/run_examples.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
7
2019-07-19T02:30:56.000Z
2021-06-02T22:00:01.000Z
#!/usr/bin/env python # ====================================================================== # # Brad T. Aagaard, U.S. Geological Survey # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copyright (c) 2010-2017 University of California, Davis # # S...
25.983333
72
0.613214
49509263e7bebc04f863b0921f3a6d11b1d554d0
23,100
py
Python
controls/pyqgis_controls/main.py
cabesuon/ideuy_controls
508217725ffd4993d574acec6ea9d80c0401591a
[ "MIT" ]
null
null
null
controls/pyqgis_controls/main.py
cabesuon/ideuy_controls
508217725ffd4993d574acec6ea9d80c0401591a
[ "MIT" ]
null
null
null
controls/pyqgis_controls/main.py
cabesuon/ideuy_controls
508217725ffd4993d574acec6ea9d80c0401591a
[ "MIT" ]
null
null
null
""" Module that controls the correct flow of the hydrography. Examples: $python main.py -h. $python main.py dbname dbschema user password output rem conf. $python main.py dbname dbschema user password output rem conf. $python main.py test_vector_db duplicate_geoms test_user test_password output --server loca...
42.385321
111
0.599048
28342bcafee742ffd58724a6243756276c902e06
80,274
py
Python
databricks/koalas/indexes/base.py
LSturtew/koalas
c8a3c88efeeae8ec06d2494a5e2391af21608cfb
[ "Apache-2.0" ]
null
null
null
databricks/koalas/indexes/base.py
LSturtew/koalas
c8a3c88efeeae8ec06d2494a5e2391af21608cfb
[ "Apache-2.0" ]
null
null
null
databricks/koalas/indexes/base.py
LSturtew/koalas
c8a3c88efeeae8ec06d2494a5e2391af21608cfb
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, 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 i...
32.486443
100
0.517664
630a20308d6773943d29e7d3558c570d542d4cbb
2,772
py
Python
backend/models/entry.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
10
2020-03-20T19:14:43.000Z
2020-10-29T21:31:40.000Z
backend/models/entry.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
41
2020-03-20T20:27:55.000Z
2020-03-24T21:49:37.000Z
backend/models/entry.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
1
2020-03-21T09:31:51.000Z
2020-03-21T09:31:51.000Z
from flask import abort from sqlalchemy import desc from sqlalchemy.exc import IntegrityError from app import db from models.queue import Queue from utils.id_generator import generate_entry_id class Entry(db.Model): id = db.Column(db.String, primary_key=True) queue_id = db.Column(db.String, db.ForeignKey('que...
33
97
0.58153
bd0df77786bddd609b3dec2deef8ebe43b8d6880
3,125
py
Python
habitat/datasets/roomnav/util.py
medhini/habitat-api
f0d4cdaacb12be43e58bf0b87f43074240faf99b
[ "MIT" ]
null
null
null
habitat/datasets/roomnav/util.py
medhini/habitat-api
f0d4cdaacb12be43e58bf0b87f43074240faf99b
[ "MIT" ]
null
null
null
habitat/datasets/roomnav/util.py
medhini/habitat-api
f0d4cdaacb12be43e58bf0b87f43074240faf99b
[ "MIT" ]
null
null
null
import csv from typing import List import os import gzip import habitat import random MP3D_SCENES_SPLITS_PATH = \ "datasets/scenes/scenes_mp3d.csv" GIBSON_SCENES_SPLITS_PATH = \ "datasets/scenes/scenes_gibson_fullplus.csv" GIBSON_HABITAT_SCENES_SPLITS_PATH = \ "datasets/scenes/scenes_gibson_habtiat.csv" ...
36.337209
78
0.65472
4bdeb8de9d562eed43566992e947d670909ff7f6
30
py
Python
src/tasks/routes/__init__.py
rrickgauer/tasks
6b40e71a56868497f902704808f9862196e29e87
[ "Apache-2.0" ]
null
null
null
src/tasks/routes/__init__.py
rrickgauer/tasks
6b40e71a56868497f902704808f9862196e29e87
[ "Apache-2.0" ]
59
2021-01-15T19:57:52.000Z
2021-09-15T01:26:52.000Z
src/tasks/routes/__init__.py
rrickgauer/tasks
6b40e71a56868497f902704808f9862196e29e87
[ "Apache-2.0" ]
null
null
null
from . import login as login
10
28
0.733333
3d136c4f0ff95c19d0e34f9b4358cc7307312945
920
py
Python
exercícios/EX_CursoEmVideo/ex106.py
jose-carlos-code/CursoEmvideo-python
8c9b82db2c2b906f6d8f2359a680b9b3af25da43
[ "MIT" ]
1
2021-01-11T15:10:36.000Z
2021-01-11T15:10:36.000Z
exercícios/EX_CursoEmVideo/ex106.py
jose-carlos-code/CursoEmvideo-python
8c9b82db2c2b906f6d8f2359a680b9b3af25da43
[ "MIT" ]
null
null
null
exercícios/EX_CursoEmVideo/ex106.py
jose-carlos-code/CursoEmvideo-python
8c9b82db2c2b906f6d8f2359a680b9b3af25da43
[ "MIT" ]
null
null
null
import time c = ( '\033[m', # 0 - sem cores '\033[0;30;41m', # 1 - vermelho '\033[0;30;42m', # 2 - verde '\033[0;30;43m', # 3 - amarelo '\033[0;30;44m', # 4 - azul '\033[0;30;45m', # 5 - roxo '\033[7;30m', # 6 - branco ) def ajuda(com): titulo(f...
23.589744
58
0.504348
ff943d93283c1657ddd517edea0692b51a513233
757
py
Python
run_onnx_on_tvm.py
mshr-h/nucleo-f746zg-microtvm-example
284005b60a10e7560fbb6d10e6311996f3774269
[ "MIT" ]
null
null
null
run_onnx_on_tvm.py
mshr-h/nucleo-f746zg-microtvm-example
284005b60a10e7560fbb6d10e6311996f3774269
[ "MIT" ]
null
null
null
run_onnx_on_tvm.py
mshr-h/nucleo-f746zg-microtvm-example
284005b60a10e7560fbb6d10e6311996f3774269
[ "MIT" ]
null
null
null
import tvm from tvm import relay import numpy as np import onnx from tvm.contrib import graph_executor model_path = "add.onnx" onnx_model = onnx.load(model_path) input1_name = "Input1" input2_name = "Input2" shape_dict = {input1_name: [1], input2_name: [1]} mod, params = relay.frontend.from_onnx(onnx_model, shape_di...
22.939394
62
0.729194
90b35ab7c8980bd936130dea7d3b95be78c7ed4d
119
py
Python
db/__init__.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
db/__init__.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
db/__init__.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
from .connection import get_connector, get_connection, execute, get_engine from .tables import * from .pandas import *
29.75
74
0.806723
623a4b6502bb6e50ea178404c7b6d7ddc56454ce
3,079
py
Python
test/functional/wallet_keypool.py
DancingAxolotl/encocoinplus
b3dcc750c48a4f4e2ffebd104e5426544fe2f6b8
[ "MIT" ]
4
2020-07-07T04:51:03.000Z
2021-05-17T10:28:51.000Z
test/functional/wallet_keypool.py
DancingAxolotl/encocoinplus
b3dcc750c48a4f4e2ffebd104e5426544fe2f6b8
[ "MIT" ]
13
2020-05-08T11:14:37.000Z
2020-05-12T10:03:53.000Z
test/functional/wallet_keypool.py
DancingAxolotl/encocoinplus
b3dcc750c48a4f4e2ffebd104e5426544fe2f6b8
[ "MIT" ]
22
2020-02-10T09:17:20.000Z
2020-07-10T10:33:26.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet keypool and interaction with wallet encryption/locking.""" from test_framework.test_fr...
38.012346
120
0.645664
5318a688e75fd0eee31385ebefcf3d8a5fdb3609
5,986
py
Python
plugins/commands.py
maxsupun/Mod-app-bot
527ab2c9ee68d71f9dd23da3c12bf6d01adbc0ac
[ "MIT" ]
1
2021-09-09T13:44:55.000Z
2021-09-09T13:44:55.000Z
plugins/commands.py
matheeshaofficial/Mod-app-bot
527ab2c9ee68d71f9dd23da3c12bf6d01adbc0ac
[ "MIT" ]
null
null
null
plugins/commands.py
matheeshaofficial/Mod-app-bot
527ab2c9ee68d71f9dd23da3c12bf6d01adbc0ac
[ "MIT" ]
null
null
null
import os import time import traceback import psutil import shutil import string import asyncio import info import logging from pyromod import listen from pyrogram import Client, filters from asyncio import TimeoutError from pyrogram.errors import MessageNotModified from pyrogram.types import InlineKeyboardButton, Inli...
35.005848
241
0.669395
bbfaea7f04879e85d1c4573de38e5d8d7838ac7c
19,415
py
Python
third_party/nucleus/util/vis.py
peterdfields/deepvariant
33fe874a7b2b4fdb67b0f6e361dd9e45f1f52676
[ "BSD-3-Clause" ]
4
2019-03-30T13:25:25.000Z
2020-10-14T18:47:21.000Z
third_party/nucleus/util/vis.py
kchennen/deepvariant
b92646f51df8cf157147e93ecd7a082c7b6db457
[ "BSD-3-Clause" ]
2
2019-09-07T05:07:35.000Z
2019-09-07T05:08:18.000Z
third_party/nucleus/util/vis.py
kchennen/deepvariant
b92646f51df8cf157147e93ecd7a082c7b6db457
[ "BSD-3-Clause" ]
1
2020-05-04T15:13:37.000Z
2020-05-04T15:13:37.000Z
# Copyright 2019 Google LLC. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
35.108499
80
0.699768
793b9156e6335de4c37dc86b19f5b660dc4c2730
7,278
py
Python
fem/gui/vtk_widget/vtk_graphics/interactor_styles/my_interactor_style.py
mjredmond/FEMApp
dd8cc53acf80d0a1bb83ce9c89bcfd51e85c6be8
[ "MIT" ]
1
2019-08-03T21:40:26.000Z
2019-08-03T21:40:26.000Z
fem/gui/vtk_widget/vtk_graphics/interactor_styles/my_interactor_style.py
mjredmond/FEMApp
dd8cc53acf80d0a1bb83ce9c89bcfd51e85c6be8
[ "MIT" ]
null
null
null
fem/gui/vtk_widget/vtk_graphics/interactor_styles/my_interactor_style.py
mjredmond/FEMApp
dd8cc53acf80d0a1bb83ce9c89bcfd51e85c6be8
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import import vtk from fem.utilities import MrSignal from ..picking import PickingManager from ...vtk_graphics import VTKGraphics from ...vtk_graphics.rendering import ( vtkPVInteractorStyle, vtkPVTrackballPan, vtkPVTrackballRotate, vtkPVTrackballZoom, vtkCameraMani...
34.169014
115
0.681506
3a97cc5fd6d9ba5653f8e837919cc4637160c046
5,769
py
Python
kubernetes_asyncio/client/models/v1beta1_network_policy_egress_rule.py
weltonrodrigo/kubernetes_asyncio
b793f3e9ea43cbd0f4ff40ace1b0b677682f4042
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1beta1_network_policy_egress_rule.py
weltonrodrigo/kubernetes_asyncio
b793f3e9ea43cbd0f4ff40ace1b0b677682f4042
[ "Apache-2.0" ]
13
2021-04-12T02:03:48.000Z
2022-03-28T02:08:46.000Z
kubernetes_asyncio/client/models/v1beta1_network_policy_egress_rule.py
weltonrodrigo/kubernetes_asyncio
b793f3e9ea43cbd0f4ff40ace1b0b677682f4042
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.16.14 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
38.205298
412
0.644132
41c456831bdbc07e0178b19cb79cd58800a81fb5
3,757
py
Python
travis_pypi_setup.py
vault-the/rigor
02f5ddb18092a114dc0a23c8fb60975e2b906e85
[ "MIT" ]
null
null
null
travis_pypi_setup.py
vault-the/rigor
02f5ddb18092a114dc0a23c8fb60975e2b906e85
[ "MIT" ]
null
null
null
travis_pypi_setup.py
vault-the/rigor
02f5ddb18092a114dc0a23c8fb60975e2b906e85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Update encrypted deploy password in Travis config file """ from __future__ import print_function import base64 import json import os from getpass import getpass import yaml from cryptography.hazmat.primitives.serialization import load_pem_public_key from cryptography.h...
30.544715
79
0.700559
f6eb7cf181a2aca3d16f96e4bafdfbd9e5141671
4,130
py
Python
msm_pele/AdaptivePELE/freeEnergies/oldScripts/repeatSnapshotsPeleAdaptive.py
danielSoler93/msm_pele
80b187ceb6446059f6c7b0dd2c0968f0db4a17a1
[ "MIT" ]
13
2017-06-14T14:42:22.000Z
2022-01-25T08:46:04.000Z
msm_pele/AdaptivePELE/freeEnergies/oldScripts/repeatSnapshotsPeleAdaptive.py
danielSoler93/msm_pele
80b187ceb6446059f6c7b0dd2c0968f0db4a17a1
[ "MIT" ]
16
2018-01-16T01:32:02.000Z
2021-02-19T17:05:12.000Z
msm_pele/AdaptivePELE/freeEnergies/oldScripts/repeatSnapshotsPeleAdaptive.py
danielSoler93/msm_pele
80b187ceb6446059f6c7b0dd2c0968f0db4a17a1
[ "MIT" ]
8
2018-02-20T10:47:07.000Z
2022-03-21T12:28:07.000Z
import os import numpy import glob import re import argparse def parseArguments(): desc = "Adds repeated snapshots in rejected steps. If total steps are provided, add also steps until the end" parser = argparse.ArgumentParser(description=desc) parser.add_argument("-t", "--totalSteps", type=int, default=0,...
40.490196
113
0.6
670034f28a2ac81a84820180757e8f3ccfcf35b5
1,094
py
Python
azure-keyvault/azure/keyvault/v7_0/models/backup_certificate_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-06-12T13:44:34.000Z
2020-06-01T13:24:04.000Z
azure-keyvault/azure/keyvault/v7_0/models/backup_certificate_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
5
2018-04-26T01:14:29.000Z
2021-01-05T00:45:39.000Z
azure-keyvault/azure/keyvault/v7_0/models/backup_certificate_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
8
2018-04-24T22:52:48.000Z
2021-11-16T06:29:28.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 ...
30.388889
76
0.593236
c2b8c93e9fa2b94fa6e24e17b1bad6ffd79a21ab
1,296
py
Python
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/max7219_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/max7219_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/max7219_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
import time from board import TX, RX, A1 import busio import digitalio from adafruit_max7219 import matrices mosi = TX clk = RX cs = digitalio.DigitalInOut(A1) spi = busio.SPI(clk, MOSI=mosi) matrix = matrices.Matrix8x8(spi, cs) while True: print("Cycle start") # all lit up matrix.fill(Tr...
22.736842
52
0.578704
769425234d1745165cba95fae1dbe5a99d43cc05
8,350
py
Python
train.py
biomiker/pytorch-retinanet
0f0c1671df49adc189677a59c5137737e73c63a4
[ "Apache-2.0" ]
null
null
null
train.py
biomiker/pytorch-retinanet
0f0c1671df49adc189677a59c5137737e73c63a4
[ "Apache-2.0" ]
null
null
null
train.py
biomiker/pytorch-retinanet
0f0c1671df49adc189677a59c5137737e73c63a4
[ "Apache-2.0" ]
null
null
null
import argparse import collections from datetime import timedelta import time import os,sys import glob import numpy as np import torch import torch.optim as optim from torchvision import transforms from retinanet import model from retinanet.dataloader import CocoDataset, CSVDataset, collater, Resizer, AspectRatioB...
37.276786
205
0.643473
424d5338081127cc736e5e4fa9ae75d84b73d9c3
2,723
py
Python
src/bouton.py
QuentinBubu/trophees-nsi-2022
3402b584de7b07b54b6e97332d279f670efe48c2
[ "MIT" ]
null
null
null
src/bouton.py
QuentinBubu/trophees-nsi-2022
3402b584de7b07b54b6e97332d279f670efe48c2
[ "MIT" ]
2
2022-03-01T10:51:46.000Z
2022-03-15T19:51:18.000Z
src/bouton.py
QuentinBubu/trophees-nsi-2022
3402b584de7b07b54b6e97332d279f670efe48c2
[ "MIT" ]
1
2022-03-29T17:02:17.000Z
2022-03-29T17:02:17.000Z
""" Une simple classe de boutons """ import pygame class Bouton: def __init__(self, pos, size, texture_path, texture_path_clicked, func=None): """Un bouton interractible Args: pos (tuple(int)): la position size (tuple(int)): la taille du bouton texture_path (s...
30.595506
119
0.583915
999452616ff48da5281cc2e20c62355430eda43c
971
py
Python
examples/restore_cybers.py
pgarcia14180/henka
850a01a272deaf414e70a818012f8b239018f460
[ "MIT" ]
null
null
null
examples/restore_cybers.py
pgarcia14180/henka
850a01a272deaf414e70a818012f8b239018f460
[ "MIT" ]
null
null
null
examples/restore_cybers.py
pgarcia14180/henka
850a01a272deaf414e70a818012f8b239018f460
[ "MIT" ]
null
null
null
from henka.config_helpers.henka_config import HenkaConfig as MainConfig from henka.processes.henka import henka as dataprocess def restore_cyber(date): config = [{ 'name': 'upd', 'source': { 'name': 'elasticsearch', 'index_name': 'txd_cyber', 'url': 'localhost',...
29.424242
73
0.431514
2d50d13427b80e55795a3f3de7af331d3726d607
769
py
Python
assignments/14-open/test.py
pmoma/biosys-analytics
8822e6751699acd297679219e76d36666820846f
[ "MIT" ]
null
null
null
assignments/14-open/test.py
pmoma/biosys-analytics
8822e6751699acd297679219e76d36666820846f
[ "MIT" ]
null
null
null
assignments/14-open/test.py
pmoma/biosys-analytics
8822e6751699acd297679219e76d36666820846f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """test for open.py""" from subprocess import getstatusoutput, getoutput import os.path import re open = './open.py' def test_exists(): """scripts exist""" assert os.path.exists(open) def test_usage(): """usage""" (retval, out) = getstatusoutput(open) assert retval > 0 ...
21.971429
75
0.647594
3d63c3a391813161ea477c2b09430800353f0efb
4,125
py
Python
softdelete/tests/test_views.py
BehaviorCloud/django-softdelete
f74fb5a2ef2c3777d1c2a30513cf57c641649096
[ "BSD-2-Clause" ]
null
null
null
softdelete/tests/test_views.py
BehaviorCloud/django-softdelete
f74fb5a2ef2c3777d1c2a30513cf57c641649096
[ "BSD-2-Clause" ]
null
null
null
softdelete/tests/test_views.py
BehaviorCloud/django-softdelete
f74fb5a2ef2c3777d1c2a30513cf57c641649096
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings from django.test import TestCase, Client from django.contrib.auth.models import User from django.db import models from softdelete.test_softdelete_app.models import TestModelOne, TestModelTwo, TestModelThree from softdelete.models import * from softdelete.signals import * import logging ...
44.354839
92
0.641697
5b7bf668fc19541e9d4117163ae0d302103935f6
3,182
py
Python
tests/test_uas.py
bbc/connected-data-pseudocone
452479cd44fa7d32ecb3d54b801da9024d6984ce
[ "MIT" ]
null
null
null
tests/test_uas.py
bbc/connected-data-pseudocone
452479cd44fa7d32ecb3d54b801da9024d6984ce
[ "MIT" ]
5
2018-07-30T09:01:03.000Z
2019-01-16T11:16:39.000Z
tests/test_uas.py
bbc/connected-data-pseudocone
452479cd44fa7d32ecb3d54b801da9024d6984ce
[ "MIT" ]
null
null
null
# from unittest.mock import MagicMock, patch # # import pytest # import requests # from requests import HTTPError # # from app.uas import UASClient # from app.settings import DEFAULT_UAS_HOST # # # def test_client_init(): # """Test no exception thrown when initialising client.""" # uasclient = UASClient('', '')...
32.804124
112
0.670333
319814495d3d65c743285ce192be02c3103a057a
56,524
py
Python
src/base/android/jni_generator/jni_generator_tests.py
btwiuse/naiveproxy
67852b0abc88e59d5853c4a5db47541f298fb469
[ "BSD-3-Clause" ]
null
null
null
src/base/android/jni_generator/jni_generator_tests.py
btwiuse/naiveproxy
67852b0abc88e59d5853c4a5db47541f298fb469
[ "BSD-3-Clause" ]
null
null
null
src/base/android/jni_generator/jni_generator_tests.py
btwiuse/naiveproxy
67852b0abc88e59d5853c4a5db47541f298fb469
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests for jni_generator.py. This test suite contains various tests for the JNI generator. It exercises the low-level parser all...
34.215496
80
0.622231