hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
29ed8b8d82cf72ad1fdc5ad585e3e8910581a402
2,629
py
Python
api/geocodr/test_search.py
axza/geocodr
5a60d7ace537c76cb41b5ca4f31d3dee6a8bf5ce
[ "Apache-2.0" ]
3
2018-10-17T13:29:27.000Z
2020-10-10T09:47:29.000Z
api/geocodr/test_search.py
axza/geocodr
5a60d7ace537c76cb41b5ca4f31d3dee6a8bf5ce
[ "Apache-2.0" ]
2
2022-03-22T06:42:50.000Z
2022-03-22T06:42:56.000Z
api/geocodr/test_search.py
axza/geocodr
5a60d7ace537c76cb41b5ca4f31d3dee6a8bf5ce
[ "Apache-2.0" ]
1
2020-11-02T12:54:57.000Z
2020-11-02T12:54:57.000Z
from __future__ import unicode_literals import pytest from geocodr.search import ( SimpleField, NGramField, GermanNGramField, PrefixField, Only, is_exclusive, ) @pytest.mark.parametrize('input,boost,output', [ ['', None, None], ['st', None, None], ['str', None, "{!edismax qf=gramfi...
32.45679
102
0.580449
7538289afe1576b76387925f85e5d42ca63ceb6f
3,453
py
Python
tests/testUtils.py
pir2/python-omniture
d23b00f3382416f9d7667d90bdffc6d6b3456a53
[ "MIT" ]
105
2015-02-04T22:27:37.000Z
2022-02-06T12:25:10.000Z
tests/testUtils.py
pir2/python-omniture
d23b00f3382416f9d7667d90bdffc6d6b3456a53
[ "MIT" ]
69
2015-03-18T15:35:13.000Z
2020-08-25T13:18:43.000Z
tests/testUtils.py
pir2/python-omniture
d23b00f3382416f9d7667d90bdffc6d6b3456a53
[ "MIT" ]
66
2015-05-15T13:34:40.000Z
2021-02-24T15:42:57.000Z
import datetime import unittest import omniture class UtilsTest(unittest.TestCase): def setUp(self): fakelist = [{"id":"123", "title":"abc"},{"id":"456","title":"abc"}] self.alist = omniture.Value.list("segemnts",fakelist,{}) def tearDown(self): del self.alist def test_addre...
39.238636
163
0.548798
bd2b9843fe1b43814b0290290305a16b4bcc6819
5,616
py
Python
data_processing/process_wiki.py
kangjingyao/FaceAging-by-cycleGAN
b9b8f056ee00d550139db64fa8b0f58ea60e4cdf
[ "MIT" ]
126
2018-12-17T02:51:59.000Z
2022-03-14T02:12:44.000Z
data_processing/process_wiki.py
kangjingyao/FaceAging-by-cycleGAN
b9b8f056ee00d550139db64fa8b0f58ea60e4cdf
[ "MIT" ]
5
2019-04-01T12:50:26.000Z
2020-08-01T08:28:56.000Z
data_processing/process_wiki.py
kangjingyao/FaceAging-by-cycleGAN
b9b8f056ee00d550139db64fa8b0f58ea60e4cdf
[ "MIT" ]
49
2018-11-12T01:02:56.000Z
2022-01-22T10:18:54.000Z
#! /usr/bin/env python # coding: utf-8 """ Filter out desired training images and copy them into respective directories. """ import os import pandas as pd from collections import defaultdict from pprint import pprint from shutil import copy2 MEATADATA_PATH = '/home/yu/Development/FaceAging-by-cycleGAN/datasets/youn...
33.428571
124
0.609687
b271f90a0390a3f3de39b9d45097ddbc949a9031
230
py
Python
project/config/settings/staging_debug.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
31
2019-12-08T14:22:52.000Z
2021-12-27T04:58:12.000Z
project/config/settings/staging_debug.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
193
2019-12-07T23:27:43.000Z
2022-03-05T08:05:46.000Z
project/config/settings/staging_debug.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
null
null
null
# Settings for running the staging server with the runserver command, # for easier debugging. # To view the staging server when it's using runserver, use an SSH tunnel. from .staging import * DEBUG = True ALLOWED_HOSTS = ['*']
23
74
0.743478
679a32f89a3ea58088d75523f52347e454c6eeb5
673
py
Python
app/__init__.py
AgbaD/Ecommerce
1a56b6240196e93d1d984991572c9ff24071108a
[ "MIT" ]
null
null
null
app/__init__.py
AgbaD/Ecommerce
1a56b6240196e93d1d984991572c9ff24071108a
[ "MIT" ]
null
null
null
app/__init__.py
AgbaD/Ecommerce
1a56b6240196e93d1d984991572c9ff24071108a
[ "MIT" ]
null
null
null
#!usr/bin/python3 # Author: @AgbaD || @agba_dr3 import os from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS from flask_msearch import Search from config import config db = SQLAlchemy() search = Search(db=db) def create_app(config_name): app = Flask(__name__) app....
19.794118
47
0.723626
a0bb03f270d815756674890104f01f240a003352
8,756
py
Python
py/axonchisel/metrics/foundation/chrono/stepper.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
10
2016-08-26T18:57:28.000Z
2021-09-19T19:21:16.000Z
py/axonchisel/metrics/foundation/chrono/stepper.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
1
2015-01-08T19:54:54.000Z
2015-01-09T01:24:17.000Z
py/axonchisel/metrics/foundation/chrono/stepper.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
3
2015-01-08T23:32:58.000Z
2016-09-23T02:38:26.000Z
""" Ax_Metrics - Logic for generating TimeFrame steps for a query. ------------------------------------------------------------------------------ Author: Dan Kamins <dos at axonchisel dot net> Copyright (c) 2014 Dan Kamins, AxonChisel.net """ # ------------------------------------------------------------------------...
31.496403
79
0.593878
22d3f869e64e45924506e4bc5a9f2c81fae96846
1,512
py
Python
zupload.py
zxhuang/raspberry-pi-motion-alert
7931808569fee30ab42f70cee3b7d2f21820ee9f
[ "BSD-2-Clause" ]
3
2015-08-03T00:48:45.000Z
2018-02-06T11:28:51.000Z
zupload.py
zxhuang/raspberry-pi-motion-alert
7931808569fee30ab42f70cee3b7d2f21820ee9f
[ "BSD-2-Clause" ]
null
null
null
zupload.py
zxhuang/raspberry-pi-motion-alert
7931808569fee30ab42f70cee3b7d2f21820ee9f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2013, Zeke Huang All rights reserved. https://github.com/zxhuang/raspberry-pi-motion-alert """ import os.path import gdata.data import gdata.docs.client def gd_avi_upload(username, password, to_folder, avideo): gd = gdata.docs.client.DocsClient(source='motion') gd.http_...
30.857143
86
0.666667
6f1425cd9d80d4dc754415b32eed11520affd818
5,968
py
Python
apps/network/tests/test_core/test_manager/test_user_manager.py
aisportsbets/pygrid
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
[ "Apache-2.0" ]
null
null
null
apps/network/tests/test_core/test_manager/test_user_manager.py
aisportsbets/pygrid
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
[ "Apache-2.0" ]
null
null
null
apps/network/tests/test_core/test_manager/test_user_manager.py
aisportsbets/pygrid
eeee1e7ef6ba50a03f6f486992a45f7171976e5a
[ "Apache-2.0" ]
null
null
null
from src.main.core.database import * from src.main.core.manager import UserManager from src.main.core.exceptions import InvalidCredentialsError import pytest from bcrypt import checkpw user_role = ("User", False, False, False, False) admin_role = ("Administrator", True, True, False, False) @pytest.fixture def cleanu...
28.830918
76
0.660355
d22e9fcf2f992f535d57aca15804d0f7bb725ea6
1,959
py
Python
mobly/snippet/errors.py
lancefluger/mobly
d1b010452445ec06207e03de23ae94cbe95a0bc7
[ "Apache-2.0" ]
null
null
null
mobly/snippet/errors.py
lancefluger/mobly
d1b010452445ec06207e03de23ae94cbe95a0bc7
[ "Apache-2.0" ]
null
null
null
mobly/snippet/errors.py
lancefluger/mobly
d1b010452445ec06207e03de23ae94cbe95a0bc7
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google 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 writing, ...
36.962264
79
0.754977
7f6e7b06e7e64f0c940e9ede8311b8d1346159fc
1,024
py
Python
user/models.py
mikaelm1/blind-chat-api
849b4a2095b0ef9fd21efd37140b6fc171583387
[ "MIT" ]
1
2016-10-31T03:54:50.000Z
2016-10-31T03:54:50.000Z
user/models.py
mikaelm1/blind-chat-api
849b4a2095b0ef9fd21efd37140b6fc171583387
[ "MIT" ]
1
2016-10-30T01:11:57.000Z
2016-10-30T01:21:47.000Z
user/models.py
mikaelm1/blind-chat-api
849b4a2095b0ef9fd21efd37140b6fc171583387
[ "MIT" ]
null
null
null
import bcrypt from application import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(100), unique=True) email = db.Column(db.String(50), unique=True) password = db.Column(db.String(80)) # Relationships messages = db.relationship("Message", backref="user"...
26.947368
89
0.713867
dc3e18edaf0da5ef804c5b4070be223ba7f27708
215
py
Python
ashbee/ashbee/doctype/bulk_timesheet_import/test_bulk_timesheet_import.py
sunhoww/ashbee
65e863bb3336fe450a7c7d0e26e0243ecc632601
[ "MIT" ]
1
2019-05-15T12:55:06.000Z
2019-05-15T12:55:06.000Z
ashbee/ashbee/doctype/bulk_timesheet_import/test_bulk_timesheet_import.py
sunhoww/ashbee
65e863bb3336fe450a7c7d0e26e0243ecc632601
[ "MIT" ]
null
null
null
ashbee/ashbee/doctype/bulk_timesheet_import/test_bulk_timesheet_import.py
sunhoww/ashbee
65e863bb3336fe450a7c7d0e26e0243ecc632601
[ "MIT" ]
3
2019-05-15T12:55:26.000Z
2019-12-31T14:34:49.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, 9t9IT and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestBulkTimesheetImport(unittest.TestCase): pass
19.545455
49
0.776744
7f6f361685fd9056e5e9aff2b02651d9ab1235ee
632
py
Python
data_structures/queue.py
kgantsov/data_structures_and_algorithms_py
10c60ea10b999bf23ba821c764d712181702c9eb
[ "MIT" ]
null
null
null
data_structures/queue.py
kgantsov/data_structures_and_algorithms_py
10c60ea10b999bf23ba821c764d712181702c9eb
[ "MIT" ]
null
null
null
data_structures/queue.py
kgantsov/data_structures_and_algorithms_py
10c60ea10b999bf23ba821c764d712181702c9eb
[ "MIT" ]
null
null
null
from data_structures.node import Node class Queue: head = None tail = None def __init__(self, lst=None): lst = lst or [] for value in lst: self.push(value) def push(self, value): new_node = Node(value) if self.head is None: self.head = new_no...
19.75
38
0.523734
fd557c63947d0ce1291086b5bf2269bfd43bc60a
203
py
Python
smithers/io/vtphandler.py
LauraMeneghetti/Smithers
908fb3201eabfd01fe1712352c605e1f4b15d896
[ "MIT" ]
6
2021-04-09T10:00:12.000Z
2022-02-02T05:13:42.000Z
smithers/io/vtphandler.py
LauraMeneghetti/Smithers
908fb3201eabfd01fe1712352c605e1f4b15d896
[ "MIT" ]
5
2021-05-06T14:43:22.000Z
2021-09-30T15:29:59.000Z
smithers/io/vtphandler.py
LauraMeneghetti/Smithers
908fb3201eabfd01fe1712352c605e1f4b15d896
[ "MIT" ]
6
2021-05-06T12:06:57.000Z
2022-03-29T07:08:46.000Z
from .vtkhandler import VTKHandler class VTPHandler(VTKHandler): from vtk import vtkXMLPolyDataReader, vtkXMLPolyDataWriter _reader_ = vtkXMLPolyDataReader _writer_ = vtkXMLPolyDataWriter
22.555556
62
0.807882
e2915c6d50083902a0cdbbb18d0aded79d3ca309
314
py
Python
PE015-Lattice paths/~PE015.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE015-Lattice paths/~PE015.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE015-Lattice paths/~PE015.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
# Starting in the top left corner of a 2*2 grid, and only being able to move # to the right and down, there are exactly 6 routes to the bottom right corner. # How many such routes are there through a 20*20 grid? N = 20 result = 1 for i in xrange(1,N+1): result = (result*(N+i)) / i print result # 137846528820
31.4
79
0.707006
8ee5fa80dcd198e3fa3f1e3290e7c9434e33a363
634
py
Python
rulevetting/api/util.py
csinva/medical-rules
69675660bcf1068cb6b91fdd982946d76397c5c7
[ "MIT" ]
9
2021-11-11T08:37:57.000Z
2021-12-15T13:04:01.000Z
rulevetting/api/util.py
csinva/medical-rules
69675660bcf1068cb6b91fdd982946d76397c5c7
[ "MIT" ]
1
2021-12-13T08:39:49.000Z
2021-12-13T08:39:49.000Z
rulevetting/api/util.py
csinva/medical-rules
69675660bcf1068cb6b91fdd982946d76397c5c7
[ "MIT" ]
13
2021-11-12T19:33:22.000Z
2021-12-13T15:54:55.000Z
from os.path import join as oj import os import rulevetting def get_project_ids(): return [ f for f in os.listdir(rulevetting.PROJECTS_PATH) if os.path.isdir(oj(rulevetting.PROJECTS_PATH, f)) and not 'cache' in f ] def get_feat_names_from_base_feats(feat_names: list, base_feat_n...
24.384615
81
0.675079
756d6eba9ee3e9d115dbdf7b1d1166faa5a96634
350
py
Python
python/bot_data.py
grcanosa/renfe-checker
e6b0438557732b541ea629bec2aaa4479308436c
[ "MIT" ]
7
2019-01-03T23:20:50.000Z
2021-07-30T03:23:06.000Z
python/bot_data.py
Rotimi-Best/renfe-notifier-bot
e6b0438557732b541ea629bec2aaa4479308436c
[ "MIT" ]
null
null
null
python/bot_data.py
Rotimi-Best/renfe-notifier-bot
e6b0438557732b541ea629bec2aaa4479308436c
[ "MIT" ]
1
2019-02-18T06:12:04.000Z
2019-02-18T06:12:04.000Z
U2FsdGVkX19UzObQ9zCJoJL5f+s0mozcMdy4/WP1g1lIZyIQreAuPrRbei7LIzne 3IrD400Ak8LE7Fojro8nZ7F5e9iJZET6ubyBS460NxJhvaMu+IV9DO4hOQYHeeOG ehJeqXqB3ZqMwDD9KNvqv2IZqe2Ns/ZP/YsYX3AHMDPBeex16ax25oC9Bv2DehU6 sZUPWrYf+VIbUDV/f+2PlcDDz8gyQfl4+nX2qNYi4BBybNarFHeEBWpmY8CdQMc9 whkzdwQxGMVxFaG53LE0asPin84Q/VxCtezzQdz6lp/2UHmGwJy+2dVGDwkj...
50
64
0.942857
bffac379dbea6265a98455dd3205707cdd83e39b
1,279
py
Python
sklearn-mlp-train.py
zhang0peter/PythonCaptchaCnn
4d22dada14d0a4c3608e6651b85fcb14490b28c4
[ "MIT" ]
1
2019-06-19T07:28:05.000Z
2019-06-19T07:28:05.000Z
sklearn-mlp-train.py
zhang0peter/PythonCaptchaCnn
4d22dada14d0a4c3608e6651b85fcb14490b28c4
[ "MIT" ]
null
null
null
sklearn-mlp-train.py
zhang0peter/PythonCaptchaCnn
4d22dada14d0a4c3608e6651b85fcb14490b28c4
[ "MIT" ]
2
2019-06-19T07:28:06.000Z
2019-09-24T09:38:38.000Z
# -*- coding: utf-8 -*- """ Created on Sun Jun 2 19:21:20 2019 @author: peter """ import loadData import os import time import numpy as np from sklearn.neural_network import MLPClassifier from sklearn.externals import joblib from sklearn import metrics if __name__ == '__main__': time0 = time.time() x_trai...
26.102041
86
0.591869
b089f9e573d66d80dd736fda6a401dbe628b8016
3,234
py
Python
pounce.py
ssb22/bits-and-bobs
93421abeb1e39888a761f83d7f351bf12b39a4eb
[ "Apache-2.0" ]
null
null
null
pounce.py
ssb22/bits-and-bobs
93421abeb1e39888a761f83d7f351bf12b39a4eb
[ "Apache-2.0" ]
null
null
null
pounce.py
ssb22/bits-and-bobs
93421abeb1e39888a761f83d7f351bf12b39a4eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # (should work in either Python 2 or Python 3) """Simple "Buddy Pounce" script for Skype using Clisk. Silas S. Brown 2013, Public domain, no warranty. (Note: Only Skype 7 and below supported the API that Clisk used. Microsoft's support for Skype 7 ended in November 2018 and I have no idea if it ...
37.604651
97
0.713358
27d2f9caa959d107eca1ae2bb8f990cba3dedf89
2,498
py
Python
pxr/base/lib/trace/__main__.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
88
2018-07-13T01:22:00.000Z
2022-01-16T22:15:27.000Z
pxr/base/lib/trace/__main__.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
1
2020-07-07T22:39:42.000Z
2020-07-07T22:39:42.000Z
pxr/base/lib/trace/__main__.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
26
2018-06-06T03:39:22.000Z
2021-08-28T23:02:42.000Z
# # Copyright 2018 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # # 6. Trademarks. T...
32.025641
74
0.681345
3edd1016dd540352657f0dfa10e842668eae1811
13,054
py
Python
dbops_venv/lib/python3.5/site-packages/mako/lookup.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
15
2016-02-24T06:32:57.000Z
2020-06-17T05:06:36.000Z
dbops_venv/lib/python3.5/site-packages/mako/lookup.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
null
null
null
dbops_venv/lib/python3.5/site-packages/mako/lookup.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
4
2017-02-04T13:45:31.000Z
2018-07-05T11:57:24.000Z
# mako/lookup.py # Copyright (C) 2006-2013 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import os, stat, posixpath, re from mako import exceptions, util from mako.template import Template...
36.261111
82
0.571396
ca9ae26232f8762d33e85df6b2cf2872f573983f
1,350
py
Python
backend/atlas/constants.py
getsentry/atlas
9bf4a236b99a24a7a17700591a0ff94feecf7ce7
[ "Apache-2.0" ]
18
2019-09-24T23:49:41.000Z
2020-11-14T17:30:27.000Z
backend/atlas/constants.py
getsentry/atlas
9bf4a236b99a24a7a17700591a0ff94feecf7ce7
[ "Apache-2.0" ]
53
2019-09-24T18:50:25.000Z
2022-02-27T11:44:55.000Z
backend/atlas/constants.py
getsentry/atlas
9bf4a236b99a24a7a17700591a0ff94feecf7ce7
[ "Apache-2.0" ]
2
2020-02-03T08:22:36.000Z
2021-02-28T12:55:48.000Z
from atlas.models import Profile, User FIELD_MODEL_MAP = { "name": User, "is_superuser": User, "handle": Profile, "date_of_birth": Profile, "date_started": Profile, "schedule": Profile, "department": Profile, "team": Profile, "title": Profile, "bio": Profile, "reports_to": P...
22.131148
72
0.612593
c369080080de93d83309fb3b02ea104c1c2a97c6
363
py
Python
Zadania/zadanie2.py
AdamGrzonkowski/python-basic-tasks
2789985f08e76b9f23cec96f880a149a08954133
[ "MIT" ]
null
null
null
Zadania/zadanie2.py
AdamGrzonkowski/python-basic-tasks
2789985f08e76b9f23cec96f880a149a08954133
[ "MIT" ]
null
null
null
Zadania/zadanie2.py
AdamGrzonkowski/python-basic-tasks
2789985f08e76b9f23cec96f880a149a08954133
[ "MIT" ]
null
null
null
""" ZADANIE 2. PODANA JEST LISTA ZAWIERAJĄCA ELEMENTY O WARTOŚCIACH 1-n. NAPISZ FUNKCJĘ KTÓRA SPRAWDZI JAKICH ELEMENTÓW BRAKUJE 1-n = [1,2,3,4,5,...,10] np. n=10 wejście: [2,3,7,4,9], 10 wyjście: [1,5,6,8,10] """ def get_missing_values(values, n): return list(set(range(1, n + 1)) - set(values)) print...
27.923077
128
0.641873
294e3f1fad43077140bef41a46825a6e5dc2deac
1,341
py
Python
py/ID_Extra_Task.py
sentientredstripe/sentientredstripe.github.io
5e08c5015aeb8587607d9ab51c3c03146c9569aa
[ "MIT" ]
null
null
null
py/ID_Extra_Task.py
sentientredstripe/sentientredstripe.github.io
5e08c5015aeb8587607d9ab51c3c03146c9569aa
[ "MIT" ]
26
2015-04-28T00:38:08.000Z
2018-01-22T19:20:15.000Z
py/ID_Extra_Task.py
sentientredstripe/sentientredstripe.github.io
5e08c5015aeb8587607d9ab51c3c03146c9569aa
[ "MIT" ]
1
2017-12-03T00:27:45.000Z
2017-12-03T00:27:45.000Z
# As you are aware their are different forms of ID # # Examples are shown below # # Social security Number of the form '123-45-6790' 11 characters # Mass Drivers License number of the form 'S 1 2 3 4 5 6 7 8' 8 characters # Green Card of the form '123-456-789' 11 characters # US Department of Defense of the form...
32.707317
89
0.693512
534ae43c70ac557a0009d4ac3f7f1624fa3579df
19,347
py
Python
rfpipe/source.py
astrolobo/rfpipe
93b49635ce820d45cb7e9d9b9c601482b16a98dc
[ "BSD-3-Clause" ]
null
null
null
rfpipe/source.py
astrolobo/rfpipe
93b49635ce820d45cb7e9d9b9c601482b16a98dc
[ "BSD-3-Clause" ]
null
null
null
rfpipe/source.py
astrolobo/rfpipe
93b49635ce820d45cb7e9d9b9c601482b16a98dc
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems import os.path import numpy as np from astropy import time import pwkit.environments.casa....
42.427632
120
0.591565
6cde346d6e9781f4d68b04983d9c649b69de4ee9
6,210
py
Python
data/p3BR/R2/benchmark/startQiskit_noisy206.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit_noisy206.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit_noisy206.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=38 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
30.441176
140
0.633333
1d6106053248cd859144ce82615ba4969da10171
9,778
py
Python
menpo/transform/homogeneous/similarity.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
null
null
null
menpo/transform/homogeneous/similarity.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
1
2019-03-09T16:01:46.000Z
2019-03-09T16:01:46.000Z
menpo/transform/homogeneous/similarity.py
yuxiang-zhou/menpo
01deaf3808cbe7a3d9db5542ac9d9f53cd81743a
[ "BSD-3-Clause" ]
1
2020-05-01T09:55:57.000Z
2020-05-01T09:55:57.000Z
import numpy as np from .base import HomogFamilyAlignment from .affine import Affine from functools import reduce class Similarity(Affine): r""" Specialist version of an :map:`Affine` that is guaranteed to be a Similarity transform. Parameters ---------- h_matrix : ``(n_dims + 1, n_dims + 1)...
33.717241
80
0.573226
db72de2b857335a41c725a21cffb94297ce992db
8,665
py
Python
pg_es_fdw/__init__.py
aksel/postgres-elasticsearch-fdw
0ef6501c8a5a49faf646259b61404fc42de2e611
[ "MIT" ]
null
null
null
pg_es_fdw/__init__.py
aksel/postgres-elasticsearch-fdw
0ef6501c8a5a49faf646259b61404fc42de2e611
[ "MIT" ]
null
null
null
pg_es_fdw/__init__.py
aksel/postgres-elasticsearch-fdw
0ef6501c8a5a49faf646259b61404fc42de2e611
[ "MIT" ]
null
null
null
""" Elastic Search foreign data wrapper """ # pylint: disable=too-many-instance-attributes, import-error, unexpected-keyword-arg, broad-except, line-too-long import json import logging from elasticsearch import VERSION as ELASTICSEARCH_VERSION from elasticsearch import Elasticsearch from multicorn import ForeignData...
34.384921
113
0.537796
e10df1ac7e0a140a0cca9b65a5515081db2b0e22
2,351
py
Python
eval_res.py
Juggernaut93/ClipShots_basline
109ad9a05ee3d0db672c8e15833291f1ccf1d33f
[ "MIT" ]
1
2021-02-28T09:23:50.000Z
2021-02-28T09:23:50.000Z
eval_res.py
rsomani95/ClipShots_basline
109ad9a05ee3d0db672c8e15833291f1ccf1d33f
[ "MIT" ]
null
null
null
eval_res.py
rsomani95/ClipShots_basline
109ad9a05ee3d0db672c8e15833291f1ccf1d33f
[ "MIT" ]
null
null
null
import json from opts import parse_eval_args def if_overlap(begin1,end1,begin2,end2): if begin1>begin2: begin1,end1,begin2,end2=begin2,end2,begin1,end1 return end1>=begin2 def get_union_cnt(set1,set2): cnt=0 for begin,end in set1: for _begin,_end in set2: if if_overlap...
33.585714
130
0.659294
9ec1259f944c1487cb92ff1dc9c6a397a0c6e41f
19,060
py
Python
saleor/dashboard/order/views.py
arslanahmd/Ghar-Tameer
72401b2fc0079e6d52e844afd8fcf57122ad319f
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/order/views.py
arslanahmd/Ghar-Tameer
72401b2fc0079e6d52e844afd8fcf57122ad319f
[ "BSD-3-Clause" ]
1
2022-02-10T11:06:43.000Z
2022-02-10T11:06:43.000Z
saleor/dashboard/order/views.py
arslanahmd/Ghar-Tameer
72401b2fc0079e6d52e844afd8fcf57122ad319f
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.db import transaction from django.http import HttpResponse from django.shortcuts import get_object_or_404, redirect from django.template.context_processors import csrf from dja...
42.168142
79
0.682162
6e18b11a9eaace43e1d0a130f9e67b954497a6a0
12,066
py
Python
pyleecan/Methods/Slot/SlotW26/build_geometry_wind.py
mxgnsr/pyleecan
2b0a04e4ae67c073a91362ab42332908fef53bdd
[ "Apache-2.0" ]
2
2019-06-08T15:04:39.000Z
2020-09-07T13:32:22.000Z
pyleecan/Methods/Slot/SlotW26/build_geometry_wind.py
mxgnsr/pyleecan
2b0a04e4ae67c073a91362ab42332908fef53bdd
[ "Apache-2.0" ]
null
null
null
pyleecan/Methods/Slot/SlotW26/build_geometry_wind.py
mxgnsr/pyleecan
2b0a04e4ae67c073a91362ab42332908fef53bdd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from ....Classes.Arc1 import Arc1 from ....Classes.Arc3 import Arc3 from ....Classes.Segment import Segment from ....Classes.SurfLine import SurfLine def build_geometry_wind(self, Nrad, Ntan, is_simplified=False, alpha=0, delta=0): """Split the slot winding area in several zone Param...
33.516667
111
0.471822
67af242df95b5876b5be35fdd370f0246dcd9ab4
868
py
Python
cc/preprocess/x4_preprocess_batch_images.py
ixianid/cell_counting
d0af45f8e516f57a80702e956af41fdd225cef67
[ "MIT" ]
1
2021-10-13T04:34:34.000Z
2021-10-13T04:34:34.000Z
cc/preprocess/x4_preprocess_batch_images.py
ixianid/cell_counting
d0af45f8e516f57a80702e956af41fdd225cef67
[ "MIT" ]
6
2020-03-24T18:10:59.000Z
2021-09-08T01:34:35.000Z
cc/preprocess/x4_preprocess_batch_images.py
CamHolman/cell_counting
d0af45f8e516f57a80702e956af41fdd225cef67
[ "MIT" ]
null
null
null
import skimage as sk import os from src.data.x4_preprocess_image import x4_preprocess_image def x4_preprocess_batch_images(input_dir, output_dir = None): images = sk.io.ImageCollection(os.path.join(input_dir, '*.czi')) # print (images.files) im_list = [] for i in range(len(images.files)): pr...
32.148148
97
0.669355
1e76197ce7cc6ceb581a57696e41144210ecf2bb
51,094
py
Python
tests/installation/test_installer.py
jejewu/poetry
bd004bd007e11350e8431afbd0b07545cd2c73b1
[ "MIT" ]
null
null
null
tests/installation/test_installer.py
jejewu/poetry
bd004bd007e11350e8431afbd0b07545cd2c73b1
[ "MIT" ]
null
null
null
tests/installation/test_installer.py
jejewu/poetry
bd004bd007e11350e8431afbd0b07545cd2c73b1
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import sys import pytest from clikit.io import NullIO from poetry.core.packages import ProjectPackage from poetry.installation import Installer as BaseInstaller from poetry.installation.executor import Executor as BaseExecutor from poetry.installation.noop_installer import No...
29.030682
119
0.55668
d884cb5aa8db89b43fc42273a2697c3e114cd1b7
352
py
Python
app/grandchallenge/github/migrations/0002_auto_20210630_1807.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
7
2016-11-05T07:16:30.000Z
2017-11-23T03:38:03.000Z
app/grandchallenge/github/migrations/0002_auto_20210630_1807.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
113
2015-05-26T09:27:59.000Z
2018-03-21T10:45:56.000Z
app/grandchallenge/github/migrations/0002_auto_20210630_1807.py
kaczmarj/grand-challenge.org
8dc8a2170e51072354f7e94f2a22578805a67b94
[ "Apache-2.0" ]
7
2015-07-16T20:11:22.000Z
2017-06-06T02:41:24.000Z
# Generated by Django 3.1.11 on 2021-06-30 18:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [("github", "0001_initial")] operations = [ migrations.RenameField( model_name="githubwebhookmessage", old_name="tarball", new_...
20.705882
48
0.616477
f968cc67e3de3469fa7dae411a3661683e572d60
3,231
py
Python
fritzconnection/lib/fritzhomeauto.py
samba2/fritzconnection
b29dacd55a9c0a8d7cb00447b3e1e5eb8b31822a
[ "MIT" ]
null
null
null
fritzconnection/lib/fritzhomeauto.py
samba2/fritzconnection
b29dacd55a9c0a8d7cb00447b3e1e5eb8b31822a
[ "MIT" ]
null
null
null
fritzconnection/lib/fritzhomeauto.py
samba2/fritzconnection
b29dacd55a9c0a8d7cb00447b3e1e5eb8b31822a
[ "MIT" ]
null
null
null
""" Module to access home-automation devices """ # This module is part of the FritzConnection package. # https://github.com/kbr/fritzconnection # License: MIT (https://opensource.org/licenses/MIT) # Author: Klaus Bremer import itertools from warnings import warn from .fritzbase import AbstractLibraryBase SERVICE =...
34.37234
96
0.655834
351a1ae5c44df5ed7ec40ba2332f9066531f719c
659
py
Python
setup.py
DAIRLab/contact-nets
b0e197cbb0ab5550628d71d851a6de1dab616fb6
[ "BSD-3-Clause" ]
16
2020-11-18T01:33:05.000Z
2022-02-15T17:52:55.000Z
setup.py
DAIRLab/contact-nets
b0e197cbb0ab5550628d71d851a6de1dab616fb6
[ "BSD-3-Clause" ]
null
null
null
setup.py
DAIRLab/contact-nets
b0e197cbb0ab5550628d71d851a6de1dab616fb6
[ "BSD-3-Clause" ]
1
2021-01-27T20:48:46.000Z
2021-01-27T20:48:46.000Z
from setuptools import setup, find_namespace_packages setup( name='contactnets', packages=find_namespace_packages(include=['contactnets.*']), version='0.1', install_requires=[ 'pillow', 'osqp', 'mplcursors', 'torch', 'tensorflow==1.14.0', 'tensorboard==2....
21.258065
64
0.494689
a847ab326808ec19bf423910510837701d972099
378
py
Python
app/app/settings/prod_postgres.py
prapeller/phoneauth_api
daab1554ea479676ec5e13a9ef219b27750b7456
[ "MIT" ]
null
null
null
app/app/settings/prod_postgres.py
prapeller/phoneauth_api
daab1554ea479676ec5e13a9ef219b27750b7456
[ "MIT" ]
null
null
null
app/app/settings/prod_postgres.py
prapeller/phoneauth_api
daab1554ea479676ec5e13a9ef219b27750b7456
[ "MIT" ]
null
null
null
from app.settings.prod import * import os # Database # https://docs.djangoproject.com/en/4.0/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'phoneauth_db', 'HOST': 'db', 'PORT': '5432', 'USER': os.getenv('DB_USE...
25.2
63
0.589947
4f1dfdd4745fb66139af654cf2374ad9c595f1fa
6,406
py
Python
trunk/win/translations/tsToTxt.py
dyzmapl/BumpTop
1329ea41411c7368516b942d19add694af3d602f
[ "Apache-2.0" ]
460
2016-01-13T12:49:34.000Z
2022-02-20T04:10:40.000Z
trunk/win/translations/tsToTxt.py
dyzmapl/BumpTop
1329ea41411c7368516b942d19add694af3d602f
[ "Apache-2.0" ]
24
2016-11-07T04:59:49.000Z
2022-03-14T06:34:12.000Z
trunk/win/translations/tsToTxt.py
dyzmapl/BumpTop
1329ea41411c7368516b942d19add694af3d602f
[ "Apache-2.0" ]
148
2016-01-17T03:16:43.000Z
2022-03-17T12:20:36.000Z
#!/usr/bin/python # Copyright 2011 Google Inc. 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 ...
35.588889
113
0.69872
8da2044e1d50670b429292ceca6d543751e18f92
507
py
Python
translations/ulion_translate.py
johncoder-30/vpc-nlp-translation
5d6897fc2cfed3fbccbd55f30741d0312662534b
[ "MIT" ]
null
null
null
translations/ulion_translate.py
johncoder-30/vpc-nlp-translation
5d6897fc2cfed3fbccbd55f30741d0312662534b
[ "MIT" ]
null
null
null
translations/ulion_translate.py
johncoder-30/vpc-nlp-translation
5d6897fc2cfed3fbccbd55f30741d0312662534b
[ "MIT" ]
null
null
null
import translators as ts tam = open('./data/tam_equalized.txt', 'r',encoding='utf8').read().split('\n\n') trans = open('data/ulion_translate.txt', 'a') for i in range(10): for j in range(len(tam[i].split('\n'))): try: t_line = tam[i].split('\n')[j] trans.write(ts.google(t_line, fro...
29.823529
80
0.56213
e0ad5daac445051c39f3398eb0e8ba1c99740a63
4,065
py
Python
holecardhandicapper/model/model_builder.py
skyler-cs/HoleCardHandicapper
f08ab63f1244941edc7696358c4aa7ba0655158f
[ "MIT" ]
5
2017-09-04T19:48:50.000Z
2018-10-01T16:20:16.000Z
holecardhandicapper/model/model_builder.py
skyler-cs/HoleCardHandicapper
f08ab63f1244941edc7696358c4aa7ba0655158f
[ "MIT" ]
2
2016-10-08T06:37:59.000Z
2016-12-07T16:31:45.000Z
holecardhandicapper/model/model_builder.py
skyler-cs/HoleCardHandicapper
f08ab63f1244941edc7696358c4aa7ba0655158f
[ "MIT" ]
3
2017-05-21T15:16:48.000Z
2019-12-23T12:13:03.000Z
from keras.models import Sequential from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.layers.core import Dense, Activation, Dropout, Flatten from holecardhandicapper.model.const import PREFLOP, FLOP, TURN, RIVER from holecardhandicapper.model.utils import Utils class ModelBuilder: @class...
30.795455
83
0.668881
1cb100edc7414061a05530cd0cffbe62eaf6f604
20,973
py
Python
M9_CodeBERT_word_level/codebert_wordlevel_main.py
VulRepairTeam/VulRepair
9cf2abd7ca27d84445ddfc7ab323745a5b676cce
[ "MIT" ]
null
null
null
M9_CodeBERT_word_level/codebert_wordlevel_main.py
VulRepairTeam/VulRepair
9cf2abd7ca27d84445ddfc7ab323745a5b676cce
[ "MIT" ]
null
null
null
M9_CodeBERT_word_level/codebert_wordlevel_main.py
VulRepairTeam/VulRepair
9cf2abd7ca27d84445ddfc7ab323745a5b676cce
[ "MIT" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
48.103211
177
0.637439
ce269e9c1df871a128fb1ac79fb781ad151e063c
549
py
Python
compiler/astnodes/nonlocaldecl.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
3
2020-05-30T16:59:33.000Z
2020-05-31T00:28:45.000Z
compiler/astnodes/nonlocaldecl.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
1
2020-05-30T17:57:11.000Z
2020-05-30T20:44:53.000Z
compiler/astnodes/nonlocaldecl.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
null
null
null
from .declaration import Declaration from .identifier import Identifier class NonLocalDecl(Declaration): def __init__(self, location: [int], variable: Identifier): super().__init__(location, "NonLocalDecl") self.variable = variable def visit(self, visitor): return visitor.NonLocalDec...
26.142857
62
0.68306
4c515159b19059d1b6533a2d83635d94078ab949
39,314
py
Python
tiled-lutnet/training-software/microarchitectures/31lutnet.py
awai54st/LUTNet
81b044f31d1131bee1a7fae41fc4d2fb102ea73a
[ "BSD-2-Clause" ]
38
2019-10-28T10:06:33.000Z
2022-02-21T21:38:39.000Z
tiled-lutnet/training-software/microarchitectures/31lutnet.py
awai54st/LUTNet
81b044f31d1131bee1a7fae41fc4d2fb102ea73a
[ "BSD-2-Clause" ]
null
null
null
tiled-lutnet/training-software/microarchitectures/31lutnet.py
awai54st/LUTNet
81b044f31d1131bee1a7fae41fc4d2fb102ea73a
[ "BSD-2-Clause" ]
13
2019-10-28T10:17:48.000Z
2021-08-10T21:37:11.000Z
import numpy as np import pickle import matplotlib.pyplot as plt import matplotlib import tensorflow as tf import keras from keras.models import Sequential, Model from keras.layers import Dense, Convolution2D, Activation, Flatten, MaxPooling2D,Input,Dropout,GlobalAveragePooling2D from keras import backend as K from ke...
52.071523
194
0.678537
06db3bc2d0c20c02463137afc305c5d3bc3037d0
10,935
py
Python
pytext/data/sources/tsv.py
czHP0616/pytext
64ab1835905dea2e7797e6bc11398c55941fa728
[ "BSD-3-Clause" ]
null
null
null
pytext/data/sources/tsv.py
czHP0616/pytext
64ab1835905dea2e7797e6bc11398c55941fa728
[ "BSD-3-Clause" ]
null
null
null
pytext/data/sources/tsv.py
czHP0616/pytext
64ab1835905dea2e7797e6bc11398c55941fa728
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import csv import sys import threading from itertools import chain from typing import Dict, List, Optional, Type from pytext.config.serialize import _get_class_type from .data_source import ( RootDataSource, SafeFil...
34.386792
86
0.6139
ecec88d11c476870e90e41f5f16cd33121f2cfc7
1,287
py
Python
src/test_helper/load_balancing_test.py
acatalfano/chord-dht
c98f66073b12beb1c3a7cf17197820865936a444
[ "MIT" ]
null
null
null
src/test_helper/load_balancing_test.py
acatalfano/chord-dht
c98f66073b12beb1c3a7cf17197820865936a444
[ "MIT" ]
null
null
null
src/test_helper/load_balancing_test.py
acatalfano/chord-dht
c98f66073b12beb1c3a7cf17197820865936a444
[ "MIT" ]
null
null
null
from collections import defaultdict from random import seed, sample from typing import Callable from app.load_balancing import LoadBalancer from app import Server def lb_test(lb_factory: Callable[[list[Server]], LoadBalancer]) -> None: seed(0) server_names = [f'server_{i}' for i in sample(range(100), 50)] ...
37.852941
82
0.630148
d9b967a4ba3d3d160d38bd3519af120de3aa7bdb
3,921
py
Python
IOController/src/BeerSession.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
9
2017-05-27T20:42:46.000Z
2020-11-12T21:03:28.000Z
IOController/src/BeerSession.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
30
2017-02-16T19:43:18.000Z
2018-01-17T21:17:01.000Z
IOController/src/BeerSession.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
6
2017-02-24T03:40:04.000Z
2020-11-22T20:29:11.000Z
import datetime, time, logging import pcProx, KegIO, User from FifoQueue import Fifo log = logging.getLogger(__name__) class Session(object): def _notifyFlow(self, tapId, pulseCount): self._lastActivityTime = datetime.datetime.utcnow() def __init__(self, user, kegIO, sessionTimeout, inactivityTimeou...
45.068966
206
0.665391
267c20816c379981340c001e13271911022efec6
213
py
Python
my/stackexchange.py
jhermann/HPI
a60c30868b285f233caf65a59d3496082fb9d5c2
[ "MIT" ]
null
null
null
my/stackexchange.py
jhermann/HPI
a60c30868b285f233caf65a59d3496082fb9d5c2
[ "MIT" ]
null
null
null
my/stackexchange.py
jhermann/HPI
a60c30868b285f233caf65a59d3496082fb9d5c2
[ "MIT" ]
null
null
null
import mycfg.repos.stexport.model as stexport from mycfg import paths def get_data(): sources = [max(paths.stexport.export_dir.glob('*.json'))] return stexport.Model(sources).site_model('stackoverflow')
26.625
62
0.751174
682826aa663863b49d6ae1dd187b3dae5c47f398
444
py
Python
brainda/datasets/__init__.py
TBC-TJU/MetaBCI-brainda
d2dc655163b771ca22e43432d886ece3d98235c8
[ "MIT" ]
24
2021-03-05T14:33:43.000Z
2022-03-20T01:23:40.000Z
brainda/datasets/__init__.py
ccc65535/brainda
366a1288bc0f1b835f78fe8dd6c53bcde631c1a5
[ "MIT" ]
2
2021-03-10T05:34:05.000Z
2021-12-16T05:22:18.000Z
brainda/datasets/__init__.py
ccc65535/brainda
366a1288bc0f1b835f78fe8dd6c53bcde631c1a5
[ "MIT" ]
7
2022-02-08T01:52:33.000Z
2022-03-11T06:51:32.000Z
from .base import BaseDataset from .alex_mi import AlexMI from .bnci import BNCI2014001, BNCI2014004 from .tsinghua import Wang2016, BETA from .nakanishi2015 import Nakanishi2015 from .zhou2016 import Zhou2016 from .physionet import PhysionetMI, PhysionetME from .cho2017 import Cho2017 from .munich2009 import MunichMI ...
37
48
0.849099
05e02e013e7cfdb0149d471a8709e2fadd578963
89
py
Python
crawler/apps.py
kuna/twfavcrawler
8173fbedfbf23e291fea18c40aaa29c0db3cbe28
[ "MIT" ]
6
2019-08-01T10:08:26.000Z
2022-01-07T04:12:05.000Z
crawler/apps.py
kuna/twfavcrawler
8173fbedfbf23e291fea18c40aaa29c0db3cbe28
[ "MIT" ]
20
2019-12-04T23:35:21.000Z
2022-03-11T23:52:05.000Z
crawler/apps.py
kuna/twfavcrawler
8173fbedfbf23e291fea18c40aaa29c0db3cbe28
[ "MIT" ]
3
2018-11-21T03:38:32.000Z
2019-02-26T22:02:59.000Z
from django.apps import AppConfig class CrawlerConfig(AppConfig): name = 'crawler'
14.833333
33
0.752809
1755d81e704b1d346080ac428d97e65bc5bca0cc
4,249
py
Python
scripts/devnet_create.py
Smittyvb/core-rs-albatross
1e1ad5269bd64d9f6de8d7094359c5ddd2927416
[ "Apache-2.0" ]
1
2022-01-14T04:10:04.000Z
2022-01-14T04:10:04.000Z
scripts/devnet_create.py
Smittyvb/core-rs-albatross
1e1ad5269bd64d9f6de8d7094359c5ddd2927416
[ "Apache-2.0" ]
null
null
null
scripts/devnet_create.py
Smittyvb/core-rs-albatross
1e1ad5269bd64d9f6de8d7094359c5ddd2927416
[ "Apache-2.0" ]
null
null
null
""" # Albatross DevNet scripts ## Usage 1. Run `devnet_create.py NUM_VALIDATORS`. This will create keys and configurations for multiple validator nodes. 2. Copy genesis config from `/tmp/nimiq-devnet-RANDOM/dev-albatross.toml` to `core-rs/network-primitives/src/genesis/dev-albatross.toml`. 3. Bui...
26.892405
141
0.64627
d91acf4d9ad64e4dac704ee5be65c92aaf228e77
6,175
py
Python
mingpt/demos/play_math.py
sdvillal/minGPT
1b7cf445139492fc1f47389182fbc71a220ade67
[ "MIT" ]
null
null
null
mingpt/demos/play_math.py
sdvillal/minGPT
1b7cf445139492fc1f47389182fbc71a220ade67
[ "MIT" ]
null
null
null
mingpt/demos/play_math.py
sdvillal/minGPT
1b7cf445139492fc1f47389182fbc71a220ade67
[ "MIT" ]
null
null
null
"""Train a GPT model on a dedicated addition dataset to see if a Transformer can learn to add.""" import logging import numpy as np import torch from torch.utils.data import Dataset from mingpt.trainer import Trainer, TrainerConfig from mingpt.model import GPT, GPTConfig from mingpt.utils import set_seed from torch....
42.294521
113
0.637247
129f6a8c4d000d36d3d215dd09d33e344890c7ad
1,753
py
Python
libscampi/contrib/cms/newsengine/filtering.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
2
2016-07-28T19:39:49.000Z
2021-12-10T15:01:54.000Z
libscampi/contrib/cms/newsengine/filtering.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
null
null
null
libscampi/contrib/cms/newsengine/filtering.py
azpm/django-scampi-cms
33fa5786cc93f4c6aff14c9bb6306ac32c6cd486
[ "BSD-3-Clause" ]
1
2016-01-20T23:49:36.000Z
2016-01-20T23:49:36.000Z
from django.utils.translation import ugettext_lazy as _ from django.contrib.admin import SimpleListFilter from django.db.models import Q from libscampi.contrib.cms.newsengine.models import PublishCategory class PublishTypeListFilter(SimpleListFilter): """ Filter published list be things that have been seen ...
29.216667
110
0.624643
cc2347cacaf999aa94645a214e3aead24a7bb4ac
3,514
py
Python
metagov/metagov/tests/test_core_app.py
ajnam12/gateway
8e2265820687ff8091eeb43643df80e88d470fe4
[ "MIT" ]
8
2021-11-18T18:26:04.000Z
2022-02-28T20:07:56.000Z
metagov/metagov/tests/test_core_app.py
ajnam12/gateway
8e2265820687ff8091eeb43643df80e88d470fe4
[ "MIT" ]
38
2021-11-17T14:25:21.000Z
2022-03-28T20:38:47.000Z
metagov/metagov/tests/test_core_app.py
ajnam12/gateway
8e2265820687ff8091eeb43643df80e88d470fe4
[ "MIT" ]
2
2021-12-22T02:27:24.000Z
2022-01-18T02:45:14.000Z
import jsonschema from django.db import IntegrityError from django.test import TestCase from metagov.core.app import MetagovApp from metagov.core.handlers import MetagovRequestHandler from metagov.core.signals import governance_process_updated, platform_event_created from .plugin_test_utils import catch_signal TEST_SL...
37.382979
106
0.693796
a7d430e043b8da1e970eca5e0bdbf22b3f66b9b2
276
py
Python
jackergram/users/apps.py
jmk2729/jackergram
b7b3f7c68a51fd3182f0ef4e1ae6d78c876ebf0f
[ "MIT" ]
null
null
null
jackergram/users/apps.py
jmk2729/jackergram
b7b3f7c68a51fd3182f0ef4e1ae6d78c876ebf0f
[ "MIT" ]
null
null
null
jackergram/users/apps.py
jmk2729/jackergram
b7b3f7c68a51fd3182f0ef4e1ae6d78c876ebf0f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'jackergram.users' verbose_name = "Users" def ready(self): """Override this to put in: Users system checks Users signal registration """ pass
19.714286
37
0.597826
90e041bed70b921b795e5feb0a011a3ba5c4a4ed
2,167
py
Python
semi-automated/crawler_firefox.py
y2mk1ng/facebook-group-analysis
934a1841c063a305329a6c9f7cd8089be2aaf0a5
[ "MIT" ]
null
null
null
semi-automated/crawler_firefox.py
y2mk1ng/facebook-group-analysis
934a1841c063a305329a6c9f7cd8089be2aaf0a5
[ "MIT" ]
null
null
null
semi-automated/crawler_firefox.py
y2mk1ng/facebook-group-analysis
934a1841c063a305329a6c9f7cd8089be2aaf0a5
[ "MIT" ]
null
null
null
''' Author: Yanling Guo (y2mk1ng) Python version 3.8 Warning: This is not yet finished. ''' import time import datetime as dt from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from seleni...
33.859375
88
0.7485
dd112764c5115966328175e77c9b956446a7906f
13,122
py
Python
src/v5.3/resources/swagger_client/models/tpdm_evaluation_element.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
2
2021-04-27T17:18:17.000Z
2021-04-27T19:14:39.000Z
src/v5.1/resources/swagger_client/models/tpdm_evaluation_element.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
null
null
null
src/v5.1/resources/swagger_client/models/tpdm_evaluation_element.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
1
2022-01-06T09:43:11.000Z
2022-01-06T09:43:11.000Z
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
36.859551
482
0.658893
113f460f0a8cb5d00921987c9803f496ef3be31c
73
py
Python
python/testData/intentions/convertLambdaToFunction2_after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/convertLambdaToFunction2_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/convertLambdaToFunction2_after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def transform(): def function(x): return x + 5 return function
14.6
18
0.630137
ec2d72eb72ff23113ddd44caddfe9fe5072bb477
4,092
py
Python
kubeflow/fairing/builders/append/append.py
suomitekai/fairing
9ca6a1138529b3f0b21979d62c7cb1f303bc52e0
[ "Apache-2.0" ]
334
2018-09-03T23:10:02.000Z
2022-03-07T23:12:24.000Z
kubeflow/fairing/builders/append/append.py
suomitekai/fairing
9ca6a1138529b3f0b21979d62c7cb1f303bc52e0
[ "Apache-2.0" ]
562
2018-09-03T21:33:42.000Z
2022-03-29T12:47:43.000Z
kubeflow/fairing/builders/append/append.py
suomitekai/fairing
9ca6a1138529b3f0b21979d62c7cb1f303bc52e0
[ "Apache-2.0" ]
160
2018-11-06T17:55:32.000Z
2022-02-15T09:59:10.000Z
from timeit import default_timer as timer import httplib2 import os import logging from containerregistry.client import docker_creds from containerregistry.client import docker_name from containerregistry.client.v2_2 import append from containerregistry.client.v2_2 import docker_image as v2_2_image from containerregis...
40.92
99
0.661779
de8f982078aa1d8085bb88934fc5e6e86ea88bf6
2,029
py
Python
lib/utils/blob.py
gogartom/DOM-Extraction
54f99fb2b34da6be3d3e8f5466410f46f34956e8
[ "MIT" ]
1
2021-07-31T23:15:42.000Z
2021-07-31T23:15:42.000Z
lib/utils/blob.py
gogartom/DOM-Extraction
54f99fb2b34da6be3d3e8f5466410f46f34956e8
[ "MIT" ]
null
null
null
lib/utils/blob.py
gogartom/DOM-Extraction
54f99fb2b34da6be3d3e8f5466410f46f34956e8
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Blob helper functions.""" import numpy as np import cv2 from fast_r...
34.982759
87
0.603746
9cf22c125aa8bc0b84d73034e0e5f708bda86ee7
427
py
Python
common/services/cointainerWeb3.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
common/services/cointainerWeb3.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
common/services/cointainerWeb3.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
from web3 import Web3 class CointainerWeb3Client(Web3): """ Docs: https://web3py.readthedocs.io/en/stable/ """ def __init__(self, node_url): assert(node_url), "os.environ.get('ETH_NODE_URL') is {}".format(node_url) request_kwargs = { 'timeout': 60 } web3_pro...
28.466667
82
0.641686
e48dbb9115a13a1c1986532c1cfc2e7f7c34a8eb
18,492
py
Python
frappe/email/queue.py
chaitraliw/mws_frappe
52182a27f3b9a61d080e741e349a308be3e94582
[ "MIT" ]
null
null
null
frappe/email/queue.py
chaitraliw/mws_frappe
52182a27f3b9a61d080e741e349a308be3e94582
[ "MIT" ]
null
null
null
frappe/email/queue.py
chaitraliw/mws_frappe
52182a27f3b9a61d080e741e349a308be3e94582
[ "MIT" ]
1
2019-04-04T08:20:28.000Z
2019-04-04T08:20:28.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals from six.moves import range import frappe import HTMLParser import smtplib, quopri, json from frappe import msgprint, throw, _ from frappe.email.smtp import SMTPServer, get_outgoi...
35.290076
166
0.745674
5b20a290fb0e32097e9fb554bacd4f8e2cfbbc28
4,556
py
Python
Lib/site-packages/pylint/config/options_provider_mixin.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/config/options_provider_mixin.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/config/options_provider_mixin.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt import optparse # pylint: disable=deprecated-module import warnings from pylint.config.callback_...
37.652893
89
0.602063
57d8f094444949ccf7303e4418b5d8d23d57889f
1,968
py
Python
sidecar/sidecar.py
syseleven/k8s-sidecar
29712d4adacb3e1951ea16225f10f06d8cec9e7c
[ "MIT" ]
null
null
null
sidecar/sidecar.py
syseleven/k8s-sidecar
29712d4adacb3e1951ea16225f10f06d8cec9e7c
[ "MIT" ]
null
null
null
sidecar/sidecar.py
syseleven/k8s-sidecar
29712d4adacb3e1951ea16225f10f06d8cec9e7c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from kubernetes import client, config from resources import listResources, watchForChanges def main(): print("Starting collector") folderAnnotation = os.getenv('FOLDER_ANNOTATION') if folderAnnotation is None: print("No folder annotation was provided, defaulting...
32.262295
94
0.669715
43d47f9ca4d894ca02acf57a75b3e783bc86d197
5,500
py
Python
pythonforandroid/util.py
strubbi77/python-for-android
230fb66449f18217efa440b942ab6659f3f62edc
[ "MIT" ]
null
null
null
pythonforandroid/util.py
strubbi77/python-for-android
230fb66449f18217efa440b942ab6659f3f62edc
[ "MIT" ]
null
null
null
pythonforandroid/util.py
strubbi77/python-for-android
230fb66449f18217efa440b942ab6659f3f62edc
[ "MIT" ]
null
null
null
import contextlib from os.path import exists, join from os import getcwd, chdir, makedirs, walk, uname import io import json import shutil import sys from fnmatch import fnmatch from tempfile import mkdtemp try: from urllib.request import FancyURLopener except ImportError: from urllib import FancyURLopener fro...
30.054645
105
0.634545
bab830c48714a4748643e910ab94e14203b331b5
3,372
py
Python
karix/models/create_whatsapp_template.py
sendbee/karix-python
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
[ "MIT" ]
1
2021-03-28T23:20:12.000Z
2021-03-28T23:20:12.000Z
karix/models/create_whatsapp_template.py
sendbee/karix-python
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
[ "MIT" ]
null
null
null
karix/models/create_whatsapp_template.py
sendbee/karix-python
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
[ "MIT" ]
null
null
null
import pprint import re # noqa: F401 import six class CreateWhatsappTemplate(object): swagger_types = { 'category': 'str', 'whatsapp_account_uid': 'str', 'name': 'str', 'language_code': 'str', 'attachment': 'str', 'text': 'str' } attribute_map = { ...
25.740458
76
0.577699
17ca71056b7bc0a5532080aa372caab3b16ce977
1,635
py
Python
ops.py
mriberodiaz/colSensing
47dd3c69fe1094dba5e430397a14b53944fdb04c
[ "MIT" ]
null
null
null
ops.py
mriberodiaz/colSensing
47dd3c69fe1094dba5e430397a14b53944fdb04c
[ "MIT" ]
null
null
null
ops.py
mriberodiaz/colSensing
47dd3c69fe1094dba5e430397a14b53944fdb04c
[ "MIT" ]
null
null
null
import math import numpy as np import tensorflow as tf import keras from keras import backend as K def leaky_relu(x): return K.relu(x, alpha=0) def whitten(x): temp = keras.layers.concatenate([K.ones_like(x[:,:10,:,:,:]), K.zeros_like(x[:,10:,:,:,:])], axis = 1) return x*temp def crop_input(input_layer,...
30.849057
104
0.689297
36b9a8da6551995709fcc05978de6aa079eb3a97
13,111
py
Python
src/xr_regression.py
AJueling/FW-code
185993e45a2bc95aab0043ec7053b5bbad051f08
[ "BSD-3-Clause" ]
3
2021-06-30T00:35:40.000Z
2022-03-08T06:17:18.000Z
src/xr_regression.py
AJueling/FW-code
185993e45a2bc95aab0043ec7053b5bbad051f08
[ "BSD-3-Clause" ]
null
null
null
src/xr_regression.py
AJueling/FW-code
185993e45a2bc95aab0043ec7053b5bbad051f08
[ "BSD-3-Clause" ]
1
2022-03-08T06:17:20.000Z
2022-03-08T06:17:20.000Z
# inspiration from https://gist.github.com/rabernat/bc4c6990eb20942246ce967e6c9c3dbe import os import dask import numpy as np import scipy as sp import xarray as xr import cftime import datetime # from numba import jit from paths import path_samoc, path_results, CESM_filename, file_ex_ocn_ctrl from regions import bo...
34.869681
127
0.613149
9eb7647162914742c48064ee4992ba57e39b304c
6,368
py
Python
tensorflow_federated/python/learning/metrics/aggregator.py
vanshhhhh/federated
20fdca66d01051c55413868310d60c068c84b35d
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/metrics/aggregator.py
vanshhhhh/federated
20fdca66d01051c55413868310d60c068c84b35d
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/metrics/aggregator.py
vanshhhhh/federated
20fdca66d01051c55413868310d60c068c84b35d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, The TensorFlow Federated 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 applicable law o...
50.539683
80
0.765546
f3545ac30be5b42a3ec4edd2e15714f1fb184090
2,208
py
Python
bumblebee/util.py
basvdheuvel/bumblebee-status
0c4326eb3182ebdc6f4061c87a4c5c10525f9d9c
[ "MIT" ]
1
2022-03-09T15:35:40.000Z
2022-03-09T15:35:40.000Z
bumblebee/util.py
basvdheuvel/bumblebee-status
0c4326eb3182ebdc6f4061c87a4c5c10525f9d9c
[ "MIT" ]
null
null
null
bumblebee/util.py
basvdheuvel/bumblebee-status
0c4326eb3182ebdc6f4061c87a4c5c10525f9d9c
[ "MIT" ]
1
2019-04-23T13:49:09.000Z
2019-04-23T13:49:09.000Z
# -*- coding: utf-8 -*- import shlex import logging import subprocess try: from exceptions import RuntimeError except ImportError: # Python3 doesn't require this anymore pass def asbool(val): if val is None: return False if isinstance(val, bool): return val val = str(val).str...
26.60241
83
0.575181
7464e55086761a820797862452ffd95719391192
4,721
py
Python
requests_file.py
dashea/requests-file
8ae75028bf44dba16b0c6eb454ec96de11e87708
[ "Apache-2.0" ]
68
2015-07-06T06:10:13.000Z
2021-12-08T15:47:28.000Z
requests_file.py
dashea/requests-file
8ae75028bf44dba16b0c6eb454ec96de11e87708
[ "Apache-2.0" ]
22
2015-07-28T12:54:12.000Z
2022-01-02T21:00:22.000Z
requests_file.py
dashea/requests-file
8ae75028bf44dba16b0c6eb454ec96de11e87708
[ "Apache-2.0" ]
21
2016-07-31T14:49:46.000Z
2020-11-17T10:57:49.000Z
from requests.adapters import BaseAdapter from requests.compat import urlparse, unquote from requests import Response, codes import errno import os import stat import locale import io from six import BytesIO class FileAdapter(BaseAdapter): def __init__(self, set_content_length=True): super(FileAdapter, s...
40.008475
85
0.602838
b734b794d1b0459ef34e95a4af5a9eae3508479d
7,230
py
Python
Tests/class_test.py
gmangin/ScriptDNS
59e835fa7de28863d65479a05aba3bb043cf59a6
[ "MIT" ]
2
2016-05-02T12:01:42.000Z
2016-10-04T14:08:25.000Z
Tests/class_test.py
gmangin/ScriptDNS
59e835fa7de28863d65479a05aba3bb043cf59a6
[ "MIT" ]
null
null
null
Tests/class_test.py
gmangin/ScriptDNS
59e835fa7de28863d65479a05aba3bb043cf59a6
[ "MIT" ]
null
null
null
# **************************************************************************** # # # # # # class_test.py ...
37.65625
80
0.518396
0997799c416cf528518a26647aa1c0ed6635bf64
3,094
py
Python
bob/db/hci_tagging/__init__.py
bioidiap/bob.db.hci_tagging
ad4e41446d38c0239592f418d1e015d668cc0058
[ "BSD-3-Clause" ]
5
2019-02-04T09:36:39.000Z
2021-05-24T16:05:51.000Z
bob/db/hci_tagging/__init__.py
bioidiap/bob.db.hci_tagging
ad4e41446d38c0239592f418d1e015d668cc0058
[ "BSD-3-Clause" ]
null
null
null
bob/db/hci_tagging/__init__.py
bioidiap/bob.db.hci_tagging
ad4e41446d38c0239592f418d1e015d668cc0058
[ "BSD-3-Clause" ]
1
2021-08-25T01:39:53.000Z
2021-08-25T01:39:53.000Z
#!/usr/bin/env python # vim: set fileencoding=utf-8 : import os from .models import * from pkg_resources import resource_filename LOCATION = resource_filename(__name__, 'metadata.csv') class Database(object): def __init__(self): from .driver import Interface self.info = Interface() # Loads metadata ...
31.896907
101
0.630252
d943aefdde34e35f70aca5307a582d2edfa81462
40,461
py
Python
dask-gateway/dask_gateway/client.py
jcrist/configurable-tls-proxy
01eef766f05d3ff91718b134ccb9490b02f50671
[ "BSD-3-Clause" ]
null
null
null
dask-gateway/dask_gateway/client.py
jcrist/configurable-tls-proxy
01eef766f05d3ff91718b134ccb9490b02f50671
[ "BSD-3-Clause" ]
null
null
null
dask-gateway/dask_gateway/client.py
jcrist/configurable-tls-proxy
01eef766f05d3ff91718b134ccb9490b02f50671
[ "BSD-3-Clause" ]
null
null
null
import asyncio import atexit import enum import logging import os import ssl import sys import tempfile import traceback import warnings import weakref from datetime import datetime from urllib.parse import urlparse import aiohttp import dask import yarl from dask.utils import format_bytes from distributed import Clie...
32.394716
87
0.586664
ed55b245ba2a7e0beb0944e63bbd656037cda4f3
712
py
Python
thenewboston_node/business_logic/tests/fixtures/coin_transfer_signed_request_message.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/tests/fixtures/coin_transfer_signed_request_message.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/tests/fixtures/coin_transfer_signed_request_message.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
import pytest from thenewboston_node.business_logic.models import CoinTransferSignedChangeRequestMessage, CoinTransferTransaction @pytest.fixture def sample_coin_transfer_signed_request_message( treasury_account_key_pair, user_account_key_pair, node_key_pair, primary_validator_key_pair ): return CoinTransfer...
39.555556
115
0.792135
540f200b486b4e3ec14565ea5569bef5bf1fb92f
658
py
Python
Next Day.py
fatih-iver-2016400264/Intro-to-Computer-Science-with-Python
7b8127681415dfd100a0e70fe8a672cec696bbb7
[ "MIT" ]
null
null
null
Next Day.py
fatih-iver-2016400264/Intro-to-Computer-Science-with-Python
7b8127681415dfd100a0e70fe8a672cec696bbb7
[ "MIT" ]
null
null
null
Next Day.py
fatih-iver-2016400264/Intro-to-Computer-Science-with-Python
7b8127681415dfd100a0e70fe8a672cec696bbb7
[ "MIT" ]
null
null
null
### ### Define a simple nextDay procedure, that assumes ### every month has 30 days. ### ### For example: ### nextDay(1999, 12, 30) => (2000, 1, 1) ### nextDay(2013, 1, 30) => (2013, 2, 1) ### nextDay(2012, 12, 30) => (2013, 1, 1) (even though December really has 31 days) ### def nextDay(year, mont...
22.689655
88
0.5
2d176c143e5b57777aab7a4168d53161175bb6aa
666
py
Python
tests/internal/test_graph.py
jgosmann/plato
25c1612debecadd0d1be6226e7ff3b5591feae00
[ "MIT" ]
null
null
null
tests/internal/test_graph.py
jgosmann/plato
25c1612debecadd0d1be6226e7ff3b5591feae00
[ "MIT" ]
5
2021-04-03T19:06:16.000Z
2021-06-06T12:47:27.000Z
tests/internal/test_graph.py
py-plato/plato
25c1612debecadd0d1be6226e7ff3b5591feae00
[ "MIT" ]
null
null
null
import pytest from plato.internal.graph import toposort def test_toposort(): graph = { 0: (2, 3, 5), 2: (5, 3), 3: (4,), 4: (), 5: (), } valid_toposorts = { (4, 5, 3, 2, 0), (5, 4, 3, 2, 0), } assert graph == { 0: (2, 3, 5), ...
17.526316
54
0.474474
4f928838ef4bf66d11ffe188ea48fb007813dc6f
7,158
py
Python
gsheetsdb/formatting.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
176
2018-09-11T12:29:00.000Z
2022-03-26T19:33:31.000Z
gsheetsdb/formatting.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
16
2018-09-14T18:11:09.000Z
2022-03-08T20:17:56.000Z
gsheetsdb/formatting.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
14
2019-01-10T16:40:25.000Z
2021-07-27T01:22:58.000Z
# encoding: utf-8 # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Beto Dealmeida (beto@dealmeida.net) # from __future__ import absolute_import from __futu...
28.517928
79
0.560631
a2c104497880ef7335b638b938c78e89bf14f486
52,595
py
Python
feature_engine.py
StCross/XLGB4AirComat
84260607f0f48027da8b2595118fd6919e94f5d7
[ "Apache-2.0" ]
1
2021-09-22T08:54:27.000Z
2021-09-22T08:54:27.000Z
feature_engine.py
StCross/XLGB4DCS-world
84260607f0f48027da8b2595118fd6919e94f5d7
[ "Apache-2.0" ]
null
null
null
feature_engine.py
StCross/XLGB4DCS-world
84260607f0f48027da8b2595118fd6919e94f5d7
[ "Apache-2.0" ]
null
null
null
import os import shutil from collections import defaultdict import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from sklearn.feature_selection import SelectKBest, VarianceThreshold, chi2 from config import (feature_mean_most_map, feature_mean_std_map, featu...
35.322364
119
0.511608
0cccc0b41a96272033fd6543af49b9bc93b7267d
974
py
Python
downserver/ql_test.py
allvphx/prac
282d1f6444b14ef86a93804b4bcec1fbe25e55d7
[ "MIT" ]
1
2022-03-07T05:58:39.000Z
2022-03-07T05:58:39.000Z
downserver/ql_test.py
ooibc/prac
d31c5ecac9541f14795869bf8f345378d856bba6
[ "MIT" ]
null
null
null
downserver/ql_test.py
ooibc/prac
d31c5ecac9541f14795869bf8f345378d856bba6
[ "MIT" ]
null
null
null
import gym import numpy as np from ql import QT_Learner def test_frozen_lake(): env = gym.make("FrozenLake-v1") env.render() env.reset() agent = QT_Learner(env.action_space.n, env.observation_space.n) middle_win = 0 for epoch in range(10000): if epoch % 1000 == 999: print(...
25.631579
67
0.527721
219521dd629c65b58eb5c58860ec87dbb8b1bba9
27,008
py
Python
SimG4Core/Application/python/g4SimHits_cfi.py
emily-tsai11/cmssw
5adce1b6173b638caf2c7f6ce1e8c1c090296bbf
[ "Apache-2.0" ]
5
2020-07-02T19:05:26.000Z
2022-02-25T14:37:09.000Z
SimG4Core/Application/python/g4SimHits_cfi.py
emily-tsai11/cmssw
5adce1b6173b638caf2c7f6ce1e8c1c090296bbf
[ "Apache-2.0" ]
61
2020-07-14T17:22:52.000Z
2022-03-16T11:11:12.000Z
SimG4Core/Application/python/g4SimHits_cfi.py
emily-tsai11/cmssw
5adce1b6173b638caf2c7f6ce1e8c1c090296bbf
[ "Apache-2.0" ]
8
2020-06-08T16:28:54.000Z
2021-11-16T14:40:00.000Z
import FWCore.ParameterSet.Config as cms from SimG4Core.Application.hectorParameter_cfi import * ## HF Raddam Dose Class in /SimG4CMS/Calo from SimG4CMS.Calo.HFDarkeningParams_cff import * ## HF shower parameters from Geometry.HcalSimData.HFParameters_cff import * ## Modification needed for H2 TestBeam studies from...
41.679012
110
0.5869
e118363cc15637238e7b216755fedf0c9efd4c51
5,462
py
Python
app/libs/lists.py
WMU-Su-ChaShan-21Lab/MagicExWASPortal
35f5ba3f10bb90d99a64d376fff8c322a11b8598
[ "MIT" ]
null
null
null
app/libs/lists.py
WMU-Su-ChaShan-21Lab/MagicExWASPortal
35f5ba3f10bb90d99a64d376fff8c322a11b8598
[ "MIT" ]
null
null
null
app/libs/lists.py
WMU-Su-ChaShan-21Lab/MagicExWASPortal
35f5ba3f10bb90d99a64d376fff8c322a11b8598
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File Name : lists.py @Create Time : 2021/7/14 9:42 @Description : @Version : @License : @Author : diklios @Contact Email : diklios5768@gmail.com @Github : https://github.com/diklios5768 @Blog : @Motto : All our scien...
45.89916
468
0.664042
d69d3190dab354143415f4296f95c747b1ef7727
4,976
py
Python
client/src/dolbyio_rest_apis/communications/remix.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
1
2021-12-23T17:55:06.000Z
2021-12-23T17:55:06.000Z
client/src/dolbyio_rest_apis/communications/remix.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
client/src/dolbyio_rest_apis/communications/remix.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
""" dolbyio_rest_apis.communications.remix ~~~~~~~~~~~~~~~ This module contains the functions to work with the remix API. """ from deprecated import deprecated from dolbyio_rest_apis.communications.internal.http_context import CommunicationsHttpContext from dolbyio_rest_apis.communications.internal.urls import get_ap...
33.395973
121
0.699759
9ebf665b8f1732b73c512d23c0a92e142b96366d
6,166
py
Python
utils/text_process_util.py
NLP-Discourse-SoochowU/rst_dp2019Bottom2Up
ac1624127c9c8a3301685193ac8239357e01f6ca
[ "MIT" ]
1
2020-08-18T01:28:07.000Z
2020-08-18T01:28:07.000Z
utils/text_process_util.py
NLP-Discourse-SoochowU/rst_dp2019
ac1624127c9c8a3301685193ac8239357e01f6ca
[ "MIT" ]
null
null
null
utils/text_process_util.py
NLP-Discourse-SoochowU/rst_dp2019
ac1624127c9c8a3301685193ac8239357e01f6ca
[ "MIT" ]
null
null
null
""" 作者:张龙印 日期:2018.3.12 文本处理 文本处理 """ import re # 定义英文符号 s_list = [',', '.', ':', ';', '!', '?', '-', '*', '\'', '`', '_', '\"', '(', ')', '{', '}', '[', ']', '<', '>', '¨', '"', '||', '/', '&', '~', '$', '\\', '#', '%'] num_re = r"^\d+$" perc_re = r"^\d+/\d+$" perc_re2 = r"^\d+/\d+-.*" US_D_...
31.783505
113
0.558223
d020c8d54598d30b17ad2f2e36d6f1c5d51cb87b
416
py
Python
tools/snippets/callexecute.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
tools/snippets/callexecute.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
tools/snippets/callexecute.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
import subprocess import sys from os.path import join def main(): argv=sys.argv argc=len(argv) print ("argv=%s"%argv) print ("argc=%d"%argc) if(argc==2): exename=argv[1] path ="hoge" command=exename+" "+join(".",path) echo="echo "+command subprocess.call(ech...
20.8
43
0.588942
c3e69092e91946cdc4553ff8cb17b5b9790f5fd6
252
py
Python
NovelSpider/main.py
sunwei19910119/NovelSpider
bbdb80ee028264519224841ab1fe7e349a5fed01
[ "MIT" ]
2
2018-08-22T02:41:33.000Z
2018-08-22T02:45:13.000Z
NovelSpider/main.py
sunwei19910119/NovelSpider
bbdb80ee028264519224841ab1fe7e349a5fed01
[ "MIT" ]
null
null
null
NovelSpider/main.py
sunwei19910119/NovelSpider
bbdb80ee028264519224841ab1fe7e349a5fed01
[ "MIT" ]
null
null
null
from scrapy.cmdline import execute import sys import os #将系统当前目录设置为项目根目录 #os.path.abspath(__file__)为当前文件所在的绝对路径 #os.path.dirname为文件所在目录 sys.path.append(os.path.dirname(os.path.abspath(__file__))) #执行命令相当于在控制台输入改名了 execute(["scrapy","crawl","zxcs"])
22.909091
59
0.793651
9e9fc75841eb8b85a9858c6a7f6fb8a558c3856b
425
py
Python
awards/wsgi.py
PyGotham/awards
a98e6a61122dd070b403c7b6575502693515f106
[ "BSD-3-Clause" ]
3
2020-03-05T19:24:31.000Z
2021-11-15T12:13:11.000Z
awards/wsgi.py
PyGotham/awards
a98e6a61122dd070b403c7b6575502693515f106
[ "BSD-3-Clause" ]
36
2020-02-14T06:09:51.000Z
2022-02-14T08:14:03.000Z
awards/wsgi.py
PyGotham/awards
a98e6a61122dd070b403c7b6575502693515f106
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for awards 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.2/howto/deployment/wsgi/ """ from __future__ import annotations import os from django.core.wsgi import get_wsgi_application ...
22.368421
78
0.790588
afdbe51f4c7fdd317d6dab0335398393ad3bb6a2
1,380
py
Python
venv/Lib/site-packages/pandas/tests/computation/test_compat.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
1
2021-02-06T21:00:00.000Z
2021-02-06T21:00:00.000Z
venv/Lib/site-packages/pandas/tests/computation/test_compat.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/computation/test_compat.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
from distutils.version import LooseVersion import pytest from pandas.compat._optional import VERSIONS import pandas as pd from pandas.core.computation.engines import _engines import pandas.core.computation.expr as expr def test_compat(): # test we have compat with our version of nu from pand...
27.6
81
0.61087
d372a2b4da368da94165022f98baa63417e89287
967
py
Python
deepchem/molnet/load_function/material_datasets/tests/test_load_perovskite.py
hssinejihene/deepchem
7b5177240eb85a68819b4450635ec9df54afed23
[ "MIT" ]
null
null
null
deepchem/molnet/load_function/material_datasets/tests/test_load_perovskite.py
hssinejihene/deepchem
7b5177240eb85a68819b4450635ec9df54afed23
[ "MIT" ]
null
null
null
deepchem/molnet/load_function/material_datasets/tests/test_load_perovskite.py
hssinejihene/deepchem
7b5177240eb85a68819b4450635ec9df54afed23
[ "MIT" ]
null
null
null
""" Tests for perovskite loader. """ import os import tempfile import shutil import numpy as np import deepchem as dc from deepchem.molnet import load_perovskite def test_perovskite_loader(): current_dir = os.path.dirname(os.path.abspath(__file__)) tasks, datasets, transformers = load_perovskite( reload=F...
25.447368
69
0.645295
56fb79f6ae27d347e9441bed4f9c09db51560688
9,526
py
Python
iter_app/src/timing.py
Wisc-HCI/ITER
2ae8a5f0ae17783db4db25198ec0d97e72cd7296
[ "MIT" ]
1
2021-04-07T15:54:44.000Z
2021-04-07T15:54:44.000Z
iter_app/src/timing.py
Wisc-HCI/ITER
2ae8a5f0ae17783db4db25198ec0d97e72cd7296
[ "MIT" ]
null
null
null
iter_app/src/timing.py
Wisc-HCI/ITER
2ae8a5f0ae17783db4db25198ec0d97e72cd7296
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Timing Node Author: Curt Henrichs Date: 5-22-19 Provides RAD timing updates to ITER network. Inspired by fanout and robot-attention-demand (RAD) research with the concept of neglect and interaction time, this node attempt to convey the necessary signal as the task progresses. Thus a plan in...
35.151292
113
0.597418
0bbe1750e8a4bf17584ac453b0f8b07ccba701d9
1,723
py
Python
examples/walmart_survey/walmart_log_bs.py
microprediction/recalibrate
5b1fe8f3608cbdcb819ed9553c3bc0588d55b5af
[ "MIT" ]
null
null
null
examples/walmart_survey/walmart_log_bs.py
microprediction/recalibrate
5b1fe8f3608cbdcb819ed9553c3bc0588d55b5af
[ "MIT" ]
null
null
null
examples/walmart_survey/walmart_log_bs.py
microprediction/recalibrate
5b1fe8f3608cbdcb819ed9553c3bc0588d55b5af
[ "MIT" ]
null
null
null
from whereami import ROOT import os from sklearn.metrics import brier_score_loss from pprint import pprint WALMART_CSV = ROOT+os.path.sep + 'examples' + os.path.sep + 'walmart_survey' + os.path.sep + 'walmart_survey_clean.csv' PROBABILITIES_CSV = WALMART_CSV.replace('clean','probabilities') LOGISTIC_CSV = WALMART_CSV....
29.20339
119
0.65177
6f6817f30efaf585e8be4a793dcffbbb9edc7185
2,117
py
Python
tests/vtk_ui/test_vtk_ui_label_x.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
11
2018-10-10T03:14:33.000Z
2022-01-05T14:18:15.000Z
tests/vtk_ui/test_vtk_ui_label_x.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
196
2018-03-21T19:44:56.000Z
2021-12-21T21:56:24.000Z
tests/vtk_ui/test_vtk_ui_label_x.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
5
2019-12-09T21:54:45.000Z
2022-03-20T04:22:14.000Z
""" Test label placement when using the x property """ import vcs.vtk_ui import vtk from vtk_ui_test import vtk_ui_test class test_vtk_ui_label_x(vtk_ui_test): def do(self): self.win.SetSize(130, 130) self.args = ["test_vtk_ui_label_x.png"] font_sizes = [10, 18, 24, 31] for ind,...
35.283333
105
0.591403
512108a8fb3fe5b745f51143c167ee91b48b3217
737
py
Python
models/gan/model_manager.py
raviv/torchcv
cf57ee035b4f4738fbcf94e1e0eb50d10e2c1b67
[ "Apache-2.0" ]
308
2019-08-11T02:12:37.000Z
2022-03-30T07:20:41.000Z
models/gan/model_manager.py
pinglmlcv/ANN
f4eabeb27dbba5c9bdcf83d03776bffa34995666
[ "Apache-2.0" ]
19
2019-08-22T04:57:33.000Z
2022-03-27T10:59:23.000Z
models/gan/model_manager.py
pinglmlcv/ANN
f4eabeb27dbba5c9bdcf83d03776bffa34995666
[ "Apache-2.0" ]
64
2019-08-17T07:09:50.000Z
2022-03-27T11:23:39.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) # Select GAN Model for object detection. from models.gan.nets.pix2pix import Pix2Pix from models.gan.nets.cycle_gan import CycleGAN from utils.tools.logger import Logger as Log GAN_MODEL_DICT = { 'pix2pix': Pix2Pix, 'cycle...
23.774194
64
0.672999
1ded8c92bd60d5eab1c34c4c5090733c45a0afdd
8,269
py
Python
torch_ecg/utils/utils_signal_t.py
DeepPSP/torch_ecg
6db5ffb063d0e8fb4ce97029a0d184a658f43a37
[ "MIT" ]
9
2021-06-26T03:00:55.000Z
2022-03-03T13:43:00.000Z
torch_ecg/utils/utils_signal_t.py
wenh06/torch_ecg
a260bac0b4be8cd84c411874af3337358f135442
[ "MIT" ]
1
2021-10-01T09:29:30.000Z
2021-10-02T03:41:55.000Z
torch_ecg/utils/utils_signal_t.py
DeepPSP/torch_ecg
6db5ffb063d0e8fb4ce97029a0d184a658f43a37
[ "MIT" ]
2
2021-05-25T14:52:03.000Z
2021-12-29T15:09:08.000Z
""" utilities for signal processing on PyTorch tensors """ from typing import Union, Iterable, Optional from numbers import Real import torch __all__ = [ "normalize", "resample", ] def normalize(sig:torch.Tensor, method:str="z-score", mean:Union[Real,Iterable[Real]]=0.0, ...
41.552764
115
0.552062
b4e3cd66ac5b79cc16313dd564b125e9459d7ded
20,550
py
Python
flux_combined_high_binding/model_769.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_769.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_769.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.138889
798
0.804136
893e97a30975df700341f2719dbc554926a28144
934
py
Python
launch_ros_sandbox/__init__.py
thomas-moulard/launch_ros_sandbox
c0d65334ba080749897632ad7cbef1976f68ed7c
[ "Apache-2.0" ]
13
2019-09-17T00:10:44.000Z
2019-09-28T01:14:25.000Z
launch_ros_sandbox/__init__.py
thomas-moulard/launch_ros_sandbox
c0d65334ba080749897632ad7cbef1976f68ed7c
[ "Apache-2.0" ]
49
2020-04-23T18:02:16.000Z
2021-08-13T21:10:11.000Z
launch_ros_sandbox/__init__.py
thomas-moulard/launch_ros_sandbox
c0d65334ba080749897632ad7cbef1976f68ed7c
[ "Apache-2.0" ]
2
2019-09-18T13:48:38.000Z
2019-09-28T00:51:24.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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 require...
30.129032
74
0.767666
198ca833bfb6a9c093c4e455eb7f17d4f1466bc6
4,170
py
Python
tictactoe.py
Escended/console-tictactoe
52e1ede3e4953d31426f918c9c7435ca94a33f03
[ "MIT" ]
null
null
null
tictactoe.py
Escended/console-tictactoe
52e1ede3e4953d31426f918c9c7435ca94a33f03
[ "MIT" ]
null
null
null
tictactoe.py
Escended/console-tictactoe
52e1ede3e4953d31426f918c9c7435ca94a33f03
[ "MIT" ]
null
null
null
state = " " * 9 winner = None draw = False # "1 1", "1 2", "1 3", # "2 1", "2 2", "2 3", # "3 1", "3 2", "3 3" def main(): game_state(state) read_board(state) while winner is None: player_move() if winner is not None: break def game_state(cells): print("-" * 9) print...
29.574468
79
0.417986
a9970056dbd6308e1191f4e57b7be7d20a94c43e
1,562
py
Python
grpc/connectionServiceWithNotif/connectionServiceWithNotif_server.py
rvilalta/OFC2019_SC472
c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3
[ "Apache-2.0" ]
2
2018-11-28T15:03:08.000Z
2019-02-04T15:19:58.000Z
grpc/connectionServiceWithNotif/connectionServiceWithNotif_server.py
rvilalta/OFC2019_SC472
c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3
[ "Apache-2.0" ]
null
null
null
grpc/connectionServiceWithNotif/connectionServiceWithNotif_server.py
rvilalta/OFC2019_SC472
c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3
[ "Apache-2.0" ]
2
2021-09-28T15:31:03.000Z
2021-11-16T17:53:59.000Z
from concurrent import futures import time import logging import grpc import connectionServiceWithNotif_pb2 import connectionServiceWithNotif_pb2_grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 _ONE_DAY_IN_SECONDS = 60 * 60 * 24 class connectionServiceWithNotif(connectionServiceWithN...
33.234043
126
0.739437
db2726b8db746d14c57c121d873967f220c7846c
9,273
py
Python
scripts/automation/trex_control_plane/astf/trex_astf_lib/sim.py
harshitgupta1337/trex-measure-killer-us
7d0ca9cb33220384dd4341567ef47bb2b8d5c477
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/astf/trex_astf_lib/sim.py
harshitgupta1337/trex-measure-killer-us
7d0ca9cb33220384dd4341567ef47bb2b8d5c477
[ "Apache-2.0" ]
null
null
null
scripts/automation/trex_control_plane/astf/trex_astf_lib/sim.py
harshitgupta1337/trex-measure-killer-us
7d0ca9cb33220384dd4341567ef47bb2b8d5c477
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) 2017-2017 Cisco Systems, 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 l...
29.531847
123
0.537798
df5315ceed450006d72d7bd4728bfd7cbbd4c889
35
py
Python
streamlit_cloud_uploader/__init__.py
rdmolony/streamlit-cloud-uploader
49072168ab41505f873c4d80d58516f610ca601b
[ "MIT" ]
null
null
null
streamlit_cloud_uploader/__init__.py
rdmolony/streamlit-cloud-uploader
49072168ab41505f873c4d80d58516f610ca601b
[ "MIT" ]
null
null
null
streamlit_cloud_uploader/__init__.py
rdmolony/streamlit-cloud-uploader
49072168ab41505f873c4d80d58516f610ca601b
[ "MIT" ]
null
null
null
from .widget import cloud_uploader
17.5
34
0.857143
72eaf36d409c8491aa8b2b5fd6f1fa773b3d7b02
3,394
py
Python
Ene-Jun-2021/Ejemplos/clase-3.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2021/Ejemplos/clase-3.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2021/Ejemplos/clase-3.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
''' --- Tuplas ''' # NO podemos modificar los valores de las tuplas mi_tupla = (2, 4, 6, 8, 10) print(mi_tupla) # mi_tupla[0] = 0 -> Esto va a fallar ''' --- Diccionarios ''' mi_diccionario = { 'x': 5, 'y': 10 } # Accedemos a las llaves del diccionario print(mi_diccionario) print(mi_diccionario['x']) print(mi_d...
25.518797
107
0.667354
1d65ec1fc63e8433ae9e7e6ff59cbef8a977ace9
16,186
py
Python
tests/test_image.py
tonylzy/confluence
d8bb63d1f6d84359840ba5b48fa5388bd5674b25
[ "Apache-2.0" ]
null
null
null
tests/test_image.py
tonylzy/confluence
d8bb63d1f6d84359840ba5b48fa5388bd5674b25
[ "Apache-2.0" ]
null
null
null
tests/test_image.py
tonylzy/confluence
d8bb63d1f6d84359840ba5b48fa5388bd5674b25
[ "Apache-2.0" ]
null
null
null
import pytest from helpers import get_app_home, get_app_install_dir, get_bootstrap_proc, get_procs, \ parse_properties, parse_xml, run_image, wait_for_http_response, wait_for_proc def test_jvm_args(docker_cli, image, run_user): environment = { 'JVM_MINIMUM_MEMORY': '383m', 'JVM_MAXIMUM_MEMOR...
49.803077
143
0.708575