hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
12c28cc46a7dcf0d0ebc53795dbe76d01de5679c
1,254
py
Python
tests/test_typing.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-23T19:18:45.000Z
2020-05-23T19:18:45.000Z
tests/test_typing.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
1
2021-05-09T08:09:20.000Z
2021-05-09T08:09:20.000Z
tests/test_typing.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# # Copyright 2019-2020 Lukas Schmelzeisen # # 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 t...
29.162791
74
0.733652
# # Copyright 2019-2020 Lukas Schmelzeisen # # 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 t...
434
0
46
ec2866ff5024ac73b3d31a1f531f8625cde8f60f
485
py
Python
froide/foirequest/migrations/0009_foirequest_closed.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
198
2016-12-03T22:42:55.000Z
2022-03-25T15:08:36.000Z
froide/foirequest/migrations/0009_foirequest_closed.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
264
2016-11-30T18:53:17.000Z
2022-03-17T11:34:18.000Z
froide/foirequest/migrations/0009_foirequest_closed.py
xenein/froide
59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa
[ "MIT" ]
42
2016-12-22T04:08:27.000Z
2022-02-26T08:30:38.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-01 14:49 from __future__ import unicode_literals from django.db import migrations, models
23.095238
79
0.630928
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-01 14:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("foirequest", "0008_auto_20171124_1508"), ] operations = [ migrations.AddFie...
0
306
23
826a663afa3c9227a3c7b8143bc752352b87b5f3
2,244
py
Python
pipedown/Tools/grpc_cisco_python/tests/test_cisco_grpc.py
cisco-ie/Pipedown
5f37435f63ccb5b1f157e333fdd441bdc0b1c8f7
[ "Apache-2.0" ]
1
2017-05-22T11:26:32.000Z
2017-05-22T11:26:32.000Z
pipedown/Tools/grpc_cisco_python/tests/test_cisco_grpc.py
cisco-ie/Pipedown
5f37435f63ccb5b1f157e333fdd441bdc0b1c8f7
[ "Apache-2.0" ]
null
null
null
pipedown/Tools/grpc_cisco_python/tests/test_cisco_grpc.py
cisco-ie/Pipedown
5f37435f63ccb5b1f157e333fdd441bdc0b1c8f7
[ "Apache-2.0" ]
1
2018-01-17T21:44:52.000Z
2018-01-17T21:44:52.000Z
import unittest import sys sys.path.insert(0, '../') from client.cisco_grpc_client_insecure import CiscoGRPCClient import json if __name__ == '__main__': unittest.main()
48.782609
478
0.62656
import unittest import sys sys.path.insert(0, '../') from client.cisco_grpc_client_insecure import CiscoGRPCClient import json class CiscoGRPCClientcase(unittest.TestCase): def setUp(self): self.client = CiscoGRPCClient('192.168.1.2', 57777, 10, 'vagrant', 'vagrant') self.maxDiff = None pa...
1,862
24
183
5367f5bc6cd6abd77796f8aca47609a14b59d7cf
2,331
py
Python
exchange/rest/async_client.py
raphaelvrosa/md2-nfv
b97e28fad3236fb76344ac3ac5194ef4a94494d0
[ "Apache-2.0" ]
null
null
null
exchange/rest/async_client.py
raphaelvrosa/md2-nfv
b97e28fad3236fb76344ac3ac5194ef4a94494d0
[ "Apache-2.0" ]
null
null
null
exchange/rest/async_client.py
raphaelvrosa/md2-nfv
b97e28fad3236fb76344ac3ac5194ef4a94494d0
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger(__name__) import requests import _thread if __name__ == '__main__': import json import time client = WebClient() msg = { 'type': 'config', 'domains': [ {'id': 'B', 'address': 'http://127.0.0.1:8882'}, ] ...
28.084337
94
0.590305
import logging logger = logging.getLogger(__name__) import requests import _thread def request(_type, url, message, kwargs): logger.debug('sending msg %s to url %s', _type, url) # logger.debug('sending msg data \n%s', message) response = None try: if _type == 'post': response = re...
1,573
75
69
7dc7845e99e4bdaa8364fbeffae232be1212558e
12,092
py
Python
cogdl/datasets/kg_data.py
Aliang-CN/cogdl
01b1dbf7528240457a5fbe8c24b8271e805dc7ec
[ "MIT" ]
1
2021-03-17T07:23:51.000Z
2021-03-17T07:23:51.000Z
cogdl/datasets/kg_data.py
yingyukexiansheng/cogdl
cf594cdb3a97f45333d08c937205d1a691828a33
[ "MIT" ]
null
null
null
cogdl/datasets/kg_data.py
yingyukexiansheng/cogdl
cf594cdb3a97f45333d08c937205d1a691828a33
[ "MIT" ]
null
null
null
import os.path as osp import numpy as np import torch from cogdl.data import Data, Dataset from cogdl.utils import download_url from cogdl.datasets import register_dataset @register_dataset("fb13") @register_dataset("fb15k") @register_dataset("fb15k237") @register_dataset("wn18") @register_dataset("wn18...
33.871148
114
0.61702
import os.path as osp import numpy as np import torch from cogdl.data import Data, Dataset from cogdl.utils import download_url from cogdl.datasets import register_dataset class BidirectionalOneShotIterator(object): def __init__(self, dataloader_head, dataloader_tail): self.iterator_head = self.one_shot_...
8,493
2,868
377
bfe905b1326f3ed89fb3548f48848ac7a0505c7b
916
py
Python
submissions/4sum/solution.py
Wattyyy/LeetCode
13a9be056d0a0c38c2f8c8222b11dc02cb25a935
[ "MIT" ]
null
null
null
submissions/4sum/solution.py
Wattyyy/LeetCode
13a9be056d0a0c38c2f8c8222b11dc02cb25a935
[ "MIT" ]
1
2022-03-04T20:24:32.000Z
2022-03-04T20:31:58.000Z
submissions/4sum/solution.py
Wattyyy/LeetCode
13a9be056d0a0c38c2f8c8222b11dc02cb25a935
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/4sum from collections import defaultdict
28.625
69
0.434498
# https://leetcode.com/problems/4sum from collections import defaultdict class Solution: def fourSum(self, nums, target): N = len(nums) d = defaultdict(list) for i in range(N): for j in range(N): if i == j: continue key = tar...
798
-6
49
bb14aeb9451aa32c364f0d1ac1c3e17ae0fffd0a
16,324
py
Python
training.py
Ashraf-T/DriftSurf
1501f7e7ee1df94e750b6e33da1c7c2d2c4be914
[ "MIT" ]
null
null
null
training.py
Ashraf-T/DriftSurf
1501f7e7ee1df94e750b6e33da1c7c2d2c4be914
[ "MIT" ]
null
null
null
training.py
Ashraf-T/DriftSurf
1501f7e7ee1df94e750b6e33da1c7c2d2c4be914
[ "MIT" ]
null
null
null
import models import read_data as data import hyperparameters from drift_detection.__init__ import * import random import numpy import logging
40.009804
238
0.588642
import models import read_data as data import hyperparameters from drift_detection.__init__ import * import random import numpy import logging class Training: STRSAGA = models.Opt.STRSAGA SGD = models.Opt.SGD LIMITED = 'all_models' UNLIMITED = 'each_model' BEFORE = 'B' AFTER = 'A' def __...
1,220
14,942
23
272d1410d32bdb30de2d29d444f7d53461fbc254
994
py
Python
openstates/openstates-master/openstates/in/utils.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/in/utils.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/in/utils.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
import requests
43.217391
147
0.68008
import requests def get_with_increasing_timeout(scraper,link,fail=False,kwargs={}): #if fail is true, we want to throw an error if we can't #access the page we need #if it's false, throw a warning and keep going timeout_length = 2 html = None while timeout_length < 65 and html is None: ...
954
0
23
fe7fc7706419bfb0980b5755b2b030e96b17e2b8
1,026
py
Python
frappe/website/serve.py
naderelabed/frappe
4d6fefaf6b5af594180c0f9f31c7e28e6f514348
[ "MIT" ]
3,755
2015-01-06T07:47:43.000Z
2022-03-31T20:54:23.000Z
frappe/website/serve.py
JMBodz/frappe
eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d
[ "MIT" ]
7,369
2015-01-01T19:59:41.000Z
2022-03-31T23:02:05.000Z
frappe/website/serve.py
JMBodz/frappe
eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d
[ "MIT" ]
2,685
2015-01-07T17:51:03.000Z
2022-03-31T23:16:24.000Z
import frappe from frappe.website.page_renderers.error_page import ErrorPage from frappe.website.page_renderers.not_permitted_page import NotPermittedPage from frappe.website.page_renderers.redirect_page import RedirectPage from frappe.website.path_resolver import PathResolver def get_response(path=None, http_status_...
34.2
79
0.807992
import frappe from frappe.website.page_renderers.error_page import ErrorPage from frappe.website.page_renderers.not_permitted_page import NotPermittedPage from frappe.website.page_renderers.redirect_page import RedirectPage from frappe.website.path_resolver import PathResolver def get_response(path=None, http_status_...
122
0
23
db46d261fd1ce7029b0a21c7afe2c9b4339b3375
2,398
py
Python
source/addition/lstm_trainer.py
smalik169/bachelor_thesis
5aa481d6e3a2f2ac82c8588ea8a9931024fa8000
[ "MIT" ]
null
null
null
source/addition/lstm_trainer.py
smalik169/bachelor_thesis
5aa481d6e3a2f2ac82c8588ea8a9931024fa8000
[ "MIT" ]
null
null
null
source/addition/lstm_trainer.py
smalik169/bachelor_thesis
5aa481d6e3a2f2ac82c8588ea8a9931024fa8000
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import rnn_cell, rnn train_set = np.load('train_set.npy') test_set = np.load('test_set.npy') x = tf.placeholder(tf.float32, shape=[None, None, 2]) y = tf.placeholder(tf.float32, shape=[1, None]) activation = lambda x: tf.maximum(x, .01*x) with tf.variable_scope('lstm'): ...
31.552632
97
0.635113
import tensorflow as tf import numpy as np import rnn_cell, rnn def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=1.0/np.sqrt(shape[0])) return tf.Variable(initial) def bias_variable(shape): initial = tf.constant(0., shape=shape) return tf.Variable(initial) train_set = np.load('...
188
0
46
0dd6de400dc9d79847f2f3ffb22a3df3d3ebcefd
2,087
py
Python
demo/test/api/demo.py
hyjiacan/restfx
8ba70bc099e6ace0c9b3afe8909ea61a5ff82dec
[ "MIT", "BSD-3-Clause" ]
5
2021-01-25T11:09:41.000Z
2021-04-28T07:17:21.000Z
demo/test/api/demo.py
hyjiacan/restfx
8ba70bc099e6ace0c9b3afe8909ea61a5ff82dec
[ "MIT", "BSD-3-Clause" ]
null
null
null
demo/test/api/demo.py
hyjiacan/restfx
8ba70bc099e6ace0c9b3afe8909ea61a5ff82dec
[ "MIT", "BSD-3-Clause" ]
1
2021-01-28T00:53:37.000Z
2021-01-28T00:53:37.000Z
from test.tools.enums import OpTypes from restfx import val from restfx import route from restfx.http import HttpFile from restfx.http import HttpRequest @route(module='测试名称-模块', name='测试名称-GET', extname='jsp', auth=False, op_type=OpTypes.Query, validators=( val('param1').range(2, 2) )) def get(re...
22.44086
105
0.555343
from test.tools.enums import OpTypes from restfx import val from restfx import route from restfx.http import HttpFile from restfx.http import HttpRequest @route(module='测试名称-模块', name='测试名称-GET', extname='jsp', auth=False, op_type=OpTypes.Query, validators=( val('param1').range(2, 2) )) def get(re...
0
0
0
0716acadda46db3006308151bf26891cc22aae36
3,656
py
Python
HubblePi/viewer/DirBrowser_ui.py
scriptorron/hubblepi
402af74b537a40d0764b11d105aa8d3b0dd242f3
[ "MIT" ]
null
null
null
HubblePi/viewer/DirBrowser_ui.py
scriptorron/hubblepi
402af74b537a40d0764b11d105aa8d3b0dd242f3
[ "MIT" ]
null
null
null
HubblePi/viewer/DirBrowser_ui.py
scriptorron/hubblepi
402af74b537a40d0764b11d105aa8d3b0dd242f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'DirBrowser_ui.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from HubblePi.viewer.DirBrowserTableView import DirBrowserTableView
50.082192
100
0.72128
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'DirBrowser_ui.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectN...
3,266
1
76
d4f7200717212225a1a93918ba5c5d4276b670ea
156
py
Python
dataent/patches/v6_20x/set_allow_draft_for_print.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
dataent/patches/v6_20x/set_allow_draft_for_print.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
6
2020-03-24T17:15:56.000Z
2022-02-10T18:41:31.000Z
dataent/patches/v6_20x/set_allow_draft_for_print.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import dataent
31.2
85
0.801282
from __future__ import unicode_literals import dataent def execute(): dataent.db.set_value("Print Settings", "Print Settings", "allow_print_for_draft", 1)
79
0
23
86bd6d50ace21215c2a04e7bfaf386521066d518
5,419
py
Python
src/python/__init__.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
1
2022-03-16T16:37:11.000Z
2022-03-16T16:37:11.000Z
src/python/__init__.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
src/python/__init__.py
andyjost/Sprite
7ecd6fc7d48d7f62da644e48c12c7b882e1a2929
[ "MIT" ]
null
null
null
''' The Sprite Curry system. This package contains everything one needs to compile and execute Curry code. The topmost module provides an instance of the Curry system and an API to interact with it. To perform a soft reset call :func:`reset`. This returns the system to its original state, with no definitions and no ...
25.92823
79
0.708987
''' The Sprite Curry system. This package contains everything one needs to compile and execute Curry code. The topmost module provides an instance of the Curry system and an API to interact with it. To perform a soft reset call :func:`reset`. This returns the system to its original state, with no definitions and no ...
622
383
23
102015a1ef62f8d52ecf5f73f79c9434dae540b2
546
py
Python
src/Advent_of_Code/2020/Day_25/Day_25_1.py
phungj/MSOE_Comp_Prog_Py
95e7521b28d3dbcb6279e7baf03067ca27acbe37
[ "MIT" ]
null
null
null
src/Advent_of_Code/2020/Day_25/Day_25_1.py
phungj/MSOE_Comp_Prog_Py
95e7521b28d3dbcb6279e7baf03067ca27acbe37
[ "MIT" ]
null
null
null
src/Advent_of_Code/2020/Day_25/Day_25_1.py
phungj/MSOE_Comp_Prog_Py
95e7521b28d3dbcb6279e7baf03067ca27acbe37
[ "MIT" ]
null
null
null
card_pub_key = 15335876 door_pub_key = 15086442 card_loop_size = find_loop_size(7, card_pub_key) door_loop_size = find_loop_size(7, door_pub_key) print(find_enc_key(door_pub_key, card_loop_size))
18.2
49
0.673993
card_pub_key = 15335876 door_pub_key = 15086442 def find_loop_size(subject_num, pub_key): value = 1 loops = 0 while value != pub_key: value *= subject_num value %= 20201227 loops += 1 return loops def find_enc_key(pub_key, loop_size): value = 1 for i in range(loop_...
300
0
46
7cd531ad1c6711dfe1dafaa01f04d7892914958b
607
py
Python
search_page_export_example/urls.py
Cantemo/SearchPageExportExample
eaa4222cf12a887b0ba0a008855aaede5e1d49e1
[ "BSD-3-Clause" ]
null
null
null
search_page_export_example/urls.py
Cantemo/SearchPageExportExample
eaa4222cf12a887b0ba0a008855aaede5e1d49e1
[ "BSD-3-Clause" ]
null
null
null
search_page_export_example/urls.py
Cantemo/SearchPageExportExample
eaa4222cf12a887b0ba0a008855aaede5e1d49e1
[ "BSD-3-Clause" ]
1
2021-08-10T13:47:43.000Z
2021-08-10T13:47:43.000Z
""" This file defined the URLs (end-points) for the plugin. """ from django.conf.urls import url from . import views # The plugin handles the request to the URL by responding with the view which is loaded # from views.py. Inside "views" is a class which responses to the # request. "name" is a shortcut name for the url...
37.9375
87
0.719934
""" This file defined the URLs (end-points) for the plugin. """ from django.conf.urls import url from . import views # The plugin handles the request to the URL by responding with the view which is loaded # from views.py. Inside "views" is a class which responses to the # request. "name" is a shortcut name for the url...
0
0
0
5c51f23f4ff469a9bbe46d0d69a34b5b89598e91
1,121
py
Python
Python-Algorithms/sorting-algorithms/test.py
ravi5175/Algorithm-Analysis
9597ed60b8ba910a26fc9e386aa3c7ea8257cbe1
[ "MIT" ]
null
null
null
Python-Algorithms/sorting-algorithms/test.py
ravi5175/Algorithm-Analysis
9597ed60b8ba910a26fc9e386aa3c7ea8257cbe1
[ "MIT" ]
null
null
null
Python-Algorithms/sorting-algorithms/test.py
ravi5175/Algorithm-Analysis
9597ed60b8ba910a26fc9e386aa3c7ea8257cbe1
[ "MIT" ]
null
null
null
import random import datetime from bubbleSort import BubbleSort
32.028571
82
0.596789
import random import datetime from bubbleSort import BubbleSort class Test: #res=['name','length','order' : rand,sort,reversed, time_taken, passes] sample_data = [] passes = 0 available_sort=['bubble_sort'] def __init__(self, length=100, sample_range=None, sorted=False,reverse=False): if...
797
237
23
e6357e8a67f7f2c18a86d82e6d55d2cc0e11652c
8,218
py
Python
Chemistry/PDB/pdb_chain.py
continuous-symmetry-measure/pdb_prep
6cbd2ca43b4a52c998fdbd7e50a6ac48f991862f
[ "BSD-2-Clause" ]
null
null
null
Chemistry/PDB/pdb_chain.py
continuous-symmetry-measure/pdb_prep
6cbd2ca43b4a52c998fdbd7e50a6ac48f991862f
[ "BSD-2-Clause" ]
4
2018-12-06T08:57:24.000Z
2019-04-10T19:53:50.000Z
Chemistry/PDB/pdb_chain.py
continuous-symmetry-measure/pdb_prep
6cbd2ca43b4a52c998fdbd7e50a6ac48f991862f
[ "BSD-2-Clause" ]
1
2021-11-21T10:18:17.000Z
2021-11-21T10:18:17.000Z
from Chemistry.PDB.pdb_atom import pdb_atom from Chemistry.PDB.pdb_constants import pdb_constants """ * pdb is list of pdb_models * pdb_model is a list of pdb_chains objects * pdb _chain is a list of pdb_atom objects * atom ahs attributes such as: - atom_serial_number - atom_name - resname -...
37.870968
121
0.578851
from Chemistry.PDB.pdb_atom import pdb_atom from Chemistry.PDB.pdb_constants import pdb_constants """ * pdb is list of pdb_models * pdb_model is a list of pdb_chains objects * pdb _chain is a list of pdb_atom objects * atom ahs attributes such as: - atom_serial_number - atom_name - resname -...
2,332
0
259
dc0d3c12e18f1dcce50a37e49185dad081433687
2,660
py
Python
pyalgotrade/optimizer/server.py
cdyfng/pyalgotrade
c9e8d950c8d911d5f1bed7d821c4cf6fd37f3a3c
[ "Apache-2.0" ]
1,000
2016-01-26T12:10:11.000Z
2022-03-01T23:59:50.000Z
pyalgotrade/optimizer/server.py
cdyfng/pyalgotrade
c9e8d950c8d911d5f1bed7d821c4cf6fd37f3a3c
[ "Apache-2.0" ]
22
2016-01-26T15:14:09.000Z
2019-01-30T02:36:38.000Z
pyalgotrade/optimizer/server.py
cdyfng/pyalgotrade
c9e8d950c8d911d5f1bed7d821c4cf6fd37f3a3c
[ "Apache-2.0" ]
613
2016-01-27T01:02:30.000Z
2022-03-21T01:38:58.000Z
# PyAlgoTrade # # Copyright 2011-2015 Gabriel Martin Becedillas Ruiz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
37.464789
158
0.727444
# PyAlgoTrade # # Copyright 2011-2015 Gabriel Martin Becedillas Ruiz # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
88
0
26
77e9bc4463add5349ce1d5ad272d47f7ead0d6f3
8,026
py
Python
template.py
Ajasra/stylegan2
c52440e927c60d14c73185f33d26be8c99944d07
[ "BSD-Source-Code" ]
1
2021-09-02T09:41:16.000Z
2021-09-02T09:41:16.000Z
template.py
Ajasra/stylegan2
c52440e927c60d14c73185f33d26be8c99944d07
[ "BSD-Source-Code" ]
null
null
null
template.py
Ajasra/stylegan2
c52440e927c60d14c73185f33d26be8c99944d07
[ "BSD-Source-Code" ]
null
null
null
# Add relative directory Library to import path, so we can import the SpoutSDK.pyd library. # Feel free to remove these if you put the SpoutSDK.pyd file in the same directory as the python scripts. import sys sys.path.append('Library') import numpy as np import argparse import time import SpoutSDK import pygame from ...
36.481818
212
0.672315
# Add relative directory Library to import path, so we can import the SpoutSDK.pyd library. # Feel free to remove these if you put the SpoutSDK.pyd file in the same directory as the python scripts. import sys sys.path.append('Library') import numpy as np import argparse import time import SpoutSDK import pygame from ...
7,206
0
67
a3c1fb21e65b08f6014be032e36d657b8b8b251f
42,834
py
Python
tests/actor_tests.py
pythonprobr/pythonbirds-en
439e10828dd5241de2807f48a4b0c64ce8be69a9
[ "MIT" ]
2
2016-05-31T01:22:24.000Z
2021-09-11T18:54:05.000Z
tests/actor_tests.py
eliceiacrepaldi/pythonbirds-en
439e10828dd5241de2807f48a4b0c64ce8be69a9
[ "MIT" ]
null
null
null
tests/actor_tests.py
eliceiacrepaldi/pythonbirds-en
439e10828dd5241de2807f48a4b0c64ce8be69a9
[ "MIT" ]
5
2015-04-09T19:32:17.000Z
2022-02-09T19:15:22.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest.case import TestCase from actors import Actor, DESTROYED, ACTIVE, Obstacle, Pig, YellowBird, RedBird class BirdBaseTests(TestCase): """ Base Test Class for birds. It has no tests. Its only purpose is encapsulate assertions ...
59.32687
115
0.694588
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest.case import TestCase from actors import Actor, DESTROYED, ACTIVE, Obstacle, Pig, YellowBird, RedBird class ActorTestes(TestCase): def test_default_values(self): 'Test inital values of Actor' ator = Actor() self...
32,943
8,453
275
da781fe202b4a328cfa0731144f22ebe1d299307
3,231
py
Python
designs/peng_robinson.py
poppyi-domain/eng_app_designs
e2b9ab29346a196226c6000d4d1aa6a0d5195d2d
[ "MIT" ]
3
2021-12-25T12:56:26.000Z
2022-03-28T13:36:00.000Z
designs/peng_robinson.py
poppyi-domain/eng_app_designs
e2b9ab29346a196226c6000d4d1aa6a0d5195d2d
[ "MIT" ]
null
null
null
designs/peng_robinson.py
poppyi-domain/eng_app_designs
e2b9ab29346a196226c6000d4d1aa6a0d5195d2d
[ "MIT" ]
null
null
null
""" Peng-robinson equation of state calculator. As used: https://www.poppyi.com/app_design_form/public_render/peng%20robinson%20eq%20of%20state """ import numpy as np R = 8.31446 # Pa.m3/K
28.095652
117
0.547818
""" Peng-robinson equation of state calculator. As used: https://www.poppyi.com/app_design_form/public_render/peng%20robinson%20eq%20of%20state """ import numpy as np R = 8.31446 # Pa.m3/K def validate_numeric(form_data, key): try: return float(form_data[key]) except ValueError: raise Warni...
2,991
0
46
6cbea770a05081c0aeff593d5edafdf80c804f66
1,757
py
Python
core/forms.py
dishad/ADD
51455c493a4eb433eb1d8dde44771e917efcb500
[ "MIT" ]
null
null
null
core/forms.py
dishad/ADD
51455c493a4eb433eb1d8dde44771e917efcb500
[ "MIT" ]
4
2016-11-26T19:10:01.000Z
2016-12-24T10:42:16.000Z
core/forms.py
dishad/deanslist
51455c493a4eb433eb1d8dde44771e917efcb500
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from core.models import Post, Category # forms will go here. create account has been added, new post form will probably go here
33.788462
103
0.692089
from django import forms from django.contrib.auth.models import User from core.models import Post, Category # forms will go here. create account has been added, new post form will probably go here class CreateAccForm(forms.ModelForm): #form labels #first_name = forms.CharField(label="First Name:", max_length=30) ...
0
1,488
69
c63206845224ebcbad493a1c28d57ccb8b042d9a
259
py
Python
pycon/urls.py
tylerdave/PyCon-Website
684c7a92776e61eb2e04951199ce344616c8d814
[ "BSD-3-Clause" ]
null
null
null
pycon/urls.py
tylerdave/PyCon-Website
684c7a92776e61eb2e04951199ce344616c8d814
[ "BSD-3-Clause" ]
null
null
null
pycon/urls.py
tylerdave/PyCon-Website
684c7a92776e61eb2e04951199ce344616c8d814
[ "BSD-3-Clause" ]
1
2020-09-30T18:09:16.000Z
2020-09-30T18:09:16.000Z
from django.conf.urls import patterns, url from . import views urlpatterns = patterns( '', url('program_export/', views.program_export, name='program_export'), url(r'^special_event/(?P<slug>.*)/$', views.special_event, name='special_event'), )
23.545455
85
0.694981
from django.conf.urls import patterns, url from . import views urlpatterns = patterns( '', url('program_export/', views.program_export, name='program_export'), url(r'^special_event/(?P<slug>.*)/$', views.special_event, name='special_event'), )
0
0
0
4cd82bb81321c3d8774ae3cf43cbc6b214b27871
5,118
py
Python
magma_ff/parser.py
dbmi-bgm/cgap-wfl_utils
b22147555636e1b9194d4322ca148abe9fc3b8e5
[ "MIT" ]
null
null
null
magma_ff/parser.py
dbmi-bgm/cgap-wfl_utils
b22147555636e1b9194d4322ca148abe9fc3b8e5
[ "MIT" ]
1
2022-03-19T17:55:54.000Z
2022-03-19T17:55:54.000Z
magma_ff/parser.py
dbmi-bgm/magma
b22147555636e1b9194d4322ca148abe9fc3b8e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ################################################ # # Parser to handle compatibility between # magma and portal json formats # # Michele Berselli # berselli.michele@gmail.com # ################################################ ################################################ # Libra...
30.646707
107
0.454279
#!/usr/bin/env python3 ################################################ # # Parser to handle compatibility between # magma and portal json formats # # Michele Berselli # berselli.michele@gmail.com # ################################################ ################################################ # Libra...
0
0
0
4436746d4cc5c235785c9ac64cd85a23db4d6d26
360
py
Python
CSC-291/Notes/Lists_9.6.14.py
FrancesCoronel/cs-hu
ecd103a525fd312146d3b6c69ee7c1452548c5e2
[ "MIT" ]
2
2016-12-05T06:15:34.000Z
2016-12-15T10:56:50.000Z
CSC-291/Notes/Lists_9.6.14.py
fvcproductions/CS-HU
ecd103a525fd312146d3b6c69ee7c1452548c5e2
[ "MIT" ]
null
null
null
CSC-291/Notes/Lists_9.6.14.py
fvcproductions/CS-HU
ecd103a525fd312146d3b6c69ee7c1452548c5e2
[ "MIT" ]
3
2019-04-06T01:45:54.000Z
2020-04-24T16:55:32.000Z
''' FVCproductions CSC291_4 ''' # list numbers = [3, 7, 9484, 46, 67, 2.3] total = 0 for num in numbers: total += num # concanetation print "The total is", total print "hi!"*4 # tuple things = ("one", "two") # dictionary age = {"Dryfuss": 6, "Yana": 30, "Lucy", 6} #set print numbers[2] print age["Yan...
9.72973
44
0.608333
''' FVCproductions CSC291_4 ''' # list numbers = [3, 7, 9484, 46, 67, 2.3] total = 0 for num in numbers: total += num # concanetation print "The total is", total print "hi!"*4 # tuple things = ("one", "two") # dictionary age = {"Dryfuss": 6, "Yana": 30, "Lucy", 6} #set print numbers[2] print age["Yan...
0
0
0
ca4567f7905e3458f70f2047be789ac11f75eda6
604
py
Python
bundle-workflow/src/build_workflow/build_artifact_check.py
xuezhou25/opensearch-build
24ebc3e444949b4582680edc76c29a684e486120
[ "Apache-2.0" ]
1
2022-01-11T17:47:01.000Z
2022-01-11T17:47:01.000Z
bundle-workflow/src/build_workflow/build_artifact_check.py
xuezhou25/opensearch-build
24ebc3e444949b4582680edc76c29a684e486120
[ "Apache-2.0" ]
13
2021-10-02T00:22:47.000Z
2022-02-08T17:49:38.000Z
bundle-workflow/src/build_workflow/build_artifact_check.py
xuezhou25/opensearch-build
24ebc3e444949b4582680edc76c29a684e486120
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import os from abc import ABC, abstractmethod
26.26087
88
0.693709
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import os from abc import ABC, abstractmethod class BuildArtifactCheck(ABC): class BuildArtifactInvalidError(Exception): ...
180
161
23
bd5cca04b4b2bf6803e08c2267e8c51eca8218e9
4,935
py
Python
examples/synth03_quickfit.py
cwhanse/pvpro
1e96897e70605c4a185cb93eec9075e0d92047a5
[ "BSD-3-Clause" ]
null
null
null
examples/synth03_quickfit.py
cwhanse/pvpro
1e96897e70605c4a185cb93eec9075e0d92047a5
[ "BSD-3-Clause" ]
null
null
null
examples/synth03_quickfit.py
cwhanse/pvpro
1e96897e70605c4a185cb93eec9075e0d92047a5
[ "BSD-3-Clause" ]
null
null
null
""" Example running quick estimate algorithm on synthetic data. @author: toddkarin """ import numpy as np import pandas as pd from pandas.plotting import register_matplotlib_converters register_matplotlib_converters() import datetime import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import s...
29.909091
77
0.551165
""" Example running quick estimate algorithm on synthetic data. @author: toddkarin """ import numpy as np import pandas as pd from pandas.plotting import register_matplotlib_converters register_matplotlib_converters() import datetime import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import s...
0
0
0
b6e3d8d4624010bc7aa016b4db6b27f097c10049
6,776
py
Python
home/views.py
darkun7/Evaluate-CS-Student-as-Lecture-Assistant
55ccec16c2b4146c32d5cf27f3287d0d3393478b
[ "MIT" ]
null
null
null
home/views.py
darkun7/Evaluate-CS-Student-as-Lecture-Assistant
55ccec16c2b4146c32d5cf27f3287d0d3393478b
[ "MIT" ]
null
null
null
home/views.py
darkun7/Evaluate-CS-Student-as-Lecture-Assistant
55ccec16c2b4146c32d5cf27f3287d0d3393478b
[ "MIT" ]
null
null
null
from django.urls import reverse from django.db.models import Count from django.shortcuts import render, redirect from django.http import HttpResponse from django.forms import formset_factory, modelformset_factory from .models import * from .models import TrainingValue from .models import Training as TrainingModel from ...
31.516279
88
0.617621
from django.urls import reverse from django.db.models import Count from django.shortcuts import render, redirect from django.http import HttpResponse from django.forms import formset_factory, modelformset_factory from .models import * from .models import TrainingValue from .models import Training as TrainingModel from ...
5,962
0
410
4fa89a64771d27994619ff2fffa1c136934e7e1f
6,773
py
Python
target_bigquery/schema.py
tarsisazevedo/target-bigquery
da8d21305fecc1f2782eca6e5edb8f25f0c2eea3
[ "Apache-2.0" ]
null
null
null
target_bigquery/schema.py
tarsisazevedo/target-bigquery
da8d21305fecc1f2782eca6e5edb8f25f0c2eea3
[ "Apache-2.0" ]
null
null
null
target_bigquery/schema.py
tarsisazevedo/target-bigquery
da8d21305fecc1f2782eca6e5edb8f25f0c2eea3
[ "Apache-2.0" ]
null
null
null
import datetime import re import simplejson as json import singer from google.cloud.bigquery import SchemaField from jsonschema import validate from jsonschema.exceptions import ValidationError # StitchData compatible timestamp meta data # https://www.stitchdata.com/docs/data-structure/system-tables-and-columns BATC...
32.099526
88
0.584232
import datetime import re import simplejson as json import singer from google.cloud.bigquery import SchemaField from jsonschema import validate from jsonschema.exceptions import ValidationError # StitchData compatible timestamp meta data # https://www.stitchdata.com/docs/data-structure/system-tables-and-columns BATC...
6,197
0
92
b3ce6c9f9389a83f38d0f1128fd23d73ec7da285
5,508
py
Python
sgl/tests/api_test.py
RieksJ/sgl
49ad41b6db7c02a22046d7a20471b0d5eac1a961
[ "Apache-2.0" ]
4
2019-06-26T21:03:36.000Z
2021-10-05T10:40:10.000Z
sgl/tests/api_test.py
RieksJ/sgl
49ad41b6db7c02a22046d7a20471b0d5eac1a961
[ "Apache-2.0" ]
4
2019-07-01T21:12:09.000Z
2020-11-30T12:53:55.000Z
sgl/tests/api_test.py
RieksJ/sgl
49ad41b6db7c02a22046d7a20471b0d5eac1a961
[ "Apache-2.0" ]
3
2019-06-26T21:01:38.000Z
2021-06-06T15:43:19.000Z
import pytest from ..api import * from .examples import * from ..condition import Condition # This test is the simplest one I could imagine that exercises the logic where # disjoint subsets are calculated. The next test is similar, but does much more # complex work. Hopefully the debugging can ta...
32.023256
100
0.705701
import pytest from ..api import * from .examples import * from ..condition import Condition def test_bob_satisfies_id_bob(): assert satisfies(p.bob, c.bob) assert satisfies(p.bob, r.enter_to_bob) def test_carl_doesnt_satisfy_id_bob(): assert not satisfies(p.grandpa_carl, c.bob) def test_bob_matches_1...
4,588
0
574
2c866933e977776d72cb1f582327bc68c0c36f0d
1,782
py
Python
tests/test_accuracy.py
uk-gov-mirror/ONSdigital.companies-house-big-data-project
be74293b4398976696d07c6b2329d6121c9e5c6a
[ "MIT" ]
null
null
null
tests/test_accuracy.py
uk-gov-mirror/ONSdigital.companies-house-big-data-project
be74293b4398976696d07c6b2329d6121c9e5c6a
[ "MIT" ]
null
null
null
tests/test_accuracy.py
uk-gov-mirror/ONSdigital.companies-house-big-data-project
be74293b4398976696d07c6b2329d6121c9e5c6a
[ "MIT" ]
null
null
null
import unittest # Custom import from src.performance_metrics.binary_classifier_metrics import BinaryClassifierMetrics class TestAccuracy(unittest.TestCase): """ """ def test_accuracy_pos(self): """ Positive test case for the accuracy function. """ # Assume metrics...
25.457143
85
0.585297
import unittest # Custom import from src.performance_metrics.binary_classifier_metrics import BinaryClassifierMetrics class TestAccuracy(unittest.TestCase): """ """ def test_accuracy_pos(self): """ Positive test case for the accuracy function. """ # Assume metrics...
0
0
0
4e67d1ef0355b54239ebe56111fc3b16c5ffc504
6,594
py
Python
Utils/transforms.py
Jack-XHP/LabPicV2-MaskRCNN
b0586b2827000c7b7337d5110b2b1fd6185053a8
[ "MIT" ]
null
null
null
Utils/transforms.py
Jack-XHP/LabPicV2-MaskRCNN
b0586b2827000c7b7337d5110b2b1fd6185053a8
[ "MIT" ]
null
null
null
Utils/transforms.py
Jack-XHP/LabPicV2-MaskRCNN
b0586b2827000c7b7337d5110b2b1fd6185053a8
[ "MIT" ]
null
null
null
import random import torch import numbers from torchvision.transforms import Lambda, functional as F class ColorJitter(object): """Randomly change the brightness, contrast and saturation of an image. Args: brightness (float or tuple of float (min, max)): How much to jitter brightness. ...
40.703704
103
0.601153
import random import torch import numbers from torchvision.transforms import Lambda, functional as F def _flip_coco_person_keypoints(kps, width): flip_inds = [0, 2, 1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11, 14, 13, 16, 15] flipped_data = kps[:, flip_inds] flipped_data[..., 0] = width - flipped_data[..., 0] ...
3,692
29
380
e70554a4eb14bbf62db7f17c3d12988f3fce621e
5,747
py
Python
repos/system_upgrade/el7toel8/actors/satellite_upgrade_facts/tests/unit_test_satellite_upgrade_facts.py
AsM0DeUz/leapp-repository
b67a395ee3d67d3d628037c250a210bb52e9187c
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/actors/satellite_upgrade_facts/tests/unit_test_satellite_upgrade_facts.py
AsM0DeUz/leapp-repository
b67a395ee3d67d3d628037c250a210bb52e9187c
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/actors/satellite_upgrade_facts/tests/unit_test_satellite_upgrade_facts.py
AsM0DeUz/leapp-repository
b67a395ee3d67d3d628037c250a210bb52e9187c
[ "Apache-2.0" ]
null
null
null
import os from leapp.libraries.common.config import mock_configs from leapp.models import ( DNFWorkaround, InstalledRPM, Module, RepositoriesSetupTasks, RPM, RpmTransactionTasks, SatelliteFacts ) from leapp.snactor.fixture import current_actor_context RH_PACKAGER = 'Red Hat, Inc. <http://b...
40.188811
110
0.792761
import os from leapp.libraries.common.config import mock_configs from leapp.models import ( DNFWorkaround, InstalledRPM, Module, RepositoriesSetupTasks, RPM, RpmTransactionTasks, SatelliteFacts ) from leapp.snactor.fixture import current_actor_context RH_PACKAGER = 'Red Hat, Inc. <http://b...
4,824
0
299
98cfd62b53f13307a1586c84e4d32bb05f5372a1
5,496
py
Python
cowait/tasks/task.py
emilwareus/cowa
c6df182aea488a129e517415e74a5164dcdeea9d
[ "Apache-2.0" ]
2
2021-08-11T08:51:42.000Z
2021-08-11T08:55:19.000Z
cowait/tasks/task.py
emilwareus/cowait
c6df182aea488a129e517415e74a5164dcdeea9d
[ "Apache-2.0" ]
null
null
null
cowait/tasks/task.py
emilwareus/cowait
c6df182aea488a129e517415e74a5164dcdeea9d
[ "Apache-2.0" ]
null
null
null
import sys import inspect from typing import Any from cowait.types import serialize from .definition import TaskDefinition from .components import TaskManager, RpcComponent, rpc from .parent_task import ParentTask
28.625
94
0.561135
import sys import inspect from typing import Any from cowait.types import serialize from .definition import TaskDefinition from .components import TaskManager, RpcComponent, rpc from .parent_task import ParentTask class Task(object): __current__ = None def __init__(self, **inputs): """ Create...
920
4,338
23
5072b17af5bb82ed5d711708659f63dcf1074494
6,653
py
Python
gwaripper/download.py
nilfoer/gwaripper
28492b9894973633612471094d24907b2bc47728
[ "MIT" ]
6
2021-03-12T08:57:18.000Z
2022-03-27T00:28:17.000Z
gwaripper/download.py
nilfoer/gwaripper
28492b9894973633612471094d24907b2bc47728
[ "MIT" ]
1
2020-10-05T04:25:53.000Z
2020-10-05T14:20:07.000Z
gwaripper/download.py
nilfoer/gwaripper
28492b9894973633612471094d24907b2bc47728
[ "MIT" ]
2
2021-03-12T11:05:46.000Z
2021-09-12T22:53:58.000Z
import sys import os import urllib.request import urllib.error import logging import subprocess from typing import Optional, Dict from urllib.error import ContentTooShortError logger = logging.getLogger(__name__) DEFAULT_HEADERS = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 F...
41.322981
118
0.640764
import sys import os import urllib.request import urllib.error import logging import subprocess from typing import Optional, Dict from urllib.error import ContentTooShortError logger = logging.getLogger(__name__) DEFAULT_HEADERS = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 F...
2,768
0
46
05dd1c658adfe935e1e7b1d4e297a0645c0809df
67
py
Python
dregel-7623/test.py
NTI-Gymnasieingenjor/AdventOfCode2020
ea74c06a2b220e227618ed841c4eb853f08d5c84
[ "MIT" ]
1
2020-12-08T12:33:36.000Z
2020-12-08T12:33:36.000Z
johan/test.py
NTI-Gymnasieingenjor/AdventOfCode2020
ea74c06a2b220e227618ed841c4eb853f08d5c84
[ "MIT" ]
null
null
null
johan/test.py
NTI-Gymnasieingenjor/AdventOfCode2020
ea74c06a2b220e227618ed841c4eb853f08d5c84
[ "MIT" ]
1
2021-01-20T15:08:12.000Z
2021-01-20T15:08:12.000Z
for count in range(6): name = input() print("hello ", name)
22.333333
25
0.58209
for count in range(6): name = input() print("hello ", name)
0
0
0
fc5bdfbf1b2237de516549522094811569272771
24,209
py
Python
src/openprocurement/api/utils.py
JrooTJunior/openprocurement.api
9f932d96c4ba096a8e0a0b570f737620c1cc95db
[ "Apache-2.0" ]
null
null
null
src/openprocurement/api/utils.py
JrooTJunior/openprocurement.api
9f932d96c4ba096a8e0a0b570f737620c1cc95db
[ "Apache-2.0" ]
null
null
null
src/openprocurement/api/utils.py
JrooTJunior/openprocurement.api
9f932d96c4ba096a8e0a0b570f737620c1cc95db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import decimal import simplejson import couchdb.json from couchdb import util from logging import getLogger from datetime import datetime, timedelta from base64 import b64encode, b64decode from cornice.resource import resource, view from email.header import decode_header fr...
40.483278
169
0.628651
# -*- coding: utf-8 -*- import os import json import decimal import simplejson import couchdb.json from couchdb import util from logging import getLogger from datetime import datetime, timedelta from base64 import b64encode, b64decode from cornice.resource import resource, view from email.header import decode_header fr...
21,324
136
789
4668e45e7b4f7aee6a860a6306fc3156761aca36
24
py
Python
interface/__init__.py
fgaspar/myhome
9942364f913870d3eed3a0a6536872ebf4c83a0c
[ "MIT" ]
null
null
null
interface/__init__.py
fgaspar/myhome
9942364f913870d3eed3a0a6536872ebf4c83a0c
[ "MIT" ]
null
null
null
interface/__init__.py
fgaspar/myhome
9942364f913870d3eed3a0a6536872ebf4c83a0c
[ "MIT" ]
null
null
null
__all__ = ['interface']
12
23
0.666667
__all__ = ['interface']
0
0
0
8bd55d55ac9289b7d0cb32cc7e44955b4be77eda
1,688
py
Python
stock_portfolio/stock_portfolio/tests/test_models_account.py
zarkle/pyramid-stocks
493ad5a5b77e99dcff8e8234bf0616db1fbb4c98
[ "MIT" ]
null
null
null
stock_portfolio/stock_portfolio/tests/test_models_account.py
zarkle/pyramid-stocks
493ad5a5b77e99dcff8e8234bf0616db1fbb4c98
[ "MIT" ]
4
2019-12-26T16:42:42.000Z
2020-01-06T18:53:34.000Z
stock_portfolio/stock_portfolio/tests/test_models_account.py
zarkle/pyramid-stocks
493ad5a5b77e99dcff8e8234bf0616db1fbb4c98
[ "MIT" ]
null
null
null
def test_account_model(db_session): """test make a new user account""" from ..models import Account assert len(db_session.query(Account).all()) == 0 user = Account( username='me', password='me', email='me@me.com', ) db_session.add(user) assert len(db_session.query(Ac...
26.793651
64
0.616706
def test_account_model(db_session): """test make a new user account""" from ..models import Account assert len(db_session.query(Account).all()) == 0 user = Account( username='me', password='me', email='me@me.com', ) db_session.add(user) assert len(db_session.query(Ac...
0
0
0
a9322a09be39e0a72be52dbf707ba16161da58c8
933
py
Python
fetch_images.py
UoA-eResearch/NZTA_traffic_cameras
ceeb1d328cb17a0f57116b2b3cbdfe61bf6e7366
[ "MIT" ]
1
2021-09-29T09:39:38.000Z
2021-09-29T09:39:38.000Z
fetch_images.py
imyhxy/NZTA_traffic_cameras
9952774db0eda4c30286833a41022fc740c3610b
[ "MIT" ]
null
null
null
fetch_images.py
imyhxy/NZTA_traffic_cameras
9952774db0eda4c30286833a41022fc740c3610b
[ "MIT" ]
1
2021-09-29T09:39:33.000Z
2021-09-29T09:39:33.000Z
#!/usr/bin/env python3 import os import json import pprint import requests from dateutil.parser import parse as parsedate with open("cameras.json") as f: cameras = json.load(f) with open("unavailable.jpg", "rb") as f: unavailable = f.read() camIds = sorted([int(c["properties"]["id"]) for c in cameras["featur...
31.1
74
0.631297
#!/usr/bin/env python3 import os import json import pprint import requests from dateutil.parser import parse as parsedate with open("cameras.json") as f: cameras = json.load(f) with open("unavailable.jpg", "rb") as f: unavailable = f.read() camIds = sorted([int(c["properties"]["id"]) for c in cameras["featur...
0
0
0
d0a01a00f070faee611561d1b2339d1a3ff3d521
8,322
py
Python
tests/test_result.py
ageitgey/pyflight
3d1624e1455e98b011ccaba1510da818f46a6e1d
[ "MIT" ]
4
2018-01-19T07:24:25.000Z
2021-05-01T04:45:36.000Z
tests/test_result.py
ageitgey/pyflight
3d1624e1455e98b011ccaba1510da818f46a6e1d
[ "MIT" ]
null
null
null
tests/test_result.py
ageitgey/pyflight
3d1624e1455e98b011ccaba1510da818f46a6e1d
[ "MIT" ]
2
2018-04-02T04:10:35.000Z
2019-08-13T13:51:26.000Z
# Tests the various Containers / Classes found in results.py import os import sys import util from pyflight.result import * from pyflight.models.flight_data import FlightData # Test the FlightData Container # Test the Airport Container first_result = Result(util.download_file_if_not_exists( url="https://de...
35.412766
108
0.696467
# Tests the various Containers / Classes found in results.py import os import sys import util from pyflight.result import * from pyflight.models.flight_data import FlightData # Test the FlightData Container def test_flight_data(): first_data = FlightData('9B1', 'Example Data') second_data = FlightData('7B3...
7,051
0
264
c62dc71cf1abc0549697f8aa7b80d4482d3dc8b5
413
py
Python
authentise_services/errors.py
DoWhileGeek/authentise-services
ee32bd7f7de15d3fb24c0a6374640d3a1ec8096d
[ "MIT" ]
3
2015-10-06T21:07:33.000Z
2015-12-31T21:33:52.000Z
authentise_services/errors.py
DoWhileGeek/authentise-services
ee32bd7f7de15d3fb24c0a6374640d3a1ec8096d
[ "MIT" ]
5
2015-06-21T03:45:09.000Z
2015-08-15T17:00:30.000Z
authentise_services/errors.py
DoWhileGeek/authentise-services
ee32bd7f7de15d3fb24c0a6374640d3a1ec8096d
[ "MIT" ]
null
null
null
"""Error classes for authentise_services""" class ResourceError(Exception): """arbitrary error whenever a call to a authentise resource doesnt go according to plan""" pass class ResourceStillProcessing(Exception): """most authentise resources have a status property to tell the user what state its in ...
31.769231
94
0.743341
"""Error classes for authentise_services""" class ResourceError(Exception): """arbitrary error whenever a call to a authentise resource doesnt go according to plan""" pass class ResourceStillProcessing(Exception): """most authentise resources have a status property to tell the user what state its in ...
0
0
0
7e51fad58a661946b39af373553cbe440b365721
3,535
py
Python
corehq/apps/users/middleware.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/users/middleware.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/users/middleware.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from redis_cache.exceptions import ConnectionInterrumped from django.conf import settings import django.core.exceptions from dimagi.utils.couch.cache import cache_core rcache = cache_core.get_redis_default_cache() #######################################################################################################...
44.746835
108
0.539745
from redis_cache.exceptions import ConnectionInterrumped from django.conf import settings import django.core.exceptions from dimagi.utils.couch.cache import cache_core rcache = cache_core.get_redis_default_cache() #######################################################################################################...
2,799
9
75
0ec83fe7fc7dd6e6e433cfe711c2b981da1ad9e9
1,003
py
Python
tests/fixtures/noqa/noqa_pre38.py
Kvm99/wemake-python-styleguide
a415339ed47de3ff03754bddd9b57316f494dfb1
[ "MIT" ]
1
2020-02-21T18:58:44.000Z
2020-02-21T18:58:44.000Z
tests/fixtures/noqa/noqa_pre38.py
Kvm99/wemake-python-styleguide
a415339ed47de3ff03754bddd9b57316f494dfb1
[ "MIT" ]
15
2020-02-22T11:09:46.000Z
2020-02-27T16:36:54.000Z
tests/fixtures/noqa/noqa_pre38.py
Kvm99/wemake-python-styleguide
a415339ed47de3ff03754bddd9b57316f494dfb1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This file represents how AST worked before python3.8 release. We used to have violations on the first decorator that wraps function, method, or a class. We also store here things that are ``SyntaxError`` in python3.8 and above. """ @first # noqa: WPS216 @second @third(param='a') @four...
20.06
75
0.642074
# -*- coding: utf-8 -*- """ This file represents how AST worked before python3.8 release. We used to have violations on the first decorator that wraps function, method, or a class. We also store here things that are ``SyntaxError`` in python3.8 and above. """ class WithStatic(object): @staticmethod # noqa: WP...
380
125
91
cbf5c9870a2ba2de6edbbfa1dd3821eaa4520ae8
368
py
Python
dataentry/migrations/0006_alter_user_content.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
1
2021-12-15T03:47:19.000Z
2021-12-15T03:47:19.000Z
dataentry/migrations/0006_alter_user_content.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
null
null
null
dataentry/migrations/0006_alter_user_content.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-12 15:38 from django.db import migrations, models
19.368421
47
0.581522
# Generated by Django 3.2.6 on 2021-08-12 15:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dataentry', '0005_user_content'), ] operations = [ migrations.AlterField( model_name='user', name='content', ...
0
254
23
6831d22807efd0f098528d5f871a514617ea8537
34,692
py
Python
vibro_estparam/mixednoise.py
VibroSim/vibro_estparam
1c1c4cadeee4fbe38bb153161ebd62ba7a137111
[ "MIT" ]
null
null
null
vibro_estparam/mixednoise.py
VibroSim/vibro_estparam
1c1c4cadeee4fbe38bb153161ebd62ba7a137111
[ "MIT" ]
null
null
null
vibro_estparam/mixednoise.py
VibroSim/vibro_estparam
1c1c4cadeee4fbe38bb153161ebd62ba7a137111
[ "MIT" ]
null
null
null
import sys import os import os.path import glob import collections import re import numpy as np import scipy as sp import scipy.integrate import scipy.special import theano import theano.tensor as tt from theano.printing import Print from theano import gof use_accel = True if use_accel: from . import mixednoise_...
59.813793
510
0.633143
import sys import os import os.path import glob import collections import re import numpy as np import scipy as sp import scipy.integrate import scipy.special import theano import theano.tensor as tt from theano.printing import Print from theano import gof use_accel = True if use_accel: from . import mixednoise_...
31,836
2,247
46
31d053562a5479ed0dba3716178c09ed5e5ad9ba
11,337
py
Python
evernode/bin/create.py
AtomHash/evernode
f70d82e78cf9f6d58208438e26485e9565abd875
[ "MIT" ]
1
2017-09-23T16:44:10.000Z
2017-09-23T16:44:10.000Z
evernode/bin/create.py
AtomHash/evernode
f70d82e78cf9f6d58208438e26485e9565abd875
[ "MIT" ]
9
2017-09-25T14:44:17.000Z
2020-09-16T01:47:43.000Z
evernode/bin/create.py
AtomHash/evernode
f70d82e78cf9f6d58208438e26485e9565abd875
[ "MIT" ]
1
2020-10-05T20:36:24.000Z
2020-10-05T20:36:24.000Z
#!/usr/bin/env python import os import sys import click import yaml from urllib import request from evernode.classes import Json, Security class Create: """ Easy evernode app creation""" app_name = None dir_name = None config_file = None uwsgi_file = None app_file = None ...
44.11284
80
0.538061
#!/usr/bin/env python import os import sys import click import yaml from urllib import request from evernode.classes import Json, Security class Create: """ Easy evernode app creation""" app_name = None dir_name = None config_file = None uwsgi_file = None app_file = None ...
10,650
0
319
a00c718ab07d7d811a4543592751e2c1d6258509
758
py
Python
nanobrew/core/domain/option_type/text.py
nanobrew/nanobrew-core
ef180faa1e33af58ca7b7ff76a4ae016becb6cfc
[ "MIT" ]
1
2020-04-02T08:54:11.000Z
2020-04-02T08:54:11.000Z
nanobrew/core/domain/option_type/text.py
nanobrew/nanobrew-core
ef180faa1e33af58ca7b7ff76a4ae016becb6cfc
[ "MIT" ]
19
2020-05-02T10:04:07.000Z
2020-06-01T09:59:13.000Z
nanobrew/core/domain/option_type/text.py
nanobrew/nanobrew-core
ef180faa1e33af58ca7b7ff76a4ae016becb6cfc
[ "MIT" ]
1
2020-03-13T15:59:19.000Z
2020-03-13T15:59:19.000Z
from ..option import Option
25.266667
59
0.55277
from ..option import Option class Text(Option): def __init__(self, required: bool, label, description): self._required = required self._label = label self._description = description @classmethod def from_dict(cls, option): return Text( option['required'], ...
585
122
23
08c10500fbb3553cf3932a78df86b5fb9fbfa9be
522
py
Python
models/constants.py
couatl/http-server
8fe92f4fa556d966cc3942ccea6a89a32af70962
[ "MIT" ]
null
null
null
models/constants.py
couatl/http-server
8fe92f4fa556d966cc3942ccea6a89a32af70962
[ "MIT" ]
null
null
null
models/constants.py
couatl/http-server
8fe92f4fa556d966cc3942ccea6a89a32af70962
[ "MIT" ]
null
null
null
from enum import Enum ServerName = 'Http Technopark Highload server' HttpVersion = '1.1'
20.076923
46
0.626437
from enum import Enum ServerName = 'Http Technopark Highload server' HttpVersion = '1.1' class ContentTypes(Enum): html = 'text/html' css = 'text/css' js = 'text/javascript' txt = 'text/txt' plain = 'text/plain' jpg = 'image/jpeg' jpeg = 'image/jpeg' png = 'image/png' gif = 'image...
0
385
46
4c23ae3939c5011c19cd5681cefa7780e4551346
12,680
py
Python
tests/unit/stream_alert_rule_processor/test_firehose.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
null
null
null
tests/unit/stream_alert_rule_processor/test_firehose.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
1
2020-02-07T18:08:22.000Z
2020-02-07T18:08:22.000Z
tests/unit/stream_alert_rule_processor/test_firehose.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-present, Airbnb 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, sof...
37.40413
100
0.568375
""" Copyright 2017-present, Airbnb 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, sof...
537
0
26
bf46b0f8d343d438e6b89354701e2ac2d3c1bca7
655
py
Python
netdevice/migrations/0002_auto_20180511_0619.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
5
2016-10-31T17:46:17.000Z
2022-02-02T00:40:49.000Z
netdevice/migrations/0002_auto_20180511_0619.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
33
2018-05-09T06:07:50.000Z
2021-09-22T17:39:56.000Z
netdevice/migrations/0002_auto_20180511_0619.py
lkmhaqer/gtools-python
cff6d80525b78a4fadfb686566489fbe1687d889
[ "MIT" ]
1
2020-05-14T21:44:25.000Z
2020-05-14T21:44:25.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-05-11 06:19 from __future__ import unicode_literals from django.db import migrations
21.833333
46
0.564885
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-05-11 06:19 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('netdevice', '0001_initial'), ] operations = [ migrations.RemoveField( mod...
0
486
23
b1d6075f1cad4b78485b993cebfa8d98fe3abffb
2,167
py
Python
tests/test_utilities.py
yohokuno/dl4nlp
818db943835195397cd999e98806cabdc3499c19
[ "MIT" ]
41
2016-08-10T11:26:10.000Z
2020-02-13T19:01:12.000Z
tests/test_utilities.py
nokuno/dl4nlp
818db943835195397cd999e98806cabdc3499c19
[ "MIT" ]
null
null
null
tests/test_utilities.py
nokuno/dl4nlp
818db943835195397cd999e98806cabdc3499c19
[ "MIT" ]
8
2016-02-21T17:40:10.000Z
2016-06-24T03:23:27.000Z
import unittest import numpy as np from math import exp from scipy.special import expit from dl4nlp.utilities import sigmoid_gradient, softmax if __name__ == '__main__': unittest.main()
38.696429
85
0.601754
import unittest import numpy as np from math import exp from scipy.special import expit from dl4nlp.utilities import sigmoid_gradient, softmax class TestUtilities(unittest.TestCase): def assertDistribution(self, distribution): self.assertTrue(all(distribution >= 0.0)) self.assertTrue(all(distribut...
1,827
18
130
84fce317899af0d32f08b19c33ca9515797bc5c0
7,563
py
Python
bleu/bleu.py
SnehaMondal/bleu
dddeac9bddf5f3eca98d7e68f16870eee5e2bfbf
[ "BSD-3-Clause" ]
4
2019-11-25T06:22:50.000Z
2019-12-24T06:27:44.000Z
bleu/bleu.py
SnehaMondal/bleu
dddeac9bddf5f3eca98d7e68f16870eee5e2bfbf
[ "BSD-3-Clause" ]
3
2019-12-24T13:19:12.000Z
2021-03-16T11:53:19.000Z
bleu/bleu.py
zhijing-jin/nlp-evaluation
a129eb67ec844cdbf0e6c7bc0ab8a611b07ef667
[ "BSD-3-Clause" ]
2
2020-03-12T10:42:29.000Z
2020-06-20T07:22:45.000Z
''' author = Zhijing Jin (zhijing.jin@connect.hku.hk) date = Aug 24, 2019 How to Run: python bleu.py \ -refs data/ref0.txt data/ref1.txt -hyps data/hyp0.txt ''' from __future__ import print_function, division import os import json import argparse from .download import TMP_DIR, DETOK_FILE, BLEU_DETOK_FILE, BLEU_FILE...
33.171053
133
0.622108
''' author = Zhijing Jin (zhijing.jin@connect.hku.hk) date = Aug 24, 2019 How to Run: python bleu.py \ -refs data/ref0.txt data/ref1.txt -hyps data/hyp0.txt ''' from __future__ import print_function, division import os import json import argparse from .download import TMP_DIR, DETOK_FILE, BLEU_DETOK_FILE, BLEU_FILE...
4,325
0
138
21c669d69edbbac66ebd85a74a2aa9f1421d4b4a
170
py
Python
pages/PendingPage.py
jasonlfchen/python_framework
b174cb02fe0b62e872e2f3bffed834d9f89e5584
[ "MIT" ]
1
2019-05-15T05:57:29.000Z
2019-05-15T05:57:29.000Z
pages/PendingPage.py
jasonlfchen/python_framework
b174cb02fe0b62e872e2f3bffed834d9f89e5584
[ "MIT" ]
null
null
null
pages/PendingPage.py
jasonlfchen/python_framework
b174cb02fe0b62e872e2f3bffed834d9f89e5584
[ "MIT" ]
null
null
null
__author__ = 'Yunxi Lin' from pages.BasePage import BasePage
28.333333
50
0.747059
__author__ = 'Yunxi Lin' from pages.BasePage import BasePage class PendingPage(BasePage): def print_display(self): self.logger.info('Pending Page Displayed')
54
7
48
7ce271ff191ba5eeb0e9f491ae0a3c57439fec19
7,467
py
Python
venv/Lib/site-packages/PySide6/examples/widgets/state-machine/rogue.py
gabrielcervante/live-sharer
6fb33d5663849734caddcba8d439244c03693e63
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide6/examples/widgets/state-machine/rogue.py
gabrielcervante/live-sharer
6fb33d5663849734caddcba8d439244c03693e63
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide6/examples/widgets/state-machine/rogue.py
gabrielcervante/live-sharer
6fb33d5663849734caddcba8d439244c03693e63
[ "MIT" ]
null
null
null
############################################################################# ## ## Copyright (C) 2010 velociraptor Genjix <aphidia@hotmail.com> ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## ## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICE...
36.783251
87
0.602384
############################################################################# ## ## Copyright (C) 2010 velociraptor Genjix <aphidia@hotmail.com> ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## ## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICE...
4,643
372
200
c17238e3ea6d5c3bbcb53e0f74878691432e6488
617
py
Python
Auto Correct/image.py
uttamkeshri786/Communication-and-Education-Hub-For-Specially-Abled
d20f1f0c0c7fb367267643e702b9f3c5d70e9004
[ "MIT" ]
null
null
null
Auto Correct/image.py
uttamkeshri786/Communication-and-Education-Hub-For-Specially-Abled
d20f1f0c0c7fb367267643e702b9f3c5d70e9004
[ "MIT" ]
null
null
null
Auto Correct/image.py
uttamkeshri786/Communication-and-Education-Hub-For-Specially-Abled
d20f1f0c0c7fb367267643e702b9f3c5d70e9004
[ "MIT" ]
null
null
null
from google_images_download import google_images_download # creating object response = google_images_download.googleimagesdownload() search_queries =['apple','cat','appropriate','exorbitant'] for query in search_queries: downloadimages(query) print()
24.68
60
0.589951
from google_images_download import google_images_download # creating object response = google_images_download.googleimagesdownload() search_queries =['apple','cat','appropriate','exorbitant'] def downloadimages(query): arguments = {"keywords": query} try: response.downloa...
299
0
27
d2c270b297614b45177ca27bf5f9f77a7a6584d4
6,825
py
Python
indy_node/test/auth_rule/test_auth_txn_with_deprecated_key.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
627
2017-07-06T12:38:08.000Z
2022-03-30T13:18:43.000Z
indy_node/test/auth_rule/test_auth_txn_with_deprecated_key.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
580
2017-06-29T17:59:57.000Z
2022-03-29T21:37:52.000Z
indy_node/test/auth_rule/test_auth_txn_with_deprecated_key.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
704
2017-06-29T17:45:34.000Z
2022-03-30T07:08:58.000Z
import shutil from contextlib import contextmanager import pytest from indy_common.config_helper import NodeConfigHelper from indy_node.test.helper import TestNode from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data from plenum.test.test_node import ensureElectionsDone, ensure_node_disconnecte...
45.198675
122
0.606886
import shutil from contextlib import contextmanager import pytest from indy_common.config_helper import NodeConfigHelper from indy_node.test.helper import TestNode from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data from plenum.test.test_node import ensureElectionsDone, ensure_node_disconnecte...
0
0
0
09849d19c6f8c069a16069f6143c86c920b9a180
1,304
py
Python
src/unordered_pair.py
martgarden/pp-time-analysis
6cf0e03b0d2d9039cc200c831ee171022cea4e26
[ "MIT" ]
null
null
null
src/unordered_pair.py
martgarden/pp-time-analysis
6cf0e03b0d2d9039cc200c831ee171022cea4e26
[ "MIT" ]
null
null
null
src/unordered_pair.py
martgarden/pp-time-analysis
6cf0e03b0d2d9039cc200c831ee171022cea4e26
[ "MIT" ]
1
2019-12-12T15:01:05.000Z
2019-12-12T15:01:05.000Z
# -*- coding: utf-8 -*- # If y != None, constructs the unordered pair (x, y) # If y == None, constructs an unordered pair from iterable x, e.g. a tuple
24.148148
78
0.509202
# -*- coding: utf-8 -*- class upair: # If y != None, constructs the unordered pair (x, y) # If y == None, constructs an unordered pair from iterable x, e.g. a tuple def __init__(self, x, y=None): if y is not None: self._x = x self._y = y else: self._x, sel...
808
-9
349
f08712809580ee92fb03e643dd9e48ab44d626b8
1,288
py
Python
lib/python2.7/site-packages/leginon/checkapps.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/leginon/checkapps.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/leginon/checkapps.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import leginon.leginondata import sys import getpass import sets days = int(raw_input('Days: ')) ## make set of all application names appquery = leginon.leginondata.ApplicationData() apps = appquery.query() print 'APPS', len(apps) allapps = sets.Set() allappsdict = {} for app in apps: appname ...
24.769231
81
0.733696
#!/usr/bin/env python import leginon.leginondata import sys import getpass import sets days = int(raw_input('Days: ')) ## make set of all application names appquery = leginon.leginondata.ApplicationData() apps = appquery.query() print 'APPS', len(apps) allapps = sets.Set() allappsdict = {} for app in apps: appname ...
0
0
0
1b7001b06418ddc532a256eb22664ba369d7d7e4
291
py
Python
test/scripts/testSubMatrix.py
Gibbsdavidl/miergolf
1728bd9459d6067fb45d777d06ad440ab603d2e7
[ "BSD-3-Clause" ]
8
2016-03-04T07:51:43.000Z
2018-09-19T03:18:45.000Z
test/scripts/testSubMatrix.py
Gibbsdavidl/miergolf
1728bd9459d6067fb45d777d06ad440ab603d2e7
[ "BSD-3-Clause" ]
null
null
null
test/scripts/testSubMatrix.py
Gibbsdavidl/miergolf
1728bd9459d6067fb45d777d06ad440ab603d2e7
[ "BSD-3-Clause" ]
3
2017-03-24T02:52:38.000Z
2022-01-22T00:14:55.000Z
import timeit setup = ''' import scipy.sparse as sp import numpy as np from bisect import bisect from numpy.random import rand, randint import submatrix as s r = [10,20,30] A = s.randomMatrix() ''' t = timeit.Timer("s.subMatrix(r,r,A)", setup).repeat(3, 10) print t #print t.timeit()
17.117647
59
0.697595
import timeit setup = ''' import scipy.sparse as sp import numpy as np from bisect import bisect from numpy.random import rand, randint import submatrix as s r = [10,20,30] A = s.randomMatrix() ''' t = timeit.Timer("s.subMatrix(r,r,A)", setup).repeat(3, 10) print t #print t.timeit()
0
0
0
937d699f29de9bf65385d4f5c1da52e203206dc2
4,595
py
Python
services/traction/acapy_wrapper/apis/wallet_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/apis/wallet_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/apis/wallet_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from typing import Dict, List # noqa: F401 from fastapi import ( # noqa: F401 APIRouter, Body, Cookie, Depends, Form, Header, Path, Query, Request, Response, Security, status, ) from acapy_wrapper.models.extra_models import TokenModel # noqa: F401 fr...
26.715116
171
0.666376
# coding: utf-8 from typing import Dict, List # noqa: F401 from fastapi import ( # noqa: F401 APIRouter, Body, Cookie, Depends, Form, Header, Path, Query, Request, Response, Security, status, ) from acapy_wrapper.models.extra_models import TokenModel # noqa: F401 fr...
2,437
0
154
2ab8baacea67bdd028c291e9f1cb7d788577d7fe
128
py
Python
Desafios/desafio014.py
MaxGabrielima/Python-Codes
195c13821a937f0b792b0d214d19840d57068279
[ "MIT" ]
3
2021-07-31T21:10:32.000Z
2021-11-17T02:21:28.000Z
Desafios/desafio014.py
MaxGabrielima/Python-Codes
195c13821a937f0b792b0d214d19840d57068279
[ "MIT" ]
null
null
null
Desafios/desafio014.py
MaxGabrielima/Python-Codes
195c13821a937f0b792b0d214d19840d57068279
[ "MIT" ]
null
null
null
c = float(input('Digite a temperatura em C°: ')) f = c * 1.8 + 32 print('{:.0f} C° é igual a {:.0f}° Fahrenheight'.format(c, f))
42.666667
62
0.585938
c = float(input('Digite a temperatura em C°: ')) f = c * 1.8 + 32 print('{:.0f} C° é igual a {:.0f}° Fahrenheight'.format(c, f))
0
0
0
e1f67f7b91bd8c32c0cfdb45a2077ae8c8ff3cd8
2,272
py
Python
sleeplog/tests.py
jepaynedev/sleeplog
7e79e9d36521ac03b49bf5984bb4a2759d8015ca
[ "MIT" ]
null
null
null
sleeplog/tests.py
jepaynedev/sleeplog
7e79e9d36521ac03b49bf5984bb4a2759d8015ca
[ "MIT" ]
null
null
null
sleeplog/tests.py
jepaynedev/sleeplog
7e79e9d36521ac03b49bf5984bb4a2759d8015ca
[ "MIT" ]
null
null
null
import transaction import unittest import unittest.mock as mock from pyramid import testing from .models import User
32
121
0.629842
import transaction import unittest import unittest.mock as mock from pyramid import testing from .models import User class SleepLogViewTests(unittest.TestCase): def setUp(self): self.config = testing.setUp() def tearDown(self): testing.tearDown() def test_default(self): from .v...
1,611
414
126
afc39d0c21a7cdf47359b933ab387e9408704987
23,211
py
Python
catkin_ws/src/folding_control/src/moveit_interface.py
roop-pal/robotic-folding
a0e062ac6d23cd07fe10e3f45abc4ba50e533141
[ "RSA-MD" ]
17
2015-10-21T16:09:18.000Z
2021-07-23T03:15:55.000Z
catkin_ws/src/folding_control/src/moveit_interface.py
roop-pal/robotic-folding
a0e062ac6d23cd07fe10e3f45abc4ba50e533141
[ "RSA-MD" ]
1
2017-12-17T04:39:38.000Z
2017-12-17T04:39:38.000Z
catkin_ws/src/folding_control/src/moveit_interface.py
roop-pal/robotic-folding
a0e062ac6d23cd07fe10e3f45abc4ba50e533141
[ "RSA-MD" ]
8
2016-03-18T14:13:58.000Z
2020-01-15T15:03:51.000Z
#!/usr/bin/env python import sys import copy import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg import signal import math import tf from copy import deepcopy import transformation signal.signal(signal.SIGINT, signal_handler) pose_list = \ { 'left_open': [0.6451299414163874, 0.483081...
37.437097
162
0.563827
#!/usr/bin/env python import sys import copy import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg import signal import math import tf from copy import deepcopy import transformation def signal_handler(signal, frame): print("Disabling robot... ") moveit_commander.roscpp_shutdown...
3,397
0
100
09fb9853e9aa2a1bb1aebfc5a5e2fef2ea69bb92
376
py
Python
test.py
FRC1076/2019-wapur
e872489792e9573b7205eccde55be21705af6e3c
[ "MIT" ]
2
2018-11-15T23:22:31.000Z
2019-11-28T23:58:34.000Z
test.py
FRC1076/2019-wapur
e872489792e9573b7205eccde55be21705af6e3c
[ "MIT" ]
1
2018-11-06T03:50:27.000Z
2018-11-06T03:54:35.000Z
test.py
FRC1076/2019-wapur
e872489792e9573b7205eccde55be21705af6e3c
[ "MIT" ]
null
null
null
""" Hi! I intentionally wrote this script sort of weird so that it will only work in Python 3.7+, to make sure that you're using the right Python. Don't worry if you don't understand it! If you're curious, I'm happy to explain anything in it. -- C """ from __future__ import annotations print("Hello, ", end='World!\n'...
17.904762
63
0.68883
""" Hi! I intentionally wrote this script sort of weird so that it will only work in Python 3.7+, to make sure that you're using the right Python. Don't worry if you don't understand it! If you're curious, I'm happy to explain anything in it. -- C """ from __future__ import annotations print("Hello, ", end='World!\n'...
10
-4
46
8fab9a0e60252075d7e70d644b34510e8b6ba206
102
py
Python
gm2m/signals.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
24
2019-07-24T14:31:48.000Z
2022-02-19T23:30:37.000Z
gm2m/signals.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
15
2019-07-24T11:07:34.000Z
2022-01-05T04:16:34.000Z
gm2m/signals.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
20
2019-09-18T09:45:33.000Z
2022-02-25T14:49:04.000Z
from django.core.signals import Signal deleting = Signal(providing_args=['del_objs', 'rel_objs'])
25.5
59
0.754902
from django.core.signals import Signal deleting = Signal(providing_args=['del_objs', 'rel_objs'])
0
0
0
d4b98b76fe624baafc9de081109a4e9e4e43d434
12,333
py
Python
sensorFlightTest/MCv8.py
AllenRing/ProjectTabulas
2ad4c7d17a8c5ae3bae7f984ff599b2b5a990ffa
[ "MIT" ]
1
2016-02-05T14:40:20.000Z
2016-02-05T14:40:20.000Z
sensorFlightTest/MCv8.py
AllenRing/ProjectTabulas
2ad4c7d17a8c5ae3bae7f984ff599b2b5a990ffa
[ "MIT" ]
1
2016-02-05T14:05:43.000Z
2016-02-05T18:10:30.000Z
sensorFlightTest/MCv8.py
AllenRing/ProjectTabulas
2ad4c7d17a8c5ae3bae7f984ff599b2b5a990ffa
[ "MIT" ]
null
null
null
#---------------------------------------------------------------------------------------------------------------| # Organization: AllenRing | # -- Created by Ritch ...
34.449721
167
0.498662
#---------------------------------------------------------------------------------------------------------------| # Organization: AllenRing | # -- Created by Ritch ...
1,683
0
200
98f8a7366a54f5a00a6a3578b72a35407085c33f
739
py
Python
code/split_output_manifest.py
linuxus/ground-truth
ff849233187301b2c19040077f2802128503fc61
[ "MIT" ]
null
null
null
code/split_output_manifest.py
linuxus/ground-truth
ff849233187301b2c19040077f2802128503fc61
[ "MIT" ]
null
null
null
code/split_output_manifest.py
linuxus/ground-truth
ff849233187301b2c19040077f2802128503fc61
[ "MIT" ]
null
null
null
import os import json import random import time import numpy as np with open('../manifest/output.manifest', 'r') as f: output = [json.loads(line) for line in f.readlines()] # Shuffle output in place. np.random.shuffle(output) dataset_size = len(output) train_test_split_index = round(dataset_size*0.8) train_...
25.482759
57
0.688769
import os import json import random import time import numpy as np with open('../manifest/output.manifest', 'r') as f: output = [json.loads(line) for line in f.readlines()] # Shuffle output in place. np.random.shuffle(output) dataset_size = len(output) train_test_split_index = round(dataset_size*0.8) train_...
0
0
0
a001ce47dfba472c5f1d59e9b2f19b59e9e3dbad
645
py
Python
exercicios-python/ex037.py
DaviStalleiken/codigos-de-desafios
e9ec388022b5f4bb2a5ab170c17969154ceaece3
[ "MIT" ]
null
null
null
exercicios-python/ex037.py
DaviStalleiken/codigos-de-desafios
e9ec388022b5f4bb2a5ab170c17969154ceaece3
[ "MIT" ]
null
null
null
exercicios-python/ex037.py
DaviStalleiken/codigos-de-desafios
e9ec388022b5f4bb2a5ab170c17969154ceaece3
[ "MIT" ]
null
null
null
num = int(input('Digite um número inteiro: ')) print('''Escolha uma das bases para convertê-lo: [1] Converter para \033[34mBinário\033[m [2] Convertar para \033[34mOctal\033[m [3] Converter para \033[34mHexadecimal\033[m ''') opçao = int(input('Sua opção: ')) if opçao == 1: print(f'{num} convertido para \033[31mBi...
43
86
0.672868
num = int(input('Digite um número inteiro: ')) print('''Escolha uma das bases para convertê-lo: [1] Converter para \033[34mBinário\033[m [2] Convertar para \033[34mOctal\033[m [3] Converter para \033[34mHexadecimal\033[m ''') opçao = int(input('Sua opção: ')) if opçao == 1: print(f'{num} convertido para \033[31mBi...
0
0
0
e0169230f61f2658c873bd2aba623b6a93fada0c
136
py
Python
src/zuthaka/backendapi/authentication.py
justinforbes/zuthaka
26b4d37c6e280ff16858f37882752e9d15eac817
[ "BSD-3-Clause" ]
129
2021-08-05T21:10:35.000Z
2022-03-08T06:38:50.000Z
src/zuthaka/backendapi/authentication.py
justinforbes/zuthaka
26b4d37c6e280ff16858f37882752e9d15eac817
[ "BSD-3-Clause" ]
2
2021-08-20T06:11:16.000Z
2021-09-08T03:25:09.000Z
src/zuthaka/backendapi/authentication.py
justinforbes/zuthaka
26b4d37c6e280ff16858f37882752e9d15eac817
[ "BSD-3-Clause" ]
16
2021-08-06T01:01:20.000Z
2022-02-02T14:19:17.000Z
from rest_framework.authentication import TokenAuthentication
22.666667
61
0.838235
from rest_framework.authentication import TokenAuthentication class BearerAuthentication(TokenAuthentication): keyword = "Bearer"
0
50
23
5712f5578bd0fd9af62c545e2b778e5c098c9c56
1,189
py
Python
ymir/backend/src/pymir-app/tests/api/test_users.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
1
2022-01-12T03:12:47.000Z
2022-01-12T03:12:47.000Z
ymir/backend/src/pymir-app/tests/api/test_users.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/pymir-app/tests/api/test_users.py
under-chaos/ymir
83e98186b23429e6027b187cdade247f5f93e5de
[ "Apache-2.0" ]
null
null
null
from typing import Dict from fastapi.testclient import TestClient from sqlalchemy.orm import Session from app.config import settings from tests.utils.utils import random_email, random_lower_string
33.027778
88
0.718251
from typing import Dict from fastapi.testclient import TestClient from sqlalchemy.orm import Session from app.config import settings from tests.utils.utils import random_email, random_lower_string def test_get_users_normal_user_me( client: TestClient, normal_user_token_headers: Dict[str, str] ) -> None: r =...
942
0
46
69d827e655244788f40f241b562e81329d616cac
2,019
py
Python
examples/python/simple_scene/simple_scene.py
LightEngineProject/light-engine
5a343dd0b4c58ff77e29c1c31ff8e7d7d16dce66
[ "MIT" ]
null
null
null
examples/python/simple_scene/simple_scene.py
LightEngineProject/light-engine
5a343dd0b4c58ff77e29c1c31ff8e7d7d16dce66
[ "MIT" ]
2
2019-02-24T16:52:34.000Z
2019-02-28T10:41:22.000Z
examples/python/simple_scene/simple_scene.py
LightEngineProjects/light-engine
5a343dd0b4c58ff77e29c1c31ff8e7d7d16dce66
[ "MIT" ]
null
null
null
from random import uniform import lepy from PySide2Wrapper.PySide2Wrapper.window import MainWindow from PySide2Wrapper.PySide2Wrapper.widget import OpenGLWidget from PySide2Wrapper.PySide2Wrapper.app import Application if __name__ == "__main__": simple_scene = SimpleScene() app = Application() gl_widg...
32.564516
114
0.685983
from random import uniform import lepy from PySide2Wrapper.PySide2Wrapper.window import MainWindow from PySide2Wrapper.PySide2Wrapper.widget import OpenGLWidget from PySide2Wrapper.PySide2Wrapper.app import Application class SimpleScene: def __init__(self): self.engine = None self.user_camera = N...
985
-3
211
767f2421702adb529b5f2bf1c70e81884cc41af1
140
py
Python
manage_web.py
zakharovadaria/receipts
a1ac0936d8df4191c5500b605341e6380276595d
[ "MIT" ]
2
2020-02-01T17:42:23.000Z
2020-02-01T18:09:00.000Z
manage_web.py
zakharovadaria/receipts
a1ac0936d8df4191c5500b605341e6380276595d
[ "MIT" ]
null
null
null
manage_web.py
zakharovadaria/receipts
a1ac0936d8df4191c5500b605341e6380276595d
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv() from app.web import create_app app = create_app() if __name__ == '__main__': app.run()
12.727273
30
0.721429
from dotenv import load_dotenv load_dotenv() from app.web import create_app app = create_app() if __name__ == '__main__': app.run()
0
0
0
8f56893a2eca8a9c660dd465aecbdf31e87e9548
664
py
Python
app/src/main/python/a.py
piyushagr00786/Document-Scanner
d9ace813badbffe9af3c3e0627bf00dc0a3ebc50
[ "MIT" ]
null
null
null
app/src/main/python/a.py
piyushagr00786/Document-Scanner
d9ace813badbffe9af3c3e0627bf00dc0a3ebc50
[ "MIT" ]
null
null
null
app/src/main/python/a.py
piyushagr00786/Document-Scanner
d9ace813badbffe9af3c3e0627bf00dc0a3ebc50
[ "MIT" ]
null
null
null
import numpy as np import base64 from PIL import Image import cv2 #from StringIO import StringIO import numpy as np import io from io import BytesIO # if(img): #img=cv2.imread(np1,cv2.IMREAD_UNCHANGED)
17.025641
92
0.698795
import numpy as np import base64 from PIL import Image import cv2 #from StringIO import StringIO import numpy as np import io from io import BytesIO def aa(bmp): # cvimg = readb64(bmp) d=base64.b64decode(bmp) np_data = np.fromstring(d,np.uint8) img = cv2.imdecode(np_data, cv2.IMREAD_UNCHANGED) ...
426
0
23
e62a17e95e6e39bf9f63dc1a369e8d2b82925165
5,298
py
Python
st2api/st2api/controllers/exp/actionalias.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2api/st2api/controllers/exp/actionalias.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2api/st2api/controllers/exp/actionalias.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
42.725806
100
0.687618
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
1,327
0
26
66de7b576236c5ad0aa8c5332d138cfa2e2d1325
3,989
py
Python
rogal/term/ansi.py
kosciak/ecs-rogal
d553104e0ea350d11272d274a900419620b9389e
[ "MIT" ]
4
2021-01-23T13:25:46.000Z
2021-03-19T03:08:05.000Z
rogal/term/ansi.py
kosciak/ecs-rogal
d553104e0ea350d11272d274a900419620b9389e
[ "MIT" ]
null
null
null
rogal/term/ansi.py
kosciak/ecs-rogal
d553104e0ea350d11272d274a900419620b9389e
[ "MIT" ]
null
null
null
import sys from .escape_seq import csi from .escape_seq import CSI, SGR, ColorsMode, Color """Rudimentary ANSI support. See: https://en.wikipedia.org/wiki/ANSI_escape_code """ def cursor_position(n=1, m=1): """Move cursor to row n, column m (1-indexed from top-left).""" return csi(CSI.CUP, n, m) ...
20.668394
67
0.607671
import sys from .escape_seq import csi from .escape_seq import CSI, SGR, ColorsMode, Color """Rudimentary ANSI support. See: https://en.wikipedia.org/wiki/ANSI_escape_code """ def cursor_up(n=1): return csi(CSI.CUU, n) def cursor_down(n=1): return csi(CSI.CUD, n) def cursor_forward(n=1): return csi...
2,838
0
828
f7706ebd4ccc61b41b8d11296f2650beee97c144
270
py
Python
exercicios curso em video/ex037.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex037.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
exercicios curso em video/ex037.py
Nilton-Miguel/Prog_Python3
4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b
[ "MIT" ]
null
null
null
n = int(input('digite um número inteiro: ')) op = int(input('''escolha uma opção de conversão: [ 1 ] Binário [ 2 ] Octal [ 3 ] Hexadecimal''')) if op == 1: print(bin(n)[2:]) elif op == 2: print(oct(n)[2:]) elif op == 3: print(hex(n)[2:])
16.875
51
0.522222
n = int(input('digite um número inteiro: ')) op = int(input('''escolha uma opção de conversão: [ 1 ] Binário [ 2 ] Octal [ 3 ] Hexadecimal''')) if op == 1: print(bin(n)[2:]) elif op == 2: print(oct(n)[2:]) elif op == 3: print(hex(n)[2:])
0
0
0
c78003c24de1301b0b4edcdeab9519a097f9d2ee
106
py
Python
loader/__init__.py
bsbateam/genoxs
3df0c07211e1adb3f58fab9231d4aaa8a89ebbb8
[ "BSD-3-Clause" ]
3
2020-05-04T00:33:57.000Z
2021-01-10T04:42:07.000Z
loader/__init__.py
genemators/genoxs
3df0c07211e1adb3f58fab9231d4aaa8a89ebbb8
[ "BSD-3-Clause" ]
null
null
null
loader/__init__.py
genemators/genoxs
3df0c07211e1adb3f58fab9231d4aaa8a89ebbb8
[ "BSD-3-Clause" ]
1
2020-07-22T00:35:01.000Z
2020-07-22T00:35:01.000Z
try: from loader.loader import loader except ImportError as err: print(f"Import failed, {err}")
26.5
37
0.698113
try: from loader.loader import loader except ImportError as err: print(f"Import failed, {err}")
0
0
0
943bd3612c05eea98e46831925b8384fd666a02a
1,444
py
Python
msibi/tutorials/propane/opt.py
jennyfothergill/msibi
0e309eff836dc13016d87889fe8d8f6960a13599
[ "MIT" ]
7
2021-03-24T17:01:09.000Z
2022-01-03T21:53:26.000Z
msibi/tutorials/propane/opt.py
jennyfothergill/msibi
0e309eff836dc13016d87889fe8d8f6960a13599
[ "MIT" ]
22
2021-03-24T18:09:57.000Z
2022-02-24T18:36:49.000Z
msibi/tutorials/propane/opt.py
jennyfothergill/msibi
0e309eff836dc13016d87889fe8d8f6960a13599
[ "MIT" ]
2
2021-03-24T16:19:56.000Z
2021-03-24T17:04:48.000Z
import itertools import os import string import numpy as np from msibi import MSIBI, Pair, State, mie os.system("rm rdfs/pair_C3*_state*-step*.txt f_fits.log") os.system("rm state_*/*.txt state*/run.py state*/*query.dcd") # Set up global parameters. rdf_cutoff = 5.0 opt = MSIBI( rdf_cutoff=rdf_cutoff, n_rdf_po...
23.290323
80
0.677285
import itertools import os import string import numpy as np from msibi import MSIBI, Pair, State, mie os.system("rm rdfs/pair_C3*_state*-step*.txt f_fits.log") os.system("rm state_*/*.txt state*/run.py state*/*query.dcd") # Set up global parameters. rdf_cutoff = 5.0 opt = MSIBI( rdf_cutoff=rdf_cutoff, n_rdf_po...
0
0
0
39d3099d8f0fde6079c4fd1c75d9c16f70c2a453
1,742
py
Python
Lib/site-packages/twisted/web2/dav/method/delete.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/twisted/web2/dav/method/delete.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/twisted/web2/dav/method/delete.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
# -*- test-case-name: twisted.web2.dav.test.test_delete -*- ## # Copyright (c) 2005 Apple Computer, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restric...
36.291667
80
0.740528
# -*- test-case-name: twisted.web2.dav.test.test_delete -*- ## # Copyright (c) 2005 Apple Computer, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restric...
0
0
0
21af1df38dea7e7f28c08382f2e782d58bc43cd9
201
py
Python
medvision/visualization/__init__.py
kyle0x54/medvision
a634208fe9b2dff13e54b28fa024a31328a78431
[ "Apache-2.0" ]
6
2019-02-06T15:27:53.000Z
2021-08-20T03:19:13.000Z
medvision/visualization/__init__.py
kyle0x54/medvision
a634208fe9b2dff13e54b28fa024a31328a78431
[ "Apache-2.0" ]
2
2019-08-05T11:08:02.000Z
2019-09-23T09:15:33.000Z
medvision/visualization/__init__.py
kyle0x54/medvision
a634208fe9b2dff13e54b28fa024a31328a78431
[ "Apache-2.0" ]
2
2019-02-19T06:48:14.000Z
2019-08-05T08:40:45.000Z
# flake8: noqa from .draw_curve import draw_froc_curve, draw_roc_curve, draw_pr_curve from .image import Color, imshow, imshow_bboxes __all__ = [k for k in globals().keys() if not k.startswith("_")]
28.714286
70
0.761194
# flake8: noqa from .draw_curve import draw_froc_curve, draw_roc_curve, draw_pr_curve from .image import Color, imshow, imshow_bboxes __all__ = [k for k in globals().keys() if not k.startswith("_")]
0
0
0
08930887731f54d32baa46295d141d583dcbce59
1,644
py
Python
libs/plotutils.py
SebaDro/ST-DeepHydro
98cf8c1fabd9098c34f486655cc608383db36eaa
[ "Apache-2.0" ]
null
null
null
libs/plotutils.py
SebaDro/ST-DeepHydro
98cf8c1fabd9098c34f486655cc608383db36eaa
[ "Apache-2.0" ]
null
null
null
libs/plotutils.py
SebaDro/ST-DeepHydro
98cf8c1fabd9098c34f486655cc608383db36eaa
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.dates as mdates import tensorflow as tf import xarray as xr def plot_loss(history: tf.keras.callbacks.History): """ Visualizes the progress of a trained model by plotting the loss per epoch Parameters ---------- history: tf.keras.callbacks.History...
34.25
90
0.677007
import matplotlib.pyplot as plt import matplotlib.dates as mdates import tensorflow as tf import xarray as xr def plot_loss(history: tf.keras.callbacks.History): """ Visualizes the progress of a trained model by plotting the loss per epoch Parameters ---------- history: tf.keras.callbacks.History...
981
0
46
92bc4aa01ffafb6b30b47395867329fa36246ca5
1,822
py
Python
python/spi/token.py
montreal91/jolly-jay
7a2e145658177abc109b9f8f3787b8197f4ce7b5
[ "BSD-3-Clause" ]
null
null
null
python/spi/token.py
montreal91/jolly-jay
7a2e145658177abc109b9f8f3787b8197f4ce7b5
[ "BSD-3-Clause" ]
null
null
null
python/spi/token.py
montreal91/jolly-jay
7a2e145658177abc109b9f8f3787b8197f4ce7b5
[ "BSD-3-Clause" ]
null
null
null
from enum import Enum # Maps token symbol to the token type ONE_SYMBOL_TOKENS = { "+": TokenType.PLUS, "-": TokenType.MINUS, "*": TokenType.MULTIPLY, "/": TokenType.REAL_DIV, "(": TokenType.LPAR, ")": TokenType.RPAR, ";": TokenType.SEMI, ":": TokenType.COLON, ",": TokenType.COMMA...
21.951807
100
0.597146
from enum import Enum class TokenType(Enum): ASSIGN = "ASSIGN" BEGIN = "BEGIN" COLON = "COLON" COMMA = "COMMA" DOT = "DOT" END = "END" ID = "ID" INTEGER = "INTEGER" INTEGER_DIV = "INT_DIV" INTEGER_LITERAL = "INTEGER_LITERAL" LPAR = "LPAR" MINUS = "MINUS" MULTIPLY = ...
437
493
234
b67874391faf56c3e272be2959e71d5c592d9b0c
2,051
py
Python
app/library/providers/storage/s3.py
wasilak/notes-manager
8d320d73c78d3c0690cc2dd4248830c81474c3b4
[ "MIT" ]
null
null
null
app/library/providers/storage/s3.py
wasilak/notes-manager
8d320d73c78d3c0690cc2dd4248830c81474c3b4
[ "MIT" ]
18
2019-09-15T15:22:25.000Z
2022-02-21T09:01:29.000Z
app/library/providers/storage/s3.py
wasilak/notes-manager
8d320d73c78d3c0690cc2dd4248830c81474c3b4
[ "MIT" ]
null
null
null
import os import logging import boto3 from botocore.exceptions import ClientError from .common import get_file, create_path
32.046875
111
0.58508
import os import logging import boto3 from botocore.exceptions import ClientError from .common import get_file, create_path class Storage(): bucket_name = os.getenv("S3_BUCKET", "notes") app_root = os.getcwd() storage_root = "%s/storage" % (app_root) def __init__(self): if not os.path.exists...
1,677
226
23
99e3887f57aecf09193e7c848f0d73ac30999a95
10,712
py
Python
compiler.py
reidrac/jtc
bd9f90bf767cc1c05050ec0d4ddf2b6c22a54b31
[ "MIT" ]
2
2016-05-12T19:29:21.000Z
2020-03-19T16:14:32.000Z
compiler.py
reidrac/jtc
bd9f90bf767cc1c05050ec0d4ddf2b6c22a54b31
[ "MIT" ]
null
null
null
compiler.py
reidrac/jtc
bd9f90bf767cc1c05050ec0d4ddf2b6c22a54b31
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sys import exit, stdin from os import environ, path, unlink from tempfile import NamedTemporaryFile from subprocess import Popen, PIPE from argparse import ArgumentParser import parser import lexer __author__ = "Juan J. Martinez <jjm@usebox.net>" __version__ = "0.6.3" app_name = "JTC" proj...
30.605714
122
0.537901
#!/usr/bin/env python from sys import exit, stdin from os import environ, path, unlink from tempfile import NamedTemporaryFile from subprocess import Popen, PIPE from argparse import ArgumentParser import parser import lexer __author__ = "Juan J. Martinez <jjm@usebox.net>" __version__ = "0.6.3" app_name = "JTC" proj...
6,238
396
253
1bbb3e688bbd4f3f08603ebe45c56d6a8f3a3d1a
1,547
py
Python
setup.py
jasonkatz/py-graphql-client
9f938f3d379a8f4d8810961c87baf25dbe35889d
[ "BSD-3-Clause" ]
38
2019-03-22T16:27:08.000Z
2022-03-30T11:07:55.000Z
setup.py
anthonyhiga/py-graphql-client
9c59b32bae5c5c6a12634b2bd6353f76328aa31a
[ "BSD-3-Clause" ]
31
2019-03-25T20:28:40.000Z
2022-01-26T21:22:47.000Z
setup.py
anthonyhiga/py-graphql-client
9c59b32bae5c5c6a12634b2bd6353f76328aa31a
[ "BSD-3-Clause" ]
11
2019-03-25T18:54:32.000Z
2021-09-11T17:00:27.000Z
# -*- coding: utf-8 -*- from setuptools import find_packages, setup __version__ = "0.1.1" __desc__ = "A dead-simple GraphQL client that supports subscriptions over websockets" with open('README.md') as readme_file: readme = readme_file.read() requirements = [ 'websocket-client==0.54.0' ] test_requirements ...
30.333333
85
0.652877
# -*- coding: utf-8 -*- from setuptools import find_packages, setup __version__ = "0.1.1" __desc__ = "A dead-simple GraphQL client that supports subscriptions over websockets" with open('README.md') as readme_file: readme = readme_file.read() requirements = [ 'websocket-client==0.54.0' ] test_requirements ...
0
0
0
9bbff3893e5f96c2c392c4af0b4ffa7ea128b58e
1,686
py
Python
src/error_correction/dataset_utils/describe_masks.py
gruentee/acl2021-factual-error-correction
b500f589cc3e73ffa6958c7dab8c07f2535a448f
[ "Apache-2.0" ]
5
2021-06-12T14:24:22.000Z
2021-06-15T02:03:44.000Z
src/error_correction/dataset_utils/describe_masks.py
gruentee/acl2021-factual-error-correction
b500f589cc3e73ffa6958c7dab8c07f2535a448f
[ "Apache-2.0" ]
5
2021-06-14T14:52:17.000Z
2021-07-04T13:18:03.000Z
src/error_correction/dataset_utils/describe_masks.py
gruentee/acl2021-factual-error-correction
b500f589cc3e73ffa6958c7dab8c07f2535a448f
[ "Apache-2.0" ]
4
2021-07-10T13:40:37.000Z
2022-01-20T08:50:05.000Z
# # Copyright (c) 2019-2021 James Thorne. # # This file is part of factual error correction. # See https://jamesthorne.co.uk for further info. # # 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 ...
33.72
78
0.662515
# # Copyright (c) 2019-2021 James Thorne. # # This file is part of factual error correction. # See https://jamesthorne.co.uk for further info. # # 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 ...
0
0
0
177d200a81abac306eaa75a289ef7f0959cc6176
12,021
py
Python
BiGI_src/utils/loader.py
caojiangxia/BiGI
ed54c20523a5b3f295b90a9c08f7c54e8258d04a
[ "MIT" ]
57
2020-10-19T08:54:57.000Z
2022-03-19T12:20:43.000Z
BiGI_src/utils/loader.py
caojiangxia/BiGI
ed54c20523a5b3f295b90a9c08f7c54e8258d04a
[ "MIT" ]
6
2020-12-01T02:31:56.000Z
2021-10-10T06:15:13.000Z
BiGI_src/utils/loader.py
caojiangxia/BiGI
ed54c20523a5b3f295b90a9c08f7c54e8258d04a
[ "MIT" ]
9
2021-05-15T03:29:31.000Z
2022-03-14T20:28:44.000Z
""" Data loader for TACRED json files. """ import json import random import torch import numpy as np class DataLoader(object): """ Load data from json files, preprocess and prepare batches. """ def preprocess(self, data, opt): """ Preprocess the data and convert to ids. """ processed ...
44.032967
373
0.556776
""" Data loader for TACRED json files. """ import json import random import torch import numpy as np class DataLoader(object): """ Load data from json files, preprocess and prepare batches. """ def __init__(self, filename, batch_size, opt, user_real_dict, user_fake_dict, item_real_dict, item_fake_dic...
3,974
0
184
eca444c0f5a1e8f5a0116943df0c1cf53f8f4460
1,001
py
Python
import/jsonify.py
18F/NRM-Grants-Agreements
7b9016e034b75a2237f7c70ba539b542108c335e
[ "CC0-1.0" ]
5
2020-11-18T20:00:02.000Z
2021-04-16T23:50:07.000Z
import/jsonify.py
USDAForestService/NRM-Grants-Agreements
7b9016e034b75a2237f7c70ba539b542108c335e
[ "CC0-1.0" ]
210
2021-04-28T16:26:34.000Z
2022-03-14T16:31:21.000Z
import/jsonify.py
USDAForestService/NRM-Grants-Agreements
7b9016e034b75a2237f7c70ba539b542108c335e
[ "CC0-1.0" ]
2
2021-07-06T20:57:27.000Z
2021-07-07T13:06:46.000Z
import csv import json import sys def make_json(args): """ Pretty simple and somewhat naive script that =takes a `.xsv` file as an argument, converts it to JSON, and outputs it as a json file of the same name as the original csv. It can handle .csv or .tsv files. It does, however, make a lot of ...
31.28125
92
0.62038
import csv import json import sys def make_json(args): """ Pretty simple and somewhat naive script that =takes a `.xsv` file as an argument, converts it to JSON, and outputs it as a json file of the same name as the original csv. It can handle .csv or .tsv files. It does, however, make a lot of ...
0
0
0
46877eeab023b042935d4a1583c595ecfe184fe7
3,012
py
Python
tests/test_ddem.py
erikmannerfelt/xdem
725a216f576642f2af4ac3228c9290cd85e47e17
[ "MIT" ]
12
2021-03-05T22:40:49.000Z
2022-03-25T14:01:54.000Z
tests/test_ddem.py
erikmannerfelt/xdem
725a216f576642f2af4ac3228c9290cd85e47e17
[ "MIT" ]
205
2021-03-04T13:07:15.000Z
2022-02-02T18:02:14.000Z
tests/test_ddem.py
erikmannerfelt/xdem
725a216f576642f2af4ac3228c9290cd85e47e17
[ "MIT" ]
12
2021-03-10T09:27:51.000Z
2022-03-28T12:29:53.000Z
"""Functions to test the difference of DEMs tools.""" import warnings import geoutils as gu import numpy as np with warnings.catch_warnings(): warnings.simplefilter("ignore") import xdem
32.042553
93
0.648406
"""Functions to test the difference of DEMs tools.""" import warnings import geoutils as gu import numpy as np with warnings.catch_warnings(): warnings.simplefilter("ignore") import xdem class TestdDEM: dem_2009 = xdem.DEM(xdem.examples.get_path("longyearbyen_ref_dem")) dem_1990 = xdem.DEM(xdem.exam...
0
2,791
23
a41283ee12db1520d638c091b84a0d30196b74db
719
py
Python
docs/command_interface/src/resources/source/sample.py
CoderSong2015/Apache-Trafodion
889631aae9cdcd38fca92418d633f2dedc0be619
[ "Apache-2.0" ]
148
2015-06-18T21:26:04.000Z
2017-12-25T01:47:01.000Z
docs/command_interface/src/resources/source/sample.py
CoderSong2015/Apache-Trafodion
889631aae9cdcd38fca92418d633f2dedc0be619
[ "Apache-2.0" ]
1,352
2015-06-20T03:05:01.000Z
2017-12-25T14:13:18.000Z
docs/command_interface/src/resources/source/sample.py
CoderSong2015/Apache-Trafodion
889631aae9cdcd38fca92418d633f2dedc0be619
[ "Apache-2.0" ]
166
2015-06-19T18:52:10.000Z
2017-12-27T06:19:32.000Z
import os import sys ## Modify this path sys.path.append("C:\\Program Files (x86)\\Apache Software Foundation\\Trafodion Command Interface\\lib\\python") import Session # create a new session sess = Session.Session() # Connect to the database x=sess. connect ("user1","password","16.123.456.78","23400") # Execute sa...
23.966667
112
0.751043
import os import sys ## Modify this path sys.path.append("C:\\Program Files (x86)\\Apache Software Foundation\\Trafodion Command Interface\\lib\\python") import Session # create a new session sess = Session.Session() # Connect to the database x=sess. connect ("user1","password","16.123.456.78","23400") # Execute sa...
0
0
0
168adf574b0816d2f1731870f4b134622f8eeccc
9,276
py
Python
tests/test_nasbench.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
195
2020-08-15T17:39:23.000Z
2022-02-28T07:48:03.000Z
tests/test_nasbench.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
22
2020-08-16T01:44:48.000Z
2022-03-12T00:46:54.000Z
tests/test_nasbench.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
27
2020-08-16T06:34:56.000Z
2022-03-06T18:16:52.000Z
import os import pytest import numpy as np AWNAS_TEST_NASBENCH = os.environ.get("AWNAS_TEST_NASBENCH", None) @pytest.mark.skipif( not AWNAS_TEST_NASBENCH, reason="do not test the nasbench BTC by default.") @pytest.mark.parametrize("case", [ {"cls": "nasbench-101", "load_nasbench": False, "validate_spec": Fals...
43.549296
109
0.579452
import os import pytest import numpy as np AWNAS_TEST_NASBENCH = os.environ.get("AWNAS_TEST_NASBENCH", None) @pytest.mark.skipif( not AWNAS_TEST_NASBENCH, reason="do not test the nasbench BTC by default.") @pytest.mark.parametrize("case", [ {"cls": "nasbench-101", "load_nasbench": False, "validate_spec": Fals...
7,778
0
110
2806076df6167d2584f2050dbeef65e5995f6784
536
py
Python
tests/r/test_forbes2000.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_forbes2000.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_forbes2000.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.forbes2000 import forbes2000 def test_forbes2000(): """Test module forbes2000.py by downloading forbes2000.csv and testing shape of extrac...
22.333333
48
0.76306
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.forbes2000 import forbes2000 def test_forbes2000(): """Test module forbes2000.py by downloading forbes2000.csv and testing shape of extrac...
0
0
0
5f61a50e6cd2506d053464655ef7fe7163ee3ba2
9,604
py
Python
pytorch_lightning/metrics/metric.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
2
2020-08-28T12:11:59.000Z
2020-09-27T09:44:04.000Z
pytorch_lightning/metrics/metric.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
8
2021-01-15T13:15:09.000Z
2021-04-04T19:52:25.000Z
pytorch_lightning/metrics/metric.py
GimmickNG/pytorch-lightning
b36c5e86d014671b0fa922d750b27420bc73b6f9
[ "Apache-2.0" ]
1
2020-10-19T03:52:27.000Z
2020-10-19T03:52:27.000Z
# Copyright The PyTorch Lightning team. # # 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...
33.117241
107
0.619429
# Copyright The PyTorch Lightning team. # # 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...
1,891
0
234
8e9143d76b7e83ec39ca81333f61c41cbb0b5da7
3,637
py
Python
test/test_basic_style.py
jarret/bitcoin_helpers
4b6155ea3b004ad58a717b36cd58138d058281b1
[ "MIT" ]
null
null
null
test/test_basic_style.py
jarret/bitcoin_helpers
4b6155ea3b004ad58a717b36cd58138d058281b1
[ "MIT" ]
null
null
null
test/test_basic_style.py
jarret/bitcoin_helpers
4b6155ea3b004ad58a717b36cd58138d058281b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 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. import os import argparse from framework.argparse.option import add_tmp_directory_option from framework.bitco...
35.31068
79
0.648337
#!/usr/bin/env python3 # Copyright (c) 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. import os import argparse from framework.argparse.option import add_tmp_directory_option from framework.bitco...
1,923
18
191
79b61d44ff4d004fe8be95d305b19b4d67cb1470
2,068
py
Python
conftest.py
zodman/gotrue-py
2f94bfdbc2cf20ef50ec777bbda03face1da3e85
[ "MIT" ]
13
2021-10-06T08:50:55.000Z
2022-03-29T18:21:12.000Z
conftest.py
zodman/gotrue-py
2f94bfdbc2cf20ef50ec777bbda03face1da3e85
[ "MIT" ]
82
2021-09-29T11:50:29.000Z
2022-03-24T07:27:33.000Z
conftest.py
zodman/gotrue-py
2f94bfdbc2cf20ef50ec777bbda03face1da3e85
[ "MIT" ]
4
2021-09-15T07:33:22.000Z
2022-01-13T22:53:01.000Z
from typing import Dict, Tuple import pytest # store history of failures per test class name and per index # in parametrize (if parametrize used) _test_failed_incremental: Dict[str, Dict[Tuple[int, ...], str]] = {}
39.769231
87
0.60735
from typing import Dict, Tuple import pytest # store history of failures per test class name and per index # in parametrize (if parametrize used) _test_failed_incremental: Dict[str, Dict[Tuple[int, ...], str]] = {} def pytest_runtest_makereport(item, call): if "incremental" in item.keywords: # increment...
1,803
0
46
ebc98c9be150485094483d351832f5f41ddeb341
3,760
py
Python
Table Objects/Striker.py
rval002/Air-Hockey-Table-Project-UCR
babc11637d0db89c012205e0c2ad1a608d1c54e3
[ "MIT" ]
1
2021-06-08T05:22:55.000Z
2021-06-08T05:22:55.000Z
Table Objects/Striker.py
rval002/Air-Hockey-Table-Project-UCR
babc11637d0db89c012205e0c2ad1a608d1c54e3
[ "MIT" ]
null
null
null
Table Objects/Striker.py
rval002/Air-Hockey-Table-Project-UCR
babc11637d0db89c012205e0c2ad1a608d1c54e3
[ "MIT" ]
1
2021-01-11T04:48:08.000Z
2021-01-11T04:48:08.000Z
# **************************************************************************** # # Air Hockey Table Project # Author: Ricardo Valverde # ------------------------- #This Code is Created for UCR's EE175 Senior Design Project # This Code contains The Puck Object Striker #For Pygame Documentation please see: #https://w...
30.819672
118
0.588564
# **************************************************************************** # # Air Hockey Table Project # Author: Ricardo Valverde # ------------------------- #This Code is Created for UCR's EE175 Senior Design Project # This Code contains The Puck Object Striker #For Pygame Documentation please see: #https://w...
2,902
1
319
e67cc3f77e80a72454938caa03121621ff00417a
19,307
py
Python
BUtils.py
joacocruz6/cc3501-tarea2
e6560b007a377769ef27d2b128a4dce560568542
[ "MIT" ]
null
null
null
BUtils.py
joacocruz6/cc3501-tarea2
e6560b007a377769ef27d2b128a4dce560568542
[ "MIT" ]
null
null
null
BUtils.py
joacocruz6/cc3501-tarea2
e6560b007a377769ef27d2b128a4dce560568542
[ "MIT" ]
null
null
null
from CC3501Utils import * from Bombs import * from Vista import * from Pared import * from Player import * from Explosion import * from PDes import * from Enemy import * from Win import * from Power import * import pygame import math as m import random as rand #########################################################...
29.033083
168
0.545346
from CC3501Utils import * from Bombs import * from Vista import * from Pared import * from Player import * from Explosion import * from PDes import * from Enemy import * from Win import * from Power import * import pygame import math as m import random as rand #########################################################...
0
0
0
48f7268c6405c1a34b2e0c7b8c22e043eb5b6d4b
102
py
Python
myint.py
codes-by-kiwi/defining-an-int-py
793a781f650b2ef38d429a1dc25c0e4a15997889
[ "MIT" ]
null
null
null
myint.py
codes-by-kiwi/defining-an-int-py
793a781f650b2ef38d429a1dc25c0e4a15997889
[ "MIT" ]
null
null
null
myint.py
codes-by-kiwi/defining-an-int-py
793a781f650b2ef38d429a1dc25c0e4a15997889
[ "MIT" ]
null
null
null
myint = 7 print(myint) # the below way is another way to do the above print(7) # This will print 7.
12.75
46
0.696078
myint = 7 print(myint) # the below way is another way to do the above print(7) # This will print 7.
0
0
0