hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
10e78c0fc826ea93b28382039c36ba828ba1ef04
362
py
Python
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
1
2017-10-22T06:12:33.000Z
2017-10-22T06:12:33.000Z
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
null
null
null
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
null
null
null
from rest_framework import mixins from rest_framework_mongoengine import viewsets from happ.serializers import FeedbackMessageSerializer class FeedbackMessageViewSet(viewsets.GenericViewSet, mixins.CreateModelMixin): serializer_class = FeedbackMessageSerializer def perform_create(self, serializer): ...
30.166667
79
0.834254
221
0.610497
0
0
0
0
0
0
0
0
10e7e48e445393fa9cddec8e7e757ee1303b32a4
5,058
py
Python
src/okwugbe/metrics.py
edaiofficial/okwugbe
74233162748a0a583c622e554c08d1d294758f1e
[ "MIT" ]
5
2021-12-22T03:39:16.000Z
2022-01-14T20:52:16.000Z
src/okwugbe/metrics.py
chrisemezue/okwugbe
e93266fc9d1af1104800efc332f76852d97ddf77
[ "MIT" ]
2
2021-12-22T23:50:26.000Z
2021-12-28T03:58:14.000Z
src/okwugbe/metrics.py
chrisemezue/okwugbe
e93266fc9d1af1104800efc332f76852d97ddf77
[ "MIT" ]
3
2021-12-22T03:39:23.000Z
2022-02-18T23:21:34.000Z
import numpy as np class Metrics: def __init__(self): super(Metrics, self).__init__() def _levenshtein_distance(self, ref, hyp): """ :param ref: First sequence and or sentence (sequence of words) :param hyp: Second sequence and or sentence (sequence of words) ...
39.515625
89
0.5862
5,032
0.99486
0
0
0
0
0
0
2,023
0.39996
10e801c7c91230517b18b1bc2bbf692c3cbfea50
946
py
Python
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
class Node(): def __init__(self, value=None, left=None, right=None): self.value = value self.left = left self.right = right def is_balanced(self): root = self height_left = root.left.tree_height() height_right = root.right.tree_height() if abs(height_right - height_left > 1): return False ret...
16.310345
55
0.651163
685
0.724101
0
0
0
0
0
0
0
0
10e8609558f729c1c5d880e7bbeba6d000ba22a8
23,221
py
Python
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
4
2022-03-29T08:50:37.000Z
2022-03-30T12:00:22.000Z
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
import numbers from typing import Union, List import numpy import torch EPSILON = torch.finfo(torch.float32).eps __all__ = ["ComplexTensor"] class ComplexTensor: def __init__( self, real: Union[torch.Tensor, numpy.ndarray], imag=None, device=None ): if imag is None: if isinstance...
33.078348
88
0.56535
23,075
0.993713
0
0
919
0.039576
0
0
1,957
0.084277
10e8e4534667bb714882b3a04d470fb684fe8e21
1,724
py
Python
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
4
2019-05-27T15:31:24.000Z
2021-02-17T12:55:58.000Z
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
null
null
null
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
1
2021-02-17T12:56:00.000Z
2021-02-17T12:56:00.000Z
import trio from trio_websocket import serve_websocket, ConnectionClosed import sys import names class SetOfNames: def __init__(self, server_name): self.server_name = server_name self.dict_of_names = {} who_is_who = SetOfNames('Server Ben') async def echo_server(request): print("ECHO...
38.311111
119
0.611369
126
0.073086
0
0
0
0
1,432
0.830626
197
0.114269
10e947bdae89ed7b8db18360f7d290e49b33356b
8,638
py
Python
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
10
2017-04-11T19:18:40.000Z
2019-10-17T18:00:30.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
2
2017-04-20T17:32:57.000Z
2021-10-18T17:15:00.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
4
2017-04-12T23:59:37.000Z
2018-04-14T14:34:59.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2017 IBM Corporation Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
35.113821
86
0.607432
1,753
0.202753
0
0
0
0
0
0
2,308
0.266944
10eb2eb1e1c0179f273edc5b429b658630b21635
132
py
Python
lib/fmd/actions.py
GonzaloAlvarez/py-ga-sysadmin
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
2
2018-01-05T15:32:06.000Z
2021-06-02T13:15:05.000Z
lib/fmd/actions.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
67
2017-01-09T19:39:19.000Z
2018-02-28T05:33:40.000Z
lib/fmd/actions.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
null
null
null
from addaction import AddAction from showaction import ShowAction from getaction import GetAction from listaction import ListAction
26.4
33
0.878788
0
0
0
0
0
0
0
0
0
0
10ec056f054912cb4b0a801c882030b7aec58eb5
5,568
py
Python
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
1
2021-07-19T22:03:13.000Z
2021-07-19T22:03:13.000Z
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
null
null
null
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
null
null
null
""" This module allows to write a PDF object structure in a file stream. An object structure consists of containers (dictionaries, lists, sets and tuples) embedded in one another and other objects. This module also works on structures that do not contain PDF objects. """ from PyPDF2.generic import BooleanObject, Dict...
25.658986
78
0.713182
0
0
0
0
0
0
0
0
1,969
0.353628
10ed97d128b88ac1be3e9146a547173a352d36ad
1,459
py
Python
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from django.test import TestCase from ..models import CustomField, CustomFieldTypes from .models import SomeModel class CustomFieldModelsTestCase(TestCase): def setUp(self): self.sm1 = SomeModel.objects.create(name='abc') self.sm2 = SomeModel.objec...
34.738095
72
0.64976
1,292
0.885538
0
0
0
0
0
0
163
0.11172
10eddb0bda4ef9a212e7422cec09a64125c85f9d
9,628
py
Python
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """hw1_310555029.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1JRZxfH5avZg0896ddvxZSfm2lUtMGKSu #Linear Regression ##(0) Load the data -> Standardize data -> Split the dataset """ import numpy as np import pandas as ...
30.565079
229
0.677399
1,609
0.166219
0
0
0
0
0
0
2,904
0.3
10ede10483aa85ede7885663a3c53c210a5e7bf4
5,959
py
Python
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
#### prime , even and odd number ##### # l=int(input("How many input do you need :")) # x=[] # y=[] # z=[] # b=[] # for p in range (l): # t=int(input("Enter the number :")) # x.append(t) # for i in x: # if i > 1: # for j in range(2,i): # if i%j==0: # break # else...
16.833333
77
0.458466
0
0
0
0
0
0
0
0
5,574
0.935392
10ee5a867e9442e6f840b47ede6896ae45d15ac9
16,380
py
Python
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from analysis.analysis_testcase import AnalysisTestCase from analysis.callstack_detectors import StartOfCallStack from analysis.stacktrace import FunctionLin...
41.052632
80
0.675031
15,626
0.953968
0
0
0
0
0
0
3,770
0.230159
10ee981491e95e5c5b7bf67f7fa5bf9b027269ad
327
py
Python
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
null
null
null
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
null
null
null
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
1
2020-01-31T13:09:21.000Z
2020-01-31T13:09:21.000Z
# For building the Gaussioan Naive Bayes classifier, Iris dataset from Scikit Learn is being used. from sklearn.datasets import load_iris # Importing necessary scikit learn libraries from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import accuracy...
36.333333
98
0.853211
0
0
0
0
0
0
0
0
142
0.434251
10f0ab8a942c51c67acca8df3fafde0f77b99972
86,336
py
Python
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
null
null
null
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
null
null
null
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
2
2021-01-18T10:07:20.000Z
2022-01-12T10:09:47.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/5/12 13:16 # @author :Mo # @function :chatbot based search, encode sentence_vec by bert def chatbot_sentence_vec_by_bert_own(): """bert encode is writted by my own""" from FeatureProject.bert.extract_keras_bert_feature import KerasBertVecto...
928.344086
16,060
0.82553
0
0
0
0
0
0
0
0
84,297
0.972733
10f257bee6c8b9c72b45debde35fc8220e1d7d09
2,663
py
Python
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-29T03:48:42.000Z
2019-01-29T07:51:31.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-09T16:03:17.000Z
2019-02-13T13:58:28.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import cntk as C import numpy as np import onnx import os model_file = 'model.onnx' data_dir = 'test_data_set_0' def SaveTensorProto(file_path, variable, data): tp = onnx.TensorProto() tp.name = variable.uid for...
32.876543
132
0.676305
0
0
0
0
0
0
0
0
292
0.109651
10f262341aa17bc9e6c9627fbde97ada1f6bde4c
1,528
py
Python
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
2
2016-10-12T16:11:04.000Z
2017-08-25T18:29:44.000Z
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
null
null
null
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
null
null
null
import os from setuptools import setup,find_packages project_name = "SuperDiffer" __version__ = "1.0.0" __author__ = "Gabriel Oliveira" __author_email__ = "gabriel.pa.oliveira@gmail.com" __author_username__ = "gpaOliveira" __description__ = "REST Service to calculate the difference between two input string...
34.727273
88
0.659031
0
0
0
0
0
0
0
0
724
0.473822
10f323886fcda17f4ca99970441ea89c67714915
1,134
py
Python
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
4
2016-01-05T12:21:39.000Z
2016-12-22T15:56:37.000Z
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
132
2015-06-10T09:53:14.000Z
2022-02-01T17:35:54.000Z
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
3
2015-07-07T14:40:33.000Z
2021-04-11T06:20:14.000Z
from django.conf.urls import url from django.views.generic import RedirectView from .views import ( NewCreditsView, ProcessingCreditsView, ProcessedCreditsListView, ProcessedCreditsDetailView, SearchView, CashbookFAQView, CashbookGetHelpView, CashbookGetHelpSuccessView, ) urlpatterns = [ url(r...
42
113
0.722222
0
0
0
0
0
0
0
0
351
0.309524
10f4e1c3903fa8067c8e89fb4ec897f34d53d80b
3,871
py
Python
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: from bs4 import BeautifulSoup import csv # In[ ]: import requests import pandas as pd from time import sleep # In[ ]: brand = ' ' # header =['BRANDS', 'PRODUCT TITLE', 'PRODUCT GROUP', 'PRODUCT CODE', # 'PRICE', 'PRODUCT IMAGE','PRODUCT', 'DESCRIPTION'] # with open('product...
32.529412
702
0.572204
0
0
0
0
0
0
0
0
1,680
0.433996
10f504e4b3eeb9d6415e959e475aa8d56aa55d8f
661
py
Python
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
import re w = 'AbcDefgHijkL' ws= ' .nalf!!213knlsc' wd =' ca++ and mbbs ' loc ='mumbai dombivli' r = re.findall('([A-Z])', w) print(r) r = re.findall('([A-Z][a-z]+)', w) print(r) r = re.findall('([a-z,A-Z,+]+)',wd) print(r) print(' '.join(r)) loc.find('mumcai') join_locations = { 'ncr': ['delhi', 'fari...
16.948718
61
0.568835
0
0
0
0
0
0
0
0
259
0.391831
10f5a8ade59179bf2b0330345df9e5d84f2210ed
2,724
py
Python
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
11
2018-04-28T14:09:18.000Z
2022-03-04T19:10:00.000Z
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
6
2020-04-06T23:59:52.000Z
2021-02-03T01:49:14.000Z
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
2
2021-02-11T12:27:24.000Z
2021-05-11T16:46:13.000Z
""" Finite-difference solver for wave equation: u_yy = u_xx. Initial and boundary conditions: u(x, 0) = init(x), 0 <= x <= xf, u_y(x, 0) = d_init(x), 0 <= x <= xf, u(0, y) = bound_x0(y), 0 <= y <= yf, u(xf, y) = bound_xf(y), 0 <= y <= yf. """ import numpy as np from scipy import linalg ...
24.763636
89
0.506975
0
0
0
0
912
0.328886
0
0
1,258
0.45366
10f666661e1b73d5f929f70df77e0f7256e277cd
8,822
py
Python
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
2
2019-12-02T21:26:01.000Z
2022-03-12T18:35:24.000Z
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
28
2019-10-20T10:56:03.000Z
2019-10-27T13:16:45.000Z
irbt/cloud.py
tidalf/irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
null
null
null
""" Cloud class for authentication and connexion setup. It allow interactions with the irbt cloud api """ import json from urllib.parse import urlparse from aws_requests_auth.aws_auth import AWSRequestsAuth import requests from .logger import logging logger = logging.getLogger(__name__) class Cloud: """ ...
34.596078
84
0.540807
8,526
0.966448
0
0
0
0
0
0
3,076
0.348674
10f7d07ce41f42aef80a7a8089cabc1552820753
403
py
Python
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
valcasa = float(input('Qual o valor da casa? R$')) sal = float(input('Qual o valor do seu salário? R$ ')) anos = int(input('Em quantos anos você vai pagar?')) meses = anos * 12 valprest = valcasa / meses if valprest >= sal * 0.3: print('Seu empréstimo foi aprovado e o valor da prestação é de R${:.2f}'.format(valpre...
40.3
94
0.682382
0
0
0
0
0
0
0
0
227
0.552311
10f9f94a2cb6881a8dc2262a9b2572388d4dc96b
3,524
py
Python
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
"""Unit tests for reviewboard.reviews.views.PreviewReviewRequestEmailView.""" from __future__ import unicode_literals from django.contrib.auth.models import User from reviewboard.site.urlresolvers import local_site_reverse from reviewboard.testing import TestCase class PreviewReviewRequestEmailViewTests(TestCase):...
38.725275
79
0.577753
3,254
0.923383
0
0
0
0
0
0
808
0.229285
10fadf307cc6cb6a41c77070b0b754a502353b7a
10,067
py
Python
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import typing import re import os.path import enum import json import urllib import argparse import asyncio import lxml.html import requests import lxml.etree import aiohttp.client HOME = os.path.expanduser("~") USERNAME = "adwin_" # type: str CONTEST_DIR = os.path.join(HOME, "algo_competition...
42.121339
155
0.645674
8,223
0.816827
1,780
0.176815
6,246
0.620443
0
0
2,097
0.208304
10fc2e94412f589e0e53ed118f1b0edfd3dbc613
930
py
Python
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2020-12-19T18:48:42.000Z
2020-12-19T18:48:42.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
430
2019-07-03T21:09:12.000Z
2021-11-09T08:09:41.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2019-12-20T16:59:18.000Z
2019-12-20T16:59:18.000Z
"""URL Configuration.""" from django.conf import settings from django.contrib import admin from django.urls import include, path from django.views.decorators.csrf import csrf_exempt import debug_toolbar from csp.decorators import csp_exempt from graphene_django.views import GraphQLView from rough_trade_calendar impo...
32.068966
85
0.737634
0
0
0
0
0
0
0
0
188
0.202151
10fc8f53a38886959ced18253a539de49e8b8476
10,010
py
Python
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
6
2015-01-26T16:14:43.000Z
2019-08-22T01:29:24.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
3
2015-01-06T13:31:28.000Z
2016-10-11T16:52:09.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
null
null
null
#line to run: #java -classpath D:\bin\jython-2.1\jython.jar;D:\bin\eclipse331_1\plugins\org.junit_3.8.2.v200706111738\junit.jar;D:\bin\eclipse331_1\plugins\org.apache.ant_1.7.0.v200706080842\lib\ant.jar org.python.util.jython w:\org.python.pydev\pysrc\tests\test_jysimpleTipper.py import unittest import os import sys #...
38.79845
266
0.599101
7,692
0.768432
0
0
0
0
0
0
2,952
0.294905
10fc95e15d3a50c2d7236f7e5808fcfc6aa2b291
878
py
Python
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
3
2021-07-07T14:40:09.000Z
2021-09-30T07:07:55.000Z
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
null
null
null
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
2
2021-07-24T14:52:32.000Z
2021-11-15T10:12:06.000Z
from threading import Thread from time import time def factorize(number): for i in range(1, number + 1): if number % i == 0: yield i class FactorizeThread(Thread): def __init__(self, number): super().__init__() self.number = number def run(self): self.factors...
23.72973
67
0.665148
191
0.21754
105
0.11959
0
0
0
0
159
0.181093
10fd71f61fee7303569e1de176660e413458e1b6
8,774
py
Python
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 # Collection of functions to create data for testing import numpy as np from datetime import datetime import itertools from skimage.transform import rotate import nibabel as nib from spinalcordtoolbox.image import Image from spinalcordtoolbox.resampling import resample_nib DEBUG = False # Save ...
46.178947
120
0.646114
0
0
0
0
0
0
0
0
4,089
0.466036
10ff3de40776e6430bc11e0702e1663303a5590b
7,829
py
Python
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
86
2017-07-04T17:03:33.000Z
2022-03-06T01:00:56.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
17
2017-07-19T11:09:20.000Z
2021-03-17T16:48:06.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
18
2017-07-28T00:50:05.000Z
2021-09-24T06:09:27.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer\main.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainW...
55.133803
97
0.711968
7,584
0.968706
0
0
0
0
0
0
965
0.12326
10ff6f610857fa4da1c2272a7ab5705a925dfc69
98
py
Python
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CoreBackendConfig(AppConfig): name = 'core_backend'
16.333333
35
0.77551
61
0.622449
0
0
0
0
0
0
14
0.142857
800076f2bca31ec7949923ed290ca06ed9e6401a
13,035
py
Python
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
21
2020-07-03T13:14:15.000Z
2020-07-14T14:27:43.000Z
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
# Copyright 2009-2012 James P Goodwin ped tiny python editor """ module that contains the symbolic names of the keys """ import curses KEYTAB_NOKEY=chr(0) KEYTAB_ALTA=chr(27)+'a' KEYTAB_ALTB=chr(27)+'b' KEYTAB_ALTC=chr(27)+'c' KEYTAB_ALTD=chr(27)+'d' KEYTAB_ALTE=chr(27)+'e' KEYTAB_ALTF=chr(27)+'f' KEYTAB_ALTG=chr(27)+...
27.043568
60
0.715919
0
0
0
0
0
0
0
0
2,886
0.221404
8001f091db832c8853cc1001b477b8ee30ecdde0
19,438
py
Python
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
122
2021-12-10T06:19:03.000Z
2022-03-27T12:30:42.000Z
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
1
2021-12-24T10:07:41.000Z
2021-12-24T10:07:41.000Z
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
12
2021-12-10T10:38:19.000Z
2022-02-08T12:54:46.000Z
from copy import deepcopy import torch import torch.nn.functional as F from mmgen.models.builder import MODELS, build_module from mmgen.models.common import set_requires_grad from mmgen.models.gans.static_unconditional_gan import StaticUnconditionalGAN from torch.nn.parallel.distributed import _find_tensors from .los...
41.712446
85
0.554635
18,444
0.948863
0
0
18,470
0.950201
0
0
4,437
0.228264
80021b4bd92a24d71fffed003a89ba58002247b3
1,766
py
Python
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
2
2021-11-19T00:06:54.000Z
2021-12-26T02:03:47.000Z
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
null
null
null
import xml.etree.ElementTree as ET import pytest from localstack.utils.aws.aws_responses import to_xml result_raw = { "DescribeChangeSetResult": { # ... "Changes": [ { "ResourceChange": { "Replacement": False, "Scope": ["Tags"], ...
26.358209
154
0.610985
25
0.014156
0
0
1,073
0.607588
0
0
423
0.239524
80033e1784f2fa309970f5133dc3cfd33c45fae1
991
py
Python
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
null
null
null
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
22
2020-06-05T19:56:44.000Z
2022-03-11T23:41:45.000Z
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
null
null
null
import graphene from graphene_django.types import DjangoObjectType from graphql_jwt.decorators import login_required from django.contrib.auth import get_user_model class UserType(DjangoObjectType): """ UserType object for GraphQL """ class Meta: model = get_user_model() has_unreaded_messages = g...
27.527778
81
0.694248
820
0.827447
0
0
80
0.080727
0
0
106
0.106963
800640b204af733d917dcb2f2cc81ab285988b93
5,393
py
Python
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
#!/usr/bin/env python import yaml import argparse import rospy import rospkg import math from joy_handle import JoyHandle, ButtonState from sensor_msgs.msg import Joy from ual_core.srv import TakeOff, Land, SetVelocity from ual_core.msg import State from geometry_msgs.msg import TwistStamped from geometry_msgs.msg impo...
49.027273
142
0.672168
4,134
0.766549
0
0
0
0
0
0
818
0.151678
800826e08a1cf06e466211edc2d614832eb36a58
4,910
py
Python
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
""" Defines general coordinate system related functions including: - xyz_to_rtz_array(xyz) - xyz_to_rtp_array(xyz) - rtz_to_xyz_array(xyz) - rtp_to_xyz_array(xyz) - rtz_to_rtp_array(xyz) - rtp_to_rtz_array(xyz) - coords = cylindrical_rotation_matrix(thetar, dtype='float64') """ # pylint: disable=C0103 from __...
25.706806
74
0.538289
0
0
0
0
0
0
0
0
2,318
0.472098
80083609ce2db45581369120327cc17264cf2da4
2,414
py
Python
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
import locale from iso639 import languages from iso3166 import countries DEFAULT_LANGUAGE_CODE = "en_US" class Localization(object): def __init__(self, language_code=None): self._language_code = None self.country = None self.language = None self.explicit = bool(language_code) ...
33.527778
102
0.60232
2,305
0.954847
0
0
1,574
0.65203
0
0
238
0.098592
800911a43c7133868a3683a5d66978dc4ccb6173
783
py
Python
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
import os env = lambda var : os.environ[var] try: GREWW_PATH = env('GREWW_PATH') GREWW_CACHE = env('GREWW_CACHE') GREWW_CONFIG = env('GREWW_CONFIG') except: # no scop tests def _dispatch_path(fdir): fn, fd = '', '' bo = False for e in fdir[::-1]: if bo: ...
23.029412
41
0.52235
0
0
0
0
0
0
0
0
121
0.154534
8009ef4ae49f5108f510678da5c940c0974957ce
1,464
py
Python
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
#!//anaconda/envs/py36/bin/python # # File name: mklatt.py # Date: 2018/08/02 16:15 # Author: Lukas Vlcek # # Description: # import sys import re def make_sc(box): print('sc', *box) return def make_bcc(box): print('bcc', *box) return def make_fcc(box): lx, ly, lz = box latt ...
20.619718
65
0.536202
0
0
0
0
0
0
0
0
497
0.339481
8009f9c9faa56881d77c010013d2d6763c2f0d9f
10,083
py
Python
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ Run experiments. :author: Vincent Vercruyssen (2019) :license: Apache License, Version 2.0, see LICENSE for details. """ import sys, os, time, argparse import numpy as np import pandas as pd from sklearn.metrics import roc_auc_score # transfer models from models.locit import apply_LocIT...
43.83913
167
0.562829
0
0
0
0
0
0
0
0
5,693
0.564614
800b886faa1ae8ac7c6f91868cae769b7429e1cc
3,416
py
Python
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
null
null
null
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
null
null
null
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
1
2021-07-01T20:45:05.000Z
2021-07-01T20:45:05.000Z
import pytest def pytest_addoption(parser): group = parser.getgroup("general") group.addoption( "--freeze_reqs", action="store_true", help="run check if requirements (req*.txt|pip) are frozen", ) parser.addini( "freeze-reqs-ignore-paths", type="linelist", ...
31.33945
85
0.596897
1,865
0.54596
200
0.058548
0
0
0
0
865
0.25322
800bcb34a09cb433be662372e06e48fe14cfe496
17,760
py
Python
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
# -- coding:utf-8-- import json import paramiko import re import os from urllib import request #--------------------------------------------------------------------------------------- def start_v2(): gzlj = os.getcwd() key_json_lj = os.path.join(gzlj, "pythonz5", "sun36x64", "v2ray", "config.json") request.urlret...
20.11325
88
0.523536
0
0
0
0
0
0
0
0
8,331
0.421737
800d2e58139d60299371e076a22f726713168331
452
py
Python
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
pessoa_maior = 0 pessoa_menor = 0 for i in range(1, 8): ano_pessoa = int(input(f'Em que ano a {i}ª pessoa nasceu? ')) if ano_pessoa <= 1900 or ano_pessoa >= 2021: print('Your not alive bitch!') break elif ano_pessoa <= 2002: pessoa_maior += 1 else: pessoa_menor += 1 print...
32.285714
68
0.646018
0
0
0
0
0
0
0
0
182
0.400881
8010a7e60e4c67f9ff387b9c7eef7cdff821f6f3
7,427
py
Python
Video-Person-ReID/Graph_ModelDataGen.py
anurag3/2019-CVPR-AIC-Track-2-UWIPL
61ee2c96611e10fe51a52033b1cd0e2804d544ca
[ "MIT" ]
20
2019-06-05T08:43:26.000Z
2021-12-07T08:48:18.000Z
Video-Person-ReID/Graph_ModelDataGen.py
yizhou-wang/2019-CVPR-AIC-Track-2-UWIPL-ETRI
387924b1e33e0594977cd095c26a147e4a7f8192
[ "MIT" ]
8
2019-10-05T11:17:11.000Z
2020-04-04T00:40:20.000Z
Video-Person-ReID/Graph_ModelDataGen.py
yizhou-wang/2019-CVPR-AIC-Track-2-UWIPL-ETRI
387924b1e33e0594977cd095c26a147e4a7f8192
[ "MIT" ]
14
2019-06-16T23:09:15.000Z
2021-09-13T08:36:50.000Z
from __future__ import print_function, absolute_import import os import sys import time import datetime import argparse import os.path as osp import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader from torch.autograd import Variable from torch...
34.225806
136
0.610475
0
0
0
0
0
0
0
0
692
0.093174
8010d7a2405a42f8001165cec41e8db24b3d32c2
6,024
py
Python
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import matplotlib.pyplot as plt from torch.autograd import Function def disparity_regression(x): disp = torch.arange(0, x.size(1)).unsqueeze(0) disp = disp.repeat(x.size(0), 1) return torch.sum(x*disp, dim=1).uns...
30.57868
92
0.586487
3,724
0.618194
0
0
246
0.040837
0
0
855
0.141932
8011547341d55f4226d084d9c454ab332252453a
542
py
Python
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
#to generate a random name import tkinter as tk import random def namegen(): f=open("names.txt",'r') r2=random.randrange(0,4945) countline=0;name='' for line in f: if(countline==r2): name=line break countline+=1 f.close() message=tk.Message(r,text=name,bg=...
23.565217
78
0.621771
0
0
0
0
0
0
0
0
120
0.221402
801221814dd3561ad89dbc84e1db20b23ada021c
2,467
py
Python
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
# coding: utf-8 from transitions.extensions import GraphMachine class Model(object): pass states = [ 'Waiting inputs', 'Waiting inputs in <num>', 'Rejected', 'Rejected while matching with subset', 'Accepted', 'Accepted in <num>', 'Accepted in <any>' ] transitions = [ # Waiting ...
19.579365
68
0.483989
29
0.011746
0
0
0
0
0
0
1,008
0.408262
801226395bcb40cc823fe4dd61aaa8246c7fea5e
1,163
py
Python
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0051.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
def wrapper(func): def _inner(a): results = [] results.append(func(a)) v = results[0].next() idx = 0 while True: if not isinstance(v, Result): results.append(func(v)) idx = len(results) - 1 v = results[idx].next() ...
21.537037
49
0.450559
0
0
560
0.481513
605
0.520206
0
0
0
0
80122c1ac4058449323ee4626cfbb15560375a32
666
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
176
2019-07-03T00:20:15.000Z
2022-03-14T07:51:22.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
121
2019-06-24T20:47:27.000Z
2022-03-28T02:16:18.000Z
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_projects/tests/factories.py
kaka-lin/azure-intelligent-edge-patterns
766833c7c25d2458cec697937be288202d1763bc
[ "MIT" ]
144
2019-06-18T18:48:43.000Z
2022-03-31T12:14:46.000Z
"""App model factories. """ from factory import DjangoModelFactory, Faker, SubFactory from ...azure_projects.models import Project from ...azure_settings.tests.factories import SettingFactory class ProjectFactory(DjangoModelFactory): """ProjectFactory.""" setting = SubFactory(SettingFactory) name = Fa...
20.8125
60
0.695195
465
0.698198
0
0
0
0
0
0
105
0.157658
80124c2e7a29a44670216e7b4c369b44f3f2c5dc
2,190
py
Python
spark/ReqModPython.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqModPython.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqModPython.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
#import time from spark.ReqBase import ReqBase class ReqModPython(ReqBase): def __init__(self, req, reallympy=True): self.reallympy = reallympy self.mpyreq = req self.mpyreq.add_common_vars() self.mpyreq.content_type = "text/html" self.mpyreq.status = 200 self._have_status = 0 ReqBase.__init__(self) ...
25.764706
56
0.699087
2,141
0.977626
0
0
0
0
0
0
153
0.069863
8012892e7728aa0fca32fc55889737c34c9bce78
2,840
py
Python
display_restults.py
MickRemmerswaal/ASCAD
bdd54303922df5d0798ffb9fc4a9a5d13429e45e
[ "BSD-2-Clause" ]
null
null
null
display_restults.py
MickRemmerswaal/ASCAD
bdd54303922df5d0798ffb9fc4a9a5d13429e45e
[ "BSD-2-Clause" ]
null
null
null
display_restults.py
MickRemmerswaal/ASCAD
bdd54303922df5d0798ffb9fc4a9a5d13429e45e
[ "BSD-2-Clause" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np def load_data(data_loc): return np.genfromtxt(data_loc, delimiter=',') def calc_average(files, range): averages = [] for i in range: to_average_rows = np.asarray(files)[:, i] average = np.round(np.average(to_average_rows, axis=0)) ...
27.572816
104
0.685915
0
0
0
0
0
0
0
0
863
0.303873
8012ad5def5e3503fb5f33d5f1de10fd3533f6ca
2,171
py
Python
tests/test_cases/test_cocotb/test_testfactory.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
350
2015-01-09T12:50:13.000Z
2019-07-12T09:08:17.000Z
tests/test_cases/test_cocotb/test_testfactory.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
710
2015-01-05T16:42:29.000Z
2019-07-16T13:40:00.000Z
tests/test_cases/test_cocotb/test_testfactory.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
182
2015-01-08T09:35:20.000Z
2019-07-12T18:41:37.000Z
# Copyright cocotb contributors # Licensed under the Revised BSD License, see LICENSE for details. # SPDX-License-Identifier: BSD-3-Clause """ Tests of cocotb.regression.TestFactory functionality """ import random import string from collections.abc import Coroutine import cocotb from cocotb.regression import TestFacto...
25.845238
76
0.707969
365
0.168125
155
0.071396
581
0.267619
679
0.312759
385
0.177338
8012c5a341f13ec069b05a8dc76bfdac9b6781b3
5,617
py
Python
pkgs/servers/home-assistant/parse-requirements.py
hamhut1066/nixpkgs
a2736d27d16aecd1f2179e07db23bf1b6c0c4c46
[ "MIT" ]
2
2021-10-20T11:39:26.000Z
2021-11-08T09:49:56.000Z
pkgs/servers/home-assistant/parse-requirements.py
hamhut1066/nixpkgs
a2736d27d16aecd1f2179e07db23bf1b6c0c4c46
[ "MIT" ]
4
2021-09-28T05:38:41.000Z
2022-02-26T10:09:42.000Z
pkgs/servers/home-assistant/parse-requirements.py
hamhut1066/nixpkgs
a2736d27d16aecd1f2179e07db23bf1b6c0c4c46
[ "MIT" ]
1
2019-02-03T10:41:26.000Z
2019-02-03T10:41:26.000Z
#! /usr/bin/env nix-shell #! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ aiohttp astral async-timeout attrs certifi jinja2 pyjwt cryptography pip pytz pyyaml requests ruamel_yaml voluptuous python-slugify ])" # # This script downloads Home Assistant's source tarball. # Inside the homeassistant/compone...
42.55303
200
0.659605
0
0
0
0
0
0
0
0
2,405
0.428165
80135844df6de664ba97f408d31907df391e856c
9,778
py
Python
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/ai_anomaly_detection/models/per_signal_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
28.342029
245
0.602679
9,238
0.944774
0
0
9,268
0.947842
0
0
6,910
0.706688
80151715f16054e2414846460fbd9c81a2d95a58
1,180
py
Python
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
921
2017-03-09T01:01:24.000Z
2019-04-16T11:38:25.000Z
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
1,996
2017-03-03T22:07:50.000Z
2019-04-17T00:02:28.000Z
google/cloud/forseti/scanner/scanners/ke_version_scanner.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
241
2017-03-09T01:00:04.000Z
2019-04-15T18:53:35.000Z
# Copyright 2017 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
33.714286
74
0.784746
91
0.077119
0
0
0
0
0
0
766
0.649153
80159b75aa113a30275dad91c182d915e6dabf31
142
py
Python
boot.py
matejv/micropython-weatherstation
3c357fa14d83bb6a21388f953cc994601a6e8eda
[ "MIT" ]
7
2017-04-16T16:52:00.000Z
2019-07-26T14:53:19.000Z
boot.py
matejv/micropython-weatherstation
3c357fa14d83bb6a21388f953cc994601a6e8eda
[ "MIT" ]
1
2017-02-02T07:21:49.000Z
2017-02-02T07:21:49.000Z
boot.py
matejv/micropython-weatherstation
3c357fa14d83bb6a21388f953cc994601a6e8eda
[ "MIT" ]
null
null
null
# This file is executed on every boot (including wake-boot from deepsleep) #import esp #esp.osdebug(None) import gc gc.collect() gc.enable()
17.75
74
0.753521
0
0
0
0
0
0
0
0
103
0.725352
8016308abbe08e97f8cc91fc90577979b5691b44
25,336
py
Python
NewvueApp/forgerynewstrackervue/app.py
awallemo/Social-media-coverage-of-fake-news
d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9
[ "Unlicense" ]
1
2021-09-20T18:15:49.000Z
2021-09-20T18:15:49.000Z
NewvueApp/forgerynewstrackervue/app.py
jonelorentzen/Social-media-coverage-of-fake-news
d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9
[ "Unlicense" ]
null
null
null
NewvueApp/forgerynewstrackervue/app.py
jonelorentzen/Social-media-coverage-of-fake-news
d3312dda6cb555a5c8e7f7bb89076d8cbf2cc0b9
[ "Unlicense" ]
null
null
null
from flask import Flask, jsonify, redirect, request, url_for from flask_cors import CORS import config import requests import json import os import time from textblob import TextBlob import numpy as np import pandas as pd import re import matplotlib.pyplot as plt plt.style.use('fivethirtyeight') import praw import geoc...
35.684507
230
0.623934
0
0
0
0
3,913
0.154414
0
0
7,144
0.281915
8016a787d092f12d5ad3256d0e0eaded387f8caa
4,484
py
Python
test/test_criteria.py
enioluwa23/wordplay
4a423dcb96458c6100beb88ba2fa19ad9dc81c3a
[ "Apache-2.0" ]
3
2019-03-03T20:07:38.000Z
2020-07-01T12:05:15.000Z
test/test_criteria.py
enioluwa23/wordplay
4a423dcb96458c6100beb88ba2fa19ad9dc81c3a
[ "Apache-2.0" ]
null
null
null
test/test_criteria.py
enioluwa23/wordplay
4a423dcb96458c6100beb88ba2fa19ad9dc81c3a
[ "Apache-2.0" ]
1
2020-07-01T12:21:43.000Z
2020-07-01T12:21:43.000Z
from collections import Counter as Ct from wordplay.criteria import Criteria from wordplay.utils import ArgumentError, CriteriaError, Utils def setup_function(function): Utils.set_disallowed_chars(set()) def test_copy_constructor(): orig_words = Criteria() orig_words.begins_with('d').ends_with('n').cont...
27.012048
75
0.626673
0
0
0
0
0
0
0
0
403
0.089875
8016eea42aa1ca7b52a7c516e1a5d77146288a7c
8,313
py
Python
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
single_trace_parser.py
magnusmorton/trace-analysis
4645af99638edea16d00e811c922b0fb9d6b86d9
[ "Apache-2.0" ]
null
null
null
import re import sys import copy import operator import numpy as np import instructions import trace from scipy.optimize import nnls from scipy.linalg import solve from sets import Set from scipy.io import savemat import pdb high_cost = ['ARRAYLEN_GC_OP', 'STRLEN_OP', 'STRGETITEM_OP', 'GETFIELD_GC_PURE_OP...
32.857708
115
0.550583
2,198
0.264405
0
0
0
0
0
0
1,833
0.220498
80171e1550ef369d988a5b4162e40a61643ab261
4,266
py
Python
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
rllib/tf2_examples/rnn_model_predmaint.py
tmorgan4/ray
bc9f040aa002a5223cd86d647a13bd9135a892a8
[ "Apache-2.0" ]
null
null
null
from ray.rllib.models.tf.tf_modelv2 import TFModelV2 from ray.rllib.models.misc import normc_initializer from ray.rllib.models.lstm import add_time_dimension from ray.rllib.models import ModelCatalog import tensorflow as tf tf.disable_v2_behavior() import numpy as np # TODO: # ModelCatalog.register_custom_model("RNNmo...
44.905263
125
0.63549
3,789
0.888186
0
0
0
0
0
0
661
0.154946
801b0a820b6146857753c0497931ce3d9e514bf4
736
py
Python
docs/source/ipython_utils.py
pilillo/nilmtk
00bb1f948b6de1cc5c891102728c19b9bfc7c739
[ "Apache-2.0" ]
null
null
null
docs/source/ipython_utils.py
pilillo/nilmtk
00bb1f948b6de1cc5c891102728c19b9bfc7c739
[ "Apache-2.0" ]
null
null
null
docs/source/ipython_utils.py
pilillo/nilmtk
00bb1f948b6de1cc5c891102728c19b9bfc7c739
[ "Apache-2.0" ]
null
null
null
from IPython.core.display import HTML, display def dict_to_html(dictionary): html = '<ul>' for key, value in dictionary.iteritems(): html += '<li><strong>{}</strong>: '.format(key) if isinstance(value, list): html += '<ul>' for item in value: html += '<li...
28.307692
55
0.508152
0
0
0
0
0
0
0
0
77
0.10462
801ccd5892e08d8948c732c4efa90cc93606ed73
87
py
Python
scripts/consts.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
scripts/consts.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
scripts/consts.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
PADDING = 23 NOTE_THICKNESS = 3 RAND_SIZE = 20 REF_BPM = 1000 SCALE = REF_BPM / 104.15
14.5
24
0.724138
0
0
0
0
0
0
0
0
0
0
801da7efb1d2bb0574eb4acbe4498aa1097d511b
13,000
py
Python
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
4
2020-03-13T11:35:30.000Z
2020-04-21T03:01:34.000Z
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
4
2020-01-07T20:58:32.000Z
2020-04-01T22:02:31.000Z
test/sim_utils.py
cornell-brg/pymtl3-mem
458cbc0c667cf8645aad0e33489458eb696f6928
[ "BSD-3-Clause" ]
2
2020-09-08T19:34:52.000Z
2021-06-18T14:58:47.000Z
""" ========================================================================= sim_util.py ========================================================================= Utilty functions for running a testing simulation Author : Xiaoyu Yan (xy97), Eric Tang (et396) Date : 21 Decemeber 2019 """ import struct import random...
39.039039
105
0.639231
5,436
0.418154
0
0
0
0
0
0
3,022
0.232462
801e4c52ee9f6593298d55ab16552e0b03194f13
997
py
Python
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
24
2015-05-27T22:57:17.000Z
2022-02-11T20:27:40.000Z
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
null
null
null
chord2vec/neural_net_utilities.py
czhuang/ChordRipple
1d7f1f05cc895983101865665d5df18aeff99d7f
[ "MIT" ]
2
2015-11-21T19:46:20.000Z
2021-07-02T13:09:07.000Z
import autograd.numpy as np class WeightsParser(object): """A helper class to index into a parameter vector.""" def __init__(self): self.idxs_and_shapes = {} self.N = 0 def add_weights(self, name, shape): start = self.N self.N += np.prod(shape) self.idxs_and_shape...
27.694444
78
0.616851
454
0.455366
0
0
0
0
0
0
220
0.220662
8022376ceb5dadaed4355ea2f02dde44ca9fff40
253
py
Python
streamprocessor/client/stdio.py
rtl-nl/streamprocessor
c2754aea486aef80758d9caa6851a511a0c41925
[ "MIT" ]
1
2019-02-15T14:30:45.000Z
2019-02-15T14:30:45.000Z
streamprocessor/client/stdio.py
textpipe/streamprocessor
c2754aea486aef80758d9caa6851a511a0c41925
[ "MIT" ]
null
null
null
streamprocessor/client/stdio.py
textpipe/streamprocessor
c2754aea486aef80758d9caa6851a511a0c41925
[ "MIT" ]
null
null
null
import sys from streamprocessor.client.base import Consumer, Producer class StandardIOConsumer(Consumer): def consume(self): yield from sys.stdin class StandardIOProducer(Producer): def produce(self, message): print(message)
19.461538
58
0.735178
177
0.699605
47
0.185771
0
0
0
0
0
0
80223a50e4ed12592f7caf55b094af49cf85c2c3
996
py
Python
experiments/gethpduplex.py
timnbraun/hpduplexfix
1110641c23cd469c5fa1a88eebad375fbc83f4b9
[ "Apache-2.0" ]
null
null
null
experiments/gethpduplex.py
timnbraun/hpduplexfix
1110641c23cd469c5fa1a88eebad375fbc83f4b9
[ "Apache-2.0" ]
null
null
null
experiments/gethpduplex.py
timnbraun/hpduplexfix
1110641c23cd469c5fa1a88eebad375fbc83f4b9
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python from winreg import QueryValueEx, OpenKey, CloseKey, HKEY_LOCAL_MACHINE DEBUG = False def decode_key_val(keyword_bytes): keyword_list = keyword_bytes.split(b'\0') DEBUG and print(keyword_list) duplex_key = str( keyword_list[0], encoding='utf8' ) duplex_val = str( keyword_list[1], enco...
34.344828
179
0.769076
0
0
0
0
0
0
0
0
315
0.316265
80225b992a73e8ebabee59d36fcf5edf65e69f25
4,685
py
Python
Word.py
eiaiestyi/project_15c
653bf50d07fd512befbb3d8818864252a7f8caf1
[ "MIT" ]
null
null
null
Word.py
eiaiestyi/project_15c
653bf50d07fd512befbb3d8818864252a7f8caf1
[ "MIT" ]
null
null
null
Word.py
eiaiestyi/project_15c
653bf50d07fd512befbb3d8818864252a7f8caf1
[ "MIT" ]
null
null
null
import random from airtable import Airtable import config class Word: def __init__(self, user): self.user_name = user # Take scores print('Collecting scores...') self.scores_table = Airtable(config.base_key, 'scores', config.api_key) scores = self.scores_tabl...
42.981651
114
0.560512
4,614
0.984845
0
0
0
0
0
0
1,425
0.304162
8022ba17844080c9b1e27e6e7df31151af4a61d8
595
py
Python
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
1
2017-04-26T10:26:01.000Z
2017-04-26T10:26:01.000Z
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
25
2017-04-26T20:08:55.000Z
2021-06-07T19:14:43.000Z
gcb_web_auth/migrations/0006_auto_20181128_1456.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-11-28 14:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gcb_web_auth', '0005_auto_20181128_1453'), ] operations = [ migrations.Alte...
28.333333
164
0.672269
437
0.734454
0
0
0
0
0
0
253
0.42521
8025bdd4ec643cfd443001ce73dc281d84760e7c
1,763
py
Python
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
null
null
null
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
1
2021-03-22T19:07:43.000Z
2021-03-22T19:07:43.000Z
accounts/views.py
DipeshYogi/MyTodoList_backend
0b4103e791857b7e95981bd8c3d580b28b80e9eb
[ "MIT" ]
null
null
null
from django.shortcuts import render from .serializers import RegisterSerializer, LoginSerializer, UserSerializer from rest_framework.generics import GenericAPIView from rest_framework import status, permissions from rest_framework.response import Response from knox.models import AuthToken from django.contrib.auth impor...
38.326087
89
0.739081
1,413
0.801475
0
0
0
0
0
0
13
0.007374
8026ac69d84de1cb16032bb05a12822b2e9ca512
2,805
py
Python
app.py
lucashenning/ntag424-backend
bfa442969d82357b9e9fc482dfe1a32f0827709a
[ "MIT" ]
null
null
null
app.py
lucashenning/ntag424-backend
bfa442969d82357b9e9fc482dfe1a32f0827709a
[ "MIT" ]
null
null
null
app.py
lucashenning/ntag424-backend
bfa442969d82357b9e9fc482dfe1a32f0827709a
[ "MIT" ]
null
null
null
import argparse import binascii from flask import Flask, request, render_template, jsonify from werkzeug.exceptions import BadRequest from config import SDMMAC_PARAM, ENC_FILE_DATA_PARAM, ENC_PICC_DATA_PARAM, SDM_FILE_READ_KEY, SDM_META_READ_KEY from ntag424 import decrypt_sun_message, InvalidMessage app = Flask(__n...
32.616279
111
0.622816
0
0
0
0
2,086
0.743672
0
0
392
0.13975
80281dee97ef60a06b20d70a1384bfacbdd889f5
726
py
Python
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
insights_integration/migrations/0004_playbookrunlog.py
benthomasson/insights_ansible_runner_poc
1392521f115ec36e626e1daf5187a1d57bfd50b3
[ "Apache-1.1" ]
null
null
null
# Generated by Django 2.0.8 on 2018-11-14 13:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('insights_integration', '0003_host_host_vars'), ] operations = [ migrations.CreateModel( name='P...
30.25
136
0.61708
600
0.826446
0
0
0
0
0
0
189
0.260331
8028634eb6554764b5c142e919eafc3038eb0bb0
1,223
py
Python
btb_manager_telegram/error.py
SunBooster/BTB-manager-telegram
5b01652edba35a2aa6b01956edc902a842b3c01f
[ "MIT" ]
null
null
null
btb_manager_telegram/error.py
SunBooster/BTB-manager-telegram
5b01652edba35a2aa6b01956edc902a842b3c01f
[ "MIT" ]
null
null
null
btb_manager_telegram/error.py
SunBooster/BTB-manager-telegram
5b01652edba35a2aa6b01956edc902a842b3c01f
[ "MIT" ]
null
null
null
class btbmtException(Exception): def __init__(self, message=None): self.message = message def __str__(self): if self.message is None: return "" else: return self.message class BTBConfigNotFound(btbmtException): def __init__(self, path=None): message...
27.177778
106
0.625511
1,207
0.986917
0
0
0
0
0
0
304
0.248569
8029ba05d1267e539bc300c17161b1a4be505f74
6,025
py
Python
bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
1
2021-05-07T11:10:27.000Z
2021-05-07T11:10:27.000Z
bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
bmcs_beam/mxn/matresdev/simiter/sim_pstudy/tutorial.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # # Copyright (c) 2009, IMB, RWTH Aachen. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in simvisage/LICENSE.txt and may be redistributed only # under the conditions des...
39.638158
87
0.642324
0
0
0
0
0
0
0
0
4,687
0.777925
802a91a4886d822f94d7ffe84abf1dae5e5b1d5c
6,409
py
Python
poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
Eyerunmyden/HWMgmt-MegaRAC-OpenEdition
72b03e9fc6e2a13184f1c57b8045b616db9b0a6d
[ "Apache-2.0", "MIT" ]
14
2021-11-04T07:47:37.000Z
2022-03-21T10:10:30.000Z
poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
Eyerunmyden/HWMgmt-MegaRAC-OpenEdition
72b03e9fc6e2a13184f1c57b8045b616db9b0a6d
[ "Apache-2.0", "MIT" ]
null
null
null
poky/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py
Eyerunmyden/HWMgmt-MegaRAC-OpenEdition
72b03e9fc6e2a13184f1c57b8045b616db9b0a6d
[ "Apache-2.0", "MIT" ]
6
2021-11-02T10:56:19.000Z
2022-03-06T11:58:20.000Z
# # SPDX-License-Identifier: MIT # import os from oeqa.selftest.case import OESelftestTestCase import tempfile import operator from oeqa.utils.commands import get_bb_var class TestBlobParsing(OESelftestTestCase): def setUp(self): import time self.repo_path = tempfile.mkdtemp(prefix='selftest-buil...
43.89726
151
0.626775
6,233
0.972539
0
0
0
0
0
0
2,623
0.409268
802b48e84d76a8785f59939db8669bb4e6dff6ad
86,974
py
Python
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
avinetworks/servicemesh
4b4864e1327f09fa0bc047770af7e477a32f9d94
[ "Apache-2.0" ]
4
2017-06-16T18:51:52.000Z
2020-02-11T15:22:42.000Z
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
sudswasavi/servicemesh
4f07c228e9b62c9b621cb0bfc464c75e85351f7f
[ "Apache-2.0" ]
17
2019-01-11T05:57:35.000Z
2019-08-29T05:33:38.000Z
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
sudswasavi/servicemesh
4f07c228e9b62c9b621cb0bfc464c75e85351f7f
[ "Apache-2.0" ]
8
2017-06-26T18:15:58.000Z
2021-04-12T08:09:03.000Z
import copy import logging import os import yaml import avi.migrationtools.f5_converter.converter_constants as final from avi.migrationtools.f5_converter.conversion_util import F5Util from avi.migrationtools.avi_migration_utils import update_count LOG = logging.getLogger(__name__) ssl_count = {'count': 0} # Creating f...
49.699429
80
0.563042
86,598
0.995677
0
0
881
0.010129
0
0
20,611
0.236979
802c2808abfe71ea1b67247ca6afede8b7346d0f
13,059
py
Python
fio_plot/fiolib/supporting.py
bhelm/fio-plot
60dc206a5486c7e43647d90ea36f4474b4601431
[ "BSD-3-Clause" ]
148
2017-04-05T22:15:39.000Z
2022-03-31T14:39:30.000Z
fio_plot/fiolib/supporting.py
bhelm/fio-plot
60dc206a5486c7e43647d90ea36f4474b4601431
[ "BSD-3-Clause" ]
66
2017-05-08T22:21:45.000Z
2022-02-26T22:53:58.000Z
fio_plot/fiolib/supporting.py
bhelm/fio-plot
60dc206a5486c7e43647d90ea36f4474b4601431
[ "BSD-3-Clause" ]
61
2017-11-09T21:52:24.000Z
2022-03-31T14:38:37.000Z
#!/usr/local/bin env import pprint as pprint import statistics import numpy as np from datetime import datetime from PIL.PngImagePlugin import PngImageFile, PngInfo import random import string def running_mean(l, N): """From a list of values (N), calculate the running mean with a window of (l) items. How larg...
30.583138
116
0.553335
202
0.015468
0
0
0
0
0
0
3,249
0.248794
802d45597dd184c0c91348e98b8980088407bfb9
25,692
py
Python
tests/notifications/test_activity_alerts.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
tests/notifications/test_activity_alerts.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
tests/notifications/test_activity_alerts.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
# Copyright (c) 2010-2011 Lazy 8 Studios, LLC. # All rights reserved. import re from front import Constants, target_image_types, activity_alert_types from front.lib import gametime, urls, db, utils from front.models import species from front.backend import notifications from front.tests import base from front.tests.b...
58.657534
119
0.706095
25,311
0.98517
0
0
0
0
0
0
9,360
0.364316
802e8ca49204a9bf9d439b114d4f3315d453e00f
1,777
py
Python
nemo/collections/common/losses/mse_loss.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
4,145
2019-09-13T08:29:43.000Z
2022-03-31T18:31:44.000Z
nemo/collections/common/losses/mse_loss.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
2,031
2019-09-17T16:51:39.000Z
2022-03-31T23:52:41.000Z
nemo/collections/common/losses/mse_loss.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
1,041
2019-09-13T10:08:21.000Z
2022-03-30T06:37:38.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
30.637931
89
0.655037
957
0.538548
0
0
668
0.375914
0
0
979
0.550929
802f3955e4f983aab0465d9c45a9474fcbaaf0ea
8,954
py
Python
malib/algorithm/common/misc.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
5
2021-11-17T03:11:13.000Z
2021-12-23T09:04:21.000Z
malib/algorithm/common/misc.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
null
null
null
malib/algorithm/common/misc.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn.functional as F from torch.autograd import Variable from malib.utils.typing import Dict, Any, List, Union, DataTransferType from malib.backend.datapool.offline_dataset_server import Episode def soft_update(target, source, tau): """Perform DDPG soft update (move ta...
33.286245
118
0.644405
2,390
0.26692
0
0
1,509
0.168528
0
0
3,082
0.344204
802f90308891c39086116b74bd256d4b9568a575
7,746
py
Python
nuage_tempest_plugin/services/vpnaas/vpnaas_client.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
1
2021-01-03T01:47:51.000Z
2021-01-03T01:47:51.000Z
nuage_tempest_plugin/services/vpnaas/vpnaas_client.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
null
null
null
nuage_tempest_plugin/services/vpnaas/vpnaas_client.py
nuagenetworks/nuage-tempest-plugin
ac1bfb0709c7bbaf04017af3050fb3ed1ad1324a
[ "Apache-1.1" ]
1
2020-10-16T12:04:39.000Z
2020-10-16T12:04:39.000Z
import abc import json import six try: from urllib.parse import urlencode # py35 except ImportError: from urllib import urlencode # py27 from tempest.lib.common import rest_client from tempest.lib import exceptions as lib_exc from nuage_tempest_plugin.lib.topology import Topology CONF = Topology.get_conf()...
35.209091
79
0.63323
7,378
0.952492
0
0
3,499
0.451717
0
0
438
0.056545
803202984fca2cb4249027461cb40adaa874e2de
1,402
py
Python
plugins/default.py
FredG71/ircbot
148131b2156116ceb071d785ade4a9ca6e0f9ff8
[ "MIT" ]
null
null
null
plugins/default.py
FredG71/ircbot
148131b2156116ceb071d785ade4a9ca6e0f9ff8
[ "MIT" ]
null
null
null
plugins/default.py
FredG71/ircbot
148131b2156116ceb071d785ade4a9ca6e0f9ff8
[ "MIT" ]
null
null
null
import random import re import ircbot.plugin class DefaultPlugin(ircbot.plugin.Plugin): def __init__(self, bot, channel): super().__init__(bot, channel) self.insults = ( (re.compile(r'.*fuck(\s+you)\s*,?\s*'+self.bot.nick+'.*', re.IGNORECASE), 'fuck you too {nick}'), (re.compile(r'.*'+self.bot.nick+'[...
25.035714
94
0.649786
1,383
0.965782
0
0
931
0.65014
0
0
369
0.257682
80320bae1d99f90d4823b9ae7806c404113080c3
1,598
py
Python
python/load_generator/load_generator.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
python/load_generator/load_generator.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
python/load_generator/load_generator.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
import pyodbc import os from multiprocessing import Process def get_file_content(full_path): """Get file content function from read_sql_files_to_db.py""" print(full_path) bytes = min(32, os.path.getsize(full_path)) raw = open(full_path, 'rb').read(bytes) if '\\xff\\xfe' in str(raw): print("...
32.612245
125
0.609512
0
0
0
0
0
0
0
0
699
0.437422
80325695defe4f63bf8d054e65c1c88b1385a507
6,005
py
Python
examples/plot_powerlaw_fgl.py
bio-datascience/GGLasso
ace4758f2a796defa7fd35ee9bf6f343934c6b65
[ "MIT" ]
17
2020-03-13T10:43:38.000Z
2022-03-11T20:21:05.000Z
examples/plot_powerlaw_fgl.py
bio-datascience/GGLasso
ace4758f2a796defa7fd35ee9bf6f343934c6b65
[ "MIT" ]
7
2021-02-15T08:27:37.000Z
2021-12-08T13:35:33.000Z
examples/plot_powerlaw_fgl.py
bio-datascience/GGLasso
ace4758f2a796defa7fd35ee9bf6f343934c6b65
[ "MIT" ]
4
2021-01-29T17:37:33.000Z
2021-12-10T14:20:43.000Z
""" Fused Graphical Lasso experiment ================================= We investigate the performance of Fused Graphical Lasso on powerlaw networks, compared to estimating the precision matrices independently with SGL. In particular, we demonstrate that FGL - in contrast to SGL - is capable of estimating time-consiste...
30.175879
154
0.643797
0
0
0
0
0
0
0
0
2,380
0.396336
80343257862fe0dd8bcfe32668eea5bd1de6aed0
52
py
Python
examples/test/__init__.py
mattsb42/xy-tag
75f8a8141beb9f5be62357b949ac8686472b24a6
[ "Apache-2.0" ]
5
2020-05-18T20:47:52.000Z
2022-03-29T05:39:32.000Z
examples/test/__init__.py
mattsb42/xy-tag
75f8a8141beb9f5be62357b949ac8686472b24a6
[ "Apache-2.0" ]
55
2019-10-18T05:32:34.000Z
2020-01-10T07:54:04.000Z
examples/test/__init__.py
mattsb42/xy-tag
75f8a8141beb9f5be62357b949ac8686472b24a6
[ "Apache-2.0" ]
2
2020-05-16T19:23:02.000Z
2020-11-26T05:42:17.000Z
"""Put tests for the examples in this directory."""
26
51
0.711538
0
0
0
0
0
0
0
0
51
0.980769
80355362a6c53716c0ebd75064ddc16a52cea52c
546
py
Python
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
esusu/api/email.py
olujedai/esusu
2a4f79f5aac933fe32f45d778fb4e75e49b8fbda
[ "Apache-2.0" ]
null
null
null
from django.core.mail import EmailMultiAlternatives, send_mail from django.template.loader import render_to_string from django.utils.html import strip_tags from django.conf import settings def send_invite(subject, from_email, to, **email_values): html_content = render_to_string('invite.html', email_values) text_con...
32.117647
62
0.818681
0
0
0
0
0
0
0
0
13
0.02381
803575bd4b6af7e9e93c67f9cf32c400ade94b42
849
py
Python
analytics/setup.py
Genometric/ToolVisibilityQuantifier
82572a678c27820ec1a8dbbc54dcee18ee601096
[ "MIT" ]
3
2020-04-03T02:00:10.000Z
2020-06-18T01:39:22.000Z
analytics/setup.py
Genometric/ToolVisibilityQuantifier
82572a678c27820ec1a8dbbc54dcee18ee601096
[ "MIT" ]
1
2020-07-14T06:39:02.000Z
2020-07-14T06:39:02.000Z
analytics/setup.py
Genometric/ToolVisibilityQuantifier
82572a678c27820ec1a8dbbc54dcee18ee601096
[ "MIT" ]
1
2020-05-22T20:12:47.000Z
2020-05-22T20:12:47.000Z
""" Package install information. This build script provides information about the `lib` package (e.g., the name and version, what should be included the built package, and etc.). """ import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="TVQ-Scripts", ...
27.387097
67
0.681979
0
0
0
0
0
0
0
0
494
0.581861
8035c2d7a9126b6cdea12061987f025e743d2d6e
150
py
Python
step4/components/__init__.py
03015417pzj/PyRankine
e9acd56f91c542bd9fb584d348c48d50b543d5bc
[ "MIT" ]
null
null
null
step4/components/__init__.py
03015417pzj/PyRankine
e9acd56f91c542bd9fb584d348c48d50b543d5bc
[ "MIT" ]
null
null
null
step4/components/__init__.py
03015417pzj/PyRankine
e9acd56f91c542bd9fb584d348c48d50b543d5bc
[ "MIT" ]
null
null
null
""" Components Package of the General Simulator of Rankine Cycle """ __all__ = ["node","boiler", "condenser","condenser","openedheater","turbine"]
21.428571
77
0.706667
0
0
0
0
0
0
0
0
129
0.86
803902a284694bf2e2871a900f13d53f88448114
13,479
py
Python
tests/pytest/manipulation_tests/test_dims.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
11
2020-07-31T02:21:55.000Z
2022-03-10T03:12:11.000Z
tests/pytest/manipulation_tests/test_dims.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
tests/pytest/manipulation_tests/test_dims.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
# # * The source code in this file is based on the soure code of CuPy. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
37.234807
88
0.636472
9,906
0.734921
0
0
8,339
0.618666
0
0
3,374
0.250315
803a92ae01e55a173b2caee9d74281f118b22fb7
325
py
Python
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
2
2019-06-09T23:26:44.000Z
2019-06-27T08:18:05.000Z
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
TCP-UDP-Socket-Programming/setup.py
bayudwiyansatria/Network-Security-Management
8021c3a976337282a261f086024f248aa5c9e4ec
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='CryptoPlus', version='1.0', description='PyCrypto Cipher extension', author='Christophe Oosterlynck', author_email='tiftof@gmail.com', packages = find_packages('src'), install_requires = ['pycrypto'], package_dir={'': 'sr...
29.545455
46
0.661538
0
0
0
0
0
0
0
0
108
0.332308
803c3c3bd07616f3ed463288eceacaefcc475176
1,200
py
Python
chromedriver.py
taha-shafique/colab
481e110ee6796dac2ef82c22fa6e138688fcd0b0
[ "Apache-2.0" ]
null
null
null
chromedriver.py
taha-shafique/colab
481e110ee6796dac2ef82c22fa6e138688fcd0b0
[ "Apache-2.0" ]
null
null
null
chromedriver.py
taha-shafique/colab
481e110ee6796dac2ef82c22fa6e138688fcd0b0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 29 23:04:12 2021 @author: tahashafique """ from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains class chrome_driver: def __init__(self, executable_path, max_window = True, window_size = None, ...
30.769231
170
0.608333
986
0.821667
0
0
0
0
0
0
319
0.265833
803c7c054becf664ad3ff0f679aef0fcea592bbf
992
py
Python
Core/TestConvInst.py
gabrieloandco/RiscV-Arqui1
6495370d23d3a7e9e1f579a1b4e8c1be799c3913
[ "MIT" ]
null
null
null
Core/TestConvInst.py
gabrieloandco/RiscV-Arqui1
6495370d23d3a7e9e1f579a1b4e8c1be799c3913
[ "MIT" ]
null
null
null
Core/TestConvInst.py
gabrieloandco/RiscV-Arqui1
6495370d23d3a7e9e1f579a1b4e8c1be799c3913
[ "MIT" ]
null
null
null
from myhdl import * from ConvInst import * import random def tbConvInst(): datain = Signal(modbv(0)[32:]) #din = Signal(modbv(0)[32:]) dataout = Signal(modbv(0)[32:]) #dout = Signal(modbv(0)[32:]) dut = ConvInst(datain,dataout) interv = delay(7) @always(interv) def stim(): #hi = bin(random.randint(0,2*...
24.195122
104
0.646169
0
0
0
0
538
0.542339
0
0
583
0.587702
803ecddcb511e7194a77ad5b27290b4e5012e784
48
py
Python
change_case.py
mariongb81/TeamProject
c29c765ff8313563d17aea845caefc18631cafac
[ "MIT" ]
null
null
null
change_case.py
mariongb81/TeamProject
c29c765ff8313563d17aea845caefc18631cafac
[ "MIT" ]
4
2021-11-16T02:36:24.000Z
2021-11-26T03:33:57.000Z
change_case.py
mariongb81/TeamProject
c29c765ff8313563d17aea845caefc18631cafac
[ "MIT" ]
4
2021-11-16T01:02:42.000Z
2021-11-27T03:07:36.000Z
print( input("ingrese su cadena" ).swapcase())
16
46
0.6875
0
0
0
0
0
0
0
0
19
0.395833
803f229f31bff7100d337f359e938d71b79934ae
631
py
Python
LuHR_showcode/x0000.py
luhralive/python
b74bdc4c7bc8e75aee9530c27d621a773a71ac67
[ "MIT" ]
1
2019-05-05T11:55:50.000Z
2019-05-05T11:55:50.000Z
LuHR_showcode/x0000.py
luhralive/python
b74bdc4c7bc8e75aee9530c27d621a773a71ac67
[ "MIT" ]
null
null
null
LuHR_showcode/x0000.py
luhralive/python
b74bdc4c7bc8e75aee9530c27d621a773a71ac67
[ "MIT" ]
null
null
null
# 将你的 QQ 头像(或者微博头像)右上角加上红色的数字,类似于微信未读信息数量那种提示效果。 类似于图中效果 from PIL import Image,ImageDraw,ImageFont def add_num( imgPath, color = "#ff0000", msg = '4'): try: img = Image.open(imgPath, 'r') draw = ImageDraw.Draw(img) imagefont = ImageFont.truetype('C:/Windows/Fonts/Arial.ttf', 40) ...
31.55
81
0.616482
0
0
0
0
0
0
0
0
329
0.439252
803f9899de41d83fff483e1633259c8b02626196
894
py
Python
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
test/compilers/test_gcc.py
diogenes1oliveira/mathbind
1b710010ac8956ea575c2e07fca86233f59018a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import unittest from unittest import mock from mathbind.compilers.gcc import GccCompiler class TestGFortranCompiler(unittest.TestCase): def setUp(self): self.os_system_backup = os.system def tearDown(self): os.system = self.os_system_backup def test1(se...
33.111111
126
0.661074
768
0.85906
0
0
0
0
0
0
227
0.253915
8040173e381ef7cb4b3fc1f2e9d60d3bcfc17f3e
2,328
py
Python
FlatBufferSchemaGenerator/python/FlatBufferObserver.py
cnheider/droid
1687cb50cadba867d9e8a7b670629008c948b38e
[ "Apache-2.0" ]
null
null
null
FlatBufferSchemaGenerator/python/FlatBufferObserver.py
cnheider/droid
1687cb50cadba867d9e8a7b670629008c948b38e
[ "Apache-2.0" ]
null
null
null
FlatBufferSchemaGenerator/python/FlatBufferObserver.py
cnheider/droid
1687cb50cadba867d9e8a7b670629008c948b38e
[ "Apache-2.0" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: State import flatbuffers class FlatBufferObserver(object): __slots__ = ['_tab'] @classmethod def GetRootAsFlatBufferObserver(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) ...
38.8
156
0.698454
1,550
0.665808
0
0
225
0.096649
0
0
194
0.083333
804137226516ea6cf2d963db93c0457e0bf4dc2c
4,126
py
Python
sonar_to_raw/sonar_to_raw.py
jan-bogaerts/sonar_tools
16a38c4318ea38ec4259069616da33765de0f91a
[ "MIT" ]
null
null
null
sonar_to_raw/sonar_to_raw.py
jan-bogaerts/sonar_tools
16a38c4318ea38ec4259069616da33765de0f91a
[ "MIT" ]
null
null
null
sonar_to_raw/sonar_to_raw.py
jan-bogaerts/sonar_tools
16a38c4318ea38ec4259069616da33765de0f91a
[ "MIT" ]
null
null
null
__author__ = 'Jan Bogaerts' __copyright__ = "Copyright 2018, Elastetic" __credits__ = [] __maintainer__ = "Jan Bogaerts" __email__ = "jb@elastetic.com" __status__ = "Development" # "Prototype", or "Production" """ a small tool to convert files from the sonar corpus into raw text data (as it only comes annotated). son...
36.513274
124
0.524721
0
0
0
0
0
0
0
0
773
0.187349
8041c204d2d2ef90e334feb2ab2a86790a4d7bb6
655
py
Python
databases/migrations/2019_11_07_110837_create_entries_table.py
mandarvaze/life-journal-masonite
e9482fd0da7f8383d31e46160a3ab297281a6171
[ "MIT" ]
null
null
null
databases/migrations/2019_11_07_110837_create_entries_table.py
mandarvaze/life-journal-masonite
e9482fd0da7f8383d31e46160a3ab297281a6171
[ "MIT" ]
null
null
null
databases/migrations/2019_11_07_110837_create_entries_table.py
mandarvaze/life-journal-masonite
e9482fd0da7f8383d31e46160a3ab297281a6171
[ "MIT" ]
null
null
null
"""Migration for Entries Table.""" from orator.migrations import Migration class CreateEntriesTable(Migration): """Migration Class for Entries Table.""" def up(self): """Run the migrations.""" with self.schema.create("entries") as table: table.increments("id") table.st...
27.291667
67
0.59084
577
0.880916
0
0
0
0
0
0
212
0.323664
804207d0605a0af0c0121c80e73f1b485bc1dae3
2,613
py
Python
poise/poise.py
harbi/poise
a9a659cd95c5101d78d9ae1a90f345874324e307
[ "MIT" ]
5
2019-08-04T08:04:09.000Z
2021-12-29T16:56:55.000Z
poise/poise.py
harbi/poise
a9a659cd95c5101d78d9ae1a90f345874324e307
[ "MIT" ]
null
null
null
poise/poise.py
harbi/poise
a9a659cd95c5101d78d9ae1a90f345874324e307
[ "MIT" ]
null
null
null
import click import scrapy from scrapy.crawler import CrawlerProcess from langdetect import detect __author__ = 'Abdullah Alharbi' def get_urls(keyword): return [ 'https://www.goodreads.com/quotes/tag/{}'.format(keyword), ] class QuotesSpider(scrapy.Spider): name = "quotes" quotes = [] ...
30.741176
109
0.567164
1,378
0.525553
1,137
0.433638
614
0.234172
0
0
446
0.170099
80435c72e1c732be18ef85aae2e7cc3ae7039fd9
5,415
py
Python
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
watevrCTF-2019/challenges/web/HTJP/container/htjp.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
1
2020-03-14T07:24:12.000Z
2020-03-14T07:24:12.000Z
#!/usr/bin/env python3 # request and response in this file refer to the HTTP specification, they are reversed for HTJP import sys import re import base64 from urllib.parse import quote import signal def interrupted(signum, frame): exit() signal.signal(signal.SIGALRM, interrupted) signal.alarm(5) debug = False ...
33.220859
171
0.619021
0
0
0
0
0
0
0
0
436
0.080517
8043e5f4d1359c25072690e31f281a2aca8cbb06
394
py
Python
init_solutions.py
CLAHRCWessex/SymmetricTSP
2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4
[ "MIT" ]
1
2020-06-01T22:56:11.000Z
2020-06-01T22:56:11.000Z
init_solutions.py
CLAHRCWessex/SymmetricTSP
2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4
[ "MIT" ]
null
null
null
init_solutions.py
CLAHRCWessex/SymmetricTSP
2cfce4146ece0c784aa62f1b0e2ac1cb2e91b6c4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 14 15:57:46 2017 @author: tm3y13 """ from random import shuffle def random_tour(tour): """ Initial solution to tour is psuedo random """ rnd_tour = tour[1:len(tour)-1] base_city = tour[0] shuffle(rnd_tour) rnd_tour.append(base...
18.761905
46
0.598985
0
0
0
0
0
0
0
0
147
0.373096